ETH Price: $3,354.84 (-2.75%)
Gas: 3 Gwei

Token

DrugReceipts: DRx Greeting Cards ()
 

Overview

Max Total Supply

779

Holders

528

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x1f2ecd2497e73b1f202f1c26fce89043d4e93b59
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:
Greetingcard

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : Greetingcard.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;

// Uncomment this line to use console.log
// import "hardhat/console.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract Greetingcard is ERC1155, ReentrancyGuard, Ownable {
    using Address for address;

    event MintBatch(address user, uint256[] ids, uint256[] amounts);
    event Mint(address user, uint256 id, uint256 amount);

    mapping(uint256 => mapping(address => bool)) public _mintedAddress;
    IERC721 private drugReceiptToken;

    string public name;
    uint256 public nowTokenId = 0;

    bytes32 public merkleRoot;

    enum State {
        Setup,
        NormalMint,
        whitelistMint,
        PublicMint,
        Finished
    }

    State private _state;

    constructor(address _drugReceiptToken)
        ERC1155("https://batcave.drx.store/drxgreetingcard/token/{}")
    {
        drugReceiptToken = IERC721(_drugReceiptToken);
        _state = State.Setup;
        name = "DrugReceipts: DRx Greeting Cards";
    }

    function setContractName(string memory _name) public onlyOwner {
        name = _name;
    }

    function setMerkleRoot(bytes32 _root) public onlyOwner {
        merkleRoot = _root;
    }

    function setTokenURI(string memory _tokenURI) public onlyOwner {
        _setURI(_tokenURI);
    }

    function getTokenURI(uint256 _id) public view returns (string memory) {
        string memory idToString = Strings.toString(_id);
        string memory uri = uri(_id);
        string memory tokenURI = string(abi.encodePacked(uri, idToString));
        return tokenURI;
    }

    function getClaimStatus(uint256 _tokenId, address _address)
        public
        view
        returns (bool)
    {
        return _mintedAddress[_tokenId][_address];
    }

    function setStateToSetup() public onlyOwner {
        _state = State.Setup;
    }

    function setStateToNormalMint(uint256 _tokenId) public onlyOwner {
        _state = State.NormalMint;
        nowTokenId = _tokenId;
    }

    function setStateToWhitelistMint(uint256 _tokenId) public onlyOwner {
        _state = State.whitelistMint;
        nowTokenId = _tokenId;
    }

    function setStateToPublicMint() public onlyOwner {
        _state = State.PublicMint;
    }

    function setStateToFinished() public onlyOwner {
        _state = State.Finished;
    }

    function setRequiredToken(address _drugReceiptToken) external onlyOwner {
        drugReceiptToken = IERC721(_drugReceiptToken);
    }

    function normalMint() external nonReentrant {
        require(_state == State.NormalMint, "mint is not active");
        require(msg.sender == tx.origin, "mint from contract not allowed");
        require(
            !Address.isContract(msg.sender),
            "contracts are not allowed to mint"
        );
        require(
            drugReceiptToken.balanceOf(msg.sender) > 0,
            "You don't have any drug receipts"
        );

        require(
            _mintedAddress[nowTokenId][msg.sender] == false,
            "already minted with this address"
        );
        _mintedAddress[nowTokenId][msg.sender] = true;

        _mint(msg.sender, nowTokenId, 1, "");
        emit Mint(msg.sender, nowTokenId, 1);
    }

    function whitelistMint(bytes32[] calldata _merkleProof) external nonReentrant {
        require(_state == State.whitelistMint, "mint is not active");
        require(msg.sender == tx.origin, "mint from contract not allowed");
        require(
            !Address.isContract(msg.sender),
            "contracts are not allowed to mint"
        );
        require(
            drugReceiptToken.balanceOf(msg.sender) > 0,
            "You don't have any drug receipts"
        );
        
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "Invalid proof.");

        require(
            _mintedAddress[nowTokenId][msg.sender] == false,
            "already minted with this address"
        );
        _mintedAddress[nowTokenId][msg.sender] = true;

        _mint(msg.sender, nowTokenId, 1, "");
        emit Mint(msg.sender, nowTokenId, 1);
    }

    function publicMint(uint256 _tokenId) external nonReentrant {
        require(_state == State.PublicMint, "mint is not active");
        require(msg.sender == tx.origin, "mint from contract not allowed");
        require(
            !Address.isContract(msg.sender),
            "contracts are not allowed to mint"
        );
        require(
            drugReceiptToken.balanceOf(msg.sender) > 0,
            "You don't have any drug receipts"
        );

        require(
            _mintedAddress[_tokenId][msg.sender] == false,
            "already minted with this address"
        );
        _mintedAddress[_tokenId][msg.sender] = true;

        _mint(msg.sender, _tokenId, 1, "");
        emit Mint(msg.sender, _tokenId, 1);
    }

    function mintBatch(
        address _receiver,
        uint256[] memory ids,
        uint256[] memory amounts
    ) external onlyOwner {
        for (uint8 i = 0; i < ids.length; i++) {
            _mintedAddress[ids[i]][_receiver] = true;
        }
        _mintBatch(_receiver, ids, amounts, "");
        emit MintBatch(_receiver, ids, amounts);
    }

    function airdrop(
        address[] calldata wallets,
        uint256[][] memory ids,
        uint256[][] memory amounts
    ) external onlyOwner {
        unchecked {
            for (uint8 i = 0; i < wallets.length; i++) {
                for (uint8 j = 0; j < ids.length; j++) {
                    _mintedAddress[ids[i][j]][wallets[i]] = true;
                }
                _mintBatch(wallets[i], ids[i], amounts[i], "");
                emit MintBatch(wallets[i], ids[i], amounts[i]);
            }
        }
    }

    function withdrawAll(address recipient) public onlyOwner {
        uint256 balance = address(this).balance;
        payable(recipient).transfer(balance);
    }

    function withdrawAllViaCall(address payable _to) public onlyOwner {
        uint256 balance = address(this).balance;
        (bool sent, ) = _to.call{value: balance}("");
        require(sent, "Failed to send Ether");
    }

    function changeOwnership(address newOwner) public onlyOwner {
        transferOwnership(newOwner);
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

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

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 4 of 15 : 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 5 of 15 : 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 6 of 15 : 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 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 8 of 15 : 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 9 of 15 : 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);
        }
    }
}

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

pragma solidity ^0.8.0;

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

File 11 of 15 : 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 12 of 15 : 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 13 of 15 : 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 14 of 15 : 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 15 of 15 : 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;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_drugReceiptToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"MintBatch","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":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"_mintedAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"wallets","type":"address[]"},{"internalType":"uint256[][]","name":"ids","type":"uint256[][]"},{"internalType":"uint256[][]","name":"amounts","type":"uint256[][]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","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":"address","name":"newOwner","type":"address"}],"name":"changeOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"getClaimStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"normalMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nowTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"nonpayable","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":"id","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":"string","name":"_name","type":"string"}],"name":"setContractName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_drugReceiptToken","type":"address"}],"name":"setRequiredToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setStateToFinished","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"setStateToNormalMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setStateToPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setStateToSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"setStateToWhitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdrawAllViaCall","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260006008553480156200001657600080fd5b5060405162005b7d38038062005b7d83398181016040528101906200003c91906200029a565b60405180606001604052806032815260200162005b4b6032913962000067816200014d60201b60201c565b50600160038190555062000090620000846200016260201b60201c565b6200016a60201b60201c565b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600a60006101000a81548160ff02191690836004811115620000fa57620000f9620002cc565b5b02179055506040518060400160405280602081526020017f4472756752656365697074733a20445278204772656574696e672043617264738152506007908162000145919062000575565b50506200065c565b80600290816200015e919062000575565b5050565b600033905090565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002628262000235565b9050919050565b620002748162000255565b81146200028057600080fd5b50565b600081519050620002948162000269565b92915050565b600060208284031215620002b357620002b262000230565b5b6000620002c38482850162000283565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200037d57607f821691505b60208210810362000393576200039262000335565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620003fd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620003be565b620004098683620003be565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000456620004506200044a8462000421565b6200042b565b62000421565b9050919050565b6000819050919050565b620004728362000435565b6200048a62000481826200045d565b848454620003cb565b825550505050565b600090565b620004a162000492565b620004ae81848462000467565b505050565b5b81811015620004d657620004ca60008262000497565b600181019050620004b4565b5050565b601f8211156200052557620004ef8162000399565b620004fa84620003ae565b810160208510156200050a578190505b620005226200051985620003ae565b830182620004b3565b50505b505050565b600082821c905092915050565b60006200054a600019846008026200052a565b1980831691505092915050565b600062000565838362000537565b9150826002028217905092915050565b6200058082620002fb565b67ffffffffffffffff8111156200059c576200059b62000306565b5b620005a8825462000364565b620005b5828285620004da565b600060209050601f831160018114620005ed5760008415620005d8578287015190505b620005e4858262000557565b86555062000654565b601f198416620005fd8662000399565b60005b82811015620006275784890151825560018201915060208501945060208101905062000600565b8683101562000647578489015162000643601f89168262000537565b8355505b6001600288020188555050505b505050505050565b6154df806200066c6000396000f3fe608060405234801561001057600080fd5b50600436106102055760003560e01c8063715018a61161011a578063baef8103116100ad578063e0df5b6f1161007c578063e0df5b6f14610570578063e985e9c51461058c578063f242432a146105bc578063f2fde38b146105d8578063fa09e630146105f457610205565b8063baef8103146104ec578063bd5d48a91461051c578063d81d0a1514610538578063dcc34a991461055457610205565b80639f0568e6116100e95780639f0568e6146104a0578063a22cb465146104aa578063a905821a146104c6578063b0384ea1146104e257610205565b8063715018a6146104405780637cb647591461044a5780638da5cb5b1461046657806396377e291461048457610205565b80632db115441161019d5780633a64cdde1161016c5780633a64cdde146103765780633bb3a24d146103a657806349087d90146103d65780634e1273f4146103f25780634f8f0a041461042257610205565b80632db11544146103045780632eb2c2d6146103205780632eb4a7ab1461033c578063372f657c1461035a57610205565b80630e89341c116101d95780630e89341c146102a457806323af8827146102d45780632abadeca146102de5780632af4c31e146102e857610205565b8062fdd58e1461020a57806301ffc9a71461023a57806306fdde031461026a5780630b5ee00614610288575b600080fd5b610224600480360381019061021f91906133ee565b610610565b604051610231919061343d565b60405180910390f35b610254600480360381019061024f91906134b0565b6106d8565b60405161026191906134f8565b60405180910390f35b6102726107ba565b60405161027f91906135a3565b60405180910390f35b6102a2600480360381019061029d91906136fa565b610848565b005b6102be60048036038101906102b99190613743565b610863565b6040516102cb91906135a3565b60405180910390f35b6102dc6108f7565b005b6102e661092c565b005b61030260048036038101906102fd9190613770565b610cb6565b005b61031e60048036038101906103199190613743565b610cca565b005b61033a60048036038101906103359190613906565b61104d565b005b6103446110ee565b60405161035191906139ee565b60405180910390f35b610374600480360381019061036f9190613a64565b6110f4565b005b610390600480360381019061038b9190613ab1565b611539565b60405161039d91906134f8565b60405180910390f35b6103c060048036038101906103bb9190613743565b611568565b6040516103cd91906135a3565b60405180910390f35b6103f060048036038101906103eb9190613743565b6115b5565b005b61040c60048036038101906104079190613bb4565b6115f2565b6040516104199190613cea565b60405180910390f35b61042a61170b565b604051610437919061343d565b60405180910390f35b610448611711565b005b610464600480360381019061045f9190613d38565b611725565b005b61046e611737565b60405161047b9190613d74565b60405180910390f35b61049e60048036038101906104999190613ec6565b611761565b005b6104a8611996565b005b6104c460048036038101906104bf9190613f9e565b6119cb565b005b6104e060048036038101906104db919061401c565b6119e1565b005b6104ea611a9f565b005b61050660048036038101906105019190613ab1565b611ad4565b60405161051391906134f8565b60405180910390f35b61053660048036038101906105319190613743565b611b3c565b005b610552600480360381019061054d9190614049565b611b79565b005b61056e60048036038101906105699190613770565b611c85565b005b61058a600480360381019061058591906136fa565b611cd1565b005b6105a660048036038101906105a191906140d4565b611ce5565b6040516105b391906134f8565b60405180910390f35b6105d660048036038101906105d19190614114565b611d79565b005b6105f260048036038101906105ed9190613770565b611e1a565b005b61060e60048036038101906106099190613770565b611e9d565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610680576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061421d565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107a357507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107b357506107b282611ef5565b5b9050919050565b600780546107c79061426c565b80601f01602080910402602001604051908101604052809291908181526020018280546107f39061426c565b80156108405780601f1061081557610100808354040283529160200191610840565b820191906000526020600020905b81548152906001019060200180831161082357829003601f168201915b505050505081565b610850611f5f565b806007908161085f9190614449565b5050565b6060600280546108729061426c565b80601f016020809104026020016040519081016040528092919081815260200182805461089e9061426c565b80156108eb5780601f106108c0576101008083540402835291602001916108eb565b820191906000526020600020905b8154815290600101906020018083116108ce57829003601f168201915b50505050509050919050565b6108ff611f5f565b6000600a60006101000a81548160ff021916908360048111156109255761092461451b565b5b0217905550565b610934611fdd565b600160048111156109485761094761451b565b5b600a60009054906101000a900460ff16600481111561096a5761096961451b565b5b146109aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a190614596565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0f90614602565b60405180910390fd5b610a213361202c565b15610a61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5890614694565b60405180910390fd5b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610abe9190613d74565b602060405180830381865afa158015610adb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aff91906146c9565b11610b3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3690614742565b60405180910390fd5b6000151560056000600854815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610be5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bdc906147ae565b60405180910390fd5b600160056000600854815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610c6e3360085460016040518060200160405280600081525061204f565b7f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f336008546001604051610ca493929190614809565b60405180910390a1610cb46121ff565b565b610cbe611f5f565b610cc781611e1a565b50565b610cd2611fdd565b60036004811115610ce657610ce561451b565b5b600a60009054906101000a900460ff166004811115610d0857610d0761451b565b5b14610d48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3f90614596565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610db6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dad90614602565b60405180910390fd5b610dbf3361202c565b15610dff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df690614694565b60405180910390fd5b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610e5c9190613d74565b602060405180830381865afa158015610e79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9d91906146c9565b11610edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed490614742565b60405180910390fd5b600015156005600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f78906147ae565b60405180910390fd5b60016005600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611006338260016040518060200160405280600081525061204f565b7f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f3382600160405161103a93929190614809565b60405180910390a161104a6121ff565b50565b611055612209565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061109b575061109a85611095612209565b611ce5565b5b6110da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d1906148b2565b60405180910390fd5b6110e78585858585612211565b5050505050565b60095481565b6110fc611fdd565b600260048111156111105761110f61451b565b5b600a60009054906101000a900460ff1660048111156111325761113161451b565b5b14611172576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116990614596565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d790614602565b60405180910390fd5b6111e93361202c565b15611229576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122090614694565b60405180910390fd5b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016112869190613d74565b602060405180830381865afa1580156112a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c791906146c9565b11611307576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fe90614742565b60405180910390fd5b60003360405160200161131a919061491a565b604051602081830303815290604052805190602001209050611380838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060095483612532565b6113bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b690614981565b60405180910390fd5b6000151560056000600854815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145c906147ae565b60405180910390fd5b600160056000600854815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506114ee3360085460016040518060200160405280600081525061204f565b7f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f33600854600160405161152493929190614809565b60405180910390a1506115356121ff565b5050565b60056020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b6060600061157583612549565b9050600061158284610863565b9050600081836040516020016115999291906149dd565b6040516020818303038152906040529050809350505050919050565b6115bd611f5f565b6002600a60006101000a81548160ff021916908360048111156115e3576115e261451b565b5b02179055508060088190555050565b60608151835114611638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162f90614a73565b60405180910390fd5b6000835167ffffffffffffffff811115611655576116546135cf565b5b6040519080825280602002602001820160405280156116835781602001602082028036833780820191505090505b50905060005b8451811015611700576116d08582815181106116a8576116a7614a93565b5b60200260200101518583815181106116c3576116c2614a93565b5b6020026020010151610610565b8282815181106116e3576116e2614a93565b5b602002602001018181525050806116f990614af1565b9050611689565b508091505092915050565b60085481565b611719611f5f565b6117236000612617565b565b61172d611f5f565b8060098190555050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611769611f5f565b60005b848490508160ff16101561198f5760005b83518160ff16101561186357600160056000868560ff16815181106117a5576117a4614a93565b5b60200260200101518460ff16815181106117c2576117c1614a93565b5b60200260200101518152602001908152602001600020600088888660ff168181106117f0576117ef614a93565b5b90506020020160208101906118059190613770565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550808060010191505061177d565b506118e385858360ff1681811061187d5761187c614a93565b5b90506020020160208101906118929190613770565b848360ff16815181106118a8576118a7614a93565b5b6020026020010151848460ff16815181106118c6576118c5614a93565b5b6020026020010151604051806020016040528060008152506126dd565b7f7744fed36cc2f077e8639e4f0ede59b6ade28587835e9d5d97a21e186f28479685858360ff1681811061191a57611919614a93565b5b905060200201602081019061192f9190613770565b848360ff168151811061194557611944614a93565b5b6020026020010151848460ff168151811061196357611962614a93565b5b602002602001015160405161197a93929190614b39565b60405180910390a1808060010191505061176c565b5050505050565b61199e611f5f565b6003600a60006101000a81548160ff021916908360048111156119c4576119c361451b565b5b0217905550565b6119dd6119d6612209565b8383612909565b5050565b6119e9611f5f565b600047905060008273ffffffffffffffffffffffffffffffffffffffff1682604051611a1490614baf565b60006040518083038185875af1925050503d8060008114611a51576040519150601f19603f3d011682016040523d82523d6000602084013e611a56565b606091505b5050905080611a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9190614c10565b60405180910390fd5b505050565b611aa7611f5f565b6004600a60006101000a81548160ff02191690836004811115611acd57611acc61451b565b5b0217905550565b60006005600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b44611f5f565b6001600a60006101000a81548160ff02191690836004811115611b6a57611b6961451b565b5b02179055508060088190555050565b611b81611f5f565b60005b82518160ff161015611c2957600160056000858460ff1681518110611bac57611bab614a93565b5b6020026020010151815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611c2190614c3d565b915050611b84565b50611c45838383604051806020016040528060008152506126dd565b7f7744fed36cc2f077e8639e4f0ede59b6ade28587835e9d5d97a21e186f284796838383604051611c7893929190614b39565b60405180910390a1505050565b611c8d611f5f565b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611cd9611f5f565b611ce281612a75565b50565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611d81612209565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611dc75750611dc685611dc1612209565b611ce5565b5b611e06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dfd906148b2565b60405180910390fd5b611e138585858585612a88565b5050505050565b611e22611f5f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8890614cd8565b60405180910390fd5b611e9a81612617565b50565b611ea5611f5f565b60004790508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611ef0573d6000803e3d6000fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611f67612209565b73ffffffffffffffffffffffffffffffffffffffff16611f85611737565b73ffffffffffffffffffffffffffffffffffffffff1614611fdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd290614d44565b60405180910390fd5b565b600260035403612022576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201990614db0565b60405180910390fd5b6002600381905550565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036120be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b590614e42565b60405180910390fd5b60006120c8612209565b905060006120d585612d23565b905060006120e285612d23565b90506120f383600089858589612d9d565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121529190614e62565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516121d0929190614e96565b60405180910390a46121e783600089858589612da5565b6121f683600089898989612dad565b50505050505050565b6001600381905550565b600033905090565b8151835114612255576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224c90614f31565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036122c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122bb90614fc3565b60405180910390fd5b60006122ce612209565b90506122de818787878787612d9d565b60005b845181101561248f5760008582815181106122ff576122fe614a93565b5b60200260200101519050600085838151811061231e5761231d614a93565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156123bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b690615055565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124749190614e62565b925050819055505050508061248890614af1565b90506122e1565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612506929190615075565b60405180910390a461251c818787878787612da5565b61252a818787878787612f84565b505050505050565b60008261253f858461315b565b1490509392505050565b606060006001612558846131b1565b01905060008167ffffffffffffffff811115612577576125766135cf565b5b6040519080825280601f01601f1916602001820160405280156125a95781602001600182028036833780820191505090505b509050600082602001820190505b60011561260c578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612600576125ff6150ac565b5b049450600085036125b7575b819350505050919050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361274c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274390614e42565b60405180910390fd5b8151835114612790576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278790614f31565b60405180910390fd5b600061279a612209565b90506127ab81600087878787612d9d565b60005b8451811015612864578381815181106127ca576127c9614a93565b5b60200260200101516000808784815181106127e8576127e7614a93565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461284a9190614e62565b92505081905550808061285c90614af1565b9150506127ae565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516128dc929190615075565b60405180910390a46128f381600087878787612da5565b61290281600087878787612f84565b5050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296e9061514d565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a6891906134f8565b60405180910390a3505050565b8060029081612a849190614449565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612af7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aee90614fc3565b60405180910390fd5b6000612b01612209565b90506000612b0e85612d23565b90506000612b1b85612d23565b9050612b2b838989858589612d9d565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb990615055565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c779190614e62565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612cf4929190614e96565b60405180910390a4612d0a848a8a86868a612da5565b612d18848a8a8a8a8a612dad565b505050505050505050565b60606000600167ffffffffffffffff811115612d4257612d416135cf565b5b604051908082528060200260200182016040528015612d705781602001602082028036833780820191505090505b5090508281600081518110612d8857612d87614a93565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b612dcc8473ffffffffffffffffffffffffffffffffffffffff1661202c565b15612f7c578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612e129594939291906151c2565b6020604051808303816000875af1925050508015612e4e57506040513d601f19601f82011682018060405250810190612e4b9190615231565b60015b612ef357612e5a61526b565b806308c379a003612eb65750612e6e61528d565b80612e795750612eb8565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ead91906135a3565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eea9061538f565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612f7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7190615421565b60405180910390fd5b505b505050505050565b612fa38473ffffffffffffffffffffffffffffffffffffffff1661202c565b15613153578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612fe9959493929190615441565b6020604051808303816000875af192505050801561302557506040513d601f19601f820116820180604052508101906130229190615231565b60015b6130ca5761303161526b565b806308c379a00361308d575061304561528d565b80613050575061308f565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161308491906135a3565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130c19061538f565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613151576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314890615421565b60405180910390fd5b505b505050505050565b60008082905060005b84518110156131a6576131918286838151811061318457613183614a93565b5b6020026020010151613304565b9150808061319e90614af1565b915050613164565b508091505092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061320f577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613205576132046150ac565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061324c576d04ee2d6d415b85acef81000000008381613242576132416150ac565b5b0492506020810190505b662386f26fc10000831061327b57662386f26fc100008381613271576132706150ac565b5b0492506010810190505b6305f5e10083106132a4576305f5e100838161329a576132996150ac565b5b0492506008810190505b61271083106132c95761271083816132bf576132be6150ac565b5b0492506004810190505b606483106132ec57606483816132e2576132e16150ac565b5b0492506002810190505b600a83106132fb576001810190505b80915050919050565b600081831061331c57613317828461332f565b613327565b613326838361332f565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006133858261335a565b9050919050565b6133958161337a565b81146133a057600080fd5b50565b6000813590506133b28161338c565b92915050565b6000819050919050565b6133cb816133b8565b81146133d657600080fd5b50565b6000813590506133e8816133c2565b92915050565b6000806040838503121561340557613404613350565b5b6000613413858286016133a3565b9250506020613424858286016133d9565b9150509250929050565b613437816133b8565b82525050565b6000602082019050613452600083018461342e565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61348d81613458565b811461349857600080fd5b50565b6000813590506134aa81613484565b92915050565b6000602082840312156134c6576134c5613350565b5b60006134d48482850161349b565b91505092915050565b60008115159050919050565b6134f2816134dd565b82525050565b600060208201905061350d60008301846134e9565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561354d578082015181840152602081019050613532565b60008484015250505050565b6000601f19601f8301169050919050565b600061357582613513565b61357f818561351e565b935061358f81856020860161352f565b61359881613559565b840191505092915050565b600060208201905081810360008301526135bd818461356a565b905092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61360782613559565b810181811067ffffffffffffffff82111715613626576136256135cf565b5b80604052505050565b6000613639613346565b905061364582826135fe565b919050565b600067ffffffffffffffff821115613665576136646135cf565b5b61366e82613559565b9050602081019050919050565b82818337600083830152505050565b600061369d6136988461364a565b61362f565b9050828152602081018484840111156136b9576136b86135ca565b5b6136c484828561367b565b509392505050565b600082601f8301126136e1576136e06135c5565b5b81356136f184826020860161368a565b91505092915050565b6000602082840312156137105761370f613350565b5b600082013567ffffffffffffffff81111561372e5761372d613355565b5b61373a848285016136cc565b91505092915050565b60006020828403121561375957613758613350565b5b6000613767848285016133d9565b91505092915050565b60006020828403121561378657613785613350565b5b6000613794848285016133a3565b91505092915050565b600067ffffffffffffffff8211156137b8576137b76135cf565b5b602082029050602081019050919050565b600080fd5b60006137e16137dc8461379d565b61362f565b90508083825260208201905060208402830185811115613804576138036137c9565b5b835b8181101561382d578061381988826133d9565b845260208401935050602081019050613806565b5050509392505050565b600082601f83011261384c5761384b6135c5565b5b813561385c8482602086016137ce565b91505092915050565b600067ffffffffffffffff8211156138805761387f6135cf565b5b61388982613559565b9050602081019050919050565b60006138a96138a484613865565b61362f565b9050828152602081018484840111156138c5576138c46135ca565b5b6138d084828561367b565b509392505050565b600082601f8301126138ed576138ec6135c5565b5b81356138fd848260208601613896565b91505092915050565b600080600080600060a0868803121561392257613921613350565b5b6000613930888289016133a3565b9550506020613941888289016133a3565b945050604086013567ffffffffffffffff81111561396257613961613355565b5b61396e88828901613837565b935050606086013567ffffffffffffffff81111561398f5761398e613355565b5b61399b88828901613837565b925050608086013567ffffffffffffffff8111156139bc576139bb613355565b5b6139c8888289016138d8565b9150509295509295909350565b6000819050919050565b6139e8816139d5565b82525050565b6000602082019050613a0360008301846139df565b92915050565b600080fd5b60008083601f840112613a2457613a236135c5565b5b8235905067ffffffffffffffff811115613a4157613a40613a09565b5b602083019150836020820283011115613a5d57613a5c6137c9565b5b9250929050565b60008060208385031215613a7b57613a7a613350565b5b600083013567ffffffffffffffff811115613a9957613a98613355565b5b613aa585828601613a0e565b92509250509250929050565b60008060408385031215613ac857613ac7613350565b5b6000613ad6858286016133d9565b9250506020613ae7858286016133a3565b9150509250929050565b600067ffffffffffffffff821115613b0c57613b0b6135cf565b5b602082029050602081019050919050565b6000613b30613b2b84613af1565b61362f565b90508083825260208201905060208402830185811115613b5357613b526137c9565b5b835b81811015613b7c5780613b6888826133a3565b845260208401935050602081019050613b55565b5050509392505050565b600082601f830112613b9b57613b9a6135c5565b5b8135613bab848260208601613b1d565b91505092915050565b60008060408385031215613bcb57613bca613350565b5b600083013567ffffffffffffffff811115613be957613be8613355565b5b613bf585828601613b86565b925050602083013567ffffffffffffffff811115613c1657613c15613355565b5b613c2285828601613837565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613c61816133b8565b82525050565b6000613c738383613c58565b60208301905092915050565b6000602082019050919050565b6000613c9782613c2c565b613ca18185613c37565b9350613cac83613c48565b8060005b83811015613cdd578151613cc48882613c67565b9750613ccf83613c7f565b925050600181019050613cb0565b5085935050505092915050565b60006020820190508181036000830152613d048184613c8c565b905092915050565b613d15816139d5565b8114613d2057600080fd5b50565b600081359050613d3281613d0c565b92915050565b600060208284031215613d4e57613d4d613350565b5b6000613d5c84828501613d23565b91505092915050565b613d6e8161337a565b82525050565b6000602082019050613d896000830184613d65565b92915050565b60008083601f840112613da557613da46135c5565b5b8235905067ffffffffffffffff811115613dc257613dc1613a09565b5b602083019150836020820283011115613dde57613ddd6137c9565b5b9250929050565b600067ffffffffffffffff821115613e0057613dff6135cf565b5b602082029050602081019050919050565b6000613e24613e1f84613de5565b61362f565b90508083825260208201905060208402830185811115613e4757613e466137c9565b5b835b81811015613e8e57803567ffffffffffffffff811115613e6c57613e6b6135c5565b5b808601613e798982613837565b85526020850194505050602081019050613e49565b5050509392505050565b600082601f830112613ead57613eac6135c5565b5b8135613ebd848260208601613e11565b91505092915050565b60008060008060608587031215613ee057613edf613350565b5b600085013567ffffffffffffffff811115613efe57613efd613355565b5b613f0a87828801613d8f565b9450945050602085013567ffffffffffffffff811115613f2d57613f2c613355565b5b613f3987828801613e98565b925050604085013567ffffffffffffffff811115613f5a57613f59613355565b5b613f6687828801613e98565b91505092959194509250565b613f7b816134dd565b8114613f8657600080fd5b50565b600081359050613f9881613f72565b92915050565b60008060408385031215613fb557613fb4613350565b5b6000613fc3858286016133a3565b9250506020613fd485828601613f89565b9150509250929050565b6000613fe98261335a565b9050919050565b613ff981613fde565b811461400457600080fd5b50565b60008135905061401681613ff0565b92915050565b60006020828403121561403257614031613350565b5b600061404084828501614007565b91505092915050565b60008060006060848603121561406257614061613350565b5b6000614070868287016133a3565b935050602084013567ffffffffffffffff81111561409157614090613355565b5b61409d86828701613837565b925050604084013567ffffffffffffffff8111156140be576140bd613355565b5b6140ca86828701613837565b9150509250925092565b600080604083850312156140eb576140ea613350565b5b60006140f9858286016133a3565b925050602061410a858286016133a3565b9150509250929050565b600080600080600060a086880312156141305761412f613350565b5b600061413e888289016133a3565b955050602061414f888289016133a3565b9450506040614160888289016133d9565b9350506060614171888289016133d9565b925050608086013567ffffffffffffffff81111561419257614191613355565b5b61419e888289016138d8565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000614207602a8361351e565b9150614212826141ab565b604082019050919050565b60006020820190508181036000830152614236816141fa565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061428457607f821691505b6020821081036142975761429661423d565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026142ff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826142c2565b61430986836142c2565b95508019841693508086168417925050509392505050565b6000819050919050565b600061434661434161433c846133b8565b614321565b6133b8565b9050919050565b6000819050919050565b6143608361432b565b61437461436c8261434d565b8484546142cf565b825550505050565b600090565b61438961437c565b614394818484614357565b505050565b5b818110156143b8576143ad600082614381565b60018101905061439a565b5050565b601f8211156143fd576143ce8161429d565b6143d7846142b2565b810160208510156143e6578190505b6143fa6143f2856142b2565b830182614399565b50505b505050565b600082821c905092915050565b600061442060001984600802614402565b1980831691505092915050565b6000614439838361440f565b9150826002028217905092915050565b61445282613513565b67ffffffffffffffff81111561446b5761446a6135cf565b5b614475825461426c565b6144808282856143bc565b600060209050601f8311600181146144b357600084156144a1578287015190505b6144ab858261442d565b865550614513565b601f1984166144c18661429d565b60005b828110156144e9578489015182556001820191506020850194506020810190506144c4565b868310156145065784890151614502601f89168261440f565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f6d696e74206973206e6f74206163746976650000000000000000000000000000600082015250565b600061458060128361351e565b915061458b8261454a565b602082019050919050565b600060208201905081810360008301526145af81614573565b9050919050565b7f6d696e742066726f6d20636f6e7472616374206e6f7420616c6c6f7765640000600082015250565b60006145ec601e8361351e565b91506145f7826145b6565b602082019050919050565b6000602082019050818103600083015261461b816145df565b9050919050565b7f636f6e74726163747320617265206e6f7420616c6c6f77656420746f206d696e60008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b600061467e60218361351e565b915061468982614622565b604082019050919050565b600060208201905081810360008301526146ad81614671565b9050919050565b6000815190506146c3816133c2565b92915050565b6000602082840312156146df576146de613350565b5b60006146ed848285016146b4565b91505092915050565b7f596f7520646f6e2774206861766520616e792064727567207265636569707473600082015250565b600061472c60208361351e565b9150614737826146f6565b602082019050919050565b6000602082019050818103600083015261475b8161471f565b9050919050565b7f616c7265616479206d696e746564207769746820746869732061646472657373600082015250565b600061479860208361351e565b91506147a382614762565b602082019050919050565b600060208201905081810360008301526147c78161478b565b9050919050565b6000819050919050565b60006147f36147ee6147e9846147ce565b614321565b6133b8565b9050919050565b614803816147d8565b82525050565b600060608201905061481e6000830186613d65565b61482b602083018561342e565b61483860408301846147fa565b949350505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b600061489c602e8361351e565b91506148a782614840565b604082019050919050565b600060208201905081810360008301526148cb8161488f565b9050919050565b60008160601b9050919050565b60006148ea826148d2565b9050919050565b60006148fc826148df565b9050919050565b61491461490f8261337a565b6148f1565b82525050565b60006149268284614903565b60148201915081905092915050565b7f496e76616c69642070726f6f662e000000000000000000000000000000000000600082015250565b600061496b600e8361351e565b915061497682614935565b602082019050919050565b6000602082019050818103600083015261499a8161495e565b9050919050565b600081905092915050565b60006149b782613513565b6149c181856149a1565b93506149d181856020860161352f565b80840191505092915050565b60006149e982856149ac565b91506149f582846149ac565b91508190509392505050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000614a5d60298361351e565b9150614a6882614a01565b604082019050919050565b60006020820190508181036000830152614a8c81614a50565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614afc826133b8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614b2e57614b2d614ac2565b5b600182019050919050565b6000606082019050614b4e6000830186613d65565b8181036020830152614b608185613c8c565b90508181036040830152614b748184613c8c565b9050949350505050565b600081905092915050565b50565b6000614b99600083614b7e565b9150614ba482614b89565b600082019050919050565b6000614bba82614b8c565b9150819050919050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b6000614bfa60148361351e565b9150614c0582614bc4565b602082019050919050565b60006020820190508181036000830152614c2981614bed565b9050919050565b600060ff82169050919050565b6000614c4882614c30565b915060ff8203614c5b57614c5a614ac2565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614cc260268361351e565b9150614ccd82614c66565b604082019050919050565b60006020820190508181036000830152614cf181614cb5565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d2e60208361351e565b9150614d3982614cf8565b602082019050919050565b60006020820190508181036000830152614d5d81614d21565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614d9a601f8361351e565b9150614da582614d64565b602082019050919050565b60006020820190508181036000830152614dc981614d8d565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614e2c60218361351e565b9150614e3782614dd0565b604082019050919050565b60006020820190508181036000830152614e5b81614e1f565b9050919050565b6000614e6d826133b8565b9150614e78836133b8565b9250828201905080821115614e9057614e8f614ac2565b5b92915050565b6000604082019050614eab600083018561342e565b614eb8602083018461342e565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000614f1b60288361351e565b9150614f2682614ebf565b604082019050919050565b60006020820190508181036000830152614f4a81614f0e565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614fad60258361351e565b9150614fb882614f51565b604082019050919050565b60006020820190508181036000830152614fdc81614fa0565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b600061503f602a8361351e565b915061504a82614fe3565b604082019050919050565b6000602082019050818103600083015261506e81615032565b9050919050565b6000604082019050818103600083015261508f8185613c8c565b905081810360208301526150a38184613c8c565b90509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b600061513760298361351e565b9150615142826150db565b604082019050919050565b600060208201905081810360008301526151668161512a565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006151948261516d565b61519e8185615178565b93506151ae81856020860161352f565b6151b781613559565b840191505092915050565b600060a0820190506151d76000830188613d65565b6151e46020830187613d65565b6151f1604083018661342e565b6151fe606083018561342e565b81810360808301526152108184615189565b90509695505050505050565b60008151905061522b81613484565b92915050565b60006020828403121561524757615246613350565b5b60006152558482850161521c565b91505092915050565b60008160e01c9050919050565b600060033d111561528a5760046000803e61528760005161525e565b90505b90565b600060443d1061531a5761529f613346565b60043d036004823e80513d602482011167ffffffffffffffff821117156152c757505061531a565b808201805167ffffffffffffffff8111156152e5575050505061531a565b80602083010160043d03850181111561530257505050505061531a565b615311826020018501866135fe565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b600061537960348361351e565b91506153848261531d565b604082019050919050565b600060208201905081810360008301526153a88161536c565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b600061540b60288361351e565b9150615416826153af565b604082019050919050565b6000602082019050818103600083015261543a816153fe565b9050919050565b600060a0820190506154566000830188613d65565b6154636020830187613d65565b81810360408301526154758186613c8c565b905081810360608301526154898185613c8c565b9050818103608083015261549d8184615189565b9050969550505050505056fea264697066735822122095c7e6da168ab6ba67b1820f2926ec3efefb67d72745bd800c9f67cee6d6f76b64736f6c6343000811003368747470733a2f2f626174636176652e6472782e73746f72652f6472786772656574696e67636172642f746f6b656e2f7b7d00000000000000000000000000ea2894fe840f105ab99a8f8f75b1f17e94843a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102055760003560e01c8063715018a61161011a578063baef8103116100ad578063e0df5b6f1161007c578063e0df5b6f14610570578063e985e9c51461058c578063f242432a146105bc578063f2fde38b146105d8578063fa09e630146105f457610205565b8063baef8103146104ec578063bd5d48a91461051c578063d81d0a1514610538578063dcc34a991461055457610205565b80639f0568e6116100e95780639f0568e6146104a0578063a22cb465146104aa578063a905821a146104c6578063b0384ea1146104e257610205565b8063715018a6146104405780637cb647591461044a5780638da5cb5b1461046657806396377e291461048457610205565b80632db115441161019d5780633a64cdde1161016c5780633a64cdde146103765780633bb3a24d146103a657806349087d90146103d65780634e1273f4146103f25780634f8f0a041461042257610205565b80632db11544146103045780632eb2c2d6146103205780632eb4a7ab1461033c578063372f657c1461035a57610205565b80630e89341c116101d95780630e89341c146102a457806323af8827146102d45780632abadeca146102de5780632af4c31e146102e857610205565b8062fdd58e1461020a57806301ffc9a71461023a57806306fdde031461026a5780630b5ee00614610288575b600080fd5b610224600480360381019061021f91906133ee565b610610565b604051610231919061343d565b60405180910390f35b610254600480360381019061024f91906134b0565b6106d8565b60405161026191906134f8565b60405180910390f35b6102726107ba565b60405161027f91906135a3565b60405180910390f35b6102a2600480360381019061029d91906136fa565b610848565b005b6102be60048036038101906102b99190613743565b610863565b6040516102cb91906135a3565b60405180910390f35b6102dc6108f7565b005b6102e661092c565b005b61030260048036038101906102fd9190613770565b610cb6565b005b61031e60048036038101906103199190613743565b610cca565b005b61033a60048036038101906103359190613906565b61104d565b005b6103446110ee565b60405161035191906139ee565b60405180910390f35b610374600480360381019061036f9190613a64565b6110f4565b005b610390600480360381019061038b9190613ab1565b611539565b60405161039d91906134f8565b60405180910390f35b6103c060048036038101906103bb9190613743565b611568565b6040516103cd91906135a3565b60405180910390f35b6103f060048036038101906103eb9190613743565b6115b5565b005b61040c60048036038101906104079190613bb4565b6115f2565b6040516104199190613cea565b60405180910390f35b61042a61170b565b604051610437919061343d565b60405180910390f35b610448611711565b005b610464600480360381019061045f9190613d38565b611725565b005b61046e611737565b60405161047b9190613d74565b60405180910390f35b61049e60048036038101906104999190613ec6565b611761565b005b6104a8611996565b005b6104c460048036038101906104bf9190613f9e565b6119cb565b005b6104e060048036038101906104db919061401c565b6119e1565b005b6104ea611a9f565b005b61050660048036038101906105019190613ab1565b611ad4565b60405161051391906134f8565b60405180910390f35b61053660048036038101906105319190613743565b611b3c565b005b610552600480360381019061054d9190614049565b611b79565b005b61056e60048036038101906105699190613770565b611c85565b005b61058a600480360381019061058591906136fa565b611cd1565b005b6105a660048036038101906105a191906140d4565b611ce5565b6040516105b391906134f8565b60405180910390f35b6105d660048036038101906105d19190614114565b611d79565b005b6105f260048036038101906105ed9190613770565b611e1a565b005b61060e60048036038101906106099190613770565b611e9d565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610680576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061421d565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107a357507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107b357506107b282611ef5565b5b9050919050565b600780546107c79061426c565b80601f01602080910402602001604051908101604052809291908181526020018280546107f39061426c565b80156108405780601f1061081557610100808354040283529160200191610840565b820191906000526020600020905b81548152906001019060200180831161082357829003601f168201915b505050505081565b610850611f5f565b806007908161085f9190614449565b5050565b6060600280546108729061426c565b80601f016020809104026020016040519081016040528092919081815260200182805461089e9061426c565b80156108eb5780601f106108c0576101008083540402835291602001916108eb565b820191906000526020600020905b8154815290600101906020018083116108ce57829003601f168201915b50505050509050919050565b6108ff611f5f565b6000600a60006101000a81548160ff021916908360048111156109255761092461451b565b5b0217905550565b610934611fdd565b600160048111156109485761094761451b565b5b600a60009054906101000a900460ff16600481111561096a5761096961451b565b5b146109aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a190614596565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0f90614602565b60405180910390fd5b610a213361202c565b15610a61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5890614694565b60405180910390fd5b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610abe9190613d74565b602060405180830381865afa158015610adb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aff91906146c9565b11610b3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3690614742565b60405180910390fd5b6000151560056000600854815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610be5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bdc906147ae565b60405180910390fd5b600160056000600854815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610c6e3360085460016040518060200160405280600081525061204f565b7f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f336008546001604051610ca493929190614809565b60405180910390a1610cb46121ff565b565b610cbe611f5f565b610cc781611e1a565b50565b610cd2611fdd565b60036004811115610ce657610ce561451b565b5b600a60009054906101000a900460ff166004811115610d0857610d0761451b565b5b14610d48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3f90614596565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610db6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dad90614602565b60405180910390fd5b610dbf3361202c565b15610dff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df690614694565b60405180910390fd5b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610e5c9190613d74565b602060405180830381865afa158015610e79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9d91906146c9565b11610edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed490614742565b60405180910390fd5b600015156005600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f78906147ae565b60405180910390fd5b60016005600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611006338260016040518060200160405280600081525061204f565b7f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f3382600160405161103a93929190614809565b60405180910390a161104a6121ff565b50565b611055612209565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061109b575061109a85611095612209565b611ce5565b5b6110da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d1906148b2565b60405180910390fd5b6110e78585858585612211565b5050505050565b60095481565b6110fc611fdd565b600260048111156111105761110f61451b565b5b600a60009054906101000a900460ff1660048111156111325761113161451b565b5b14611172576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116990614596565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d790614602565b60405180910390fd5b6111e93361202c565b15611229576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122090614694565b60405180910390fd5b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016112869190613d74565b602060405180830381865afa1580156112a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c791906146c9565b11611307576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fe90614742565b60405180910390fd5b60003360405160200161131a919061491a565b604051602081830303815290604052805190602001209050611380838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060095483612532565b6113bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b690614981565b60405180910390fd5b6000151560056000600854815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145c906147ae565b60405180910390fd5b600160056000600854815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506114ee3360085460016040518060200160405280600081525061204f565b7f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f33600854600160405161152493929190614809565b60405180910390a1506115356121ff565b5050565b60056020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b6060600061157583612549565b9050600061158284610863565b9050600081836040516020016115999291906149dd565b6040516020818303038152906040529050809350505050919050565b6115bd611f5f565b6002600a60006101000a81548160ff021916908360048111156115e3576115e261451b565b5b02179055508060088190555050565b60608151835114611638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162f90614a73565b60405180910390fd5b6000835167ffffffffffffffff811115611655576116546135cf565b5b6040519080825280602002602001820160405280156116835781602001602082028036833780820191505090505b50905060005b8451811015611700576116d08582815181106116a8576116a7614a93565b5b60200260200101518583815181106116c3576116c2614a93565b5b6020026020010151610610565b8282815181106116e3576116e2614a93565b5b602002602001018181525050806116f990614af1565b9050611689565b508091505092915050565b60085481565b611719611f5f565b6117236000612617565b565b61172d611f5f565b8060098190555050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611769611f5f565b60005b848490508160ff16101561198f5760005b83518160ff16101561186357600160056000868560ff16815181106117a5576117a4614a93565b5b60200260200101518460ff16815181106117c2576117c1614a93565b5b60200260200101518152602001908152602001600020600088888660ff168181106117f0576117ef614a93565b5b90506020020160208101906118059190613770565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550808060010191505061177d565b506118e385858360ff1681811061187d5761187c614a93565b5b90506020020160208101906118929190613770565b848360ff16815181106118a8576118a7614a93565b5b6020026020010151848460ff16815181106118c6576118c5614a93565b5b6020026020010151604051806020016040528060008152506126dd565b7f7744fed36cc2f077e8639e4f0ede59b6ade28587835e9d5d97a21e186f28479685858360ff1681811061191a57611919614a93565b5b905060200201602081019061192f9190613770565b848360ff168151811061194557611944614a93565b5b6020026020010151848460ff168151811061196357611962614a93565b5b602002602001015160405161197a93929190614b39565b60405180910390a1808060010191505061176c565b5050505050565b61199e611f5f565b6003600a60006101000a81548160ff021916908360048111156119c4576119c361451b565b5b0217905550565b6119dd6119d6612209565b8383612909565b5050565b6119e9611f5f565b600047905060008273ffffffffffffffffffffffffffffffffffffffff1682604051611a1490614baf565b60006040518083038185875af1925050503d8060008114611a51576040519150601f19603f3d011682016040523d82523d6000602084013e611a56565b606091505b5050905080611a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9190614c10565b60405180910390fd5b505050565b611aa7611f5f565b6004600a60006101000a81548160ff02191690836004811115611acd57611acc61451b565b5b0217905550565b60006005600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b44611f5f565b6001600a60006101000a81548160ff02191690836004811115611b6a57611b6961451b565b5b02179055508060088190555050565b611b81611f5f565b60005b82518160ff161015611c2957600160056000858460ff1681518110611bac57611bab614a93565b5b6020026020010151815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611c2190614c3d565b915050611b84565b50611c45838383604051806020016040528060008152506126dd565b7f7744fed36cc2f077e8639e4f0ede59b6ade28587835e9d5d97a21e186f284796838383604051611c7893929190614b39565b60405180910390a1505050565b611c8d611f5f565b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611cd9611f5f565b611ce281612a75565b50565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611d81612209565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611dc75750611dc685611dc1612209565b611ce5565b5b611e06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dfd906148b2565b60405180910390fd5b611e138585858585612a88565b5050505050565b611e22611f5f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8890614cd8565b60405180910390fd5b611e9a81612617565b50565b611ea5611f5f565b60004790508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611ef0573d6000803e3d6000fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611f67612209565b73ffffffffffffffffffffffffffffffffffffffff16611f85611737565b73ffffffffffffffffffffffffffffffffffffffff1614611fdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd290614d44565b60405180910390fd5b565b600260035403612022576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201990614db0565b60405180910390fd5b6002600381905550565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036120be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b590614e42565b60405180910390fd5b60006120c8612209565b905060006120d585612d23565b905060006120e285612d23565b90506120f383600089858589612d9d565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121529190614e62565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516121d0929190614e96565b60405180910390a46121e783600089858589612da5565b6121f683600089898989612dad565b50505050505050565b6001600381905550565b600033905090565b8151835114612255576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224c90614f31565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036122c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122bb90614fc3565b60405180910390fd5b60006122ce612209565b90506122de818787878787612d9d565b60005b845181101561248f5760008582815181106122ff576122fe614a93565b5b60200260200101519050600085838151811061231e5761231d614a93565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156123bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b690615055565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124749190614e62565b925050819055505050508061248890614af1565b90506122e1565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612506929190615075565b60405180910390a461251c818787878787612da5565b61252a818787878787612f84565b505050505050565b60008261253f858461315b565b1490509392505050565b606060006001612558846131b1565b01905060008167ffffffffffffffff811115612577576125766135cf565b5b6040519080825280601f01601f1916602001820160405280156125a95781602001600182028036833780820191505090505b509050600082602001820190505b60011561260c578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612600576125ff6150ac565b5b049450600085036125b7575b819350505050919050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361274c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274390614e42565b60405180910390fd5b8151835114612790576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278790614f31565b60405180910390fd5b600061279a612209565b90506127ab81600087878787612d9d565b60005b8451811015612864578381815181106127ca576127c9614a93565b5b60200260200101516000808784815181106127e8576127e7614a93565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461284a9190614e62565b92505081905550808061285c90614af1565b9150506127ae565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516128dc929190615075565b60405180910390a46128f381600087878787612da5565b61290281600087878787612f84565b5050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296e9061514d565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a6891906134f8565b60405180910390a3505050565b8060029081612a849190614449565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612af7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aee90614fc3565b60405180910390fd5b6000612b01612209565b90506000612b0e85612d23565b90506000612b1b85612d23565b9050612b2b838989858589612d9d565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb990615055565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c779190614e62565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612cf4929190614e96565b60405180910390a4612d0a848a8a86868a612da5565b612d18848a8a8a8a8a612dad565b505050505050505050565b60606000600167ffffffffffffffff811115612d4257612d416135cf565b5b604051908082528060200260200182016040528015612d705781602001602082028036833780820191505090505b5090508281600081518110612d8857612d87614a93565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b612dcc8473ffffffffffffffffffffffffffffffffffffffff1661202c565b15612f7c578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612e129594939291906151c2565b6020604051808303816000875af1925050508015612e4e57506040513d601f19601f82011682018060405250810190612e4b9190615231565b60015b612ef357612e5a61526b565b806308c379a003612eb65750612e6e61528d565b80612e795750612eb8565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ead91906135a3565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eea9061538f565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612f7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7190615421565b60405180910390fd5b505b505050505050565b612fa38473ffffffffffffffffffffffffffffffffffffffff1661202c565b15613153578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612fe9959493929190615441565b6020604051808303816000875af192505050801561302557506040513d601f19601f820116820180604052508101906130229190615231565b60015b6130ca5761303161526b565b806308c379a00361308d575061304561528d565b80613050575061308f565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161308491906135a3565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130c19061538f565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613151576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314890615421565b60405180910390fd5b505b505050505050565b60008082905060005b84518110156131a6576131918286838151811061318457613183614a93565b5b6020026020010151613304565b9150808061319e90614af1565b915050613164565b508091505092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061320f577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613205576132046150ac565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061324c576d04ee2d6d415b85acef81000000008381613242576132416150ac565b5b0492506020810190505b662386f26fc10000831061327b57662386f26fc100008381613271576132706150ac565b5b0492506010810190505b6305f5e10083106132a4576305f5e100838161329a576132996150ac565b5b0492506008810190505b61271083106132c95761271083816132bf576132be6150ac565b5b0492506004810190505b606483106132ec57606483816132e2576132e16150ac565b5b0492506002810190505b600a83106132fb576001810190505b80915050919050565b600081831061331c57613317828461332f565b613327565b613326838361332f565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006133858261335a565b9050919050565b6133958161337a565b81146133a057600080fd5b50565b6000813590506133b28161338c565b92915050565b6000819050919050565b6133cb816133b8565b81146133d657600080fd5b50565b6000813590506133e8816133c2565b92915050565b6000806040838503121561340557613404613350565b5b6000613413858286016133a3565b9250506020613424858286016133d9565b9150509250929050565b613437816133b8565b82525050565b6000602082019050613452600083018461342e565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61348d81613458565b811461349857600080fd5b50565b6000813590506134aa81613484565b92915050565b6000602082840312156134c6576134c5613350565b5b60006134d48482850161349b565b91505092915050565b60008115159050919050565b6134f2816134dd565b82525050565b600060208201905061350d60008301846134e9565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561354d578082015181840152602081019050613532565b60008484015250505050565b6000601f19601f8301169050919050565b600061357582613513565b61357f818561351e565b935061358f81856020860161352f565b61359881613559565b840191505092915050565b600060208201905081810360008301526135bd818461356a565b905092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61360782613559565b810181811067ffffffffffffffff82111715613626576136256135cf565b5b80604052505050565b6000613639613346565b905061364582826135fe565b919050565b600067ffffffffffffffff821115613665576136646135cf565b5b61366e82613559565b9050602081019050919050565b82818337600083830152505050565b600061369d6136988461364a565b61362f565b9050828152602081018484840111156136b9576136b86135ca565b5b6136c484828561367b565b509392505050565b600082601f8301126136e1576136e06135c5565b5b81356136f184826020860161368a565b91505092915050565b6000602082840312156137105761370f613350565b5b600082013567ffffffffffffffff81111561372e5761372d613355565b5b61373a848285016136cc565b91505092915050565b60006020828403121561375957613758613350565b5b6000613767848285016133d9565b91505092915050565b60006020828403121561378657613785613350565b5b6000613794848285016133a3565b91505092915050565b600067ffffffffffffffff8211156137b8576137b76135cf565b5b602082029050602081019050919050565b600080fd5b60006137e16137dc8461379d565b61362f565b90508083825260208201905060208402830185811115613804576138036137c9565b5b835b8181101561382d578061381988826133d9565b845260208401935050602081019050613806565b5050509392505050565b600082601f83011261384c5761384b6135c5565b5b813561385c8482602086016137ce565b91505092915050565b600067ffffffffffffffff8211156138805761387f6135cf565b5b61388982613559565b9050602081019050919050565b60006138a96138a484613865565b61362f565b9050828152602081018484840111156138c5576138c46135ca565b5b6138d084828561367b565b509392505050565b600082601f8301126138ed576138ec6135c5565b5b81356138fd848260208601613896565b91505092915050565b600080600080600060a0868803121561392257613921613350565b5b6000613930888289016133a3565b9550506020613941888289016133a3565b945050604086013567ffffffffffffffff81111561396257613961613355565b5b61396e88828901613837565b935050606086013567ffffffffffffffff81111561398f5761398e613355565b5b61399b88828901613837565b925050608086013567ffffffffffffffff8111156139bc576139bb613355565b5b6139c8888289016138d8565b9150509295509295909350565b6000819050919050565b6139e8816139d5565b82525050565b6000602082019050613a0360008301846139df565b92915050565b600080fd5b60008083601f840112613a2457613a236135c5565b5b8235905067ffffffffffffffff811115613a4157613a40613a09565b5b602083019150836020820283011115613a5d57613a5c6137c9565b5b9250929050565b60008060208385031215613a7b57613a7a613350565b5b600083013567ffffffffffffffff811115613a9957613a98613355565b5b613aa585828601613a0e565b92509250509250929050565b60008060408385031215613ac857613ac7613350565b5b6000613ad6858286016133d9565b9250506020613ae7858286016133a3565b9150509250929050565b600067ffffffffffffffff821115613b0c57613b0b6135cf565b5b602082029050602081019050919050565b6000613b30613b2b84613af1565b61362f565b90508083825260208201905060208402830185811115613b5357613b526137c9565b5b835b81811015613b7c5780613b6888826133a3565b845260208401935050602081019050613b55565b5050509392505050565b600082601f830112613b9b57613b9a6135c5565b5b8135613bab848260208601613b1d565b91505092915050565b60008060408385031215613bcb57613bca613350565b5b600083013567ffffffffffffffff811115613be957613be8613355565b5b613bf585828601613b86565b925050602083013567ffffffffffffffff811115613c1657613c15613355565b5b613c2285828601613837565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613c61816133b8565b82525050565b6000613c738383613c58565b60208301905092915050565b6000602082019050919050565b6000613c9782613c2c565b613ca18185613c37565b9350613cac83613c48565b8060005b83811015613cdd578151613cc48882613c67565b9750613ccf83613c7f565b925050600181019050613cb0565b5085935050505092915050565b60006020820190508181036000830152613d048184613c8c565b905092915050565b613d15816139d5565b8114613d2057600080fd5b50565b600081359050613d3281613d0c565b92915050565b600060208284031215613d4e57613d4d613350565b5b6000613d5c84828501613d23565b91505092915050565b613d6e8161337a565b82525050565b6000602082019050613d896000830184613d65565b92915050565b60008083601f840112613da557613da46135c5565b5b8235905067ffffffffffffffff811115613dc257613dc1613a09565b5b602083019150836020820283011115613dde57613ddd6137c9565b5b9250929050565b600067ffffffffffffffff821115613e0057613dff6135cf565b5b602082029050602081019050919050565b6000613e24613e1f84613de5565b61362f565b90508083825260208201905060208402830185811115613e4757613e466137c9565b5b835b81811015613e8e57803567ffffffffffffffff811115613e6c57613e6b6135c5565b5b808601613e798982613837565b85526020850194505050602081019050613e49565b5050509392505050565b600082601f830112613ead57613eac6135c5565b5b8135613ebd848260208601613e11565b91505092915050565b60008060008060608587031215613ee057613edf613350565b5b600085013567ffffffffffffffff811115613efe57613efd613355565b5b613f0a87828801613d8f565b9450945050602085013567ffffffffffffffff811115613f2d57613f2c613355565b5b613f3987828801613e98565b925050604085013567ffffffffffffffff811115613f5a57613f59613355565b5b613f6687828801613e98565b91505092959194509250565b613f7b816134dd565b8114613f8657600080fd5b50565b600081359050613f9881613f72565b92915050565b60008060408385031215613fb557613fb4613350565b5b6000613fc3858286016133a3565b9250506020613fd485828601613f89565b9150509250929050565b6000613fe98261335a565b9050919050565b613ff981613fde565b811461400457600080fd5b50565b60008135905061401681613ff0565b92915050565b60006020828403121561403257614031613350565b5b600061404084828501614007565b91505092915050565b60008060006060848603121561406257614061613350565b5b6000614070868287016133a3565b935050602084013567ffffffffffffffff81111561409157614090613355565b5b61409d86828701613837565b925050604084013567ffffffffffffffff8111156140be576140bd613355565b5b6140ca86828701613837565b9150509250925092565b600080604083850312156140eb576140ea613350565b5b60006140f9858286016133a3565b925050602061410a858286016133a3565b9150509250929050565b600080600080600060a086880312156141305761412f613350565b5b600061413e888289016133a3565b955050602061414f888289016133a3565b9450506040614160888289016133d9565b9350506060614171888289016133d9565b925050608086013567ffffffffffffffff81111561419257614191613355565b5b61419e888289016138d8565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000614207602a8361351e565b9150614212826141ab565b604082019050919050565b60006020820190508181036000830152614236816141fa565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061428457607f821691505b6020821081036142975761429661423d565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026142ff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826142c2565b61430986836142c2565b95508019841693508086168417925050509392505050565b6000819050919050565b600061434661434161433c846133b8565b614321565b6133b8565b9050919050565b6000819050919050565b6143608361432b565b61437461436c8261434d565b8484546142cf565b825550505050565b600090565b61438961437c565b614394818484614357565b505050565b5b818110156143b8576143ad600082614381565b60018101905061439a565b5050565b601f8211156143fd576143ce8161429d565b6143d7846142b2565b810160208510156143e6578190505b6143fa6143f2856142b2565b830182614399565b50505b505050565b600082821c905092915050565b600061442060001984600802614402565b1980831691505092915050565b6000614439838361440f565b9150826002028217905092915050565b61445282613513565b67ffffffffffffffff81111561446b5761446a6135cf565b5b614475825461426c565b6144808282856143bc565b600060209050601f8311600181146144b357600084156144a1578287015190505b6144ab858261442d565b865550614513565b601f1984166144c18661429d565b60005b828110156144e9578489015182556001820191506020850194506020810190506144c4565b868310156145065784890151614502601f89168261440f565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f6d696e74206973206e6f74206163746976650000000000000000000000000000600082015250565b600061458060128361351e565b915061458b8261454a565b602082019050919050565b600060208201905081810360008301526145af81614573565b9050919050565b7f6d696e742066726f6d20636f6e7472616374206e6f7420616c6c6f7765640000600082015250565b60006145ec601e8361351e565b91506145f7826145b6565b602082019050919050565b6000602082019050818103600083015261461b816145df565b9050919050565b7f636f6e74726163747320617265206e6f7420616c6c6f77656420746f206d696e60008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b600061467e60218361351e565b915061468982614622565b604082019050919050565b600060208201905081810360008301526146ad81614671565b9050919050565b6000815190506146c3816133c2565b92915050565b6000602082840312156146df576146de613350565b5b60006146ed848285016146b4565b91505092915050565b7f596f7520646f6e2774206861766520616e792064727567207265636569707473600082015250565b600061472c60208361351e565b9150614737826146f6565b602082019050919050565b6000602082019050818103600083015261475b8161471f565b9050919050565b7f616c7265616479206d696e746564207769746820746869732061646472657373600082015250565b600061479860208361351e565b91506147a382614762565b602082019050919050565b600060208201905081810360008301526147c78161478b565b9050919050565b6000819050919050565b60006147f36147ee6147e9846147ce565b614321565b6133b8565b9050919050565b614803816147d8565b82525050565b600060608201905061481e6000830186613d65565b61482b602083018561342e565b61483860408301846147fa565b949350505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b600061489c602e8361351e565b91506148a782614840565b604082019050919050565b600060208201905081810360008301526148cb8161488f565b9050919050565b60008160601b9050919050565b60006148ea826148d2565b9050919050565b60006148fc826148df565b9050919050565b61491461490f8261337a565b6148f1565b82525050565b60006149268284614903565b60148201915081905092915050565b7f496e76616c69642070726f6f662e000000000000000000000000000000000000600082015250565b600061496b600e8361351e565b915061497682614935565b602082019050919050565b6000602082019050818103600083015261499a8161495e565b9050919050565b600081905092915050565b60006149b782613513565b6149c181856149a1565b93506149d181856020860161352f565b80840191505092915050565b60006149e982856149ac565b91506149f582846149ac565b91508190509392505050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000614a5d60298361351e565b9150614a6882614a01565b604082019050919050565b60006020820190508181036000830152614a8c81614a50565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614afc826133b8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614b2e57614b2d614ac2565b5b600182019050919050565b6000606082019050614b4e6000830186613d65565b8181036020830152614b608185613c8c565b90508181036040830152614b748184613c8c565b9050949350505050565b600081905092915050565b50565b6000614b99600083614b7e565b9150614ba482614b89565b600082019050919050565b6000614bba82614b8c565b9150819050919050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b6000614bfa60148361351e565b9150614c0582614bc4565b602082019050919050565b60006020820190508181036000830152614c2981614bed565b9050919050565b600060ff82169050919050565b6000614c4882614c30565b915060ff8203614c5b57614c5a614ac2565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614cc260268361351e565b9150614ccd82614c66565b604082019050919050565b60006020820190508181036000830152614cf181614cb5565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d2e60208361351e565b9150614d3982614cf8565b602082019050919050565b60006020820190508181036000830152614d5d81614d21565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614d9a601f8361351e565b9150614da582614d64565b602082019050919050565b60006020820190508181036000830152614dc981614d8d565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614e2c60218361351e565b9150614e3782614dd0565b604082019050919050565b60006020820190508181036000830152614e5b81614e1f565b9050919050565b6000614e6d826133b8565b9150614e78836133b8565b9250828201905080821115614e9057614e8f614ac2565b5b92915050565b6000604082019050614eab600083018561342e565b614eb8602083018461342e565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000614f1b60288361351e565b9150614f2682614ebf565b604082019050919050565b60006020820190508181036000830152614f4a81614f0e565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614fad60258361351e565b9150614fb882614f51565b604082019050919050565b60006020820190508181036000830152614fdc81614fa0565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b600061503f602a8361351e565b915061504a82614fe3565b604082019050919050565b6000602082019050818103600083015261506e81615032565b9050919050565b6000604082019050818103600083015261508f8185613c8c565b905081810360208301526150a38184613c8c565b90509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b600061513760298361351e565b9150615142826150db565b604082019050919050565b600060208201905081810360008301526151668161512a565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006151948261516d565b61519e8185615178565b93506151ae81856020860161352f565b6151b781613559565b840191505092915050565b600060a0820190506151d76000830188613d65565b6151e46020830187613d65565b6151f1604083018661342e565b6151fe606083018561342e565b81810360808301526152108184615189565b90509695505050505050565b60008151905061522b81613484565b92915050565b60006020828403121561524757615246613350565b5b60006152558482850161521c565b91505092915050565b60008160e01c9050919050565b600060033d111561528a5760046000803e61528760005161525e565b90505b90565b600060443d1061531a5761529f613346565b60043d036004823e80513d602482011167ffffffffffffffff821117156152c757505061531a565b808201805167ffffffffffffffff8111156152e5575050505061531a565b80602083010160043d03850181111561530257505050505061531a565b615311826020018501866135fe565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b600061537960348361351e565b91506153848261531d565b604082019050919050565b600060208201905081810360008301526153a88161536c565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b600061540b60288361351e565b9150615416826153af565b604082019050919050565b6000602082019050818103600083015261543a816153fe565b9050919050565b600060a0820190506154566000830188613d65565b6154636020830187613d65565b81810360408301526154758186613c8c565b905081810360608301526154898185613c8c565b9050818103608083015261549d8184615189565b9050969550505050505056fea264697066735822122095c7e6da168ab6ba67b1820f2926ec3efefb67d72745bd800c9f67cee6d6f76b64736f6c63430008110033

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

00000000000000000000000000ea2894fe840f105ab99a8f8f75b1f17e94843a

-----Decoded View---------------
Arg [0] : _drugReceiptToken (address): 0x00Ea2894FE840F105ab99A8f8F75B1F17e94843A

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000ea2894fe840f105ab99a8f8f75b1f17e94843a


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.