ETH Price: $3,546.15 (-0.57%)

Token

ERC-20: BGCC Genesis (BGCC)
 

Overview

Max Total Supply

155 BGCC

Holders

90

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
swopes.eth
0x18C5eA5B6441D99d621cEC21e9c034d97124d267
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
BGCCSupporter

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : BGCCSupporter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";

contract BGCCSupporter is ERC1155, DefaultOperatorFilterer, EIP712, Ownable {
    using SafeMath for uint256;

    using Counters for Counters.Counter;

    string private constant SIGNING_DOMAIN = "BGCCSUPPORTER";
    string private constant SIGNATURE_VERSION = "1";

    mapping(uint256 => string) private _uris;
    mapping (string => bool) public redeemed;
    mapping(bytes32 => bool) private signaturesUsed;
    uint256 public totalTokens; 
    uint256 public maxPerToken = 100; 
    uint256 public maxPerMint = 5; 
    address public signatureSigner = 0x0eD61e354A47FEB7016Af01d2C39FDB93cef7f4B;
    uint256 public mintPrice;
    mapping(uint256 => uint256) public tokenMinted;
    Counters.Counter private _countTracker;
    string public name;
    string public symbol;
    address public multiSigOwner;

 
    constructor(
        string memory _name, 
        string memory _symbol, 
        address _multiSigOwner
    ) ERC1155("") EIP712(SIGNING_DOMAIN, SIGNATURE_VERSION) {
        name = _name;
        symbol = _symbol;
        setMultiSig(_multiSigOwner);
    }


    function totalMinted() public view returns (uint256) {
        return _countTracker.current();
    }


    function setMultiSig(address _multiSig) public onlyOwner {
        multiSigOwner = _multiSig;
    }

    function setPrice(uint256 _price) public onlyOwner {
        mintPrice = _price;
    }

    function getTokenSupply(uint256 tokenId) public view returns (uint256) {
        return maxPerToken - tokenMinted[tokenId];
    }

    function uri(uint256 tokenId) override public view returns (string memory) {
        return(_uris[tokenId]);
    }

    function setTokenURI(uint256 tokenId, string memory tokenUri) public onlyOwner {
        _uris[tokenId] = tokenUri;
    }

    function generateToken(
        string memory tokenUri
    ) public onlyOwner {
        uint256 newID = totalTokens;
        setTokenURI(newID, tokenUri);
        totalTokens += 1;
        tokenMinted[newID] = 0;
        ownerMint(multiSigOwner, newID, 1);

    }

    function ownerMint(address _to, uint256 tokenId, uint256 _count) public onlyOwner {
        require(_count > 0, "Mint count should be greater than zero");
        uint256 availableTokens = maxPerToken - tokenMinted[tokenId];
        require(availableTokens >= _count, "Not Enough Tokens Supply");
        for (uint256 i = 0; i < _count; i++) {
            _mintOneItem(_to, tokenId);
        }
    }

    
    //the first 100 - Ownermint, 101 - 250 Allowlist, and then 251 - 400 is set Price 
    function mintAllowList(uint256 tokenId, string memory claimId, bytes32 hash, uint8 v, bytes32 r, bytes32 s) public payable {
        uint256 availableTokens = maxPerToken - tokenMinted[tokenId];
        require(_countTracker.current() < 250, "Allow List Mint Closed");
        require(availableTokens >= 1, "Not Enough Tokens Supply");
        require(ecr(hash, v, r, s) == signatureSigner, "Signature invalid");
        require(!redeemed[claimId], "Already redeemed");
        require(!signaturesUsed[hash], "Hash Already Used");
        redeemed[claimId] = true;
        signaturesUsed[hash] = true;
        _mintOneItem(msg.sender, tokenId);
        
    }

   
    function mint(uint256 tokenId, uint256 _count) external payable {
        require(msg.value >= mintPrice * _count, "Insufficient funds");
        require(_count > 0, "Mint count should be greater than zero");
        require(maxPerMint >= _count, "Max Per Mint is 5");
        uint256 availableTokens = maxPerToken - tokenMinted[tokenId];
        require(availableTokens >= _count, "Not Enough Tokens Supply");

        for (uint256 i = 0; i < _count; i++) {
            _mintOneItem(msg.sender, tokenId);
        }

    }

   
    function _mintOneItem(address _to,  uint256 tokenId) private {
        _countTracker.increment();
        tokenMinted[tokenId]++;
        _mint(_to, tokenId, 1, "");
    }


    function ecr(bytes32 msgh, uint8 v, bytes32 r, bytes32 s) public pure
        returns (address sender) {
            return ecrecover(msgh, v, r, s);
        }

    function withdrawAll() public onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0);
        _withdraw(multiSigOwner, balance);
    }

    function _withdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{ value: _amount }("");
        require(success, "Transfer failed.");
    }


    //opensea functions
    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, uint256 amount, bytes memory data)
        public
        override
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, amount, data);
    }

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override onlyAllowedOperator(from) {
        super.safeBatchTransferFrom(from, to, ids, amounts, data);
    }
}

File 2 of 20 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 3 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 20 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 5 of 20 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

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

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

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

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

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

File 6 of 20 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

    // Mapping from account to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC1155).interfaceId ||
            interfaceId == type(IERC1155MetadataURI).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: address zero is not a valid owner");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[account][operator];
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `ids` and `amounts` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 7 of 20 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 8 of 20 : draft-EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

// EIP-712 is Final as of 2022-08-11. This file is deprecated.

import "./EIP712.sol";

File 9 of 20 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 10 of 20 : EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 11 of 20 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 12 of 20 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 13 of 20 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 14 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 15 of 20 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 16 of 20 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 17 of 20 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 18 of 20 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 19 of 20 : 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 20 of 20 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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);
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_multiSigOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"msgh","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"ecr","outputs":[{"internalType":"address","name":"sender","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"tokenUri","type":"string"}],"name":"generateToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"claimId","type":"string"},{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"mintAllowList","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multiSigOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"redeemed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_multiSig","type":"address"}],"name":"setMultiSig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenUri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signatureSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

61014060405260646008556005600955730ed61e354a47feb7016af01d2c39fdb93cef7f4b600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200007157600080fd5b506040516200560a3803806200560a833981810160405281019062000097919062000869565b6040518060400160405280600d81526020017f42474343535550504f52544552000000000000000000000000000000000000008152506040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250733cc6cdda760b79bafa08df41ecfa224f810dceb66001604051806020016040528060008152506200013b816200044360201b60201c565b5060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111562000331578015620001f7576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620001bd92919062000914565b600060405180830381600087803b158015620001d857600080fd5b505af1158015620001ed573d6000803e3d6000fd5b5050505062000330565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614620002b1576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200027792919062000914565b600060405180830381600087803b1580156200029257600080fd5b505af1158015620002a7573d6000803e3d6000fd5b505050506200032f565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002fa919062000941565b600060405180830381600087803b1580156200031557600080fd5b505af11580156200032a573d6000803e3d6000fd5b505050505b5b5b505060008280519060200120905060008280519060200120905060007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f90508260e081815250508161010081815250504660a081815250506200039c8184846200045860201b60201c565b608081815250503073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1681525050806101208181525050505050505062000405620003f96200049460201b60201c565b6200049c60201b60201c565b82600e908162000416919062000ba9565b5081600f908162000428919062000ba9565b506200043a816200056260201b60201c565b50505062000d9c565b806002908162000454919062000ba9565b5050565b600083838346306040516020016200047595949392919062000cbc565b6040516020818303038152906040528051906020012090509392505050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000572620005b660201b60201c565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b620005c66200049460201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620005ec6200064760201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000645576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200063c9062000d7a565b60405180910390fd5b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620006da826200068f565b810181811067ffffffffffffffff82111715620006fc57620006fb620006a0565b5b80604052505050565b60006200071162000671565b90506200071f8282620006cf565b919050565b600067ffffffffffffffff821115620007425762000741620006a0565b5b6200074d826200068f565b9050602081019050919050565b60005b838110156200077a5780820151818401526020810190506200075d565b60008484015250505050565b60006200079d620007978462000724565b62000705565b905082815260208101848484011115620007bc57620007bb6200068a565b5b620007c98482856200075a565b509392505050565b600082601f830112620007e957620007e862000685565b5b8151620007fb84826020860162000786565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620008318262000804565b9050919050565b620008438162000824565b81146200084f57600080fd5b50565b600081519050620008638162000838565b92915050565b6000806000606084860312156200088557620008846200067b565b5b600084015167ffffffffffffffff811115620008a657620008a562000680565b5b620008b486828701620007d1565b935050602084015167ffffffffffffffff811115620008d857620008d762000680565b5b620008e686828701620007d1565b9250506040620008f98682870162000852565b9150509250925092565b6200090e8162000824565b82525050565b60006040820190506200092b600083018562000903565b6200093a602083018462000903565b9392505050565b600060208201905062000958600083018462000903565b92915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620009b157607f821691505b602082108103620009c757620009c662000969565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000a317fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620009f2565b62000a3d8683620009f2565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000a8a62000a8462000a7e8462000a55565b62000a5f565b62000a55565b9050919050565b6000819050919050565b62000aa68362000a69565b62000abe62000ab58262000a91565b848454620009ff565b825550505050565b600090565b62000ad562000ac6565b62000ae281848462000a9b565b505050565b5b8181101562000b0a5762000afe60008262000acb565b60018101905062000ae8565b5050565b601f82111562000b595762000b2381620009cd565b62000b2e84620009e2565b8101602085101562000b3e578190505b62000b5662000b4d85620009e2565b83018262000ae7565b50505b505050565b600082821c905092915050565b600062000b7e6000198460080262000b5e565b1980831691505092915050565b600062000b99838362000b6b565b9150826002028217905092915050565b62000bb4826200095e565b67ffffffffffffffff81111562000bd05762000bcf620006a0565b5b62000bdc825462000998565b62000be982828562000b0e565b600060209050601f83116001811462000c21576000841562000c0c578287015190505b62000c18858262000b8b565b86555062000c88565b601f19841662000c3186620009cd565b60005b8281101562000c5b5784890151825560018201915060208501945060208101905062000c34565b8683101562000c7b578489015162000c77601f89168262000b6b565b8355505b6001600288020188555050505b505050505050565b6000819050919050565b62000ca58162000c90565b82525050565b62000cb68162000a55565b82525050565b600060a08201905062000cd3600083018862000c9a565b62000ce2602083018762000c9a565b62000cf1604083018662000c9a565b62000d00606083018562000cab565b62000d0f608083018462000903565b9695505050505050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600062000d6260208362000d19565b915062000d6f8262000d2a565b602082019050919050565b6000602082019050818103600083015262000d958162000d53565b9050919050565b60805160a05160c05160e051610100516101205161483062000dda6000396000505060005050600050506000505060005050600050506148306000f3fe6080604052600436106101ed5760003560e01c8063507e094f1161010d5780638da5cb5b116100a0578063a2309ff81161006f578063a2309ff8146106d0578063e985e9c5146106fb578063f242432a14610738578063f2fde38b14610761578063ff4078d31461078a576101ed565b80638da5cb5b1461062857806391b7f5ed1461065357806395d89b411461067c578063a22cb465146106a7576101ed565b80636f876296116100dc5780636f87629614610592578063715018a6146105cf5780637e1c0c09146105e6578063853828b614610611576101ed565b8063507e094f146104e6578063561996e5146105115780636817c76c1461053c578063690f952914610567576101ed565b806319add5e3116101855780632eb2c2d6116101545780632eb2c2d61461042c578063388b9fe01461045557806341f434341461047e5780634e1273f4146104a9576101ed565b806319add5e31461036d57806319b88edb146103aa5780631b2ef1ca146103e7578063284d30ef14610403576101ed565b806306fdde03116101c157806306fdde03146102b35780630830538d146102de5780630e89341c14610307578063162094c414610344576101ed565b8062fdd58e146101f257806301ffc9a71461022f5780630329dd621461026c57806305a0c1be14610297575b600080fd5b3480156101fe57600080fd5b50610219600480360381019061021491906128fc565b6107c7565b604051610226919061294b565b60405180910390f35b34801561023b57600080fd5b50610256600480360381019061025191906129be565b61088f565b6040516102639190612a06565b60405180910390f35b34801561027857600080fd5b50610281610971565b60405161028e9190612a30565b60405180910390f35b6102b160048036038101906102ac9190612c00565b610997565b005b3480156102bf57600080fd5b506102c8610c2a565b6040516102d59190612d28565b60405180910390f35b3480156102ea57600080fd5b5061030560048036038101906103009190612d4a565b610cb8565b005b34801561031357600080fd5b5061032e60048036038101906103299190612d93565b610d36565b60405161033b9190612d28565b60405180910390f35b34801561035057600080fd5b5061036b60048036038101906103669190612dc0565b610ddb565b005b34801561037957600080fd5b50610394600480360381019061038f9190612e1c565b610e08565b6040516103a19190612a30565b60405180910390f35b3480156103b657600080fd5b506103d160048036038101906103cc9190612d93565b610e63565b6040516103de919061294b565b60405180910390f35b61040160048036038101906103fc9190612e83565b610e8d565b005b34801561040f57600080fd5b5061042a60048036038101906104259190612ec3565b610ffb565b005b34801561043857600080fd5b50610453600480360381019061044e9190613059565b611047565b005b34801561046157600080fd5b5061047c60048036038101906104779190613128565b61109a565b005b34801561048a57600080fd5b5061049361117c565b6040516104a091906131da565b60405180910390f35b3480156104b557600080fd5b506104d060048036038101906104cb91906132b8565b61118e565b6040516104dd91906133ee565b60405180910390f35b3480156104f257600080fd5b506104fb6112a7565b604051610508919061294b565b60405180910390f35b34801561051d57600080fd5b506105266112ad565b6040516105339190612a30565b60405180910390f35b34801561054857600080fd5b506105516112d3565b60405161055e919061294b565b60405180910390f35b34801561057357600080fd5b5061057c6112d9565b604051610589919061294b565b60405180910390f35b34801561059e57600080fd5b506105b960048036038101906105b49190612d4a565b6112df565b6040516105c69190612a06565b60405180910390f35b3480156105db57600080fd5b506105e4611315565b005b3480156105f257600080fd5b506105fb611329565b604051610608919061294b565b60405180910390f35b34801561061d57600080fd5b5061062661132f565b005b34801561063457600080fd5b5061063d611378565b60405161064a9190612a30565b60405180910390f35b34801561065f57600080fd5b5061067a60048036038101906106759190612d93565b6113a2565b005b34801561068857600080fd5b506106916113b4565b60405161069e9190612d28565b60405180910390f35b3480156106b357600080fd5b506106ce60048036038101906106c9919061343c565b611442565b005b3480156106dc57600080fd5b506106e561145b565b6040516106f2919061294b565b60405180910390f35b34801561070757600080fd5b50610722600480360381019061071d919061347c565b61146c565b60405161072f9190612a06565b60405180910390f35b34801561074457600080fd5b5061075f600480360381019061075a91906134bc565b611500565b005b34801561076d57600080fd5b5061078860048036038101906107839190612ec3565b611553565b005b34801561079657600080fd5b506107b160048036038101906107ac9190612d93565b6115d6565b6040516107be919061294b565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610837576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082e906135c5565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061095a57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061096a5750610969826115ee565b5b9050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600c6000888152602001908152602001600020546008546109ba9190613614565b905060fa6109c8600d611658565b10610a08576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ff90613694565b60405180910390fd5b6001811015610a4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4390613700565b60405180910390fd5b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610a9186868686610e08565b73ffffffffffffffffffffffffffffffffffffffff1614610ae7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ade9061376c565b60405180910390fd5b600586604051610af791906137c8565b908152602001604051809103902060009054906101000a900460ff1615610b53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4a9061382b565b60405180910390fd5b6006600086815260200190815260200160002060009054906101000a900460ff1615610bb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bab90613897565b60405180910390fd5b6001600587604051610bc691906137c8565b908152602001604051809103902060006101000a81548160ff02191690831515021790555060016006600087815260200190815260200160002060006101000a81548160ff021916908315150217905550610c213388611666565b50505050505050565b600e8054610c37906138e6565b80601f0160208091040260200160405190810160405280929190818152602001828054610c63906138e6565b8015610cb05780601f10610c8557610100808354040283529160200191610cb0565b820191906000526020600020905b815481529060010190602001808311610c9357829003601f168201915b505050505081565b610cc06116b9565b60006007549050610cd18183610ddb565b600160076000828254610ce49190613917565b925050819055506000600c600083815260200190815260200160002081905550610d32601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600161109a565b5050565b6060600460008381526020019081526020016000208054610d56906138e6565b80601f0160208091040260200160405190810160405280929190818152602001828054610d82906138e6565b8015610dcf5780601f10610da457610100808354040283529160200191610dcf565b820191906000526020600020905b815481529060010190602001808311610db257829003601f168201915b50505050509050919050565b610de36116b9565b80600460008481526020019081526020016000209081610e039190613aed565b505050565b600060018585858560405160008152602001604052604051610e2d9493929190613bdd565b6020604051602081039080840390855afa158015610e4f573d6000803e3d6000fd5b505050602060405103519050949350505050565b6000600c600083815260200190815260200160002054600854610e869190613614565b9050919050565b80600b54610e9b9190613c22565b341015610edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed490613cb0565b60405180910390fd5b60008111610f20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1790613d42565b60405180910390fd5b806009541015610f65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5c90613dae565b60405180910390fd5b6000600c600084815260200190815260200160002054600854610f889190613614565b905081811015610fcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc490613700565b60405180910390fd5b60005b82811015610ff557610fe23385611666565b8080610fed90613dce565b915050610fd0565b50505050565b6110036116b9565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110855761108433611737565b5b6110928686868686611834565b505050505050565b6110a26116b9565b600081116110e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dc90613d42565b60405180910390fd5b6000600c6000848152602001908152602001600020546008546111089190613614565b90508181101561114d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114490613700565b60405180910390fd5b60005b82811015611175576111628585611666565b808061116d90613dce565b915050611150565b5050505050565b6daaeb6d7670e522a718067333cd4e81565b606081518351146111d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cb90613e88565b60405180910390fd5b6000835167ffffffffffffffff8111156111f1576111f0612a66565b5b60405190808252806020026020018201604052801561121f5781602001602082028036833780820191505090505b50905060005b845181101561129c5761126c85828151811061124457611243613ea8565b5b602002602001015185838151811061125f5761125e613ea8565b5b60200260200101516107c7565b82828151811061127f5761127e613ea8565b5b6020026020010181815250508061129590613dce565b9050611225565b508091505092915050565b60095481565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5481565b60085481565b6005818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b61131d6116b9565b61132760006118d5565b565b60075481565b6113376116b9565b60004790506000811161134957600080fd5b611375601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168261199b565b50565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6113aa6116b9565b80600b8190555050565b600f80546113c1906138e6565b80601f01602080910402602001604051908101604052809291908181526020018280546113ed906138e6565b801561143a5780601f1061140f5761010080835404028352916020019161143a565b820191906000526020600020905b81548152906001019060200180831161141d57829003601f168201915b505050505081565b8161144c81611737565b6114568383611a4c565b505050565b6000611467600d611658565b905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461153e5761153d33611737565b5b61154b8686868686611a62565b505050505050565b61155b6116b9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036115ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c190613f49565b60405180910390fd5b6115d3816118d5565b50565b600c6020528060005260406000206000915090505481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081600001549050919050565b611670600d611b03565b600c6000828152602001908152602001600020600081548092919061169490613dce565b91905055506116b58282600160405180602001604052806000815250611b19565b5050565b6116c1611cc9565b73ffffffffffffffffffffffffffffffffffffffff166116df611378565b73ffffffffffffffffffffffffffffffffffffffff1614611735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172c90613fb5565b60405180910390fd5b565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611831576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016117ae929190613fd5565b602060405180830381865afa1580156117cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ef9190614013565b61183057806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016118279190612a30565b60405180910390fd5b5b50565b61183c611cc9565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061188257506118818561187c611cc9565b61146c565b5b6118c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b8906140b2565b60405180910390fd5b6118ce8585858585611cd1565b5050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516119c190614103565b60006040518083038185875af1925050503d80600081146119fe576040519150601f19603f3d011682016040523d82523d6000602084013e611a03565b606091505b5050905080611a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3e90614164565b60405180910390fd5b505050565b611a5e611a57611cc9565b8383611ff2565b5050565b611a6a611cc9565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611ab05750611aaf85611aaa611cc9565b61146c565b5b611aef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae6906140b2565b60405180910390fd5b611afc858585858561215e565b5050505050565b6001816000016000828254019250508190555050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611b88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7f906141f6565b60405180910390fd5b6000611b92611cc9565b90506000611b9f856123f9565b90506000611bac856123f9565b9050611bbd83600089858589612473565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c1c9190613917565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611c9a929190614216565b60405180910390a4611cb18360008985858961247b565b611cc083600089898989612483565b50505050505050565b600033905090565b8151835114611d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0c906142b1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611d84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7b90614343565b60405180910390fd5b6000611d8e611cc9565b9050611d9e818787878787612473565b60005b8451811015611f4f576000858281518110611dbf57611dbe613ea8565b5b602002602001015190506000858381518110611dde57611ddd613ea8565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611e7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e76906143d5565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f349190613917565b9250508190555050505080611f4890613dce565b9050611da1565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611fc69291906143f5565b60405180910390a4611fdc81878787878761247b565b611fea81878787878761265a565b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612060576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120579061449e565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121519190612a06565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036121cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c490614343565b60405180910390fd5b60006121d7611cc9565b905060006121e4856123f9565b905060006121f1856123f9565b9050612201838989858589612473565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612298576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228f906143d5565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461234d9190613917565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516123ca929190614216565b60405180910390a46123e0848a8a86868a61247b565b6123ee848a8a8a8a8a612483565b505050505050505050565b60606000600167ffffffffffffffff81111561241857612417612a66565b5b6040519080825280602002602001820160405280156124465781602001602082028036833780820191505090505b509050828160008151811061245e5761245d613ea8565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b6124a28473ffffffffffffffffffffffffffffffffffffffff16612831565b15612652578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016124e8959493929190614513565b6020604051808303816000875af192505050801561252457506040513d601f19601f820116820180604052508101906125219190614582565b60015b6125c9576125306145bc565b806308c379a00361258c57506125446145de565b8061254f575061258e565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125839190612d28565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125c0906146e0565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612650576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264790614772565b60405180910390fd5b505b505050505050565b6126798473ffffffffffffffffffffffffffffffffffffffff16612831565b15612829578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016126bf959493929190614792565b6020604051808303816000875af19250505080156126fb57506040513d601f19601f820116820180604052508101906126f89190614582565b60015b6127a0576127076145bc565b806308c379a003612763575061271b6145de565b806127265750612765565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275a9190612d28565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612797906146e0565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281e90614772565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061289382612868565b9050919050565b6128a381612888565b81146128ae57600080fd5b50565b6000813590506128c08161289a565b92915050565b6000819050919050565b6128d9816128c6565b81146128e457600080fd5b50565b6000813590506128f6816128d0565b92915050565b600080604083850312156129135761291261285e565b5b6000612921858286016128b1565b9250506020612932858286016128e7565b9150509250929050565b612945816128c6565b82525050565b6000602082019050612960600083018461293c565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61299b81612966565b81146129a657600080fd5b50565b6000813590506129b881612992565b92915050565b6000602082840312156129d4576129d361285e565b5b60006129e2848285016129a9565b91505092915050565b60008115159050919050565b612a00816129eb565b82525050565b6000602082019050612a1b60008301846129f7565b92915050565b612a2a81612888565b82525050565b6000602082019050612a456000830184612a21565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612a9e82612a55565b810181811067ffffffffffffffff82111715612abd57612abc612a66565b5b80604052505050565b6000612ad0612854565b9050612adc8282612a95565b919050565b600067ffffffffffffffff821115612afc57612afb612a66565b5b612b0582612a55565b9050602081019050919050565b82818337600083830152505050565b6000612b34612b2f84612ae1565b612ac6565b905082815260208101848484011115612b5057612b4f612a50565b5b612b5b848285612b12565b509392505050565b600082601f830112612b7857612b77612a4b565b5b8135612b88848260208601612b21565b91505092915050565b6000819050919050565b612ba481612b91565b8114612baf57600080fd5b50565b600081359050612bc181612b9b565b92915050565b600060ff82169050919050565b612bdd81612bc7565b8114612be857600080fd5b50565b600081359050612bfa81612bd4565b92915050565b60008060008060008060c08789031215612c1d57612c1c61285e565b5b6000612c2b89828a016128e7565b965050602087013567ffffffffffffffff811115612c4c57612c4b612863565b5b612c5889828a01612b63565b9550506040612c6989828a01612bb2565b9450506060612c7a89828a01612beb565b9350506080612c8b89828a01612bb2565b92505060a0612c9c89828a01612bb2565b9150509295509295509295565b600081519050919050565b600082825260208201905092915050565b60005b83811015612ce3578082015181840152602081019050612cc8565b60008484015250505050565b6000612cfa82612ca9565b612d048185612cb4565b9350612d14818560208601612cc5565b612d1d81612a55565b840191505092915050565b60006020820190508181036000830152612d428184612cef565b905092915050565b600060208284031215612d6057612d5f61285e565b5b600082013567ffffffffffffffff811115612d7e57612d7d612863565b5b612d8a84828501612b63565b91505092915050565b600060208284031215612da957612da861285e565b5b6000612db7848285016128e7565b91505092915050565b60008060408385031215612dd757612dd661285e565b5b6000612de5858286016128e7565b925050602083013567ffffffffffffffff811115612e0657612e05612863565b5b612e1285828601612b63565b9150509250929050565b60008060008060808587031215612e3657612e3561285e565b5b6000612e4487828801612bb2565b9450506020612e5587828801612beb565b9350506040612e6687828801612bb2565b9250506060612e7787828801612bb2565b91505092959194509250565b60008060408385031215612e9a57612e9961285e565b5b6000612ea8858286016128e7565b9250506020612eb9858286016128e7565b9150509250929050565b600060208284031215612ed957612ed861285e565b5b6000612ee7848285016128b1565b91505092915050565b600067ffffffffffffffff821115612f0b57612f0a612a66565b5b602082029050602081019050919050565b600080fd5b6000612f34612f2f84612ef0565b612ac6565b90508083825260208201905060208402830185811115612f5757612f56612f1c565b5b835b81811015612f805780612f6c88826128e7565b845260208401935050602081019050612f59565b5050509392505050565b600082601f830112612f9f57612f9e612a4b565b5b8135612faf848260208601612f21565b91505092915050565b600067ffffffffffffffff821115612fd357612fd2612a66565b5b612fdc82612a55565b9050602081019050919050565b6000612ffc612ff784612fb8565b612ac6565b90508281526020810184848401111561301857613017612a50565b5b613023848285612b12565b509392505050565b600082601f8301126130405761303f612a4b565b5b8135613050848260208601612fe9565b91505092915050565b600080600080600060a086880312156130755761307461285e565b5b6000613083888289016128b1565b9550506020613094888289016128b1565b945050604086013567ffffffffffffffff8111156130b5576130b4612863565b5b6130c188828901612f8a565b935050606086013567ffffffffffffffff8111156130e2576130e1612863565b5b6130ee88828901612f8a565b925050608086013567ffffffffffffffff81111561310f5761310e612863565b5b61311b8882890161302b565b9150509295509295909350565b6000806000606084860312156131415761314061285e565b5b600061314f868287016128b1565b9350506020613160868287016128e7565b9250506040613171868287016128e7565b9150509250925092565b6000819050919050565b60006131a061319b61319684612868565b61317b565b612868565b9050919050565b60006131b282613185565b9050919050565b60006131c4826131a7565b9050919050565b6131d4816131b9565b82525050565b60006020820190506131ef60008301846131cb565b92915050565b600067ffffffffffffffff8211156132105761320f612a66565b5b602082029050602081019050919050565b600061323461322f846131f5565b612ac6565b9050808382526020820190506020840283018581111561325757613256612f1c565b5b835b81811015613280578061326c88826128b1565b845260208401935050602081019050613259565b5050509392505050565b600082601f83011261329f5761329e612a4b565b5b81356132af848260208601613221565b91505092915050565b600080604083850312156132cf576132ce61285e565b5b600083013567ffffffffffffffff8111156132ed576132ec612863565b5b6132f98582860161328a565b925050602083013567ffffffffffffffff81111561331a57613319612863565b5b61332685828601612f8a565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613365816128c6565b82525050565b6000613377838361335c565b60208301905092915050565b6000602082019050919050565b600061339b82613330565b6133a5818561333b565b93506133b08361334c565b8060005b838110156133e15781516133c8888261336b565b97506133d383613383565b9250506001810190506133b4565b5085935050505092915050565b600060208201905081810360008301526134088184613390565b905092915050565b613419816129eb565b811461342457600080fd5b50565b60008135905061343681613410565b92915050565b600080604083850312156134535761345261285e565b5b6000613461858286016128b1565b925050602061347285828601613427565b9150509250929050565b600080604083850312156134935761349261285e565b5b60006134a1858286016128b1565b92505060206134b2858286016128b1565b9150509250929050565b600080600080600060a086880312156134d8576134d761285e565b5b60006134e6888289016128b1565b95505060206134f7888289016128b1565b9450506040613508888289016128e7565b9350506060613519888289016128e7565b925050608086013567ffffffffffffffff81111561353a57613539612863565b5b6135468882890161302b565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b60006135af602a83612cb4565b91506135ba82613553565b604082019050919050565b600060208201905081810360008301526135de816135a2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061361f826128c6565b915061362a836128c6565b9250828203905081811115613642576136416135e5565b5b92915050565b7f416c6c6f77204c697374204d696e7420436c6f73656400000000000000000000600082015250565b600061367e601683612cb4565b915061368982613648565b602082019050919050565b600060208201905081810360008301526136ad81613671565b9050919050565b7f4e6f7420456e6f75676820546f6b656e7320537570706c790000000000000000600082015250565b60006136ea601883612cb4565b91506136f5826136b4565b602082019050919050565b60006020820190508181036000830152613719816136dd565b9050919050565b7f5369676e617475726520696e76616c6964000000000000000000000000000000600082015250565b6000613756601183612cb4565b915061376182613720565b602082019050919050565b6000602082019050818103600083015261378581613749565b9050919050565b600081905092915050565b60006137a282612ca9565b6137ac818561378c565b93506137bc818560208601612cc5565b80840191505092915050565b60006137d48284613797565b915081905092915050565b7f416c72656164792072656465656d656400000000000000000000000000000000600082015250565b6000613815601083612cb4565b9150613820826137df565b602082019050919050565b6000602082019050818103600083015261384481613808565b9050919050565b7f4861736820416c72656164792055736564000000000000000000000000000000600082015250565b6000613881601183612cb4565b915061388c8261384b565b602082019050919050565b600060208201905081810360008301526138b081613874565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806138fe57607f821691505b602082108103613911576139106138b7565b5b50919050565b6000613922826128c6565b915061392d836128c6565b9250828201905080821115613945576139446135e5565b5b92915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026139ad7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613970565b6139b78683613970565b95508019841693508086168417925050509392505050565b60006139ea6139e56139e0846128c6565b61317b565b6128c6565b9050919050565b6000819050919050565b613a04836139cf565b613a18613a10826139f1565b84845461397d565b825550505050565b600090565b613a2d613a20565b613a388184846139fb565b505050565b5b81811015613a5c57613a51600082613a25565b600181019050613a3e565b5050565b601f821115613aa157613a728161394b565b613a7b84613960565b81016020851015613a8a578190505b613a9e613a9685613960565b830182613a3d565b50505b505050565b600082821c905092915050565b6000613ac460001984600802613aa6565b1980831691505092915050565b6000613add8383613ab3565b9150826002028217905092915050565b613af682612ca9565b67ffffffffffffffff811115613b0f57613b0e612a66565b5b613b1982546138e6565b613b24828285613a60565b600060209050601f831160018114613b575760008415613b45578287015190505b613b4f8582613ad1565b865550613bb7565b601f198416613b658661394b565b60005b82811015613b8d57848901518255600182019150602085019450602081019050613b68565b86831015613baa5784890151613ba6601f891682613ab3565b8355505b6001600288020188555050505b505050505050565b613bc881612b91565b82525050565b613bd781612bc7565b82525050565b6000608082019050613bf26000830187613bbf565b613bff6020830186613bce565b613c0c6040830185613bbf565b613c196060830184613bbf565b95945050505050565b6000613c2d826128c6565b9150613c38836128c6565b9250828202613c46816128c6565b91508282048414831517613c5d57613c5c6135e5565b5b5092915050565b7f496e73756666696369656e742066756e64730000000000000000000000000000600082015250565b6000613c9a601283612cb4565b9150613ca582613c64565b602082019050919050565b60006020820190508181036000830152613cc981613c8d565b9050919050565b7f4d696e7420636f756e742073686f756c6420626520677265617465722074686160008201527f6e207a65726f0000000000000000000000000000000000000000000000000000602082015250565b6000613d2c602683612cb4565b9150613d3782613cd0565b604082019050919050565b60006020820190508181036000830152613d5b81613d1f565b9050919050565b7f4d617820506572204d696e742069732035000000000000000000000000000000600082015250565b6000613d98601183612cb4565b9150613da382613d62565b602082019050919050565b60006020820190508181036000830152613dc781613d8b565b9050919050565b6000613dd9826128c6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613e0b57613e0a6135e5565b5b600182019050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000613e72602983612cb4565b9150613e7d82613e16565b604082019050919050565b60006020820190508181036000830152613ea181613e65565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613f33602683612cb4565b9150613f3e82613ed7565b604082019050919050565b60006020820190508181036000830152613f6281613f26565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613f9f602083612cb4565b9150613faa82613f69565b602082019050919050565b60006020820190508181036000830152613fce81613f92565b9050919050565b6000604082019050613fea6000830185612a21565b613ff76020830184612a21565b9392505050565b60008151905061400d81613410565b92915050565b6000602082840312156140295761402861285e565b5b600061403784828501613ffe565b91505092915050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b600061409c602e83612cb4565b91506140a782614040565b604082019050919050565b600060208201905081810360008301526140cb8161408f565b9050919050565b600081905092915050565b50565b60006140ed6000836140d2565b91506140f8826140dd565b600082019050919050565b600061410e826140e0565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b600061414e601083612cb4565b915061415982614118565b602082019050919050565b6000602082019050818103600083015261417d81614141565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006141e0602183612cb4565b91506141eb82614184565b604082019050919050565b6000602082019050818103600083015261420f816141d3565b9050919050565b600060408201905061422b600083018561293c565b614238602083018461293c565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600061429b602883612cb4565b91506142a68261423f565b604082019050919050565b600060208201905081810360008301526142ca8161428e565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061432d602583612cb4565b9150614338826142d1565b604082019050919050565b6000602082019050818103600083015261435c81614320565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006143bf602a83612cb4565b91506143ca82614363565b604082019050919050565b600060208201905081810360008301526143ee816143b2565b9050919050565b6000604082019050818103600083015261440f8185613390565b905081810360208301526144238184613390565b90509392505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000614488602983612cb4565b91506144938261442c565b604082019050919050565b600060208201905081810360008301526144b78161447b565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006144e5826144be565b6144ef81856144c9565b93506144ff818560208601612cc5565b61450881612a55565b840191505092915050565b600060a0820190506145286000830188612a21565b6145356020830187612a21565b614542604083018661293c565b61454f606083018561293c565b818103608083015261456181846144da565b90509695505050505050565b60008151905061457c81612992565b92915050565b6000602082840312156145985761459761285e565b5b60006145a68482850161456d565b91505092915050565b60008160e01c9050919050565b600060033d11156145db5760046000803e6145d86000516145af565b90505b90565b600060443d1061466b576145f0612854565b60043d036004823e80513d602482011167ffffffffffffffff8211171561461857505061466b565b808201805167ffffffffffffffff811115614636575050505061466b565b80602083010160043d03850181111561465357505050505061466b565b61466282602001850186612a95565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b60006146ca603483612cb4565b91506146d58261466e565b604082019050919050565b600060208201905081810360008301526146f9816146bd565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b600061475c602883612cb4565b915061476782614700565b604082019050919050565b6000602082019050818103600083015261478b8161474f565b9050919050565b600060a0820190506147a76000830188612a21565b6147b46020830187612a21565b81810360408301526147c68186613390565b905081810360608301526147da8185613390565b905081810360808301526147ee81846144da565b9050969550505050505056fea26469706673582212201aa57eb2551630751c8f1763f112de7f549df3bff259f5ab9ec3df94ad92fc5e64736f6c63430008110033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000c9ac68d37cbb2443fee55695eef6b7b293aa16a6000000000000000000000000000000000000000000000000000000000000000c424743432047656e65736973000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044247434300000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101ed5760003560e01c8063507e094f1161010d5780638da5cb5b116100a0578063a2309ff81161006f578063a2309ff8146106d0578063e985e9c5146106fb578063f242432a14610738578063f2fde38b14610761578063ff4078d31461078a576101ed565b80638da5cb5b1461062857806391b7f5ed1461065357806395d89b411461067c578063a22cb465146106a7576101ed565b80636f876296116100dc5780636f87629614610592578063715018a6146105cf5780637e1c0c09146105e6578063853828b614610611576101ed565b8063507e094f146104e6578063561996e5146105115780636817c76c1461053c578063690f952914610567576101ed565b806319add5e3116101855780632eb2c2d6116101545780632eb2c2d61461042c578063388b9fe01461045557806341f434341461047e5780634e1273f4146104a9576101ed565b806319add5e31461036d57806319b88edb146103aa5780631b2ef1ca146103e7578063284d30ef14610403576101ed565b806306fdde03116101c157806306fdde03146102b35780630830538d146102de5780630e89341c14610307578063162094c414610344576101ed565b8062fdd58e146101f257806301ffc9a71461022f5780630329dd621461026c57806305a0c1be14610297575b600080fd5b3480156101fe57600080fd5b50610219600480360381019061021491906128fc565b6107c7565b604051610226919061294b565b60405180910390f35b34801561023b57600080fd5b50610256600480360381019061025191906129be565b61088f565b6040516102639190612a06565b60405180910390f35b34801561027857600080fd5b50610281610971565b60405161028e9190612a30565b60405180910390f35b6102b160048036038101906102ac9190612c00565b610997565b005b3480156102bf57600080fd5b506102c8610c2a565b6040516102d59190612d28565b60405180910390f35b3480156102ea57600080fd5b5061030560048036038101906103009190612d4a565b610cb8565b005b34801561031357600080fd5b5061032e60048036038101906103299190612d93565b610d36565b60405161033b9190612d28565b60405180910390f35b34801561035057600080fd5b5061036b60048036038101906103669190612dc0565b610ddb565b005b34801561037957600080fd5b50610394600480360381019061038f9190612e1c565b610e08565b6040516103a19190612a30565b60405180910390f35b3480156103b657600080fd5b506103d160048036038101906103cc9190612d93565b610e63565b6040516103de919061294b565b60405180910390f35b61040160048036038101906103fc9190612e83565b610e8d565b005b34801561040f57600080fd5b5061042a60048036038101906104259190612ec3565b610ffb565b005b34801561043857600080fd5b50610453600480360381019061044e9190613059565b611047565b005b34801561046157600080fd5b5061047c60048036038101906104779190613128565b61109a565b005b34801561048a57600080fd5b5061049361117c565b6040516104a091906131da565b60405180910390f35b3480156104b557600080fd5b506104d060048036038101906104cb91906132b8565b61118e565b6040516104dd91906133ee565b60405180910390f35b3480156104f257600080fd5b506104fb6112a7565b604051610508919061294b565b60405180910390f35b34801561051d57600080fd5b506105266112ad565b6040516105339190612a30565b60405180910390f35b34801561054857600080fd5b506105516112d3565b60405161055e919061294b565b60405180910390f35b34801561057357600080fd5b5061057c6112d9565b604051610589919061294b565b60405180910390f35b34801561059e57600080fd5b506105b960048036038101906105b49190612d4a565b6112df565b6040516105c69190612a06565b60405180910390f35b3480156105db57600080fd5b506105e4611315565b005b3480156105f257600080fd5b506105fb611329565b604051610608919061294b565b60405180910390f35b34801561061d57600080fd5b5061062661132f565b005b34801561063457600080fd5b5061063d611378565b60405161064a9190612a30565b60405180910390f35b34801561065f57600080fd5b5061067a60048036038101906106759190612d93565b6113a2565b005b34801561068857600080fd5b506106916113b4565b60405161069e9190612d28565b60405180910390f35b3480156106b357600080fd5b506106ce60048036038101906106c9919061343c565b611442565b005b3480156106dc57600080fd5b506106e561145b565b6040516106f2919061294b565b60405180910390f35b34801561070757600080fd5b50610722600480360381019061071d919061347c565b61146c565b60405161072f9190612a06565b60405180910390f35b34801561074457600080fd5b5061075f600480360381019061075a91906134bc565b611500565b005b34801561076d57600080fd5b5061078860048036038101906107839190612ec3565b611553565b005b34801561079657600080fd5b506107b160048036038101906107ac9190612d93565b6115d6565b6040516107be919061294b565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610837576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082e906135c5565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061095a57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061096a5750610969826115ee565b5b9050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600c6000888152602001908152602001600020546008546109ba9190613614565b905060fa6109c8600d611658565b10610a08576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ff90613694565b60405180910390fd5b6001811015610a4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4390613700565b60405180910390fd5b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610a9186868686610e08565b73ffffffffffffffffffffffffffffffffffffffff1614610ae7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ade9061376c565b60405180910390fd5b600586604051610af791906137c8565b908152602001604051809103902060009054906101000a900460ff1615610b53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4a9061382b565b60405180910390fd5b6006600086815260200190815260200160002060009054906101000a900460ff1615610bb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bab90613897565b60405180910390fd5b6001600587604051610bc691906137c8565b908152602001604051809103902060006101000a81548160ff02191690831515021790555060016006600087815260200190815260200160002060006101000a81548160ff021916908315150217905550610c213388611666565b50505050505050565b600e8054610c37906138e6565b80601f0160208091040260200160405190810160405280929190818152602001828054610c63906138e6565b8015610cb05780601f10610c8557610100808354040283529160200191610cb0565b820191906000526020600020905b815481529060010190602001808311610c9357829003601f168201915b505050505081565b610cc06116b9565b60006007549050610cd18183610ddb565b600160076000828254610ce49190613917565b925050819055506000600c600083815260200190815260200160002081905550610d32601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600161109a565b5050565b6060600460008381526020019081526020016000208054610d56906138e6565b80601f0160208091040260200160405190810160405280929190818152602001828054610d82906138e6565b8015610dcf5780601f10610da457610100808354040283529160200191610dcf565b820191906000526020600020905b815481529060010190602001808311610db257829003601f168201915b50505050509050919050565b610de36116b9565b80600460008481526020019081526020016000209081610e039190613aed565b505050565b600060018585858560405160008152602001604052604051610e2d9493929190613bdd565b6020604051602081039080840390855afa158015610e4f573d6000803e3d6000fd5b505050602060405103519050949350505050565b6000600c600083815260200190815260200160002054600854610e869190613614565b9050919050565b80600b54610e9b9190613c22565b341015610edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed490613cb0565b60405180910390fd5b60008111610f20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1790613d42565b60405180910390fd5b806009541015610f65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5c90613dae565b60405180910390fd5b6000600c600084815260200190815260200160002054600854610f889190613614565b905081811015610fcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc490613700565b60405180910390fd5b60005b82811015610ff557610fe23385611666565b8080610fed90613dce565b915050610fd0565b50505050565b6110036116b9565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110855761108433611737565b5b6110928686868686611834565b505050505050565b6110a26116b9565b600081116110e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dc90613d42565b60405180910390fd5b6000600c6000848152602001908152602001600020546008546111089190613614565b90508181101561114d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114490613700565b60405180910390fd5b60005b82811015611175576111628585611666565b808061116d90613dce565b915050611150565b5050505050565b6daaeb6d7670e522a718067333cd4e81565b606081518351146111d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cb90613e88565b60405180910390fd5b6000835167ffffffffffffffff8111156111f1576111f0612a66565b5b60405190808252806020026020018201604052801561121f5781602001602082028036833780820191505090505b50905060005b845181101561129c5761126c85828151811061124457611243613ea8565b5b602002602001015185838151811061125f5761125e613ea8565b5b60200260200101516107c7565b82828151811061127f5761127e613ea8565b5b6020026020010181815250508061129590613dce565b9050611225565b508091505092915050565b60095481565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5481565b60085481565b6005818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b61131d6116b9565b61132760006118d5565b565b60075481565b6113376116b9565b60004790506000811161134957600080fd5b611375601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168261199b565b50565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6113aa6116b9565b80600b8190555050565b600f80546113c1906138e6565b80601f01602080910402602001604051908101604052809291908181526020018280546113ed906138e6565b801561143a5780601f1061140f5761010080835404028352916020019161143a565b820191906000526020600020905b81548152906001019060200180831161141d57829003601f168201915b505050505081565b8161144c81611737565b6114568383611a4c565b505050565b6000611467600d611658565b905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461153e5761153d33611737565b5b61154b8686868686611a62565b505050505050565b61155b6116b9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036115ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c190613f49565b60405180910390fd5b6115d3816118d5565b50565b600c6020528060005260406000206000915090505481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081600001549050919050565b611670600d611b03565b600c6000828152602001908152602001600020600081548092919061169490613dce565b91905055506116b58282600160405180602001604052806000815250611b19565b5050565b6116c1611cc9565b73ffffffffffffffffffffffffffffffffffffffff166116df611378565b73ffffffffffffffffffffffffffffffffffffffff1614611735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172c90613fb5565b60405180910390fd5b565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611831576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016117ae929190613fd5565b602060405180830381865afa1580156117cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ef9190614013565b61183057806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016118279190612a30565b60405180910390fd5b5b50565b61183c611cc9565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061188257506118818561187c611cc9565b61146c565b5b6118c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b8906140b2565b60405180910390fd5b6118ce8585858585611cd1565b5050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516119c190614103565b60006040518083038185875af1925050503d80600081146119fe576040519150601f19603f3d011682016040523d82523d6000602084013e611a03565b606091505b5050905080611a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3e90614164565b60405180910390fd5b505050565b611a5e611a57611cc9565b8383611ff2565b5050565b611a6a611cc9565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611ab05750611aaf85611aaa611cc9565b61146c565b5b611aef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae6906140b2565b60405180910390fd5b611afc858585858561215e565b5050505050565b6001816000016000828254019250508190555050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611b88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7f906141f6565b60405180910390fd5b6000611b92611cc9565b90506000611b9f856123f9565b90506000611bac856123f9565b9050611bbd83600089858589612473565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c1c9190613917565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611c9a929190614216565b60405180910390a4611cb18360008985858961247b565b611cc083600089898989612483565b50505050505050565b600033905090565b8151835114611d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0c906142b1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611d84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7b90614343565b60405180910390fd5b6000611d8e611cc9565b9050611d9e818787878787612473565b60005b8451811015611f4f576000858281518110611dbf57611dbe613ea8565b5b602002602001015190506000858381518110611dde57611ddd613ea8565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611e7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e76906143d5565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f349190613917565b9250508190555050505080611f4890613dce565b9050611da1565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611fc69291906143f5565b60405180910390a4611fdc81878787878761247b565b611fea81878787878761265a565b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612060576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120579061449e565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121519190612a06565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036121cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c490614343565b60405180910390fd5b60006121d7611cc9565b905060006121e4856123f9565b905060006121f1856123f9565b9050612201838989858589612473565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612298576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228f906143d5565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461234d9190613917565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516123ca929190614216565b60405180910390a46123e0848a8a86868a61247b565b6123ee848a8a8a8a8a612483565b505050505050505050565b60606000600167ffffffffffffffff81111561241857612417612a66565b5b6040519080825280602002602001820160405280156124465781602001602082028036833780820191505090505b509050828160008151811061245e5761245d613ea8565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b6124a28473ffffffffffffffffffffffffffffffffffffffff16612831565b15612652578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016124e8959493929190614513565b6020604051808303816000875af192505050801561252457506040513d601f19601f820116820180604052508101906125219190614582565b60015b6125c9576125306145bc565b806308c379a00361258c57506125446145de565b8061254f575061258e565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125839190612d28565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125c0906146e0565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612650576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264790614772565b60405180910390fd5b505b505050505050565b6126798473ffffffffffffffffffffffffffffffffffffffff16612831565b15612829578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016126bf959493929190614792565b6020604051808303816000875af19250505080156126fb57506040513d601f19601f820116820180604052508101906126f89190614582565b60015b6127a0576127076145bc565b806308c379a003612763575061271b6145de565b806127265750612765565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275a9190612d28565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612797906146e0565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281e90614772565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061289382612868565b9050919050565b6128a381612888565b81146128ae57600080fd5b50565b6000813590506128c08161289a565b92915050565b6000819050919050565b6128d9816128c6565b81146128e457600080fd5b50565b6000813590506128f6816128d0565b92915050565b600080604083850312156129135761291261285e565b5b6000612921858286016128b1565b9250506020612932858286016128e7565b9150509250929050565b612945816128c6565b82525050565b6000602082019050612960600083018461293c565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61299b81612966565b81146129a657600080fd5b50565b6000813590506129b881612992565b92915050565b6000602082840312156129d4576129d361285e565b5b60006129e2848285016129a9565b91505092915050565b60008115159050919050565b612a00816129eb565b82525050565b6000602082019050612a1b60008301846129f7565b92915050565b612a2a81612888565b82525050565b6000602082019050612a456000830184612a21565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612a9e82612a55565b810181811067ffffffffffffffff82111715612abd57612abc612a66565b5b80604052505050565b6000612ad0612854565b9050612adc8282612a95565b919050565b600067ffffffffffffffff821115612afc57612afb612a66565b5b612b0582612a55565b9050602081019050919050565b82818337600083830152505050565b6000612b34612b2f84612ae1565b612ac6565b905082815260208101848484011115612b5057612b4f612a50565b5b612b5b848285612b12565b509392505050565b600082601f830112612b7857612b77612a4b565b5b8135612b88848260208601612b21565b91505092915050565b6000819050919050565b612ba481612b91565b8114612baf57600080fd5b50565b600081359050612bc181612b9b565b92915050565b600060ff82169050919050565b612bdd81612bc7565b8114612be857600080fd5b50565b600081359050612bfa81612bd4565b92915050565b60008060008060008060c08789031215612c1d57612c1c61285e565b5b6000612c2b89828a016128e7565b965050602087013567ffffffffffffffff811115612c4c57612c4b612863565b5b612c5889828a01612b63565b9550506040612c6989828a01612bb2565b9450506060612c7a89828a01612beb565b9350506080612c8b89828a01612bb2565b92505060a0612c9c89828a01612bb2565b9150509295509295509295565b600081519050919050565b600082825260208201905092915050565b60005b83811015612ce3578082015181840152602081019050612cc8565b60008484015250505050565b6000612cfa82612ca9565b612d048185612cb4565b9350612d14818560208601612cc5565b612d1d81612a55565b840191505092915050565b60006020820190508181036000830152612d428184612cef565b905092915050565b600060208284031215612d6057612d5f61285e565b5b600082013567ffffffffffffffff811115612d7e57612d7d612863565b5b612d8a84828501612b63565b91505092915050565b600060208284031215612da957612da861285e565b5b6000612db7848285016128e7565b91505092915050565b60008060408385031215612dd757612dd661285e565b5b6000612de5858286016128e7565b925050602083013567ffffffffffffffff811115612e0657612e05612863565b5b612e1285828601612b63565b9150509250929050565b60008060008060808587031215612e3657612e3561285e565b5b6000612e4487828801612bb2565b9450506020612e5587828801612beb565b9350506040612e6687828801612bb2565b9250506060612e7787828801612bb2565b91505092959194509250565b60008060408385031215612e9a57612e9961285e565b5b6000612ea8858286016128e7565b9250506020612eb9858286016128e7565b9150509250929050565b600060208284031215612ed957612ed861285e565b5b6000612ee7848285016128b1565b91505092915050565b600067ffffffffffffffff821115612f0b57612f0a612a66565b5b602082029050602081019050919050565b600080fd5b6000612f34612f2f84612ef0565b612ac6565b90508083825260208201905060208402830185811115612f5757612f56612f1c565b5b835b81811015612f805780612f6c88826128e7565b845260208401935050602081019050612f59565b5050509392505050565b600082601f830112612f9f57612f9e612a4b565b5b8135612faf848260208601612f21565b91505092915050565b600067ffffffffffffffff821115612fd357612fd2612a66565b5b612fdc82612a55565b9050602081019050919050565b6000612ffc612ff784612fb8565b612ac6565b90508281526020810184848401111561301857613017612a50565b5b613023848285612b12565b509392505050565b600082601f8301126130405761303f612a4b565b5b8135613050848260208601612fe9565b91505092915050565b600080600080600060a086880312156130755761307461285e565b5b6000613083888289016128b1565b9550506020613094888289016128b1565b945050604086013567ffffffffffffffff8111156130b5576130b4612863565b5b6130c188828901612f8a565b935050606086013567ffffffffffffffff8111156130e2576130e1612863565b5b6130ee88828901612f8a565b925050608086013567ffffffffffffffff81111561310f5761310e612863565b5b61311b8882890161302b565b9150509295509295909350565b6000806000606084860312156131415761314061285e565b5b600061314f868287016128b1565b9350506020613160868287016128e7565b9250506040613171868287016128e7565b9150509250925092565b6000819050919050565b60006131a061319b61319684612868565b61317b565b612868565b9050919050565b60006131b282613185565b9050919050565b60006131c4826131a7565b9050919050565b6131d4816131b9565b82525050565b60006020820190506131ef60008301846131cb565b92915050565b600067ffffffffffffffff8211156132105761320f612a66565b5b602082029050602081019050919050565b600061323461322f846131f5565b612ac6565b9050808382526020820190506020840283018581111561325757613256612f1c565b5b835b81811015613280578061326c88826128b1565b845260208401935050602081019050613259565b5050509392505050565b600082601f83011261329f5761329e612a4b565b5b81356132af848260208601613221565b91505092915050565b600080604083850312156132cf576132ce61285e565b5b600083013567ffffffffffffffff8111156132ed576132ec612863565b5b6132f98582860161328a565b925050602083013567ffffffffffffffff81111561331a57613319612863565b5b61332685828601612f8a565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613365816128c6565b82525050565b6000613377838361335c565b60208301905092915050565b6000602082019050919050565b600061339b82613330565b6133a5818561333b565b93506133b08361334c565b8060005b838110156133e15781516133c8888261336b565b97506133d383613383565b9250506001810190506133b4565b5085935050505092915050565b600060208201905081810360008301526134088184613390565b905092915050565b613419816129eb565b811461342457600080fd5b50565b60008135905061343681613410565b92915050565b600080604083850312156134535761345261285e565b5b6000613461858286016128b1565b925050602061347285828601613427565b9150509250929050565b600080604083850312156134935761349261285e565b5b60006134a1858286016128b1565b92505060206134b2858286016128b1565b9150509250929050565b600080600080600060a086880312156134d8576134d761285e565b5b60006134e6888289016128b1565b95505060206134f7888289016128b1565b9450506040613508888289016128e7565b9350506060613519888289016128e7565b925050608086013567ffffffffffffffff81111561353a57613539612863565b5b6135468882890161302b565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b60006135af602a83612cb4565b91506135ba82613553565b604082019050919050565b600060208201905081810360008301526135de816135a2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061361f826128c6565b915061362a836128c6565b9250828203905081811115613642576136416135e5565b5b92915050565b7f416c6c6f77204c697374204d696e7420436c6f73656400000000000000000000600082015250565b600061367e601683612cb4565b915061368982613648565b602082019050919050565b600060208201905081810360008301526136ad81613671565b9050919050565b7f4e6f7420456e6f75676820546f6b656e7320537570706c790000000000000000600082015250565b60006136ea601883612cb4565b91506136f5826136b4565b602082019050919050565b60006020820190508181036000830152613719816136dd565b9050919050565b7f5369676e617475726520696e76616c6964000000000000000000000000000000600082015250565b6000613756601183612cb4565b915061376182613720565b602082019050919050565b6000602082019050818103600083015261378581613749565b9050919050565b600081905092915050565b60006137a282612ca9565b6137ac818561378c565b93506137bc818560208601612cc5565b80840191505092915050565b60006137d48284613797565b915081905092915050565b7f416c72656164792072656465656d656400000000000000000000000000000000600082015250565b6000613815601083612cb4565b9150613820826137df565b602082019050919050565b6000602082019050818103600083015261384481613808565b9050919050565b7f4861736820416c72656164792055736564000000000000000000000000000000600082015250565b6000613881601183612cb4565b915061388c8261384b565b602082019050919050565b600060208201905081810360008301526138b081613874565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806138fe57607f821691505b602082108103613911576139106138b7565b5b50919050565b6000613922826128c6565b915061392d836128c6565b9250828201905080821115613945576139446135e5565b5b92915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026139ad7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613970565b6139b78683613970565b95508019841693508086168417925050509392505050565b60006139ea6139e56139e0846128c6565b61317b565b6128c6565b9050919050565b6000819050919050565b613a04836139cf565b613a18613a10826139f1565b84845461397d565b825550505050565b600090565b613a2d613a20565b613a388184846139fb565b505050565b5b81811015613a5c57613a51600082613a25565b600181019050613a3e565b5050565b601f821115613aa157613a728161394b565b613a7b84613960565b81016020851015613a8a578190505b613a9e613a9685613960565b830182613a3d565b50505b505050565b600082821c905092915050565b6000613ac460001984600802613aa6565b1980831691505092915050565b6000613add8383613ab3565b9150826002028217905092915050565b613af682612ca9565b67ffffffffffffffff811115613b0f57613b0e612a66565b5b613b1982546138e6565b613b24828285613a60565b600060209050601f831160018114613b575760008415613b45578287015190505b613b4f8582613ad1565b865550613bb7565b601f198416613b658661394b565b60005b82811015613b8d57848901518255600182019150602085019450602081019050613b68565b86831015613baa5784890151613ba6601f891682613ab3565b8355505b6001600288020188555050505b505050505050565b613bc881612b91565b82525050565b613bd781612bc7565b82525050565b6000608082019050613bf26000830187613bbf565b613bff6020830186613bce565b613c0c6040830185613bbf565b613c196060830184613bbf565b95945050505050565b6000613c2d826128c6565b9150613c38836128c6565b9250828202613c46816128c6565b91508282048414831517613c5d57613c5c6135e5565b5b5092915050565b7f496e73756666696369656e742066756e64730000000000000000000000000000600082015250565b6000613c9a601283612cb4565b9150613ca582613c64565b602082019050919050565b60006020820190508181036000830152613cc981613c8d565b9050919050565b7f4d696e7420636f756e742073686f756c6420626520677265617465722074686160008201527f6e207a65726f0000000000000000000000000000000000000000000000000000602082015250565b6000613d2c602683612cb4565b9150613d3782613cd0565b604082019050919050565b60006020820190508181036000830152613d5b81613d1f565b9050919050565b7f4d617820506572204d696e742069732035000000000000000000000000000000600082015250565b6000613d98601183612cb4565b9150613da382613d62565b602082019050919050565b60006020820190508181036000830152613dc781613d8b565b9050919050565b6000613dd9826128c6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613e0b57613e0a6135e5565b5b600182019050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000613e72602983612cb4565b9150613e7d82613e16565b604082019050919050565b60006020820190508181036000830152613ea181613e65565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613f33602683612cb4565b9150613f3e82613ed7565b604082019050919050565b60006020820190508181036000830152613f6281613f26565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613f9f602083612cb4565b9150613faa82613f69565b602082019050919050565b60006020820190508181036000830152613fce81613f92565b9050919050565b6000604082019050613fea6000830185612a21565b613ff76020830184612a21565b9392505050565b60008151905061400d81613410565b92915050565b6000602082840312156140295761402861285e565b5b600061403784828501613ffe565b91505092915050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b600061409c602e83612cb4565b91506140a782614040565b604082019050919050565b600060208201905081810360008301526140cb8161408f565b9050919050565b600081905092915050565b50565b60006140ed6000836140d2565b91506140f8826140dd565b600082019050919050565b600061410e826140e0565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b600061414e601083612cb4565b915061415982614118565b602082019050919050565b6000602082019050818103600083015261417d81614141565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006141e0602183612cb4565b91506141eb82614184565b604082019050919050565b6000602082019050818103600083015261420f816141d3565b9050919050565b600060408201905061422b600083018561293c565b614238602083018461293c565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600061429b602883612cb4565b91506142a68261423f565b604082019050919050565b600060208201905081810360008301526142ca8161428e565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061432d602583612cb4565b9150614338826142d1565b604082019050919050565b6000602082019050818103600083015261435c81614320565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006143bf602a83612cb4565b91506143ca82614363565b604082019050919050565b600060208201905081810360008301526143ee816143b2565b9050919050565b6000604082019050818103600083015261440f8185613390565b905081810360208301526144238184613390565b90509392505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000614488602983612cb4565b91506144938261442c565b604082019050919050565b600060208201905081810360008301526144b78161447b565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006144e5826144be565b6144ef81856144c9565b93506144ff818560208601612cc5565b61450881612a55565b840191505092915050565b600060a0820190506145286000830188612a21565b6145356020830187612a21565b614542604083018661293c565b61454f606083018561293c565b818103608083015261456181846144da565b90509695505050505050565b60008151905061457c81612992565b92915050565b6000602082840312156145985761459761285e565b5b60006145a68482850161456d565b91505092915050565b60008160e01c9050919050565b600060033d11156145db5760046000803e6145d86000516145af565b90505b90565b600060443d1061466b576145f0612854565b60043d036004823e80513d602482011167ffffffffffffffff8211171561461857505061466b565b808201805167ffffffffffffffff811115614636575050505061466b565b80602083010160043d03850181111561465357505050505061466b565b61466282602001850186612a95565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b60006146ca603483612cb4565b91506146d58261466e565b604082019050919050565b600060208201905081810360008301526146f9816146bd565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b600061475c602883612cb4565b915061476782614700565b604082019050919050565b6000602082019050818103600083015261478b8161474f565b9050919050565b600060a0820190506147a76000830188612a21565b6147b46020830187612a21565b81810360408301526147c68186613390565b905081810360608301526147da8185613390565b905081810360808301526147ee81846144da565b9050969550505050505056fea26469706673582212201aa57eb2551630751c8f1763f112de7f549df3bff259f5ab9ec3df94ad92fc5e64736f6c63430008110033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000c9ac68d37cbb2443fee55695eef6b7b293aa16a6000000000000000000000000000000000000000000000000000000000000000c424743432047656e65736973000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044247434300000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): BGCC Genesis
Arg [1] : _symbol (string): BGCC
Arg [2] : _multiSigOwner (address): 0xC9ac68D37cbB2443Fee55695eEf6b7B293aa16A6

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000c9ac68d37cbb2443fee55695eef6b7b293aa16a6
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [4] : 424743432047656e657369730000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 4247434300000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.