Contract 0x146deb396bf19bc8da25d26357f77273b46b7a9f

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xce9bceb436cb54e765a182925bc2af426b2b83c933c7b3f8dfd31fe8ee71fcb0Stake517689962022-12-02 9:06:3037 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.083241576847
0x54dfbb8fafb58bccc7260902ea32423348178501dc6199f12b211733464b8131Stake517689552022-12-02 9:04:1939 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.013866576504
0x9caa7566b884744a066f2fa5f4c51059917d605516227752bb418db2b330823aStake517689502022-12-02 9:04:0739 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.008387751271
0xfe4286261175f21d2dc288023bb3d811c658b87649835049eac5e1a65bbc34aaAttack517689042022-12-02 9:02:2741 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.010034104416
0x17daacca638701a055e524600ada350c822b2381b58800513db011285e468c83Attack517688422022-12-02 9:00:4143 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.006188473627
0x3b7f662d73b39345c10272be3c291d82bc9f3d4f0e5526798a40d1fa6f5ca567Attack517688362022-12-02 9:00:3143 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.006395175482
0x4e8b83927ed105c75dfa12287200d795606990210c07269d5bf90433315bfa0dWithdraw All Att...517686572022-12-02 8:56:3747 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.00454851873
0x181be67a00d08f190ee1fa4a9f236170faece3d7252c55ca4da531abb6a16f21Shear All517681592022-12-02 8:46:3757 mins ago0x5d1f6e3c6a1c123bb1b9749cf5ea4cf435744aa7 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.01652997645
0xeedab792c018a0b442ee500fbec8ded0aef06507a58d4b613e10f9219f89e9b6Withdraw517681392022-12-02 8:46:1857 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.006685838442
0x9d54c234b297710df9d8bd9f51a366ca4169a8abcd20b1a727ebb196b8b191b6Shear All517680422022-12-02 8:44:2659 mins ago0x5d1f6e3c6a1c123bb1b9749cf5ea4cf435744aa7 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.012629521427
0x3e70261dd1d161426a8f9984566a450d4e3631dde45466f42027cf774485d865Shear All517680092022-12-02 8:43:481 hr ago0x5d1f6e3c6a1c123bb1b9749cf5ea4cf435744aa7 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.013812468476
0x257bced881ae73ad1b054225fab2a41233614aed1deae50c6de8ab4992fec907Shear All517679852022-12-02 8:43:221 hr ago0x5d1f6e3c6a1c123bb1b9749cf5ea4cf435744aa7 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.01068023744
0x6cec4e874e85836e703057111db7762514baac3e672643ff70e54e7ad7eb07d0Withdraw517678572022-12-02 8:41:011 hr 2 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.004568762618
0xb36cf19d281626b66ab3fe8a8806e41c4660429b4e2ff1481efc4dc1bda8dddaWithdraw517677792022-12-02 8:39:261 hr 4 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.007276387896
0xfc8b8ea92fd45cc5da3e97022fc2bcca2c055f1c2cd6e1e7ed1c48a3e10801d4Withdraw517677512022-12-02 8:38:581 hr 4 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.003199172683
0xd599442fae7ebf3481ca9757dd9f84cbae1d6840b3a2f49642790b2625328542Withdraw517677242022-12-02 8:38:161 hr 5 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.005663692461
0x7224e34e9429d32ead49db18f55e01b8afd76db46a5fd0ad5600a74cd48f76caShear All517676932022-12-02 8:37:391 hr 6 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.019255031233
0xccc127dd7a7276f18df8dcaa80bf873078724f215652ffcc567e0bc99cac8bd5Shear All517676932022-12-02 8:37:391 hr 6 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.011906904665
0x4e6294fed5d8ece4e271e890dd306e84c1ebe7a60c775d102da7484a48e66d14Shear All517676882022-12-02 8:37:271 hr 6 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.012164026806
0x4fb0331c54022293972f962e37a26da369a6d0ce2a67f1232402b2e98db37cdbShear All517676712022-12-02 8:37:041 hr 6 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.005955974047
0x193e10224d04d7b16e8aa3cbe8135e8a347844c1848f3d46f209bdebfb20b68cShear All517676482022-12-02 8:36:411 hr 7 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.011666263843
0x91d63a42c5a55609e36ffefeb379f198fe1b11713c7365f3629b78f7f40108cfShear All517676392022-12-02 8:36:291 hr 7 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.026755968224
0x62c1e216338a268a9e701e07ceff9a469ede42cd45b3afbeb07e7999099f29bcShear All517676362022-12-02 8:36:261 hr 7 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.011619745621
0x276384399100ca46884c6cfafce6a7f4814723e28340e684f3856cbad37f1d2aShear All517676312022-12-02 8:36:211 hr 7 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.018281424044
0xa5a68515c45f9ae76d759a54200755dc4b4464552b5d443881a1ea010a322291Shear All517675972022-12-02 8:35:461 hr 8 mins ago0xd8b0e478047360dfbcfd1f64428f7fa5b96ac846 IN  0x146deb396bf19bc8da25d26357f77273b46b7a9f0 FTM0.010145798341
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x2449a95dc14782e3bfa60197af5fdd50f8ff8581e5fb56464359f0fd9824c8da447872952022-08-13 2:22:29111 days 7 hrs ago 0x5b8b975d1c4780c88e209458893a56d613a80565  Contract Creation0 FTM
[ Download CSV Export 
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
LandAttack

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at FtmScan.com on 2022-08-13
*/

// File: contracts/storage/_LandAttackStorage.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.15;

contract _LandAttackStorage {
    bytes32 internal constant LAND_ATTACK_STORAGE_POSITION =
        keccak256("games.wolfland.contracts.landattackstorage");

    struct LandAttackStorage {
        mapping(uint256 => Attacker) attackers;
        mapping(uint256 => Protector) protectors;
        mapping(uint16 => mapping(uint256 => uint256)) acreProtectors;
        mapping(uint16 => uint256[]) farmAttackers;
        address wolfBattle;
        uint256 healBase;
    }

    struct Attacker {
        uint16 farmId;
        uint64 alpha;
        uint256 healTime;
    }

    struct Protector {
        uint16 farmId;
        uint64 alpha;
        uint256 defence;
    }

    function landAttackStorage()
        internal
        pure
        returns (LandAttackStorage storage ls)
    {
        bytes32 position = LAND_ATTACK_STORAGE_POSITION;
        assembly {
            ls.slot := position
        }
    }
}

// File: contracts/storage/_LandStakerStorage.sol



pragma solidity ^0.8.15;

contract _LandStakerStorage {
    bytes32 internal constant LAND_STAKER_STORAGE_POSITION =
        keccak256("games.wolfland.contracts.landstakerstorage");

    struct LandStakerStorage {
        mapping(uint16 => mapping(uint256 => mapping(uint256 => Stake[]))) stakes;
        mapping(uint16 => mapping(uint256 => mapping(uint256 => uint256))) stakeSize;
        address[] stakables;
        uint256 shearBase;
        uint256 fee;
        address babyWool;
    }

    struct Stake {
        uint256 start;
        uint256 fertility;
        uint256[] stakable;
    }

    function landStakerStorage()
        internal
        pure
        returns (LandStakerStorage storage ls)
    {
        bytes32 position = LAND_STAKER_STORAGE_POSITION;
        assembly {
            ls.slot := position
        }
    }
}

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// 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: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

/**
 * @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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

    /**
     * @dev 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: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// 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: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

/**
 * @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: @openzeppelin/contracts/utils/Address.sol


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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev 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) {
        require(isContract(target), "Address: delegate call to non-contract");

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

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

// File: @openzeppelin/contracts/utils/Context.sol


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

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/utils/Strings.sol


// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_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) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @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] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

/**
 * @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: @openzeppelin/contracts/token/ERC721/ERC721.sol


// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;







/**
 * @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 = _owners[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 nor 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 nor 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 nor 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 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 _owners[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);

        _balances[to] += 1;
        _owners[tokenId] = to;

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

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

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

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @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.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;


/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

// File: @openzeppelin/contracts/security/Pausable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

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

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

// File: @openzeppelin/contracts/access/IAccessControl.sol


// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

// File: @openzeppelin/contracts/access/AccessControl.sol


// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;




/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;


/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
        _burn(tokenId);
    }
}

// File: @openzeppelin/contracts/interfaces/IERC2981.sol


// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

// File: @openzeppelin/contracts/token/common/ERC2981.sol


// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;


/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

// File: contracts/abstract/_ERC721.sol


pragma solidity ^0.8.4;






contract _ERC721 is
    ERC721,
    ERC721Enumerable,
    Pausable,
    AccessControl,
    ERC721Burnable,
    ERC2981
{
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
    uint96 public constant ROYALTY_FEE = 500;

    constructor(
        string memory name,
        string memory symbol,
        address royaltyReceiver
    ) ERC721(name, symbol) {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(PAUSER_ROLE, msg.sender);
        _setDefaultRoyalty(royaltyReceiver, ROYALTY_FEE);
    }

    function pause() public onlyRole(PAUSER_ROLE) {
        _pause();
    }

    function unpause() public onlyRole(PAUSER_ROLE) {
        _unpause();
    }

    function setRoyaltyReceiver(address royaltyReceiver)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _setDefaultRoyalty(royaltyReceiver, ROYALTY_FEE);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721, ERC721Enumerable) whenNotPaused {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function _burn(uint256 tokenId) internal virtual override {
        _resetTokenRoyalty(tokenId);
        super._burn(tokenId);
    }

    // The following functions are overrides required by Solidity.

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable, AccessControl, ERC2981)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


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

pragma solidity ^0.8.0;



/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol


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

pragma solidity ^0.8.0;


/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

// File: contracts/abstract/_ERC20.sol


pragma solidity ^0.8.4;




contract _ERC20 is ERC20, ERC20Burnable, Pausable, AccessControl {
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");

    constructor(string memory name, string memory symbol) ERC20(name, symbol) {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(PAUSER_ROLE, msg.sender);
    }

    function pause() public onlyRole(PAUSER_ROLE) {
        _pause();
    }

    function unpause() public onlyRole(PAUSER_ROLE) {
        _unpause();
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal override whenNotPaused {
        super._beforeTokenTransfer(from, to, amount);
    }
}

// File: contracts/abstract/_ERC721MultiCurrency.sol



pragma solidity ^0.8.13;



contract _ERC721MultiCurrency is _ERC721 {
    uint256 public constant DEFAULT_CURRENCY = 0;
    Currency[] private _currencies;
    address private _feeAccount;

    constructor(
        string memory name,
        string memory symbol,
        address feeAccount
    ) _ERC721(name, symbol, feeAccount) {
        _feeAccount = feeAccount;
    }

    function getCurrency(uint256 id)
        public
        view
        returns (
            string memory,
            uint256,
            address,
            bool
        )
    {
        Currency memory currency = _currencies[id];
        return (currency.name, currency.price, currency.erc20, currency.burn);
    }

    function addCurrency(
        string memory name,
        uint256 price,
        address erc20,
        bool burn
    ) public onlyRole(DEFAULT_ADMIN_ROLE) {
        _currencies.push(Currency(name, price, erc20, burn));
    }

    function withdraw() external onlyRole(DEFAULT_ADMIN_ROLE) {
        Address.sendValue(payable(_feeAccount), address(this).balance);
    }

    function setFeeAccount(address feeAccount)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _feeAccount = feeAccount;
    }

    function getFeeAccount() external view returns (address) {
        return _feeAccount;
    }

    function setCurrency(
        uint256 id,
        string calldata name,
        uint256 price,
        address erc20,
        bool burn
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        _currencies[id] = Currency(name, price, erc20, burn);
    }

    function deleteCurrency(uint256 id) external onlyRole(DEFAULT_ADMIN_ROLE) {
        delete _currencies[id];
    }

    function _buy(uint256 currencyId, uint256 price) internal {
        if (currencyId == DEFAULT_CURRENCY) {
            require(msg.value == price, "Incorrect value sent.");
        } else {
            Currency memory c = _currencies[currencyId];
            require(c.erc20 != address(0), "Incorrect currency address");
            _ERC20 erc20 = _ERC20(c.erc20);
            require(erc20.balanceOf(msg.sender) >= price, "Not enough value");
            if (c.burn) {
                erc20.transferFrom(msg.sender, address(this), price);
                erc20.burn(price);
            } else {
                erc20.transferFrom(msg.sender, _feeAccount, price);
            }
        }
    }

    struct Currency {
        string name;
        uint256 price;
        address erc20;
        bool burn;
    }
}

// File: @openzeppelin/contracts/utils/structs/EnumerableSet.sol


// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 *  Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.
 *  See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 *  In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

// File: contracts/storage/_LandStorage.sol



pragma solidity ^0.8.13;

contract _LandStorage {
    using EnumerableSet for EnumerableSet.UintSet;

    uint8 public constant MAP_X = 120;
    uint8 public constant MAP_Y = 120;
    uint8 public constant BIOMES_NUMBER = 20;
    uint8 internal constant BIOMES_ATTR_NUMBER = 8;
    uint8 internal constant ACRE_ATTR_NUMBER = 3;
    uint8 internal constant ACRE_X = 0;
    uint8 internal constant ACRE_Y = 1;
    uint8 internal constant ACRE_HQ = 2;
    uint8 internal constant ACRE_TYPE = 2;
    uint8 internal constant MAP_ATTR_NUMBER = 3;
    uint8 internal constant N_VALID = 2;
    uint8 internal constant N_ATTR = 3;
    uint8 internal constant N_NUM = 6;
    uint16 internal constant EMPTY_FARM = FARMS_NUMBER + 1;
    uint16 public constant FARMS_NUMBER = 400;
    address internal constant ZERO_ADDRESS = address(0);
    bytes32 internal constant LAND_STORAGE_POSITION =
        keccak256("games.wolfland.contracts.landstorage");

    struct LandStorage {
        Acre[MAP_Y][MAP_X] map;
        uint96[BIOMES_ATTR_NUMBER][BIOMES_NUMBER] biomes;
        Farm[FARMS_NUMBER] farms;
        address[FARMS_NUMBER] ownedFarms;
        mapping(uint256 => uint16) lands;
        EnumerableSet.UintSet vacantFarms;
    }

    struct Farm {
        uint8[ACRE_ATTR_NUMBER][] acres;
        uint256 hq;
        string image;
    }

    struct Acre {
        uint8 biome;
        uint16 farmId;
    }

    function landStorage() internal pure returns (LandStorage storage ls) {
        bytes32 position = LAND_STORAGE_POSITION;
        assembly {
            ls.slot := position
        }
    }
}

// File: contracts/abstract/_Delegator.sol



pragma solidity ^0.8.13;

contract _Delegator {
    mapping(address => string[]) private _delegate;

    function getDelegate(address delegate)
        external
        view
        returns (string[] memory)
    {
        return _delegate[delegate];
    }

    function delegateCall(
        address delegate,
        uint256 methodId,
        bytes memory args
    ) external returns (bytes memory) {
        return
            Address.functionDelegateCall(
                delegate,
                bytes.concat(
                    bytes4(keccak256(bytes(_delegate[delegate][methodId]))),
                    args
                )
            );
    }

    function _addDelegate(
        address delegate,
        string calldata method,
        bytes memory args
    ) internal {
        Address.functionStaticCall(
            delegate,
            bytes.concat(bytes4(keccak256(bytes(method))), args)
        );
        _delegate[delegate].push(method);
    }

    function _setDelegate(
        address delegate,
        uint256 methodId,
        string calldata method,
        bytes memory args
    ) internal {
        Address.functionStaticCall(
            delegate,
            bytes.concat(bytes4(keccak256(bytes(method))), args)
        );
        _delegate[delegate][methodId] = method;
    }

    function _deleteDelegate(address delegate) internal {
        delete _delegate[delegate];
    }
}

// File: @openzeppelin/contracts/utils/Base64.sol


// 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: contracts/utils/Lands.sol



pragma solidity ^0.8.0;



library Lands {
    uint8 private constant TRUE = 1;
    uint8 private constant ACRE_X = 0;
    uint8 private constant ACRE_Y = 1;
    uint8 private constant ACRE_HQ = 2;
    uint8 private constant ACRE_ATTR_NUMBER = 3;
    uint8 private constant BIOMES_NUMBER = 20;
    uint8 private constant BIOMES_ATTR_NUMBER = 8;
    uint8 private constant BIOME_NAME = 0;
    bytes32 private constant LAND_STORAGE_POSITION =
        keccak256("games.wolfland.contracts.landstorage");

    function createURIFor(uint256 tokenId)
        external
        view
        returns (string memory)
    {
        _LandStorage.LandStorage storage ls = _landStorage();
        uint16 farmId = ls.lands[tokenId];
        _LandStorage.Farm memory farm = ls.farms[farmId];
        uint256 acres = farm.acres.length;
        uint8[] memory biomes = new uint8[](acres);
        for (uint256 i = 0; i < acres; i++) {
            uint8 biome = ls
            .map[farm.acres[i][ACRE_X]][farm.acres[i][ACRE_Y]].biome;
            biomes[i] = biome;
        }
        string memory attrJson = _jsonFrom(farm.acres, biomes);
        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        abi.encodePacked(
                            "{",
                            '"name" : "Farm ',
                            " #",
                            Strings.toString(farmId),
                            '",',
                            '"description" : "',
                            _description(),
                            '",',
                            '"image" : "',
                            farm.image,
                            '","attributes" : ',
                            attrJson,
                            "}"
                        )
                    )
                )
            );
    }

    function _landStorage()
        private
        pure
        returns (_LandStorage.LandStorage storage ls)
    {
        bytes32 position = LAND_STORAGE_POSITION;
        assembly {
            ls.slot := position
        }
    }

    function _biomeNames() private pure returns (string[BIOMES_NUMBER] memory) {
        string[BIOMES_NUMBER] memory names = [
            "Desert",
            "Rocky Desert",
            "Plains",
            "Grassland",
            "Tundra",
            "Forest",
            "Heavy Forest",
            "Hills",
            "Hills Forest",
            "Mountains",
            "Mountains Forest",
            "Ocean",
            "Desert Oil",
            "Plains Lakes",
            "Tundra Oil",
            "Forest Magic Vibes",
            "Heavy Forest Magic Vibes",
            "Hills Iron Ore",
            "Mountains Gold",
            "Ocean Oil"
        ];
        return names;
    }

    function _jsonFrom(
        uint8[ACRE_ATTR_NUMBER][] memory acres,
        uint8[] memory biomes
    ) private pure returns (string memory) {
        string memory json = string(abi.encodePacked("["));
        for (uint8 i = 0; i < acres.length; i++) {
            json = string(
                abi.encodePacked(
                    json,
                    _jsonFor(acres[i], biomes[i]),
                    i < acres.length - 1 ? "," : "]"
                )
            );
        }
        return json;
    }

    function _jsonFor(uint8[ACRE_ATTR_NUMBER] memory acre, uint8 biome)
        private
        pure
        returns (string memory)
    {
        return
            string(
                abi.encodePacked(
                    '{ "trait_type" : "',
                    _nameFor(biome),
                    '", "value" : "',
                    Strings.toString(acre[ACRE_X]),
                    ".",
                    Strings.toString(acre[ACRE_Y]),
                    '" }'
                )
            );
    }

    function _nameFor(uint8 biome) private pure returns (string memory) {
        return _biomeNames()[biome];
    }

    function _tagFor(
        string memory image,
        uint8[ACRE_ATTR_NUMBER][] memory acres
    ) private pure returns (string memory) {
        uint8[ACRE_ATTR_NUMBER] memory hq;
        for (uint256 i = 0; i < acres.length; i++) {
            if (acres[i][ACRE_HQ] == TRUE) {
                hq = acres[i];
            }
        }
        return
            string(
                abi.encodePacked(
                    '<image x="4" y="4" width="32" height="32" image-rendering="pixelated" preserveAspectRatio="xMidYMid" xlink:href="data:image/png;base64,',
                    image,
                    Strings.toString(hq[ACRE_X]),
                    ".",
                    Strings.toString(hq[ACRE_Y]),
                    '"/>'
                )
            );
    }

    function _emptyString() private pure returns (bytes32) {
        string memory empty = "";
        return keccak256(abi.encodePacked(empty));
    }

    function _description() private pure returns (string memory) {
        string
            memory description = "This is to certify that The Presenter of This Certificate is a lawful owner of the land and its nearby territory as per the Land Registry.";
        return description;
    }
}

// File: @openzeppelin/contracts/utils/math/SignedMath.sol


// OpenZeppelin Contracts (last updated v4.5.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: contracts/utils/Maps.sol



pragma solidity ^0.8.0;


library Maps {
    using EnumerableSet for EnumerableSet.UintSet;

    uint8 private constant ACRE_X = 0;
    uint8 private constant ACRE_Y = 1;
    uint8 private constant MAP_X = 120;
    uint8 private constant MAP_Y = 120;
    uint8 private constant X = 0;
    uint8 private constant Y = 1;
    uint8 private constant N_VALID = 2;
    uint8 private constant N_ATTR = 3;
    uint8 private constant N_NUM = 6;
    uint16 private constant EMPTY_FARM = FARMS_NUMBER + 1;
    uint16 private constant FARMS_NUMBER = 400;
    address internal constant ZERO_ADDRESS = address(0);
    bytes32 private constant LAND_STORAGE_POSITION =
        keccak256("games.wolfland.contracts.landstorage");

    function getNeighbors(uint8 x, uint8 y)
        public
        pure
        returns (uint8[N_ATTR][N_NUM] memory)
    {
        uint256 size = 0;
        uint8[N_ATTR][N_NUM] memory neighbors;
        if (y > 0) {
            neighbors[size][X] = x;
            neighbors[size][Y] = y - 1;
            neighbors[size][N_VALID] = 1;
            size++;
        }
        if (y < (MAP_Y - 1)) {
            neighbors[size][X] = x;
            neighbors[size][Y] = y + 1;
            neighbors[size][N_VALID] = 1;
            size++;
        }
        if (x < (MAP_X - 1)) {
            neighbors[size][X] = x + 1;
            neighbors[size][Y] = y;
            neighbors[size][N_VALID] = 1;
            size++;
            if (x % 2 == 0) {
                if (y > 0) {
                    neighbors[size][X] = x + 1;
                    neighbors[size][Y] = y - 1;
                    neighbors[size][N_VALID] = 1;
                    size++;
                }
            } else {
                if (y < (MAP_Y - 1)) {
                    neighbors[size][X] = x + 1;
                    neighbors[size][Y] = y + 1;
                    neighbors[size][N_VALID] = 1;
                    size++;
                }
            }
        }
        if (x > 0) {
            neighbors[size][X] = x - 1;
            neighbors[size][Y] = y;
            neighbors[size][N_VALID] = 1;
            size++;

            if (x % 2 == 0) {
                if (y > 0) {
                    neighbors[size][X] = x - 1;
                    neighbors[size][Y] = y - 1;
                    neighbors[size][N_VALID] = 1;
                }
            } else {
                if (y < (MAP_Y - 1)) {
                    neighbors[size][X] = x - 1;
                    neighbors[size][Y] = y + 1;
                    neighbors[size][N_VALID] = 1;
                }
            }
        }
        return neighbors;
    }

    function getDistance(
        uint8 x1,
        uint8 y1,
        uint8 x2,
        uint8 y2
    ) external pure returns (uint256 distance) {
        int256 _q;
        int256 _r;
        int256 q;
        int256 r;
        (_q, _r) = _axial(x1, y1);
        (q, r) = _axial(x2, y2);
        return
            (SignedMath.abs(_q - q) +
                SignedMath.abs(_q + _r - q - r) +
                SignedMath.abs(_r - r)) / 2;
    }

    function canBuy(
        uint8 x,
        uint8 y,
        uint16 farmId
    ) external view returns (bool) {
        _LandStorage.LandStorage storage ls = _landStorage();
        uint16 target = ls.map[x][y].farmId;
        if (
            target != EMPTY_FARM &&
            (ls.ownedFarms[target] != ZERO_ADDRESS ||
                ls.vacantFarms.contains(target))
        ) {
            return false;
        }
        uint8[N_ATTR][N_NUM] memory neighbors = getNeighbors(x, y);
        for (uint256 i = 0; i < N_NUM; i++) {
            if (
                neighbors[i][N_VALID] == 1 &&
                ls.map[neighbors[i][ACRE_X]][neighbors[i][ACRE_Y]].farmId ==
                farmId
            ) {
                return true;
            }
        }
        return false;
    }

    function _landStorage()
        private
        pure
        returns (_LandStorage.LandStorage storage ls)
    {
        bytes32 position = LAND_STORAGE_POSITION;
        assembly {
            ls.slot := position
        }
    }

    function _axial(uint256 x, uint256 y)
        private
        pure
        returns (int256 q, int256 r)
    {
        q = int256(x);
        r = int256(y) - int256((x - (x % 2)) / 2);
    }
}

// File: @openzeppelin/contracts/utils/Counters.sol


// 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: contracts/Land.sol



pragma solidity ^0.8.13;







contract Land is
    _ERC721MultiCurrency,
    IERC721Receiver,
    _LandStorage,
    _Delegator
{
    using EnumerableSet for EnumerableSet.UintSet;
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIdCounter;
    bytes32 public constant LAND_CERTIFICATE = keccak256("CLAND");
    _ERC721 private _landCertificate;
    string private _landImage;

    constructor(
        address landCertificate,
        address feeAccount,
        uint256 defaultPrice,
        string memory landImage
    )
        _ERC721MultiCurrency(
            "Fantom Wolf Game Reborn: Land",
            "LAND",
            feeAccount
        )
    {
        _landCertificate = _ERC721(landCertificate);
        _landImage = landImage;
        addCurrency("FTM", defaultPrice, ZERO_ADDRESS, false);
    }

    function onERC721Received(
        address from,
        address,
        uint256 tokenId,
        bytes memory symbol
    ) public virtual override returns (bytes4) {
        require(LAND_CERTIFICATE == bytes32(symbol), "Incorrect transfer.");

        require(
            address(this) == _landCertificate.ownerOf(tokenId),
            "Incorrect owner."
        );
        _landCertificate.burn(tokenId);

        _assignLand(from);

        return this.onERC721Received.selector;
    }

    function setMap(uint8[MAP_ATTR_NUMBER][] calldata acres)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        LandStorage storage ls = landStorage();
        for (uint256 i = 0; i < acres.length; i++) {
            uint16 farmId = ls.map[acres[i][ACRE_X]][acres[i][ACRE_Y]].farmId;
            require(
                farmId == EMPTY_FARM || ls.ownedFarms[farmId] == ZERO_ADDRESS,
                "Acre is occupied."
            );
            ls.map[acres[i][ACRE_X]][acres[i][ACRE_Y]] = _LandStorage.Acre(
                acres[i][ACRE_TYPE],
                EMPTY_FARM
            );
        }
    }

    function getMap(uint8 x, uint8 y) external view returns (uint8, uint16) {
        LandStorage storage ls = landStorage();
        uint16 farmId = ls.map[x][y].farmId;
        return (
            ls.map[x][y].biome,
            farmId == EMPTY_FARM
                ? farmId
                : ls.ownedFarms[farmId] == ZERO_ADDRESS
                ? EMPTY_FARM
                : farmId
        );
    }

    function setBiome(
        uint8[] calldata id,
        uint96[BIOMES_ATTR_NUMBER][] calldata attributes
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        LandStorage storage ls = landStorage();
        for (uint256 i = 0; i < id.length; i++) {
            ls.biomes[id[i]] = attributes[i];
        }
    }

    function getBiome(uint8 id)
        external
        view
        returns (uint96[BIOMES_ATTR_NUMBER] memory)
    {
        LandStorage storage ls = landStorage();
        return ls.biomes[id];
    }

    function setFarm(
        uint16[] calldata id,
        uint256[] calldata size,
        uint8[ACRE_ATTR_NUMBER][] calldata acres
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        LandStorage storage ls = landStorage();
        uint256 assignedAcres = 0;
        for (uint256 i = 0; i < id.length; i++) {
            require(ls.ownedFarms[id[i]] == ZERO_ADDRESS, "Farm is occupied.");
            for (uint256 j = 0; j < size[i]; j++) {
                uint16 farmId = ls
                .map[acres[j + assignedAcres][ACRE_X]][
                    acres[j + assignedAcres][ACRE_Y]
                ].farmId;
                require(
                    farmId == EMPTY_FARM ||
                        ls.ownedFarms[farmId] == ZERO_ADDRESS,
                    "Acre is occupied."
                );
                ls.farms[id[i]].acres.push(acres[j + assignedAcres]);
                ls
                .map[acres[j + assignedAcres][ACRE_X]][
                    acres[j + assignedAcres][ACRE_Y]
                ].farmId = id[i];
                if (acres[j + assignedAcres][ACRE_HQ] == 1) {
                    ls.farms[id[i]].hq = j;
                }
            }
            ls.farms[id[i]].image = _landImage;
            assignedAcres += size[i];
            ls.vacantFarms.add(id[i]);
        }
    }

    function setFarmImage(uint16[] calldata id, string[] calldata images)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        LandStorage storage ls = landStorage();
        for (uint256 i = 0; i < id.length; i++) {
            ls.farms[id[i]].image = images[i];
        }
    }

    function getFarm(uint16 id, uint256 acre)
        external
        view
        returns (uint8[ACRE_ATTR_NUMBER] memory)
    {
        LandStorage storage ls = landStorage();
        return ls.farms[id].acres[acre];
    }

    function getFarmInfo(uint16 id)
        external
        view
        returns (
            uint256,
            uint256,
            string memory
        )
    {
        LandStorage storage ls = landStorage();
        return (ls.farms[id].hq, ls.farms[id].acres.length, ls.farms[id].image);
    }

    function deleteFarm(uint16[] calldata id)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        LandStorage storage ls = landStorage();
        for (uint256 i = 0; i < id.length; i++) {
            require(ls.ownedFarms[id[i]] == ZERO_ADDRESS, "Farm is occupied.");
            delete ls.farms[id[i]];
            ls.vacantFarms.remove(id[i]);
        }
    }

    function setLandImage(string calldata landImage)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _landImage = landImage;
    }

    function getLandImage() external view returns (string memory) {
        return _landImage;
    }

    function getOwnedFarm(uint16 id) external view returns (address) {
        LandStorage storage ls = landStorage();
        return ls.ownedFarms[id];
    }

    function getVacantFarms() external view returns (uint256) {
        LandStorage storage ls = landStorage();
        return ls.vacantFarms.length();
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(_exists(tokenId), "Non-existent token");
        return Lands.createURIFor(tokenId);
    }

    function getLandCertificate() external view returns (address) {
        return address(_landCertificate);
    }

    function getFarmId(uint256 tokenId) external view returns (uint16) {
        LandStorage storage ls = landStorage();
        return ls.lands[tokenId];
    }

    function buy(
        uint8 x,
        uint8 y,
        uint16 farmId,
        uint256 currencyId
    ) external payable whenNotPaused {
        LandStorage storage ls = landStorage();
        require(ls.ownedFarms[farmId] == _msgSender(), "Incorrect farm owner.");
        require(Maps.canBuy(x, y, farmId), "Incorrect land choice.");
        _buy(currencyId, _calculatePrice(x, y, farmId, currencyId));
        ls.map[x][y].farmId = farmId;
        ls.farms[farmId].acres.push([x, y, 0]);
    }

    function addDelegate(
        address delegate,
        string calldata method,
        bytes memory args
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        _addDelegate(delegate, method, args);
    }

    function setDelegate(
        address delegate,
        uint256 methodId,
        string calldata method,
        bytes memory args
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        _setDelegate(delegate, methodId, method, args);
    }

    function deleteDelegate(address delegate)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _deleteDelegate(delegate);
    }

    function _burn(uint256 tokenId) internal virtual override {
        LandStorage storage ls = landStorage();
        uint16 farmId = ls.lands[tokenId];
        delete ls.ownedFarms[farmId];
        delete ls.lands[tokenId];
        delete ls.farms[farmId];
        super._burn(tokenId);
    }

    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        LandStorage storage ls = landStorage();
        uint16 farmId = ls.lands[tokenId];
        ls.ownedFarms[farmId] = to;
        super._afterTokenTransfer(from, to, tokenId);
    }

    function _assignLand(address to) internal {
        LandStorage storage ls = landStorage();
        uint256 vacantFarms = ls.vacantFarms.length();
        require(vacantFarms > 0, "No available farms.");
        uint256 tokenId = _tokenIdCounter.current();
        _tokenIdCounter.increment();
        uint16 farmId = _selectFarmId(vacantFarms);
        ls.lands[tokenId] = farmId;
        ls.ownedFarms[farmId] = to;
        _safeMint(to, tokenId);
    }

    function _selectFarmId(uint256 mod) private returns (uint16) {
        LandStorage storage ls = landStorage();
        uint256 index = (uint256(uint160(address(block.coinbase))) +
            block.number +
            block.timestamp) % mod;
        uint256 farmId = ls.vacantFarms.at(index);
        assert(ls.ownedFarms[farmId] == ZERO_ADDRESS);
        ls.vacantFarms.remove(farmId);
        return uint16(farmId);
    }

    function _calculatePrice(
        uint8 x,
        uint8 y,
        uint16 farmId,
        uint256 currencyId
    ) private view returns (uint256 price) {
        LandStorage storage ls = landStorage();
        Farm memory farm = ls.farms[farmId];
        uint256 distance = Maps.getDistance(
            farm.acres[farm.hq][ACRE_X],
            farm.acres[farm.hq][ACRE_Y],
            x,
            y
        );
        assert(distance > 0);

        (, price, , ) = _ERC721MultiCurrency.getCurrency(currencyId);
        price *= 2**distance;
    }
}

// File: contracts/storage/_BabyCreatureStorage.sol



pragma solidity ^0.8.15;

contract _BabyCreatureStorage {
    uint256 public constant CREATURE_ATTR_NUM = 13;
    address internal constant ADDRESS_ZERO = address(0);
    bytes32 internal constant STORAGE_POSITION =
        keccak256("games.wolfland.contracts.babycreaturestorage");

    struct BabyCreatureStorage {
        mapping(uint64 => uint256) breedingDuration;
        mapping(uint64 => uint256[]) breedingCurrency;
        mapping(uint256 => uint64[CREATURE_ATTR_NUM]) creatureAttributesMap;
        mapping(address => BreedingStake[]) stakes;
        string[][12] sheepTraitNames;
        string[][12] sheepTraitImages;
        string[][12] wolfTraitNames;
        string[][12] wolfTraitImages;
    }

    struct BreedingStake {
        uint256 start;
        uint256 end;
        uint256 male;
        uint256 female;
    }

    function babyCreatureStorage()
        internal
        pure
        returns (BabyCreatureStorage storage _storage)
    {
        bytes32 position = STORAGE_POSITION;
        assembly {
            _storage.slot := position
        }
    }
}

// File: contracts/BabyWool.sol



pragma solidity ^0.8.13;

contract BabyWool is _ERC20 {
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    uint256 public constant DENOMINATOR = 10000;
    address private _feeReceiver;

    constructor(address feeReceiver) _ERC20("Baby Wool", "BWOOL") {
        _feeReceiver = feeReceiver;
    }

    function mint(
        address to,
        uint256 amount,
        uint256 fee
    ) external onlyRole(MINTER_ROLE) {
        uint256 _fee = 0;
        if (fee > 0) {
            _fee = (amount * fee) / DENOMINATOR;
            _mint(_feeReceiver, _fee);
        }
        _mint(to, amount - _fee);
    }

    function setFeeReceiver(address feeReceiver)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _feeReceiver = feeReceiver;
    }

    function getFeeReceiver() external view returns (address) {
        return _feeReceiver;
    }
}

// File: contracts/utils/Stakes.sol



pragma solidity ^0.8.15;





library Stakes {
    uint8 private constant MAX_SHEEP = 3;
    uint8 private constant FERTILITY = 4;
    uint8 private constant DEFENCE = 1;
    uint8 private constant CREATURE_ATTR_CLASS = 1;
    uint64 private constant WOLF_CLASS = 0;
    uint256 private constant DENOMINATOR = 10000;
    address internal constant ZERO_ADDRESS = address(0);
    bytes32 private constant LAND_STAKER_STORAGE_POSITION =
        keccak256("games.wolfland.contracts.landstakerstorage");
    bytes32 private constant LAND_STORAGE_POSITION =
        keccak256("games.wolfland.contracts.landstorage");
    bytes32 private constant BABY_CREATURE_STORAGE_POSITION =
        keccak256("games.wolfland.contracts.babycreaturestorage");

    function estimateShear(
        uint16 farmId,
        uint256 acre,
        uint256 stakableType,
        uint256 stakeId
    ) external view returns (uint256) {
        _LandStakerStorage.LandStakerStorage storage ls = _landStakerStorage();
        _LandStakerStorage.Stake storage _stake = ls.stakes[farmId][acre][
            stakableType
        ][stakeId];
        if (block.timestamp <= _stake.start) {
            return 0;
        }
        uint256 duration = (block.timestamp - _stake.start);
        uint256 amount = (duration *
            _stake.stakable.length *
            ls.shearBase *
            _stake.fertility) / DENOMINATOR;
        uint256 fee = 0;
        if (ls.fee > 0) {
            fee = (amount * ls.fee) / DENOMINATOR;
        }
        return amount - fee;
    }

    function getAcreData(uint16 farmId, uint256 acre)
        external
        view
        returns (
            address owner,
            uint256 capacity,
            uint256 fertility,
            uint256 defence,
            bool hq
        )
    {
        _LandStorage.LandStorage storage ls = _landStorage();
        owner = ls.ownedFarms[farmId];
        hq = false;

        _LandStorage.Farm memory farm = ls.farms[farmId];
        if (farm.acres.length > 0) {
            uint8[3] memory _acre = farm.acres[acre];
            uint8 biome = ls.map[_acre[0]][_acre[1]].biome;
            if (acre == farm.hq) {
                capacity = 0;
                fertility = 0;
                hq = true;
            } else {
                capacity = ls.biomes[biome][MAX_SHEEP];
                fertility = ls.biomes[biome][FERTILITY];
            }
            defence = ls.biomes[biome][DEFENCE];
        }
    }

    function getFarmData(uint16 farmId)
        external
        view
        returns (address owner, uint256 acres)
    {
        _LandStorage.LandStorage storage ls = _landStorage();
        owner = ls.ownedFarms[farmId];
        acres = ls.farms[farmId].acres.length;
    }

    function allSheepDelegate(uint256[] calldata creatureId)
        external
        view
        returns (bool)
    {
        _BabyCreatureStorage.BabyCreatureStorage
            storage _storage = _babyCreatureStorage();
        for (uint256 i = 0; i < creatureId.length; i++) {
            if (
                _storage.creatureAttributesMap[creatureId[i]][
                    CREATURE_ATTR_CLASS
                ] == WOLF_CLASS
            ) {
                return false;
            }
        }
        return true;
    }

    function shear(
        uint16 farmId,
        uint256 acre,
        uint256 stakableType,
        uint256 stakeId,
        address owner
    ) external {
        _LandStakerStorage.LandStakerStorage storage ls = _landStakerStorage();
        _LandStakerStorage.Stake storage _stake = ls.stakes[farmId][acre][
            stakableType
        ][stakeId];
        uint256 size = _stake.stakable.length;
        if (block.timestamp > _stake.start && size > 0) {
            uint256 duration = (block.timestamp - _stake.start);
            _stake.start = block.timestamp;
            BabyWool(ls.babyWool).mint(
                owner,
                (duration * size * ls.shearBase * _stake.fertility) /
                    DENOMINATOR,
                ls.fee
            );
        }
    }

    function withdraw(
        uint16 farmId,
        uint256 acre,
        uint256 stakableType,
        uint256 stakeId,
        uint256[] memory stakableIndex,
        address owner
    ) external {
        _LandStakerStorage.LandStakerStorage storage ls = _landStakerStorage();
        _LandStakerStorage.Stake[] storage stakes = ls.stakes[farmId][acre][
            stakableType
        ];
        require(stakeId < stakes.length && stakeId >= 0, "Incorrect stakeId.");
        uint256[] memory stakables = ls
        .stakes[farmId][acre][stakableType][stakeId].stakable;
        uint256[] storage stakablesRef = ls
        .stakes[farmId][acre][stakableType][stakeId].stakable;
        uint256 indexSize = stakableIndex.length;
        uint256 stakablesSize = stakables.length;
        require(
            indexSize <= stakablesSize && indexSize > 0,
            "Incorrect stakableIndex length."
        );
        ls.stakeSize[farmId][acre][stakableType] -= indexSize;
        _ERC721 stakable = _ERC721(ls.stakables[stakableType]);
        if (indexSize == stakablesSize) {
            stakes[stakeId] = stakes[stakes.length - 1];
            stakes.pop();
            for (uint256 i = 0; i < stakablesSize; i++) {
                if (ZERO_ADDRESS == owner) {
                    stakable.burn(stakables[i]);
                } else {
                    stakable.transferFrom(address(this), owner, stakables[i]);
                }
            }
        } else {
            uint256[] memory shift = new uint256[](stakablesSize);
            for (uint256 i = 0; i < indexSize; i++) {
                uint256 replace = stakableIndex[i];
                if (stakableIndex[i] > stakablesRef.length - 1) {
                    replace = shift[stakableIndex[i]];
                }
                shift[stakablesRef.length - 1] = replace;
                stakablesRef[replace] = stakablesRef[stakablesRef.length - 1];
                stakablesRef.pop();

                uint256 id = stakables[stakableIndex[i]];
                if (ZERO_ADDRESS == owner) {
                    stakable.burn(id);
                } else {
                    stakable.transferFrom(address(this), owner, id);
                }
            }
        }
    }

    function _landStakerStorage()
        private
        pure
        returns (_LandStakerStorage.LandStakerStorage storage ls)
    {
        bytes32 position = LAND_STAKER_STORAGE_POSITION;
        assembly {
            ls.slot := position
        }
    }

    function _landStorage()
        private
        pure
        returns (_LandStorage.LandStorage storage ls)
    {
        bytes32 position = LAND_STORAGE_POSITION;
        assembly {
            ls.slot := position
        }
    }

    function _babyCreatureStorage()
        private
        pure
        returns (_BabyCreatureStorage.BabyCreatureStorage storage _storage)
    {
        bytes32 position = BABY_CREATURE_STORAGE_POSITION;
        assembly {
            _storage.slot := position
        }
    }
}

// File: contracts/LandStaker.sol



pragma solidity ^0.8.15;




contract LandStaker is
    IERC721Receiver,
    AccessControl,
    Pausable,
    _Delegator,
    _LandStakerStorage
{
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
    uint256 public constant DENOMINATOR = 10000;
    _Delegator internal _creatureAttributesDelegator;
    Land internal _land;

    constructor(
        address land,
        address babyWool,
        address creatureAttributesDelegator,
        uint256 shearBase,
        uint256 fee
    ) {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(PAUSER_ROLE, msg.sender);
        _land = Land(land);
        _creatureAttributesDelegator = _Delegator(creatureAttributesDelegator);

        LandStakerStorage storage ls = landStakerStorage();
        ls.shearBase = shearBase;
        ls.fee = fee;
        ls.babyWool = babyWool;
    }

    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }

    function getAcreData(uint16 farmId, uint256 acre)
        external
        view
        returns (
            address,
            uint256,
            uint256,
            uint256,
            bool
        )
    {
        return Stakes.getAcreData(farmId, acre);
    }

    function getFarmData(uint16 farmId)
        external
        view
        returns (address, uint256)
    {
        return Stakes.getFarmData(farmId);
    }

    function allSheepDelegate(uint256[] calldata creatureId)
        external
        view
        returns (bool)
    {
        return Stakes.allSheepDelegate(creatureId);
    }

    function stake(
        uint16 farmId,
        uint256 acre,
        uint256 stakableType,
        uint256[] calldata stakables
    ) external whenNotPaused {
        bool allSheep = abi.decode(
            _creatureAttributesDelegator.delegateCall(
                address(this),
                0,
                abi.encode(stakables)
            ),
            (bool)
        );

        require(allSheep, "Only sheep is allowed.");

        (address owner, uint256 capacity, uint256 fertility, , ) = abi.decode(
            _land.delegateCall(address(this), 0, abi.encode(farmId, acre)),
            (address, uint256, uint256, uint256, bool)
        );
        require(
            owner == msg.sender && capacity > 0,
            "Incorrect staking parameters."
        );

        uint256 staked = 0;
        LandStakerStorage storage ls = landStakerStorage();
        for (uint256 i = 0; i < ls.stakables.length; i++) {
            staked += ls.stakeSize[farmId][acre][i];
        }
        require(
            capacity > staked && (capacity - staked) >= stakables.length,
            "Not enought staking capacity."
        );

        IERC721 stakable = IERC721(ls.stakables[stakableType]);
        bool allApproved = stakable.isApprovedForAll(msg.sender, address(this));
        for (uint256 i = 0; i < stakables.length; i++) {
            if (!allApproved) {
                address approved = stakable.getApproved(stakables[i]);
                require(approved == address(this), "Stakable is not approved.");
            }
            stakable.safeTransferFrom(msg.sender, address(this), stakables[i]);
        }

        ls.stakes[farmId][acre][stakableType].push(
            Stake(block.timestamp, fertility, stakables)
        );
        ls.stakeSize[farmId][acre][stakableType] += stakables.length;
    }

    function getStake(
        uint16 farmId,
        uint256 acre,
        uint256 stakableType,
        uint256 stakeId
    )
        external
        view
        returns (
            uint256,
            uint256,
            uint256[] memory
        )
    {
        LandStakerStorage storage ls = landStakerStorage();
        Stake memory _stake = ls.stakes[farmId][acre][stakableType][stakeId];
        return (_stake.start, _stake.fertility, _stake.stakable);
    }

    function getStakeSize(
        uint16 farmId,
        uint256 acre,
        uint256 stakableType
    ) external view returns (uint256) {
        LandStakerStorage storage ls = landStakerStorage();
        return ls.stakes[farmId][acre][stakableType].length;
    }

    function estimateShear(
        uint16 farmId,
        uint256 acre,
        uint256 stakableType,
        uint256 stakeId
    ) external view returns (uint256) {
        return Stakes.estimateShear(farmId, acre, stakableType, stakeId);
    }

    function shearAll(uint16 farmId) external {
        LandStakerStorage storage ls = landStakerStorage();
        (address owner, uint256 acres) = abi.decode(
            _land.delegateCall(address(this), 1, abi.encode(farmId)),
            (address, uint256)
        );
        require(owner == msg.sender, "Incorrect owner.");
        uint256 stakables = ls.stakables.length;
        for (uint256 acre = 0; acre < acres; acre++) {
            for (uint256 stakable = 0; stakable < stakables; stakable++) {
                Stake[] memory stakes = ls.stakes[farmId][acre][stakable];
                for (uint256 _stake = 0; _stake < stakes.length; _stake++) {
                    if (stakes[_stake].stakable.length > 0) {
                        _shear(farmId, acre, stakable, _stake, owner);
                    }
                }
            }
        }
    }

    function shear(
        uint16 farmId,
        uint256 acre,
        uint256 stakableType,
        uint256 stakeId
    ) external {
        LandStakerStorage storage ls = landStakerStorage();
        Stake storage _stake = ls.stakes[farmId][acre][stakableType][stakeId];
        require(block.timestamp > _stake.start, "Nothing to shear.");
        address owner = _land.getOwnedFarm(farmId);
        require(owner == msg.sender, "Incorrect owner.");
        _shear(farmId, acre, stakableType, stakeId, owner);
    }

    function withdraw(
        uint16 farmId,
        uint256 acre,
        uint256 stakableType,
        uint256 stakeId,
        uint256[] calldata stakableIndex,
        bool andShear
    ) external {
        LandStakerStorage storage ls = landStakerStorage();
        Stake storage _stake = ls.stakes[farmId][acre][stakableType][stakeId];
        address owner = _land.getOwnedFarm(farmId);
        require(owner == msg.sender, "Incorrect owner.");
        if (andShear && block.timestamp > _stake.start) {
            _shear(farmId, acre, stakableType, stakeId, owner);
        }
        _withdraw(farmId, acre, stakableType, stakeId, stakableIndex, owner);
    }

    function withdrawAll(uint16 farmId, bool andShear) external {
        LandStakerStorage storage ls = landStakerStorage();
        (address owner, uint256 acres) = abi.decode(
            _land.delegateCall(address(this), 1, abi.encode(farmId)),
            (address, uint256)
        );
        require(owner == msg.sender, "Incorrect owner.");
        uint256 stakables = ls.stakables.length;
        for (uint256 acre = 0; acre < acres; acre++) {
            for (uint256 stakable = 0; stakable < stakables; stakable++) {
                Stake[] memory stakes = ls.stakes[farmId][acre][stakable];
                for (uint256 _stake = 0; _stake < stakes.length; _stake++) {
                    if (stakes[_stake].stakable.length > 0) {
                        if (andShear) {
                            _shear(farmId, acre, stakable, 0, owner);
                        }
                        _withdraw(
                            farmId,
                            acre,
                            stakable,
                            0,
                            stakes[_stake].stakable,
                            owner
                        );
                    }
                }
            }
        }
    }

    function addStakable(address source) external onlyRole(DEFAULT_ADMIN_ROLE) {
        LandStakerStorage storage ls = landStakerStorage();
        ls.stakables.push(source);
    }

    function setStakable(uint256 id, address source)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        LandStakerStorage storage ls = landStakerStorage();
        ls.stakables[id] = source;
    }

    function deleteStakable(uint256 id) external onlyRole(DEFAULT_ADMIN_ROLE) {
        LandStakerStorage storage ls = landStakerStorage();
        ls.stakables[id] = ls.stakables[ls.stakables.length - 1];
        ls.stakables.pop();
    }

    function getStakable(uint256 id) external view returns (address) {
        LandStakerStorage storage ls = landStakerStorage();
        return ls.stakables[id];
    }

    function setShearBase(uint256 shearBase)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        LandStakerStorage storage ls = landStakerStorage();
        ls.shearBase = shearBase;
    }

    function getShearBase() external view returns (uint256) {
        LandStakerStorage storage ls = landStakerStorage();
        return ls.shearBase;
    }

    function setLand(address land) external onlyRole(DEFAULT_ADMIN_ROLE) {
        _land = Land(land);
    }

    function getLand() external view returns (address) {
        return address(_land);
    }

    function setBabyWool(address babyWool)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        LandStakerStorage storage ls = landStakerStorage();
        ls.babyWool = babyWool;
    }

    function getBabyWool() external view returns (address) {
        LandStakerStorage storage ls = landStakerStorage();
        return ls.babyWool;
    }

    function setFee(uint256 fee) external onlyRole(DEFAULT_ADMIN_ROLE) {
        LandStakerStorage storage ls = landStakerStorage();
        ls.fee = fee;
    }

    function setCreatureAttributesDelegator(address creatureAttributesDelegator)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _creatureAttributesDelegator = _Delegator(creatureAttributesDelegator);
    }

    function getCreatureAttributesDelegator() external view returns (address) {
        return address(_creatureAttributesDelegator);
    }

    function getFee() external view returns (uint256) {
        LandStakerStorage storage ls = landStakerStorage();
        return ls.fee;
    }

    function pause() public onlyRole(PAUSER_ROLE) {
        _pause();
    }

    function unpause() public onlyRole(PAUSER_ROLE) {
        _unpause();
    }

    function addDelegate(
        address delegate,
        string calldata method,
        bytes memory args
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        _addDelegate(delegate, method, args);
    }

    function setDelegate(
        address delegate,
        uint256 methodId,
        string calldata method,
        bytes memory args
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        _setDelegate(delegate, methodId, method, args);
    }

    function deleteDelegate(address delegate)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _deleteDelegate(delegate);
    }

    function _shear(
        uint16 farmId,
        uint256 acre,
        uint256 stakableType,
        uint256 stakeId,
        address owner
    ) internal whenNotPaused {
        Stakes.shear(farmId, acre, stakableType, stakeId, owner);
    }

    function _withdraw(
        uint16 farmId,
        uint256 acre,
        uint256 stakableType,
        uint256 stakeId,
        uint256[] memory stakableIndex,
        address owner
    ) internal {
        Stakes.withdraw(
            farmId,
            acre,
            stakableType,
            stakeId,
            stakableIndex,
            owner
        );
    }
}

// File: contracts/abstract/_BabyCreatureOperator.sol



pragma solidity ^0.8.15;

contract _BabyCreatureOperator {
    address private constant ADDRESS_ZERO = address(0);
    uint256 private constant INVALID = 2;
    uint256 private constant NOT_APPROVED = 0;
    uint256 private constant APPROVED = 1;
    uint256 private constant OLD = 0;
    uint256 private constant NEW = 1;
    uint256 public immutable TOKEN_ID_SHIFT;
    _ERC721[2] private _babyCreature;

    constructor(
        address babyCreatureOld,
        address babyCreatureNew,
        uint256 tokenIdShift
    ) {
        _babyCreature[OLD] = _ERC721(babyCreatureOld);
        _babyCreature[NEW] = _ERC721(babyCreatureNew);
        TOKEN_ID_SHIFT = tokenIdShift;
    }

    function getBabyCreature(bool old)
        external
        view
        returns (address babyCreature)
    {
        babyCreature = old
            ? address(_babyCreature[OLD])
            : address(_babyCreature[NEW]);
    }

    function _transferToThis(uint256 tokenId) internal {
        uint256[] memory _tokenId = new uint256[](1);
        _tokenId[0] = tokenId;
        _transferToThis(_tokenId);
    }

    function _transferFromThis(uint256 tokenId, address to) internal {
        uint256[] memory _tokenId = new uint256[](1);
        _tokenId[0] = tokenId;
        _transferFromThis(_tokenId, to);
    }

    function _transferToThis(uint256[] memory tokenId) internal {
        uint256 currentContract;
        uint256[2] memory allApproved = [INVALID, INVALID];
        for (uint256 i = 0; i < tokenId.length; i++) {
            if (tokenId[i] < TOKEN_ID_SHIFT) {
                currentContract = OLD;
            } else {
                currentContract = NEW;
            }

            require(
                msg.sender ==
                    _babyCreature[currentContract].ownerOf(tokenId[i]),
                "Incorrect owner."
            );

            if (allApproved[currentContract] == INVALID) {
                allApproved[currentContract] = _babyCreature[currentContract]
                    .isApprovedForAll(msg.sender, address(this))
                    ? APPROVED
                    : NOT_APPROVED;
            }
            if (allApproved[currentContract] == NOT_APPROVED) {
                require(
                    address(this) ==
                        _babyCreature[currentContract].getApproved(tokenId[i]),
                    "Not approved."
                );
            }

            _babyCreature[currentContract].safeTransferFrom(
                msg.sender,
                address(this),
                tokenId[i]
            );
        }
    }

    function _transferFromThis(uint256[] memory tokenId, address to) internal {
        for (uint256 i = 0; i < tokenId.length; i++) {
            if (tokenId[i] < TOKEN_ID_SHIFT) {
                ADDRESS_ZERO == to
                    ? _babyCreature[OLD].burn(tokenId[i])
                    : _babyCreature[OLD].transferFrom(
                        address(this),
                        to,
                        tokenId[i]
                    );
            } else {
                ADDRESS_ZERO == to
                    ? _babyCreature[NEW].burn(tokenId[i])
                    : _babyCreature[NEW].transferFrom(
                        address(this),
                        to,
                        tokenId[i]
                    );
            }
        }
    }

    function _setBabyCreature(address babyCreature, bool old) internal {
        old
            ? _babyCreature[OLD] = _ERC721(babyCreature)
            : _babyCreature[NEW] = _ERC721(babyCreature);
    }
}

// File: contracts/utils/Attacks.sol



pragma solidity ^0.8.15;




library Attacks {
    uint8 private constant ACRE_X = 0;
    uint8 private constant ACRE_Y = 1;
    uint8 private constant CREATURE_ATTR_CLASS = 1;
    uint8 private constant CREATURE_ATTR_ALPHA = 11;
    uint8 private constant CREATURE_ATTR_FUR = 3;
    uint8 private constant SURVIVOR_FUR = 0;
    uint64 private constant WOLF_CLASS = 0;
    address internal constant ZERO_ADDRESS = address(0);
    bytes32 private constant LAND_STAKER_STORAGE_POSITION =
        keccak256("games.wolfland.contracts.landstakerstorage");
    bytes32 private constant BABY_CREATURE_STORAGE_POSITION =
        keccak256("games.wolfland.contracts.babycreaturestorage");
    bytes32 private constant LAND_STORAGE_POSITION =
        keccak256("games.wolfland.contracts.landstorage");

    function getStealWolf(uint64 attackerAlpha, uint256 protectorDefence)
        external
        view
        returns (bool transfer, address to)
    {
        transfer = false;
        to = msg.sender;

        uint16 attackerWeight = _xorshift(attackerAlpha);
        uint16 protectorWeight = _xorshift(uint64(protectorDefence));
        if (attackerWeight > protectorWeight) {
            uint16 nothing = _xorshift(protectorWeight);
            uint16 action = _xorshift(attackerWeight);
            if (action > nothing) {
                uint16 _steal = _xorshift(nothing);
                uint16 _kill = _xorshift(action);

                transfer = true;
                if (_kill > _steal) {
                    to = ZERO_ADDRESS;
                }
            }
        }
    }

    function getStealSheep(
        uint16 farmId,
        uint256 acre,
        uint64 attackerAlpha,
        uint64 protectorAlpha
    )
        external
        view
        returns (
            bool transfer,
            address to,
            uint256[3] memory params
        )
    {
        transfer = false;
        uint256 stakeSize = 0;
        uint256 stakableSize = 0;
        _LandStakerStorage.LandStakerStorage storage ls = _landStakerStorage();

        for (uint256 i = 0; i < ls.stakables.length; i++) {
            stakeSize += ls.stakes[farmId][acre][i].length;
            stakableSize += ls.stakeSize[farmId][acre][i];
        }

        if (stakableSize > 1) {
            to = msg.sender;
            params[1] = _xorshift(uint64(stakeSize)) % stakeSize;

            for (uint256 i = 0; i < ls.stakables.length; i++) {
                if (ls.stakes[farmId][acre][i].length > params[1]) {
                    params[0] = i;
                    uint16 attackerWeight = _xorshift(attackerAlpha);
                    uint16 protectorWeight = _xorshift(protectorAlpha);
                    if (attackerWeight > protectorWeight) {
                        transfer = true;
                        params[2] =
                            protectorWeight %
                            ls
                            .stakes[farmId][acre][params[0]][params[1]]
                                .stakable
                                .length;

                        uint16 _steal = _xorshift(attackerWeight);
                        uint16 _kill = _xorshift(protectorWeight);
                        if (_kill > _steal) {
                            to = ZERO_ADDRESS;
                        }
                    }
                    break;
                } else {
                    params[1] -= ls.stakes[farmId][acre][i].length;
                }
            }
        }
    }

    function getAlphaDelegate(uint256 wolfId)
        external
        view
        returns (uint64 alpha)
    {
        _BabyCreatureStorage.BabyCreatureStorage
            storage _storage = _babyCreatureStorage();
        uint64 class = _storage.creatureAttributesMap[wolfId][
            CREATURE_ATTR_CLASS
        ];

        if (class != WOLF_CLASS) {
            return 0;
        }

        uint64 _alpha = _storage.creatureAttributesMap[wolfId][
            CREATURE_ATTR_ALPHA
        ];

        if (_alpha == 0) {
            alpha = 8;
        } else if (_alpha == 1) {
            alpha = 7;
        } else if (_alpha == 2) {
            alpha = 6;
        } else {
            alpha = 5;
        }
    }

    function getSurvivorDelegate(uint256 sheepId) external view returns (bool) {
        _BabyCreatureStorage.BabyCreatureStorage
            storage _storage = _babyCreatureStorage();
        return
            SURVIVOR_FUR ==
            _storage.creatureAttributesMap[sheepId][CREATURE_ATTR_FUR];
    }

    function getDistanceDelegate(
        uint16 fromFarmId,
        uint16 toFarmId,
        uint256 acre
    ) external view returns (uint256 distance, bool hq) {
        _LandStorage.LandStorage storage ls = _landStorage();
        _LandStorage.Farm storage fromFarm = ls.farms[fromFarmId];
        _LandStorage.Farm storage toFarm = ls.farms[toFarmId];

        if (fromFarm.acres.length > 0 && toFarm.acres.length > 0) {
            distance = Maps.getDistance(
                fromFarm.acres[fromFarm.hq][ACRE_X],
                fromFarm.acres[fromFarm.hq][ACRE_Y],
                toFarm.acres[acre][ACRE_X],
                toFarm.acres[acre][ACRE_Y]
            );
            hq = acre == toFarm.hq;
        }
    }

    function _landStakerStorage()
        private
        pure
        returns (_LandStakerStorage.LandStakerStorage storage ls)
    {
        bytes32 position = LAND_STAKER_STORAGE_POSITION;
        assembly {
            ls.slot := position
        }
    }

    function _xorshift(uint64 seed) private view returns (uint16) {
        uint16 x = uint16(block.timestamp + seed);
        x ^= (x & 0x07ff) << 5;
        x ^= x >> 7;
        x ^= (x & 0x0003) << 14;
        return (x & 0xffff);
    }

    function _babyCreatureStorage()
        private
        pure
        returns (_BabyCreatureStorage.BabyCreatureStorage storage _storage)
    {
        bytes32 position = BABY_CREATURE_STORAGE_POSITION;
        assembly {
            _storage.slot := position
        }
    }

    function _landStorage()
        private
        pure
        returns (_LandStorage.LandStorage storage ls)
    {
        bytes32 position = LAND_STORAGE_POSITION;
        assembly {
            ls.slot := position
        }
    }
}

// File: contracts/LandAttack.sol



pragma solidity ^0.8.15;




contract LandAttack is LandStaker, _BabyCreatureOperator, _LandAttackStorage {
    uint8 private constant MAX_ALPHA = 8;
    uint8 private constant MIN_STAKE = 1;
    uint256 private _healBase;
    address private _wolfBattle;

    event Attack(
        uint16 indexed fromFarmId,
        uint16 indexed toFarmId,
        uint256 indexed wolfId,
        uint256 acre,
        bool won,
        bool shear,
        bool stolen,
        uint256 stolenId
    );

    constructor(
        address land,
        address babyWool,
        address creatureAttributesDelegator,
        address babyCreatureOld,
        address babyCreatureNew,
        address wolfBattle,
        uint256 tokenIdShift,
        uint256 shearBase,
        uint256 fee,
        uint256 healBase
    )
        LandStaker(land, babyWool, creatureAttributesDelegator, shearBase, fee)
        _BabyCreatureOperator(babyCreatureOld, babyCreatureNew, tokenIdShift)
    {
        _healBase = healBase;
        _wolfBattle = wolfBattle;
    }

    function getAlphaDelegate(uint256 wolfId)
        external
        view
        returns (uint64 alpha)
    {
        return Attacks.getAlphaDelegate(wolfId);
    }

    function getSurvivorDelegate(uint256 sheepId) external view returns (bool) {
        return Attacks.getSurvivorDelegate(sheepId);
    }

    function getDistanceDelegate(
        uint16 fromFarmId,
        uint16 toFarmId,
        uint256 acre
    ) external view returns (uint256 distance, bool hq) {
        return Attacks.getDistanceDelegate(fromFarmId, toFarmId, acre);
    }

    function attack(
        uint16 fromFarmId,
        uint256 wolfId,
        uint16 toFarmId,
        uint256 acre,
        bool shear
    ) external whenNotPaused {
        (address owner, ) = abi.decode(
            _land.delegateCall(address(this), 1, abi.encode(fromFarmId)),
            (address, uint256)
        );
        require(owner == msg.sender, "Incorrect owner.");

        LandAttackStorage storage _storage = landAttackStorage();
        Attacker storage attackerRef = _storage.attackers[wolfId];

        if (attackerRef.alpha == 0) {
            uint64 alpha = _getAlpha(wolfId);
            require(alpha > 0, "Incorrect wolfId.");

            _transferToThis(wolfId);

            attackerRef.alpha = alpha;
            attackerRef.farmId = fromFarmId;
            _storage.farmAttackers[fromFarmId].push(wolfId);
        } else {
            require(
                attackerRef.farmId == fromFarmId &&
                    attackerRef.healTime <= block.timestamp,
                "Incorrect wolf parameter."
            );
        }

        (uint256 distance, bool hq) = abi.decode(
            _land.delegateCall(
                address(this),
                2,
                abi.encode(fromFarmId, toFarmId, acre)
            ),
            (uint256, bool)
        );
        assert(distance > 0);

        if (hq) {
            require(attackerRef.alpha > 6, "Incorrect alpha.");
        }

        attackerRef.healTime = block.timestamp + (distance * _healBase);
        _attack(fromFarmId, wolfId, toFarmId, acre, shear, hq);
    }

    function protect(
        uint16 farmId,
        uint256 acre,
        uint256 wolfId
    ) external whenNotPaused {
        (address owner, , , uint256 defence, bool hq) = abi.decode(
            _land.delegateCall(address(this), 0, abi.encode(farmId, acre)),
            (address, uint256, uint256, uint256, bool)
        );
        require(owner == msg.sender, "Incorrect owner.");

        LandAttackStorage storage _storage = landAttackStorage();

        require(
            _storage.acreProtectors[farmId][acre] == 0,
            "Incorrect acre parameter."
        );

        Protector storage protectorRef = _storage.protectors[wolfId];

        require(protectorRef.alpha == 0, "Incorrect wolf parameter.");

        uint64 alpha = _getAlpha(wolfId);
        if (hq) {
            require(alpha > 6, "Incorrect alpha.");
        }

        _transferToThis(wolfId);

        protectorRef.alpha = alpha;
        protectorRef.farmId = farmId;
        protectorRef.defence = defence;

        _storage.acreProtectors[farmId][acre] = wolfId;
    }

    function withdrawProtector(uint16 farmId, uint256 acre) external {
        (address owner, ) = abi.decode(
            _land.delegateCall(address(this), 1, abi.encode(farmId)),
            (address, uint256)
        );
        require(owner == msg.sender, "Incorrect owner.");
        _withdrawProtection(farmId, acre, owner);
    }

    function withdrawAllProtector(uint16 farmId) external {
        (address owner, uint256 acres) = abi.decode(
            _land.delegateCall(address(this), 1, abi.encode(farmId)),
            (address, uint256)
        );
        require(owner == msg.sender, "Incorrect owner.");

        for (uint256 acre = 0; acre < acres; acre++) {
            _withdrawProtection(farmId, acre, owner);
        }
    }

    function withdrawAttacker(uint16 farmId, uint256 index) external {
        (address owner, ) = abi.decode(
            _land.delegateCall(address(this), 1, abi.encode(farmId)),
            (address, uint256)
        );
        require(owner == msg.sender, "Incorrect owner.");

        LandAttackStorage storage _storage = landAttackStorage();
        uint256 wolfId = _storage.farmAttackers[farmId][index];

        require(
            _storage.attackers[wolfId].healTime <= block.timestamp,
            "Healing is in progress."
        );

        _storage.farmAttackers[farmId][index] = _storage.farmAttackers[farmId][
            _storage.farmAttackers[farmId].length - 1
        ];
        _storage.farmAttackers[farmId].pop();
        delete _storage.attackers[wolfId];

        _transferFromThis(wolfId, owner);
    }

    function withdrawAllAttacker(uint16 farmId) external {
        (address owner, ) = abi.decode(
            _land.delegateCall(address(this), 1, abi.encode(farmId)),
            (address, uint256)
        );
        require(owner == msg.sender, "Incorrect owner.");

        LandAttackStorage storage _storage = landAttackStorage();
        uint256[] memory farmAttackers = _storage.farmAttackers[farmId];
        delete _storage.farmAttackers[farmId];

        for (
            uint256 attacker = 0;
            attacker < farmAttackers.length;
            attacker++
        ) {
            require(
                _storage.attackers[farmAttackers[attacker]].healTime <=
                    block.timestamp,
                "Healing is in progress."
            );
            delete _storage.attackers[farmAttackers[attacker]];
        }
        _transferFromThis(farmAttackers, owner);
    }

    function getAttacker(uint256 wolfId)
        external
        view
        returns (
            uint16,
            uint64,
            uint256
        )
    {
        LandAttackStorage storage _storage = landAttackStorage();
        Attacker storage attacker = _storage.attackers[wolfId];
        return (attacker.farmId, attacker.alpha, attacker.healTime);
    }

    function getProtector(uint256 wolfId)
        external
        view
        returns (
            uint16,
            uint64,
            uint256
        )
    {
        LandAttackStorage storage _storage = landAttackStorage();
        Protector storage protector = _storage.protectors[wolfId];
        return (protector.farmId, protector.alpha, protector.defence);
    }

    function getAcreProtector(uint16 farmId, uint256 acre)
        external
        view
        returns (uint256)
    {
        LandAttackStorage storage _storage = landAttackStorage();
        uint256 wolfId = _storage.acreProtectors[farmId][acre];
        require(wolfId > 0, "Non-existing protection reference.");
        return wolfId;
    }

    function getFarmAttackerSize(uint16 farmId)
        external
        view
        returns (uint256)
    {
        LandAttackStorage storage _storage = landAttackStorage();
        return _storage.farmAttackers[farmId].length;
    }

    function getFarmAttacker(uint16 farmId, uint256 index)
        external
        view
        returns (uint256)
    {
        LandAttackStorage storage _storage = landAttackStorage();
        return _storage.farmAttackers[farmId][index];
    }

    function setBabyCreature(address babyCreature, bool old)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _setBabyCreature(babyCreature, old);
    }

    function setHealBase(uint256 healBase)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _healBase = healBase;
    }

    function getHealBase() external view returns (uint256) {
        return _healBase;
    }

    function setWolfBattle(address wolfBattle)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _wolfBattle = wolfBattle;
    }

    function getWolfBattle() external view returns (address) {
        return _wolfBattle;
    }

    function _shearFrom(uint16 farmId, uint256 acre) private {
        LandStakerStorage storage ls = landStakerStorage();
        uint256 stakables = ls.stakables.length;
        for (uint256 stakable = 0; stakable < stakables; stakable++) {
            Stake[] memory stakes = ls.stakes[farmId][acre][stakable];
            for (uint256 _stake = 0; _stake < stakes.length; _stake++) {
                if (stakes[_stake].stakable.length > 0) {
                    _shear(farmId, acre, stakable, _stake, msg.sender);
                }
            }
        }
    }

    function _shearFrom(uint16 farmId) private {
        (, uint256 acres) = abi.decode(
            _land.delegateCall(address(this), 1, abi.encode(farmId)),
            (address, uint256)
        );
        for (uint256 acre = 0; acre < acres; acre++) {
            _shearFrom(farmId, acre);
        }
    }

    function _steal(
        Attacker memory attacker,
        Protector memory protector,
        uint16 farmId,
        uint256 acre
    ) private returns (bool, uint256) {
        LandStakerStorage storage ls = landStakerStorage();

        (bool transfer, address to, uint256[3] memory params) = Attacks
            .getStealSheep(farmId, acre, attacker.alpha, protector.alpha);

        if (transfer) {
            transfer = !abi.decode(
                _creatureAttributesDelegator.delegateCall(
                    address(this),
                    2,
                    abi.encode(
                        ls.stakes[farmId][acre][params[0]][params[1]].stakable[
                            params[2]
                        ]
                    )
                ),
                (bool)
            );
        }

        uint256 stolenId = 0;

        if (transfer) {
            uint256[] memory _stakable = new uint256[](1);
            _stakable[0] = params[2];

            stolenId = ls.stakes[farmId][acre][params[0]][params[1]].stakable[
                params[2]
            ];

            _withdraw(farmId, acre, params[0], params[1], _stakable, to);
        }

        return (transfer, stolenId);
    }

    function _stealHQ(
        Attacker memory attacker,
        Protector memory protector,
        uint16 farmId,
        uint256 acre
    ) private returns (bool) {
        if (
            protector.alpha == 0 ||
            protector.alpha == MAX_ALPHA ||
            attacker.alpha != MAX_ALPHA
        ) {
            return false;
        }

        (bool transfer, address to) = Attacks.getStealWolf(
            attacker.alpha,
            protector.defence
        );

        if (transfer) {
            _withdrawProtection(farmId, acre, to);
        }

        return transfer;
    }

    function _withdrawProtection(
        uint16 farmId,
        uint256 acre,
        address owner
    ) private {
        LandAttackStorage storage _storage = landAttackStorage();
        uint256 protector = _storage.acreProtectors[farmId][acre];

        if (_storage.protectors[protector].alpha > 0) {
            delete _storage.acreProtectors[farmId][acre];
            delete _storage.protectors[protector];

            _transferFromThis(protector, owner);
        }
    }

    function _attack(
        uint16 fromFarmId,
        uint256 wolfId,
        uint16 toFarmId,
        uint256 acre,
        bool shear,
        bool hq
    ) private {
        LandAttackStorage storage _storage = landAttackStorage();

        Attacker storage attackerRef = _storage.attackers[wolfId];
        Protector storage protectorRef = _storage.protectors[
            _storage.acreProtectors[toFarmId][acre]
        ];

        bool won = true;
        bool stolen = false;
        uint256 stolenId = 0;

        if (protectorRef.alpha > 0) {
            uint256[] memory param = new uint256[](5);
            param[0] = fromFarmId;
            param[1] = toFarmId;
            param[2] = acre;
            param[3] = wolfId;
            param[4] = _storage.acreProtectors[toFarmId][acre];
            won = abi.decode(
                Address.functionCall(
                    _wolfBattle,
                    bytes.concat(
                        bytes4(keccak256(bytes("battle(uint256[])"))),
                        abi.encode(param)
                    )
                ),
                (bool)
            );
        }

        if (!won) {
            emit Attack(
                fromFarmId,
                toFarmId,
                wolfId,
                acre,
                won,
                shear,
                stolen,
                stolenId
            );
            return;
        }

        if (hq) {
            if (shear) {
                _shearFrom(toFarmId);
            } else {
                stolenId = _storage.acreProtectors[toFarmId][acre];
                stolen = _stealHQ(attackerRef, protectorRef, toFarmId, acre);
            }
        } else {
            if (shear) {
                _shearFrom(toFarmId, acre);
            } else {
                (stolen, stolenId) = _steal(
                    attackerRef,
                    protectorRef,
                    toFarmId,
                    acre
                );
            }
        }

        emit Attack(
            fromFarmId,
            toFarmId,
            wolfId,
            acre,
            won,
            shear,
            stolen,
            stolenId
        );
    }

    function _getAlpha(uint256 wolfId) private returns (uint64) {
        return
            abi.decode(
                _creatureAttributesDelegator.delegateCall(
                    address(this),
                    1,
                    abi.encode(wolfId)
                ),
                (uint64)
            );
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"land","type":"address"},{"internalType":"address","name":"babyWool","type":"address"},{"internalType":"address","name":"creatureAttributesDelegator","type":"address"},{"internalType":"address","name":"babyCreatureOld","type":"address"},{"internalType":"address","name":"babyCreatureNew","type":"address"},{"internalType":"address","name":"wolfBattle","type":"address"},{"internalType":"uint256","name":"tokenIdShift","type":"uint256"},{"internalType":"uint256","name":"shearBase","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"healBase","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"fromFarmId","type":"uint16"},{"indexed":true,"internalType":"uint16","name":"toFarmId","type":"uint16"},{"indexed":true,"internalType":"uint256","name":"wolfId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"acre","type":"uint256"},{"indexed":false,"internalType":"bool","name":"won","type":"bool"},{"indexed":false,"internalType":"bool","name":"shear","type":"bool"},{"indexed":false,"internalType":"bool","name":"stolen","type":"bool"},{"indexed":false,"internalType":"uint256","name":"stolenId","type":"uint256"}],"name":"Attack","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_ID_SHIFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"delegate","type":"address"},{"internalType":"string","name":"method","type":"string"},{"internalType":"bytes","name":"args","type":"bytes"}],"name":"addDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"source","type":"address"}],"name":"addStakable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"creatureId","type":"uint256[]"}],"name":"allSheepDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"fromFarmId","type":"uint16"},{"internalType":"uint256","name":"wolfId","type":"uint256"},{"internalType":"uint16","name":"toFarmId","type":"uint16"},{"internalType":"uint256","name":"acre","type":"uint256"},{"internalType":"bool","name":"shear","type":"bool"}],"name":"attack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegate","type":"address"},{"internalType":"uint256","name":"methodId","type":"uint256"},{"internalType":"bytes","name":"args","type":"bytes"}],"name":"delegateCall","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegate","type":"address"}],"name":"deleteDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"deleteStakable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"},{"internalType":"uint256","name":"acre","type":"uint256"},{"internalType":"uint256","name":"stakableType","type":"uint256"},{"internalType":"uint256","name":"stakeId","type":"uint256"}],"name":"estimateShear","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"},{"internalType":"uint256","name":"acre","type":"uint256"}],"name":"getAcreData","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"},{"internalType":"uint256","name":"acre","type":"uint256"}],"name":"getAcreProtector","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"wolfId","type":"uint256"}],"name":"getAlphaDelegate","outputs":[{"internalType":"uint64","name":"alpha","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"wolfId","type":"uint256"}],"name":"getAttacker","outputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint64","name":"","type":"uint64"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"old","type":"bool"}],"name":"getBabyCreature","outputs":[{"internalType":"address","name":"babyCreature","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBabyWool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCreatureAttributesDelegator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"delegate","type":"address"}],"name":"getDelegate","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"fromFarmId","type":"uint16"},{"internalType":"uint16","name":"toFarmId","type":"uint16"},{"internalType":"uint256","name":"acre","type":"uint256"}],"name":"getDistanceDelegate","outputs":[{"internalType":"uint256","name":"distance","type":"uint256"},{"internalType":"bool","name":"hq","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getFarmAttacker","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"}],"name":"getFarmAttackerSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"}],"name":"getFarmData","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHealBase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLand","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"wolfId","type":"uint256"}],"name":"getProtector","outputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint64","name":"","type":"uint64"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getShearBase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getStakable","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"},{"internalType":"uint256","name":"acre","type":"uint256"},{"internalType":"uint256","name":"stakableType","type":"uint256"},{"internalType":"uint256","name":"stakeId","type":"uint256"}],"name":"getStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"},{"internalType":"uint256","name":"acre","type":"uint256"},{"internalType":"uint256","name":"stakableType","type":"uint256"}],"name":"getStakeSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"sheepId","type":"uint256"}],"name":"getSurvivorDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWolfBattle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"},{"internalType":"uint256","name":"acre","type":"uint256"},{"internalType":"uint256","name":"wolfId","type":"uint256"}],"name":"protect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"babyCreature","type":"address"},{"internalType":"bool","name":"old","type":"bool"}],"name":"setBabyCreature","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"babyWool","type":"address"}],"name":"setBabyWool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"creatureAttributesDelegator","type":"address"}],"name":"setCreatureAttributesDelegator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegate","type":"address"},{"internalType":"uint256","name":"methodId","type":"uint256"},{"internalType":"string","name":"method","type":"string"},{"internalType":"bytes","name":"args","type":"bytes"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"healBase","type":"uint256"}],"name":"setHealBase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"land","type":"address"}],"name":"setLand","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shearBase","type":"uint256"}],"name":"setShearBase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"source","type":"address"}],"name":"setStakable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wolfBattle","type":"address"}],"name":"setWolfBattle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"},{"internalType":"uint256","name":"acre","type":"uint256"},{"internalType":"uint256","name":"stakableType","type":"uint256"},{"internalType":"uint256","name":"stakeId","type":"uint256"}],"name":"shear","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"}],"name":"shearAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"},{"internalType":"uint256","name":"acre","type":"uint256"},{"internalType":"uint256","name":"stakableType","type":"uint256"},{"internalType":"uint256[]","name":"stakables","type":"uint256[]"}],"name":"stake","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"},{"internalType":"uint256","name":"acre","type":"uint256"},{"internalType":"uint256","name":"stakableType","type":"uint256"},{"internalType":"uint256","name":"stakeId","type":"uint256"},{"internalType":"uint256[]","name":"stakableIndex","type":"uint256[]"},{"internalType":"bool","name":"andShear","type":"bool"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"},{"internalType":"bool","name":"andShear","type":"bool"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"}],"name":"withdrawAllAttacker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"}],"name":"withdrawAllProtector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"withdrawAttacker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"farmId","type":"uint16"},{"internalType":"uint256","name":"acre","type":"uint256"}],"name":"withdrawProtector","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b5060405162005f8c38038062005f8c833981016040819052620000349162000210565b6001805460ff191690558686858c8c8c88886200005360003362000152565b6200007f7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a3362000152565b600480546001600160a01b038088166001600160a01b03199283161790925560038054928616929091169190911790556000620000d97f95cfdb894cdff05b00b95da66d7586d7c9a28a0eb2985aa01daa04e4049f0d3c90565b6003810193909355506004820155600590810180546001600160a01b03199081166001600160a01b03958616179091558154811697841697909717905550600680549482169486169490941790935550608052600792909255600880549690921695169490941790935550620002bb9650505050505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620001ef576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001ae3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b80516001600160a01b03811681146200020b57600080fd5b919050565b6000806000806000806000806000806101408b8d0312156200023157600080fd5b6200023c8b620001f3565b99506200024c60208c01620001f3565b98506200025c60408c01620001f3565b97506200026c60608c01620001f3565b96506200027c60808c01620001f3565b95506200028c60a08c01620001f3565b945060c08b0151935060e08b015192506101008b015191506101208b015190509295989b9194979a5092959850565b608051615ca7620002e56000396000818161074701528181613a0f0152613d940152615ca76000f3fe608060405234801561001057600080fd5b50600436106103505760003560e01c8063799f122b116101bf578063a9382e91116100fa578063d547741f1161009d578063d547741f14610846578063e63ab1e914610859578063e78a0dc51461086e578063e7b6dcfc14610881578063e7bf0fe4146108b3578063e966a44f146108c6578063ecf1d1ac146108d9578063fb09a0b9146108ea57600080fd5b8063a9382e91146107aa578063aa9bc518146107bd578063bc92f565146107d0578063bea9dd50146107e3578063c1e1a943146107f6578063c6da3aa114610818578063c97ce67f1461082b578063ced72f871461083e57600080fd5b806391d148541161016257806391d148541461071457806392c3666d1461072757806396e0c4671461073a578063970cba711461074257806399cbf4aa146107695780639d33d7e31461077c578063a045326c1461078f578063a217fddf146107a257600080fd5b8063799f122b146106505780637ab8d827146106975780638014c117146106aa578063815e6ebb146106bd57806381d9e0cf146106e85780638456cb59146106fb57806384bf562114610703578063918f86741461070b57600080fd5b80633ddfca951161028f5780635c975abb116102325780635c975abb146105a55780635ce2c0af146105b057806367531e72146105c357806369fe0e2d146105cb5780637112e4ad146105de57806371890352146105ef5780637190b3bb1461060257806377e739661461061557600080fd5b80633ddfca95146105005780633f4ba83a1461051357806346a19a361461051b57806349a32d381461052e5780634a7e69bd14610541578063544d8564146105545780635690314c14610574578063597b2e9b1461058557600080fd5b8063248a9ca3116102f7578063248a9ca31461045857806327d27ab41461047b5780632aa53e051461048e5780632dcb3db1146104a15780632f2ff15d146104b457806336568abe146104c757806338c0b2bd146104da5780633a671f42146104ed57600080fd5b806301ffc9a71461035557806302b2b1f51461037d57806302c1d3d9146103a5578063056e7ef6146103c6578063150b7a02146103db5780631873ae31146104075780631c73fff11461041a57806322ef0c9014610445575b600080fd5b610368610363366004614ca5565b6108fd565b60405190151581526020015b60405180910390f35b61039061038b366004614ce6565b610934565b60408051928352901515602083015201610374565b6103b86103b3366004614d22565b6109ca565b604051908152602001610374565b6103d96103d4366004614d55565b610a04565b005b6103ee6103e9366004614e46565b610a15565b6040516001600160e01b03199091168152602001610374565b6103d9610415366004614d55565b610a26565b61042d610428366004614ebf565b610a46565b6040516001600160a01b039091168152602001610374565b6103b8610453366004614edc565b610a6f565b6103b8610466366004614d55565b60009081526020819052604090206001015490565b610368610489366004614f60565b610b07565b61042d61049c366004614d55565b610b84565b6103d96104af366004614fa1565b610bc2565b6103d96104c2366004614fbe565b610bf0565b6103d96104d5366004614fbe565b610c1a565b6103d96104e8366004614fee565b610c9d565b6103d96104fb366004615018565b610d84565b6103d961050e366004614fbe565b611025565b6103d9611086565b6103d9610529366004615044565b6110a9565b6103d961053c3660046150c8565b61120c565b6103d961054f3660046150e6565b611221565b610567610562366004614fa1565b61148e565b6040516103749190615159565b6004546001600160a01b031661042d565b6105986105933660046151bb565b61157d565b6040516103749190615213565b60015460ff16610368565b6103d96105be366004615226565b6115fb565b6103b8611938565b6103d96105d9366004614d55565b61194d565b6003546001600160a01b031661042d565b6103d96105fd366004614fa1565b61196d565b6103d9610610366004614fa1565b611981565b610628610623366004614d55565b6119af565b6040805161ffff90941684526001600160401b03909216602084015290820152606001610374565b61066361065e366004614fee565b6119f4565b604080516001600160a01b03909616865260208601949094529284019190915260608301521515608082015260a001610374565b6103d96106a5366004615281565b611a90565b6106286106b8366004614d55565b61209e565b6106d06106cb366004614d55565b6120df565b6040516001600160401b039091168152602001610374565b6103d96106f6366004614fa1565b612156565b6103d9612184565b61042d6121a4565b6103b861271081565b610368610722366004614fbe565b6121c2565b6103d9610735366004614fee565b6121eb565b6007546103b8565b6103b87f000000000000000000000000000000000000000000000000000000000000000081565b6103b86107773660046150e6565b612428565b6103d961078a366004614d55565b612450565b6103b861079d366004614fee565b612521565b6103b8600081565b6103686107b8366004614d55565b61256b565b6103d96107cb366004614edc565b6125e2565b6103d96107de366004614fa1565b61272b565b6103d96107f1366004615329565b612779565b610809610804366004614edc565b612790565b604051610374939291906153d3565b6103d96108263660046150e6565b61287f565b6103d9610839366004614d22565b61298f565b6103b8612bd8565b6103d9610854366004614fbe565b612bed565b6103b8600080516020615c2b83398151915281565b6103d961087c3660046153f2565b612c12565b61089461088f3660046150e6565b612c2a565b604080516001600160a01b039093168352602083019190915201610374565b6103d96108c1366004614fa1565b612cae565b6103d96108d43660046150e6565b612ce9565b6008546001600160a01b031661042d565b6103b86108f8366004614fee565b612f16565b60006001600160e01b03198216637965db0b60e01b148061092e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6040516302b2b1f560e01b815261ffff808516600483015283166024820152604481018290526000908190738e5feefcffbfc2f17df7555d651a151c7bd169d9906302b2b1f5906064016040805180830381865af415801561099a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109be9190615477565b91509150935093915050565b6000806109d5612f9d565b61ffff8616600090815260209182526040808220878352835280822086835290925220549150505b9392505050565b6000610a0f81612fc1565b50600755565b630a85bd0160e11b5b949350505050565b6000610a3181612fc1565b6000610a3b612f9d565b600301929092555050565b600081610a5e576006546001600160a01b031661092e565b50506005546001600160a01b031690565b60405163022ef0c960e41b815261ffff8516600482015260248101849052604481018390526064810182905260009073ef79606869d2096b4af55d9c2dc31f461f9dcb18906322ef0c9090608401602060405180830381865af4158015610ada573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afe91906154b2565b95945050505050565b6040516309f49ead60e21b815260009073ef79606869d2096b4af55d9c2dc31f461f9dcb18906327d27ab490610b439086908690600401615501565b602060405180830381865af4158015610b60573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fd9190615515565b600080610b8f612f9d565b9050806002018381548110610ba657610ba661549c565b6000918252602090912001546001600160a01b03169392505050565b6000610bcd81612fc1565b50600380546001600160a01b0319166001600160a01b0392909216919091179055565b600082815260208190526040902060010154610c0b81612fc1565b610c158383612fcb565b505050565b6001600160a01b0381163314610c8f5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b610c99828261304f565b5050565b6004546040805161ffff851660208201526000926001600160a01b03169163597b2e9b913091600191016040516020818303038152906040526040518463ffffffff1660e01b8152600401610cf493929190615532565b6000604051808303816000875af1158015610d13573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d3b9190810190615559565b806020019051810190610d4e91906155c6565b5090506001600160a01b0381163314610d795760405162461bcd60e51b8152600401610c86906155f4565b610c158383836130b4565b6000610d8e612f9d565b6004546040805161ffff8716602082015292935060009283926001600160a01b03169163597b2e9b913091600191016040516020818303038152906040526040518463ffffffff1660e01b8152600401610dea93929190615532565b6000604051808303816000875af1158015610e09573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e319190810190615559565b806020019051810190610e4491906155c6565b90925090506001600160a01b0382163314610e715760405162461bcd60e51b8152600401610c86906155f4565b600283015460005b8281101561101c5760005b828110156110095761ffff88166000908152602087815260408083208584528252808320848452825280832080548251818502810185019093528083529192909190849084015b82821015610f695783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201805480602002602001604051908101604052809291908181526020018280548015610f5157602002820191906000526020600020905b815481526020019060010190808311610f3d575b50505050508152505081526020019060010190610ecb565b50505050905060005b8151811015610ff4576000828281518110610f8f57610f8f61549c565b602002602001015160400151511115610fe2578815610fb657610fb68a858560008b61314f565b610fe28a85856000868681518110610fd057610fd061549c565b6020026020010151604001518c6131e8565b80610fec81615634565b915050610f72565b5050808061100190615634565b915050610e84565b508061101481615634565b915050610e79565b50505050505050565b600061103081612fc1565b600061103a612f9d565b9050828160020185815481106110525761105261549c565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050505050565b600080516020615c2b83398151915261109e81612fc1565b6110a6613255565b50565b60006110b3612f9d565b61ffff89166000908152602082815260408083208b845282528083208a8452909152812080549293509091879081106110ee576110ee61549c565b60009182526020822060048054604051633bbffdcf60e21b815261ffff8f169281019290925260039390930290910193506001600160a01b039091169063eefff73c90602401602060405180830381865afa158015611151573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611175919061564d565b90506001600160a01b038116331461119f5760405162461bcd60e51b8152600401610c86906155f4565b8380156111ac5750815442115b156111be576111be8a8a8a8a8561314f565b6112008a8a8a8a8a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508992506131e8915050565b50505050505050505050565b600061121781612fc1565b610c1583836132a7565b600061122b612f9d565b6004546040805161ffff8616602082015292935060009283926001600160a01b03169163597b2e9b913091600191016040516020818303038152906040526040518463ffffffff1660e01b815260040161128793929190615532565b6000604051808303816000875af11580156112a6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112ce9190810190615559565b8060200190518101906112e191906155c6565b90925090506001600160a01b038216331461130e5760405162461bcd60e51b8152600401610c86906155f4565b600283015460005b828110156114865760005b828110156114735761ffff87166000908152602087815260408083208584528252808320848452825280832080548251818502810185019093528083529192909190849084015b8282101561140657838290600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282018054806020026020016040519081016040528092919081815260200182805480156113ee57602002820191906000526020600020905b8154815260200190600101908083116113da575b50505050508152505081526020019060010190611368565b50505050905060005b815181101561145e57600082828151811061142c5761142c61549c565b60200260200101516040015151111561144c5761144c898585848b61314f565b8061145681615634565b91505061140f565b5050808061146b90615634565b915050611321565b508061147e81615634565b915050611316565b505050505050565b6001600160a01b0381166000908152600260209081526040808320805482518185028101850190935280835260609492939192909184015b828210156115725783829060005260206000200180546114e59061566a565b80601f01602080910402602001604051908101604052809291908181526020018280546115119061566a565b801561155e5780601f106115335761010080835404028352916020019161155e565b820191906000526020600020905b81548152906001019060200180831161154157829003601f168201915b5050505050815260200190600101906114c6565b505050509050919050565b6060610a1e8460026000876001600160a01b03166001600160a01b0316815260200190815260200160002085815481106115b9576115b961549c565b906000526020600020016040516115d091906156a4565b6040519081900381206115e791869060200161571a565b6040516020818303038152906040526132f0565b611603613315565b6004546040805161ffff881660208201526000926001600160a01b03169163597b2e9b913091600191016040516020818303038152906040526040518463ffffffff1660e01b815260040161165a93929190615532565b6000604051808303816000875af1158015611679573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116a19190810190615559565b8060200190518101906116b491906155c6565b5090506001600160a01b03811633146116df5760405162461bcd60e51b8152600401610c86906155f4565b60006116e961335d565b60008781526020829052604081208054929350916201000090046001600160401b031690036117cd57600061171d88613381565b90506000816001600160401b03161161176c5760405162461bcd60e51b815260206004820152601160248201527024b731b7b93932b1ba103bb7b63324b21760791b6044820152606401610c86565b6117758861342b565b815461ffff8a1661ffff196001600160401b039093166201000002929092166001600160501b031990911617811782556000908152600383016020908152604082208054600181018255908352912001879055611804565b805461ffff89811691161480156117e8575042816001015411155b6118045760405162461bcd60e51b8152600401610c869061574b565b6004546040805161ffff8b81166020830152891681830152606080820189905282518083039091018152608082019283905263597b2e9b60e01b90925260009283926001600160a01b039091169163597b2e9b91611869913091600291608401615532565b6000604051808303816000875af1158015611888573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118b09190810190615559565b8060200190518101906118c39190615477565b91509150600082116118d7576118d761577e565b801561190e5782546006620100009091046001600160401b03161161190e5760405162461bcd60e51b8152600401610c8690615794565b60075461191b90836157be565b61192590426157dd565b60018401556112008a8a8a8a8a86613476565b600080611943612f9d565b6003015492915050565b600061195881612fc1565b6000611962612f9d565b600401929092555050565b600061197881612fc1565b610c998261388c565b600061198c81612fc1565b50600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000806000806119bd61335d565b600095865260019081016020526040909520805495015461ffff861696620100009096046001600160401b03169590945092505050565b60405163799f122b60e01b815261ffff8316600482015260248101829052600090819081908190819073ef79606869d2096b4af55d9c2dc31f461f9dcb189063799f122b9060440160a060405180830381865af4158015611a59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a7d91906157f5565b939b929a50909850965090945092505050565b611a98613315565b6003546040516000916001600160a01b03169063597b2e9b9030908490611ac59088908890602001615501565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401611af293929190615532565b6000604051808303816000875af1158015611b11573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b399190810190615559565b806020019051810190611b4c9190615515565b905080611b945760405162461bcd60e51b815260206004820152601660248201527527b7363c9039b432b2b81034b99030b63637bbb2b21760511b6044820152606401610c86565b6004546040805161ffff89166020820152808201889052815180820383018152606082019283905263597b2e9b60e01b909252600092839283926001600160a01b039092169163597b2e9b91611bf09130918691606401615532565b6000604051808303816000875af1158015611c0f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c379190810190615559565b806020019051810190611c4a91906157f5565b5050925092509250336001600160a01b0316836001600160a01b0316148015611c735750600082115b611cbf5760405162461bcd60e51b815260206004820152601d60248201527f496e636f7272656374207374616b696e6720706172616d65746572732e0000006044820152606401610c86565b600080611cca612f9d565b905060005b6002820154811015611d225761ffff8c16600090815260018301602090815260408083208e84528252808320848452909152902054611d0e90846157dd565b925080611d1a81615634565b915050611ccf565b508184118015611d3b575086611d38838661583f565b10155b611d875760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420656e6f75676874207374616b696e672063617061636974792e0000006044820152606401610c86565b6000816002018a81548110611d9e57611d9e61549c565b600091825260208220015460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169250829063e985e9c590604401602060405180830381865afa158015611df7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e1b9190615515565b905060005b89811015611f9b5781611f0e576000836001600160a01b031663081812fc8d8d85818110611e5057611e5061549c565b905060200201356040518263ffffffff1660e01b8152600401611e7591815260200190565b602060405180830381865afa158015611e92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb6919061564d565b90506001600160a01b0381163014611f0c5760405162461bcd60e51b815260206004820152601960248201527829ba30b5b0b136329034b9903737ba1030b8383937bb32b21760391b6044820152606401610c86565b505b826001600160a01b03166342842e0e33308e8e86818110611f3157611f3161549c565b905060200201356040518463ffffffff1660e01b8152600401611f5693929190615856565b600060405180830381600087803b158015611f7057600080fd5b505af1158015611f84573d6000803e3d6000fd5b505050508080611f9390615634565b915050611e20565b5061ffff8d166000908152602084815260408083208f845282528083208e8452825291829020825160608101845242815280830189905283518d8402818101850186528e8252929491939184019290918f918f918291908501908490808284376000920182905250939094525050835460018181018655948252602091829020845160039092020190815581840151948101949094556040830151805193949361204f935060028501929190910190614bb2565b50505061ffff8d16600090815260018401602090815260408083208f845282528083208e8452909152812080548b929061208a9084906157dd565b909155505050505050505050505050505050565b6000806000806120ac61335d565b600095865260205250506040909220805460019091015461ffff821694620100009092046001600160401b031693509150565b60405163815e6ebb60e01b815260048101829052600090738e5feefcffbfc2f17df7555d651a151c7bd169d99063815e6ebb90602401602060405180830381865af4158015612132573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092e919061587a565b600061216181612fc1565b50600480546001600160a01b0319166001600160a01b0392909216919091179055565b600080516020615c2b83398151915261219c81612fc1565b6110a66138ad565b6000806121af612f9d565b600501546001600160a01b031692915050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6004546040805161ffff851660208201526000926001600160a01b03169163597b2e9b913091600191016040516020818303038152906040526040518463ffffffff1660e01b815260040161224293929190615532565b6000604051808303816000875af1158015612261573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122899190810190615559565b80602001905181019061229c91906155c6565b5090506001600160a01b03811633146122c75760405162461bcd60e51b8152600401610c86906155f4565b60006122d161335d565b61ffff85166000908152600382016020526040812080549293509091859081106122fd576122fd61549c565b90600052602060002001549050428260000160008381526020019081526020016000206001015411156123425760405162461bcd60e51b8152600401610c86906158a3565b61ffff85166000908152600383016020526040902080546123659060019061583f565b815481106123755761237561549c565b90600052602060002001548260030160008761ffff1661ffff16815260200190815260200160002085815481106123ae576123ae61549c565b600091825260208083209091019290925561ffff8716815260038401909152604090208054806123e0576123e06158d4565b6000828152602080822083016000199081018390559092019092558282528390526040812080546001600160501b03191681556001015561242181846138e8565b5050505050565b60008061243361335d565b61ffff909316600090815260039093016020525050604090205490565b600061245b81612fc1565b6000612465612f9d565b6002810180549192509061247b9060019061583f565b8154811061248b5761248b61549c565b6000918252602090912001546002820180546001600160a01b0390921691859081106124b9576124b961549c565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806002018054806124fa576124fa6158d4565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b60008061252c61335d565b61ffff851660009081526003820160205260409020805491925090849081106125575761255761549c565b906000526020600020015491505092915050565b60405163a9382e9160e01b815260048101829052600090738e5feefcffbfc2f17df7555d651a151c7bd169d99063a9382e9190602401602060405180830381865af41580156125be573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092e9190615515565b60006125ec612f9d565b61ffff86166000908152602082815260408083208884528252808320878452909152812080549293509091849081106126275761262761549c565b906000526020600020906003020190508060000154421161267e5760405162461bcd60e51b81526020600482015260116024820152702737ba3434b733903a379039b432b0b91760791b6044820152606401610c86565b60048054604051633bbffdcf60e21b815261ffff8916928101929092526000916001600160a01b039091169063eefff73c90602401602060405180830381865afa1580156126d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126f4919061564d565b90506001600160a01b038116331461271e5760405162461bcd60e51b8152600401610c86906155f4565b61101c878787878561314f565b600061273681612fc1565b6000612740612f9d565b6002018054600181018255600091825260209091200180546001600160a01b0319166001600160a01b0394909416939093179092555050565b600061278481612fc1565b61242185858585613934565b6000806060600061279f612f9d565b61ffff89166000908152602082815260408083208b845282528083208a8452909152812080549293509091879081106127da576127da61549c565b906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820180548060200260200160405190810160405280929190818152602001828054801561285657602002820191906000526020600020905b815481526020019060010190808311612842575b50505091909252505081516020830151604090930151909c929b50995090975050505050505050565b6004546040805161ffff8416602082015260009283926001600160a01b039091169163597b2e9b913091600191016040516020818303038152906040526040518463ffffffff1660e01b81526004016128da93929190615532565b6000604051808303816000875af11580156128f9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526129219190810190615559565b80602001905181019061293491906155c6565b90925090506001600160a01b03821633146129615760405162461bcd60e51b8152600401610c86906155f4565b60005b81811015612989576129778482856130b4565b8061298181615634565b915050612964565b50505050565b612997613315565b6004546040805161ffff86166020820152808201859052815180820383018152606082019283905263597b2e9b60e01b909252600092839283926001600160a01b039092169163597b2e9b916129f39130918691606401615532565b6000604051808303816000875af1158015612a12573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612a3a9190810190615559565b806020019051810190612a4d91906157f5565b9450945050509250336001600160a01b0316836001600160a01b031614612a865760405162461bcd60e51b8152600401610c86906155f4565b6000612a9061335d565b61ffff8816600090815260028201602090815260408083208a845290915290205490915015612afd5760405162461bcd60e51b815260206004820152601960248201527824b731b7b93932b1ba1030b1b932903830b930b6b2ba32b91760391b6044820152606401610c86565b6000858152600182016020526040902080546201000090046001600160401b031615612b3b5760405162461bcd60e51b8152600401610c869061574b565b6000612b4687613381565b90508315612b77576006816001600160401b031611612b775760405162461bcd60e51b8152600401610c8690615794565b612b808761342b565b81546001600160501b031916620100006001600160401b03929092169190910261ffff19161761ffff989098169788178155600101929092555060009485526002016020908152604080862094865293905250912055565b600080612be3612f9d565b6004015492915050565b600082815260208190526040902060010154612c0881612fc1565b610c15838361304f565b6000612c1d81612fc1565b61148686868686866139a7565b6040516339edb73f60e21b815261ffff82166004820152600090819073ef79606869d2096b4af55d9c2dc31f461f9dcb189063e7b6dcfc906024016040805180830381865af4158015612c81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ca591906155c6565b91509150915091565b6000612cb981612fc1565b6000612cc3612f9d565b60050180546001600160a01b0319166001600160a01b0394909416939093179092555050565b6004546040805161ffff841660208201526000926001600160a01b03169163597b2e9b913091600191016040516020818303038152906040526040518463ffffffff1660e01b8152600401612d4093929190615532565b6000604051808303816000875af1158015612d5f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d879190810190615559565b806020019051810190612d9a91906155c6565b5090506001600160a01b0381163314612dc55760405162461bcd60e51b8152600401610c86906155f4565b6000612dcf61335d565b61ffff84166000908152600382016020908152604080832080548251818502810185019093528083529495509293909291830182828015612e2f57602002820191906000526020600020905b815481526020019060010190808311612e1b575b5050505061ffff861660009081526003850160205260408120929350612e56929150614bfd565b60005b8151811015612f0b5742836000016000848481518110612e7b57612e7b61549c565b60200260200101518152602001908152602001600020600101541115612eb35760405162461bcd60e51b8152600401610c86906158a3565b826000016000838381518110612ecb57612ecb61549c565b6020908102919091018101518252810191909152604001600090812080546001600160501b03191681556001015580612f0381615634565b915050612e59565b506129898184613a01565b600080612f2161335d565b61ffff85166000908152600282016020908152604080832087845290915290205490915080610a1e5760405162461bcd60e51b815260206004820152602260248201527f4e6f6e2d6578697374696e672070726f74656374696f6e207265666572656e63604482015261329760f11b6064820152608401610c86565b7f95cfdb894cdff05b00b95da66d7586d7c9a28a0eb2985aa01daa04e4049f0d3c90565b6110a68133613be6565b612fd582826121c2565b610c99576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561300b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61305982826121c2565b15610c99576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006130be61335d565b61ffff8516600090815260028201602090815260408083208784528252808320548084526001850190925290912054919250906201000090046001600160401b0316156124215761ffff85166000908152600283016020908152604080832087845282528083208390558383526001808601909252822080546001600160501b0319168155015561242181846138e8565b613157613315565b60405163cd5a439760e01b815261ffff861660048201526024810185905260448101849052606481018390526001600160a01b038216608482015273ef79606869d2096b4af55d9c2dc31f461f9dcb189063cd5a43979060a40160006040518083038186803b1580156131c957600080fd5b505af41580156131dd573d6000803e3d6000fd5b505050505050505050565b604051630466c83f60e11b815273ef79606869d2096b4af55d9c2dc31f461f9dcb18906308cd907e90613229908990899089908990899089906004016158ea565b60006040518083038186803b15801561324157600080fd5b505af4158015611200573d6000803e3d6000fd5b61325d613c4a565b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b806132ce5750600680546001600160a01b0319166001600160a01b03909216919091179055565b50600580546001600160a01b0319166001600160a01b03909216919091179055565b60606109fd8383604051806060016040528060278152602001615c4b60279139613c93565b60015460ff161561335b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610c86565b565b7f7d6bba5a77d4d5a944322a4b34bbe0c8acc53268e65d203ae34b1a4d9ce79de090565b600354604080516020808201859052825180830390910181528183019283905263597b2e9b60e01b9092526000926001600160a01b03169163597b2e9b916133d191309160019190604401615532565b6000604051808303816000875af11580156133f0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526134189190810190615559565b80602001905181019061092e919061587a565b6040805160018082528183019092526000916020808301908036833701905050905081816000815181106134615761346161549c565b602002602001018181525050610c9981613d70565b600061348061335d565b60008781526020828152604080832061ffff8a168452600285018352818420898552835281842054845260018086019093529083208054949550909390929081906201000090046001600160401b0316156136755760408051600580825260c082019092526000916020820160a0803683370190505090508c61ffff16816000815181106135105761351061549c565b6020026020010181815250508a61ffff16816001815181106135345761353461549c565b60200260200101818152505089816002815181106135545761355461549c565b6020026020010181815250508b816003815181106135745761357461549c565b60209081029190910181019190915261ffff8c16600090815260028901825260408082208d835290925220548151829060049081106135b5576135b561549c565b6020908102919091018101919091526008546040805180820182526011815270626174746c652875696e743235365b5d2960781b908401525161365e926001600160a01b03909216917f60849b7d2f838a6d197ad7224d44558b28a653ec25089330f95b8d0cd4ec57c59161362c91869101615966565b60408051601f198184030181529082905261364a929160200161571a565b604051602081830303815290604052614135565b8060200190518101906136719190615515565b9350505b826136ef578a8a61ffff168d61ffff167f0e2d8a165be7466f364ca67b19d94fd2878ebb269603449ecc3b1b72a247e6c28c878d88886040516136dc9594939291909485529215156020850152901515604084015215156060830152608082015260a00190565b60405180910390a4505050505050611486565b8615613798578715613709576137048a614177565b613814565b5061ffff808a16600090815260028701602090815260408083208c845282529182902054825160608082018552895480871683526001600160401b0362010000918290048116848701526001808d015485890152875193840188528b549889168452919097049096169381019390935293870154928201929092529091613791918c8c614252565b9150613814565b87156137a8576137048a8a614352565b6040805160608082018352875461ffff80821684526001600160401b03620100009283900481166020808701919091526001808d015487890152875195860188528b5493841686529390920416908301528701549281019290925261380e918c8c6144b9565b90925090505b8a8a61ffff168d61ffff167f0e2d8a165be7466f364ca67b19d94fd2878ebb269603449ecc3b1b72a247e6c28c878d88886040516138769594939291909485529215156020850152901515604084015215156060830152608082015260a00190565b60405180910390a4505050505050505050505050565b6001600160a01b03811660009081526002602052604081206110a691614c1b565b6138b5613315565b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2583361328a565b60408051600180825281830190925260009160208083019080368337019050509050828160008151811061391e5761391e61549c565b602002602001018181525050610c158183613a01565b613973848484604051613948929190615979565b60405190819003812061395f91859060200161571a565b6040516020818303038152906040526147be565b506001600160a01b0384166000908152600260209081526040822080546001810182559083529120016124218385836159cf565b6139bb858484604051613948929190615979565b506001600160a01b0385166000908152600260205260409020805484918491879081106139ea576139ea61549c565b9060005260206000200191826114869291906159cf565b60005b8251811015610c15577f0000000000000000000000000000000000000000000000000000000000000000838281518110613a4057613a4061549c565b60200260200101511015613b3a576001600160a01b03821615613aeb57600560005b015483516001600160a01b03909116906323b872dd9030908590879086908110613a8e57613a8e61549c565b60200260200101516040518463ffffffff1660e01b8152600401613ab493929190615856565b600060405180830381600087803b158015613ace57600080fd5b505af1158015613ae2573d6000803e3d6000fd5b50505050613bd4565b60055483516001600160a01b03909116906342966c6890859084908110613b1457613b1461549c565b60200260200101516040518263ffffffff1660e01b8152600401613ab491815260200190565b6001600160a01b03821615613b525760056001613a62565b60065483516001600160a01b03909116906342966c6890859084908110613b7b57613b7b61549c565b60200260200101516040518263ffffffff1660e01b8152600401613ba191815260200190565b600060405180830381600087803b158015613bbb57600080fd5b505af1158015613bcf573d6000803e3d6000fd5b505050505b80613bde81615634565b915050613a04565b613bf082826121c2565b610c9957613c08816001600160a01b031660146147e3565b613c138360206147e3565b604051602001613c24929190615a8e565b60408051601f198184030181529082905262461bcd60e51b8252610c8691600401615213565b60015460ff1661335b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610c86565b60606001600160a01b0384163b613cfb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610c86565b600080856001600160a01b031685604051613d169190615afd565b600060405180830381855af49150503d8060008114613d51576040519150601f19603f3d011682016040523d82523d6000602084013e613d56565b606091505b5091509150613d6682828661497e565b9695505050505050565b6040805180820190915260028082526020820152600090815b8351811015612989577f0000000000000000000000000000000000000000000000000000000000000000848281518110613dc557613dc561549c565b60200260200101511015613ddc5760009250613de1565b600192505b60058360028110613df457613df461549c565b015484516001600160a01b0390911690636352211e90869084908110613e1c57613e1c61549c565b60200260200101516040518263ffffffff1660e01b8152600401613e4291815260200190565b602060405180830381865afa158015613e5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e83919061564d565b6001600160a01b0316336001600160a01b031614613eb35760405162461bcd60e51b8152600401610c86906155f4565b6002828460028110613ec757613ec761549c565b602002015103613f7b5760058360028110613ee457613ee461549c565b015460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa158015613f31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f559190615515565b613f60576000613f63565b60015b828460028110613f7557613f7561549c565b60200201525b6000828460028110613f8f57613f8f61549c565b60200201510361408b5760058360028110613fac57613fac61549c565b015484516001600160a01b039091169063081812fc90869084908110613fd457613fd461549c565b60200260200101516040518263ffffffff1660e01b8152600401613ffa91815260200190565b602060405180830381865afa158015614017573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061403b919061564d565b6001600160a01b0316306001600160a01b03161461408b5760405162461bcd60e51b815260206004820152600d60248201526c2737ba1030b8383937bb32b21760991b6044820152606401610c86565b6005836002811061409e5761409e61549c565b015484516001600160a01b03909116906342842e0e90339030908890869081106140ca576140ca61549c565b60200260200101516040518463ffffffff1660e01b81526004016140f093929190615856565b600060405180830381600087803b15801561410a57600080fd5b505af115801561411e573d6000803e3d6000fd5b50505050808061412d90615634565b915050613d89565b60606109fd83836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c656400008152506149b7565b6004546040805161ffff841660208201526000926001600160a01b03169163597b2e9b913091600191016040516020818303038152906040526040518463ffffffff1660e01b81526004016141ce93929190615532565b6000604051808303816000875af11580156141ed573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526142159190810190615559565b80602001905181019061422891906155c6565b91505060005b81811015610c15576142408382614352565b8061424a81615634565b91505061422e565b600083602001516001600160401b03166000148061427d575060208401516001600160401b03166008145b80614296575060208501516001600160401b0316600814155b156142a357506000610a1e565b60208501516040808601519051634b8442c160e11b81526001600160401b03909216600483015260248201526000908190738e5feefcffbfc2f17df7555d651a151c7bd169d9906397088582906044016040805180830381865af415801561430f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143339190615b19565b915091508115614348576143488585836130b4565b5095945050505050565b600061435c612f9d565b600281015490915060005b818110156124215761ffff85166000908152602084815260408083208784528252808320848452825280832080548251818502810185019093528083529192909190849084015b8282101561444c578382906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820180548060200260200160405190810160405280929190818152602001828054801561443457602002820191906000526020600020905b815481526020019060010190808311614420575b505050505081525050815260200190600101906143ae565b50505050905060005b81518110156144a45760008282815181106144725761447261549c565b60200260200101516040015151111561449257614492878785843361314f565b8061449c81615634565b915050614455565b505080806144b190615634565b915050614367565b60008060006144c6612f9d565b6020808901519088015160405163c8ac215f60e01b815261ffff89166004820152602481018890526001600160401b0392831660448201529116606482015290915060009081908190738e5feefcffbfc2f17df7555d651a151c7bd169d99063c8ac215f9060840160a060405180830381865af415801561454b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061456f9190615b48565b92509250925082156146af5760035461ffff89166000908152602086815260408083208b845282528083208551845282529091209083015181546001600160a01b039093169263597b2e9b92309260029281106145ce576145ce61549c565b9060005260206000209060030201600201856002600381106145f2576145f261549c565b6020020151815481106146075761460761549c565b906000526020600020015460405160200161462491815260200190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161465193929190615532565b6000604051808303816000875af1158015614670573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526146989190810190615559565b8060200190518101906146ab9190615515565b1592505b600083156147ad57604080516001808252818301909252600091602080830190803683370190505090508260026020020151816000815181106146f4576146f461549c565b60209081029190910181019190915261ffff8b16600090815287825260408082208c83528352808220865183528352902090840151815481106147395761473961549c565b90600052602060002090600302016002018360026003811061475d5761475d61549c565b6020020151815481106147725761477261549c565b906000526020600020015491506147ab8a8a856000600381106147975761479761549c565b6020020151866001602002015185896131e8565b505b929a92995091975050505050505050565b60606109fd8383604051806060016040528060258152602001615c06602591396149c6565b606060006147f28360026157be565b6147fd9060026157dd565b6001600160401b0381111561481457614814614d83565b6040519080825280601f01601f19166020018201604052801561483e576020820181803683370190505b509050600360fc1b816000815181106148595761485961549c565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106148885761488861549c565b60200101906001600160f81b031916908160001a90535060006148ac8460026157be565b6148b79060016157dd565b90505b600181111561492f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106148eb576148eb61549c565b1a60f81b8282815181106149015761490161549c565b60200101906001600160f81b031916908160001a90535060049490941c9361492881615bee565b90506148ba565b5083156109fd5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c86565b6060831561498d5750816109fd565b82511561499d5782518084602001fd5b8160405162461bcd60e51b8152600401610c869190615213565b6060610a1e8484600085614a81565b60606001600160a01b0384163b614a2b5760405162461bcd60e51b8152602060048201526024808201527f416464726573733a207374617469632063616c6c20746f206e6f6e2d636f6e746044820152631c9858dd60e21b6064820152608401610c86565b600080856001600160a01b031685604051614a469190615afd565b600060405180830381855afa9150503d8060008114613d51576040519150601f19603f3d011682016040523d82523d6000602084013e613d56565b606082471015614ae25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610c86565b6001600160a01b0385163b614b395760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c86565b600080866001600160a01b03168587604051614b559190615afd565b60006040518083038185875af1925050503d8060008114614b92576040519150601f19603f3d011682016040523d82523d6000602084013e614b97565b606091505b5091509150614ba782828661497e565b979650505050505050565b828054828255906000526020600020908101928215614bed579160200282015b82811115614bed578251825591602001919060010190614bd2565b50614bf9929150614c39565b5090565b50805460008255906000526020600020908101906110a69190614c39565b50805460008255906000526020600020908101906110a69190614c4e565b5b80821115614bf95760008155600101614c3a565b80821115614bf9576000614c628282614c6b565b50600101614c4e565b508054614c779061566a565b6000825580601f10614c87575050565b601f0160209004906000526020600020908101906110a69190614c39565b600060208284031215614cb757600080fd5b81356001600160e01b0319811681146109fd57600080fd5b803561ffff81168114614ce157600080fd5b919050565b600080600060608486031215614cfb57600080fd5b614d0484614ccf565b9250614d1260208501614ccf565b9150604084013590509250925092565b600080600060608486031215614d3757600080fd5b614d4084614ccf565b95602085013595506040909401359392505050565b600060208284031215614d6757600080fd5b5035919050565b6001600160a01b03811681146110a657600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614dc157614dc1614d83565b604052919050565b60006001600160401b03821115614de257614de2614d83565b50601f01601f191660200190565b600082601f830112614e0157600080fd5b8135614e14614e0f82614dc9565b614d99565b818152846020838601011115614e2957600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060808587031215614e5c57600080fd5b8435614e6781614d6e565b93506020850135614e7781614d6e565b92506040850135915060608501356001600160401b03811115614e9957600080fd5b614ea587828801614df0565b91505092959194509250565b80151581146110a657600080fd5b600060208284031215614ed157600080fd5b81356109fd81614eb1565b60008060008060808587031215614ef257600080fd5b614efb85614ccf565b966020860135965060408601359560600135945092505050565b60008083601f840112614f2757600080fd5b5081356001600160401b03811115614f3e57600080fd5b6020830191508360208260051b8501011115614f5957600080fd5b9250929050565b60008060208385031215614f7357600080fd5b82356001600160401b03811115614f8957600080fd5b614f9585828601614f15565b90969095509350505050565b600060208284031215614fb357600080fd5b81356109fd81614d6e565b60008060408385031215614fd157600080fd5b823591506020830135614fe381614d6e565b809150509250929050565b6000806040838503121561500157600080fd5b61500a83614ccf565b946020939093013593505050565b6000806040838503121561502b57600080fd5b61503483614ccf565b91506020830135614fe381614eb1565b600080600080600080600060c0888a03121561505f57600080fd5b61506888614ccf565b965060208801359550604088013594506060880135935060808801356001600160401b0381111561509857600080fd5b6150a48a828b01614f15565b90945092505060a08801356150b881614eb1565b8091505092959891949750929550565b600080604083850312156150db57600080fd5b823561503481614d6e565b6000602082840312156150f857600080fd5b6109fd82614ccf565b60005b8381101561511c578181015183820152602001615104565b838111156129895750506000910152565b60008151808452615145816020860160208601615101565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156151ae57603f1988860301845261519c85835161512d565b94509285019290850190600101615180565b5092979650505050505050565b6000806000606084860312156151d057600080fd5b83356151db81614d6e565b92506020840135915060408401356001600160401b038111156151fd57600080fd5b61520986828701614df0565b9150509250925092565b6020815260006109fd602083018461512d565b600080600080600060a0868803121561523e57600080fd5b61524786614ccf565b94506020860135935061525c60408701614ccf565b925060608601359150608086013561527381614eb1565b809150509295509295909350565b60008060008060006080868803121561529957600080fd5b6152a286614ccf565b9450602086013593506040860135925060608601356001600160401b038111156152cb57600080fd5b6152d788828901614f15565b969995985093965092949392505050565b60008083601f8401126152fa57600080fd5b5081356001600160401b0381111561531157600080fd5b602083019150836020828501011115614f5957600080fd5b6000806000806060858703121561533f57600080fd5b843561534a81614d6e565b935060208501356001600160401b038082111561536657600080fd5b615372888389016152e8565b9095509350604087013591508082111561538b57600080fd5b50614ea587828801614df0565b600081518084526020808501945080840160005b838110156153c8578151875295820195908201906001016153ac565b509495945050505050565b838152826020820152606060408201526000610afe6060830184615398565b60008060008060006080868803121561540a57600080fd5b853561541581614d6e565b94506020860135935060408601356001600160401b038082111561543857600080fd5b61544489838a016152e8565b9095509350606088013591508082111561545d57600080fd5b5061546a88828901614df0565b9150509295509295909350565b6000806040838503121561548a57600080fd5b825191506020830151614fe381614eb1565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156154c457600080fd5b5051919050565b81835260006001600160fb1b038311156154e457600080fd5b8260051b8083602087013760009401602001938452509192915050565b602081526000610a1e6020830184866154cb565b60006020828403121561552757600080fd5b81516109fd81614eb1565b60018060a01b0384168152826020820152606060408201526000610afe606083018461512d565b60006020828403121561556b57600080fd5b81516001600160401b0381111561558157600080fd5b8201601f8101841361559257600080fd5b80516155a0614e0f82614dc9565b8181528560208385010111156155b557600080fd5b610afe826020830160208601615101565b600080604083850312156155d957600080fd5b82516155e481614d6e565b6020939093015192949293505050565b60208082526010908201526f24b731b7b93932b1ba1037bbb732b91760811b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600182016156465761564661561e565b5060010190565b60006020828403121561565f57600080fd5b81516109fd81614d6e565b600181811c9082168061567e57607f821691505b60208210810361569e57634e487b7160e01b600052602260045260246000fd5b50919050565b60008083546156b28161566a565b600182811680156156ca57600181146156df5761570e565b60ff198416875282151583028701945061570e565b8760005260208060002060005b858110156157055781548a8201529084019082016156ec565b50505082870194505b50929695505050505050565b6001600160e01b031983168152815160009061573d816004850160208701615101565b919091016004019392505050565b60208082526019908201527824b731b7b93932b1ba103bb7b633103830b930b6b2ba32b91760391b604082015260600190565b634e487b7160e01b600052600160045260246000fd5b60208082526010908201526f24b731b7b93932b1ba1030b63834309760811b604082015260600190565b60008160001904831182151516156157d8576157d861561e565b500290565b600082198211156157f0576157f061561e565b500190565b600080600080600060a0868803121561580d57600080fd5b855161581881614d6e565b80955050602086015193506040860151925060608601519150608086015161527381614eb1565b6000828210156158515761585161561e565b500390565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006020828403121561588c57600080fd5b81516001600160401b03811681146109fd57600080fd5b6020808252601790820152762432b0b634b7339034b99034b710383937b3b932b9b99760491b604082015260600190565b634e487b7160e01b600052603160045260246000fd5b600060c0820161ffff891683526020888185015287604085015286606085015260c0608085015281865180845260e086019150828801935060005b8181101561594157845183529383019391830191600101615925565b50506001600160a01b039590951660a094909401939093525091979650505050505050565b6020815260006109fd6020830184615398565b8183823760009101908152919050565b601f821115610c1557600081815260208120601f850160051c810160208610156159b05750805b601f850160051c820191505b81811015611486578281556001016159bc565b6001600160401b038311156159e6576159e6614d83565b6159fa836159f4835461566a565b83615989565b6000601f841160018114615a2e5760008515615a165750838201355b600019600387901b1c1916600186901b178355612421565b600083815260209020601f19861690835b82811015615a5f5786850135825560209485019460019092019101615a3f565b5086821015615a7c5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351615ac0816017850160208801615101565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615af1816028840160208801615101565b01602801949350505050565b60008251615b0f818460208701615101565b9190910192915050565b60008060408385031215615b2c57600080fd5b8251615b3781614eb1565b6020840151909250614fe381614d6e565b600080600060a08486031215615b5d57600080fd5b8351615b6881614eb1565b80935050602080850151615b7b81614d6e565b9250605f85018613615b8c57600080fd5b604051606081018181106001600160401b0382111715615bae57615bae614d83565b6040528060a0870188811115615bc357600080fd5b604088015b81811015615bdf5780518352918401918401615bc8565b50505080925050509250925092565b600081615bfd57615bfd61561e565b50600019019056fe416464726573733a206c6f772d6c6576656c207374617469632063616c6c206661696c656465d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212203ba8f917554bd23c0d4b642e59cc1792b9157e6bab58d6b9f5a593da203cd3d264736f6c634300080f0033000000000000000000000000b78d6fe453c335a3dccf054ee76a436a09cc1873000000000000000000000000250cd2c6b7259a0621d1c2997c48dddbea54a5a60000000000000000000000003da92fb1ca64a9592aca25813f320867edf61e34000000000000000000000000946d51c2919a6abd401ba0f16e3d3647cf245b190000000000000000000000003da92fb1ca64a9592aca25813f320867edf61e340000000000000000000000000439dc6637d1f305d1d6d34f45cdd047d8d227a50000000000000000000000000000000000000000000000000000000000000b5200000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000002a30

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

000000000000000000000000b78d6fe453c335a3dccf054ee76a436a09cc1873000000000000000000000000250cd2c6b7259a0621d1c2997c48dddbea54a5a60000000000000000000000003da92fb1ca64a9592aca25813f320867edf61e34000000000000000000000000946d51c2919a6abd401ba0f16e3d3647cf245b190000000000000000000000003da92fb1ca64a9592aca25813f320867edf61e340000000000000000000000000439dc6637d1f305d1d6d34f45cdd047d8d227a50000000000000000000000000000000000000000000000000000000000000b5200000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000002a30

-----Decoded View---------------
Arg [0] : land (address): 0xb78d6fe453c335a3dccf054ee76a436a09cc1873
Arg [1] : babyWool (address): 0x250cd2c6b7259a0621d1c2997c48dddbea54a5a6
Arg [2] : creatureAttributesDelegator (address): 0x3da92fb1ca64a9592aca25813f320867edf61e34
Arg [3] : babyCreatureOld (address): 0x946d51c2919a6abd401ba0f16e3d3647cf245b19
Arg [4] : babyCreatureNew (address): 0x3da92fb1ca64a9592aca25813f320867edf61e34
Arg [5] : wolfBattle (address): 0x0439dc6637d1f305d1d6d34f45cdd047d8d227a5
Arg [6] : tokenIdShift (uint256): 2898
Arg [7] : shearBase (uint256): 1000000000000000
Arg [8] : fee (uint256): 500
Arg [9] : healBase (uint256): 10800

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 000000000000000000000000b78d6fe453c335a3dccf054ee76a436a09cc1873
Arg [1] : 000000000000000000000000250cd2c6b7259a0621d1c2997c48dddbea54a5a6
Arg [2] : 0000000000000000000000003da92fb1ca64a9592aca25813f320867edf61e34
Arg [3] : 000000000000000000000000946d51c2919a6abd401ba0f16e3d3647cf245b19
Arg [4] : 0000000000000000000000003da92fb1ca64a9592aca25813f320867edf61e34
Arg [5] : 0000000000000000000000000439dc6637d1f305d1d6d34f45cdd047d8d227a5
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000b52
Arg [7] : 00000000000000000000000000000000000000000000000000038d7ea4c68000
Arg [8] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [9] : 0000000000000000000000000000000000000000000000000000000000002a30


Deployed ByteCode Sourcemap

162677:15128:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53711:204;;;;;;:::i;:::-;;:::i;:::-;;;470:14:1;;463:22;445:41;;433:2;418:18;53711:204:0;;;;;;;;164047:244;;;;;;:::i;:::-;;:::i;:::-;;;;1158:25:1;;;1226:14;;1219:22;1214:2;1199:18;;1192:50;1131:18;164047:244:0;990:258:1;144493:270:0;;;;;;:::i;:::-;;:::i;:::-;;;1724:25:1;;;1712:2;1697:18;144493:270:0;1578:177:1;171386:139:0;;;;;;:::i;:::-;;:::i;:::-;;141257:207;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;;3983:33:1;;;3965:52;;3953:2;3938:18;141257:207:0;3821:202:1;149239:206:0;;;;;;:::i;:::-;;:::i;153110:235::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;4561:32:1;;;4543:51;;4531:2;4516:18;153110:235:0;4397:203:1;144771:249:0;;;;;;:::i;:::-;;:::i;55547:131::-;;;;;;:::i;:::-;55621:7;55648:12;;;;;;;;;;:22;;;;55547:131;141930:179;;;;;;:::i;:::-;;:::i;149063:168::-;;;;;;:::i;:::-;;:::i;150367:227::-;;;;;;:::i;:::-;;:::i;55988:147::-;;;;;;:::i;:::-;;:::i;57132:218::-;;;;;;:::i;:::-;;:::i;167015:339::-;;;;;;:::i;:::-;;:::i;147138:1259::-;;;;;;:::i;:::-;;:::i;148593:215::-;;;;;;:::i;:::-;;:::i;150979:77::-;;;:::i;146450:680::-;;;;;;:::i;:::-;;:::i;171206:172::-;;;;;;:::i;:::-;;:::i;145028:878::-;;;;;;:::i;:::-;;:::i;103011:156::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;149730:91::-;149807:5;;-1:-1:-1;;;;;149807:5:0;149730:91;;103175:407;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;47113:86::-;47184:7;;;;47113:86;;164299:1612;;;;;;:::i;:::-;;:::i;149453:155::-;;;:::i;150200:159::-;;;;;;:::i;:::-;;:::i;150602:137::-;150702:28;;-1:-1:-1;;;;;150702:28:0;150602:137;;151535:147;;;;;;:::i;:::-;;:::i;171631:::-;;;;;;:::i;:::-;;:::i;169953:383::-;;;;;;:::i;:::-;;:::i;:::-;;;;11914:6:1;11902:19;;;11884:38;;-1:-1:-1;;;;;11958:31:1;;;11953:2;11938:18;;11931:59;12006:18;;;11999:34;11872:2;11857:18;169953:383:0;11686:353:1;141472:281:0;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;12315:32:1;;;12297:51;;12379:2;12364:18;;12357:34;;;;12407:18;;;12400:34;;;;12465:2;12450:18;;12443:34;12521:14;12514:22;12508:3;12493:19;;12486:51;12284:3;12269:19;141472:281:0;12044:499:1;142117:1875:0;;;;;;:::i;:::-;;:::i;169568:377::-;;;;;;:::i;:::-;;:::i;163725:169::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;13361:31:1;;;13343:50;;13331:2;13316:18;163725:169:0;13199:200:1;149616:106:0;;;;;;:::i;:::-;;:::i;150898:73::-;;;:::i;150039:153::-;;;:::i;140580:43::-;;140618:5;140580:43;;54007:147;;;;;;:::i;:::-;;:::i;167784:848::-;;;;;;:::i;:::-;;:::i;171533:90::-;171606:9;;171533:90;;152737:39;;;;;170703:238;;;;;;:::i;:::-;;:::i;148816:239::-;;;;;;:::i;:::-;;:::i;170949:249::-;;;;;;:::i;:::-;;:::i;53112:49::-;;53157:4;53112:49;;163902:137;;;;;;:::i;:::-;;:::i;145914:528::-;;;;;;:::i;:::-;;:::i;148405:180::-;;;;;;:::i;:::-;;:::i;151064:209::-;;;;;;:::i;:::-;;:::i;144000:485::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;167362:414::-;;;;;;:::i;:::-;;:::i;165919:1088::-;;;;;;:::i;:::-;;:::i;150747:143::-;;;:::i;56428:149::-;;;;;;:::i;:::-;;:::i;140511:62::-;;-1:-1:-1;;;;;;;;;;;140511:62:0;;151281:246;;;;;;:::i;:::-;;:::i;141761:161::-;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;16406:32:1;;;16388:51;;16470:2;16455:18;;16448:34;;;;16361:18;141761:161:0;16214:274:1;149829:202:0;;;;;;:::i;:::-;;:::i;168640:920::-;;;;;;:::i;:::-;;:::i;171786:94::-;171861:11;;-1:-1:-1;;;;;171861:11:0;171786:94;;170344:351;;;;;;:::i;:::-;;:::i;53711:204::-;53796:4;-1:-1:-1;;;;;;53820:47:0;;-1:-1:-1;;;53820:47:0;;:87;;-1:-1:-1;;;;;;;;;;22565:40:0;;;53871:36;53813:94;53711:204;-1:-1:-1;;53711:204:0:o;164047:244::-;164228:55;;-1:-1:-1;;;164228:55:0;;16709:6:1;16742:15;;;164228:55:0;;;16724:34:1;16794:15;;16774:18;;;16767:43;16826:18;;;16819:34;;;164183:16:0;;;;164228:7;;:27;;16672:18:1;;164228:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;164221:62;;;;164047:244;;;;;;:::o;144493:270::-;144623:7;144643:28;144674:19;:17;:19::i;:::-;144711:17;;;:9;:17;;;;;;;;;;;:23;;;;;;;;:37;;;;;;;:44;;-1:-1:-1;;144493:270:0;;;;;;:::o;171386:139::-;53157:4;53603:16;53157:4;53603:10;:16::i;:::-;-1:-1:-1;171497:9:0::1;:20:::0;171386:139::o;141257:207::-;-1:-1:-1;;;141257:207:0;;;;;;;:::o;149239:206::-;53157:4;53603:16;53157:4;53603:10;:16::i;:::-;149352:28:::1;149383:19;:17;:19::i;:::-;149413:12;;:24:::0;;;;-1:-1:-1;;149239:206:0:o;153110:235::-;153195:20;153248:3;:89;;153318:18;;-1:-1:-1;;;;;153318:18:0;153248:89;;;-1:-1:-1;;153275:13:0;:18;-1:-1:-1;;;;;153275:18:0;;153110:235::o;144771:249::-;144955:57;;-1:-1:-1;;;144955:57:0;;17574:6:1;17562:19;;144955:57:0;;;17544:38:1;17598:18;;;17591:34;;;17641:18;;;17634:34;;;17684:18;;;17677:34;;;144928:7:0;;144955:6;;:20;;17516:19:1;;144955:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;144948:64;144771:249;-1:-1:-1;;;;;144771:249:0:o;141930:179::-;142066:35;;-1:-1:-1;;;142066:35:0;;142037:4;;142066:6;;:23;;:35;;142090:10;;;;142066:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;149063:168::-;149119:7;149139:28;149170:19;:17;:19::i;:::-;149139:50;;149207:2;:12;;149220:2;149207:16;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;149207:16:0;;149063:168;-1:-1:-1;;;149063:168:0:o;150367:227::-;53157:4;53603:16;53157:4;53603:10;:16::i;:::-;-1:-1:-1;150516:28:0::1;:70:::0;;-1:-1:-1;;;;;;150516:70:0::1;-1:-1:-1::0;;;;;150516:70:0;;;::::1;::::0;;;::::1;::::0;;150367:227::o;55988:147::-;55621:7;55648:12;;;;;;;;;;:22;;;53603:16;53614:4;53603:10;:16::i;:::-;56102:25:::1;56113:4;56119:7;56102:10;:25::i;:::-;55988:147:::0;;;:::o;57132:218::-;-1:-1:-1;;;;;57228:23:0;;18962:10;57228:23;57220:83;;;;-1:-1:-1;;;57220:83:0;;19023:2:1;57220:83:0;;;19005:21:1;19062:2;19042:18;;;19035:30;19101:34;19081:18;;;19074:62;-1:-1:-1;;;19152:18:1;;;19145:45;19207:19;;57220:83:0;;;;;;;;;57316:26;57328:4;57334:7;57316:11;:26::i;:::-;57132:218;;:::o;167015:339::-;167136:5;;167173:18;;;19411:6:1;19399:19;;167173:18:0;;;19381:38:1;167092:13:0;;-1:-1:-1;;;;;167136:5:0;;:18;;167163:4;;167136:5;;19354:18:1;167173::0;;;;;;;;;;;;167136:56;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;167136:56:0;;;;;;;;;;;;:::i;:::-;167111:125;;;;;;;;;;;;:::i;:::-;-1:-1:-1;167091:145:0;-1:-1:-1;;;;;;167255:19:0;;167264:10;167255:19;167247:48;;;;-1:-1:-1;;;167247:48:0;;;;;;;:::i;:::-;167306:40;167326:6;167334:4;167340:5;167306:19;:40::i;147138:1259::-;147209:28;147240:19;:17;:19::i;:::-;147328:5;;147365:18;;;19411:6:1;19399:19;;147365:18:0;;;19381:38:1;147209:50:0;;-1:-1:-1;147271:13:0;;;;-1:-1:-1;;;;;147328:5:0;;:18;;147355:4;;147328:5;;19354:18:1;147365::0;;;;;;;;;;;;147328:56;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;147328:56:0;;;;;;;;;;;;:::i;:::-;147303:125;;;;;;;;;;;;:::i;:::-;147270:158;;-1:-1:-1;147270:158:0;-1:-1:-1;;;;;;147447:19:0;;147456:10;147447:19;147439:48;;;;-1:-1:-1;;;147439:48:0;;;;;;;:::i;:::-;147518:12;;;:19;147498:17;147548:842;147578:5;147571:4;:12;147548:842;;;147613:16;147608:771;147646:9;147635:8;:20;147608:771;;;147712:17;;;147688:21;147712:17;;;;;;;;;;;:23;;;;;;;;:33;;;;;;;;147688:57;;;;;;;;;;;;;;;;;;;147712:33;;147688:57;:21;;:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;147769:14;147764:600;147798:6;:13;147789:6;:22;147764:600;;;147883:1;147850:6;147857;147850:14;;;;;;;;:::i;:::-;;;;;;;:23;;;:30;:34;147846:499;;;147917:8;147913:113;;;147958:40;147965:6;147973:4;147979:8;147989:1;147992:5;147958:6;:40::i;:::-;148052:269;148092:6;148129:4;148164:8;148203:1;148235:6;148242;148235:14;;;;;;;;:::i;:::-;;;;;;;:23;;;148289:5;148052:9;:269::i;:::-;147813:8;;;;:::i;:::-;;;;147764:600;;;;147669:710;147657:10;;;;;:::i;:::-;;;;147608:771;;;-1:-1:-1;147585:6:0;;;;:::i;:::-;;;;147548:842;;;;147198:1199;;;;147138:1259;;:::o;148593:215::-;53157:4;53603:16;53157:4;53603:10;:16::i;:::-;148714:28:::1;148745:19;:17;:19::i;:::-;148714:50;;148794:6;148775:2;:12;;148788:2;148775:16;;;;;;;;:::i;:::-;;;;;;;;;:25;;;;;-1:-1:-1::0;;;;;148775:25:0::1;;;;;-1:-1:-1::0;;;;;148775:25:0::1;;;;;;148703:105;148593:215:::0;;;:::o;150979:77::-;-1:-1:-1;;;;;;;;;;;53603:16:0;53614:4;53603:10;:16::i;:::-;151038:10:::1;:8;:10::i;:::-;150979:77:::0;:::o;146450:680::-;146666:28;146697:19;:17;:19::i;:::-;146750:17;;;146727:20;146750:17;;;;;;;;;;;:23;;;;;;;;:37;;;;;;;;:46;;146666:50;;-1:-1:-1;146727:20:0;;146788:7;;146750:46;;;;;;:::i;:::-;;;;;;;;146823:5;;;:26;;-1:-1:-1;;;146823:26:0;;19411:6:1;19399:19;;146823:26:0;;;19381:38:1;;;;146750:46:0;;;;;;;;;-1:-1:-1;;;;;;146823:5:0;;;;:18;;19354::1;;146823:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;146807:42;-1:-1:-1;;;;;;146868:19:0;;146877:10;146868:19;146860:48;;;;-1:-1:-1;;;146860:48:0;;;;;;;:::i;:::-;146923:8;:42;;;;-1:-1:-1;146953:12:0;;146935:15;:30;146923:42;146919:125;;;146982:50;146989:6;146997:4;147003:12;147017:7;147026:5;146982:6;:50::i;:::-;147054:68;147064:6;147072:4;147078:12;147092:7;147101:13;;147054:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;147116:5:0;;-1:-1:-1;147054:9:0;;-1:-1:-1;;147054:68:0:i;:::-;146655:475;;;146450:680;;;;;;;:::o;171206:172::-;53157:4;53603:16;53157:4;53603:10;:16::i;:::-;171335:35:::1;171352:12;171366:3;171335:16;:35::i;145028:878::-:0;145081:28;145112:19;:17;:19::i;:::-;145200:5;;145237:18;;;19411:6:1;19399:19;;145237:18:0;;;19381:38:1;145081:50:0;;-1:-1:-1;145143:13:0;;;;-1:-1:-1;;;;;145200:5:0;;:18;;145227:4;;145200:5;;19354:18:1;145237::0;;;;;;;;;;;;145200:56;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;145200:56:0;;;;;;;;;;;;:::i;:::-;145175:125;;;;;;;;;;;;:::i;:::-;145142:158;;-1:-1:-1;145142:158:0;-1:-1:-1;;;;;;145319:19:0;;145328:10;145319:19;145311:48;;;;-1:-1:-1;;;145311:48:0;;;;;;;:::i;:::-;145390:12;;;:19;145370:17;145420:479;145450:5;145443:4;:12;145420:479;;;145485:16;145480:408;145518:9;145507:8;:20;145480:408;;;145584:17;;;145560:21;145584:17;;;;;;;;;;;:23;;;;;;;;:33;;;;;;;;145560:57;;;;;;;;;;;;;;;;;;;145584:33;;145560:57;:21;;:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;145641:14;145636:237;145670:6;:13;145661:6;:22;145636:237;;;145755:1;145722:6;145729;145722:14;;;;;;;;:::i;:::-;;;;;;;:23;;;:30;:34;145718:136;;;145785:45;145792:6;145800:4;145806:8;145816:6;145824:5;145785:6;:45::i;:::-;145685:8;;;;:::i;:::-;;;;145636:237;;;;145541:347;145529:10;;;;;:::i;:::-;;;;145480:408;;;-1:-1:-1;145457:6:0;;;;:::i;:::-;;;;145420:479;;;;145070:836;;;;145028:878;:::o;103011:156::-;-1:-1:-1;;;;;103140:19:0;;;;;;:9;:19;;;;;;;;103133:26;;;;;;;;;;;;;;;;;103100:15;;103133:26;;103140:19;;103133:26;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103011:156;;;:::o;103175:407::-;103304:12;103349:225;103396:8;103481:9;:19;103491:8;-1:-1:-1;;;;;103481:19:0;-1:-1:-1;;;;;103481:19:0;;;;;;;;;;;;103501:8;103481:29;;;;;;;;:::i;:::-;;;;;;;;103465:47;;;;;;:::i;:::-;;;;;;;;;103423:136;;103536:4;;103423:136;;;:::i;:::-;;;;;;;;;;;;;103349:28;:225::i;164299:1612::-;46718:19;:17;:19::i;:::-;164524:5:::1;::::0;164561:22:::1;::::0;;19411:6:1;19399:19;;164561:22:0::1;::::0;::::1;19381:38:1::0;164480:13:0::1;::::0;-1:-1:-1;;;;;164524:5:0::1;::::0;:18:::1;::::0;164551:4:::1;::::0;164524:5;;19354:18:1;164561:22:0::1;;;;;;;;;;;;164524:60;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;164524:60:0::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;:::i;:::-;164499:129;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;164479:149:0;-1:-1:-1;;;;;;164647:19:0;::::1;164656:10;164647:19;164639:48;;;;-1:-1:-1::0;;;164639:48:0::1;;;;;;;:::i;:::-;164700:34;164737:19;:17;:19::i;:::-;164767:28;164798:26:::0;;;::::1;::::0;;;;;;164841:17;;164798:26;;-1:-1:-1;164798:26:0;164841:17;;::::1;-1:-1:-1::0;;;;;164841:17:0::1;:22:::0;;164837:547:::1;;164880:12;164895:17;164905:6;164895:9;:17::i;:::-;164880:32;;164943:1;164935:5;-1:-1:-1::0;;;;;164935:9:0::1;;164927:39;;;::::0;-1:-1:-1;;;164927:39:0;;23607:2:1;164927:39:0::1;::::0;::::1;23589:21:1::0;23646:2;23626:18;;;23619:30;-1:-1:-1;;;23665:18:1;;;23658:47;23722:18;;164927:39:0::1;23405:341:1::0;164927:39:0::1;164983:23;164999:6;164983:15;:23::i;:::-;165023:25:::0;;165063:31:::1;::::0;::::1;-1:-1:-1::0;;;;;;;165023:25:0;;::::1;::::0;::::1;165063:31:::0;;;;-1:-1:-1;;;;;;165063:31:0;;;;;::::1;::::0;;165023:17:::1;165109:34:::0;;;:22:::1;::::0;::::1;:34;::::0;;;;;;:47;;-1:-1:-1;165109:47:0;::::1;::::0;;;;;;;::::1;::::0;;;164837:547:::1;;;165215:18:::0;;:32:::1;::::0;;::::1;:18:::0;::::1;:32;:96:::0;::::1;;;;165296:15;165272:11;:20;;;:39;;165215:96;165189:183;;;;-1:-1:-1::0;;;165189:183:0::1;;;;;;;:::i;:::-;165451:5;::::0;165540:38:::1;::::0;;16709:6:1;16742:15;;;165540:38:0::1;::::0;::::1;16724:34:1::0;16794:15;;16774:18;;;16767:43;16826:18;;;;16819:34;;;165540:38:0;;;;;;;;;;16672:18:1;;;165540:38:0;;;;-1:-1:-1;;;165451:142:0;;;-1:-1:-1;;;;;;;;;165451:5:0;;::::1;::::0;:18:::1;::::0;:142:::1;::::0;165496:4:::1;::::0;165520:1:::1;::::0;165451:142;;::::1;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;165451:142:0::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;:::i;:::-;165426:208;;;;;;;;;;;;:::i;:::-;165396:238;;;;165663:1;165652:8;:12;165645:20;;;;:::i;:::-;165682:2;165678:85;;;165709:17:::0;;165729:1:::1;165709:17:::0;;;::::1;-1:-1:-1::0;;;;;165709:17:0::1;:21;165701:50;;;;-1:-1:-1::0;;;165701:50:0::1;;;;;;;:::i;:::-;165828:9;::::0;165817:20:::1;::::0;:8;:20:::1;:::i;:::-;165798:40;::::0;:15:::1;:40;:::i;:::-;165775:20;::::0;::::1;:63:::0;165849:54:::1;165857:10:::0;165869:6;165877:8;165887:4;165893:5;165900:2;165849:7:::1;:54::i;149453:155::-:0;149500:7;149520:28;149551:19;:17;:19::i;:::-;149588:12;;;;149453:155;-1:-1:-1;;149453:155:0:o;150200:159::-;53157:4;53603:16;53157:4;53603:10;:16::i;:::-;150278:28:::1;150309:19;:17;:19::i;:::-;150339:6;;:12:::0;;;;-1:-1:-1;;150200:159:0:o;151535:147::-;53157:4;53603:16;53157:4;53603:10;:16::i;:::-;151649:25:::1;151665:8;151649:15;:25::i;171631:147::-:0;53157:4;53603:16;53157:4;53603:10;:16::i;:::-;-1:-1:-1;171746:11:0::1;:24:::0;;-1:-1:-1;;;;;;171746:24:0::1;-1:-1:-1::0;;;;;171746:24:0;;;::::1;::::0;;;::::1;::::0;;171631:147::o;169953:383::-;170055:6;170076;170097:7;170132:34;170169:19;:17;:19::i;:::-;170199:27;170229;;;:19;;;;:27;;;;;;170275:16;;170310:17;;;170275:16;;;;170293:15;;;;-1:-1:-1;;;;;170293:15:0;;170310:17;;-1:-1:-1;169953:383:0;-1:-1:-1;;;169953:383:0:o;141472:281::-;141713:32;;-1:-1:-1;;;141713:32:0;;25860:6:1;25848:19;;141713:32:0;;;25830:38:1;25884:18;;;25877:34;;;141586:7:0;;;;;;;;;;141713:6;;:18;;25803::1;;141713:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;141706:39;;;;-1:-1:-1;141706:39:0;;-1:-1:-1;141706:39:0;-1:-1:-1;141706:39:0;;-1:-1:-1;141472:281:0;-1:-1:-1;;;141472:281:0:o;142117:1875::-;46718:19;:17;:19::i;:::-;142331:28:::1;::::0;142443:21:::1;::::0;142290:13:::1;::::0;-1:-1:-1;;;;;142331:28:0::1;::::0;:41:::1;::::0;142399:4:::1;::::0;142290:13;;142443:21:::1;::::0;142454:9;;;;142443:21:::1;;;:::i;:::-;;;;;;;;;;;;;142331:148;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;142331:148:0::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;:::i;:::-;142306:205;;;;;;;;;;;;:::i;:::-;142290:221;;142532:8;142524:43;;;::::0;-1:-1:-1;;;142524:43:0;;27385:2:1;142524:43:0::1;::::0;::::1;27367:21:1::0;27424:2;27404:18;;;27397:30;-1:-1:-1;;;27443:18:1;;;27436:52;27505:18;;142524:43:0::1;27183:346:1::0;142524:43:0::1;142664:5;::::0;142701:24:::1;::::0;;25860:6:1;25848:19;;142701:24:0::1;::::0;::::1;25830:38:1::0;25884:18;;;25877:34;;;142701:24:0;;;;;;;;;25803:18:1;;;142701:24:0;;;;-1:-1:-1;;;142664:62:0;;;-1:-1:-1;;;;;;;;;;;142664:5:0;;::::1;::::0;:18:::1;::::0;:62:::1;::::0;142691:4:::1;::::0;-1:-1:-1;;142664:62:0;;::::1;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;142664:62:0::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;:::i;:::-;142639:155;;;;;;;;;;;;:::i;:::-;142580:214;;;;;;;;142836:10;-1:-1:-1::0;;;;;142827:19:0::1;:5;-1:-1:-1::0;;;;;142827:19:0::1;;:35;;;;;142861:1;142850:8;:12;142827:35;142805:114;;;::::0;-1:-1:-1;;;142805:114:0;;28577:2:1;142805:114:0::1;::::0;::::1;28559:21:1::0;28616:2;28596:18;;;28589:30;28655:31;28635:18;;;28628:59;28704:18;;142805:114:0::1;28375:353:1::0;142805:114:0::1;142932:14;142961:28:::0;142992:19:::1;:17;:19::i;:::-;142961:50;;143027:9;143022:116;143046:12;::::0;::::1;:19:::0;143042:23;::::1;143022:116;;;143097:20;::::0;::::1;;::::0;;;:12:::1;::::0;::::1;:20;::::0;;;;;;;:26;;;;;;;;:29;;;;;;;;;143087:39:::1;::::0;;::::1;:::i;:::-;::::0;-1:-1:-1;143067:3:0;::::1;::::0;::::1;:::i;:::-;;;;143022:116;;;;143181:6;143170:8;:17;:60;;;;-1:-1:-1::0;143214:9:0;143192:17:::1;143203:6:::0;143192:8;:17:::1;:::i;:::-;143191:39;;143170:60;143148:139;;;::::0;-1:-1:-1;;;143148:139:0;;29065:2:1;143148:139:0::1;::::0;::::1;29047:21:1::0;29104:2;29084:18;;;29077:30;29143:31;29123:18;;;29116:59;29192:18;;143148:139:0::1;28863:353:1::0;143148:139:0::1;143300:16;143327:2;:12;;143340;143327:26;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;::::1;::::0;143384:52:::1;::::0;-1:-1:-1;;;143384:52:0;;143410:10:::1;143384:52;::::0;::::1;29433:34:1::0;143430:4:0::1;29483:18:1::0;;;29476:43;-1:-1:-1;;;;;143327:26:0;;::::1;::::0;-1:-1:-1;143327:26:0;;143384:25:::1;::::0;29368:18:1;;143384:52:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;143365:71;;143452:9;143447:342;143467:20:::0;;::::1;143447:342;;;143514:11;143509:188;;143546:16;143565:8;-1:-1:-1::0;;;;;143565:20:0::1;;143586:9;;143596:1;143586:12;;;;;;;:::i;:::-;;;;;;;143565:34;;;;;;;;;;;;;1724:25:1::0;;1712:2;1697:18;;1578:177;143565:34:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;143546:53:::0;-1:-1:-1;;;;;;143626:25:0;::::1;143646:4;143626:25;143618:63;;;::::0;-1:-1:-1;;;143618:63:0;;29732:2:1;143618:63:0::1;::::0;::::1;29714:21:1::0;29771:2;29751:18;;;29744:30;-1:-1:-1;;;29790:18:1;;;29783:55;29855:18;;143618:63:0::1;29530:349:1::0;143618:63:0::1;143527:170;143509:188;143711:8;-1:-1:-1::0;;;;;143711:25:0::1;;143737:10;143757:4;143764:9;;143774:1;143764:12;;;;;;;:::i;:::-;;;;;;;143711:66;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;143489:3;;;;;:::i;:::-;;;;143447:342;;;-1:-1:-1::0;143801:17:0::1;::::0;::::1;:9;:17:::0;;;::::1;::::0;;;;;;;:23;;;;;;;;:37;;;;;;;;;143858:44;;::::1;::::0;::::1;::::0;;143864:15:::1;143858:44:::0;;;;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;;143801:37;;143858:44;;;;;;;;143892:9;;;;;;143858:44;;::::1;::::0;143892:9;;143858:44;143892:9;143858:44;::::1;;::::0;::::1;::::0;;;-1:-1:-1;143858:44:0;;;;-1:-1:-1;;143801:112:0;;::::1;::::0;;::::1;::::0;;;;;::::1;::::0;;;;;;::::1;::::0;;::::1;;::::0;;;;;::::1;::::0;;;::::1;::::0;;;;::::1;::::0;::::1;::::0;;;;;;::::1;::::0;-1:-1:-1;143801:112:0::1;::::0;::::1;::::0;;;;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;;;143924:20:0::1;::::0;::::1;;::::0;;;:12:::1;::::0;::::1;:20;::::0;;;;;;;:26;;;;;;;;:40;;;;;;;;:60;;143968:9;;143924:20;:60:::1;::::0;143968:9;;143924:60:::1;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;;;;;;;;;142117:1875:0:o;169568:377::-;169669:6;169690;169711:7;169746:34;169783:19;:17;:19::i;:::-;169813:25;169841:26;;;;;-1:-1:-1;;169841:26:0;;;;169886:15;;;169919:17;;;;169886:15;;;;169903:14;;;;-1:-1:-1;;;;;169903:14:0;;-1:-1:-1;169919:17:0;-1:-1:-1;169568:377:0:o;163725:169::-;163854:32;;-1:-1:-1;;;163854:32:0;;;;;1724:25:1;;;163817:12:0;;163854:7;;:24;;1697:18:1;;163854:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;149616:106::-;53157:4;53603:16;53157:4;53603:10;:16::i;:::-;-1:-1:-1;149696:5:0::1;:18:::0;;-1:-1:-1;;;;;;149696:18:0::1;-1:-1:-1::0;;;;;149696:18:0;;;::::1;::::0;;;::::1;::::0;;149616:106::o;150898:73::-;-1:-1:-1;;;;;;;;;;;53603:16:0;53614:4;53603:10;:16::i;:::-;150955:8:::1;:6;:8::i;150039:153::-:0;150085:7;150105:28;150136:19;:17;:19::i;:::-;150173:11;;;-1:-1:-1;;;;;150173:11:0;;150039:153;-1:-1:-1;;150039:153:0:o;54007:147::-;54093:4;54117:12;;;;;;;;;;;-1:-1:-1;;;;;54117:29:0;;;;;;;;;;;;;;;54007:147::o;167784:848::-;167905:5;;167942:18;;;19411:6:1;19399:19;;167942:18:0;;;19381:38:1;167861:13:0;;-1:-1:-1;;;;;167905:5:0;;:18;;167932:4;;167905:5;;19354:18:1;167942::0;;;;;;;;;;;;167905:56;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;167905:56:0;;;;;;;;;;;;:::i;:::-;167880:125;;;;;;;;;;;;:::i;:::-;-1:-1:-1;167860:145:0;-1:-1:-1;;;;;;168024:19:0;;168033:10;168024:19;168016:48;;;;-1:-1:-1;;;168016:48:0;;;;;;;:::i;:::-;168077:34;168114:19;:17;:19::i;:::-;168161:30;;;168144:14;168161:30;;;:22;;;:30;;;;;:37;;168077:56;;-1:-1:-1;168144:14:0;;168192:5;;168161:37;;;;;;:::i;:::-;;;;;;;;;168144:54;;168272:15;168233:8;:18;;:26;168252:6;168233:26;;;;;;;;;;;:35;;;:54;;168211:127;;;;-1:-1:-1;;;168211:127:0;;;;;;;:::i;:::-;168391:30;;;;;;;:22;;;:30;;;;;168436:37;;:41;;168476:1;;168436:41;:::i;:::-;168391:97;;;;;;;;:::i;:::-;;;;;;;;;168351:8;:22;;:30;168374:6;168351:30;;;;;;;;;;;;;;;168382:5;168351:37;;;;;;;;:::i;:::-;;;;;;;;;;;;:137;;;;168499:30;;;;;:22;;;:30;;;;;;:36;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;168499:36:0;;;;;;;;;;;;168553:26;;;;;;;;;168546:33;;-1:-1:-1;;;;;;168546:33:0;;;168499:36;168546:33;;168592:32;168572:6;168618:5;168592:17;:32::i;:::-;167849:783;;;167784:848;;:::o;170703:238::-;170797:7;170822:34;170859:19;:17;:19::i;:::-;170896:30;;;;;;;;:22;;;;:30;;-1:-1:-1;;170896:30:0;;;:37;;170703:238::o;148816:239::-;53157:4;53603:16;53157:4;53603:10;:16::i;:::-;148901:28:::1;148932:19;:17;:19::i;:::-;148981:12;::::0;::::1;148994:19:::0;;148901:50;;-1:-1:-1;148981:12:0;148994:23:::1;::::0;149016:1:::1;::::0;148994:23:::1;:::i;:::-;148981:37;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;148962:12:::1;::::0;::::1;:16:::0;;-1:-1:-1;;;;;148981:37:0;;::::1;::::0;148975:2;;148962:16;::::1;;;;;:::i;:::-;;;;;;;;;:56;;;;;-1:-1:-1::0;;;;;148962:56:0::1;;;;;-1:-1:-1::0;;;;;148962:56:0::1;;;;;;149029:2;:12;;:18;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;-1:-1:-1;;149029:18:0;;;;;-1:-1:-1;;;;;;149029:18:0::1;::::0;;;;;-1:-1:-1;;;148816:239:0:o;170949:249::-;171054:7;171079:34;171116:19;:17;:19::i;:::-;171153:30;;;;;;;:22;;;:30;;;;;:37;;171079:56;;-1:-1:-1;171153:30:0;171184:5;;171153:37;;;;;;:::i;:::-;;;;;;;;;171146:44;;;170949:249;;;;:::o;163902:137::-;163995:36;;-1:-1:-1;;;163995:36:0;;;;;1724:25:1;;;163971:4:0;;163995:7;;:27;;1697:18:1;;163995:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;145914:528::-;146060:28;146091:19;:17;:19::i;:::-;146144:17;;;146121:20;146144:17;;;;;;;;;;;:23;;;;;;;;:37;;;;;;;;:46;;146060:50;;-1:-1:-1;146121:20:0;;146182:7;;146144:46;;;;;;:::i;:::-;;;;;;;;;;;146121:69;;146227:6;:12;;;146209:15;:30;146201:60;;;;-1:-1:-1;;;146201:60:0;;31433:2:1;146201:60:0;;;31415:21:1;31472:2;31452:18;;;31445:30;-1:-1:-1;;;31491:18:1;;;31484:47;31548:18;;146201:60:0;31231:341:1;146201:60:0;146288:5;;;:26;;-1:-1:-1;;;146288:26:0;;19411:6:1;19399:19;;146288:26:0;;;19381:38:1;;;;146272:13:0;;-1:-1:-1;;;;;146288:5:0;;;;:18;;19354::1;;146288:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;146272:42;-1:-1:-1;;;;;;146333:19:0;;146342:10;146333:19;146325:48;;;;-1:-1:-1;;;146325:48:0;;;;;;;:::i;:::-;146384:50;146391:6;146399:4;146405:12;146419:7;146428:5;146384:6;:50::i;148405:180::-;53157:4;53603:16;53157:4;53603:10;:16::i;:::-;148491:28:::1;148522:19;:17;:19::i;:::-;148552:12;;:25:::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;148552:25:0;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;;;;148552:25:0::1;-1:-1:-1::0;;;;;148552:25:0;;;::::1;::::0;;;::::1;::::0;;;-1:-1:-1;;148405:180:0:o;151064:209::-;53157:4;53603:16;53157:4;53603:10;:16::i;:::-;151229:36:::1;151242:8;151252:6;;151260:4;151229:12;:36::i;144000:485::-:0;144193:7;144215;144237:16;144281:28;144312:19;:17;:19::i;:::-;144364:17;;;144342:19;144364:17;;;;;;;;;;;:23;;;;;;;;:37;;;;;;;;:46;;144281:50;;-1:-1:-1;144342:19:0;;144402:7;;144364:46;;;;;;:::i;:::-;;;;;;;;;;;144342:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;144342:68:0;;;;-1:-1:-1;;144429:12:0;;144443:16;;;;144461:15;;;;;144429:12;;144443:16;;-1:-1:-1;144461:15:0;-1:-1:-1;144000:485:0;;-1:-1:-1;;;;;;;;144000:485:0:o;167362:414::-;167485:5;;167522:18;;;19411:6:1;19399:19;;167522:18:0;;;19381:38:1;167428:13:0;;;;-1:-1:-1;;;;;167485:5:0;;;;:18;;167512:4;;167485:5;;19354:18:1;167522::0;;;;;;;;;;;;167485:56;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;167485:56:0;;;;;;;;;;;;:::i;:::-;167460:125;;;;;;;;;;;;:::i;:::-;167427:158;;-1:-1:-1;167427:158:0;-1:-1:-1;;;;;;167604:19:0;;167613:10;167604:19;167596:48;;;;-1:-1:-1;;;167596:48:0;;;;;;;:::i;:::-;167662:12;167657:112;167687:5;167680:4;:12;167657:112;;;167717:40;167737:6;167745:4;167751:5;167717:19;:40::i;:::-;167694:6;;;;:::i;:::-;;;;167657:112;;;;167416:360;;167362:414;:::o;165919:1088::-;46718:19;:17;:19::i;:::-;166122:5:::1;::::0;166159:24:::1;::::0;;25860:6:1;25848:19;;166159:24:0::1;::::0;::::1;25830:38:1::0;25884:18;;;25877:34;;;166159:24:0;;;;;;;;;25803:18:1;;;166159:24:0;;;;-1:-1:-1;;;166122:62:0;;;-1:-1:-1;;;;;;;;;;;166122:5:0;;::::1;::::0;:18:::1;::::0;:62:::1;::::0;166149:4:::1;::::0;-1:-1:-1;;166122:62:0;;::::1;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;166122:62:0::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;:::i;:::-;166097:155;;;;;;;;;;;;:::i;:::-;166049:203;;;;;;;;166280:10;-1:-1:-1::0;;;;;166271:19:0::1;:5;-1:-1:-1::0;;;;;166271:19:0::1;;166263:48;;;;-1:-1:-1::0;;;166263:48:0::1;;;;;;;:::i;:::-;166324:34;166361:19;:17;:19::i;:::-;166415:31;::::0;::::1;;::::0;;;:23:::1;::::0;::::1;:31;::::0;;;;;;;:37;;;;;;;;;166324:56;;-1:-1:-1;166415:42:0;166393:117:::1;;;::::0;-1:-1:-1;;;166393:117:0;;31779:2:1;166393:117:0::1;::::0;::::1;31761:21:1::0;31818:2;31798:18;;;31791:30;-1:-1:-1;;;31837:18:1;;;31830:55;31902:18;;166393:117:0::1;31577:349:1::0;166393:117:0::1;166523:30;166556:27:::0;;;:19:::1;::::0;::::1;:27;::::0;;;;166604:18;;;;::::1;-1:-1:-1::0;;;;;166604:18:0::1;:23:::0;166596:61:::1;;;;-1:-1:-1::0;;;166596:61:0::1;;;;;;;:::i;:::-;166670:12;166685:17;166695:6;166685:9;:17::i;:::-;166670:32;;166717:2;166713:73;;;166752:1;166744:5;-1:-1:-1::0;;;;;166744:9:0::1;;166736:38;;;;-1:-1:-1::0;;;166736:38:0::1;;;;;;;:::i;:::-;166798:23;166814:6;166798:15;:23::i;:::-;166834:26:::0;;-1:-1:-1;;;;;;166871:28:0;166834:26;-1:-1:-1;;;;;166834:26:0;;;::::1;::::0;;;::::1;-1:-1:-1::0;;166871:28:0;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;-1:-1:-1;166910:20:0::1;:30:::0;;;;-1:-1:-1;;166953:31:0;;;166834:18:::1;166953:23;:31;::::0;;;;;;;:37;;;;;;-1:-1:-1;166953:37:0;;:46;165919:1088::o;150747:143::-;150788:7;150808:28;150839:19;:17;:19::i;:::-;150876:6;;;;150747:143;-1:-1:-1;;150747:143:0:o;56428:149::-;55621:7;55648:12;;;;;;;;;;:22;;;53603:16;53614:4;53603:10;:16::i;:::-;56543:26:::1;56555:4;56561:7;56543:11;:26::i;151281:246::-:0;53157:4;53603:16;53157:4;53603:10;:16::i;:::-;151473:46:::1;151486:8;151496;151506:6;;151514:4;151473:12;:46::i;141761:161::-:0;141888:26;;-1:-1:-1;;;141888:26:0;;19411:6:1;19399:19;;141888:26:0;;;19381:38:1;141847:7:0;;;;141888:6;;:18;;19354::1;;141888:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;141881:33;;;;141761:161;;;:::o;149829:202::-;53157:4;53603:16;53157:4;53603:10;:16::i;:::-;149940:28:::1;149971:19;:17;:19::i;:::-;150001:11;;:22:::0;;-1:-1:-1;;;;;;150001:22:0::1;-1:-1:-1::0;;;;;150001:22:0;;;::::1;::::0;;;::::1;::::0;;;-1:-1:-1;;149829:202:0:o;168640:920::-;168749:5;;168786:18;;;19411:6:1;19399:19;;168786:18:0;;;19381:38:1;168705:13:0;;-1:-1:-1;;;;;168749:5:0;;:18;;168776:4;;168749:5;;19354:18:1;168786::0;;;;;;;;;;;;168749:56;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;168749:56:0;;;;;;;;;;;;:::i;:::-;168724:125;;;;;;;;;;;;:::i;:::-;-1:-1:-1;168704:145:0;-1:-1:-1;;;;;;168868:19:0;;168877:10;168868:19;168860:48;;;;-1:-1:-1;;;168860:48:0;;;;;;;:::i;:::-;168921:34;168958:19;:17;:19::i;:::-;169021:30;;;168988;169021;;;:22;;;:30;;;;;;;;168988:63;;;;;;;;;;;;;;;;;168921:56;;-1:-1:-1;168988:30:0;;:63;;169021:30;168988:63;;169021:30;168988:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;169069:30:0;;;;;;;:22;;;:30;;;;;168988:63;;-1:-1:-1;169062:37:0;;169069:30;-1:-1:-1;169062:37:0;:::i;:::-;169131:16;169112:391;169177:13;:20;169166:8;:31;169112:391;;;169352:15;169275:8;:18;;:43;169294:13;169308:8;169294:23;;;;;;;;:::i;:::-;;;;;;;169275:43;;;;;;;;;;;:52;;;:92;;169249:177;;;;-1:-1:-1;;;169249:177:0;;;;;;;:::i;:::-;169448:8;:18;;:43;169467:13;169481:8;169467:23;;;;;;;;:::i;:::-;;;;;;;;;;;;169448:43;;;;;;;;;;-1:-1:-1;169448:43:0;;;169441:50;;-1:-1:-1;;;;;;169441:50:0;;;;;;169212:10;;;;:::i;:::-;;;;169112:391;;;;169513:39;169531:13;169546:5;169513:17;:39::i;170344:351::-;170449:7;170474:34;170511:19;:17;:19::i;:::-;170558:31;;;170541:14;170558:31;;;:23;;;:31;;;;;;;;:37;;;;;;;;;170474:56;;-1:-1:-1;170614:10:0;170606:57;;;;-1:-1:-1;;;170606:57:0;;32651:2:1;170606:57:0;;;32633:21:1;32690:2;32670:18;;;32663:30;32729:34;32709:18;;;32702:62;-1:-1:-1;;;32780:18:1;;;32773:32;32822:19;;170606:57:0;32449:398:1;1745:244:0;1252:55;;1745:244::o;54458:105::-;54525:30;54536:4;18962:10;54525;:30::i;58729:238::-;58813:22;58821:4;58827:7;58813;:22::i;:::-;58808:152;;58852:6;:12;;;;;;;;;;;-1:-1:-1;;;;;58852:29:0;;;;;;;;;:36;;-1:-1:-1;;58852:36:0;58884:4;58852:36;;;58935:12;18962:10;;18882:98;58935:12;-1:-1:-1;;;;;58908:40:0;58926:7;-1:-1:-1;;;;;58908:40:0;58920:4;58908:40;;;;;;;;;;58729:238;;:::o;59147:239::-;59231:22;59239:4;59245:7;59231;:22::i;:::-;59227:152;;;59302:5;59270:12;;;;;;;;;;;-1:-1:-1;;;;;59270:29:0;;;;;;;;;;:37;;-1:-1:-1;;59270:37:0;;;59327:40;18962:10;;59270:12;;59327:40;;59302:5;59327:40;59147:239;;:::o;174684:491::-;174810:34;174847:19;:17;:19::i;:::-;174897:31;;;174877:17;174897:31;;;:23;;;:31;;;;;;;;:37;;;;;;;;;174951:30;;;:19;;;:30;;;;;;:36;174897:23;;-1:-1:-1;174897:37:0;174951:36;;;-1:-1:-1;;;;;174951:36:0;:40;174947:221;;175015:31;;;;;;;:23;;;:31;;;;;;;;:37;;;;;;;;175008:44;;;175074:30;;;:19;;;;:30;;;;;175067:37;;-1:-1:-1;;;;;;175067:37:0;;;;;175121:35;175094:9;175150:5;175121:17;:35::i;151690:249::-;46718:19;:17;:19::i;:::-;151875:56:::1;::::0;-1:-1:-1;;;151875:56:0;;33147:6:1;33135:19;;151875:56:0::1;::::0;::::1;33117:38:1::0;33171:18;;;33164:34;;;33214:18;;;33207:34;;;33257:18;;;33250:34;;;-1:-1:-1;;;;;33321:32:1;;33300:19;;;33293:61;151875:6:0::1;::::0;:12:::1;::::0;33089:19:1;;151875:56:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;151690:249:::0;;;;;:::o;151947:386::-;152162:163;;-1:-1:-1;;;152162:163:0;;:6;;:15;;:163;;152192:6;;152213:4;;152232:12;;152259:7;;152281:13;;152309:5;;152162:163;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47968:120;46977:16;:14;:16::i;:::-;48027:7:::1;:15:::0;;-1:-1:-1;;48027:15:0::1;::::0;;48058:22:::1;18962:10:::0;48067:12:::1;48058:22;::::0;-1:-1:-1;;;;;4561:32:1;;;4543:51;;4531:2;4516:18;48058:22:0::1;;;;;;;47968:120::o:0;155880:205::-;155958:3;:119;;-1:-1:-1;156035:18:0;:42;;-1:-1:-1;;;;;;156035:42:0;-1:-1:-1;;;;;156035:42:0;;;;;;;;;55988:147::o;155958:119::-;-1:-1:-1;155977:13:0;:42;;-1:-1:-1;;;;;;155977:42:0;-1:-1:-1;;;;;155977:42:0;;;;;;;;;155880:205::o;16416:200::-;16499:12;16531:77;16552:6;16560:4;16531:77;;;;;;;;;;;;;;;;;:20;:77::i;47272:108::-;47184:7;;;;47342:9;47334:38;;;;-1:-1:-1;;;47334:38:0;;34609:2:1;47334:38:0;;;34591:21:1;34648:2;34628:18;;;34621:30;-1:-1:-1;;;34667:18:1;;;34660:46;34723:18;;47334:38:0;34407:340:1;47334:38:0;47272:108::o;815:244::-;217:55;;815:244::o;177471:331::-;177591:28;;177715:18;;;;;;;1724:25:1;;;177715:18:0;;;;;;;;;;1697::1;;;177715::0;;;;-1:-1:-1;;;177591:161:0;;;177523:6;;-1:-1:-1;;;;;177591:28:0;;:41;;:161;;177663:4;;177591:28;;177715:18;177591:161;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;177591:161:0;;;;;;;;;;;;:::i;:::-;177562:232;;;;;;;;;;;;:::i;153353:182::-;153443:16;;;153457:1;153443:16;;;;;;;;;153415:25;;153443:16;;;;;;;;;;;-1:-1:-1;153443:16:0;153415:44;;153484:7;153470:8;153479:1;153470:11;;;;;;;;:::i;:::-;;;;;;:21;;;;;153502:25;153518:8;153502:15;:25::i;175183:2280::-;175367:34;175404:19;:17;:19::i;:::-;175436:28;175467:26;;;;;;;;;;;175571:33;;;;;:23;;;:33;;;;;:39;;;;;;;;;175537:84;;:19;;;;:84;;;;;;175727:18;;175467:26;;-1:-1:-1;175467:26:0;;175537:84;;175436:28;;;175727:18;;;-1:-1:-1;;;;;175727:18:0;:22;175723:630;;175791:16;;;175805:1;175791:16;;;;;;;;;175766:22;;175791:16;;;;;;;;;;-1:-1:-1;175791:16:0;175766:41;;175833:10;175822:21;;:5;175828:1;175822:8;;;;;;;;:::i;:::-;;;;;;:21;;;;;175869:8;175858:19;;:5;175864:1;175858:8;;;;;;;;:::i;:::-;;;;;;:19;;;;;175903:4;175892:5;175898:1;175892:8;;;;;;;;:::i;:::-;;;;;;:15;;;;;175933:6;175922:5;175928:1;175922:8;;;;;;;;:::i;:::-;;;;;;;;;;;:17;;;;175965:33;;;;;;;:23;;;:33;;;;;;:39;;;;;;;;175954:8;;:5;;175960:1;;175954:8;;;;;;:::i;:::-;;;;;;;;;;;:50;;;;176097:11;;176187:26;;;;;;;;;;;-1:-1:-1;;;176187:26:0;;;;176242:17;176054:247;;-1:-1:-1;;;;;176097:11:0;;;;176177:37;;176242:17;;176253:5;;176242:17;;:::i;:::-;;;;-1:-1:-1;;176242:17:0;;;;;;;;;;176131:151;;;176242:17;176131:151;;:::i;:::-;;;;;;;;;;;;;176054:20;:247::i;:::-;176025:316;;;;;;;;;;;;:::i;:::-;176019:322;;175751:602;175723:630;176370:3;176365:286;;176476:6;176449:8;176395:223;;176420:10;176395:223;;;176501:4;176524:3;176546:5;176570:6;176595:8;176395:223;;;;;;;;;35259:25:1;;;35327:14;;35320:22;35315:2;35300:18;;35293:50;35386:14;;35379:22;35374:2;35359:18;;35352:50;35445:14;35438:22;35433:2;35418:18;;35411:50;35492:3;35477:19;;35470:35;35246:3;35231:19;;35018:493;176395:223:0;;;;;;;;176633:7;;;;;;;;176365:286;176667:2;176663:588;;;176690:5;176686:236;;;176716:20;176727:8;176716:10;:20::i;:::-;176663:588;;176686:236;-1:-1:-1;176788:33:0;;;;;;;;:23;;;:33;;;;;;;;:39;;;;;;;;;;176855:51;;;;;;;;;;;;;;;-1:-1:-1;;;;;176855:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;176788:39;;176855:51;;176812:8;176822:4;176855:8;:51::i;:::-;176846:60;;176663:588;;;176958:5;176954:286;;;176984:26;176995:8;177005:4;176984:10;:26::i;176954:286::-;177072:152;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;177072:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;177170:8;177201:4;177072:6;:152::i;:::-;177051:173;;-1:-1:-1;177051:173:0;-1:-1:-1;176954:286:0;177337:6;177314:8;177268:187;;177289:10;177268:187;;;177358:4;177377:3;177395:5;177415:6;177436:8;177268:187;;;;;;;;;35259:25:1;;;35327:14;;35320:22;35315:2;35300:18;;35293:50;35386:14;;35379:22;35374:2;35359:18;;35352:50;35445:14;35438:22;35433:2;35418:18;;35411:50;35492:3;35477:19;;35470:35;35246:3;35231:19;;35018:493;177268:187:0;;;;;;;;175356:2107;;;;;;175183:2280;;;;;;:::o;104269:97::-;-1:-1:-1;;;;;104339:19:0;;;;;;:9;:19;;;;;104332:26;;;:::i;47709:118::-;46718:19;:17;:19::i;:::-;47779:4:::1;47769:14:::0;;-1:-1:-1;;47769:14:0::1;::::0;::::1;::::0;;47799:20:::1;18962:10:::0;47806:12:::1;18882:98:::0;153543:202;153647:16;;;153661:1;153647:16;;;;;;;;;153619:25;;153647:16;;;;;;;;;;;-1:-1:-1;153647:16:0;153619:44;;153688:7;153674:8;153683:1;153674:11;;;;;;;;:::i;:::-;;;;;;:21;;;;;153706:31;153724:8;153734:2;153706:17;:31::i;103590:315::-;103727:127;103768:8;103827:6;;103811:24;;;;;;;:::i;:::-;;;;;;;;;103791:52;;103838:4;;103791:52;;;:::i;:::-;;;;;;;;;;;;;103727:26;:127::i;:::-;-1:-1:-1;;;;;;103865:19:0;;;;;;:9;:19;;;;;;;:32;;;;;;;;;;;;;;103890:6;;103865:32;;:::i;103913:348::-;104077:127;104118:8;104177:6;;104161:24;;;;;;;:::i;104077:127::-;-1:-1:-1;;;;;;104215:19:0;;;;;;:9;:19;;;;;:29;;104247:6;;;;104235:8;;104215:29;;;;;;:::i;:::-;;;;;;;;:38;;;;;;;:::i;155078:794::-;155168:9;155163:702;155187:7;:14;155183:1;:18;155163:702;;;155240:14;155227:7;155235:1;155227:10;;;;;;;;:::i;:::-;;;;;;;:27;155223:631;;;-1:-1:-1;;;;;155275:18:0;;;:261;;155376:13;152690:1;155376:18;;;155503:10;;-1:-1:-1;;;;;155376:18:0;;;;:31;;155442:4;;155474:2;;155503:7;;155511:1;;155503:10;;;;;;:::i;:::-;;;;;;;155376:160;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;155223:631;;155275:261;155317:13;:18;155341:10;;-1:-1:-1;;;;;155317:18:0;;;;:23;;155341:10;;155349:1;;155341:10;;;;;;:::i;:::-;;;;;;;155317:35;;;;;;;;;;;;;1724:25:1;;1712:2;1697:18;;1578:177;155223:631:0;-1:-1:-1;;;;;155577:18:0;;;:261;;155678:13;152729:1;155678:18;;155577:261;155619:18;;155643:10;;-1:-1:-1;;;;;155619:18:0;;;;:23;;155643:10;;155651:1;;155643:10;;;;;;:::i;:::-;;;;;;;155619:35;;;;;;;;;;;;;1724:25:1;;1712:2;1697:18;;1578:177;155619:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;155577:261;155203:3;;;;:::i;:::-;;;;155163:702;;54853:505;54942:22;54950:4;54956:7;54942;:22::i;:::-;54937:414;;55130:41;55158:7;-1:-1:-1;;;;;55130:41:0;55168:2;55130:19;:41::i;:::-;55244:38;55272:4;55279:2;55244:19;:38::i;:::-;55035:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;55035:270:0;;;;;;;;;;-1:-1:-1;;;54981:358:0;;;;;;;:::i;47457:108::-;47184:7;;;;47516:41;;;;-1:-1:-1;;;47516:41:0;;38945:2:1;47516:41:0;;;38927:21:1;38984:2;38964:18;;;38957:30;-1:-1:-1;;;39003:18:1;;;38996:50;39063:18;;47516:41:0;38743:344:1;16810:396:0;16955:12;-1:-1:-1;;;;;11178:19:0;;;16980:69;;;;-1:-1:-1;;;16980:69:0;;39294:2:1;16980:69:0;;;39276:21:1;39333:2;39313:18;;;39306:30;39372:34;39352:18;;;39345:62;-1:-1:-1;;;39423:18:1;;;39416:36;39469:19;;16980:69:0;39092:402:1;16980:69:0;17063:12;17077:23;17104:6;-1:-1:-1;;;;;17104:19:0;17124:4;17104:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17062:67;;;;17147:51;17164:7;17173:10;17185:12;17147:16;:51::i;:::-;17140:58;16810:396;-1:-1:-1;;;;;;16810:396:0:o;153753:1317::-;153858:50;;;;;;;;;152559:1;153858:50;;;;;;;153824:23;;;153919:1144;153943:7;:14;153939:1;:18;153919:1144;;;153996:14;153983:7;153991:1;153983:10;;;;;;;;:::i;:::-;;;;;;;:27;153979:151;;;152690:1;154031:21;;153979:151;;;152729:1;154093:21;;153979:151;154207:13;154221:15;154207:30;;;;;;;:::i;:::-;;;154246:10;;-1:-1:-1;;;;;154207:30:0;;;;:38;;154246:7;;154254:1;;154246:10;;;;;;:::i;:::-;;;;;;;154207:50;;;;;;;;;;;;;1724:25:1;;1712:2;1697:18;;1578:177;154207:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;154172:85:0;:10;-1:-1:-1;;;;;154172:85:0;;154146:163;;;;-1:-1:-1;;;154146:163:0;;;;;;;:::i;:::-;152559:1;154330:11;154342:15;154330:28;;;;;;;:::i;:::-;;;;;:39;154326:275;;154421:13;154435:15;154421:30;;;;;;;:::i;:::-;;;:96;;-1:-1:-1;;;154421:96:0;;154491:10;154421:96;;;29433:34:1;154511:4:0;29483:18:1;;;29476:43;-1:-1:-1;;;;;154421:30:0;;;;:69;;29368:18:1;;154421:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:164;;152607:1;154421:164;;;152651:1;154421:164;154390:11;154402:15;154390:28;;;;;;;:::i;:::-;;;;:195;154326:275;152607:1;154619:11;154631:15;154619:28;;;;;;;:::i;:::-;;;;;:44;154615:268;;154756:13;154770:15;154756:30;;;;;;;:::i;:::-;;;154799:10;;-1:-1:-1;;;;;154756:30:0;;;;:42;;154799:7;;154807:1;;154799:10;;;;;;:::i;:::-;;;;;;;154756:54;;;;;;;;;;;;;1724:25:1;;1712:2;1697:18;;1578:177;154756:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;154714:96:0;154722:4;-1:-1:-1;;;;;154714:96:0;;154684:183;;;;-1:-1:-1;;;154684:183:0;;39980:2:1;154684:183:0;;;39962:21:1;40019:2;39999:18;;;39992:30;-1:-1:-1;;;40038:18:1;;;40031:43;40091:18;;154684:183:0;39778:337:1;154684:183:0;154899:13;154913:15;154899:30;;;;;;;:::i;:::-;;;155026:10;;-1:-1:-1;;;;;154899:30:0;;;;:47;;154965:10;;155002:4;;155026:7;;155034:1;;155026:10;;;;;;:::i;:::-;;;;;;;154899:152;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;153959:3;;;;;:::i;:::-;;;;153919:1144;;13223:175;13298:12;13330:60;13343:6;13351:4;13330:60;;;;;;;;;;;;;;;;;:12;:60::i;172467:313::-;172566:5;;172603:18;;;19411:6:1;19399:19;;172603:18:0;;;19381:38:1;172524:13:0;;-1:-1:-1;;;;;172566:5:0;;:18;;172593:4;;172566:5;;19354:18:1;172603::0;;;;;;;;;;;;172566:56;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;172566:56:0;;;;;;;;;;;;:::i;:::-;172541:125;;;;;;;;;;;;:::i;:::-;172521:145;;;172682:12;172677:96;172707:5;172700:4;:12;172677:96;;;172737:24;172748:6;172756:4;172737:10;:24::i;:::-;172714:6;;;;:::i;:::-;;;;172677:96;;174060:616;174221:4;174256:9;:15;;;-1:-1:-1;;;;;174256:20:0;174275:1;174256:20;:65;;;-1:-1:-1;174293:15:0;;;;-1:-1:-1;;;;;174293:28:0;162796:1;174293:28;174256:65;:109;;;-1:-1:-1;174338:14:0;;;;-1:-1:-1;;;;;174338:27:0;162796:1;174338:27;;174256:109;174238:178;;;-1:-1:-1;174399:5:0;174392:12;;174238:178;174493:14;;;;174522:17;;;;;174458:92;;-1:-1:-1;;;174458:92:0;;-1:-1:-1;;;;;40318:31:1;;;174458:92:0;;;40300:50:1;40366:18;;;40359:34;174429:13:0;;;;174458:7;;:20;;40273:18:1;;174458:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;174428:122;;;;174567:8;174563:78;;;174592:37;174612:6;174620:4;174626:2;174592:19;:37::i;:::-;-1:-1:-1;174660:8:0;174060:616;-1:-1:-1;;;;;174060:616:0:o;171888:571::-;171956:28;171987:19;:17;:19::i;:::-;172037:12;;;:19;171956:50;;-1:-1:-1;172017:17:0;172067:385;172105:9;172094:8;:20;172067:385;;;172167:17;;;172143:21;172167:17;;;;;;;;;;;:23;;;;;;;;:33;;;;;;;;172143:57;;;;;;;;;;;;;;;;;;;172167:33;;172143:57;:21;;:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;172220:14;172215:226;172249:6;:13;172240:6;:22;172215:226;;;172330:1;172297:6;172304;172297:14;;;;;;;;:::i;:::-;;;;;;;:23;;;:30;:34;172293:133;;;172356:50;172363:6;172371:4;172377:8;172387:6;172395:10;172356:6;:50::i;:::-;172264:8;;;;:::i;:::-;;;;172215:226;;;;172128:324;172116:10;;;;;:::i;:::-;;;;172067:385;;172788:1264;172947:4;172953:7;172973:28;173004:19;:17;:19::i;:::-;173142:14;;;;;173158:15;;;;173092:82;;-1:-1:-1;;;173092:82:0;;41051:6:1;41039:19;;173092:82:0;;;41021:38:1;41075:18;;;41068:34;;;-1:-1:-1;;;;;41175:15:1;;;41155:18;;;41148:43;41227:15;;41207:18;;;41200:43;172973:50:0;;-1:-1:-1;173037:13:0;;;;;;173092:7;;:35;;40993:19:1;;173092:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;173036:138;;;;;;173191:8;173187:446;;;173257:28;;173418:17;;;173257:28;173418:17;;;;;;;;;;;:23;;;;;;;;173442:9;;173418:34;;;;;;;173453:9;;;;173418:45;;-1:-1:-1;;;;;173257:28:0;;;;:41;;173329:4;;173357:1;;173418:45;;;;;;:::i;:::-;;;;;;;;;;;:54;;173503:6;173510:1;173503:9;;;;;;;:::i;:::-;;;;;173418:121;;;;;;;;:::i;:::-;;;;;;;;;173381:181;;;;;;1724:25:1;;1712:2;1697:18;;1578:177;173381:181:0;;;;;;;;;;;;;173257:324;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;173257:324:0;;;;;;;;;;;;:::i;:::-;173228:393;;;;;;;;;;;;:::i;:::-;173227:394;173216:405;;173187:446;173645:16;173682:8;173678:327;;;173736:16;;;173750:1;173736:16;;;;;;;;;173707:26;;173736:16;;;;;;;;;;;-1:-1:-1;;173707:45:0;-1:-1:-1;173782:6:0;173789:1;173782:9;;;;173767;173777:1;173767:12;;;;;;;;:::i;:::-;;;;;;;;;;;:24;;;;173819:17;;;:9;:17;;;;;;;;;;:23;;;;;;;;173843:9;;173819:34;;;;;;173854:9;;;;173819:45;;;;;;;;:::i;:::-;;;;;;;;;;;:54;;173892:6;173899:1;173892:9;;;;;;;:::i;:::-;;;;;173819:97;;;;;;;;:::i;:::-;;;;;;;;;173808:108;;173933:60;173943:6;173951:4;173957:6;173964:1;173957:9;;;;;;;:::i;:::-;;;;;173968:6;173975:1;173968:9;;;;173979;173990:2;173933:9;:60::i;:::-;173692:313;173678:327;174025:8;;;;-1:-1:-1;172788:1264:0;;-1:-1:-1;;;;;;;;172788:1264:0:o;15443:199::-;15529:12;15561:73;15580:6;15588:4;15561:73;;;;;;;;;;;;;;;;;:18;:73::i;20827:451::-;20902:13;20928:19;20960:10;20964:6;20960:1;:10;:::i;:::-;:14;;20973:1;20960:14;:::i;:::-;-1:-1:-1;;;;;20950:25:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20950:25:0;;20928:47;;-1:-1:-1;;;20986:6:0;20993:1;20986:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;20986:15:0;;;;;;;;;-1:-1:-1;;;21012:6:0;21019:1;21012:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;21012:15:0;;;;;;;;-1:-1:-1;21043:9:0;21055:10;21059:6;21055:1;:10;:::i;:::-;:14;;21068:1;21055:14;:::i;:::-;21043:26;;21038:135;21075:1;21071;:5;21038:135;;;-1:-1:-1;;;21123:5:0;21131:3;21123:11;21110:25;;;;;;;:::i;:::-;;;;21098:6;21105:1;21098:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;21098:37:0;;;;;;;;-1:-1:-1;21160:1:0;21150:11;;;;;21078:3;;;:::i;:::-;;;21038:135;;;-1:-1:-1;21191:10:0;;21183:55;;;;-1:-1:-1;;;21183:55:0;;42637:2:1;21183:55:0;;;42619:21:1;;;42656:18;;;42649:30;42715:34;42695:18;;;42688:62;42767:18;;21183:55:0;42435:356:1;17434:762:0;17584:12;17613:7;17609:580;;;-1:-1:-1;17644:10:0;17637:17;;17609:580;17758:17;;:21;17754:424;;18006:10;18000:17;18067:15;18054:10;18050:2;18046:19;18039:44;17754:424;18149:12;18142:20;;-1:-1:-1;;;18142:20:0;;;;;;;;:::i;13628:229::-;13765:12;13797:52;13819:6;13827:4;13833:1;13836:12;13797:21;:52::i;15834:395::-;15982:12;-1:-1:-1;;;;;11178:19:0;;;16007:67;;;;-1:-1:-1;;;16007:67:0;;42998:2:1;16007:67:0;;;42980:21:1;43037:2;43017:18;;;43010:30;43076:34;43056:18;;;43049:62;-1:-1:-1;;;43127:18:1;;;43120:34;43171:19;;16007:67:0;42796:400:1;16007:67:0;16088:12;16102:23;16129:6;-1:-1:-1;;;;;16129:17:0;16147:4;16129:23;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14748:510;14918:12;14976:5;14951:21;:30;;14943:81;;;;-1:-1:-1;;;14943:81:0;;43403:2:1;14943:81:0;;;43385:21:1;43442:2;43422:18;;;43415:30;43481:34;43461:18;;;43454:62;-1:-1:-1;;;43532:18:1;;;43525:36;43578:19;;14943:81:0;43201:402:1;14943:81:0;-1:-1:-1;;;;;11178:19:0;;;15035:60;;;;-1:-1:-1;;;15035:60:0;;43810:2:1;15035:60:0;;;43792:21:1;43849:2;43829:18;;;43822:30;43888:31;43868:18;;;43861:59;43937:18;;15035:60:0;43608:353:1;15035:60:0;15109:12;15123:23;15150:6;-1:-1:-1;;;;;15150:11:0;15169:5;15176:4;15150:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15108:73;;;;15199:51;15216:7;15225:10;15237:12;15199:16;:51::i;:::-;15192:58;14748:510;-1:-1:-1;;;;;;;14748:510:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::i;14:286:1:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:1;;209:43;;199:71;;266:1;263;256:12;497:159;564:20;;624:6;613:18;;603:29;;593:57;;646:1;643;636:12;593:57;497:159;;;:::o;661:324::-;736:6;744;752;805:2;793:9;784:7;780:23;776:32;773:52;;;821:1;818;811:12;773:52;844:28;862:9;844:28;:::i;:::-;834:38;;891:37;924:2;913:9;909:18;891:37;:::i;:::-;881:47;;975:2;964:9;960:18;947:32;937:42;;661:324;;;;;:::o;1253:320::-;1329:6;1337;1345;1398:2;1386:9;1377:7;1373:23;1369:32;1366:52;;;1414:1;1411;1404:12;1366:52;1437:28;1455:9;1437:28;:::i;:::-;1427:38;1512:2;1497:18;;1484:32;;-1:-1:-1;1563:2:1;1548:18;;;1535:32;;1253:320;-1:-1:-1;;;1253:320:1:o;1760:180::-;1819:6;1872:2;1860:9;1851:7;1847:23;1843:32;1840:52;;;1888:1;1885;1878:12;1840:52;-1:-1:-1;1911:23:1;;1760:180;-1:-1:-1;1760:180:1:o;1945:131::-;-1:-1:-1;;;;;2020:31:1;;2010:42;;2000:70;;2066:1;2063;2056:12;2081:127;2142:10;2137:3;2133:20;2130:1;2123:31;2173:4;2170:1;2163:15;2197:4;2194:1;2187:15;2213:275;2284:2;2278:9;2349:2;2330:13;;-1:-1:-1;;2326:27:1;2314:40;;-1:-1:-1;;;;;2369:34:1;;2405:22;;;2366:62;2363:88;;;2431:18;;:::i;:::-;2467:2;2460:22;2213:275;;-1:-1:-1;2213:275:1:o;2493:186::-;2541:4;-1:-1:-1;;;;;2566:6:1;2563:30;2560:56;;;2596:18;;:::i;:::-;-1:-1:-1;2662:2:1;2641:15;-1:-1:-1;;2637:29:1;2668:4;2633:40;;2493:186::o;2684:462::-;2726:5;2779:3;2772:4;2764:6;2760:17;2756:27;2746:55;;2797:1;2794;2787:12;2746:55;2833:6;2820:20;2864:48;2880:31;2908:2;2880:31;:::i;:::-;2864:48;:::i;:::-;2937:2;2928:7;2921:19;2983:3;2976:4;2971:2;2963:6;2959:15;2955:26;2952:35;2949:55;;;3000:1;2997;2990:12;2949:55;3065:2;3058:4;3050:6;3046:17;3039:4;3030:7;3026:18;3013:55;3113:1;3088:16;;;3106:4;3084:27;3077:38;;;;3092:7;2684:462;-1:-1:-1;;;2684:462:1:o;3151:665::-;3246:6;3254;3262;3270;3323:3;3311:9;3302:7;3298:23;3294:33;3291:53;;;3340:1;3337;3330:12;3291:53;3379:9;3366:23;3398:31;3423:5;3398:31;:::i;:::-;3448:5;-1:-1:-1;3505:2:1;3490:18;;3477:32;3518:33;3477:32;3518:33;:::i;:::-;3570:7;-1:-1:-1;3624:2:1;3609:18;;3596:32;;-1:-1:-1;3679:2:1;3664:18;;3651:32;-1:-1:-1;;;;;3695:30:1;;3692:50;;;3738:1;3735;3728:12;3692:50;3761:49;3802:7;3793:6;3782:9;3778:22;3761:49;:::i;:::-;3751:59;;;3151:665;;;;;;;:::o;4028:118::-;4114:5;4107:13;4100:21;4093:5;4090:32;4080:60;;4136:1;4133;4126:12;4151:241;4207:6;4260:2;4248:9;4239:7;4235:23;4231:32;4228:52;;;4276:1;4273;4266:12;4228:52;4315:9;4302:23;4334:28;4356:5;4334:28;:::i;4605:389::-;4690:6;4698;4706;4714;4767:3;4755:9;4746:7;4742:23;4738:33;4735:53;;;4784:1;4781;4774:12;4735:53;4807:28;4825:9;4807:28;:::i;:::-;4797:38;4882:2;4867:18;;4854:32;;-1:-1:-1;4933:2:1;4918:18;;4905:32;;4984:2;4969:18;4956:32;;-1:-1:-1;4605:389:1;-1:-1:-1;;;4605:389:1:o;5366:367::-;5429:8;5439:6;5493:3;5486:4;5478:6;5474:17;5470:27;5460:55;;5511:1;5508;5501:12;5460:55;-1:-1:-1;5534:20:1;;-1:-1:-1;;;;;5566:30:1;;5563:50;;;5609:1;5606;5599:12;5563:50;5646:4;5638:6;5634:17;5622:29;;5706:3;5699:4;5689:6;5686:1;5682:14;5674:6;5670:27;5666:38;5663:47;5660:67;;;5723:1;5720;5713:12;5660:67;5366:367;;;;;:::o;5738:437::-;5824:6;5832;5885:2;5873:9;5864:7;5860:23;5856:32;5853:52;;;5901:1;5898;5891:12;5853:52;5941:9;5928:23;-1:-1:-1;;;;;5966:6:1;5963:30;5960:50;;;6006:1;6003;5996:12;5960:50;6045:70;6107:7;6098:6;6087:9;6083:22;6045:70;:::i;:::-;6134:8;;6019:96;;-1:-1:-1;5738:437:1;-1:-1:-1;;;;5738:437:1:o;6180:247::-;6239:6;6292:2;6280:9;6271:7;6267:23;6263:32;6260:52;;;6308:1;6305;6298:12;6260:52;6347:9;6334:23;6366:31;6391:5;6366:31;:::i;6432:315::-;6500:6;6508;6561:2;6549:9;6540:7;6536:23;6532:32;6529:52;;;6577:1;6574;6567:12;6529:52;6613:9;6600:23;6590:33;;6673:2;6662:9;6658:18;6645:32;6686:31;6711:5;6686:31;:::i;:::-;6736:5;6726:15;;;6432:315;;;;;:::o;6752:252::-;6819:6;6827;6880:2;6868:9;6859:7;6855:23;6851:32;6848:52;;;6896:1;6893;6886:12;6848:52;6919:28;6937:9;6919:28;:::i;:::-;6909:38;6994:2;6979:18;;;;6966:32;;-1:-1:-1;;;6752:252:1:o;7009:313::-;7073:6;7081;7134:2;7122:9;7113:7;7109:23;7105:32;7102:52;;;7150:1;7147;7140:12;7102:52;7173:28;7191:9;7173:28;:::i;:::-;7163:38;;7251:2;7240:9;7236:18;7223:32;7264:28;7286:5;7264:28;:::i;7647:845::-;7774:6;7782;7790;7798;7806;7814;7822;7875:3;7863:9;7854:7;7850:23;7846:33;7843:53;;;7892:1;7889;7882:12;7843:53;7915:28;7933:9;7915:28;:::i;:::-;7905:38;;7990:2;7979:9;7975:18;7962:32;7952:42;;8041:2;8030:9;8026:18;8013:32;8003:42;;8092:2;8081:9;8077:18;8064:32;8054:42;;8147:3;8136:9;8132:19;8119:33;-1:-1:-1;;;;;8167:6:1;8164:30;8161:50;;;8207:1;8204;8197:12;8161:50;8246:70;8308:7;8299:6;8288:9;8284:22;8246:70;:::i;:::-;8335:8;;-1:-1:-1;8220:96:1;-1:-1:-1;;8420:3:1;8405:19;;8392:33;8434:28;8392:33;8434:28;:::i;:::-;8481:5;8471:15;;;7647:845;;;;;;;;;;:::o;8497:382::-;8562:6;8570;8623:2;8611:9;8602:7;8598:23;8594:32;8591:52;;;8639:1;8636;8629:12;8591:52;8678:9;8665:23;8697:31;8722:5;8697:31;:::i;8884:184::-;8942:6;8995:2;8983:9;8974:7;8970:23;8966:32;8963:52;;;9011:1;9008;9001:12;8963:52;9034:28;9052:9;9034:28;:::i;9073:258::-;9145:1;9155:113;9169:6;9166:1;9163:13;9155:113;;;9245:11;;;9239:18;9226:11;;;9219:39;9191:2;9184:10;9155:113;;;9286:6;9283:1;9280:13;9277:48;;;-1:-1:-1;;9321:1:1;9303:16;;9296:27;9073:258::o;9336:::-;9378:3;9416:5;9410:12;9443:6;9438:3;9431:19;9459:63;9515:6;9508:4;9503:3;9499:14;9492:4;9485:5;9481:16;9459:63;:::i;:::-;9576:2;9555:15;-1:-1:-1;;9551:29:1;9542:39;;;;9583:4;9538:50;;9336:258;-1:-1:-1;;9336:258:1:o;9599:803::-;9761:4;9790:2;9830;9819:9;9815:18;9860:2;9849:9;9842:21;9883:6;9918;9912:13;9949:6;9941;9934:22;9987:2;9976:9;9972:18;9965:25;;10049:2;10039:6;10036:1;10032:14;10021:9;10017:30;10013:39;9999:53;;10087:2;10079:6;10075:15;10108:1;10118:255;10132:6;10129:1;10126:13;10118:255;;;10225:2;10221:7;10209:9;10201:6;10197:22;10193:36;10188:3;10181:49;10253:40;10286:6;10277;10271:13;10253:40;:::i;:::-;10243:50;-1:-1:-1;10351:12:1;;;;10316:15;;;;10154:1;10147:9;10118:255;;;-1:-1:-1;10390:6:1;;9599:803;-1:-1:-1;;;;;;;9599:803:1:o;10407:523::-;10493:6;10501;10509;10562:2;10550:9;10541:7;10537:23;10533:32;10530:52;;;10578:1;10575;10568:12;10530:52;10617:9;10604:23;10636:31;10661:5;10636:31;:::i;:::-;10686:5;-1:-1:-1;10738:2:1;10723:18;;10710:32;;-1:-1:-1;10793:2:1;10778:18;;10765:32;-1:-1:-1;;;;;10809:30:1;;10806:50;;;10852:1;10849;10842:12;10806:50;10875:49;10916:7;10907:6;10896:9;10892:22;10875:49;:::i;:::-;10865:59;;;10407:523;;;;;:::o;10935:218::-;11082:2;11071:9;11064:21;11045:4;11102:45;11143:2;11132:9;11128:18;11120:6;11102:45;:::i;11158:523::-;11248:6;11256;11264;11272;11280;11333:3;11321:9;11312:7;11308:23;11304:33;11301:53;;;11350:1;11347;11340:12;11301:53;11373:28;11391:9;11373:28;:::i;:::-;11363:38;;11448:2;11437:9;11433:18;11420:32;11410:42;;11471:37;11504:2;11493:9;11489:18;11471:37;:::i;:::-;11461:47;;11555:2;11544:9;11540:18;11527:32;11517:42;;11609:3;11598:9;11594:19;11581:33;11623:28;11645:5;11623:28;:::i;:::-;11670:5;11660:15;;;11158:523;;;;;;;;:::o;12548:646::-;12660:6;12668;12676;12684;12692;12745:3;12733:9;12724:7;12720:23;12716:33;12713:53;;;12762:1;12759;12752:12;12713:53;12785:28;12803:9;12785:28;:::i;:::-;12775:38;;12860:2;12849:9;12845:18;12832:32;12822:42;;12911:2;12900:9;12896:18;12883:32;12873:42;;12966:2;12955:9;12951:18;12938:32;-1:-1:-1;;;;;12985:6:1;12982:30;12979:50;;;13025:1;13022;13015:12;12979:50;13064:70;13126:7;13117:6;13106:9;13102:22;13064:70;:::i;:::-;12548:646;;;;-1:-1:-1;12548:646:1;;-1:-1:-1;13153:8:1;;13038:96;12548:646;-1:-1:-1;;;12548:646:1:o;13404:348::-;13456:8;13466:6;13520:3;13513:4;13505:6;13501:17;13497:27;13487:55;;13538:1;13535;13528:12;13487:55;-1:-1:-1;13561:20:1;;-1:-1:-1;;;;;13593:30:1;;13590:50;;;13636:1;13633;13626:12;13590:50;13673:4;13665:6;13661:17;13649:29;;13725:3;13718:4;13709:6;13701;13697:19;13693:30;13690:39;13687:59;;;13742:1;13739;13732:12;13757:765;13855:6;13863;13871;13879;13932:2;13920:9;13911:7;13907:23;13903:32;13900:52;;;13948:1;13945;13938:12;13900:52;13987:9;13974:23;14006:31;14031:5;14006:31;:::i;:::-;14056:5;-1:-1:-1;14112:2:1;14097:18;;14084:32;-1:-1:-1;;;;;14165:14:1;;;14162:34;;;14192:1;14189;14182:12;14162:34;14231:59;14282:7;14273:6;14262:9;14258:22;14231:59;:::i;:::-;14309:8;;-1:-1:-1;14205:85:1;-1:-1:-1;14397:2:1;14382:18;;14369:32;;-1:-1:-1;14413:16:1;;;14410:36;;;14442:1;14439;14432:12;14410:36;;14465:51;14508:7;14497:8;14486:9;14482:24;14465:51;:::i;14527:435::-;14580:3;14618:5;14612:12;14645:6;14640:3;14633:19;14671:4;14700:2;14695:3;14691:12;14684:19;;14737:2;14730:5;14726:14;14758:1;14768:169;14782:6;14779:1;14776:13;14768:169;;;14843:13;;14831:26;;14877:12;;;;14912:15;;;;14804:1;14797:9;14768:169;;;-1:-1:-1;14953:3:1;;14527:435;-1:-1:-1;;;;;14527:435:1:o;14967:403::-;15202:6;15191:9;15184:25;15245:6;15240:2;15229:9;15225:18;15218:34;15288:2;15283;15272:9;15268:18;15261:30;15165:4;15308:56;15360:2;15349:9;15345:18;15337:6;15308:56;:::i;15375:834::-;15482:6;15490;15498;15506;15514;15567:3;15555:9;15546:7;15542:23;15538:33;15535:53;;;15584:1;15581;15574:12;15535:53;15623:9;15610:23;15642:31;15667:5;15642:31;:::i;:::-;15692:5;-1:-1:-1;15744:2:1;15729:18;;15716:32;;-1:-1:-1;15799:2:1;15784:18;;15771:32;-1:-1:-1;;;;;15852:14:1;;;15849:34;;;15879:1;15876;15869:12;15849:34;15918:59;15969:7;15960:6;15949:9;15945:22;15918:59;:::i;:::-;15996:8;;-1:-1:-1;15892:85:1;-1:-1:-1;16084:2:1;16069:18;;16056:32;;-1:-1:-1;16100:16:1;;;16097:36;;;16129:1;16126;16119:12;16097:36;;16152:51;16195:7;16184:8;16173:9;16169:24;16152:51;:::i;:::-;16142:61;;;15375:834;;;;;;;;:::o;16864:306::-;16940:6;16948;17001:2;16989:9;16980:7;16976:23;16972:32;16969:52;;;17017:1;17014;17007:12;16969:52;17046:9;17040:16;17030:26;;17099:2;17088:9;17084:18;17078:25;17112:28;17134:5;17112:28;:::i;17175:127::-;17236:10;17231:3;17227:20;17224:1;17217:31;17267:4;17264:1;17257:15;17291:4;17288:1;17281:15;17722:184;17792:6;17845:2;17833:9;17824:7;17820:23;17816:32;17813:52;;;17861:1;17858;17851:12;17813:52;-1:-1:-1;17884:16:1;;17722:184;-1:-1:-1;17722:184:1:o;17911:354::-;17999:19;;;17981:3;-1:-1:-1;;;;;18030:31:1;;18027:51;;;18074:1;18071;18064:12;18027:51;18110:6;18107:1;18103:14;18162:8;18155:5;18148:4;18143:3;18139:14;18126:45;18239:1;18194:18;;18214:4;18190:29;18228:13;;;-1:-1:-1;18190:29:1;;17911:354;-1:-1:-1;;17911:354:1:o;18270:296::-;18467:2;18456:9;18449:21;18430:4;18487:73;18556:2;18545:9;18541:18;18533:6;18525;18487:73;:::i;18571:245::-;18638:6;18691:2;18679:9;18670:7;18666:23;18662:32;18659:52;;;18707:1;18704;18697:12;18659:52;18739:9;18733:16;18758:28;18780:5;18758:28;:::i;19430:394::-;19670:1;19666;19661:3;19657:11;19653:19;19645:6;19641:32;19630:9;19623:51;19710:6;19705:2;19694:9;19690:18;19683:34;19753:2;19748;19737:9;19733:18;19726:30;19604:4;19773:45;19814:2;19803:9;19799:18;19791:6;19773:45;:::i;19829:634::-;19908:6;19961:2;19949:9;19940:7;19936:23;19932:32;19929:52;;;19977:1;19974;19967:12;19929:52;20010:9;20004:16;-1:-1:-1;;;;;20035:6:1;20032:30;20029:50;;;20075:1;20072;20065:12;20029:50;20098:22;;20151:4;20143:13;;20139:27;-1:-1:-1;20129:55:1;;20180:1;20177;20170:12;20129:55;20209:2;20203:9;20234:48;20250:31;20278:2;20250:31;:::i;20234:48::-;20305:2;20298:5;20291:17;20345:7;20340:2;20335;20331;20327:11;20323:20;20320:33;20317:53;;;20366:1;20363;20356:12;20317:53;20379:54;20430:2;20425;20418:5;20414:14;20409:2;20405;20401:11;20379:54;:::i;20468:320::-;20555:6;20563;20616:2;20604:9;20595:7;20591:23;20587:32;20584:52;;;20632:1;20629;20622:12;20584:52;20664:9;20658:16;20683:31;20708:5;20683:31;:::i;:::-;20778:2;20763:18;;;;20757:25;20733:5;;20757:25;;-1:-1:-1;;;20468:320:1:o;20793:340::-;20995:2;20977:21;;;21034:2;21014:18;;;21007:30;-1:-1:-1;;;21068:2:1;21053:18;;21046:46;21124:2;21109:18;;20793:340::o;21138:127::-;21199:10;21194:3;21190:20;21187:1;21180:31;21230:4;21227:1;21220:15;21254:4;21251:1;21244:15;21270:135;21309:3;21330:17;;;21327:43;;21350:18;;:::i;:::-;-1:-1:-1;21397:1:1;21386:13;;21270:135::o;21410:251::-;21480:6;21533:2;21521:9;21512:7;21508:23;21504:32;21501:52;;;21549:1;21546;21539:12;21501:52;21581:9;21575:16;21600:31;21625:5;21600:31;:::i;21666:380::-;21745:1;21741:12;;;;21788;;;21809:61;;21863:4;21855:6;21851:17;21841:27;;21809:61;21916:2;21908:6;21905:14;21885:18;21882:38;21879:161;;21962:10;21957:3;21953:20;21950:1;21943:31;21997:4;21994:1;21987:15;22025:4;22022:1;22015:15;21879:161;;21666:380;;;:::o;22180:844::-;22310:3;22339:1;22372:6;22366:13;22402:36;22428:9;22402:36;:::i;:::-;22457:1;22474:18;;;22501:133;;;;22648:1;22643:356;;;;22467:532;;22501:133;-1:-1:-1;;22534:24:1;;22522:37;;22607:14;;22600:22;22588:35;;22579:45;;;-1:-1:-1;22501:133:1;;22643:356;22674:6;22671:1;22664:17;22704:4;22749:2;22746:1;22736:16;22774:1;22788:165;22802:6;22799:1;22796:13;22788:165;;;22880:14;;22867:11;;;22860:35;22923:16;;;;22817:10;;22788:165;;;22792:3;;;22982:6;22977:3;22973:16;22966:23;;22467:532;-1:-1:-1;23015:3:1;;22180:844;-1:-1:-1;;;;;;22180:844:1:o;23029:371::-;-1:-1:-1;;;;;;23214:33:1;;23202:46;;23271:13;;23184:3;;23293:61;23271:13;23343:1;23334:11;;23327:4;23315:17;;23293:61;:::i;:::-;23374:16;;;;23392:1;23370:24;;23029:371;-1:-1:-1;;;23029:371:1:o;23751:349::-;23953:2;23935:21;;;23992:2;23972:18;;;23965:30;-1:-1:-1;;;24026:2:1;24011:18;;24004:55;24091:2;24076:18;;23751:349::o;24867:127::-;24928:10;24923:3;24919:20;24916:1;24909:31;24959:4;24956:1;24949:15;24983:4;24980:1;24973:15;24999:340;25201:2;25183:21;;;25240:2;25220:18;;;25213:30;-1:-1:-1;;;25274:2:1;25259:18;;25252:46;25330:2;25315:18;;24999:340::o;25344:168::-;25384:7;25450:1;25446;25442:6;25438:14;25435:1;25432:21;25427:1;25420:9;25413:17;25409:45;25406:71;;;25457:18;;:::i;:::-;-1:-1:-1;25497:9:1;;25344:168::o;25517:128::-;25557:3;25588:1;25584:6;25581:1;25578:13;25575:39;;;25594:18;;:::i;:::-;-1:-1:-1;25630:9:1;;25517:128::o;25922:564::-;26025:6;26033;26041;26049;26057;26110:3;26098:9;26089:7;26085:23;26081:33;26078:53;;;26127:1;26124;26117:12;26078:53;26159:9;26153:16;26178:31;26203:5;26178:31;:::i;:::-;26228:5;26218:15;;;26273:2;26262:9;26258:18;26252:25;26242:35;;26317:2;26306:9;26302:18;26296:25;26286:35;;26361:2;26350:9;26346:18;26340:25;26330:35;;26410:3;26399:9;26395:19;26389:26;26424:30;26446:7;26424:30;:::i;28733:125::-;28773:4;28801:1;28798;28795:8;28792:34;;;28806:18;;:::i;:::-;-1:-1:-1;28843:9:1;;28733:125::o;29884:375::-;-1:-1:-1;;;;;30142:15:1;;;30124:34;;30194:15;;;;30189:2;30174:18;;30167:43;30241:2;30226:18;;30219:34;;;;30074:2;30059:18;;29884:375::o;30454:288::-;30523:6;30576:2;30564:9;30555:7;30551:23;30547:32;30544:52;;;30592:1;30589;30582:12;30544:52;30624:9;30618:16;-1:-1:-1;;;;;30667:5:1;30663:30;30656:5;30653:41;30643:69;;30708:1;30705;30698:12;30747:347;30949:2;30931:21;;;30988:2;30968:18;;;30961:30;-1:-1:-1;;;31022:2:1;31007:18;;31000:53;31085:2;31070:18;;30747:347::o;31099:127::-;31160:10;31155:3;31151:20;31148:1;31141:31;31191:4;31188:1;31181:15;31215:4;31212:1;31205:15;33365:1037;33653:4;33701:3;33690:9;33686:19;33744:6;33736;33732:19;33721:9;33714:38;33771:2;33809:6;33804:2;33793:9;33789:18;33782:34;33852:6;33847:2;33836:9;33832:18;33825:34;33895:6;33890:2;33879:9;33875:18;33868:34;33939:3;33933;33922:9;33918:19;33911:32;33963:6;33998;33992:13;34029:6;34021;34014:22;34067:3;34056:9;34052:19;34045:26;;34106:2;34098:6;34094:15;34080:29;;34127:1;34137:169;34151:6;34148:1;34145:13;34137:169;;;34212:13;;34200:26;;34281:15;;;;34246:12;;;;34173:1;34166:9;34137:169;;;-1:-1:-1;;;;;;;34363:32:1;;;;34383:3;34342:19;;;;34335:61;;;;-1:-1:-1;34323:3:1;;33365:1037;-1:-1:-1;;;;;;;33365:1037:1:o;34752:261::-;34931:2;34920:9;34913:21;34894:4;34951:56;35003:2;34992:9;34988:18;34980:6;34951:56;:::i;35516:271::-;35699:6;35691;35686:3;35673:33;35655:3;35725:16;;35750:13;;;35725:16;35516:271;-1:-1:-1;35516:271:1:o;35792:545::-;35894:2;35889:3;35886:11;35883:448;;;35930:1;35955:5;35951:2;35944:17;36000:4;35996:2;35986:19;36070:2;36058:10;36054:19;36051:1;36047:27;36041:4;36037:38;36106:4;36094:10;36091:20;36088:47;;;-1:-1:-1;36129:4:1;36088:47;36184:2;36179:3;36175:12;36172:1;36168:20;36162:4;36158:31;36148:41;;36239:82;36257:2;36250:5;36247:13;36239:82;;;36302:17;;;36283:1;36272:13;36239:82;;36513:1209;-1:-1:-1;;;;;36632:3:1;36629:27;36626:53;;;36659:18;;:::i;:::-;36688:94;36778:3;36738:38;36770:4;36764:11;36738:38;:::i;:::-;36732:4;36688:94;:::i;:::-;36808:1;36833:2;36828:3;36825:11;36850:1;36845:619;;;;37508:1;37525:3;37522:93;;;-1:-1:-1;37581:19:1;;;37568:33;37522:93;-1:-1:-1;;36470:1:1;36466:11;;;36462:24;36458:29;36448:40;36494:1;36490:11;;;36445:57;37628:78;;36818:898;;36845:619;22127:1;22120:14;;;22164:4;22151:18;;-1:-1:-1;;36881:17:1;;;36985:9;37007:229;37021:7;37018:1;37015:14;37007:229;;;37110:19;;;37097:33;37082:49;;37217:4;37202:20;;;;37170:1;37158:14;;;;37037:12;37007:229;;;37011:3;37264;37255:7;37252:16;37249:159;;;37388:1;37384:6;37378:3;37372;37369:1;37365:11;37361:21;37357:34;37353:39;37340:9;37335:3;37331:19;37318:33;37314:79;37306:6;37299:95;37249:159;;;37451:1;37445:3;37442:1;37438:11;37434:19;37428:4;37421:33;36818:898;;36513:1209;;;:::o;37727:786::-;-1:-1:-1;;;38133:3:1;38126:38;38108:3;38193:6;38187:13;38209:62;38264:6;38259:2;38254:3;38250:12;38243:4;38235:6;38231:17;38209:62;:::i;:::-;-1:-1:-1;;;38330:2:1;38290:16;;;38322:11;;;38315:40;38380:13;;38402:63;38380:13;38451:2;38443:11;;38436:4;38424:17;;38402:63;:::i;:::-;38485:17;38504:2;38481:26;;37727:786;-1:-1:-1;;;;37727:786:1:o;39499:274::-;39628:3;39666:6;39660:13;39682:53;39728:6;39723:3;39716:4;39708:6;39704:17;39682:53;:::i;:::-;39751:16;;;;;39499:274;-1:-1:-1;;39499:274:1:o;40404:379::-;40480:6;40488;40541:2;40529:9;40520:7;40516:23;40512:32;40509:52;;;40557:1;40554;40547:12;40509:52;40589:9;40583:16;40608:28;40630:5;40608:28;:::i;:::-;40705:2;40690:18;;40684:25;40655:5;;-1:-1:-1;40718:33:1;40684:25;40718:33;:::i;41254:1035::-;41362:6;41370;41378;41431:3;41419:9;41410:7;41406:23;41402:33;41399:53;;;41448:1;41445;41438:12;41399:53;41480:9;41474:16;41499:28;41521:5;41499:28;:::i;:::-;41546:5;41536:15;;;41570:2;41617;41606:9;41602:18;41596:25;41630:33;41655:7;41630:33;:::i;:::-;41682:7;-1:-1:-1;41727:2:1;41712:18;;41708:32;-1:-1:-1;41698:60:1;;41754:1;41751;41744:12;41698:60;41787:2;41781:9;41829:2;41821:6;41817:15;41898:6;41886:10;41883:22;-1:-1:-1;;;;;41850:10:1;41847:34;41844:62;41841:88;;;41909:18;;:::i;:::-;41945:2;41938:22;41980:6;42024:3;42009:19;;42040;;;42037:39;;;42072:1;42069;42062:12;42037:39;42111:2;42100:9;42096:18;42123:135;42139:6;42134:3;42131:15;42123:135;;;42205:10;;42193:23;;42236:12;;;;42156;;42123:135;;;42127:3;;;42277:6;42267:16;;;;41254:1035;;;;;:::o;42294:136::-;42333:3;42361:5;42351:39;;42370:18;;:::i;:::-;-1:-1:-1;;;42406:18:1;;42294:136::o

Swarm Source

ipfs://3ba8f917554bd23c0d4b642e59cc1792b9157e6bab58d6b9f5a593da203cd3d2
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.