FTM Testnet

Contract

0xCFa778071BAd55BA6c893B3Fa5683F2231d3464F

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo0 FTM

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Update Storage U...263598942024-07-14 12:34:295 days ago1720960469IN
0xCFa77807...231d3464F
0 FTM0.000901331.025001
Update Storage U...263598902024-07-14 12:33:525 days ago1720960432IN
0xCFa77807...231d3464F
0 FTM0.000901381.025062
Update Storage U...263598892024-07-14 12:33:355 days ago1720960415IN
0xCFa77807...231d3464F
0 FTM0.000901331.025001
Update Storage U...263598822024-07-14 12:31:495 days ago1720960309IN
0xCFa77807...231d3464F
0 FTM0.000901331.025001
Update Storage U...263598752024-07-14 12:28:155 days ago1720960095IN
0xCFa77807...231d3464F
0 FTM0.000901331.025001
Update Storage U...263598662024-07-14 12:24:045 days ago1720959844IN
0xCFa77807...231d3464F
0 FTM0.000901331.025001
Update Storage U...263598462024-07-14 12:14:215 days ago1720959261IN
0xCFa77807...231d3464F
0 FTM0.000944991.025001
Update Storage U...263598412024-07-14 12:12:055 days ago1720959125IN
0xCFa77807...231d3464F
0 FTM0.000905751.025065
Update Storage U...263598402024-07-14 12:12:035 days ago1720959123IN
0xCFa77807...231d3464F
0 FTM0.0009451.025001
Mint263598002024-07-14 11:52:225 days ago1720957942IN
0xCFa77807...231d3464F
0 FTM0.003897171.025001
Mint263597972024-07-14 11:51:195 days ago1720957879IN
0xCFa77807...231d3464F
0 FTM0.003897211.025011
Mint263534642024-07-12 13:08:547 days ago1720789734IN
0xCFa77807...231d3464F
0 FTM0.003917451.025001
Add Extra Conten...263534162024-07-12 12:58:547 days ago1720789134IN
0xCFa77807...231d3464F
0 FTM0.000121591.025062
Update Storage U...263534152024-07-12 12:58:487 days ago1720789128IN
0xCFa77807...231d3464F
0 FTM0.000901331.025001
Update Storage U...263534132024-07-12 12:58:067 days ago1720789086IN
0xCFa77807...231d3464F
0 FTM0.000944991.025001
Mint263534092024-07-12 12:56:237 days ago1720788983IN
0xCFa77807...231d3464F
0 FTM0.003917471.025004
Mint263533922024-07-12 12:51:327 days ago1720788692IN
0xCFa77807...231d3464F
0 FTM0.003917431.025031
Update Storage U...263487272024-07-11 22:15:328 days ago1720736132IN
0xCFa77807...231d3464F
0 FTM0.000901231.025062
Update Storage U...263487262024-07-11 22:15:288 days ago1720736128IN
0xCFa77807...231d3464F
0 FTM0.000901191.025001
Update Storage U...263486922024-07-11 22:11:048 days ago1720735864IN
0xCFa77807...231d3464F
0 FTM0.000944871.02503
Update Storage U...263468212024-07-11 17:25:008 days ago1720718700IN
0xCFa77807...231d3464F
0 FTM0.000901181.025001
Update Storage U...263466972024-07-11 17:06:108 days ago1720717570IN
0xCFa77807...231d3464F
0 FTM0.000901181.025015
Update Storage U...263466922024-07-11 17:05:178 days ago1720717517IN
0xCFa77807...231d3464F
0 FTM0.000901181.025013
Update Storage U...263466702024-07-11 17:02:108 days ago1720717330IN
0xCFa77807...231d3464F
0 FTM0.000901171.02501
Update Storage U...263466652024-07-11 17:01:528 days ago1720717312IN
0xCFa77807...231d3464F
0 FTM0.000901171.025008
View all transactions

Latest 2 internal transactions

Parent Transaction Hash Block From To
263465492024-07-11 16:43:278 days ago1720716207
0xCFa77807...231d3464F
24 FTM
263275992024-07-09 13:15:1210 days ago1720530912  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PX

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 23 : PX.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./ISubscriptionOwner.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "./libraries/PXStorage.sol";
import "./libraries/PXUtils.sol";

contract PX is ERC165, ISubscriptionOwner, ERC721URIStorage, Ownable {

    using Strings for uint256;
    using SafeMath for uint256;
    using Counters for Counters.Counter;
    // Counters to keep track of token IDs, package IDs, and bandwidth package IDs
    Counters.Counter public _tokenIds;
    Counters.Counter public _packageIds;
    Counters.Counter public _bandwidthPackageIds;
    // Mappings to store package information, token storage data, and free package status
    mapping(address => PXStorage.FreePackage) public pxFreePackage;
    mapping(uint256 => PXStorage.Storage) public pxStorage;
    mapping(uint256 => PXStorage.StoragePackage) public pxStoragePackage;
    mapping(uint256 => PXStorage.BandwidthPackage) public pxBandwidthPackage;
    // Variables to manage contract state and configuration
    uint256 public paused = 0;
    uint256 public freePackageSize = 100; // 100MB
    uint256 private constant _maxPercentage = 100;
    uint256[] public packageIds;
    uint256[] public bandwidthPackageIds;

    // Constructor to initialize the contract with a default free package
    constructor() ERC721("PollinationX", "PXS") {
        pxStoragePackage[0].id = 0;
        pxStoragePackage[0].name = "100MB";
        pxStoragePackage[0].price = 0;
        pxStoragePackage[0].size = freePackageSize;
        pxStoragePackage[0].sizeInBytes = 104857600;
        pxStoragePackage[0].storageUnit = "MB";
        pxStoragePackage[0].active = 1;
        pxStoragePackage[0].bandwidthLimit = 25;
        packageIds.push(0);
    }

    // Function to mint a new token with a specified package
    function mint(uint256 packageId) public payable virtual {
        require(paused == 0);
        require(pxStoragePackage[packageId].active == 1);

        uint256 mintPrice = pxStoragePackage[packageId].price;

        if (msg.sender != owner()) {
            require(msg.value == mintPrice);
        }

        if (packageId == 0) {
            require(
                pxFreePackage[msg.sender].alreadyMinted != 1,
                "Already minted"
            );
            pxFreePackage[msg.sender].alreadyMinted = 1;
        }

        _tokenIds.increment();
        uint256 newItemId = _tokenIds.current();
        _safeMint(msg.sender, newItemId);

        // Initialize storage data for the new token
        pxStorage[newItemId].name = pxStoragePackage[packageId].name;
        pxStorage[newItemId].usage = 0;
        pxStorage[newItemId].usagePercentage = 0;
        pxStorage[newItemId].size = pxStoragePackage[packageId].size;
        pxStorage[newItemId].bandwidth = pxStoragePackage[packageId].bandwidthLimit;
        pxStorage[newItemId].storageUnit = pxStoragePackage[packageId]
            .storageUnit;
        pxStorage[newItemId].sizeInBytes = pxStoragePackage[packageId]
            .sizeInBytes;
        pxStorage[newItemId].buyTimestamp = block.timestamp;
        pxStorage[newItemId].lastUpdateTimestamp = block.timestamp;
        _setTokenURI(
            newItemId,
            PXStorage.getTokenURI(
                pxStorage,
                newItemId,
                0,
                pxStoragePackage[packageId].size,
                pxStorage[newItemId].storageUnit
            )
        );
    }

    // Function to pause or unpause the contract 1: paused, 0: active
    function pause(uint256 state) public onlyOwner {
        paused = state;
    }
    // Function to withdraw contract balance to the owner's address
    function withdraw() public payable onlyOwner {
        (bool success, ) = payable(msg.sender).call{
                value: address(this).balance
            }("");
        require(success);
    }

    // Function to update storage usage for a token
    function updateStorageUsage(
        uint256 tokenId,
        uint256 usageInBytes,
        uint256 bandwidth
    ) public {
        require(_exists(tokenId));
        require(
            _isApprovedOrOwner(_msgSender(), tokenId) || owner() == _msgSender(),
            "!owner"
        );

        uint256 newUsage = (pxStorage[tokenId].usage).add(usageInBytes);

        require(newUsage <= pxStorage[tokenId].sizeInBytes, "Storage full");
        require(pxStorage[tokenId].bandwidth > 0, "No bandwidth");

        uint256 currentBandwidth = pxStorage[tokenId].bandwidth;
        uint256 newBandwidth = currentBandwidth > bandwidth ? pxStorage[tokenId].bandwidth.sub(bandwidth) : 0;

        // Update token storage data
        pxStorage[tokenId].usage = newUsage;
        pxStorage[tokenId].lastUpdateTimestamp = block.timestamp;
        pxStorage[tokenId].bandwidth = newBandwidth;
        pxStorage[tokenId].usagePercentage = PXUtils.calculatePercentageDifference(
            pxStorage[tokenId].sizeInBytes,
            newUsage
        );
        _setTokenURI(
            tokenId,
            PXStorage.getTokenURI(
                pxStorage,
                tokenId,
                pxStorage[tokenId].usagePercentage,
                pxStorage[tokenId].size,
                pxStorage[tokenId].storageUnit
            )
        );
    }

    // Function to unlock uploading for a token by updating the timestamp
    function unlockUploading(
        uint256 tokenId
    ) external onlyOwner {
        require(_exists(tokenId));
        pxStorage[tokenId].lastUpdateTimestamp = block.timestamp;
    }

    // Function to get storage usage in bytes for a token
    function getStorageUsageInBytes(
        uint256 tokenId
    ) external view returns (uint256) {
        return pxStorage[tokenId].usage;
    }

    // Function to check if a token owner can upload data
//    function canUpload(
//        uint256 tokenId,
//        uint256 newUsage
//    ) public view returns (bool) {
//        return PXStorage.canUpload(pxStorage, tokenId, newUsage);
//    }

    function canUpload(
        uint256 tokenId,
        uint256 newUsage
    ) public view returns (bool canUploadStatus, bool sizeOrBandwidthExceeded, bool timestampLock) {
        return PXStorage.canUpload(pxStorage, tokenId, newUsage);
    }

    // Function to add a new storage package
    function addNewPackage(
        uint256 priceInWeiValue,
        uint256 sizeInGb,
        uint256 bandwidthLimit
    ) external onlyOwner {
        _packageIds.increment();
        uint256 newPackageId = _packageIds.current();
        PXStorage.addNewPackage(
            pxStoragePackage,
            packageIds,
            newPackageId,
            priceInWeiValue,
            sizeInGb,
            bandwidthLimit
        );
    }

    // Function to add a new bandwidth package
    function addNewBandwidthPackage(
        uint256 priceInWeiValue,
        uint256 bandwidthLimit
    ) external onlyOwner {
        uint256 newPackageId = _bandwidthPackageIds.current();
        PXStorage.addNewBandwidthPackage(
            pxBandwidthPackage,
            bandwidthPackageIds,
            newPackageId,
            priceInWeiValue,
            bandwidthLimit
        );
        _bandwidthPackageIds.increment();
    }

    // Function to upgrade the storage package of a token
    function upgradeTokenPackage(
        uint256 tokenId,
        uint256 packageId
    ) public payable virtual {
        require(_isApprovedOrOwner(_msgSender(), tokenId));
        require(
            pxStoragePackage[packageId].sizeInBytes >
            pxStorage[tokenId].sizeInBytes);

        uint256 mintPrice = pxStoragePackage[packageId].price;
        require(msg.value == mintPrice, "Storage price");

        // Update token storage data to reflect the upgraded package
        pxStorage[tokenId].usagePercentage = PXUtils.calculatePercentageDifference(
            pxStoragePackage[packageId].sizeInBytes,
            pxStorage[tokenId].usage
        );
        pxStorage[tokenId].size = pxStoragePackage[packageId].size;
        pxStorage[tokenId].bandwidth = pxStorage[tokenId].bandwidth.add(pxStoragePackage[packageId].bandwidthLimit);
        pxStorage[tokenId].storageUnit = pxStoragePackage[packageId]
            .storageUnit;
        pxStorage[tokenId].sizeInBytes = pxStoragePackage[packageId]
            .sizeInBytes;
        pxStorage[tokenId].lastUpdateTimestamp = block.timestamp;
        _setTokenURI(
            tokenId,
            PXStorage.getTokenURI(
                pxStorage,
                tokenId,
                pxStorage[tokenId].usagePercentage,
                pxStorage[tokenId].size,
                pxStorage[tokenId].storageUnit
            )
        );
    }

    // Function to purchase more bandwidth for a token
    function buyMoreBandwidth(
        uint256 tokenId,
        uint256 bandwidthPackageId
    ) public payable virtual {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "!owner");

        uint256 mintPrice = pxBandwidthPackage[bandwidthPackageId].price;
        require(msg.value == mintPrice, "Bandwidth price");

        // Update token bandwidth data
        pxStorage[tokenId].bandwidth = pxStorage[tokenId].bandwidth.add(pxBandwidthPackage[bandwidthPackageId].bandwidth);

        _setTokenURI(
            tokenId,
            PXStorage.getTokenURI(
                pxStorage,
                tokenId,
                pxStorage[tokenId].usagePercentage,
                pxStorage[tokenId].size,
                pxStorage[tokenId].storageUnit
            )
        );
    }

    // Function to update the price of a storage package
    function updatePackagePrice(
        uint256 packageId,
        uint256 priceInWeiValue
    ) external onlyOwner {
        pxStoragePackage[packageId].price = priceInWeiValue;
    }

    // Function to activate or deactivate a storage package
    function activateDeactivatePackage(
        uint256 packageId,
        uint256 active
    ) external onlyOwner {
        // 1 active, 0 not active
        pxStoragePackage[packageId].active = active;
    }

    // Function to update the name of a token's package
    function updateTokenPackageName(
        uint256 tokenId,
        string memory name
    ) public {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "!owner");
        pxStorage[tokenId].name = name;
    }

    // Function to add extra content associated with a token
    function addExtraContent(
        uint256 tokenId,
        string memory hash,
        string memory content
    ) public {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "!owner");
        bytes32 contentHash = keccak256(abi.encodePacked(hash));
        pxStorage[tokenId].extraContent[contentHash].metadata = content;
        pxStorage[tokenId].extraContent[contentHash].active = 1;
    }

    // Function to retrieve extra content associated with a token
    function getExtraContent(
        uint256 tokenId,
        string memory hash
    ) public view returns (string memory) {
        bytes32 contentHash = keccak256(abi.encodePacked(hash));
        require(
            pxStorage[tokenId].extraContent[contentHash].active == 1,
            "Invalid Hash"
        );
        return pxStorage[tokenId].extraContent[contentHash].metadata;
    }

    // Function to retrieve all storage packages
    function getAllPackages() external view returns (PXStorage.StoragePackage[] memory) {
        return PXStorage.getAllPackages(packageIds, pxStoragePackage);
    }

    // Function to retrieve all bandwidth packages
    function getAllBandwidthPackages() external view returns (PXStorage.BandwidthPackage[] memory) {
        return PXStorage.getAllBandwidthPackages(bandwidthPackageIds, pxBandwidthPackage);
    }

    // Function to retrieve the owner of the subscription
    function getSubscriptionOwner() external view returns (address) {
        return owner();
    }

    // Function to check if the contract supports a given interface
    function supportsInterface(
        bytes4 interfaceId
    ) public view override(ERC165, ERC721URIStorage) returns (bool) {
        return
            interfaceId == type(ISubscriptionOwner).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

File 2 of 23 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 3 of 23 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 4 of 23 : IERC4906.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC4906.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";
import "./IERC721.sol";

/// @title EIP-721 Metadata Update Extension
interface IERC4906 is IERC165, IERC721 {
    /// @dev This event emits when the metadata of a token is changed.
    /// So that the third-party platforms such as NFT market could
    /// timely update the images and related attributes of the NFT.
    event MetadataUpdate(uint256 _tokenId);

    /// @dev This event emits when the metadata of a range of tokens is changed.
    /// So that the third-party platforms such as NFT market could
    /// timely update the images and related attributes of the NFTs.
    event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId);
}

File 5 of 23 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol)

pragma solidity ^0.8.0;

import "../token/ERC721/IERC721.sol";

File 6 of 23 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _ownerOf(tokenId) != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(address from, address to, uint256 tokenId) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

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

    /**
     * @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, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}

File 7 of 23 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../interfaces/IERC4906.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is IERC4906, ERC721 {
    using Strings for uint256;

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

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

        return super.tokenURI(tokenId);
    }

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

        emit MetadataUpdate(tokenId);
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally checks to see if a
     * token-specific URI was set for the token, and if so, it deletes the token URI from
     * the storage mapping.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

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

File 8 of 23 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 9 of 23 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 10 of 23 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 23 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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 12 of 23 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 13 of 23 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 15 of 23 : 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 16 of 23 : 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 17 of 23 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 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 256, 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 << 3) < value ? 1 : 0);
        }
    }
}

File 18 of 23 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 19 of 23 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 20 of 23 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.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 `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 21 of 23 : ISubscriptionOwner.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.10;

interface ISubscriptionOwner {
    function getSubscriptionOwner() external view returns (address);
}

File 22 of 23 : PXStorage.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./PXUtils.sol";

// PXStorage library for managing storage packages, bandwidth packages, and storage usage
library PXStorage {
    using SafeMath for uint256;
    using Strings for uint256;
    uint256 private constant _gbToBytes = 1073741824; // Conversion factor from GB to Bytes

    // Struct for defining storage packages
    struct StoragePackage {
        uint256 id; // Package ID
        string name; // Package name
        uint256 price; // Package price in wei
        uint256 size; // Size in GB
        uint256 sizeInBytes; // Size in bytes
        string storageUnit; // Storage unit (e.g., "GB")
        uint256 bandwidthLimit; // Bandwidth limit
        uint256 active; // Active status
    }
    // Struct for defining bandwidth packages
    struct BandwidthPackage {
        uint256 id; // Package ID
        string name; // Package name
        uint256 price; // Package price in wei
        uint256 bandwidth; // Bandwidth limit
        uint256 active; // Active status
    }

    // Struct for storing extra content associated with a storage
    struct ExtraContent {
        string metadata; // Metadata of the extra content
        uint256 active; // Active status
    }

    // Struct for defining the storage associated with a token
    struct Storage {
        string name; // Storage name
        uint256 usage; // Current usage in bytes
        uint256 usagePercentage; // Usage percentage
        uint256 size; // Size in GB
        uint256 sizeInBytes; // Size in bytes
        string storageUnit; // Storage unit (e.g., "GB")
        uint256 buyTimestamp; // Timestamp when the package was bought
        uint256 lastUpdateTimestamp; // Timestamp of the last update
        uint256 bandwidth; // Remaining bandwidth
        mapping(bytes32 => ExtraContent) extraContent; // Mapping of extra content
    }

    // Struct for managing free package information
    struct FreePackage {
        uint256 alreadyMinted; // Flag indicating if the free package has already been minted
    }

    // Function to add a new storage package
    function addNewPackage(
        mapping(uint256 => StoragePackage) storage pxStoragePackage,
        uint256[] storage packageIds,
        uint256 newPackageId,
        uint256 priceInWeiValue,
        uint256 sizeInGb,
        uint256 bandwidthLimit
    ) external {
        // Initialize the new storage package
        pxStoragePackage[newPackageId].id = newPackageId;
        pxStoragePackage[newPackageId].name = newPackageId.toString();
        pxStoragePackage[newPackageId].price = priceInWeiValue;
        pxStoragePackage[newPackageId].size = sizeInGb;
        pxStoragePackage[newPackageId].sizeInBytes = sizeInGb.mul(_gbToBytes);
        pxStoragePackage[newPackageId].storageUnit = "GB";
        pxStoragePackage[newPackageId].active = 1;
        pxStoragePackage[newPackageId].bandwidthLimit = bandwidthLimit;

        // Add the new package ID to the list of package IDs
        packageIds.push(newPackageId);
    }

    // Function to add a new bandwidth package
    function addNewBandwidthPackage(
        mapping(uint256 => BandwidthPackage) storage pxBandwidthPackage,
        uint256[] storage bandwidthPackageIds,
        uint256 newPackageId,
        uint256 priceInWeiValue,
        uint256 bandwidthLimit
    ) external {
        // Initialize the new bandwidth package
        pxBandwidthPackage[newPackageId].id = newPackageId;
        pxBandwidthPackage[newPackageId].name = bandwidthLimit.toString();
        pxBandwidthPackage[newPackageId].price = priceInWeiValue;
        pxBandwidthPackage[newPackageId].bandwidth = bandwidthLimit;
        pxBandwidthPackage[newPackageId].active = 1;

        // Add the new bandwidth package ID to the list of bandwidth package IDs
        bandwidthPackageIds.push(newPackageId);
    }

    // Function to get all storage packages
    function getAllPackages(uint256[] memory packageIds, mapping(uint256 => StoragePackage) storage pxStoragePackage) internal view returns (StoragePackage[] memory) {
        // Initialize an array to store the result
        StoragePackage[] memory result = new StoragePackage[](packageIds.length);

        // Populate the result array with storage packages
        for (uint256 i = 0; i < packageIds.length; i++) {
            result[i] = pxStoragePackage[packageIds[i]];
        }
        return result;
    }

    // Function to get all bandwidth packages
    function getAllBandwidthPackages(uint256[] memory packageIds, mapping(uint256 => BandwidthPackage) storage pxBandwidthPackage) internal view returns (BandwidthPackage[] memory) {
        // Initialize an array to store the result
        BandwidthPackage[] memory result = new BandwidthPackage[](packageIds.length);

        // Populate the result array with bandwidth packages
        for (uint256 i = 0; i < packageIds.length; i++) {
            result[i] = pxBandwidthPackage[packageIds[i]];
        }
        return result;
    }
    // Function to check if new data can be uploaded
//    function canUpload(
//        mapping(uint256 => Storage) storage pxStorage,
//        uint256 tokenId,
//        uint256 newUsage
//    ) internal view returns (bool) {
//        // Check if the last update was more than one day ago
//        if (block.timestamp - pxStorage[tokenId].lastUpdateTimestamp > 1 days) {
//            return false;
//        }
//        // Check if the new usage exceeds the allocated size or if there is no bandwidth left
//        if (
//            (pxStorage[tokenId].usage.add(newUsage)) >
//            pxStorage[tokenId].sizeInBytes || pxStorage[tokenId].bandwidth == 0
//        ) {
//            return false;
//        }
//        return true;
//    }

    function canUpload(
        mapping(uint256 => Storage) storage pxStorage,
        uint256 tokenId,
        uint256 newUsage
    ) internal view returns (bool canUploadStatus, bool sizeOrBandwidthExceeded, bool timestampLock) {
        // Initialize conditions
        sizeOrBandwidthExceeded = false;
        timestampLock = false;

        // Check if the new usage would exceed the allocated storage size or if there's no bandwidth left
        if (
            (pxStorage[tokenId].usage.add(newUsage)) > pxStorage[tokenId].sizeInBytes ||
            pxStorage[tokenId].bandwidth == 0
        ) {
            sizeOrBandwidthExceeded = true;
        }

        // Check if the last update was more than one day ago
        if (block.timestamp - pxStorage[tokenId].lastUpdateTimestamp > 30 days) {
            timestampLock = true;
        }

        // Determine if the upload can proceed
        canUploadStatus = !sizeOrBandwidthExceeded && !timestampLock;

        return (canUploadStatus, sizeOrBandwidthExceeded, timestampLock);
    }

    // Function to get the token URI for a storage token
    function getTokenURI(
        mapping(uint256 => Storage) storage pxStorage,
        uint256 tokenId,
        uint256 currentUsage,
        uint256 storageSize,
        string memory storageUnit
    ) public view returns (string memory) {
        // Create the data URI for the token metadata
        bytes memory dataURI = abi.encodePacked(
            '{"name": "PollinationX #',
            tokenId.toString(),
            '","description": "Decentralized Storage Infra","image": "',
            PXUtils.getProgressImage(storageUnit, pxStorage[tokenId].size.toString(), pxStorage[tokenId].usagePercentage.toString()),
            '","attributes": [{"display_type": "boost_percentage","trait_type": "Usage","value": ',
            currentUsage.toString(),
            '},{"trait_type": "Capacity","value": "',
            storageSize.toString(),
            storageUnit,
            '"},{"trait_type": "Bandwidth","value": "',
            pxStorage[tokenId].bandwidth.toString(),
            '"}]}'
        );
        // Encode the data URI to Base64 and return it
        return
            string(
            abi.encodePacked(
                "data:application/json;base64,",
                Base64.encode(dataURI)
            )
        );
    }
}

File 23 of 23 : PXUtils.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

import "@openzeppelin/contracts/utils/Base64.sol";

// PXUtils library for utility functions related to PollinationX
library PXUtils {
    // Function to calculate percentage difference between two values
    function calculatePercentageDifference(uint256 oldValue, uint256 newValue) internal pure returns (uint256) {
        // Calculate absolute difference
        uint256 difference = oldValue > newValue ? oldValue - newValue : newValue - oldValue;
        // Handle edge case where oldValue is zero to avoid division by zero
        if (oldValue == 0) {
            return 0;
        }
        // Calculate percentage difference and return
        uint256 percentageDifference = (difference * 100) / oldValue;
        return 100 - percentageDifference;
    }

    // Function to generate SVG progress image based on storageUnit, size, and usagePercentage
    function getProgressImage(
        string memory storageUnit,
        string memory size,
        string memory usagePercentage
    ) external pure returns (string memory) {
        // SVG image content encoded in bytes
        bytes memory svg = abi.encodePacked(
            '<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 350"><defs><style>.cls-1, .cls-3, .cls-4 {fill: #fff;font-size: 21px;}.cls-5 {fill: #fab432;}.cls-6 {fill: #222;}.cls-7 {letter-spacing: -.01em;}.cls-8 {letter-spacing: -.01em;}.cls-9, .cls-10 {letter-spacing: -.03em;}.cls-11 {letter-spacing: 0em;}.cls-12 {letter-spacing: 0em;}.cls-13 {fill: #878989;font-size: 18px;}</style></defs><rect class="cls-6" width="250" height="350"/><path class="cls-5" d="m125.88,125.5l-37.48,21.66v43.52l34.37,19.83,2.74,8.16h.8l2.69-8.17,34.32-19.83v-43.52l-37.44-21.66Zm15.42,72.71l-15.42,8.9-15.45-8.92v-8.59s15.45,8.92,15.45,8.92l15.45-8.92-.03,8.6Zm-15.42-4.89l-15.45-8.92v-8.59s15.45,8.92,15.45,8.92l15.42-8.9.03,8.57-15.45,8.92Zm15.42-22.69l-15.42,8.9-15.45-8.92v-8.59l15.45,8.92,15.42-8.9v8.59Zm-15.42-4.89l-12.99-7.5,12.99-7.5,12.99,7.5-12.99,7.5Zm-4.82-17.41l-12.87,7.43-12.87-7.43,12.87-7.43,12.87,7.43Zm22.5,7.42l-12.85-7.42,12.86-7.42,12.85,7.42-12.86,7.42Zm-4.57-17.45l-13.1,7.57-13.1-7.57,13.1-7.57,13.1,7.57Zm-46.11,13.77l13.06,7.54v8.46l-13.06-7.54v-8.46Zm0,13.62l13.06,7.54v8.61l-13.06-7.54v-8.61Zm0,13.77l13.06,7.54v8.63l-13.06-7.54v-8.63Zm65.98,8.63l-13.03,7.52v-8.62h0s13.03-7.53,13.03-7.53v8.63Zm0-13.79l-13.03,7.52v-8.61l13.03-7.52v8.61Zm-13.03-6.25v-8.46l13.03-7.52v8.46l-13.03,7.52Z"/><text class="cls-3" transform="translate(88.79 247.36)"><tspan class="cls-11" x="0" y="0">US</tspan><tspan class="cls-8" x="29.36" y="0">A</tspan><tspan class="cls-11" x="44.88" y="0">GE</tspan></text><text class="cls-3" transform="translate(45.16 109.16)"><tspan class="cls-12" x="0" y="0">S</tspan><tspan class="cls-10" x="13.4" y="0">T</tspan><tspan class="cls-12" x="26.21" y="0">OR</tspan><tspan class="cls-7" x="57.71" y="0">A</tspan><tspan class="cls-11" x="73.23" y="0">GE SIZE</tspan><tspan class="cls-2" x="155.54" y="0"> </tspan></text><text class="cls-9" transform="translate(104.4 85.2)"><tspan class="cls-13" x="0" y="0">',
            size,
            storageUnit,
            '</tspan><tspan class="cls-4" x="37.08" y="0"> </tspan></text><text class="cls-9" transform="translate(106.11 271.46)"><tspan class="cls-13" x="0" y="0">',
            usagePercentage,
            '%</tspan><tspan class="cls-1" x="33.66" y="0"> </tspan></text></svg>'
        );

        // Encode SVG to Base64 and return as a data URI
        return
            string(
            abi.encodePacked(
                "data:image/svg+xml;base64,",
                Base64.encode(svg)
            )
        );
    }


}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {
    "contracts/libraries/PXStorage.sol": {
      "PXStorage": "0x7971280f734933c51e18b9340c386ca1c9f67651"
    }
  }
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","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":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_bandwidthPackageIds","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_packageIds","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tokenIds","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"packageId","type":"uint256"},{"internalType":"uint256","name":"active","type":"uint256"}],"name":"activateDeactivatePackage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"hash","type":"string"},{"internalType":"string","name":"content","type":"string"}],"name":"addExtraContent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"priceInWeiValue","type":"uint256"},{"internalType":"uint256","name":"bandwidthLimit","type":"uint256"}],"name":"addNewBandwidthPackage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"priceInWeiValue","type":"uint256"},{"internalType":"uint256","name":"sizeInGb","type":"uint256"},{"internalType":"uint256","name":"bandwidthLimit","type":"uint256"}],"name":"addNewPackage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bandwidthPackageIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"bandwidthPackageId","type":"uint256"}],"name":"buyMoreBandwidth","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"newUsage","type":"uint256"}],"name":"canUpload","outputs":[{"internalType":"bool","name":"canUploadStatus","type":"bool"},{"internalType":"bool","name":"sizeOrBandwidthExceeded","type":"bool"},{"internalType":"bool","name":"timestampLock","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freePackageSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllBandwidthPackages","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"bandwidth","type":"uint256"},{"internalType":"uint256","name":"active","type":"uint256"}],"internalType":"struct PXStorage.BandwidthPackage[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllPackages","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"size","type":"uint256"},{"internalType":"uint256","name":"sizeInBytes","type":"uint256"},{"internalType":"string","name":"storageUnit","type":"string"},{"internalType":"uint256","name":"bandwidthLimit","type":"uint256"},{"internalType":"uint256","name":"active","type":"uint256"}],"internalType":"struct PXStorage.StoragePackage[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"hash","type":"string"}],"name":"getExtraContent","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getStorageUsageInBytes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSubscriptionOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"packageId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"packageIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"state","type":"uint256"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pxBandwidthPackage","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"bandwidth","type":"uint256"},{"internalType":"uint256","name":"active","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pxFreePackage","outputs":[{"internalType":"uint256","name":"alreadyMinted","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pxStorage","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"usage","type":"uint256"},{"internalType":"uint256","name":"usagePercentage","type":"uint256"},{"internalType":"uint256","name":"size","type":"uint256"},{"internalType":"uint256","name":"sizeInBytes","type":"uint256"},{"internalType":"string","name":"storageUnit","type":"string"},{"internalType":"uint256","name":"buyTimestamp","type":"uint256"},{"internalType":"uint256","name":"lastUpdateTimestamp","type":"uint256"},{"internalType":"uint256","name":"bandwidth","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pxStoragePackage","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"size","type":"uint256"},{"internalType":"uint256","name":"sizeInBytes","type":"uint256"},{"internalType":"string","name":"storageUnit","type":"string"},{"internalType":"uint256","name":"bandwidthLimit","type":"uint256"},{"internalType":"uint256","name":"active","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unlockUploading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"packageId","type":"uint256"},{"internalType":"uint256","name":"priceInWeiValue","type":"uint256"}],"name":"updatePackagePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"usageInBytes","type":"uint256"},{"internalType":"uint256","name":"bandwidth","type":"uint256"}],"name":"updateStorageUsage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"name","type":"string"}],"name":"updateTokenPackageName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"packageId","type":"uint256"}],"name":"upgradeTokenPackage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

60806040526000600f5560646010553480156200001b57600080fd5b506040518060400160405280600c81526020017f506f6c6c696e6174696f6e5800000000000000000000000000000000000000008152506040518060400160405280600381526020017f50585300000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000a09291906200034a565b508060019080519060200190620000b99291906200034a565b505050620000dc620000d06200027c60201b60201c565b6200028460201b60201c565b6000600d6000808152602001908152602001600020600001819055506040518060400160405280600581526020017f3130304d42000000000000000000000000000000000000000000000000000000815250600d60008081526020019081526020016000206001019080519060200190620001599291906200034a565b506000600d600080815260200190815260200160002060020181905550601054600d6000808152602001908152602001600020600301819055506306400000600d6000808152602001908152602001600020600401819055506040518060400160405280600281526020017f4d42000000000000000000000000000000000000000000000000000000000000815250600d60008081526020019081526020016000206005019080519060200190620002139291906200034a565b506001600d6000808152602001908152602001600020600701819055506019600d6000808152602001908152602001600020600601819055506011600090806001815401808255809150506001900390600052602060002001600090919091909150556200045f565b600033905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620003589062000429565b90600052602060002090601f0160209004810192826200037c5760008555620003c8565b82601f106200039757805160ff1916838001178555620003c8565b82800160010185558215620003c8579182015b82811115620003c7578251825591602001919060010190620003aa565b5b509050620003d79190620003db565b5090565b5b80821115620003f6576000816000905550600101620003dc565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200044257607f821691505b60208210811415620004595762000458620003fa565b5b50919050565b615f57806200046f6000396000f3fe60806040526004361061027d5760003560e01c806390538a261161014f578063bd5ec8ef116100c1578063dc2d8a4a1161007a578063dc2d8a4a146109ab578063e23ed0bb146109d4578063e985e9c5146109ff578063ef113c4814610a3c578063f2fde38b14610a79578063fbef6a6414610aa25761027d565b8063bd5ec8ef146108a5578063be2792fe146108ce578063c271e267146108ea578063c87b56dd14610906578063d399eaf914610943578063d81f9e1a146109805761027d565b8063a0712d6811610113578063a0712d68146107a6578063a20c8d52146107c2578063a22cb465146107ff578063aa46a40014610828578063b88d4fde14610853578063bca653ea1461087c5761027d565b806390538a26146106a957806393a6cc7f146106ea5780639441291514610727578063953584811461075057806395d89b411461077b5761027d565b80633f38acda116101f357806370a08231116101ac57806370a0823114610597578063715018a6146105d45780637b302dfc146105eb5780638b116bf1146106145780638da5cb5b1461063f5780638f3448381461066a5761027d565b80633f38acda1461045457806342842e0e146104995780634425bf49146104c25780635c975abb146104eb5780635d093de4146105165780636352211e1461055a5761027d565b8063136439dd11610245578063136439dd1461037b57806319ced761146103a457806323b872dd146103cf5780632a2cc044146103f85780633ccfd60b146104215780633e9d5cf41461042b5761027d565b806301ffc9a71461028257806306fdde03146102bf578063081812fc146102ea578063095ea7b3146103275780630a421f0f14610350575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a49190614154565b610adf565b6040516102b6919061419c565b60405180910390f35b3480156102cb57600080fd5b506102d4610b59565b6040516102e19190614250565b60405180910390f35b3480156102f657600080fd5b50610311600480360381019061030c91906142a8565b610beb565b60405161031e9190614316565b60405180910390f35b34801561033357600080fd5b5061034e6004803603810190610349919061435d565b610c31565b005b34801561035c57600080fd5b50610365610d49565b604051610372919061456f565b60405180910390f35b34801561038757600080fd5b506103a2600480360381019061039d91906142a8565b610dab565b005b3480156103b057600080fd5b506103b9610dbd565b6040516103c691906145a0565b60405180910390f35b3480156103db57600080fd5b506103f660048036038101906103f191906145bb565b610dc9565b005b34801561040457600080fd5b5061041f600480360381019061041a919061460e565b610e29565b005b610429610ebf565b005b34801561043757600080fd5b50610452600480360381019061044d9190614783565b610f40565b005b34801561046057600080fd5b5061047b600480360381019061047691906142a8565b610fbf565b604051610490999897969594939291906147df565b60405180910390f35b3480156104a557600080fd5b506104c060048036038101906104bb91906145bb565b61111d565b005b3480156104ce57600080fd5b506104e960048036038101906104e4919061487a565b61113d565b005b3480156104f757600080fd5b5061050061147c565b60405161050d91906145a0565b60405180910390f35b34801561052257600080fd5b5061053d600480360381019061053891906142a8565b611482565b6040516105519897969594939291906148cd565b60405180910390f35b34801561056657600080fd5b50610581600480360381019061057c91906142a8565b6115da565b60405161058e9190614316565b60405180910390f35b3480156105a357600080fd5b506105be60048036038101906105b99190614959565b611661565b6040516105cb91906145a0565b60405180910390f35b3480156105e057600080fd5b506105e9611719565b005b3480156105f757600080fd5b50610612600480360381019061060d9190614986565b61172d565b005b34801561062057600080fd5b5061062961181d565b6040516106369190614b49565b60405180910390f35b34801561064b57600080fd5b5061065461187f565b6040516106619190614316565b60405180910390f35b34801561067657600080fd5b50610691600480360381019061068c919061460e565b6118a9565b6040516106a093929190614b6b565b60405180910390f35b3480156106b557600080fd5b506106d060048036038101906106cb91906142a8565b6118c7565b6040516106e1959493929190614ba2565b60405180910390f35b3480156106f657600080fd5b50610711600480360381019061070c91906142a8565b611985565b60405161071e91906145a0565b60405180910390f35b34801561073357600080fd5b5061074e6004803603810190610749919061460e565b6119a9565b005b34801561075c57600080fd5b506107656119d0565b6040516107729190614316565b60405180910390f35b34801561078757600080fd5b506107906119df565b60405161079d9190614250565b60405180910390f35b6107c060048036038101906107bb91906142a8565b611a71565b005b3480156107ce57600080fd5b506107e960048036038101906107e491906142a8565b611e48565b6040516107f691906145a0565b60405180910390f35b34801561080b57600080fd5b5061082660048036038101906108219190614c28565b611e6c565b005b34801561083457600080fd5b5061083d611e82565b60405161084a91906145a0565b60405180910390f35b34801561085f57600080fd5b5061087a60048036038101906108759190614d09565b611e8e565b005b34801561088857600080fd5b506108a3600480360381019061089e91906142a8565b611ef0565b005b3480156108b157600080fd5b506108cc60048036038101906108c7919061460e565b611f28565b005b6108e860048036038101906108e3919061460e565b611f4f565b005b61090460048036038101906108ff919061460e565b61223d565b005b34801561091257600080fd5b5061092d600480360381019061092891906142a8565b612418565b60405161093a9190614250565b60405180910390f35b34801561094f57600080fd5b5061096a600480360381019061096591906142a8565b61252b565b60405161097791906145a0565b60405180910390f35b34801561098c57600080fd5b5061099561254b565b6040516109a291906145a0565b60405180910390f35b3480156109b757600080fd5b506109d260048036038101906109cd919061487a565b612557565b005b3480156109e057600080fd5b506109e96125f0565b6040516109f691906145a0565b60405180910390f35b348015610a0b57600080fd5b50610a266004803603810190610a219190614d8c565b6125f6565b604051610a33919061419c565b60405180910390f35b348015610a4857600080fd5b50610a636004803603810190610a5e9190614783565b61268a565b604051610a709190614250565b60405180910390f35b348015610a8557600080fd5b50610aa06004803603810190610a9b9190614959565b6127e0565b005b348015610aae57600080fd5b50610ac96004803603810190610ac49190614959565b612864565b604051610ad691906145a0565b60405180910390f35b60007f95358481000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b525750610b5182612882565b5b9050919050565b606060008054610b6890614dfb565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9490614dfb565b8015610be15780601f10610bb657610100808354040283529160200191610be1565b820191906000526020600020905b815481529060010190602001808311610bc457829003601f168201915b5050505050905090565b6000610bf6826128e3565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c3c826115da565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca490614e9f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ccc61292e565b73ffffffffffffffffffffffffffffffffffffffff161480610cfb5750610cfa81610cf561292e565b6125f6565b5b610d3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3190614f31565b60405180910390fd5b610d448383612936565b505050565b6060610da66011805480602002602001604051908101604052809291908181526020018280548015610d9a57602002820191906000526020600020905b815481526020019060010190808311610d86575b5050505050600d6129ef565b905090565b610db3612c2a565b80600f8190555050565b60098060000154905081565b610dda610dd461292e565b82612ca8565b610e19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1090614fc3565b60405180910390fd5b610e24838383612d3d565b505050565b610e31612c2a565b6000610e3d600a613037565b9050737971280f734933c51e18b9340c386ca1c9f67651630fb47b8a600e60128487876040518663ffffffff1660e01b8152600401610e80959493929190615000565b60006040518083038186803b158015610e9857600080fd5b505af4158015610eac573d6000803e3d6000fd5b50505050610eba600a613045565b505050565b610ec7612c2a565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051610eed90615084565b60006040518083038185875af1925050503d8060008114610f2a576040519150601f19603f3d011682016040523d82523d6000602084013e610f2f565b606091505b5050905080610f3d57600080fd5b50565b610f51610f4b61292e565b83612ca8565b610f90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f87906150e5565b60405180910390fd5b80600c60008481526020019081526020016000206000019080519060200190610fba929190613f44565b505050565b600c602052806000526040600020600091509050806000018054610fe290614dfb565b80601f016020809104026020016040519081016040528092919081815260200182805461100e90614dfb565b801561105b5780601f106110305761010080835404028352916020019161105b565b820191906000526020600020905b81548152906001019060200180831161103e57829003601f168201915b50505050509080600101549080600201549080600301549080600401549080600501805461108890614dfb565b80601f01602080910402602001604051908101604052809291908181526020018280546110b490614dfb565b80156111015780601f106110d657610100808354040283529160200191611101565b820191906000526020600020905b8154815290600101906020018083116110e457829003601f168201915b5050505050908060060154908060070154908060080154905089565b61113883838360405180602001604052806000815250611e8e565b505050565b6111468361305b565b61114f57600080fd5b61116061115a61292e565b84612ca8565b806111a4575061116e61292e565b73ffffffffffffffffffffffffffffffffffffffff1661118c61187f565b73ffffffffffffffffffffffffffffffffffffffff16145b6111e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111da906150e5565b60405180910390fd5b600061120e83600c60008781526020019081526020016000206001015461309c90919063ffffffff16565b9050600c600085815260200190815260200160002060040154811115611269576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126090615151565b60405180910390fd5b6000600c600086815260200190815260200160002060080154116112c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b9906151bd565b60405180910390fd5b6000600c600086815260200190815260200160002060080154905060008382116112ed576000611317565b61131684600c6000898152602001908152602001600020600801546130b290919063ffffffff16565b5b905082600c60008881526020019081526020016000206001018190555042600c60008881526020019081526020016000206007018190555080600c60008881526020019081526020016000206008018190555061138a600c600088815260200190815260200160002060040154846130c8565b600c60008881526020019081526020016000206002018190555061147486737971280f734933c51e18b9340c386ca1c9f6765163f3952fc1600c8a600c60008d815260200190815260200160002060020154600c60008e815260200190815260200160002060030154600c60008f81526020019081526020016000206005016040518663ffffffff1660e01b815260040161142995949392919061528a565b600060405180830381865af4158015611446573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061146f9190615354565b613139565b505050505050565b600f5481565b600d6020528060005260406000206000915090508060000154908060010180546114ab90614dfb565b80601f01602080910402602001604051908101604052809291908181526020018280546114d790614dfb565b80156115245780601f106114f957610100808354040283529160200191611524565b820191906000526020600020905b81548152906001019060200180831161150757829003601f168201915b50505050509080600201549080600301549080600401549080600501805461154b90614dfb565b80601f016020809104026020016040519081016040528092919081815260200182805461157790614dfb565b80156115c45780601f10611599576101008083540402835291602001916115c4565b820191906000526020600020905b8154815290600101906020018083116115a757829003601f168201915b5050505050908060060154908060070154905088565b6000806115e6836131e4565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164f906153e9565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c99061547b565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611721612c2a565b61172b6000613221565b565b61173e61173861292e565b84612ca8565b61177d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611774906150e5565b60405180910390fd5b60008260405160200161179091906154d7565b60405160208183030381529060405280519060200120905081600c6000868152602001908152602001600020600901600083815260200190815260200160002060000190805190602001906117e6929190613f44565b506001600c600086815260200190815260200160002060090160008381526020019081526020016000206001018190555050505050565b606061187a601280548060200260200160405190810160405280929190818152602001828054801561186e57602002820191906000526020600020905b81548152602001906001019080831161185a575b5050505050600e6132e7565b905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060006118ba600c868661347b565b9250925092509250925092565b600e6020528060005260406000206000915090508060000154908060010180546118f090614dfb565b80601f016020809104026020016040519081016040528092919081815260200182805461191c90614dfb565b80156119695780601f1061193e57610100808354040283529160200191611969565b820191906000526020600020905b81548152906001019060200180831161194c57829003601f168201915b5050505050908060020154908060030154908060040154905085565b6012818154811061199557600080fd5b906000526020600020016000915090505481565b6119b1612c2a565b80600d6000848152602001908152602001600020600701819055505050565b60006119da61187f565b905090565b6060600180546119ee90614dfb565b80601f0160208091040260200160405190810160405280929190818152602001828054611a1a90614dfb565b8015611a675780601f10611a3c57610100808354040283529160200191611a67565b820191906000526020600020905b815481529060010190602001808311611a4a57829003601f168201915b5050505050905090565b6000600f5414611a8057600080fd5b6001600d60008381526020019081526020016000206007015414611aa357600080fd5b6000600d6000838152602001908152602001600020600201549050611ac661187f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b0557803414611b0457600080fd5b5b6000821415611bdd576001600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001541415611b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8b9061553a565b60405180910390fd5b6001600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001819055505b611be76008613045565b6000611bf36008613037565b9050611bff3382613537565b600d6000848152602001908152602001600020600101600c6000838152602001908152602001600020600001908054611c3790614dfb565b611c42929190613fca565b506000600c6000838152602001908152602001600020600101819055506000600c600083815260200190815260200160002060020181905550600d600084815260200190815260200160002060030154600c600083815260200190815260200160002060030181905550600d600084815260200190815260200160002060060154600c600083815260200190815260200160002060080181905550600d6000848152602001908152602001600020600501600c6000838152602001908152602001600020600501908054611d1590614dfb565b611d20929190613fca565b50600d600084815260200190815260200160002060040154600c60008381526020019081526020016000206004018190555042600c60008381526020019081526020016000206006018190555042600c600083815260200190815260200160002060070181905550611e4381737971280f734933c51e18b9340c386ca1c9f6765163f3952fc1600c856000600d60008b815260200190815260200160002060030154600c60008a81526020019081526020016000206005016040518663ffffffff1660e01b8152600401611df895949392919061559f565b600060405180830381865af4158015611e15573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611e3e9190615354565b613139565b505050565b60118181548110611e5857600080fd5b906000526020600020016000915090505481565b611e7e611e7761292e565b8383613555565b5050565b60088060000154905081565b611e9f611e9961292e565b83612ca8565b611ede576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed590614fc3565b60405180910390fd5b611eea848484846136c2565b50505050565b611ef8612c2a565b611f018161305b565b611f0a57600080fd5b42600c60008381526020019081526020016000206007018190555050565b611f30612c2a565b80600d6000848152602001908152602001600020600201819055505050565b611f60611f5a61292e565b83612ca8565b611f6957600080fd5b600c600083815260200190815260200160002060040154600d60008381526020019081526020016000206004015411611fa157600080fd5b6000600d6000838152602001908152602001600020600201549050803414611ffe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ff590615645565b60405180910390fd5b612034600d600084815260200190815260200160002060040154600c6000868152602001908152602001600020600101546130c8565b600c600085815260200190815260200160002060020181905550600d600083815260200190815260200160002060030154600c6000858152602001908152602001600020600301819055506120be600d600084815260200190815260200160002060060154600c60008681526020019081526020016000206008015461309c90919063ffffffff16565b600c600085815260200190815260200160002060080181905550600d6000838152602001908152602001600020600501600c600085815260200190815260200160002060050190805461211090614dfb565b61211b929190613fca565b50600d600083815260200190815260200160002060040154600c60008581526020019081526020016000206004018190555042600c60008581526020019081526020016000206007018190555061223883737971280f734933c51e18b9340c386ca1c9f6765163f3952fc1600c87600c60008a815260200190815260200160002060020154600c60008b815260200190815260200160002060030154600c60008c81526020019081526020016000206005016040518663ffffffff1660e01b81526004016121ed95949392919061528a565b600060405180830381865af415801561220a573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906122339190615354565b613139565b505050565b61224e61224861292e565b83612ca8565b61228d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612284906150e5565b60405180910390fd5b6000600e60008381526020019081526020016000206002015490508034146122ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e1906156b1565b60405180910390fd5b612329600e600084815260200190815260200160002060030154600c60008681526020019081526020016000206008015461309c90919063ffffffff16565b600c60008581526020019081526020016000206008018190555061241383737971280f734933c51e18b9340c386ca1c9f6765163f3952fc1600c87600c60008a815260200190815260200160002060020154600c60008b815260200190815260200160002060030154600c60008c81526020019081526020016000206005016040518663ffffffff1660e01b81526004016123c895949392919061528a565b600060405180830381865af41580156123e5573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061240e9190615354565b613139565b505050565b6060612423826128e3565b600060066000848152602001908152602001600020805461244390614dfb565b80601f016020809104026020016040519081016040528092919081815260200182805461246f90614dfb565b80156124bc5780601f10612491576101008083540402835291602001916124bc565b820191906000526020600020905b81548152906001019060200180831161249f57829003601f168201915b5050505050905060006124cd61371e565b90506000815114156124e3578192505050612526565b6000825111156125185780826040516020016125009291906156d1565b60405160208183030381529060405292505050612526565b61252184613735565b925050505b919050565b6000600c6000838152602001908152602001600020600101549050919050565b600a8060000154905081565b61255f612c2a565b6125696009613045565b60006125756009613037565b9050737971280f734933c51e18b9340c386ca1c9f67651634ccaffff600d6011848888886040518763ffffffff1660e01b81526004016125ba969594939291906156fc565b60006040518083038186803b1580156125d257600080fd5b505af41580156125e6573d6000803e3d6000fd5b5050505050505050565b60105481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060008260405160200161269f91906154d7565b6040516020818303038152906040528051906020012090506001600c600086815260200190815260200160002060090160008381526020019081526020016000206001015414612724576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271b906157a9565b60405180910390fd5b600c60008581526020019081526020016000206009016000828152602001908152602001600020600001805461275990614dfb565b80601f016020809104026020016040519081016040528092919081815260200182805461278590614dfb565b80156127d25780601f106127a7576101008083540402835291602001916127d2565b820191906000526020600020905b8154815290600101906020018083116127b557829003601f168201915b505050505091505092915050565b6127e8612c2a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612858576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284f9061583b565b60405180910390fd5b61286181613221565b50565b600b6020528060005260406000206000915090508060000154905081565b6000634906490660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128dc57506128db8261379d565b5b9050919050565b6128ec8161305b565b61292b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612922906153e9565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166129a9836115da565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60606000835167ffffffffffffffff811115612a0e57612a0d614658565b5b604051908082528060200260200182016040528015612a4757816020015b612a34614057565b815260200190600190039081612a2c5790505b50905060005b8451811015612c1f57836000868381518110612a6c57612a6b61585b565b5b602002602001015181526020019081526020016000206040518061010001604052908160008201548152602001600182018054612aa890614dfb565b80601f0160208091040260200160405190810160405280929190818152602001828054612ad490614dfb565b8015612b215780601f10612af657610100808354040283529160200191612b21565b820191906000526020600020905b815481529060010190602001808311612b0457829003601f168201915b50505050508152602001600282015481526020016003820154815260200160048201548152602001600582018054612b5890614dfb565b80601f0160208091040260200160405190810160405280929190818152602001828054612b8490614dfb565b8015612bd15780601f10612ba657610100808354040283529160200191612bd1565b820191906000526020600020905b815481529060010190602001808311612bb457829003601f168201915b5050505050815260200160068201548152602001600782015481525050828281518110612c0157612c0061585b565b5b60200260200101819052508080612c17906158b9565b915050612a4d565b508091505092915050565b612c3261292e565b73ffffffffffffffffffffffffffffffffffffffff16612c5061187f565b73ffffffffffffffffffffffffffffffffffffffff1614612ca6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c9d9061594e565b60405180910390fd5b565b600080612cb4836115da565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612cf65750612cf581856125f6565b5b80612d3457508373ffffffffffffffffffffffffffffffffffffffff16612d1c84610beb565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612d5d826115da565b73ffffffffffffffffffffffffffffffffffffffff1614612db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612daa906159e0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612e23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e1a90615a72565b60405180910390fd5b612e30838383600161387f565b8273ffffffffffffffffffffffffffffffffffffffff16612e50826115da565b73ffffffffffffffffffffffffffffffffffffffff1614612ea6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e9d906159e0565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46130328383836001613885565b505050565b600081600001549050919050565b6001816000016000828254019250508190555050565b60008073ffffffffffffffffffffffffffffffffffffffff1661307d836131e4565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600081836130aa9190615a92565b905092915050565b600081836130c09190615ae8565b905092915050565b6000808284116130e35783836130de9190615ae8565b6130f0565b82846130ef9190615ae8565b5b90506000841415613105576000915050613133565b6000846064836131159190615b1c565b61311f9190615ba5565b905080606461312e9190615ae8565b925050505b92915050565b6131428261305b565b613181576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161317890615c48565b60405180910390fd5b806006600084815260200190815260200160002090805190602001906131a8929190613f44565b507ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce7826040516131d891906145a0565b60405180910390a15050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60606000835167ffffffffffffffff81111561330657613305614658565b5b60405190808252806020026020018201604052801561333f57816020015b61332c61409c565b8152602001906001900390816133245790505b50905060005b8451811015613470578360008683815181106133645761336361585b565b5b602002602001015181526020019081526020016000206040518060a00160405290816000820154815260200160018201805461339f90614dfb565b80601f01602080910402602001604051908101604052809291908181526020018280546133cb90614dfb565b80156134185780601f106133ed57610100808354040283529160200191613418565b820191906000526020600020905b8154815290600101906020018083116133fb57829003601f168201915b5050505050815260200160028201548152602001600382015481526020016004820154815250508282815181106134525761345161585b565b5b60200260200101819052508080613468906158b9565b915050613345565b508091505092915050565b600080600080915060009050856000868152602001908152602001600020600401546134c5858860008981526020019081526020016000206001015461309c90919063ffffffff16565b11806134e65750600086600087815260200190815260200160002060080154145b156134f057600191505b62278d0086600087815260200190815260200160002060070154426135159190615ae8565b111561352057600190505b8115801561352c575080155b925093509350939050565b61355182826040518060200160405280600081525061388b565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156135c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135bb90615cb4565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516136b5919061419c565b60405180910390a3505050565b6136cd848484612d3d565b6136d9848484846138e6565b613718576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161370f90615d46565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b6060613740826128e3565b600061374a61371e565b9050600081511161376a5760405180602001604052806000815250613795565b8061377484613a6e565b6040516020016137859291906156d1565b6040516020818303038152906040525b915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061386857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613878575061387782613b46565b5b9050919050565b50505050565b50505050565b6138958383613bb0565b6138a260008484846138e6565b6138e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138d890615d46565b60405180910390fd5b505050565b60006139078473ffffffffffffffffffffffffffffffffffffffff16613dce565b15613a61578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261393061292e565b8786866040518563ffffffff1660e01b81526004016139529493929190615dbb565b6020604051808303816000875af192505050801561398e57506040513d601f19601f8201168201806040525081019061398b9190615e1c565b60015b613a11573d80600081146139be576040519150601f19603f3d011682016040523d82523d6000602084013e6139c3565b606091505b50600081511415613a09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a0090615d46565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613a66565b600190505b949350505050565b606060006001613a7d84613df1565b01905060008167ffffffffffffffff811115613a9c57613a9b614658565b5b6040519080825280601f01601f191660200182016040528015613ace5781602001600182028036833780820191505090505b509050600082602001820190505b600115613b3b578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581613b2557613b24615b76565b5b0494506000851415613b3657613b3b565b613adc565b819350505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613c20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c1790615e95565b60405180910390fd5b613c298161305b565b15613c69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c6090615f01565b60405180910390fd5b613c7760008383600161387f565b613c808161305b565b15613cc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cb790615f01565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613dca600083836001613885565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613e4f577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613e4557613e44615b76565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613e8c576d04ee2d6d415b85acef81000000008381613e8257613e81615b76565b5b0492506020810190505b662386f26fc100008310613ebb57662386f26fc100008381613eb157613eb0615b76565b5b0492506010810190505b6305f5e1008310613ee4576305f5e1008381613eda57613ed9615b76565b5b0492506008810190505b6127108310613f09576127108381613eff57613efe615b76565b5b0492506004810190505b60648310613f2c5760648381613f2257613f21615b76565b5b0492506002810190505b600a8310613f3b576001810190505b80915050919050565b828054613f5090614dfb565b90600052602060002090601f016020900481019282613f725760008555613fb9565b82601f10613f8b57805160ff1916838001178555613fb9565b82800160010185558215613fb9579182015b82811115613fb8578251825591602001919060010190613f9d565b5b509050613fc691906140cb565b5090565b828054613fd690614dfb565b90600052602060002090601f016020900481019282613ff85760008555614046565b82601f106140095780548555614046565b8280016001018555821561404657600052602060002091601f016020900482015b8281111561404557825482559160010191906001019061402a565b5b50905061405391906140cb565b5090565b60405180610100016040528060008152602001606081526020016000815260200160008152602001600081526020016060815260200160008152602001600081525090565b6040518060a0016040528060008152602001606081526020016000815260200160008152602001600081525090565b5b808211156140e45760008160009055506001016140cc565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b614131816140fc565b811461413c57600080fd5b50565b60008135905061414e81614128565b92915050565b60006020828403121561416a576141696140f2565b5b60006141788482850161413f565b91505092915050565b60008115159050919050565b61419681614181565b82525050565b60006020820190506141b1600083018461418d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156141f15780820151818401526020810190506141d6565b83811115614200576000848401525b50505050565b6000601f19601f8301169050919050565b6000614222826141b7565b61422c81856141c2565b935061423c8185602086016141d3565b61424581614206565b840191505092915050565b6000602082019050818103600083015261426a8184614217565b905092915050565b6000819050919050565b61428581614272565b811461429057600080fd5b50565b6000813590506142a28161427c565b92915050565b6000602082840312156142be576142bd6140f2565b5b60006142cc84828501614293565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000614300826142d5565b9050919050565b614310816142f5565b82525050565b600060208201905061432b6000830184614307565b92915050565b61433a816142f5565b811461434557600080fd5b50565b60008135905061435781614331565b92915050565b60008060408385031215614374576143736140f2565b5b600061438285828601614348565b925050602061439385828601614293565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6143d281614272565b82525050565b600082825260208201905092915050565b60006143f4826141b7565b6143fe81856143d8565b935061440e8185602086016141d3565b61441781614206565b840191505092915050565b60006101008301600083015161443b60008601826143c9565b506020830151848203602086015261445382826143e9565b915050604083015161446860408601826143c9565b50606083015161447b60608601826143c9565b50608083015161448e60808601826143c9565b5060a083015184820360a08601526144a682826143e9565b91505060c08301516144bb60c08601826143c9565b5060e08301516144ce60e08601826143c9565b508091505092915050565b60006144e58383614422565b905092915050565b6000602082019050919050565b60006145058261439d565b61450f81856143a8565b935083602082028501614521856143b9565b8060005b8581101561455d578484038952815161453e85826144d9565b9450614549836144ed565b925060208a01995050600181019050614525565b50829750879550505050505092915050565b6000602082019050818103600083015261458981846144fa565b905092915050565b61459a81614272565b82525050565b60006020820190506145b56000830184614591565b92915050565b6000806000606084860312156145d4576145d36140f2565b5b60006145e286828701614348565b93505060206145f386828701614348565b925050604061460486828701614293565b9150509250925092565b60008060408385031215614625576146246140f2565b5b600061463385828601614293565b925050602061464485828601614293565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61469082614206565b810181811067ffffffffffffffff821117156146af576146ae614658565b5b80604052505050565b60006146c26140e8565b90506146ce8282614687565b919050565b600067ffffffffffffffff8211156146ee576146ed614658565b5b6146f782614206565b9050602081019050919050565b82818337600083830152505050565b6000614726614721846146d3565b6146b8565b90508281526020810184848401111561474257614741614653565b5b61474d848285614704565b509392505050565b600082601f83011261476a5761476961464e565b5b813561477a848260208601614713565b91505092915050565b6000806040838503121561479a576147996140f2565b5b60006147a885828601614293565b925050602083013567ffffffffffffffff8111156147c9576147c86140f7565b5b6147d585828601614755565b9150509250929050565b60006101208201905081810360008301526147fa818c614217565b9050614809602083018b614591565b614816604083018a614591565b6148236060830189614591565b6148306080830188614591565b81810360a08301526148428187614217565b905061485160c0830186614591565b61485e60e0830185614591565b61486c610100830184614591565b9a9950505050505050505050565b600080600060608486031215614893576148926140f2565b5b60006148a186828701614293565b93505060206148b286828701614293565b92505060406148c386828701614293565b9150509250925092565b6000610100820190506148e3600083018b614591565b81810360208301526148f5818a614217565b90506149046040830189614591565b6149116060830188614591565b61491e6080830187614591565b81810360a08301526149308186614217565b905061493f60c0830185614591565b61494c60e0830184614591565b9998505050505050505050565b60006020828403121561496f5761496e6140f2565b5b600061497d84828501614348565b91505092915050565b60008060006060848603121561499f5761499e6140f2565b5b60006149ad86828701614293565b935050602084013567ffffffffffffffff8111156149ce576149cd6140f7565b5b6149da86828701614755565b925050604084013567ffffffffffffffff8111156149fb576149fa6140f7565b5b614a0786828701614755565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600060a083016000830151614a5560008601826143c9565b5060208301518482036020860152614a6d82826143e9565b9150506040830151614a8260408601826143c9565b506060830151614a9560608601826143c9565b506080830151614aa860808601826143c9565b508091505092915050565b6000614abf8383614a3d565b905092915050565b6000602082019050919050565b6000614adf82614a11565b614ae98185614a1c565b935083602082028501614afb85614a2d565b8060005b85811015614b375784840389528151614b188582614ab3565b9450614b2383614ac7565b925060208a01995050600181019050614aff565b50829750879550505050505092915050565b60006020820190508181036000830152614b638184614ad4565b905092915050565b6000606082019050614b80600083018661418d565b614b8d602083018561418d565b614b9a604083018461418d565b949350505050565b600060a082019050614bb76000830188614591565b8181036020830152614bc98187614217565b9050614bd86040830186614591565b614be56060830185614591565b614bf26080830184614591565b9695505050505050565b614c0581614181565b8114614c1057600080fd5b50565b600081359050614c2281614bfc565b92915050565b60008060408385031215614c3f57614c3e6140f2565b5b6000614c4d85828601614348565b9250506020614c5e85828601614c13565b9150509250929050565b600067ffffffffffffffff821115614c8357614c82614658565b5b614c8c82614206565b9050602081019050919050565b6000614cac614ca784614c68565b6146b8565b905082815260208101848484011115614cc857614cc7614653565b5b614cd3848285614704565b509392505050565b600082601f830112614cf057614cef61464e565b5b8135614d00848260208601614c99565b91505092915050565b60008060008060808587031215614d2357614d226140f2565b5b6000614d3187828801614348565b9450506020614d4287828801614348565b9350506040614d5387828801614293565b925050606085013567ffffffffffffffff811115614d7457614d736140f7565b5b614d8087828801614cdb565b91505092959194509250565b60008060408385031215614da357614da26140f2565b5b6000614db185828601614348565b9250506020614dc285828601614348565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614e1357607f821691505b60208210811415614e2757614e26614dcc565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614e896021836141c2565b9150614e9482614e2d565b604082019050919050565b60006020820190508181036000830152614eb881614e7c565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000614f1b603d836141c2565b9150614f2682614ebf565b604082019050919050565b60006020820190508181036000830152614f4a81614f0e565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000614fad602d836141c2565b9150614fb882614f51565b604082019050919050565b60006020820190508181036000830152614fdc81614fa0565b9050919050565b8082525050565b8082525050565b614ffa81614272565b82525050565b600060a0820190506150156000830188614fe3565b6150226020830187614fea565b61502f6040830186614ff1565b61503c6060830185614ff1565b6150496080830184614ff1565b9695505050505050565b600081905092915050565b50565b600061506e600083615053565b91506150798261505e565b600082019050919050565b600061508f82615061565b9150819050919050565b7f216f776e65720000000000000000000000000000000000000000000000000000600082015250565b60006150cf6006836141c2565b91506150da82615099565b602082019050919050565b600060208201905081810360008301526150fe816150c2565b9050919050565b7f53746f726167652066756c6c0000000000000000000000000000000000000000600082015250565b600061513b600c836141c2565b915061514682615105565b602082019050919050565b6000602082019050818103600083015261516a8161512e565b9050919050565b7f4e6f2062616e6477696474680000000000000000000000000000000000000000600082015250565b60006151a7600c836141c2565b91506151b282615171565b602082019050919050565b600060208201905081810360008301526151d68161519a565b9050919050565b8082525050565b600082825260208201905092915050565b60008190508160005260206000209050919050565b6000815461521781614dfb565b61522181866151e4565b9450600182166000811461523c576001811461524e57615281565b60ff1983168652602086019350615281565b615257856151f5565b60005b838110156152795781548189015260018201915060208101905061525a565b808801955050505b50505092915050565b600060a08201905061529f60008301886151dd565b6152ac6020830187614ff1565b6152b96040830186614ff1565b6152c66060830185614ff1565b81810360808301526152d8818461520a565b90509695505050505050565b60006152f76152f2846146d3565b6146b8565b90508281526020810184848401111561531357615312614653565b5b61531e8482856141d3565b509392505050565b600082601f83011261533b5761533a61464e565b5b815161534b8482602086016152e4565b91505092915050565b60006020828403121561536a576153696140f2565b5b600082015167ffffffffffffffff811115615388576153876140f7565b5b61539484828501615326565b91505092915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006153d36018836141c2565b91506153de8261539d565b602082019050919050565b60006020820190508181036000830152615402816153c6565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006154656029836141c2565b915061547082615409565b604082019050919050565b6000602082019050818103600083015261549481615458565b9050919050565b600081905092915050565b60006154b1826141b7565b6154bb818561549b565b93506154cb8185602086016141d3565b80840191505092915050565b60006154e382846154a6565b915081905092915050565b7f416c7265616479206d696e746564000000000000000000000000000000000000600082015250565b6000615524600e836141c2565b915061552f826154ee565b602082019050919050565b6000602082019050818103600083015261555381615517565b9050919050565b6000819050919050565b6000819050919050565b600061558961558461557f8461555a565b615564565b614272565b9050919050565b6155998161556e565b82525050565b600060a0820190506155b460008301886151dd565b6155c16020830187614ff1565b6155ce6040830186615590565b6155db6060830185614ff1565b81810360808301526155ed818461520a565b90509695505050505050565b7f53746f7261676520707269636500000000000000000000000000000000000000600082015250565b600061562f600d836141c2565b915061563a826155f9565b602082019050919050565b6000602082019050818103600083015261565e81615622565b9050919050565b7f42616e6477696474682070726963650000000000000000000000000000000000600082015250565b600061569b600f836141c2565b91506156a682615665565b602082019050919050565b600060208201905081810360008301526156ca8161568e565b9050919050565b60006156dd82856154a6565b91506156e982846154a6565b91508190509392505050565b8082525050565b600060c08201905061571160008301896156f5565b61571e6020830188614fea565b61572b6040830187614ff1565b6157386060830186614ff1565b6157456080830185614ff1565b61575260a0830184614ff1565b979650505050505050565b7f496e76616c696420486173680000000000000000000000000000000000000000600082015250565b6000615793600c836141c2565b915061579e8261575d565b602082019050919050565b600060208201905081810360008301526157c281615786565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006158256026836141c2565b9150615830826157c9565b604082019050919050565b6000602082019050818103600083015261585481615818565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006158c482614272565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156158f7576158f661588a565b5b600182019050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006159386020836141c2565b915061594382615902565b602082019050919050565b600060208201905081810360008301526159678161592b565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006159ca6025836141c2565b91506159d58261596e565b604082019050919050565b600060208201905081810360008301526159f9816159bd565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615a5c6024836141c2565b9150615a6782615a00565b604082019050919050565b60006020820190508181036000830152615a8b81615a4f565b9050919050565b6000615a9d82614272565b9150615aa883614272565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115615add57615adc61588a565b5b828201905092915050565b6000615af382614272565b9150615afe83614272565b925082821015615b1157615b1061588a565b5b828203905092915050565b6000615b2782614272565b9150615b3283614272565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615b6b57615b6a61588a565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000615bb082614272565b9150615bbb83614272565b925082615bcb57615bca615b76565b5b828204905092915050565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b6000615c32602e836141c2565b9150615c3d82615bd6565b604082019050919050565b60006020820190508181036000830152615c6181615c25565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615c9e6019836141c2565b9150615ca982615c68565b602082019050919050565b60006020820190508181036000830152615ccd81615c91565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615d306032836141c2565b9150615d3b82615cd4565b604082019050919050565b60006020820190508181036000830152615d5f81615d23565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615d8d82615d66565b615d978185615d71565b9350615da78185602086016141d3565b615db081614206565b840191505092915050565b6000608082019050615dd06000830187614307565b615ddd6020830186614307565b615dea6040830185614591565b8181036060830152615dfc8184615d82565b905095945050505050565b600081519050615e1681614128565b92915050565b600060208284031215615e3257615e316140f2565b5b6000615e4084828501615e07565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615e7f6020836141c2565b9150615e8a82615e49565b602082019050919050565b60006020820190508181036000830152615eae81615e72565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615eeb601c836141c2565b9150615ef682615eb5565b602082019050919050565b60006020820190508181036000830152615f1a81615ede565b905091905056fea264697066735822122023a5c2579b40d3473a1a2eb406330248f5b12179133d9024f4578e0002306ca764736f6c634300080a0033

Deployed Bytecode

0x60806040526004361061027d5760003560e01c806390538a261161014f578063bd5ec8ef116100c1578063dc2d8a4a1161007a578063dc2d8a4a146109ab578063e23ed0bb146109d4578063e985e9c5146109ff578063ef113c4814610a3c578063f2fde38b14610a79578063fbef6a6414610aa25761027d565b8063bd5ec8ef146108a5578063be2792fe146108ce578063c271e267146108ea578063c87b56dd14610906578063d399eaf914610943578063d81f9e1a146109805761027d565b8063a0712d6811610113578063a0712d68146107a6578063a20c8d52146107c2578063a22cb465146107ff578063aa46a40014610828578063b88d4fde14610853578063bca653ea1461087c5761027d565b806390538a26146106a957806393a6cc7f146106ea5780639441291514610727578063953584811461075057806395d89b411461077b5761027d565b80633f38acda116101f357806370a08231116101ac57806370a0823114610597578063715018a6146105d45780637b302dfc146105eb5780638b116bf1146106145780638da5cb5b1461063f5780638f3448381461066a5761027d565b80633f38acda1461045457806342842e0e146104995780634425bf49146104c25780635c975abb146104eb5780635d093de4146105165780636352211e1461055a5761027d565b8063136439dd11610245578063136439dd1461037b57806319ced761146103a457806323b872dd146103cf5780632a2cc044146103f85780633ccfd60b146104215780633e9d5cf41461042b5761027d565b806301ffc9a71461028257806306fdde03146102bf578063081812fc146102ea578063095ea7b3146103275780630a421f0f14610350575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a49190614154565b610adf565b6040516102b6919061419c565b60405180910390f35b3480156102cb57600080fd5b506102d4610b59565b6040516102e19190614250565b60405180910390f35b3480156102f657600080fd5b50610311600480360381019061030c91906142a8565b610beb565b60405161031e9190614316565b60405180910390f35b34801561033357600080fd5b5061034e6004803603810190610349919061435d565b610c31565b005b34801561035c57600080fd5b50610365610d49565b604051610372919061456f565b60405180910390f35b34801561038757600080fd5b506103a2600480360381019061039d91906142a8565b610dab565b005b3480156103b057600080fd5b506103b9610dbd565b6040516103c691906145a0565b60405180910390f35b3480156103db57600080fd5b506103f660048036038101906103f191906145bb565b610dc9565b005b34801561040457600080fd5b5061041f600480360381019061041a919061460e565b610e29565b005b610429610ebf565b005b34801561043757600080fd5b50610452600480360381019061044d9190614783565b610f40565b005b34801561046057600080fd5b5061047b600480360381019061047691906142a8565b610fbf565b604051610490999897969594939291906147df565b60405180910390f35b3480156104a557600080fd5b506104c060048036038101906104bb91906145bb565b61111d565b005b3480156104ce57600080fd5b506104e960048036038101906104e4919061487a565b61113d565b005b3480156104f757600080fd5b5061050061147c565b60405161050d91906145a0565b60405180910390f35b34801561052257600080fd5b5061053d600480360381019061053891906142a8565b611482565b6040516105519897969594939291906148cd565b60405180910390f35b34801561056657600080fd5b50610581600480360381019061057c91906142a8565b6115da565b60405161058e9190614316565b60405180910390f35b3480156105a357600080fd5b506105be60048036038101906105b99190614959565b611661565b6040516105cb91906145a0565b60405180910390f35b3480156105e057600080fd5b506105e9611719565b005b3480156105f757600080fd5b50610612600480360381019061060d9190614986565b61172d565b005b34801561062057600080fd5b5061062961181d565b6040516106369190614b49565b60405180910390f35b34801561064b57600080fd5b5061065461187f565b6040516106619190614316565b60405180910390f35b34801561067657600080fd5b50610691600480360381019061068c919061460e565b6118a9565b6040516106a093929190614b6b565b60405180910390f35b3480156106b557600080fd5b506106d060048036038101906106cb91906142a8565b6118c7565b6040516106e1959493929190614ba2565b60405180910390f35b3480156106f657600080fd5b50610711600480360381019061070c91906142a8565b611985565b60405161071e91906145a0565b60405180910390f35b34801561073357600080fd5b5061074e6004803603810190610749919061460e565b6119a9565b005b34801561075c57600080fd5b506107656119d0565b6040516107729190614316565b60405180910390f35b34801561078757600080fd5b506107906119df565b60405161079d9190614250565b60405180910390f35b6107c060048036038101906107bb91906142a8565b611a71565b005b3480156107ce57600080fd5b506107e960048036038101906107e491906142a8565b611e48565b6040516107f691906145a0565b60405180910390f35b34801561080b57600080fd5b5061082660048036038101906108219190614c28565b611e6c565b005b34801561083457600080fd5b5061083d611e82565b60405161084a91906145a0565b60405180910390f35b34801561085f57600080fd5b5061087a60048036038101906108759190614d09565b611e8e565b005b34801561088857600080fd5b506108a3600480360381019061089e91906142a8565b611ef0565b005b3480156108b157600080fd5b506108cc60048036038101906108c7919061460e565b611f28565b005b6108e860048036038101906108e3919061460e565b611f4f565b005b61090460048036038101906108ff919061460e565b61223d565b005b34801561091257600080fd5b5061092d600480360381019061092891906142a8565b612418565b60405161093a9190614250565b60405180910390f35b34801561094f57600080fd5b5061096a600480360381019061096591906142a8565b61252b565b60405161097791906145a0565b60405180910390f35b34801561098c57600080fd5b5061099561254b565b6040516109a291906145a0565b60405180910390f35b3480156109b757600080fd5b506109d260048036038101906109cd919061487a565b612557565b005b3480156109e057600080fd5b506109e96125f0565b6040516109f691906145a0565b60405180910390f35b348015610a0b57600080fd5b50610a266004803603810190610a219190614d8c565b6125f6565b604051610a33919061419c565b60405180910390f35b348015610a4857600080fd5b50610a636004803603810190610a5e9190614783565b61268a565b604051610a709190614250565b60405180910390f35b348015610a8557600080fd5b50610aa06004803603810190610a9b9190614959565b6127e0565b005b348015610aae57600080fd5b50610ac96004803603810190610ac49190614959565b612864565b604051610ad691906145a0565b60405180910390f35b60007f95358481000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b525750610b5182612882565b5b9050919050565b606060008054610b6890614dfb565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9490614dfb565b8015610be15780601f10610bb657610100808354040283529160200191610be1565b820191906000526020600020905b815481529060010190602001808311610bc457829003601f168201915b5050505050905090565b6000610bf6826128e3565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c3c826115da565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca490614e9f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ccc61292e565b73ffffffffffffffffffffffffffffffffffffffff161480610cfb5750610cfa81610cf561292e565b6125f6565b5b610d3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3190614f31565b60405180910390fd5b610d448383612936565b505050565b6060610da66011805480602002602001604051908101604052809291908181526020018280548015610d9a57602002820191906000526020600020905b815481526020019060010190808311610d86575b5050505050600d6129ef565b905090565b610db3612c2a565b80600f8190555050565b60098060000154905081565b610dda610dd461292e565b82612ca8565b610e19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1090614fc3565b60405180910390fd5b610e24838383612d3d565b505050565b610e31612c2a565b6000610e3d600a613037565b9050737971280f734933c51e18b9340c386ca1c9f67651630fb47b8a600e60128487876040518663ffffffff1660e01b8152600401610e80959493929190615000565b60006040518083038186803b158015610e9857600080fd5b505af4158015610eac573d6000803e3d6000fd5b50505050610eba600a613045565b505050565b610ec7612c2a565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051610eed90615084565b60006040518083038185875af1925050503d8060008114610f2a576040519150601f19603f3d011682016040523d82523d6000602084013e610f2f565b606091505b5050905080610f3d57600080fd5b50565b610f51610f4b61292e565b83612ca8565b610f90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f87906150e5565b60405180910390fd5b80600c60008481526020019081526020016000206000019080519060200190610fba929190613f44565b505050565b600c602052806000526040600020600091509050806000018054610fe290614dfb565b80601f016020809104026020016040519081016040528092919081815260200182805461100e90614dfb565b801561105b5780601f106110305761010080835404028352916020019161105b565b820191906000526020600020905b81548152906001019060200180831161103e57829003601f168201915b50505050509080600101549080600201549080600301549080600401549080600501805461108890614dfb565b80601f01602080910402602001604051908101604052809291908181526020018280546110b490614dfb565b80156111015780601f106110d657610100808354040283529160200191611101565b820191906000526020600020905b8154815290600101906020018083116110e457829003601f168201915b5050505050908060060154908060070154908060080154905089565b61113883838360405180602001604052806000815250611e8e565b505050565b6111468361305b565b61114f57600080fd5b61116061115a61292e565b84612ca8565b806111a4575061116e61292e565b73ffffffffffffffffffffffffffffffffffffffff1661118c61187f565b73ffffffffffffffffffffffffffffffffffffffff16145b6111e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111da906150e5565b60405180910390fd5b600061120e83600c60008781526020019081526020016000206001015461309c90919063ffffffff16565b9050600c600085815260200190815260200160002060040154811115611269576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126090615151565b60405180910390fd5b6000600c600086815260200190815260200160002060080154116112c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b9906151bd565b60405180910390fd5b6000600c600086815260200190815260200160002060080154905060008382116112ed576000611317565b61131684600c6000898152602001908152602001600020600801546130b290919063ffffffff16565b5b905082600c60008881526020019081526020016000206001018190555042600c60008881526020019081526020016000206007018190555080600c60008881526020019081526020016000206008018190555061138a600c600088815260200190815260200160002060040154846130c8565b600c60008881526020019081526020016000206002018190555061147486737971280f734933c51e18b9340c386ca1c9f6765163f3952fc1600c8a600c60008d815260200190815260200160002060020154600c60008e815260200190815260200160002060030154600c60008f81526020019081526020016000206005016040518663ffffffff1660e01b815260040161142995949392919061528a565b600060405180830381865af4158015611446573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061146f9190615354565b613139565b505050505050565b600f5481565b600d6020528060005260406000206000915090508060000154908060010180546114ab90614dfb565b80601f01602080910402602001604051908101604052809291908181526020018280546114d790614dfb565b80156115245780601f106114f957610100808354040283529160200191611524565b820191906000526020600020905b81548152906001019060200180831161150757829003601f168201915b50505050509080600201549080600301549080600401549080600501805461154b90614dfb565b80601f016020809104026020016040519081016040528092919081815260200182805461157790614dfb565b80156115c45780601f10611599576101008083540402835291602001916115c4565b820191906000526020600020905b8154815290600101906020018083116115a757829003601f168201915b5050505050908060060154908060070154905088565b6000806115e6836131e4565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164f906153e9565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c99061547b565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611721612c2a565b61172b6000613221565b565b61173e61173861292e565b84612ca8565b61177d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611774906150e5565b60405180910390fd5b60008260405160200161179091906154d7565b60405160208183030381529060405280519060200120905081600c6000868152602001908152602001600020600901600083815260200190815260200160002060000190805190602001906117e6929190613f44565b506001600c600086815260200190815260200160002060090160008381526020019081526020016000206001018190555050505050565b606061187a601280548060200260200160405190810160405280929190818152602001828054801561186e57602002820191906000526020600020905b81548152602001906001019080831161185a575b5050505050600e6132e7565b905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060006118ba600c868661347b565b9250925092509250925092565b600e6020528060005260406000206000915090508060000154908060010180546118f090614dfb565b80601f016020809104026020016040519081016040528092919081815260200182805461191c90614dfb565b80156119695780601f1061193e57610100808354040283529160200191611969565b820191906000526020600020905b81548152906001019060200180831161194c57829003601f168201915b5050505050908060020154908060030154908060040154905085565b6012818154811061199557600080fd5b906000526020600020016000915090505481565b6119b1612c2a565b80600d6000848152602001908152602001600020600701819055505050565b60006119da61187f565b905090565b6060600180546119ee90614dfb565b80601f0160208091040260200160405190810160405280929190818152602001828054611a1a90614dfb565b8015611a675780601f10611a3c57610100808354040283529160200191611a67565b820191906000526020600020905b815481529060010190602001808311611a4a57829003601f168201915b5050505050905090565b6000600f5414611a8057600080fd5b6001600d60008381526020019081526020016000206007015414611aa357600080fd5b6000600d6000838152602001908152602001600020600201549050611ac661187f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b0557803414611b0457600080fd5b5b6000821415611bdd576001600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001541415611b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8b9061553a565b60405180910390fd5b6001600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001819055505b611be76008613045565b6000611bf36008613037565b9050611bff3382613537565b600d6000848152602001908152602001600020600101600c6000838152602001908152602001600020600001908054611c3790614dfb565b611c42929190613fca565b506000600c6000838152602001908152602001600020600101819055506000600c600083815260200190815260200160002060020181905550600d600084815260200190815260200160002060030154600c600083815260200190815260200160002060030181905550600d600084815260200190815260200160002060060154600c600083815260200190815260200160002060080181905550600d6000848152602001908152602001600020600501600c6000838152602001908152602001600020600501908054611d1590614dfb565b611d20929190613fca565b50600d600084815260200190815260200160002060040154600c60008381526020019081526020016000206004018190555042600c60008381526020019081526020016000206006018190555042600c600083815260200190815260200160002060070181905550611e4381737971280f734933c51e18b9340c386ca1c9f6765163f3952fc1600c856000600d60008b815260200190815260200160002060030154600c60008a81526020019081526020016000206005016040518663ffffffff1660e01b8152600401611df895949392919061559f565b600060405180830381865af4158015611e15573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611e3e9190615354565b613139565b505050565b60118181548110611e5857600080fd5b906000526020600020016000915090505481565b611e7e611e7761292e565b8383613555565b5050565b60088060000154905081565b611e9f611e9961292e565b83612ca8565b611ede576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed590614fc3565b60405180910390fd5b611eea848484846136c2565b50505050565b611ef8612c2a565b611f018161305b565b611f0a57600080fd5b42600c60008381526020019081526020016000206007018190555050565b611f30612c2a565b80600d6000848152602001908152602001600020600201819055505050565b611f60611f5a61292e565b83612ca8565b611f6957600080fd5b600c600083815260200190815260200160002060040154600d60008381526020019081526020016000206004015411611fa157600080fd5b6000600d6000838152602001908152602001600020600201549050803414611ffe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ff590615645565b60405180910390fd5b612034600d600084815260200190815260200160002060040154600c6000868152602001908152602001600020600101546130c8565b600c600085815260200190815260200160002060020181905550600d600083815260200190815260200160002060030154600c6000858152602001908152602001600020600301819055506120be600d600084815260200190815260200160002060060154600c60008681526020019081526020016000206008015461309c90919063ffffffff16565b600c600085815260200190815260200160002060080181905550600d6000838152602001908152602001600020600501600c600085815260200190815260200160002060050190805461211090614dfb565b61211b929190613fca565b50600d600083815260200190815260200160002060040154600c60008581526020019081526020016000206004018190555042600c60008581526020019081526020016000206007018190555061223883737971280f734933c51e18b9340c386ca1c9f6765163f3952fc1600c87600c60008a815260200190815260200160002060020154600c60008b815260200190815260200160002060030154600c60008c81526020019081526020016000206005016040518663ffffffff1660e01b81526004016121ed95949392919061528a565b600060405180830381865af415801561220a573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906122339190615354565b613139565b505050565b61224e61224861292e565b83612ca8565b61228d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612284906150e5565b60405180910390fd5b6000600e60008381526020019081526020016000206002015490508034146122ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e1906156b1565b60405180910390fd5b612329600e600084815260200190815260200160002060030154600c60008681526020019081526020016000206008015461309c90919063ffffffff16565b600c60008581526020019081526020016000206008018190555061241383737971280f734933c51e18b9340c386ca1c9f6765163f3952fc1600c87600c60008a815260200190815260200160002060020154600c60008b815260200190815260200160002060030154600c60008c81526020019081526020016000206005016040518663ffffffff1660e01b81526004016123c895949392919061528a565b600060405180830381865af41580156123e5573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061240e9190615354565b613139565b505050565b6060612423826128e3565b600060066000848152602001908152602001600020805461244390614dfb565b80601f016020809104026020016040519081016040528092919081815260200182805461246f90614dfb565b80156124bc5780601f10612491576101008083540402835291602001916124bc565b820191906000526020600020905b81548152906001019060200180831161249f57829003601f168201915b5050505050905060006124cd61371e565b90506000815114156124e3578192505050612526565b6000825111156125185780826040516020016125009291906156d1565b60405160208183030381529060405292505050612526565b61252184613735565b925050505b919050565b6000600c6000838152602001908152602001600020600101549050919050565b600a8060000154905081565b61255f612c2a565b6125696009613045565b60006125756009613037565b9050737971280f734933c51e18b9340c386ca1c9f67651634ccaffff600d6011848888886040518763ffffffff1660e01b81526004016125ba969594939291906156fc565b60006040518083038186803b1580156125d257600080fd5b505af41580156125e6573d6000803e3d6000fd5b5050505050505050565b60105481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060008260405160200161269f91906154d7565b6040516020818303038152906040528051906020012090506001600c600086815260200190815260200160002060090160008381526020019081526020016000206001015414612724576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271b906157a9565b60405180910390fd5b600c60008581526020019081526020016000206009016000828152602001908152602001600020600001805461275990614dfb565b80601f016020809104026020016040519081016040528092919081815260200182805461278590614dfb565b80156127d25780601f106127a7576101008083540402835291602001916127d2565b820191906000526020600020905b8154815290600101906020018083116127b557829003601f168201915b505050505091505092915050565b6127e8612c2a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612858576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284f9061583b565b60405180910390fd5b61286181613221565b50565b600b6020528060005260406000206000915090508060000154905081565b6000634906490660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128dc57506128db8261379d565b5b9050919050565b6128ec8161305b565b61292b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612922906153e9565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166129a9836115da565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60606000835167ffffffffffffffff811115612a0e57612a0d614658565b5b604051908082528060200260200182016040528015612a4757816020015b612a34614057565b815260200190600190039081612a2c5790505b50905060005b8451811015612c1f57836000868381518110612a6c57612a6b61585b565b5b602002602001015181526020019081526020016000206040518061010001604052908160008201548152602001600182018054612aa890614dfb565b80601f0160208091040260200160405190810160405280929190818152602001828054612ad490614dfb565b8015612b215780601f10612af657610100808354040283529160200191612b21565b820191906000526020600020905b815481529060010190602001808311612b0457829003601f168201915b50505050508152602001600282015481526020016003820154815260200160048201548152602001600582018054612b5890614dfb565b80601f0160208091040260200160405190810160405280929190818152602001828054612b8490614dfb565b8015612bd15780601f10612ba657610100808354040283529160200191612bd1565b820191906000526020600020905b815481529060010190602001808311612bb457829003601f168201915b5050505050815260200160068201548152602001600782015481525050828281518110612c0157612c0061585b565b5b60200260200101819052508080612c17906158b9565b915050612a4d565b508091505092915050565b612c3261292e565b73ffffffffffffffffffffffffffffffffffffffff16612c5061187f565b73ffffffffffffffffffffffffffffffffffffffff1614612ca6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c9d9061594e565b60405180910390fd5b565b600080612cb4836115da565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612cf65750612cf581856125f6565b5b80612d3457508373ffffffffffffffffffffffffffffffffffffffff16612d1c84610beb565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612d5d826115da565b73ffffffffffffffffffffffffffffffffffffffff1614612db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612daa906159e0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612e23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e1a90615a72565b60405180910390fd5b612e30838383600161387f565b8273ffffffffffffffffffffffffffffffffffffffff16612e50826115da565b73ffffffffffffffffffffffffffffffffffffffff1614612ea6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e9d906159e0565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46130328383836001613885565b505050565b600081600001549050919050565b6001816000016000828254019250508190555050565b60008073ffffffffffffffffffffffffffffffffffffffff1661307d836131e4565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600081836130aa9190615a92565b905092915050565b600081836130c09190615ae8565b905092915050565b6000808284116130e35783836130de9190615ae8565b6130f0565b82846130ef9190615ae8565b5b90506000841415613105576000915050613133565b6000846064836131159190615b1c565b61311f9190615ba5565b905080606461312e9190615ae8565b925050505b92915050565b6131428261305b565b613181576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161317890615c48565b60405180910390fd5b806006600084815260200190815260200160002090805190602001906131a8929190613f44565b507ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce7826040516131d891906145a0565b60405180910390a15050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60606000835167ffffffffffffffff81111561330657613305614658565b5b60405190808252806020026020018201604052801561333f57816020015b61332c61409c565b8152602001906001900390816133245790505b50905060005b8451811015613470578360008683815181106133645761336361585b565b5b602002602001015181526020019081526020016000206040518060a00160405290816000820154815260200160018201805461339f90614dfb565b80601f01602080910402602001604051908101604052809291908181526020018280546133cb90614dfb565b80156134185780601f106133ed57610100808354040283529160200191613418565b820191906000526020600020905b8154815290600101906020018083116133fb57829003601f168201915b5050505050815260200160028201548152602001600382015481526020016004820154815250508282815181106134525761345161585b565b5b60200260200101819052508080613468906158b9565b915050613345565b508091505092915050565b600080600080915060009050856000868152602001908152602001600020600401546134c5858860008981526020019081526020016000206001015461309c90919063ffffffff16565b11806134e65750600086600087815260200190815260200160002060080154145b156134f057600191505b62278d0086600087815260200190815260200160002060070154426135159190615ae8565b111561352057600190505b8115801561352c575080155b925093509350939050565b61355182826040518060200160405280600081525061388b565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156135c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135bb90615cb4565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516136b5919061419c565b60405180910390a3505050565b6136cd848484612d3d565b6136d9848484846138e6565b613718576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161370f90615d46565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b6060613740826128e3565b600061374a61371e565b9050600081511161376a5760405180602001604052806000815250613795565b8061377484613a6e565b6040516020016137859291906156d1565b6040516020818303038152906040525b915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061386857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613878575061387782613b46565b5b9050919050565b50505050565b50505050565b6138958383613bb0565b6138a260008484846138e6565b6138e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138d890615d46565b60405180910390fd5b505050565b60006139078473ffffffffffffffffffffffffffffffffffffffff16613dce565b15613a61578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261393061292e565b8786866040518563ffffffff1660e01b81526004016139529493929190615dbb565b6020604051808303816000875af192505050801561398e57506040513d601f19601f8201168201806040525081019061398b9190615e1c565b60015b613a11573d80600081146139be576040519150601f19603f3d011682016040523d82523d6000602084013e6139c3565b606091505b50600081511415613a09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a0090615d46565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613a66565b600190505b949350505050565b606060006001613a7d84613df1565b01905060008167ffffffffffffffff811115613a9c57613a9b614658565b5b6040519080825280601f01601f191660200182016040528015613ace5781602001600182028036833780820191505090505b509050600082602001820190505b600115613b3b578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581613b2557613b24615b76565b5b0494506000851415613b3657613b3b565b613adc565b819350505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613c20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c1790615e95565b60405180910390fd5b613c298161305b565b15613c69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c6090615f01565b60405180910390fd5b613c7760008383600161387f565b613c808161305b565b15613cc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cb790615f01565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613dca600083836001613885565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613e4f577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613e4557613e44615b76565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613e8c576d04ee2d6d415b85acef81000000008381613e8257613e81615b76565b5b0492506020810190505b662386f26fc100008310613ebb57662386f26fc100008381613eb157613eb0615b76565b5b0492506010810190505b6305f5e1008310613ee4576305f5e1008381613eda57613ed9615b76565b5b0492506008810190505b6127108310613f09576127108381613eff57613efe615b76565b5b0492506004810190505b60648310613f2c5760648381613f2257613f21615b76565b5b0492506002810190505b600a8310613f3b576001810190505b80915050919050565b828054613f5090614dfb565b90600052602060002090601f016020900481019282613f725760008555613fb9565b82601f10613f8b57805160ff1916838001178555613fb9565b82800160010185558215613fb9579182015b82811115613fb8578251825591602001919060010190613f9d565b5b509050613fc691906140cb565b5090565b828054613fd690614dfb565b90600052602060002090601f016020900481019282613ff85760008555614046565b82601f106140095780548555614046565b8280016001018555821561404657600052602060002091601f016020900482015b8281111561404557825482559160010191906001019061402a565b5b50905061405391906140cb565b5090565b60405180610100016040528060008152602001606081526020016000815260200160008152602001600081526020016060815260200160008152602001600081525090565b6040518060a0016040528060008152602001606081526020016000815260200160008152602001600081525090565b5b808211156140e45760008160009055506001016140cc565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b614131816140fc565b811461413c57600080fd5b50565b60008135905061414e81614128565b92915050565b60006020828403121561416a576141696140f2565b5b60006141788482850161413f565b91505092915050565b60008115159050919050565b61419681614181565b82525050565b60006020820190506141b1600083018461418d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156141f15780820151818401526020810190506141d6565b83811115614200576000848401525b50505050565b6000601f19601f8301169050919050565b6000614222826141b7565b61422c81856141c2565b935061423c8185602086016141d3565b61424581614206565b840191505092915050565b6000602082019050818103600083015261426a8184614217565b905092915050565b6000819050919050565b61428581614272565b811461429057600080fd5b50565b6000813590506142a28161427c565b92915050565b6000602082840312156142be576142bd6140f2565b5b60006142cc84828501614293565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000614300826142d5565b9050919050565b614310816142f5565b82525050565b600060208201905061432b6000830184614307565b92915050565b61433a816142f5565b811461434557600080fd5b50565b60008135905061435781614331565b92915050565b60008060408385031215614374576143736140f2565b5b600061438285828601614348565b925050602061439385828601614293565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6143d281614272565b82525050565b600082825260208201905092915050565b60006143f4826141b7565b6143fe81856143d8565b935061440e8185602086016141d3565b61441781614206565b840191505092915050565b60006101008301600083015161443b60008601826143c9565b506020830151848203602086015261445382826143e9565b915050604083015161446860408601826143c9565b50606083015161447b60608601826143c9565b50608083015161448e60808601826143c9565b5060a083015184820360a08601526144a682826143e9565b91505060c08301516144bb60c08601826143c9565b5060e08301516144ce60e08601826143c9565b508091505092915050565b60006144e58383614422565b905092915050565b6000602082019050919050565b60006145058261439d565b61450f81856143a8565b935083602082028501614521856143b9565b8060005b8581101561455d578484038952815161453e85826144d9565b9450614549836144ed565b925060208a01995050600181019050614525565b50829750879550505050505092915050565b6000602082019050818103600083015261458981846144fa565b905092915050565b61459a81614272565b82525050565b60006020820190506145b56000830184614591565b92915050565b6000806000606084860312156145d4576145d36140f2565b5b60006145e286828701614348565b93505060206145f386828701614348565b925050604061460486828701614293565b9150509250925092565b60008060408385031215614625576146246140f2565b5b600061463385828601614293565b925050602061464485828601614293565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61469082614206565b810181811067ffffffffffffffff821117156146af576146ae614658565b5b80604052505050565b60006146c26140e8565b90506146ce8282614687565b919050565b600067ffffffffffffffff8211156146ee576146ed614658565b5b6146f782614206565b9050602081019050919050565b82818337600083830152505050565b6000614726614721846146d3565b6146b8565b90508281526020810184848401111561474257614741614653565b5b61474d848285614704565b509392505050565b600082601f83011261476a5761476961464e565b5b813561477a848260208601614713565b91505092915050565b6000806040838503121561479a576147996140f2565b5b60006147a885828601614293565b925050602083013567ffffffffffffffff8111156147c9576147c86140f7565b5b6147d585828601614755565b9150509250929050565b60006101208201905081810360008301526147fa818c614217565b9050614809602083018b614591565b614816604083018a614591565b6148236060830189614591565b6148306080830188614591565b81810360a08301526148428187614217565b905061485160c0830186614591565b61485e60e0830185614591565b61486c610100830184614591565b9a9950505050505050505050565b600080600060608486031215614893576148926140f2565b5b60006148a186828701614293565b93505060206148b286828701614293565b92505060406148c386828701614293565b9150509250925092565b6000610100820190506148e3600083018b614591565b81810360208301526148f5818a614217565b90506149046040830189614591565b6149116060830188614591565b61491e6080830187614591565b81810360a08301526149308186614217565b905061493f60c0830185614591565b61494c60e0830184614591565b9998505050505050505050565b60006020828403121561496f5761496e6140f2565b5b600061497d84828501614348565b91505092915050565b60008060006060848603121561499f5761499e6140f2565b5b60006149ad86828701614293565b935050602084013567ffffffffffffffff8111156149ce576149cd6140f7565b5b6149da86828701614755565b925050604084013567ffffffffffffffff8111156149fb576149fa6140f7565b5b614a0786828701614755565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600060a083016000830151614a5560008601826143c9565b5060208301518482036020860152614a6d82826143e9565b9150506040830151614a8260408601826143c9565b506060830151614a9560608601826143c9565b506080830151614aa860808601826143c9565b508091505092915050565b6000614abf8383614a3d565b905092915050565b6000602082019050919050565b6000614adf82614a11565b614ae98185614a1c565b935083602082028501614afb85614a2d565b8060005b85811015614b375784840389528151614b188582614ab3565b9450614b2383614ac7565b925060208a01995050600181019050614aff565b50829750879550505050505092915050565b60006020820190508181036000830152614b638184614ad4565b905092915050565b6000606082019050614b80600083018661418d565b614b8d602083018561418d565b614b9a604083018461418d565b949350505050565b600060a082019050614bb76000830188614591565b8181036020830152614bc98187614217565b9050614bd86040830186614591565b614be56060830185614591565b614bf26080830184614591565b9695505050505050565b614c0581614181565b8114614c1057600080fd5b50565b600081359050614c2281614bfc565b92915050565b60008060408385031215614c3f57614c3e6140f2565b5b6000614c4d85828601614348565b9250506020614c5e85828601614c13565b9150509250929050565b600067ffffffffffffffff821115614c8357614c82614658565b5b614c8c82614206565b9050602081019050919050565b6000614cac614ca784614c68565b6146b8565b905082815260208101848484011115614cc857614cc7614653565b5b614cd3848285614704565b509392505050565b600082601f830112614cf057614cef61464e565b5b8135614d00848260208601614c99565b91505092915050565b60008060008060808587031215614d2357614d226140f2565b5b6000614d3187828801614348565b9450506020614d4287828801614348565b9350506040614d5387828801614293565b925050606085013567ffffffffffffffff811115614d7457614d736140f7565b5b614d8087828801614cdb565b91505092959194509250565b60008060408385031215614da357614da26140f2565b5b6000614db185828601614348565b9250506020614dc285828601614348565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614e1357607f821691505b60208210811415614e2757614e26614dcc565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614e896021836141c2565b9150614e9482614e2d565b604082019050919050565b60006020820190508181036000830152614eb881614e7c565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000614f1b603d836141c2565b9150614f2682614ebf565b604082019050919050565b60006020820190508181036000830152614f4a81614f0e565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000614fad602d836141c2565b9150614fb882614f51565b604082019050919050565b60006020820190508181036000830152614fdc81614fa0565b9050919050565b8082525050565b8082525050565b614ffa81614272565b82525050565b600060a0820190506150156000830188614fe3565b6150226020830187614fea565b61502f6040830186614ff1565b61503c6060830185614ff1565b6150496080830184614ff1565b9695505050505050565b600081905092915050565b50565b600061506e600083615053565b91506150798261505e565b600082019050919050565b600061508f82615061565b9150819050919050565b7f216f776e65720000000000000000000000000000000000000000000000000000600082015250565b60006150cf6006836141c2565b91506150da82615099565b602082019050919050565b600060208201905081810360008301526150fe816150c2565b9050919050565b7f53746f726167652066756c6c0000000000000000000000000000000000000000600082015250565b600061513b600c836141c2565b915061514682615105565b602082019050919050565b6000602082019050818103600083015261516a8161512e565b9050919050565b7f4e6f2062616e6477696474680000000000000000000000000000000000000000600082015250565b60006151a7600c836141c2565b91506151b282615171565b602082019050919050565b600060208201905081810360008301526151d68161519a565b9050919050565b8082525050565b600082825260208201905092915050565b60008190508160005260206000209050919050565b6000815461521781614dfb565b61522181866151e4565b9450600182166000811461523c576001811461524e57615281565b60ff1983168652602086019350615281565b615257856151f5565b60005b838110156152795781548189015260018201915060208101905061525a565b808801955050505b50505092915050565b600060a08201905061529f60008301886151dd565b6152ac6020830187614ff1565b6152b96040830186614ff1565b6152c66060830185614ff1565b81810360808301526152d8818461520a565b90509695505050505050565b60006152f76152f2846146d3565b6146b8565b90508281526020810184848401111561531357615312614653565b5b61531e8482856141d3565b509392505050565b600082601f83011261533b5761533a61464e565b5b815161534b8482602086016152e4565b91505092915050565b60006020828403121561536a576153696140f2565b5b600082015167ffffffffffffffff811115615388576153876140f7565b5b61539484828501615326565b91505092915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006153d36018836141c2565b91506153de8261539d565b602082019050919050565b60006020820190508181036000830152615402816153c6565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006154656029836141c2565b915061547082615409565b604082019050919050565b6000602082019050818103600083015261549481615458565b9050919050565b600081905092915050565b60006154b1826141b7565b6154bb818561549b565b93506154cb8185602086016141d3565b80840191505092915050565b60006154e382846154a6565b915081905092915050565b7f416c7265616479206d696e746564000000000000000000000000000000000000600082015250565b6000615524600e836141c2565b915061552f826154ee565b602082019050919050565b6000602082019050818103600083015261555381615517565b9050919050565b6000819050919050565b6000819050919050565b600061558961558461557f8461555a565b615564565b614272565b9050919050565b6155998161556e565b82525050565b600060a0820190506155b460008301886151dd565b6155c16020830187614ff1565b6155ce6040830186615590565b6155db6060830185614ff1565b81810360808301526155ed818461520a565b90509695505050505050565b7f53746f7261676520707269636500000000000000000000000000000000000000600082015250565b600061562f600d836141c2565b915061563a826155f9565b602082019050919050565b6000602082019050818103600083015261565e81615622565b9050919050565b7f42616e6477696474682070726963650000000000000000000000000000000000600082015250565b600061569b600f836141c2565b91506156a682615665565b602082019050919050565b600060208201905081810360008301526156ca8161568e565b9050919050565b60006156dd82856154a6565b91506156e982846154a6565b91508190509392505050565b8082525050565b600060c08201905061571160008301896156f5565b61571e6020830188614fea565b61572b6040830187614ff1565b6157386060830186614ff1565b6157456080830185614ff1565b61575260a0830184614ff1565b979650505050505050565b7f496e76616c696420486173680000000000000000000000000000000000000000600082015250565b6000615793600c836141c2565b915061579e8261575d565b602082019050919050565b600060208201905081810360008301526157c281615786565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006158256026836141c2565b9150615830826157c9565b604082019050919050565b6000602082019050818103600083015261585481615818565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006158c482614272565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156158f7576158f661588a565b5b600182019050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006159386020836141c2565b915061594382615902565b602082019050919050565b600060208201905081810360008301526159678161592b565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006159ca6025836141c2565b91506159d58261596e565b604082019050919050565b600060208201905081810360008301526159f9816159bd565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615a5c6024836141c2565b9150615a6782615a00565b604082019050919050565b60006020820190508181036000830152615a8b81615a4f565b9050919050565b6000615a9d82614272565b9150615aa883614272565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115615add57615adc61588a565b5b828201905092915050565b6000615af382614272565b9150615afe83614272565b925082821015615b1157615b1061588a565b5b828203905092915050565b6000615b2782614272565b9150615b3283614272565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615b6b57615b6a61588a565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000615bb082614272565b9150615bbb83614272565b925082615bcb57615bca615b76565b5b828204905092915050565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b6000615c32602e836141c2565b9150615c3d82615bd6565b604082019050919050565b60006020820190508181036000830152615c6181615c25565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615c9e6019836141c2565b9150615ca982615c68565b602082019050919050565b60006020820190508181036000830152615ccd81615c91565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615d306032836141c2565b9150615d3b82615cd4565b604082019050919050565b60006020820190508181036000830152615d5f81615d23565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615d8d82615d66565b615d978185615d71565b9350615da78185602086016141d3565b615db081614206565b840191505092915050565b6000608082019050615dd06000830187614307565b615ddd6020830186614307565b615dea6040830185614591565b8181036060830152615dfc8184615d82565b905095945050505050565b600081519050615e1681614128565b92915050565b600060208284031215615e3257615e316140f2565b5b6000615e4084828501615e07565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615e7f6020836141c2565b9150615e8a82615e49565b602082019050919050565b60006020820190508181036000830152615eae81615e72565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615eeb601c836141c2565b9150615ef682615eb5565b602082019050919050565b60006020820190508181036000830152615f1a81615ede565b905091905056fea264697066735822122023a5c2579b40d3473a1a2eb406330248f5b12179133d9024f4578e0002306ca764736f6c634300080a0033

Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

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

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