ETH Price: $3,101.05 (+1.12%)
Gas: 8 Gwei

Contract

0x431e877E216714647a4DCcEFFC03d7B4Fd4B825E
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x60806040145677812022-04-12 1:17:34739 days ago1649726254IN
 Create: MVM_CanonicalTransaction
0 ETH0.3557806290

Advanced mode:
Parent Transaction Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MVM_CanonicalTransaction

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-04-12
*/

// Sources flattened with hardhat v2.6.1 https://hardhat.org

// File @openzeppelin/contracts/utils/[email protected]

// : MIT

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/access/[email protected]

// : MIT

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}


// File contracts/libraries/resolver/Lib_AddressManager.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

/* External Imports */

/**
 * @title Lib_AddressManager
 */
contract Lib_AddressManager is Ownable {
    /**********
     * Events *
     **********/

    event AddressSet(string indexed _name, address _newAddress, address _oldAddress);

    /*************
     * Variables *
     *************/

    mapping(bytes32 => address) private addresses;

    /********************
     * Public Functions *
     ********************/

    /**
     * Changes the address associated with a particular name.
     * @param _name String name to associate an address with.
     * @param _address Address to associate with the name.
     */
    function setAddress(string memory _name, address _address) external onlyOwner {
        bytes32 nameHash = _getNameHash(_name);
        address oldAddress = addresses[nameHash];
        addresses[nameHash] = _address;

        emit AddressSet(_name, _address, oldAddress);
    }

    /**
     * Retrieves the address associated with a given name.
     * @param _name Name to retrieve an address for.
     * @return Address associated with the given name.
     */
    function getAddress(string memory _name) external view returns (address) {
        return addresses[_getNameHash(_name)];
    }

    /**********************
     * Internal Functions *
     **********************/

    /**
     * Computes the hash of a name.
     * @param _name Name to compute a hash for.
     * @return Hash of the given name.
     */
    function _getNameHash(string memory _name) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(_name));
    }
}


// File contracts/libraries/resolver/Lib_AddressResolver.sol

// : MIT
pragma solidity ^0.8.9;

/* Library Imports */

/**
 * @title Lib_AddressResolver
 */
abstract contract Lib_AddressResolver {
    /*************
     * Variables *
     *************/

    Lib_AddressManager public libAddressManager;

    /***************
     * Constructor *
     ***************/

    /**
     * @param _libAddressManager Address of the Lib_AddressManager.
     */
    constructor(address _libAddressManager) {
        libAddressManager = Lib_AddressManager(_libAddressManager);
    }

    /********************
     * Public Functions *
     ********************/

    /**
     * Resolves the address associated with a given name.
     * @param _name Name to resolve an address for.
     * @return Address associated with the given name.
     */
    function resolve(string memory _name) public view returns (address) {
        return libAddressManager.getAddress(_name);
    }
}


// File contracts/MVM/iMVM_CanonicalTransaction.sol

// : MIT
pragma solidity ^0.8.9;

/* Contract Imports */

/* External Imports */

/**
 * @title ICanonicalTransactionChain
 */
interface iMVM_CanonicalTransaction {
    /*********
     * Enums *
     *********/

    enum STAKESTATUS {
        INIT,
        SEQ_SET,
        VERIFIER_SET,
        PAYBACK
    }

    /**********
     * Events *
     **********/

    event VerifierStake(
        address _sender,
        uint256 _chainId,
        uint256 _batchIndex,
        uint256 _blockNumber,
        uint256 _amount
    );

    // default : stakeAmount=0, verified=true, sequencer=true
    // sequencer response for stake: stakeAmount>0, verified=true, sequencer=true
    // verifier response for stake timeout: stakeAmount>0, verified=false, sequencer=false
    event SetBatchTxData(
        address _sender,
        uint256 _chainId,
        uint256 _batchIndex,
        uint256 _blockNumber,
        uint256 _stakeAmount,
        bool _verified,
        bool _sequencer
    );

    event AppendBatchElement (
        uint256 _chainId,
        uint256 _batchIndex,
        uint40 _shouldStartAtElement,
        uint24 _totalElementsToAppend,
        uint256 _txBatchSize,
        uint256 _txBatchTime,
        bytes32 _root
    );

    /***********
     * Structs *
     ***********/

    // locker the same sender for 30 min
    struct TxDataSlice {
        address sender;
        uint256 blockNumber;
        uint256 batchIndex;
        uint256 timestamp;
        bytes txData;
        bool verified;
    }

    struct TxDataRequestStake {
        address sender;
        uint256 blockNumber;
        uint256 batchIndex;
        uint256 timestamp;
        uint256 endtime;
        uint256 amount;
        STAKESTATUS status;
    }

    struct BatchElement {
        uint40 shouldStartAtElement;
        uint24 totalElementsToAppend;
        uint256 txBatchSize;
        uint256 txBatchTime; // sequencer client encode timestamp(ms)
        bytes32 root; // merkle hash root with [hash(txDataBytes + blockNumber)]
        uint256 timestamp; // block timestamp
    }

    /*******************************
     * Authorized Setter Functions *
     *******************************/

    /**
     * Sets address's chain id.
     * @param _address contract address.
     * @param _chainId chain id.
     */
    // function setAddressChainId(address _address, uint256 _chainId) external;

    /**
     * Gets address's chain id.
     */
    // function getAddressChainId(address _address) external view returns (uint256);

    /**
     * Sets the verifier stake base cost of ETH.
     * @param _stakeBaseCost Stake base cost for verifier.
     */
    function setStakeBaseCost(uint256 _stakeBaseCost) external;

    /**
     * Gets the verifier stake base cost of ETH.
     */
    function getStakeBaseCost() external view returns (uint256);

    /**
     * Sets the verifier stake unit cost of ETH.
     * @param _stakeUnitCost Stake cost for verifier.
     */
    function setStakeUnitCost(uint256 _stakeUnitCost) external;

    /**
     * Gets the verifier stake unit cost of ETH for per storage unit.
     */
    function getStakeUnitCost() external view returns (uint256);

    /**
     * Gets the verifier stake cost of ETH by batch index.
     */
    function getStakeCostByBatch(uint256 _chainId, uint256 _batchIndex) external view returns (uint256);

    /**
     * Sets batch transaction data slice size per submit.
     * @param _size Slice size of batch transaction data.
     */
    function setTxDataSliceSize(uint256 _size) external;

    /**
     * Gets batch transaction data slice size per submit.
     */
    function getTxDataSliceSize() external view returns (uint256);

    /**
     * Sets batch size per batch.
     * @param _size Batch size of batch.
     */
    function setTxBatchSize(uint256 _size) external;

    /**
     * Gets batch size per batch.
     */
    function getTxBatchSize() external view returns (uint256);

    /**
     * Sets slice count per batch transaction data.
     * @param _count Slice count per batch transaction data.
     */
    function setTxDataSliceCount(uint256 _count) external;

    /**
     * Gets slice count per batch transaction data.
     */
    function getTxDataSliceCount() external view returns (uint256);

    /**
     * Sets seconds can submit transaction data after staking.
     * @param _seconds Seconds the Sequencer can sumbit transaction data after verifier staking.
     */
    function setStakeSeqSeconds(uint256 _seconds) external;

    /**
     * Gets seconds can submit transaction data after staking.
     * @return Seconds the Sequencer can sumbit transaction data after verifier staking.
     */
    function getStakeSeqSeconds() external view returns (uint256);

    function isWhiteListed(address _verifier) external view returns(bool);

    // add the verifier to the whitelist
    function setWhiteList(address _verifier, bool _allowed) external;

    // allow everyone to be the verifier
    function disableWhiteList() external;

    /**
     * Allows the sequencer to append a batch of transactions.
     * @dev This function uses a custom encoding scheme for efficiency reasons.
     */
    function appendSequencerBatchByChainId() external;

    /**
     * Sets batch tx data for stake.
     * @param _chainId chain id.
     * @param _batchIndex batch index of CTC.
     * @param _blockNumber slice index.
     * @param _data tx data hex.
    */
    function setBatchTxDataForStake(uint256 _chainId, uint256 _batchIndex, uint256 _blockNumber, bytes memory _data, uint256 _leafIndex, uint256 _totalLeaves, bytes32[] memory _proof) external;

    /**
     * Sets batch tx data for verifier.
     * @param _chainId chain id.
     * @param _batchIndex batch index of CTC.
     * @param _blockNumber slice index.
     * @param _data tx data hex.
    */
    function setBatchTxDataForVerifier(uint256 _chainId, uint256 _batchIndex, uint256 _blockNumber, bytes memory _data) external;

    /**
     * Gets batch tx data.
     * @param _chainId chain id.
     * @param _batchIndex batch index of CTC.
     * @param _blockNumber block number.
     * @return txData
     * @return verified
    */
    function getBatchTxData(uint256 _chainId, uint256 _batchIndex, uint256 _blockNumber) external view returns (bytes memory txData, bool verified);

    function checkBatchTxHash(uint256 _chainId, uint256 _batchIndex, uint256 _blockNumber, bytes memory _data) external view returns (bytes32 txHash, bool verified);

    function setBatchTxDataVerified(uint256 _chainId, uint256 _batchIndex, uint256 _blockNumber, bool _verified) external;

    /**
     * Stake by verifier.
     * @param _chainId chain id.
     * @param _batchIndex batch index of CTC.
     * @param _blockNumber block number.
    */
    function verifierStake(uint256 _chainId, uint256 _batchIndex, uint256 _blockNumber) external payable;

    /**
     * Withdraw stake by verifier.
     * @param _chainId chain id.
     * @param _batchIndex batch index of CTC.
     * @param _blockNumber block number.
    */
    function withdrawStake(uint256 _chainId, uint256 _batchIndex, uint256 _blockNumber) external;

}


// File contracts/libraries/rlp/Lib_RLPReader.sol

// : MIT
pragma solidity ^0.8.9;

/**
 * @title Lib_RLPReader
 * @dev Adapted from "RLPReader" by Hamdi Allam ([email protected]).
 */
library Lib_RLPReader {
    /*************
     * Constants *
     *************/

    uint256 internal constant MAX_LIST_LENGTH = 32;

    /*********
     * Enums *
     *********/

    enum RLPItemType {
        DATA_ITEM,
        LIST_ITEM
    }

    /***********
     * Structs *
     ***********/

    struct RLPItem {
        uint256 length;
        uint256 ptr;
    }

    /**********************
     * Internal Functions *
     **********************/

    /**
     * Converts bytes to a reference to memory position and length.
     * @param _in Input bytes to convert.
     * @return Output memory reference.
     */
    function toRLPItem(bytes memory _in) internal pure returns (RLPItem memory) {
        uint256 ptr;
        assembly {
            ptr := add(_in, 32)
        }

        return RLPItem({ length: _in.length, ptr: ptr });
    }

    /**
     * Reads an RLP list value into a list of RLP items.
     * @param _in RLP list value.
     * @return Decoded RLP list items.
     */
    function readList(RLPItem memory _in) internal pure returns (RLPItem[] memory) {
        (uint256 listOffset, , RLPItemType itemType) = _decodeLength(_in);

        require(itemType == RLPItemType.LIST_ITEM, "Invalid RLP list value.");

        // Solidity in-memory arrays can't be increased in size, but *can* be decreased in size by
        // writing to the length. Since we can't know the number of RLP items without looping over
        // the entire input, we'd have to loop twice to accurately size this array. It's easier to
        // simply set a reasonable maximum list length and decrease the size before we finish.
        RLPItem[] memory out = new RLPItem[](MAX_LIST_LENGTH);

        uint256 itemCount = 0;
        uint256 offset = listOffset;
        while (offset < _in.length) {
            require(itemCount < MAX_LIST_LENGTH, "Provided RLP list exceeds max list length.");

            (uint256 itemOffset, uint256 itemLength, ) = _decodeLength(
                RLPItem({ length: _in.length - offset, ptr: _in.ptr + offset })
            );

            out[itemCount] = RLPItem({ length: itemLength + itemOffset, ptr: _in.ptr + offset });

            itemCount += 1;
            offset += itemOffset + itemLength;
        }

        // Decrease the array size to match the actual item count.
        assembly {
            mstore(out, itemCount)
        }

        return out;
    }

    /**
     * Reads an RLP list value into a list of RLP items.
     * @param _in RLP list value.
     * @return Decoded RLP list items.
     */
    function readList(bytes memory _in) internal pure returns (RLPItem[] memory) {
        return readList(toRLPItem(_in));
    }

    /**
     * Reads an RLP bytes value into bytes.
     * @param _in RLP bytes value.
     * @return Decoded bytes.
     */
    function readBytes(RLPItem memory _in) internal pure returns (bytes memory) {
        (uint256 itemOffset, uint256 itemLength, RLPItemType itemType) = _decodeLength(_in);

        require(itemType == RLPItemType.DATA_ITEM, "Invalid RLP bytes value.");

        return _copy(_in.ptr, itemOffset, itemLength);
    }

    /**
     * Reads an RLP bytes value into bytes.
     * @param _in RLP bytes value.
     * @return Decoded bytes.
     */
    function readBytes(bytes memory _in) internal pure returns (bytes memory) {
        return readBytes(toRLPItem(_in));
    }

    /**
     * Reads an RLP string value into a string.
     * @param _in RLP string value.
     * @return Decoded string.
     */
    function readString(RLPItem memory _in) internal pure returns (string memory) {
        return string(readBytes(_in));
    }

    /**
     * Reads an RLP string value into a string.
     * @param _in RLP string value.
     * @return Decoded string.
     */
    function readString(bytes memory _in) internal pure returns (string memory) {
        return readString(toRLPItem(_in));
    }

    /**
     * Reads an RLP bytes32 value into a bytes32.
     * @param _in RLP bytes32 value.
     * @return Decoded bytes32.
     */
    function readBytes32(RLPItem memory _in) internal pure returns (bytes32) {
        require(_in.length <= 33, "Invalid RLP bytes32 value.");

        (uint256 itemOffset, uint256 itemLength, RLPItemType itemType) = _decodeLength(_in);

        require(itemType == RLPItemType.DATA_ITEM, "Invalid RLP bytes32 value.");

        uint256 ptr = _in.ptr + itemOffset;
        bytes32 out;
        assembly {
            out := mload(ptr)

            // Shift the bytes over to match the item size.
            if lt(itemLength, 32) {
                out := div(out, exp(256, sub(32, itemLength)))
            }
        }

        return out;
    }

    /**
     * Reads an RLP bytes32 value into a bytes32.
     * @param _in RLP bytes32 value.
     * @return Decoded bytes32.
     */
    function readBytes32(bytes memory _in) internal pure returns (bytes32) {
        return readBytes32(toRLPItem(_in));
    }

    /**
     * Reads an RLP uint256 value into a uint256.
     * @param _in RLP uint256 value.
     * @return Decoded uint256.
     */
    function readUint256(RLPItem memory _in) internal pure returns (uint256) {
        return uint256(readBytes32(_in));
    }

    /**
     * Reads an RLP uint256 value into a uint256.
     * @param _in RLP uint256 value.
     * @return Decoded uint256.
     */
    function readUint256(bytes memory _in) internal pure returns (uint256) {
        return readUint256(toRLPItem(_in));
    }

    /**
     * Reads an RLP bool value into a bool.
     * @param _in RLP bool value.
     * @return Decoded bool.
     */
    function readBool(RLPItem memory _in) internal pure returns (bool) {
        require(_in.length == 1, "Invalid RLP boolean value.");

        uint256 ptr = _in.ptr;
        uint256 out;
        assembly {
            out := byte(0, mload(ptr))
        }

        require(out == 0 || out == 1, "Lib_RLPReader: Invalid RLP boolean value, must be 0 or 1");

        return out != 0;
    }

    /**
     * Reads an RLP bool value into a bool.
     * @param _in RLP bool value.
     * @return Decoded bool.
     */
    function readBool(bytes memory _in) internal pure returns (bool) {
        return readBool(toRLPItem(_in));
    }

    /**
     * Reads an RLP address value into a address.
     * @param _in RLP address value.
     * @return Decoded address.
     */
    function readAddress(RLPItem memory _in) internal pure returns (address) {
        if (_in.length == 1) {
            return address(0);
        }

        require(_in.length == 21, "Invalid RLP address value.");

        return address(uint160(readUint256(_in)));
    }

    /**
     * Reads an RLP address value into a address.
     * @param _in RLP address value.
     * @return Decoded address.
     */
    function readAddress(bytes memory _in) internal pure returns (address) {
        return readAddress(toRLPItem(_in));
    }

    /**
     * Reads the raw bytes of an RLP item.
     * @param _in RLP item to read.
     * @return Raw RLP bytes.
     */
    function readRawBytes(RLPItem memory _in) internal pure returns (bytes memory) {
        return _copy(_in);
    }

    /*********************
     * Private Functions *
     *********************/

    /**
     * Decodes the length of an RLP item.
     * @param _in RLP item to decode.
     * @return Offset of the encoded data.
     * @return Length of the encoded data.
     * @return RLP item type (LIST_ITEM or DATA_ITEM).
     */
    function _decodeLength(RLPItem memory _in)
        private
        pure
        returns (
            uint256,
            uint256,
            RLPItemType
        )
    {
        require(_in.length > 0, "RLP item cannot be null.");

        uint256 ptr = _in.ptr;
        uint256 prefix;
        assembly {
            prefix := byte(0, mload(ptr))
        }

        if (prefix <= 0x7f) {
            // Single byte.

            return (0, 1, RLPItemType.DATA_ITEM);
        } else if (prefix <= 0xb7) {
            // Short string.

            uint256 strLen = prefix - 0x80;

            require(_in.length > strLen, "Invalid RLP short string.");

            return (1, strLen, RLPItemType.DATA_ITEM);
        } else if (prefix <= 0xbf) {
            // Long string.
            uint256 lenOfStrLen = prefix - 0xb7;

            require(_in.length > lenOfStrLen, "Invalid RLP long string length.");

            uint256 strLen;
            assembly {
                // Pick out the string length.
                strLen := div(mload(add(ptr, 1)), exp(256, sub(32, lenOfStrLen)))
            }

            require(_in.length > lenOfStrLen + strLen, "Invalid RLP long string.");

            return (1 + lenOfStrLen, strLen, RLPItemType.DATA_ITEM);
        } else if (prefix <= 0xf7) {
            // Short list.
            uint256 listLen = prefix - 0xc0;

            require(_in.length > listLen, "Invalid RLP short list.");

            return (1, listLen, RLPItemType.LIST_ITEM);
        } else {
            // Long list.
            uint256 lenOfListLen = prefix - 0xf7;

            require(_in.length > lenOfListLen, "Invalid RLP long list length.");

            uint256 listLen;
            assembly {
                // Pick out the list length.
                listLen := div(mload(add(ptr, 1)), exp(256, sub(32, lenOfListLen)))
            }

            require(_in.length > lenOfListLen + listLen, "Invalid RLP long list.");

            return (1 + lenOfListLen, listLen, RLPItemType.LIST_ITEM);
        }
    }

    /**
     * Copies the bytes from a memory location.
     * @param _src Pointer to the location to read from.
     * @param _offset Offset to start reading from.
     * @param _length Number of bytes to read.
     * @return Copied bytes.
     */
    function _copy(
        uint256 _src,
        uint256 _offset,
        uint256 _length
    ) private pure returns (bytes memory) {
        bytes memory out = new bytes(_length);
        if (out.length == 0) {
            return out;
        }

        uint256 src = _src + _offset;
        uint256 dest;
        assembly {
            dest := add(out, 32)
        }

        // Copy over as many complete words as we can.
        for (uint256 i = 0; i < _length / 32; i++) {
            assembly {
                mstore(dest, mload(src))
            }

            src += 32;
            dest += 32;
        }

        // Pick out the remaining bytes.
        uint256 mask;
        unchecked {
            mask = 256**(32 - (_length % 32)) - 1;
        }

        assembly {
            mstore(dest, or(and(mload(src), not(mask)), and(mload(dest), mask)))
        }
        return out;
    }

    /**
     * Copies an RLP item into bytes.
     * @param _in RLP item to copy.
     * @return Copied bytes.
     */
    function _copy(RLPItem memory _in) private pure returns (bytes memory) {
        return _copy(_in.ptr, 0, _in.length);
    }
}


// File contracts/libraries/rlp/Lib_RLPWriter.sol

// : MIT
pragma solidity ^0.8.9;

/**
 * @title Lib_RLPWriter
 * @author Bakaoh (with modifications)
 */
library Lib_RLPWriter {
    /**********************
     * Internal Functions *
     **********************/

    /**
     * RLP encodes a byte string.
     * @param _in The byte string to encode.
     * @return The RLP encoded string in bytes.
     */
    function writeBytes(bytes memory _in) internal pure returns (bytes memory) {
        bytes memory encoded;

        if (_in.length == 1 && uint8(_in[0]) < 128) {
            encoded = _in;
        } else {
            encoded = abi.encodePacked(_writeLength(_in.length, 128), _in);
        }

        return encoded;
    }

    /**
     * RLP encodes a list of RLP encoded byte byte strings.
     * @param _in The list of RLP encoded byte strings.
     * @return The RLP encoded list of items in bytes.
     */
    function writeList(bytes[] memory _in) internal pure returns (bytes memory) {
        bytes memory list = _flatten(_in);
        return abi.encodePacked(_writeLength(list.length, 192), list);
    }

    /**
     * RLP encodes a string.
     * @param _in The string to encode.
     * @return The RLP encoded string in bytes.
     */
    function writeString(string memory _in) internal pure returns (bytes memory) {
        return writeBytes(bytes(_in));
    }

    /**
     * RLP encodes an address.
     * @param _in The address to encode.
     * @return The RLP encoded address in bytes.
     */
    function writeAddress(address _in) internal pure returns (bytes memory) {
        return writeBytes(abi.encodePacked(_in));
    }

    /**
     * RLP encodes a uint.
     * @param _in The uint256 to encode.
     * @return The RLP encoded uint256 in bytes.
     */
    function writeUint(uint256 _in) internal pure returns (bytes memory) {
        return writeBytes(_toBinary(_in));
    }

    /**
     * RLP encodes a bool.
     * @param _in The bool to encode.
     * @return The RLP encoded bool in bytes.
     */
    function writeBool(bool _in) internal pure returns (bytes memory) {
        bytes memory encoded = new bytes(1);
        encoded[0] = (_in ? bytes1(0x01) : bytes1(0x80));
        return encoded;
    }

    /*********************
     * Private Functions *
     *********************/

    /**
     * Encode the first byte, followed by the `len` in binary form if `length` is more than 55.
     * @param _len The length of the string or the payload.
     * @param _offset 128 if item is string, 192 if item is list.
     * @return RLP encoded bytes.
     */
    function _writeLength(uint256 _len, uint256 _offset) private pure returns (bytes memory) {
        bytes memory encoded;

        if (_len < 56) {
            encoded = new bytes(1);
            encoded[0] = bytes1(uint8(_len) + uint8(_offset));
        } else {
            uint256 lenLen;
            uint256 i = 1;
            while (_len / i != 0) {
                lenLen++;
                i *= 256;
            }

            encoded = new bytes(lenLen + 1);
            encoded[0] = bytes1(uint8(lenLen) + uint8(_offset) + 55);
            for (i = 1; i <= lenLen; i++) {
                encoded[i] = bytes1(uint8((_len / (256**(lenLen - i))) % 256));
            }
        }

        return encoded;
    }

    /**
     * Encode integer in big endian binary form with no leading zeroes.
     * @notice TODO: This should be optimized with assembly to save gas costs.
     * @param _x The integer to encode.
     * @return RLP encoded bytes.
     */
    function _toBinary(uint256 _x) private pure returns (bytes memory) {
        bytes memory b = abi.encodePacked(_x);

        uint256 i = 0;
        for (; i < 32; i++) {
            if (b[i] != 0) {
                break;
            }
        }

        bytes memory res = new bytes(32 - i);
        for (uint256 j = 0; j < res.length; j++) {
            res[j] = b[i++];
        }

        return res;
    }

    /**
     * Copies a piece of memory to another location.
     * @notice From: https://github.com/Arachnid/solidity-stringutils/blob/master/src/strings.sol.
     * @param _dest Destination location.
     * @param _src Source location.
     * @param _len Length of memory to copy.
     */
    function _memcpy(
        uint256 _dest,
        uint256 _src,
        uint256 _len
    ) private pure {
        uint256 dest = _dest;
        uint256 src = _src;
        uint256 len = _len;

        for (; len >= 32; len -= 32) {
            assembly {
                mstore(dest, mload(src))
            }
            dest += 32;
            src += 32;
        }

        uint256 mask;
        unchecked {
            mask = 256**(32 - len) - 1;
        }
        assembly {
            let srcpart := and(mload(src), not(mask))
            let destpart := and(mload(dest), mask)
            mstore(dest, or(destpart, srcpart))
        }
    }

    /**
     * Flattens a list of byte strings into one byte string.
     * @notice From: https://github.com/sammayo/solidity-rlp-encoder/blob/master/RLPEncode.sol.
     * @param _list List of byte strings to flatten.
     * @return The flattened byte string.
     */
    function _flatten(bytes[] memory _list) private pure returns (bytes memory) {
        if (_list.length == 0) {
            return new bytes(0);
        }

        uint256 len;
        uint256 i = 0;
        for (; i < _list.length; i++) {
            len += _list[i].length;
        }

        bytes memory flattened = new bytes(len);
        uint256 flattenedPtr;
        assembly {
            flattenedPtr := add(flattened, 0x20)
        }

        for (i = 0; i < _list.length; i++) {
            bytes memory item = _list[i];

            uint256 listPtr;
            assembly {
                listPtr := add(item, 0x20)
            }

            _memcpy(flattenedPtr, listPtr, item.length);
            flattenedPtr += _list[i].length;
        }

        return flattened;
    }
}


// File contracts/libraries/utils/Lib_BytesUtils.sol

// : MIT
pragma solidity ^0.8.9;

/**
 * @title Lib_BytesUtils
 */
library Lib_BytesUtils {
    /**********************
     * Internal Functions *
     **********************/

    function slice(
        bytes memory _bytes,
        uint256 _start,
        uint256 _length
    ) internal pure returns (bytes memory) {
        require(_length + 31 >= _length, "slice_overflow");
        require(_start + _length >= _start, "slice_overflow");
        require(_bytes.length >= _start + _length, "slice_outOfBounds");

        bytes memory tempBytes;

        assembly {
            switch iszero(_length)
            case 0 {
                // Get a location of some free memory and store it in tempBytes as
                // Solidity does for memory variables.
                tempBytes := mload(0x40)

                // The first word of the slice result is potentially a partial
                // word read from the original array. To read it, we calculate
                // the length of that partial word and start copying that many
                // bytes into the array. The first word we copy will start with
                // data we don't care about, but the last `lengthmod` bytes will
                // land at the beginning of the contents of the new array. When
                // we're done copying, we overwrite the full first word with
                // the actual length of the slice.
                let lengthmod := and(_length, 31)

                // The multiplication in the next line is necessary
                // because when slicing multiples of 32 bytes (lengthmod == 0)
                // the following copy loop was copying the origin's length
                // and then ending prematurely not copying everything it should.
                let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod)))
                let end := add(mc, _length)

                for {
                    // The multiplication in the next line has the same exact purpose
                    // as the one above.
                    let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start)
                } lt(mc, end) {
                    mc := add(mc, 0x20)
                    cc := add(cc, 0x20)
                } {
                    mstore(mc, mload(cc))
                }

                mstore(tempBytes, _length)

                //update free-memory pointer
                //allocating the array padded to 32 bytes like the compiler does now
                mstore(0x40, and(add(mc, 31), not(31)))
            }
            //if we want a zero-length slice let's just return a zero-length array
            default {
                tempBytes := mload(0x40)

                //zero out the 32 bytes slice we are about to return
                //we need to do it because Solidity does not garbage collect
                mstore(tempBytes, 0)

                mstore(0x40, add(tempBytes, 0x20))
            }
        }

        return tempBytes;
    }

    function slice(bytes memory _bytes, uint256 _start) internal pure returns (bytes memory) {
        if (_start >= _bytes.length) {
            return bytes("");
        }

        return slice(_bytes, _start, _bytes.length - _start);
    }

    function toBytes32(bytes memory _bytes) internal pure returns (bytes32) {
        if (_bytes.length < 32) {
            bytes32 ret;
            assembly {
                ret := mload(add(_bytes, 32))
            }
            return ret;
        }

        return abi.decode(_bytes, (bytes32)); // will truncate if input length > 32 bytes
    }

    function toUint256(bytes memory _bytes) internal pure returns (uint256) {
        return uint256(toBytes32(_bytes));
    }

    function toNibbles(bytes memory _bytes) internal pure returns (bytes memory) {
        bytes memory nibbles = new bytes(_bytes.length * 2);

        for (uint256 i = 0; i < _bytes.length; i++) {
            nibbles[i * 2] = _bytes[i] >> 4;
            nibbles[i * 2 + 1] = bytes1(uint8(_bytes[i]) % 16);
        }

        return nibbles;
    }

    function fromNibbles(bytes memory _bytes) internal pure returns (bytes memory) {
        bytes memory ret = new bytes(_bytes.length / 2);

        for (uint256 i = 0; i < ret.length; i++) {
            ret[i] = (_bytes[i * 2] << 4) | (_bytes[i * 2 + 1]);
        }

        return ret;
    }

    function equal(bytes memory _bytes, bytes memory _other) internal pure returns (bool) {
        return keccak256(_bytes) == keccak256(_other);
    }
}


// File contracts/libraries/utils/Lib_Bytes32Utils.sol

// : MIT
pragma solidity ^0.8.9;

/**
 * @title Lib_Byte32Utils
 */
library Lib_Bytes32Utils {
    /**********************
     * Internal Functions *
     **********************/

    /**
     * Converts a bytes32 value to a boolean. Anything non-zero will be converted to "true."
     * @param _in Input bytes32 value.
     * @return Bytes32 as a boolean.
     */
    function toBool(bytes32 _in) internal pure returns (bool) {
        return _in != 0;
    }

    /**
     * Converts a boolean to a bytes32 value.
     * @param _in Input boolean value.
     * @return Boolean as a bytes32.
     */
    function fromBool(bool _in) internal pure returns (bytes32) {
        return bytes32(uint256(_in ? 1 : 0));
    }

    /**
     * Converts a bytes32 value to an address. Takes the *last* 20 bytes.
     * @param _in Input bytes32 value.
     * @return Bytes32 as an address.
     */
    function toAddress(bytes32 _in) internal pure returns (address) {
        return address(uint160(uint256(_in)));
    }

    /**
     * Converts an address to a bytes32.
     * @param _in Input address value.
     * @return Address as a bytes32.
     */
    function fromAddress(address _in) internal pure returns (bytes32) {
        return bytes32(uint256(uint160(_in)));
    }
}


// File contracts/libraries/codec/Lib_OVMCodec.sol

// : MIT
pragma solidity ^0.8.9;

/* Library Imports */




/**
 * @title Lib_OVMCodec
 */
library Lib_OVMCodec {
    /*********
     * Enums *
     *********/

    enum QueueOrigin {
        SEQUENCER_QUEUE,
        L1TOL2_QUEUE
    }

    /***********
     * Structs *
     ***********/

    struct EVMAccount {
        uint256 nonce;
        uint256 balance;
        bytes32 storageRoot;
        bytes32 codeHash;
    }

    struct ChainBatchHeader {
        uint256 batchIndex;
        bytes32 batchRoot;
        uint256 batchSize;
        uint256 prevTotalElements;
        bytes extraData;
    }

    struct ChainInclusionProof {
        uint256 index;
        bytes32[] siblings;
    }

    struct Transaction {
        uint256 timestamp;
        uint256 blockNumber;
        QueueOrigin l1QueueOrigin;
        address l1TxOrigin;
        address entrypoint;
        uint256 gasLimit;
        bytes data;
    }

    struct TransactionChainElement {
        bool isSequenced;
        uint256 queueIndex; // QUEUED TX ONLY
        uint256 timestamp; // SEQUENCER TX ONLY
        uint256 blockNumber; // SEQUENCER TX ONLY
        bytes txData; // SEQUENCER TX ONLY
    }

    struct QueueElement {
        bytes32 transactionHash;
        uint40 timestamp;
        uint40 blockNumber;
    }

    /**********************
     * Internal Functions *
     **********************/

    /**
     * Encodes a standard OVM transaction.
     * @param _transaction OVM transaction to encode.
     * @return Encoded transaction bytes.
     */
    function encodeTransaction(Transaction memory _transaction)
        internal
        pure
        returns (bytes memory)
    {
        return
            abi.encodePacked(
                _transaction.timestamp,
                _transaction.blockNumber,
                _transaction.l1QueueOrigin,
                _transaction.l1TxOrigin,
                _transaction.entrypoint,
                _transaction.gasLimit,
                _transaction.data
            );
    }

    /**
     * Hashes a standard OVM transaction.
     * @param _transaction OVM transaction to encode.
     * @return Hashed transaction
     */
    function hashTransaction(Transaction memory _transaction) internal pure returns (bytes32) {
        return keccak256(encodeTransaction(_transaction));
    }

    /**
     * @notice Decodes an RLP-encoded account state into a useful struct.
     * @param _encoded RLP-encoded account state.
     * @return Account state struct.
     */
    function decodeEVMAccount(bytes memory _encoded) internal pure returns (EVMAccount memory) {
        Lib_RLPReader.RLPItem[] memory accountState = Lib_RLPReader.readList(_encoded);

        return
            EVMAccount({
                nonce: Lib_RLPReader.readUint256(accountState[0]),
                balance: Lib_RLPReader.readUint256(accountState[1]),
                storageRoot: Lib_RLPReader.readBytes32(accountState[2]),
                codeHash: Lib_RLPReader.readBytes32(accountState[3])
            });
    }

    /**
     * Calculates a hash for a given batch header.
     * @param _batchHeader Header to hash.
     * @return Hash of the header.
     */
    function hashBatchHeader(Lib_OVMCodec.ChainBatchHeader memory _batchHeader)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    _batchHeader.batchRoot,
                    _batchHeader.batchSize,
                    _batchHeader.prevTotalElements,
                    _batchHeader.extraData
                )
            );
    }
}


// File contracts/L1/rollup/IChainStorageContainer.sol

// : MIT
pragma solidity >0.5.0 <0.9.0;

/**
 * @title IChainStorageContainer
 */
interface IChainStorageContainer {
    /********************
     * Public Functions *
     ********************/

    /**
     * Sets the container's global metadata field. We're using `bytes27` here because we use five
     * bytes to maintain the length of the underlying data structure, meaning we have an extra
     * 27 bytes to store arbitrary data.
     * @param _globalMetadata New global metadata to set.
     */
    function setGlobalMetadata(bytes27 _globalMetadata) external;

    /**
     * Retrieves the container's global metadata field.
     * @return Container global metadata field.
     */
    function getGlobalMetadata() external view returns (bytes27);

    /**
     * Retrieves the number of objects stored in the container.
     * @return Number of objects in the container.
     */
    function length() external view returns (uint256);

    /**
     * Pushes an object into the container.
     * @param _object A 32 byte value to insert into the container.
     */
    function push(bytes32 _object) external;

    /**
     * Pushes an object into the container. Function allows setting the global metadata since
     * we'll need to touch the "length" storage slot anyway, which also contains the global
     * metadata (it's an optimization).
     * @param _object A 32 byte value to insert into the container.
     * @param _globalMetadata New global metadata for the container.
     */
    function push(bytes32 _object, bytes27 _globalMetadata) external;

    /**
     * Set an object into the container. Function allows setting the global metadata since
     * we'll need to touch the "length" storage slot anyway, which also contains the global
     * metadata (it's an optimization).
     * @param _index position.
     * @param _object A 32 byte value to insert into the container.
     */  
    function setByChainId(
        uint256 _chainId,
        uint256 _index,
        bytes32 _object
    )
        external;
        
    /**
     * Retrieves an object from the container.
     * @param _index Index of the particular object to access.
     * @return 32 byte object value.
     */
    function get(uint256 _index) external view returns (bytes32);

    /**
     * Removes all objects after and including a given index.
     * @param _index Object index to delete from.
     */
    function deleteElementsAfterInclusive(uint256 _index) external;

    /**
     * Removes all objects after and including a given index. Also allows setting the global
     * metadata field.
     * @param _index Object index to delete from.
     * @param _globalMetadata New global metadata for the container.
     */
    function deleteElementsAfterInclusive(uint256 _index, bytes27 _globalMetadata) external;

    /**
     * Sets the container's global metadata field. We're using `bytes27` here because we use five
     * bytes to maintain the length of the underlying data structure, meaning we have an extra
     * 27 bytes to store arbitrary data.
     * @param _chainId identity for the l2 chain.
     * @param _globalMetadata New global metadata to set.
     */
    function setGlobalMetadataByChainId(
        uint256 _chainId,
        bytes27 _globalMetadata
    )
        external;

    /**
     * Retrieves the container's global metadata field.
     * @param _chainId identity for the l2 chain.
     * @return Container global metadata field.
     */
    function getGlobalMetadataByChainId(
        uint256 _chainId
        )
        external
        view
        returns (
            bytes27
        );

    /**
     * Retrieves the number of objects stored in the container.
     * @param _chainId identity for the l2 chain.
     * @return Number of objects in the container.
     */
    function lengthByChainId(
        uint256 _chainId
        )
        external
        view
        returns (
            uint256
        );

    /**
     * Pushes an object into the container.
     * @param _chainId identity for the l2 chain.
     * @param _object A 32 byte value to insert into the container.
     */
    function pushByChainId(
        uint256 _chainId,
        bytes32 _object
    )
        external;

    /**
     * Pushes an object into the container. Function allows setting the global metadata since
     * we'll need to touch the "length" storage slot anyway, which also contains the global
     * metadata (it's an optimization).
     * @param _chainId identity for the l2 chain.
     * @param _object A 32 byte value to insert into the container.
     * @param _globalMetadata New global metadata for the container.
     */
    function pushByChainId(
        uint256 _chainId,
        bytes32 _object,
        bytes27 _globalMetadata
    )
        external;

    /**
     * Retrieves an object from the container.
     * @param _chainId identity for the l2 chain.
     * @param _index Index of the particular object to access.
     * @return 32 byte object value.
     */
    function getByChainId(
        uint256 _chainId,
        uint256 _index
    )
        external
        view
        returns (
            bytes32
        );

    /**
     * Removes all objects after and including a given index.
     * @param _chainId identity for the l2 chain.
     * @param _index Object index to delete from.
     */
    function deleteElementsAfterInclusiveByChainId(
        uint256 _chainId,
        uint256 _index
    )
        external;
        
    /**
     * Removes all objects after and including a given index. Also allows setting the global
     * metadata field.
     * @param _chainId identity for the l2 chain.
     * @param _index Object index to delete from.
     * @param _globalMetadata New global metadata for the container.
     */
    function deleteElementsAfterInclusiveByChainId(
        uint256 _chainId,
        uint256 _index,
        bytes27 _globalMetadata
    )
        external;
        
}


// File contracts/L1/rollup/ICanonicalTransactionChain.sol

// : MIT
pragma solidity >0.5.0 <0.9.0;

/* Library Imports */

/* Interface Imports */

/**
 * @title ICanonicalTransactionChain
 */
interface ICanonicalTransactionChain {
    /**********
     * Events *
     **********/
    event QueueGlobalMetadataSet(
        address _sender,
        uint256 _chainId,
        bytes27 _globalMetadata
    );
    
    event QueuePushed(
        address _sender,
        uint256 _chainId,
        Lib_OVMCodec.QueueElement _object
    );

    event QueueSetted(
        address _sender,
        uint256 _chainId,
        uint256 _index,
        Lib_OVMCodec.QueueElement _object
    );

    event QueueElementDeleted(
        address _sender,
        uint256 _chainId,
        uint256 _index,
        bytes27 _globalMetadata
    );

    event BatchesGlobalMetadataSet(
        address _sender,
        uint256 _chainId,
        bytes27 _globalMetadata
    );
    
    event BatchPushed(
        address _sender,
        uint256 _chainId,
        bytes32 _object,
        bytes27 _globalMetadata
    );

    event BatchSetted(
        address _sender,
        uint256 _chainId,
        uint256 _index,
        bytes32 _object
    );

    event BatchElementDeleted(
        address _sender,
        uint256 _chainId,
        uint256 _index,
        bytes27 _globalMetadata
    );

    event L2GasParamsUpdated(
        uint256 l2GasDiscountDivisor,
        uint256 enqueueGasCost,
        uint256 enqueueL2GasPrepaid
    );

    event TransactionEnqueued(
        uint256 _chainId,
        address indexed _l1TxOrigin,
        address indexed _target,
        uint256 _gasLimit,
        bytes _data,
        uint256 indexed _queueIndex,
        uint256 _timestamp
    );

    event QueueBatchAppended(
        uint256 _chainId,
        uint256 _startingQueueIndex,
        uint256 _numQueueElements,
        uint256 _totalElements
    );

    event SequencerBatchAppended(
        uint256 _chainId,
        uint256 _startingQueueIndex,
        uint256 _numQueueElements,
        uint256 _totalElements
    );

    event TransactionBatchAppended(
        uint256 _chainId,
        uint256 indexed _batchIndex,
        bytes32 _batchRoot,
        uint256 _batchSize,
        uint256 _prevTotalElements,
        bytes _extraData
    );

    /***********
     * Structs *
     ***********/

    struct BatchContext {
        uint256 numSequencedTransactions;
        uint256 numSubsequentQueueTransactions;
        uint256 timestamp;
        uint256 blockNumber;
    }

    /*******************************
     * Authorized Setter Functions *
     *******************************/

    /**
     * Allows the Burn Admin to update the parameters which determine the amount of gas to burn.
     * The value of enqueueL2GasPrepaid is immediately updated as well.
     */
    function setGasParams(uint256 _l2GasDiscountDivisor, uint256 _enqueueGasCost) external;

    /********************
     * Public Functions *
     ********************/

    /**
     * Accesses the batch storage container.
     * @return Reference to the batch storage container.
     */
    function batches() external view returns (IChainStorageContainer);

    /**
     * Accesses the queue storage container.
     * @return Reference to the queue storage container.
     */
    function queue() external view returns (IChainStorageContainer);

    /**
     * Retrieves the total number of elements submitted.
     * @return _totalElements Total submitted elements.
     */
    function getTotalElements() external view returns (uint256 _totalElements);

    /**
     * Retrieves the total number of batches submitted.
     * @return _totalBatches Total submitted batches.
     */
    function getTotalBatches() external view returns (uint256 _totalBatches);

    /**
     * Returns the index of the next element to be enqueued.
     * @return Index for the next queue element.
     */
    function getNextQueueIndex() external view returns (uint40);

    /**
     * Gets the queue element at a particular index.
     * @param _index Index of the queue element to access.
     * @return _element Queue element at the given index.
     */
    function getQueueElement(uint256 _index)
        external
        view
        returns (Lib_OVMCodec.QueueElement memory _element);

    /**
     * Returns the timestamp of the last transaction.
     * @return Timestamp for the last transaction.
     */
    function getLastTimestamp() external view returns (uint40);

    /**
     * Returns the blocknumber of the last transaction.
     * @return Blocknumber for the last transaction.
     */
    function getLastBlockNumber() external view returns (uint40);

    /**
     * Get the number of queue elements which have not yet been included.
     * @return Number of pending queue elements.
     */
    function getNumPendingQueueElements() external view returns (uint40);

    /**
     * Retrieves the length of the queue, including
     * both pending and canonical transactions.
     * @return Length of the queue.
     */
    function getQueueLength() external view returns (uint40);

    /**
     * Adds a transaction to the queue.
     * @param _target Target contract to send the transaction to.
     * @param _gasLimit Gas limit for the given transaction.
     * @param _data Transaction data.
     */
    function enqueue(
        address _target,
        uint256 _gasLimit,
        bytes memory _data
    ) external;

    /**
     * Allows the sequencer to append a batch of transactions.
     * @dev This function uses a custom encoding scheme for efficiency reasons.
     * .param _shouldStartAtElement Specific batch we expect to start appending to.
     * .param _totalElementsToAppend Total number of batch elements we expect to append.
     * .param _contexts Array of batch contexts.
     * .param _transactionDataFields Array of raw transaction data.
     */
    function appendSequencerBatch(
        // uint40 _shouldStartAtElement,
        // uint24 _totalElementsToAppend,
        // BatchContext[] _contexts,
        // bytes[] _transactionDataFields
    )
        external;
        
    //added chain id function
    
    /**
     * Retrieves the total number of elements submitted.
     * @param _chainId identity for the l2 chain.
     * @return _totalElements Total submitted elements.
     */
    function getTotalElementsByChainId(
        uint256 _chainId
        )
        external
        view
        returns (
            uint256 _totalElements
        );

    /**
     * Retrieves the total number of batches submitted.
     * @param _chainId identity for the l2 chain.
     * @return _totalBatches Total submitted batches.
     */
    function getTotalBatchesByChainId(
        uint256 _chainId
        )
        external
        view
        returns (
            uint256 _totalBatches
        );

    /**
     * Returns the index of the next element to be enqueued.
     * @param _chainId identity for the l2 chain.
     * @return Index for the next queue element.
     */
    function getNextQueueIndexByChainId(
        uint256 _chainId
        )
        external
        view
        returns (
            uint40
        );

    /**
     * Gets the queue element at a particular index.
     * @param _chainId identity for the l2 chain.
     * @param _index Index of the queue element to access.
     * @return _element Queue element at the given index.
     */
    function getQueueElementByChainId(
        uint256 _chainId,
        uint256 _index
    )
        external
        view
        returns (
            Lib_OVMCodec.QueueElement memory _element
        );

    /**
     * Returns the timestamp of the last transaction.
     * @param _chainId identity for the l2 chain.
     * @return Timestamp for the last transaction.
     */
    function getLastTimestampByChainId(
        uint256 _chainId
        )
        external
        view
        returns (
            uint40
        );

    /**
     * Returns the blocknumber of the last transaction.
     * @param _chainId identity for the l2 chain.
     * @return Blocknumber for the last transaction.
     */
    function getLastBlockNumberByChainId(
        uint256 _chainId
        )
        external
        view
        returns (
            uint40
        );

    /**
     * Get the number of queue elements which have not yet been included.
     * @param _chainId identity for the l2 chain.
     * @return Number of pending queue elements.
     */
    function getNumPendingQueueElementsByChainId(
        uint256 _chainId
        )
        external
        view
        returns (
            uint40
        );

    /**
     * Retrieves the length of the queue, including
     * both pending and canonical transactions.
     * @param _chainId identity for the l2 chain.
     * @return Length of the queue.
     */
    function getQueueLengthByChainId(
        uint256 _chainId
        )
        external
        view
        returns (
            uint40
        );


    /**
     * Adds a transaction to the queue.
     * @param _chainId identity for the l2 chain.
     * @param _target Target contract to send the transaction to.
     * @param _gasLimit Gas limit for the given transaction.
     * @param _data Transaction data.
     */
    function enqueueByChainId(
        uint256 _chainId,
        address _target,
        uint256 _gasLimit,
        bytes memory _data
    )
        external;
        
    /**
     * Allows the sequencer to append a batch of transactions.
     * @dev This function uses a custom encoding scheme for efficiency reasons.
     * .param _chainId identity for the l2 chain.
     * .param _shouldStartAtElement Specific batch we expect to start appending to.
     * .param _totalElementsToAppend Total number of batch elements we expect to append.
     * .param _contexts Array of batch contexts.
     * .param _transactionDataFields Array of raw transaction data.
     */
    function appendSequencerBatchByChainId(
        // uint256 _chainId,
        // uint40 _shouldStartAtElement,
        // uint24 _totalElementsToAppend,
        // BatchContext[] _contexts,
        // bytes[] _transactionDataFields
    )
        external;
    
    function pushQueueByChainId(
        uint256 _chainId,
        Lib_OVMCodec.QueueElement calldata _object
    )
        external;

    function setQueueByChainId(
        uint256 _chainId,
        uint256 _index,
        Lib_OVMCodec.QueueElement calldata _object
    )
        external;

    function setBatchGlobalMetadataByChainId(
        uint256 _chainId,
        bytes27 _globalMetadata
    )
        external;
    
    function getBatchGlobalMetadataByChainId(uint256 _chainId)
        external
        view
        returns (
            bytes27
        );
        
    function lengthBatchByChainId(uint256 _chainId)
        external
        view
        returns (
            uint256
        );
        
    function pushBatchByChainId(
        uint256 _chainId,
        bytes32 _object,
        bytes27 _globalMetadata
    )
        external;
    
    function setBatchByChainId(
        uint256 _chainId,
        uint256 _index,
        bytes32 _object
    )
        external;
        
    function getBatchByChainId(
        uint256 _chainId,
        uint256 _index
    )
        external
        view
        returns (
            bytes32
        );
        
    function deleteBatchElementsAfterInclusiveByChainId(
        uint256 _chainId,
        uint256 _index,
        bytes27 _globalMetadata
    )
        external;
}


// File contracts/libraries/utils/Lib_MerkleTree.sol

// : MIT
pragma solidity ^0.8.9;

/**
 * @title Lib_MerkleTree
 * @author River Keefer
 */
library Lib_MerkleTree {
    /**********************
     * Internal Functions *
     **********************/

    /**
     * Calculates a merkle root for a list of 32-byte leaf hashes.  WARNING: If the number
     * of leaves passed in is not a power of two, it pads out the tree with zero hashes.
     * If you do not know the original length of elements for the tree you are verifying, then
     * this may allow empty leaves past _elements.length to pass a verification check down the line.
     * Note that the _elements argument is modified, therefore it must not be used again afterwards
     * @param _elements Array of hashes from which to generate a merkle root.
     * @return Merkle root of the leaves, with zero hashes for non-powers-of-two (see above).
     */
    function getMerkleRoot(bytes32[] memory _elements) internal pure returns (bytes32) {
        require(_elements.length > 0, "Lib_MerkleTree: Must provide at least one leaf hash.");

        if (_elements.length == 1) {
            return _elements[0];
        }

        uint256[16] memory defaults = [
            0x290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563,
            0x633dc4d7da7256660a892f8f1604a44b5432649cc8ec5cb3ced4c4e6ac94dd1d,
            0x890740a8eb06ce9be422cb8da5cdafc2b58c0a5e24036c578de2a433c828ff7d,
            0x3b8ec09e026fdc305365dfc94e189a81b38c7597b3d941c279f042e8206e0bd8,
            0xecd50eee38e386bd62be9bedb990706951b65fe053bd9d8a521af753d139e2da,
            0xdefff6d330bb5403f63b14f33b578274160de3a50df4efecf0e0db73bcdd3da5,
            0x617bdd11f7c0a11f49db22f629387a12da7596f9d1704d7465177c63d88ec7d7,
            0x292c23a9aa1d8bea7e2435e555a4a60e379a5a35f3f452bae60121073fb6eead,
            0xe1cea92ed99acdcb045a6726b2f87107e8a61620a232cf4d7d5b5766b3952e10,
            0x7ad66c0a68c72cb89e4fb4303841966e4062a76ab97451e3b9fb526a5ceb7f82,
            0xe026cc5a4aed3c22a58cbd3d2ac754c9352c5436f638042dca99034e83636516,
            0x3d04cffd8b46a874edf5cfae63077de85f849a660426697b06a829c70dd1409c,
            0xad676aa337a485e4728a0b240d92b3ef7b3c372d06d189322bfd5f61f1e7203e,
            0xa2fca4a49658f9fab7aa63289c91b7c7b6c832a6d0e69334ff5b0a3483d09dab,
            0x4ebfd9cd7bca2505f7bef59cc1c12ecc708fff26ae4af19abe852afe9e20c862,
            0x2def10d13dd169f550f578bda343d9717a138562e0093b380a1120789d53cf10
        ];

        // Reserve memory space for our hashes.
        bytes memory buf = new bytes(64);

        // We'll need to keep track of left and right siblings.
        bytes32 leftSibling;
        bytes32 rightSibling;

        // Number of non-empty nodes at the current depth.
        uint256 rowSize = _elements.length;

        // Current depth, counting from 0 at the leaves
        uint256 depth = 0;

        // Common sub-expressions
        uint256 halfRowSize; // rowSize / 2
        bool rowSizeIsOdd; // rowSize % 2 == 1

        while (rowSize > 1) {
            halfRowSize = rowSize / 2;
            rowSizeIsOdd = rowSize % 2 == 1;

            for (uint256 i = 0; i < halfRowSize; i++) {
                leftSibling = _elements[(2 * i)];
                rightSibling = _elements[(2 * i) + 1];
                assembly {
                    mstore(add(buf, 32), leftSibling)
                    mstore(add(buf, 64), rightSibling)
                }

                _elements[i] = keccak256(buf);
            }

            if (rowSizeIsOdd) {
                leftSibling = _elements[rowSize - 1];
                rightSibling = bytes32(defaults[depth]);
                assembly {
                    mstore(add(buf, 32), leftSibling)
                    mstore(add(buf, 64), rightSibling)
                }

                _elements[halfRowSize] = keccak256(buf);
            }

            rowSize = halfRowSize + (rowSizeIsOdd ? 1 : 0);
            depth++;
        }

        return _elements[0];
    }

    /**
     * Verifies a merkle branch for the given leaf hash.  Assumes the original length
     * of leaves generated is a known, correct input, and does not return true for indices
     * extending past that index (even if _siblings would be otherwise valid.)
     * @param _root The Merkle root to verify against.
     * @param _leaf The leaf hash to verify inclusion of.
     * @param _index The index in the tree of this leaf.
     * @param _siblings Array of sibline nodes in the inclusion proof, starting from depth 0
     * (bottom of the tree).
     * @param _totalLeaves The total number of leaves originally passed into.
     * @return Whether or not the merkle branch and leaf passes verification.
     */
    function verify(
        bytes32 _root,
        bytes32 _leaf,
        uint256 _index,
        bytes32[] memory _siblings,
        uint256 _totalLeaves
    ) internal pure returns (bool) {
        require(_totalLeaves > 0, "Lib_MerkleTree: Total leaves must be greater than zero.");

        require(_index < _totalLeaves, "Lib_MerkleTree: Index out of bounds.");

        require(
            _siblings.length == _ceilLog2(_totalLeaves),
            "Lib_MerkleTree: Total siblings does not correctly correspond to total leaves."
        );

        bytes32 computedRoot = _leaf;

        for (uint256 i = 0; i < _siblings.length; i++) {
            if ((_index & 1) == 1) {
                computedRoot = keccak256(abi.encodePacked(_siblings[i], computedRoot));
            } else {
                computedRoot = keccak256(abi.encodePacked(computedRoot, _siblings[i]));
            }

            _index >>= 1;
        }

        return _root == computedRoot;
    }

    /*********************
     * Private Functions *
     *********************/

    /**
     * Calculates the integer ceiling of the log base 2 of an input.
     * @param _in Unsigned input to calculate the log.
     * @return ceil(log_base_2(_in))
     */
    function _ceilLog2(uint256 _in) private pure returns (uint256) {
        require(_in > 0, "Lib_MerkleTree: Cannot compute ceil(log_2) of 0.");

        if (_in == 1) {
            return 0;
        }

        // Find the highest set bit (will be floor(log_2)).
        // Borrowed with <3 from https://github.com/ethereum/solidity-examples
        uint256 val = _in;
        uint256 highest = 0;
        for (uint256 i = 128; i >= 1; i >>= 1) {
            if (val & (((uint256(1) << i) - 1) << i) != 0) {
                highest += i;
                val >>= i;
            }
        }

        // Increment by one if this is not a perfect logarithm.
        if ((uint256(1) << highest) != _in) {
            highest += 1;
        }

        return highest;
    }
}


// File contracts/L1/rollup/IStateCommitmentChain.sol

// : MIT
pragma solidity >0.5.0 <0.9.0;

/* Library Imports */


/**
 * @title IStateCommitmentChain
 */
interface IStateCommitmentChain {
    /**********
     * Events *
     **********/

    event StateBatchAppended(
        uint256 _chainId,
        uint256 indexed _batchIndex,
        bytes32 _batchRoot,
        uint256 _batchSize,
        uint256 _prevTotalElements,
        bytes _extraData
    );

    event StateBatchDeleted(
        uint256 _chainId,
        uint256 indexed _batchIndex,
        bytes32 _batchRoot
    );


    /********************
     * Public Functions *
     ********************/
    
    function batches() external view returns (IChainStorageContainer);
    
    /**
     * Retrieves the total number of elements submitted.
     * @return _totalElements Total submitted elements.
     */
    function getTotalElements() external view returns (uint256 _totalElements);

    /**
     * Retrieves the total number of batches submitted.
     * @return _totalBatches Total submitted batches.
     */
    function getTotalBatches() external view returns (uint256 _totalBatches);

    /**
     * Retrieves the timestamp of the last batch submitted by the sequencer.
     * @return _lastSequencerTimestamp Last sequencer batch timestamp.
     */
    function getLastSequencerTimestamp() external view returns (uint256 _lastSequencerTimestamp);

    /**
     * Appends a batch of state roots to the chain.
     * @param _batch Batch of state roots.
     * @param _shouldStartAtElement Index of the element at which this batch should start.
     */
    function appendStateBatch(bytes32[] calldata _batch, uint256 _shouldStartAtElement) external;

    /**
     * Deletes all state roots after (and including) a given batch.
     * @param _batchHeader Header of the batch to start deleting from.
     */
    function deleteStateBatch(Lib_OVMCodec.ChainBatchHeader memory _batchHeader) external;

    /**
     * Verifies a batch inclusion proof.
     * @param _element Hash of the element to verify a proof for.
     * @param _batchHeader Header of the batch in which the element was included.
     * @param _proof Merkle inclusion proof for the element.
     */
    function verifyStateCommitment(
        bytes32 _element,
        Lib_OVMCodec.ChainBatchHeader memory _batchHeader,
        Lib_OVMCodec.ChainInclusionProof memory _proof
    ) external view returns (bool _verified);

    /**
     * Checks whether a given batch is still inside its fraud proof window.
     * @param _batchHeader Header of the batch to check.
     * @return _inside Whether or not the batch is inside the fraud proof window.
     */
    function insideFraudProofWindow(Lib_OVMCodec.ChainBatchHeader memory _batchHeader)
        external
        view
        returns (
            bool _inside
        );
        
        
        
     /********************
     * chain id added func *
     ********************/

    /**
     * Retrieves the total number of elements submitted.
     * @param _chainId identity for the l2 chain.
     * @return _totalElements Total submitted elements.
     */
    function getTotalElementsByChainId(uint256 _chainId)
        external
        view
        returns (
            uint256 _totalElements
        );

    /**
     * Retrieves the total number of batches submitted.
     * @param _chainId identity for the l2 chain.
     * @return _totalBatches Total submitted batches.
     */
    function getTotalBatchesByChainId(uint256 _chainId)
        external
        view
        returns (
            uint256 _totalBatches
        );

    /**
     * Retrieves the timestamp of the last batch submitted by the sequencer.
     * @param _chainId identity for the l2 chain.
     * @return _lastSequencerTimestamp Last sequencer batch timestamp.
     */
    function getLastSequencerTimestampByChainId(uint256 _chainId)
        external
        view
        returns (
            uint256 _lastSequencerTimestamp
        );
        
    /**
     * Appends a batch of state roots to the chain.
     * @param _chainId identity for the l2 chain.
     * @param _batch Batch of state roots.
     * @param _shouldStartAtElement Index of the element at which this batch should start.
     */
    function appendStateBatchByChainId(
        uint256 _chainId,
        bytes32[] calldata _batch,
        uint256 _shouldStartAtElement,
        string calldata proposer
    )
        external;

    /**
     * Deletes all state roots after (and including) a given batch.
     * @param _chainId identity for the l2 chain.
     * @param _batchHeader Header of the batch to start deleting from.
     */
    function deleteStateBatchByChainId(
        uint256 _chainId,
        Lib_OVMCodec.ChainBatchHeader memory _batchHeader
    )
        external;

    /**
     * Verifies a batch inclusion proof.
     * @param _chainId identity for the l2 chain.
     * @param _element Hash of the element to verify a proof for.
     * @param _batchHeader Header of the batch in which the element was included.
     * @param _proof Merkle inclusion proof for the element.
     */
    function verifyStateCommitmentByChainId(
        uint256 _chainId,
        bytes32 _element,
        Lib_OVMCodec.ChainBatchHeader memory _batchHeader,
        Lib_OVMCodec.ChainInclusionProof memory _proof
    )
        external
        view
        returns (
            bool _verified
        );

    /**
     * Checks whether a given batch is still inside its fraud proof window.
     * @param _chainId identity for the l2 chain.
     * @param _batchHeader Header of the batch to check.
     * @return _inside Whether or not the batch is inside the fraud proof window.
     */
    function insideFraudProofWindowByChainId(
        uint256 _chainId,
        Lib_OVMCodec.ChainBatchHeader memory _batchHeader
    )
        external
        view
        returns (
            bool _inside
        );
}


// File contracts/L1/verification/IBondManager.sol

// : MIT
pragma solidity ^0.8.9;

/**
 * @title IBondManager
 */
interface IBondManager {
    /********************
     * Public Functions *
     ********************/

    function isCollateralized(address _who) external view returns (bool);
    function isCollateralizedByChainId(
        uint256 _chainId,
        address _who,
        address _prop
    ) external view returns (bool);
}


// File contracts/L1/rollup/StateCommitmentChain.sol

// : MIT
pragma solidity ^0.8.9;

/* Library Imports */



/* Interface Imports */




/**
 * @title StateCommitmentChain
 * @dev The State Commitment Chain (SCC) contract contains a list of proposed state roots which
 * Proposers assert to be a result of each transaction in the Canonical Transaction Chain (CTC).
 * Elements here have a 1:1 correspondence with transactions in the CTC, and should be the unique
 * state root calculated off-chain by applying the canonical transactions one by one.
 *
 * Runtime target: EVM
 */
contract StateCommitmentChain is IStateCommitmentChain, Lib_AddressResolver {

    /*************
     * Constants *
     *************/

    uint256 public FRAUD_PROOF_WINDOW;
    uint256 public SEQUENCER_PUBLISH_WINDOW;
    
    
    uint256 public DEFAULT_CHAINID = 1088;


    /***************
     * Constructor *
     ***************/

    /**
     * @param _libAddressManager Address of the Address Manager.
     */
    constructor(
        address _libAddressManager,
        uint256 _fraudProofWindow,
        uint256 _sequencerPublishWindow
    )
        Lib_AddressResolver(_libAddressManager)
    {
        FRAUD_PROOF_WINDOW = _fraudProofWindow;
        SEQUENCER_PUBLISH_WINDOW = _sequencerPublishWindow;
    }
    
    function setFraudProofWindow (uint256 window) public {
        require (msg.sender == resolve("METIS_MANAGER"), "now allowed");
        FRAUD_PROOF_WINDOW = window;
    }

    /********************
     * Public Functions *
     ********************/

    /**
     * Accesses the batch storage container.
     * @return Reference to the batch storage container.
     */
    function batches() public view returns (IChainStorageContainer) {
        return IChainStorageContainer(resolve("ChainStorageContainer-SCC-batches"));
    }

    /**
     * @inheritdoc IStateCommitmentChain
     */
    function getTotalElements() public view returns (uint256 _totalElements) {
        return getTotalElementsByChainId(DEFAULT_CHAINID);
    }

    /**
     * @inheritdoc IStateCommitmentChain
     */
    function getTotalBatches() public view returns (uint256 _totalBatches) {
        return getTotalBatchesByChainId(DEFAULT_CHAINID);
    }

    /**
     * @inheritdoc IStateCommitmentChain
     */
    function getLastSequencerTimestamp() public view returns (uint256 _lastSequencerTimestamp) {
        return getLastSequencerTimestampByChainId(DEFAULT_CHAINID);
    }

    /**
     * @inheritdoc IStateCommitmentChain
     */
    function appendStateBatch(bytes32[] memory _batch, uint256 _shouldStartAtElement) public {
        require (1==0, "don't use");
        //appendStateBatchByChainId(DEFAULT_CHAINID, _batch, _shouldStartAtElement, "1088_MVM_Proposer");
    }
    
    /**
     * @inheritdoc IStateCommitmentChain
     */
    function deleteStateBatch(Lib_OVMCodec.ChainBatchHeader memory _batchHeader) public {
        deleteStateBatchByChainId(DEFAULT_CHAINID, _batchHeader);
    }

    /**
     * @inheritdoc IStateCommitmentChain
     */
    function verifyStateCommitment(
        bytes32 _element,
        Lib_OVMCodec.ChainBatchHeader memory _batchHeader,
        Lib_OVMCodec.ChainInclusionProof memory _proof
    ) public view returns (bool) {
        return verifyStateCommitmentByChainId(DEFAULT_CHAINID, _element, _batchHeader, _proof);
    }

    /**
     * @inheritdoc IStateCommitmentChain
     */
    function insideFraudProofWindow(Lib_OVMCodec.ChainBatchHeader memory _batchHeader)
        public
        view
        returns (bool _inside)
    {
        (uint256 timestamp, ) = abi.decode(_batchHeader.extraData, (uint256, address));

        require(timestamp != 0, "Batch header timestamp cannot be zero");
        return (timestamp + FRAUD_PROOF_WINDOW) > block.timestamp;
    }

    /**********************
     * Internal Functions *
     **********************/

    /**
     * Parses the batch context from the extra data.
     * @return Total number of elements submitted.
     * @return Timestamp of the last batch submitted by the sequencer.
     */
    function _getBatchExtraData() internal view returns (uint40, uint40) {
        bytes27 extraData = batches().getGlobalMetadata();

        // solhint-disable max-line-length
        uint40 totalElements;
        uint40 lastSequencerTimestamp;
        assembly {
            extraData := shr(40, extraData)
            totalElements := and(
                extraData,
                0x000000000000000000000000000000000000000000000000000000FFFFFFFFFF
            )
            lastSequencerTimestamp := shr(
                40,
                and(extraData, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000000000)
            )
        }
        // solhint-enable max-line-length

        return (totalElements, lastSequencerTimestamp);
    }

    /**
     * Encodes the batch context for the extra data.
     * @param _totalElements Total number of elements submitted.
     * @param _lastSequencerTimestamp Timestamp of the last batch submitted by the sequencer.
     * @return Encoded batch context.
     */
    function _makeBatchExtraData(uint40 _totalElements, uint40 _lastSequencerTimestamp)
        internal
        pure
        returns (bytes27)
    {
        bytes27 extraData;
        assembly {
            extraData := _totalElements
            extraData := or(extraData, shl(40, _lastSequencerTimestamp))
            extraData := shl(40, extraData)
        }

        return extraData;
    }

    /**
     * @inheritdoc IStateCommitmentChain
     */
    function getTotalElementsByChainId(
        uint256 _chainId
        )
        override
        public
        view
        returns (
            uint256 _totalElements
        )
    {
        (uint40 totalElements, ) = _getBatchExtraDataByChainId(_chainId);
        return uint256(totalElements);
    }

    /**
     * @inheritdoc IStateCommitmentChain
     */
    function getTotalBatchesByChainId(
        uint256 _chainId
        )
        override
        public
        view
        returns (
            uint256 _totalBatches
        )
    {
        return batches().lengthByChainId(_chainId);
    }

    /**
     * @inheritdoc IStateCommitmentChain
     */
    function getLastSequencerTimestampByChainId(
        uint256 _chainId
        )
        override
        public
        view
        returns (
            uint256 _lastSequencerTimestamp
        )
    {
        (, uint40 lastSequencerTimestamp) = _getBatchExtraDataByChainId(_chainId);
        return uint256(lastSequencerTimestamp);
    }
    
    /**
     * @inheritdoc IStateCommitmentChain
     */
    function appendStateBatchByChainId(
        uint256 _chainId,
        bytes32[] calldata _batch,
        uint256 _shouldStartAtElement,
        string calldata proposer
    )
        override
        public
    {
        // Fail fast in to make sure our batch roots aren't accidentally made fraudulent by the
        // publication of batches by some other user.
        require(
            _shouldStartAtElement == getTotalElementsByChainId(_chainId),
            "Actual batch start index does not match expected start index."
        );
        
        address proposerAddr = resolve(proposer);

        // Proposers must have previously staked at the BondManager
        require(
            IBondManager(resolve("BondManager")).isCollateralizedByChainId(_chainId,msg.sender,proposerAddr),
            "Proposer does not have enough collateral posted"
        );

        require(
            _batch.length > 0,
            "Cannot submit an empty state batch."
        );

        require(
            getTotalElementsByChainId(_chainId) + _batch.length <= ICanonicalTransactionChain(resolve("CanonicalTransactionChain")).getTotalElementsByChainId(_chainId),
            "Number of state roots cannot exceed the number of canonical transactions."
        );

        // Pass the block's timestamp and the publisher of the data
        // to be used in the fraud proofs
        _appendBatchByChainId(
            _chainId,
            _batch,
            abi.encode(block.timestamp, msg.sender),
            proposerAddr
        );
    }

    /**
     * @inheritdoc IStateCommitmentChain
     */
    function deleteStateBatchByChainId(
        uint256 _chainId,
        Lib_OVMCodec.ChainBatchHeader memory _batchHeader
    )
        override
        public
    {
        require(
            msg.sender == resolve(
              string(abi.encodePacked(uint2str(_chainId),"_MVM_FraudVerifier"))),
            "State batches can only be deleted by the MVM_FraudVerifier."
        );

        require(
            _isValidBatchHeaderByChainId(_chainId,_batchHeader),
            "Invalid batch header."
        );

        require(
            insideFraudProofWindowByChainId(_chainId,_batchHeader),
            "State batches can only be deleted within the fraud proof window."
        );

        _deleteBatchByChainId(_chainId,_batchHeader);
    }

    /**
     * @inheritdoc IStateCommitmentChain
     */
    function verifyStateCommitmentByChainId(
        uint256 _chainId,
        bytes32 _element,
        Lib_OVMCodec.ChainBatchHeader memory _batchHeader,
        Lib_OVMCodec.ChainInclusionProof memory _proof
    )
        override
        public
        view
        returns (
            bool
        )
    {
        require(
            _isValidBatchHeaderByChainId(_chainId,_batchHeader),
            "Invalid batch header."
        );

        require(
            Lib_MerkleTree.verify(
                _batchHeader.batchRoot,
                _element,
                _proof.index,
                _proof.siblings,
                _batchHeader.batchSize
            ),
            "Invalid inclusion proof."
        );

        return true;
    }

    /**
     * @inheritdoc IStateCommitmentChain
     */
    function insideFraudProofWindowByChainId(
        uint256 _chainId,
        Lib_OVMCodec.ChainBatchHeader memory _batchHeader
    )
        override
        public
        view
        returns (
            bool _inside
        )
    {
        (uint256 timestamp,) = abi.decode(
            _batchHeader.extraData,
            (uint256, address)
        );

        require(
            timestamp != 0,
            "Batch header timestamp cannot be zero"
        );
        return timestamp + FRAUD_PROOF_WINDOW > block.timestamp;
    }
    

    /**********************
     * Internal Functions *
     **********************/

    /**
     * Parses the batch context from the extra data.
     * @return Total number of elements submitted.
     * @return Timestamp of the last batch submitted by the sequencer.
     */
    function _getBatchExtraDataByChainId(
        uint256 _chainId
        )
        internal
        view
        returns (
            uint40,
            uint40
        )
    {
        bytes27 extraData = batches().getGlobalMetadataByChainId(_chainId);

        uint40 totalElements;
        uint40 lastSequencerTimestamp;
        assembly {
            extraData              := shr(40, extraData)
            totalElements          :=         and(extraData, 0x000000000000000000000000000000000000000000000000000000FFFFFFFFFF)
            lastSequencerTimestamp := shr(40, and(extraData, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000000000))
        }

        return (
            totalElements,
            lastSequencerTimestamp
        );
    }

    /**
     * Encodes the batch context for the extra data.
     * @param _totalElements Total number of elements submitted.
     * @param _lastSequencerTimestamp Timestamp of the last batch submitted by the sequencer.
     * @return Encoded batch context.
     */
    function _makeBatchExtraDataByChainId(
        uint256 _chainId,
        uint40 _totalElements,
        uint40 _lastSequencerTimestamp
    )
        internal
        pure
        returns (
            bytes27
        )
    {
        bytes27 extraData;
        assembly {
            extraData := _totalElements
            extraData := or(extraData, shl(40, _lastSequencerTimestamp))
            extraData := shl(40, extraData)
        }

        return extraData;
    }

    /**
     * Appends a batch to the chain.
     * @param _batch Elements within the batch.
     * @param _extraData Any extra data to append to the batch.
     */
    function _appendBatchByChainId(
        uint256 _chainId,
        bytes32[] memory _batch,
        bytes memory _extraData,
        address proposer
    )
        internal
    {
        (uint40 totalElements, uint40 lastSequencerTimestamp) = _getBatchExtraDataByChainId(_chainId);

        if (msg.sender == proposer) {
            lastSequencerTimestamp = uint40(block.timestamp);
        } else {
            // We keep track of the last batch submitted by the sequencer so there's a window in
            // which only the sequencer can publish state roots. A window like this just reduces
            // the chance of "system breaking" state roots being published while we're still in
            // testing mode. This window should be removed or significantly reduced in the future.
            require(
                lastSequencerTimestamp + SEQUENCER_PUBLISH_WINDOW < block.timestamp,
                "Cannot publish state roots within the sequencer publication window."
            );
        }

        // For efficiency reasons getMerkleRoot modifies the `_batch` argument in place
        // while calculating the root hash therefore any arguments passed to it must not
        // be used again afterwards
        Lib_OVMCodec.ChainBatchHeader memory batchHeader = Lib_OVMCodec.ChainBatchHeader({
            batchIndex: getTotalBatchesByChainId(_chainId),
            batchRoot: Lib_MerkleTree.getMerkleRoot(_batch),
            batchSize: _batch.length,
            prevTotalElements: totalElements,
            extraData: _extraData
        });

        emit StateBatchAppended(
            _chainId,
            batchHeader.batchIndex,
            batchHeader.batchRoot,
            batchHeader.batchSize,
            batchHeader.prevTotalElements,
            batchHeader.extraData
        );

        batches().pushByChainId(
            _chainId,
            Lib_OVMCodec.hashBatchHeader(batchHeader),
            _makeBatchExtraDataByChainId(
                _chainId,
                uint40(batchHeader.prevTotalElements + batchHeader.batchSize),
                lastSequencerTimestamp
            )
        );
    }

    /**
     * Removes a batch and all subsequent batches from the chain.
     * @param _batchHeader Header of the batch to remove.
     */
    function _deleteBatchByChainId(
        uint256 _chainId,
        Lib_OVMCodec.ChainBatchHeader memory _batchHeader
    )
        internal
    {
        require(
            _batchHeader.batchIndex < batches().lengthByChainId(_chainId),
            "Invalid batch index."
        );

        require(
            _isValidBatchHeaderByChainId(_chainId,_batchHeader),
            "Invalid batch header."
        );

        batches().deleteElementsAfterInclusiveByChainId(
            _chainId,
            _batchHeader.batchIndex,
            _makeBatchExtraDataByChainId(
                _chainId,
                uint40(_batchHeader.prevTotalElements),
                0
            )
        );

        emit StateBatchDeleted(
            _chainId,
            _batchHeader.batchIndex,
            _batchHeader.batchRoot
        );
    }

    /**
     * Checks that a batch header matches the stored hash for the given index.
     * @param _batchHeader Batch header to validate.
     * @return Whether or not the header matches the stored one.
     */
    function _isValidBatchHeaderByChainId(
        uint256 _chainId,
        Lib_OVMCodec.ChainBatchHeader memory _batchHeader
    )
        internal
        view
        returns (
            bool
        )
    {
        return Lib_OVMCodec.hashBatchHeader(_batchHeader) == batches().getByChainId(_chainId,_batchHeader.batchIndex);
    }
    
    function uint2str(uint _i) internal pure returns (string memory _uintAsString) {
        if (_i == 0) {
            return "0";
        }
        uint j = _i;
        uint len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len;
        while (_i != 0) {
            k = k-1;
            uint8 temp = (48 + uint8(_i - _i / 10 * 10));
            bytes1 b1 = bytes1(temp);
            bstr[k] = b1;
            _i /= 10;
        }
        return string(bstr);
    }
}


// File contracts/MVM/MVM_CanonicalTransaction.sol

// : MIT
pragma solidity ^0.8.9;

/* Library Imports */

/* Interface Imports */





contract MVM_CanonicalTransaction is iMVM_CanonicalTransaction, Lib_AddressResolver{
    /*************
     * Constants *
     *************/

    string constant public CONFIG_OWNER_KEY = "METIS_MANAGER";

    // lock seconds when begin to submit batch tx data slice
    uint256 constant public TXDATA_SUBMIT_TIMEOUT = 1800;

    /*************
     * Variables *
     *************/

    // submit tx data slice size (in bytes)
    uint256 public txDataSliceSize;
    // stake duration seconds for sequencer submit batch tx data
    uint256 public stakeSeqSeconds;
    // verifier stake base cost for a batch tx data requirement (in ETH)
    uint256 public stakeBaseCost;
    // submit tx data slice count (a whole tx batch)
    uint256 public txDataSliceCount;
    // submit tx batch size (in bytes)
    uint256 public txBatchSize;
    // verifier stake unit cost for a batch tx data requirement (in ETH)
    uint256 public stakeUnitCost;

    bool useWhiteList;

    /***************
     * Queue State *
     ***************/

    // white list
    mapping (address => bool) public whitelist;

    // mapping(address => uint256) private addressChains;

    // verifier stakes statistic
    mapping(address => uint256) private verifierStakes;

    // batch element information for validation queue
    mapping(uint256 => mapping(uint256 => BatchElement)) queueBatchElement;

    // tx data request stake queue
    mapping(uint256 => mapping(uint256 => TxDataRequestStake)) queueTxDataRequestStake;

    // tx data for verification queue
    mapping(uint256 => mapping(uint256 => TxDataSlice)) queueTxData;

    /***************
     * Constructor *
     ***************/

    constructor() Lib_AddressResolver(address(0)) {}

    /**********************
     * Function Modifiers *
     **********************/

    modifier onlyManager {
        require(
            msg.sender == resolve(CONFIG_OWNER_KEY),
            "MVM_CanonicalTransaction: Function can only be called by the METIS_MANAGER."
        );
        _;
    }

    modifier onlyWhitelisted {
        require(isWhiteListed(msg.sender), "only whitelisted verifiers can call");
        _;
    }

    /********************
     * Public Functions *
     ********************/
    /**
    receive() external payable {
        // msg.sender
        if (msg.sender == resolve('MVM_DiscountOracle')) {
            uint256 _chainId = getAddressChainId(msg.sender);
            if (_chainId > 0) {
                address _to = resolve(string(abi.encodePacked(uint2str(_chainId),"_MVM_Sequencer_Wrapper")));
                if (_to != address(0) && _to != address(this)) {
                    _to.call{value: msg.value}("");
                }
            }
        }
    }

    function setAddressChainId(address _address, uint256 _chainId)  override public onlyManager {
        require(_address != address(0), "address not available");
        require(_chainId > 0, "chainId not available");
        require(addressChains[_address] != _chainId, "no change");
        addressChains[_address] = _chainId;
    }

    function getAddressChainId(address _address) override public view returns (uint256) {
        return addressChains[_address];
    }
    */

    function setStakeBaseCost(uint256 _stakeBaseCost) override public onlyManager {
        // 1e16 = 0.01 ether
        // require(_stakeBaseCost >= 1e16, "stake base cost should gte 1e16");
        stakeBaseCost = _stakeBaseCost;
    }

    function getStakeBaseCost() override public view returns (uint256) {
        return stakeBaseCost;
    }

    function setStakeUnitCost(uint256 _stakeUnitCost) override public onlyManager {
        // 1e16 = 0.01 ether
        stakeUnitCost = _stakeUnitCost;
    }

    function getStakeUnitCost() override public view returns (uint256) {
        return stakeUnitCost;
    }

    function getStakeCostByBatch(uint256 _chainId, uint256 _batchIndex) override public view returns (uint256) {
        require(stakeBaseCost > 0, "stake base cost not config yet");
        require(queueBatchElement[_chainId][_batchIndex].txBatchTime > 0, "batch element does not exist");
        return stakeBaseCost + queueBatchElement[_chainId][_batchIndex].txBatchSize * stakeUnitCost;
    }

    function setTxDataSliceSize(uint256 _size) override public onlyManager {
        require(_size > 0, "slice size should gt 0");
        require(_size != txDataSliceSize, "slice size has not changed");
        txDataSliceSize = _size;
    }

    function getTxDataSliceSize() override public view returns (uint256) {
        return txDataSliceSize;
    }

    function setTxDataSliceCount(uint256 _count) override public onlyManager {
        require(_count > 0, "slice count should gt 0");
        require(_count != txDataSliceCount, "slice count has not changed");
        txDataSliceCount = _count;
    }

    function getTxDataSliceCount() override public view returns (uint256) {
        return txDataSliceCount;
    }

    function setTxBatchSize(uint256 _size) override public onlyManager {
        require(_size > 0, "batch size should gt 0");
        require(_size != txBatchSize, "batch size has not changed");
        txBatchSize = _size;
    }

    function getTxBatchSize() override public view returns (uint256) {
        return txBatchSize;
    }

    function setStakeSeqSeconds(uint256 _seconds) override public onlyManager {
        require(_seconds > 0, "seconds should gt 0");
        require(_seconds != stakeSeqSeconds, "seconds has not changed");
        stakeSeqSeconds = _seconds;
    }

    function getStakeSeqSeconds() override public view returns (uint256) {
        return stakeSeqSeconds;
    }

    function isWhiteListed(address _verifier) override public view returns(bool){
        return !useWhiteList || whitelist[_verifier];
    }

    function setWhiteList(address _verifier, bool _allowed) override public onlyManager {
        whitelist[_verifier] = _allowed;
        useWhiteList = true;
    }

    function disableWhiteList() override public onlyManager {
        useWhiteList = false;
    }

    function appendSequencerBatchByChainId() override public {
        uint256 _chainId;
        uint40 shouldStartAtElement;
        uint24 totalElementsToAppend;
        uint24 numContexts;
        uint256 batchTime;
        uint256 _dataSize;
        uint256 txSize;
        bytes32 root;
        assembly {
            _dataSize             := calldatasize()
            _chainId              := calldataload(4)
            shouldStartAtElement  := shr(216, calldataload(36))
            totalElementsToAppend := shr(232, calldataload(41))
            numContexts           := shr(232, calldataload(44))
        }
        require(
            msg.sender == resolve(string(abi.encodePacked(uint2str(_chainId),"_MVM_Sequencer_Wrapper"))),
            "Function can only be called by the Sequencer."
        );
        uint256 posTs =  47 + 16 * numContexts;
        if (_dataSize > posTs) {
            // when tx count = 0, there is no hash!
            // string len: [13]{milliseconds}-[1]{0}-[8]{sizeOfData}-[64]{hash}-[64]{root}
            uint256 posTxSize = 7 + posTs;
            uint256 posRoot =  11 + posTs;
            assembly {
                batchTime := shr(204, calldataload(posTs))
                txSize := shr(224, calldataload(posTxSize))
                root := calldataload(posRoot)
            }

            // check batch size
            require(txSize / 2 <= txBatchSize, "size of tx data is too large");
        }

        address ctc = resolve("CanonicalTransactionChain");
        IChainStorageContainer batchesRef = ICanonicalTransactionChain(ctc).batches();
        uint256 batchIndex = batchesRef.lengthByChainId(_chainId);
        {
            // ctc call
            (bool success, bytes memory result) = ctc.call(msg.data);
            if (success == false) {
                assembly {
                    let ptr := mload(0x40)
                    let size := returndatasize()
                    returndatacopy(ptr, 0, size)
                    revert(ptr, size)
                }
            }
        }

        // save
        queueBatchElement[_chainId][batchIndex] = BatchElement({
            shouldStartAtElement:  shouldStartAtElement,
            totalElementsToAppend: totalElementsToAppend,
            txBatchSize:           txSize,
            txBatchTime:           batchTime,
            root:                  root,
            timestamp:             block.timestamp
        });

        emit AppendBatchElement(
            _chainId,
            batchIndex,
            shouldStartAtElement,
            totalElementsToAppend,
            txSize,
            batchTime,
            root
        );
    }

    function setBatchTxDataForStake(
        uint256 _chainId,
        uint256 _batchIndex,
        uint256 _blockNumber,
        bytes memory _data,
        uint256 _leafIndex,
        uint256 _totalLeaves,
        bytes32[] memory _proof
    )
        override
        public
    {
        require(
            msg.sender == resolve(string(abi.encodePacked(uint2str(_chainId),"_MVM_Sequencer_Wrapper"))),
            "Function can only be called by the Sequencer."
        );
        // check stake
        require(queueTxDataRequestStake[_chainId][_blockNumber].timestamp > 0, "there is no stake for this block number");
        require(queueTxDataRequestStake[_chainId][_blockNumber].batchIndex == _batchIndex, "incorrect batch index");
        require(queueTxDataRequestStake[_chainId][_blockNumber].status == STAKESTATUS.INIT, "not allowed to submit");
        // sequencer can submit at any time
        // require(queueTxDataRequestStake[_chainId][_blockNumber].endtime >= block.timestamp, "can not submit out of sequencer submit protection");

        _setBatchTxData(_chainId, _batchIndex, _blockNumber, _data, _leafIndex, _totalLeaves,  _proof,  true);

        if (queueTxDataRequestStake[_chainId][_blockNumber].status == STAKESTATUS.INIT) {
            require(
                queueTxDataRequestStake[_chainId][_blockNumber].amount <= verifierStakes[queueTxDataRequestStake[_chainId][_blockNumber].sender],
                "insufficient stake"
            );
            require(
                queueTxDataRequestStake[_chainId][_blockNumber].amount <= address(this).balance,
                "insufficient balance"
            );
            queueTxDataRequestStake[_chainId][_blockNumber].status = STAKESTATUS.SEQ_SET;
            if (queueTxDataRequestStake[_chainId][_blockNumber].amount > 0){
                verifierStakes[queueTxDataRequestStake[_chainId][_blockNumber].sender] -= queueTxDataRequestStake[_chainId][_blockNumber].amount;
                // transfer from contract to sender ETHER and record
                (bool success, ) = payable(msg.sender).call{value: queueTxDataRequestStake[_chainId][_blockNumber].amount}("");
                require(success, "insufficient balance");
                queueTxDataRequestStake[_chainId][_blockNumber].amount = 0;
            }
        }

        emit SetBatchTxData(
            msg.sender,
            _chainId,
            _batchIndex,
            _blockNumber,
            queueTxDataRequestStake[_chainId][_blockNumber].amount,
            true,
            true
        );
    }

    function setBatchTxDataForVerifier(
        uint256 _chainId,
        uint256 _batchIndex,
        uint256 _blockNumber,
        bytes memory _data
    )
        override
        public
    {
         require(
            msg.sender != resolve(string(abi.encodePacked(uint2str(_chainId),"_MVM_Sequencer_Wrapper"))),
            "Function can not be called by the Sequencer."
        );
        // check stake
        require(queueTxDataRequestStake[_chainId][_blockNumber].timestamp > 0, "there is no stake for this block number");
        require(queueTxDataRequestStake[_chainId][_blockNumber].batchIndex == _batchIndex, "incorrect batch index");
        // require(queueTxDataRequestStake[_chainId][_blockNumber].status == STAKESTATUS.INIT, "not allowed to submit");
        // require(queueTxDataRequestStake[_chainId][_blockNumber].sender == msg.sender, "can not submit with other's stake");
        require(queueTxDataRequestStake[_chainId][_blockNumber].endtime < block.timestamp, "can not submit during sequencer submit protection");
        if (queueTxDataRequestStake[_chainId][_blockNumber].sender != msg.sender) {
            // other verifier can submit in double window times
            require(queueTxDataRequestStake[_chainId][_blockNumber].endtime + stakeSeqSeconds < block.timestamp, "can not submit during staker submit protection");
        }

        _setBatchTxData(_chainId, _batchIndex, _blockNumber, _data, 0, 0, new bytes32[](0), false);

        if (queueTxDataRequestStake[_chainId][_blockNumber].status == STAKESTATUS.INIT) {
            queueTxDataRequestStake[_chainId][_blockNumber].status = STAKESTATUS.VERIFIER_SET;

            address claimer = queueTxDataRequestStake[_chainId][_blockNumber].sender;
            if (queueTxDataRequestStake[_chainId][_blockNumber].amount <= verifierStakes[claimer] && queueTxDataRequestStake[_chainId][_blockNumber].amount > 0) {
                require(
                    queueTxDataRequestStake[_chainId][_blockNumber].amount <= address(this).balance,
                    "insufficient balance"
                );
                verifierStakes[claimer] -= queueTxDataRequestStake[_chainId][_blockNumber].amount;
                // transfer from contract to sender ETHER and record
                (bool success, ) = payable(claimer).call{value: queueTxDataRequestStake[_chainId][_blockNumber].amount}("");
                require(success, "insufficient balance");
                queueTxDataRequestStake[_chainId][_blockNumber].amount = 0;
            }
        }

        emit SetBatchTxData(
            msg.sender,
            _chainId,
            _batchIndex,
            _blockNumber,
            queueTxDataRequestStake[_chainId][_blockNumber].amount,
            false,
            false
        );
    }

    function _setBatchTxData(
        uint256 _chainId,
        uint256 _batchIndex,
        uint256 _blockNumber,
        bytes memory _data,
        uint256 _leafIndex,
        uint256 _totalLeaves,
        bytes32[] memory _proof,
        bool _requireVerify
    )
        internal
    {
        require(_data.length > 0, "empty data");
        // check queue BatchElement
        require(queueBatchElement[_chainId][_batchIndex].txBatchTime > 0, "batch element does not exist");
        require(queueBatchElement[_chainId][_batchIndex].totalElementsToAppend > 0, "batch total element to append should not be zero");
       
        // sequencer protect
        if (queueTxData[_chainId][_blockNumber].timestamp > 0) {
            require(queueTxData[_chainId][_blockNumber].verified == false, "tx data verified");
            if (queueTxData[_chainId][_blockNumber].sender != msg.sender) {
                require(queueTxData[_chainId][_blockNumber].timestamp + TXDATA_SUBMIT_TIMEOUT > block.timestamp, "in submitting");

                // change sumbitter
                queueTxData[_chainId][_blockNumber].sender = msg.sender;
                queueTxData[_chainId][_blockNumber].blockNumber = _blockNumber;
                queueTxData[_chainId][_blockNumber].batchIndex = _batchIndex;
                queueTxData[_chainId][_blockNumber].timestamp = block.timestamp;
                queueTxData[_chainId][_blockNumber].txData = _data;
                queueTxData[_chainId][_blockNumber].verified = false;
            }
            else {
                queueTxData[_chainId][_blockNumber].txData = _data;
                // verified restore to false
                queueTxData[_chainId][_blockNumber].verified = false;
            }
        }
        else {
            queueTxData[_chainId][_blockNumber] = TxDataSlice({
                sender:         msg.sender,
                blockNumber:    _blockNumber,
                batchIndex:    _batchIndex,
                timestamp:      block.timestamp,
                txData:         _data,
                verified:       false
            });
        }
        if (_requireVerify) {
            bytes32 currLeaf = keccak256(abi.encodePacked(_blockNumber, _data));
            bool verified = Lib_MerkleTree.verify(queueBatchElement[_chainId][_batchIndex].root, currLeaf, _leafIndex, _proof, _totalLeaves);
            require(verified == true, "tx data verify failed");

            // save verified status
            queueTxData[_chainId][_blockNumber].verified = true;
        }
    }

    function getBatchTxData(
        uint256 _chainId,
        uint256 _batchIndex,
        uint256 _blockNumber
    )
        override
        external
        view
        returns (
            bytes memory txData,
            bool verified
        )
    {
        require(queueTxData[_chainId][_blockNumber].timestamp != 0, "tx data does not exist");
        require(queueTxData[_chainId][_blockNumber].batchIndex == _batchIndex, "incorrect batch index");
        return (
            queueTxData[_chainId][_blockNumber].txData,
            queueTxData[_chainId][_blockNumber].verified
        );
    }

    function checkBatchTxHash(
        uint256 _chainId,
        uint256 _batchIndex,
        uint256 _blockNumber,
        bytes memory _data
    )
        override
        external
        view
        returns (
            bytes32 txHash,
            bool verified
        )
    {
        require(queueTxData[_chainId][_blockNumber].timestamp != 0, "tx data does not exist");
        require(queueTxData[_chainId][_blockNumber].batchIndex == _batchIndex, "incorrect batch index");
        return (
            keccak256(abi.encodePacked(_blockNumber, _data)),
            queueTxData[_chainId][_blockNumber].verified
        );
    }

    function setBatchTxDataVerified(
        uint256 _chainId,
        uint256 _batchIndex,
        uint256 _blockNumber,
        bool _verified
    )
        override
        public
        onlyManager
    {
        require(queueTxData[_chainId][_blockNumber].timestamp != 0, "tx data does not exist");
        require(queueTxData[_chainId][_blockNumber].batchIndex == _batchIndex, "incorrect batch index");
        require(queueTxData[_chainId][_blockNumber].verified != _verified, "verified status not change");

        queueTxData[_chainId][_blockNumber].verified = _verified;
    }

    function verifierStake(
        uint256 _chainId,
        uint256 _batchIndex,
        uint256 _blockNumber
    )
        override
        public
        payable
        onlyWhitelisted
    {
        uint256 _amount = msg.value;
        uint256 stakeCost = getStakeCostByBatch(_chainId, _batchIndex);
        require(stakeBaseCost > 0, "stake base cost not config yet");
        require(stakeCost == _amount, "stake cost incorrect");
        require(stakeSeqSeconds > 0, "sequencer submit seconds not config yet");
        // check queue BatchElement
        require(queueBatchElement[_chainId][_batchIndex].txBatchTime > 0, "batch element does not exist");
        // check block number in batch range, block number = index + 1
        require(queueBatchElement[_chainId][_batchIndex].totalElementsToAppend + queueBatchElement[_chainId][_batchIndex].shouldStartAtElement >= _blockNumber && queueBatchElement[_chainId][_batchIndex].shouldStartAtElement < _blockNumber, "block number is not in this batch");
        if (queueTxDataRequestStake[_chainId][_blockNumber].timestamp > 0) {
            require(queueTxDataRequestStake[_chainId][_blockNumber].status == STAKESTATUS.PAYBACK, "there is a stake for this batch index");
        }

        //check window
        StateCommitmentChain stateChain = StateCommitmentChain(resolve("StateCommitmentChain"));
        require(queueBatchElement[_chainId][_batchIndex].timestamp + stateChain.FRAUD_PROOF_WINDOW() > block.timestamp, "the batch is outside of the fraud proof window");

        queueTxDataRequestStake[_chainId][_blockNumber] = TxDataRequestStake({
            sender:      msg.sender,
            blockNumber: _blockNumber,
            batchIndex:  _batchIndex,
            timestamp:   block.timestamp,
            endtime:     block.timestamp + stakeSeqSeconds,
            amount:      _amount,
            status:      STAKESTATUS.INIT
        });
        verifierStakes[msg.sender] += _amount;

        emit VerifierStake(msg.sender, _chainId, _batchIndex, _blockNumber, _amount);
    }

    function withdrawStake(
        uint256 _chainId,
        uint256 _batchIndex,
        uint256 _blockNumber
    )
        override
        public
    {
        require(queueTxDataRequestStake[_chainId][_blockNumber].timestamp > 0, "there is no stake for this batch index");
        require(queueTxDataRequestStake[_chainId][_blockNumber].amount > 0, "stake amount is zero");
        require(queueTxDataRequestStake[_chainId][_blockNumber].status == STAKESTATUS.INIT, "withdrawals are not allowed");
        require(queueTxDataRequestStake[_chainId][_blockNumber].sender == msg.sender, "can not withdraw other's stake");
        require(queueTxDataRequestStake[_chainId][_blockNumber].endtime < block.timestamp, "can not withdraw during submit protection");
        require(queueTxDataRequestStake[_chainId][_blockNumber].amount <= verifierStakes[msg.sender], "insufficient stake");

        require(
            queueTxDataRequestStake[_chainId][_blockNumber].amount <= address(this).balance,
            "insufficient balance"
        );
        queueTxDataRequestStake[_chainId][_blockNumber].status = STAKESTATUS.PAYBACK;
        verifierStakes[msg.sender] -= queueTxDataRequestStake[_chainId][_blockNumber].amount;
        // transfer from contract to sender ETHER and record
        (bool success, ) = payable(msg.sender).call{value: queueTxDataRequestStake[_chainId][_blockNumber].amount}("");
        require(success, "insufficient balance");
        queueTxDataRequestStake[_chainId][_blockNumber].amount = 0;
    }

    function uint2str(uint _i) internal pure returns (string memory _uintAsString) {
        if (_i == 0) {
            return "0";
        }
        uint j = _i;
        uint len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len;
        while (_i != 0) {
            k = k-1;
            uint8 temp = (48 + uint8(_i - _i / 10 * 10));
            bytes1 b1 = bytes1(temp);
            bstr[k] = b1;
            _i /= 10;
        }
        return string(bstr);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_chainId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_batchIndex","type":"uint256"},{"indexed":false,"internalType":"uint40","name":"_shouldStartAtElement","type":"uint40"},{"indexed":false,"internalType":"uint24","name":"_totalElementsToAppend","type":"uint24"},{"indexed":false,"internalType":"uint256","name":"_txBatchSize","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_txBatchTime","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"AppendBatchElement","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_chainId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_batchIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_blockNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_stakeAmount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"_verified","type":"bool"},{"indexed":false,"internalType":"bool","name":"_sequencer","type":"bool"}],"name":"SetBatchTxData","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_chainId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_batchIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_blockNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"VerifierStake","type":"event"},{"inputs":[],"name":"CONFIG_OWNER_KEY","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TXDATA_SUBMIT_TIMEOUT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"appendSequencerBatchByChainId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"uint256","name":"_batchIndex","type":"uint256"},{"internalType":"uint256","name":"_blockNumber","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"checkBatchTxHash","outputs":[{"internalType":"bytes32","name":"txHash","type":"bytes32"},{"internalType":"bool","name":"verified","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"uint256","name":"_batchIndex","type":"uint256"},{"internalType":"uint256","name":"_blockNumber","type":"uint256"}],"name":"getBatchTxData","outputs":[{"internalType":"bytes","name":"txData","type":"bytes"},{"internalType":"bool","name":"verified","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakeBaseCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"uint256","name":"_batchIndex","type":"uint256"}],"name":"getStakeCostByBatch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakeSeqSeconds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakeUnitCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTxBatchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTxDataSliceCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTxDataSliceSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_verifier","type":"address"}],"name":"isWhiteListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"libAddressManager","outputs":[{"internalType":"contract Lib_AddressManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"name":"resolve","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"uint256","name":"_batchIndex","type":"uint256"},{"internalType":"uint256","name":"_blockNumber","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"},{"internalType":"uint256","name":"_leafIndex","type":"uint256"},{"internalType":"uint256","name":"_totalLeaves","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"setBatchTxDataForStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"uint256","name":"_batchIndex","type":"uint256"},{"internalType":"uint256","name":"_blockNumber","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"setBatchTxDataForVerifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"uint256","name":"_batchIndex","type":"uint256"},{"internalType":"uint256","name":"_blockNumber","type":"uint256"},{"internalType":"bool","name":"_verified","type":"bool"}],"name":"setBatchTxDataVerified","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakeBaseCost","type":"uint256"}],"name":"setStakeBaseCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_seconds","type":"uint256"}],"name":"setStakeSeqSeconds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakeUnitCost","type":"uint256"}],"name":"setStakeUnitCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_size","type":"uint256"}],"name":"setTxBatchSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"setTxDataSliceCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_size","type":"uint256"}],"name":"setTxDataSliceSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_verifier","type":"address"},{"internalType":"bool","name":"_allowed","type":"bool"}],"name":"setWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeBaseCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakeSeqSeconds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakeUnitCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"txBatchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"txDataSliceCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"txDataSliceSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"uint256","name":"_batchIndex","type":"uint256"},{"internalType":"uint256","name":"_blockNumber","type":"uint256"}],"name":"verifierStake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"uint256","name":"_batchIndex","type":"uint256"},{"internalType":"uint256","name":"_blockNumber","type":"uint256"}],"name":"withdrawStake","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600080546001600160a01b03191690556146cc806100306000396000f3fe6080604052600436106102335760003560e01c80637600fa1211610138578063a6a56da5116100b0578063d6a97a341161007f578063f137391611610064578063f137391614610653578063f1e7746114610673578063f6f24f671461069357600080fd5b8063d6a97a3414610629578063dcd836161461063e57600080fd5b8063a6a56da5146105b6578063a8cda37b146105c9578063b357ab92146105de578063d5fb60d9146105f457600080fd5b806386e4206e116101075780639447fe88116100ec5780639447fe88146105505780639b19251a14610566578063a5f5e7191461059657600080fd5b806386e4206e146105105780638d14e1271461053057600080fd5b80637600fa121461049a5780637f9c9777146104ba57806381147877146104da57806383cbbb6d146104f057600080fd5b80633ac19597116101cb5780634e74b1551161019a57806361f4edea1161017f57806361f4edea146103e6578063669fdeb5146104145780636f9170f61461046a57600080fd5b80634e74b155146103bc5780635e7ce13a146103d157600080fd5b80633ac1959714610351578063461a44781461037157806348406b861461039157806348f24165146103a757600080fd5b8063279f9b1111610207578063279f9b11146102a9578063299ca478146102c957806335005ffb1461031b57806338897fdd1461033b57600080fd5b806213c63d1461023857806302adf2d61461025c578063167c705014610271578063172e218d14610287575b600080fd5b34801561024457600080fd5b506002545b6040519081526020015b60405180910390f35b34801561026857600080fd5b50600454610249565b34801561027d57600080fd5b5061024960045481565b34801561029357600080fd5b506102a76102a2366004613f0f565b6106a9565b005b3480156102b557600080fd5b506102a76102c4366004613f4e565b610928565b3480156102d557600080fd5b506000546102f69073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610253565b34801561032757600080fd5b506102a7610336366004613f7a565b610db2565b34801561034757600080fd5b5061024960015481565b34801561035d57600080fd5b506102a761036c366004613f7a565b610f5d565b34801561037d57600080fd5b506102f661038c366004614087565b611066565b34801561039d57600080fd5b5061024960065481565b3480156103b357600080fd5b50600654610249565b3480156103c857600080fd5b50600354610249565b3480156103dd57600080fd5b50600554610249565b3480156103f257600080fd5b50610406610401366004613f4e565b611113565b60405161025392919061414a565b34801561042057600080fd5b5061045d6040518060400160405280600d81526020017f4d455449535f4d414e414745520000000000000000000000000000000000000081525081565b604051610253919061416e565b34801561047657600080fd5b5061048a6104853660046141a6565b6112ad565b6040519015158152602001610253565b3480156104a657600080fd5b506102496104b53660046141c3565b6112e9565b3480156104c657600080fd5b506102a76104d5366004613f7a565b6113e3565b3480156104e657600080fd5b5061024960055481565b3480156104fc57600080fd5b506102a761050b366004614205565b61158e565b34801561051c57600080fd5b506102a761052b366004613f7a565b611af3565b34801561053c57600080fd5b506102a761054b366004614302565b611c9e565b34801561055c57600080fd5b5061024960025481565b34801561057257600080fd5b5061048a6105813660046141a6565b60086020526000908152604090205460ff1681565b3480156105a257600080fd5b506102a76105b1366004613f7a565b611de4565b6102a76105c4366004613f4e565b611eed565b3480156105d557600080fd5b506102a7612596565b3480156105ea57600080fd5b5061024960035481565b34801561060057600080fd5b5061061461060f366004614337565b612a62565b60408051928352901515602083015201610253565b34801561063557600080fd5b50600154610249565b34801561064a57600080fd5b506102a7612baa565b34801561065f57600080fd5b506102a761066e366004613f7a565b612cba565b34801561067f57600080fd5b506102a761068e366004614337565b612e65565b34801561069f57600080fd5b5061024961070881565b6106e76040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107b25760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000848152600c6020908152604080832085845290915290206003015461081b5760405162461bcd60e51b815260206004820152601660248201527f7478206461746120646f6573206e6f742065786973740000000000000000000060448201526064016107a9565b6000848152600c6020908152604080832085845290915290206002015483146108865760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e646578000000000000000000000060448201526064016107a9565b6000848152600c6020908152604080832085845290915290206005015460ff16151581151514156108f95760405162461bcd60e51b815260206004820152601a60248201527f766572696669656420737461747573206e6f74206368616e676500000000000060448201526064016107a9565b6000938452600c602090815260408086209386529290529220600501805460ff19169215159290921790915550565b6000838152600b602090815260408083208484529091529020600301546109b75760405162461bcd60e51b815260206004820152602660248201527f7468657265206973206e6f207374616b6520666f72207468697320626174636860448201527f20696e646578000000000000000000000000000000000000000000000000000060648201526084016107a9565b6000838152600b60209081526040808320848452909152902060050154610a205760405162461bcd60e51b815260206004820152601460248201527f7374616b6520616d6f756e74206973207a65726f00000000000000000000000060448201526064016107a9565b6000838152600b6020908152604080832084845290915281206006015460ff166003811115610a5157610a51614391565b14610a9e5760405162461bcd60e51b815260206004820152601b60248201527f7769746864726177616c7320617265206e6f7420616c6c6f776564000000000060448201526064016107a9565b6000838152600b6020908152604080832084845290915290205473ffffffffffffffffffffffffffffffffffffffff163314610b1c5760405162461bcd60e51b815260206004820152601e60248201527f63616e206e6f74207769746864726177206f746865722773207374616b65000060448201526064016107a9565b6000838152600b602090815260408083208484529091529020600401544211610bad5760405162461bcd60e51b815260206004820152602960248201527f63616e206e6f7420776974686472617720647572696e67207375626d6974207060448201527f726f74656374696f6e000000000000000000000000000000000000000000000060648201526084016107a9565b33600090815260096020908152604080832054868452600b8352818420858552909252909120600501541115610c255760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e74207374616b65000000000000000000000000000060448201526064016107a9565b6000838152600b60209081526040808320848452909152902060050154471015610c915760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e636500000000000000000000000060448201526064016107a9565b6000838152600b60209081526040808320848452825280832060068101805460ff191660031790556005015433845260099092528220805491929091610cd89084906143ef565b90915550506000838152600b602090815260408083208484529091528082206005015490513391908381818185875af1925050503d8060008114610d38576040519150601f19603f3d011682016040523d82523d6000602084013e610d3d565b606091505b5050905080610d8e5760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e636500000000000000000000000060448201526064016107a9565b506000928352600b6020908152604080852092855291905282206005019190915550565b610df06040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610eb65760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4016107a9565b60008111610f065760405162461bcd60e51b815260206004820152601660248201527f736c6963652073697a652073686f756c6420677420300000000000000000000060448201526064016107a9565b600154811415610f585760405162461bcd60e51b815260206004820152601a60248201527f736c6963652073697a6520686173206e6f74206368616e67656400000000000060448201526064016107a9565b600155565b610f9b6040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110615760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4016107a9565b600655565b600080546040517fbf40fac100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063bf40fac1906110bd90859060040161416e565b60206040518083038186803b1580156110d557600080fd5b505afa1580156110e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110d9190614406565b92915050565b6000838152600c60209081526040808320848452909152812060030154606091906111805760405162461bcd60e51b815260206004820152601660248201527f7478206461746120646f6573206e6f742065786973740000000000000000000060448201526064016107a9565b6000858152600c6020908152604080832086845290915290206002015484146111eb5760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e646578000000000000000000000060448201526064016107a9565b6000858152600c602090815260408083208684529091529020600581015460049091018054909160ff1690829061122190614423565b80601f016020809104026020016040519081016040528092919081815260200182805461124d90614423565b801561129a5780601f1061126f5761010080835404028352916020019161129a565b820191906000526020600020905b81548152906001019060200180831161127d57829003601f168201915b5050505050915091509150935093915050565b60075460009060ff16158061110d57505073ffffffffffffffffffffffffffffffffffffffff1660009081526008602052604090205460ff1690565b6000806003541161133c5760405162461bcd60e51b815260206004820152601e60248201527f7374616b65206261736520636f7374206e6f7420636f6e66696720796574000060448201526064016107a9565b6000838152600a602090815260408083208584529091529020600201546113a55760405162461bcd60e51b815260206004820152601c60248201527f626174636820656c656d656e7420646f6573206e6f742065786973740000000060448201526064016107a9565b6006546000848152600a602090815260408083208684529091529020600101546113cf9190614477565b6003546113dc91906144b4565b9392505050565b6114216040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146114e75760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4016107a9565b600081116115375760405162461bcd60e51b815260206004820152601760248201527f736c69636520636f756e742073686f756c64206774203000000000000000000060448201526064016107a9565b6004548114156115895760405162461bcd60e51b815260206004820152601b60248201527f736c69636520636f756e7420686173206e6f74206368616e676564000000000060448201526064016107a9565b600455565b6115be61159a8861348f565b6040516020016115aa91906144cc565b604051602081830303815290604052611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461165e5760405162461bcd60e51b815260206004820152602d60248201527f46756e6374696f6e2063616e206f6e6c792062652063616c6c6564206279207460448201527f68652053657175656e6365722e0000000000000000000000000000000000000060648201526084016107a9565b6000878152600b602090815260408083208884529091529020600301546116ed5760405162461bcd60e51b815260206004820152602760248201527f7468657265206973206e6f207374616b6520666f72207468697320626c6f636b60448201527f206e756d6265720000000000000000000000000000000000000000000000000060648201526084016107a9565b6000878152600b6020908152604080832088845290915290206002015486146117585760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e646578000000000000000000000060448201526064016107a9565b6000878152600b6020908152604080832088845290915281206006015460ff16600381111561178957611789614391565b146117d65760405162461bcd60e51b815260206004820152601560248201527f6e6f7420616c6c6f77656420746f207375626d6974000000000000000000000060448201526064016107a9565b6117e78787878787878760016135ec565b6000878152600b6020908152604080832088845290915281206006015460ff16600381111561181857611818614391565b1415611a75576000878152600b60209081526040808320888452808352818420805473ffffffffffffffffffffffffffffffffffffffff1685526009845291842054938990529091526005015411156118b35760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e74207374616b65000000000000000000000000000060448201526064016107a9565b6000878152600b6020908152604080832088845290915290206005015447101561191f5760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e636500000000000000000000000060448201526064016107a9565b6000878152600b60209081526040808320888452909152902060068101805460ff191660011790556005015415611a75576000878152600b6020908152604080832088845282528083206005810154905473ffffffffffffffffffffffffffffffffffffffff168452600990925282208054919290916119a09084906143ef565b90915550506000878152600b602090815260408083208884529091528082206005015490513391908381818185875af1925050503d8060008114611a00576040519150601f19603f3d011682016040523d82523d6000602084013e611a05565b606091505b5050905080611a565760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e636500000000000000000000000060448201526064016107a9565b506000878152600b602090815260408083208884529091528120600501555b6000878152600b602090815260408083208884528252918290206005015482513381529182018a9052818301899052606082018890526080820152600160a0820181905260c082015290517ffa136ae724a018470beba9749c1fdfb83177d6bd6aaaab35d6dbfde739e509109181900360e00190a150505050505050565b611b316040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611bf75760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4016107a9565b60008111611c475760405162461bcd60e51b815260206004820152601660248201527f62617463682073697a652073686f756c6420677420300000000000000000000060448201526064016107a9565b600554811415611c995760405162461bcd60e51b815260206004820152601a60248201527f62617463682073697a6520686173206e6f74206368616e67656400000000000060448201526064016107a9565b600555565b611cdc6040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611da25760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4016107a9565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600860205260409020805491151560ff19928316179055600780549091166001179055565b611e226040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ee85760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4016107a9565b600355565b611ef6336112ad565b611f685760405162461bcd60e51b815260206004820152602360248201527f6f6e6c792077686974656c6973746564207665726966696572732063616e206360448201527f616c6c000000000000000000000000000000000000000000000000000000000060648201526084016107a9565b346000611f7585856112e9565b9050600060035411611fc95760405162461bcd60e51b815260206004820152601e60248201527f7374616b65206261736520636f7374206e6f7420636f6e66696720796574000060448201526064016107a9565b8181146120185760405162461bcd60e51b815260206004820152601460248201527f7374616b6520636f737420696e636f727265637400000000000000000000000060448201526064016107a9565b6000600254116120905760405162461bcd60e51b815260206004820152602760248201527f73657175656e636572207375626d6974207365636f6e6473206e6f7420636f6e60448201527f666967207965740000000000000000000000000000000000000000000000000060648201526084016107a9565b6000858152600a602090815260408083208784529091529020600201546120f95760405162461bcd60e51b815260206004820152601c60248201527f626174636820656c656d656e7420646f6573206e6f742065786973740000000060448201526064016107a9565b6000858152600a6020908152604080832087845290915290205483906121359064ffffffffff81169065010000000000900462ffffff1661450d565b64ffffffffff161015801561216957506000858152600a6020908152604080832087845290915290205464ffffffffff1683115b6121db5760405162461bcd60e51b815260206004820152602160248201527f626c6f636b206e756d626572206973206e6f7420696e2074686973206261746360448201527f680000000000000000000000000000000000000000000000000000000000000060648201526084016107a9565b6000858152600b60209081526040808320868452909152902060030154156122a35760036000868152600b6020908152604080832087845290915290206006015460ff16600381111561223057612230614391565b146122a35760405162461bcd60e51b815260206004820152602560248201527f74686572652069732061207374616b6520666f7220746869732062617463682060448201527f696e64657800000000000000000000000000000000000000000000000000000060648201526084016107a9565b60006122e36040518060400160405280601481526020017f5374617465436f6d6d69746d656e74436861696e000000000000000000000000815250611066565b9050428173ffffffffffffffffffffffffffffffffffffffff1663c17b291b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561232c57600080fd5b505afa158015612340573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123649190614536565b6000888152600a602090815260408083208a845290915290206004015461238b91906144b4565b116123fe5760405162461bcd60e51b815260206004820152602e60248201527f746865206261746368206973206f757473696465206f6620746865206672617560448201527f642070726f6f662077696e646f7700000000000000000000000000000000000060648201526084016107a9565b6040518060e001604052803373ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018681526020014281526020016002544261244591906144b4565b815260208101859052604001600090526000878152600b60209081526040808320888452825291829020835181547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9091161781559083015160018083019190915591830151600282015560608301516003808301919091556080840151600483015560a0840151600583015560c084015160068301805493949193909260ff199091169190849081111561251257612512614391565b021790555050336000908152600960205260408120805486935090919061253a9084906144b4565b9091555050604080513381526020810188905290810186905260608101859052608081018490527f918b3eda1688b2f6d3e6d173db1ec863e43f4d1c369d647b1912b0df8be5f12f9060a00160405180910390a1505050505050565b60043560243560d81c60293560e890811c90602c35901c60003681806125be61159a8961348f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461265e5760405162461bcd60e51b815260206004820152602d60248201527f46756e6374696f6e2063616e206f6e6c792062652063616c6c6564206279207460448201527f68652053657175656e6365722e0000000000000000000000000000000000000060648201526084016107a9565b600061266b86601061454f565b61267690602f61457a565b62ffffff169050808411156127155760006126928260076144b4565b905060006126a183600b6144b4565b600554843560cc1c9850833560e01c9650813595509091506126c4600287614598565b11156127125760405162461bcd60e51b815260206004820152601c60248201527f73697a65206f66207478206461746120697320746f6f206c617267650000000060448201526064016107a9565b50505b60006127556040518060400160405280601981526020017f43616e6f6e6963616c5472616e73616374696f6e436861696e00000000000000815250611066565b905060008173ffffffffffffffffffffffffffffffffffffffff1663cfdf677e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561279f57600080fd5b505afa1580156127b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127d79190614406565b6040517f576f2588000000000000000000000000000000000000000000000000000000008152600481018d905290915060009073ffffffffffffffffffffffffffffffffffffffff83169063576f25889060240160206040518083038186803b15801561284357600080fd5b505afa158015612857573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061287b9190614536565b90506000808473ffffffffffffffffffffffffffffffffffffffff166000366040516128a89291906145d3565b6000604051808303816000865af19150503d80600081146128e5576040519150601f19603f3d011682016040523d82523d6000602084013e6128ea565b606091505b50909250905081612902576040513d806000833e8082fd5b50506040518060c001604052808c64ffffffffff1681526020018b62ffffff16815260200187815260200189815260200186815260200142815250600a60008e8152602001908152602001600020600083815260200190815260200160002060008201518160000160006101000a81548164ffffffffff021916908364ffffffffff16021790555060208201518160000160056101000a81548162ffffff021916908362ffffff16021790555060408201518160010155606082015181600201556080820151816003015560a082015181600401559050507f77e48e0d46be115d5fe8dd03f4dbf8eb309c5fdc8ffdcbe6f8eaa5bd6c65aed98c828d8d8a8d8b604051612a4c9796959493929190968752602087019590955264ffffffffff93909316604086015262ffffff919091166060850152608084015260a083015260c082015260e00190565b60405180910390a1505050505050505050505050565b6000848152600c602090815260408083208584529091528120600301548190612acd5760405162461bcd60e51b815260206004820152601660248201527f7478206461746120646f6573206e6f742065786973740000000000000000000060448201526064016107a9565b6000868152600c602090815260408083208784529091529020600201548514612b385760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e646578000000000000000000000060448201526064016107a9565b8383604051602001612b4b9291906145e3565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291815281516020928301206000898152600c845282812088825290935291206005015490925060ff16905094509492505050565b612be86040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612cae5760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4016107a9565b6007805460ff19169055565b612cf86040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612dbe5760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4016107a9565b60008111612e0e5760405162461bcd60e51b815260206004820152601360248201527f7365636f6e64732073686f756c6420677420300000000000000000000000000060448201526064016107a9565b600254811415612e605760405162461bcd60e51b815260206004820152601760248201527f7365636f6e647320686173206e6f74206368616e67656400000000000000000060448201526064016107a9565b600255565b612e7161159a8561348f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415612f125760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e2063616e206e6f742062652063616c6c656420627920746860448201527f652053657175656e6365722e000000000000000000000000000000000000000060648201526084016107a9565b6000848152600b60209081526040808320858452909152902060030154612fa15760405162461bcd60e51b815260206004820152602760248201527f7468657265206973206e6f207374616b6520666f72207468697320626c6f636b60448201527f206e756d6265720000000000000000000000000000000000000000000000000060648201526084016107a9565b6000848152600b60209081526040808320858452909152902060020154831461300c5760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e646578000000000000000000000060448201526064016107a9565b6000848152600b60209081526040808320858452909152902060040154421161309d5760405162461bcd60e51b815260206004820152603160248201527f63616e206e6f74207375626d697420647572696e672073657175656e6365722060448201527f7375626d69742070726f74656374696f6e00000000000000000000000000000060648201526084016107a9565b6000848152600b6020908152604080832085845290915290205473ffffffffffffffffffffffffffffffffffffffff163314613171576002546000858152600b6020908152604080832086845290915290206004015442916130fe916144b4565b106131715760405162461bcd60e51b815260206004820152602e60248201527f63616e206e6f74207375626d697420647572696e67207374616b65722073756260448201527f6d69742070726f74656374696f6e00000000000000000000000000000000000060648201526084016107a9565b6131ad84848484600080806040519080825280602002602001820160405280156131a5578160200160208202803683370190505b5060006135ec565b6000848152600b6020908152604080832085845290915281206006015460ff1660038111156131de576131de614391565b1415613413576000848152600b6020908152604080832085845280835281842060068101805460ff19166002179055805473ffffffffffffffffffffffffffffffffffffffff16808652600985529285205494879052925260059091015490911080159061326757506000858152600b6020908152604080832086845290915290206005015415155b15613411576000858152600b602090815260408083208684529091529020600501544710156132d85760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e636500000000000000000000000060448201526064016107a9565b6000858152600b6020908152604080832086845282528083206005015473ffffffffffffffffffffffffffffffffffffffff85168452600990925282208054919290916133269084906143ef565b90915550506000858152600b6020908152604080832086845290915280822060050154905173ffffffffffffffffffffffffffffffffffffffff841691908381818185875af1925050503d806000811461339c576040519150601f19603f3d011682016040523d82523d6000602084013e6133a1565b606091505b50509050806133f25760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e636500000000000000000000000060448201526064016107a9565b506000858152600b602090815260408083208684529091528120600501555b505b6000848152600b60209081526040808320858452825280832060050154815133815292830188905290820186905260608201859052608082015260a0810182905260c08101919091527ffa136ae724a018470beba9749c1fdfb83177d6bd6aaaab35d6dbfde739e509109060e00160405180910390a150505050565b6060816134cf57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156134f957806134e381614609565b91506134f29050600a83614598565b91506134d3565b60008167ffffffffffffffff81111561351457613514613f93565b6040519080825280601f01601f19166020018201604052801561353e576020820181803683370190505b509050815b85156135e3576135546001826143ef565b90506000613563600a88614598565b61356e90600a614477565b61357890886143ef565b613583906030614642565b905060008160f81b9050808484815181106135a0576135a0614667565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506135da600a89614598565b97505050613543565b50949350505050565b600085511161363d5760405162461bcd60e51b815260206004820152600a60248201527f656d70747920646174610000000000000000000000000000000000000000000060448201526064016107a9565b6000888152600a602090815260408083208a84529091529020600201546136a65760405162461bcd60e51b815260206004820152601c60248201527f626174636820656c656d656e7420646f6573206e6f742065786973740000000060448201526064016107a9565b6000888152600a602090815260408083208a845290915290205465010000000000900462ffffff166137405760405162461bcd60e51b815260206004820152603060248201527f626174636820746f74616c20656c656d656e7420746f20617070656e6420736860448201527f6f756c64206e6f74206265207a65726f0000000000000000000000000000000060648201526084016107a9565b6000888152600c602090815260408083208984529091529020600301541561393e576000888152600c6020908152604080832089845290915290206005015460ff16156137cf5760405162461bcd60e51b815260206004820152601060248201527f747820646174612076657269666965640000000000000000000000000000000060448201526064016107a9565b6000888152600c6020908152604080832089845290915290205473ffffffffffffffffffffffffffffffffffffffff163314613911576000888152600c60209081526040808320898452909152902060030154429061383190610708906144b4565b1161387e5760405162461bcd60e51b815260206004820152600d60248201527f696e207375626d697474696e670000000000000000000000000000000000000060448201526064016107a9565b6000888152600c60209081526040808320898452825290912080547fffffffffffffffffffffffff00000000000000000000000000000000000000001633178155600181018890556002810189905542600382015586516138e792600490920191880190613e61565b506000888152600c602090815260408083208984529091529020600501805460ff19169055613a0d565b6000888152600c60209081526040808320898452825290912086516138e792600490920191880190613e61565b6040805160c08101825233815260208082018981528284018b81524260608501908152608085018b8152600060a087018190528f8152600c86528781208e8252865296909620855181547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9091161781559251600184015590516002830155516003820155925180519293926139f09260048501920190613e61565b5060a091909101516005909101805460ff19169115159190911790555b8015613b055760008686604051602001613a289291906145e3565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152918152815160209283012060008c8152600a84528281208c825290935290822060030154909250613a879083888789613b0f565b9050600181151514613adb5760405162461bcd60e51b815260206004820152601560248201527f7478206461746120766572696679206661696c6564000000000000000000000060448201526064016107a9565b50506000888152600c602090815260408083208984529091529020600501805460ff191660011790555b5050505050505050565b6000808211613b865760405162461bcd60e51b815260206004820152603760248201527f4c69625f4d65726b6c65547265653a20546f74616c206c6561766573206d757360448201527f742062652067726561746572207468616e207a65726f2e00000000000000000060648201526084016107a9565b818410613bfa5760405162461bcd60e51b8152602060048201526024808201527f4c69625f4d65726b6c65547265653a20496e646578206f7574206f6620626f7560448201527f6e64732e0000000000000000000000000000000000000000000000000000000060648201526084016107a9565b613c0382613d7d565b835114613c9e5760405162461bcd60e51b815260206004820152604d60248201527f4c69625f4d65726b6c65547265653a20546f74616c207369626c696e6773206460448201527f6f6573206e6f7420636f72726563746c7920636f72726573706f6e6420746f2060648201527f746f74616c206c65617665732e00000000000000000000000000000000000000608482015260a4016107a9565b8460005b8451811015613d70578560011660011415613d0957848181518110613cc957613cc9614667565b602002602001015182604051602001613cec929190918252602082015260400190565b604051602081830303815290604052805190602001209150613d57565b81858281518110613d1c57613d1c614667565b6020026020010151604051602001613d3e929190918252602082015260400190565b6040516020818303038152906040528051906020012091505b60019590951c9480613d6881614609565b915050613ca2565b5090951495945050505050565b6000808211613df45760405162461bcd60e51b815260206004820152603060248201527f4c69625f4d65726b6c65547265653a2043616e6e6f7420636f6d70757465206360448201527f65696c286c6f675f3229206f6620302e0000000000000000000000000000000060648201526084016107a9565b8160011415613e0557506000919050565b81600060805b60018110613e435780613e21600180831b6143ef565b901b831615613e3b57613e3481836144b4565b92811c9291505b60011c613e0b565b506001811b84146113dc57613e596001826144b4565b949350505050565b828054613e6d90614423565b90600052602060002090601f016020900481019282613e8f5760008555613ed5565b82601f10613ea857805160ff1916838001178555613ed5565b82800160010185558215613ed5579182015b82811115613ed5578251825591602001919060010190613eba565b50613ee1929150613ee5565b5090565b5b80821115613ee15760008155600101613ee6565b80358015158114613f0a57600080fd5b919050565b60008060008060808587031215613f2557600080fd5b843593506020850135925060408501359150613f4360608601613efa565b905092959194509250565b600080600060608486031215613f6357600080fd5b505081359360208301359350604090920135919050565b600060208284031215613f8c57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561400957614009613f93565b604052919050565b600067ffffffffffffffff83111561402b5761402b613f93565b61405c60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601613fc2565b905082815283838301111561407057600080fd5b828260208301376000602084830101529392505050565b60006020828403121561409957600080fd5b813567ffffffffffffffff8111156140b057600080fd5b8201601f810184136140c157600080fd5b613e5984823560208401614011565b60005b838110156140eb5781810151838201526020016140d3565b838111156140fa576000848401525b50505050565b600081518084526141188160208601602086016140d0565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60408152600061415d6040830185614100565b905082151560208301529392505050565b6020815260006113dc6020830184614100565b73ffffffffffffffffffffffffffffffffffffffff811681146141a357600080fd5b50565b6000602082840312156141b857600080fd5b81356113dc81614181565b600080604083850312156141d657600080fd5b50508035926020909101359150565b600082601f8301126141f657600080fd5b6113dc83833560208501614011565b600080600080600080600060e0888a03121561422057600080fd5b87359650602080890135965060408901359550606089013567ffffffffffffffff8082111561424e57600080fd5b61425a8c838d016141e5565b965060808b0135955060a08b0135945060c08b013591508082111561427e57600080fd5b818b0191508b601f83011261429257600080fd5b8135818111156142a4576142a4613f93565b8060051b91506142b5848301613fc2565b818152918301840191848101908e8411156142cf57600080fd5b938501935b838510156142ed578435825293850193908501906142d4565b80965050505050505092959891949750929550565b6000806040838503121561431557600080fd5b823561432081614181565b915061432e60208401613efa565b90509250929050565b6000806000806080858703121561434d57600080fd5b843593506020850135925060408501359150606085013567ffffffffffffffff81111561437957600080fd5b614385878288016141e5565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015614401576144016143c0565b500390565b60006020828403121561441857600080fd5b81516113dc81614181565b600181811c9082168061443757607f821691505b60208210811415614471577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156144af576144af6143c0565b500290565b600082198211156144c7576144c76143c0565b500190565b600082516144de8184602087016140d0565b7f5f4d564d5f53657175656e6365725f5772617070657200000000000000000000920191825250601601919050565b600064ffffffffff80831681851680830382111561452d5761452d6143c0565b01949350505050565b60006020828403121561454857600080fd5b5051919050565b600062ffffff80831681851681830481118215151615614571576145716143c0565b02949350505050565b600062ffffff80831681851680830382111561452d5761452d6143c0565b6000826145ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b8183823760009101908152919050565b828152600082516145fb8160208501602087016140d0565b919091016020019392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561463b5761463b6143c0565b5060010190565b600060ff821660ff84168060ff0382111561465f5761465f6143c0565b019392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220b865b1352f49fb7dbbf6ba69c7849a98a4245ea8715f098bfa725a02c522205364736f6c63430008090033

Deployed Bytecode

0x6080604052600436106102335760003560e01c80637600fa1211610138578063a6a56da5116100b0578063d6a97a341161007f578063f137391611610064578063f137391614610653578063f1e7746114610673578063f6f24f671461069357600080fd5b8063d6a97a3414610629578063dcd836161461063e57600080fd5b8063a6a56da5146105b6578063a8cda37b146105c9578063b357ab92146105de578063d5fb60d9146105f457600080fd5b806386e4206e116101075780639447fe88116100ec5780639447fe88146105505780639b19251a14610566578063a5f5e7191461059657600080fd5b806386e4206e146105105780638d14e1271461053057600080fd5b80637600fa121461049a5780637f9c9777146104ba57806381147877146104da57806383cbbb6d146104f057600080fd5b80633ac19597116101cb5780634e74b1551161019a57806361f4edea1161017f57806361f4edea146103e6578063669fdeb5146104145780636f9170f61461046a57600080fd5b80634e74b155146103bc5780635e7ce13a146103d157600080fd5b80633ac1959714610351578063461a44781461037157806348406b861461039157806348f24165146103a757600080fd5b8063279f9b1111610207578063279f9b11146102a9578063299ca478146102c957806335005ffb1461031b57806338897fdd1461033b57600080fd5b806213c63d1461023857806302adf2d61461025c578063167c705014610271578063172e218d14610287575b600080fd5b34801561024457600080fd5b506002545b6040519081526020015b60405180910390f35b34801561026857600080fd5b50600454610249565b34801561027d57600080fd5b5061024960045481565b34801561029357600080fd5b506102a76102a2366004613f0f565b6106a9565b005b3480156102b557600080fd5b506102a76102c4366004613f4e565b610928565b3480156102d557600080fd5b506000546102f69073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610253565b34801561032757600080fd5b506102a7610336366004613f7a565b610db2565b34801561034757600080fd5b5061024960015481565b34801561035d57600080fd5b506102a761036c366004613f7a565b610f5d565b34801561037d57600080fd5b506102f661038c366004614087565b611066565b34801561039d57600080fd5b5061024960065481565b3480156103b357600080fd5b50600654610249565b3480156103c857600080fd5b50600354610249565b3480156103dd57600080fd5b50600554610249565b3480156103f257600080fd5b50610406610401366004613f4e565b611113565b60405161025392919061414a565b34801561042057600080fd5b5061045d6040518060400160405280600d81526020017f4d455449535f4d414e414745520000000000000000000000000000000000000081525081565b604051610253919061416e565b34801561047657600080fd5b5061048a6104853660046141a6565b6112ad565b6040519015158152602001610253565b3480156104a657600080fd5b506102496104b53660046141c3565b6112e9565b3480156104c657600080fd5b506102a76104d5366004613f7a565b6113e3565b3480156104e657600080fd5b5061024960055481565b3480156104fc57600080fd5b506102a761050b366004614205565b61158e565b34801561051c57600080fd5b506102a761052b366004613f7a565b611af3565b34801561053c57600080fd5b506102a761054b366004614302565b611c9e565b34801561055c57600080fd5b5061024960025481565b34801561057257600080fd5b5061048a6105813660046141a6565b60086020526000908152604090205460ff1681565b3480156105a257600080fd5b506102a76105b1366004613f7a565b611de4565b6102a76105c4366004613f4e565b611eed565b3480156105d557600080fd5b506102a7612596565b3480156105ea57600080fd5b5061024960035481565b34801561060057600080fd5b5061061461060f366004614337565b612a62565b60408051928352901515602083015201610253565b34801561063557600080fd5b50600154610249565b34801561064a57600080fd5b506102a7612baa565b34801561065f57600080fd5b506102a761066e366004613f7a565b612cba565b34801561067f57600080fd5b506102a761068e366004614337565b612e65565b34801561069f57600080fd5b5061024961070881565b6106e76040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107b25760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000848152600c6020908152604080832085845290915290206003015461081b5760405162461bcd60e51b815260206004820152601660248201527f7478206461746120646f6573206e6f742065786973740000000000000000000060448201526064016107a9565b6000848152600c6020908152604080832085845290915290206002015483146108865760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e646578000000000000000000000060448201526064016107a9565b6000848152600c6020908152604080832085845290915290206005015460ff16151581151514156108f95760405162461bcd60e51b815260206004820152601a60248201527f766572696669656420737461747573206e6f74206368616e676500000000000060448201526064016107a9565b6000938452600c602090815260408086209386529290529220600501805460ff19169215159290921790915550565b6000838152600b602090815260408083208484529091529020600301546109b75760405162461bcd60e51b815260206004820152602660248201527f7468657265206973206e6f207374616b6520666f72207468697320626174636860448201527f20696e646578000000000000000000000000000000000000000000000000000060648201526084016107a9565b6000838152600b60209081526040808320848452909152902060050154610a205760405162461bcd60e51b815260206004820152601460248201527f7374616b6520616d6f756e74206973207a65726f00000000000000000000000060448201526064016107a9565b6000838152600b6020908152604080832084845290915281206006015460ff166003811115610a5157610a51614391565b14610a9e5760405162461bcd60e51b815260206004820152601b60248201527f7769746864726177616c7320617265206e6f7420616c6c6f776564000000000060448201526064016107a9565b6000838152600b6020908152604080832084845290915290205473ffffffffffffffffffffffffffffffffffffffff163314610b1c5760405162461bcd60e51b815260206004820152601e60248201527f63616e206e6f74207769746864726177206f746865722773207374616b65000060448201526064016107a9565b6000838152600b602090815260408083208484529091529020600401544211610bad5760405162461bcd60e51b815260206004820152602960248201527f63616e206e6f7420776974686472617720647572696e67207375626d6974207060448201527f726f74656374696f6e000000000000000000000000000000000000000000000060648201526084016107a9565b33600090815260096020908152604080832054868452600b8352818420858552909252909120600501541115610c255760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e74207374616b65000000000000000000000000000060448201526064016107a9565b6000838152600b60209081526040808320848452909152902060050154471015610c915760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e636500000000000000000000000060448201526064016107a9565b6000838152600b60209081526040808320848452825280832060068101805460ff191660031790556005015433845260099092528220805491929091610cd89084906143ef565b90915550506000838152600b602090815260408083208484529091528082206005015490513391908381818185875af1925050503d8060008114610d38576040519150601f19603f3d011682016040523d82523d6000602084013e610d3d565b606091505b5050905080610d8e5760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e636500000000000000000000000060448201526064016107a9565b506000928352600b6020908152604080852092855291905282206005019190915550565b610df06040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610eb65760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4016107a9565b60008111610f065760405162461bcd60e51b815260206004820152601660248201527f736c6963652073697a652073686f756c6420677420300000000000000000000060448201526064016107a9565b600154811415610f585760405162461bcd60e51b815260206004820152601a60248201527f736c6963652073697a6520686173206e6f74206368616e67656400000000000060448201526064016107a9565b600155565b610f9b6040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110615760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4016107a9565b600655565b600080546040517fbf40fac100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063bf40fac1906110bd90859060040161416e565b60206040518083038186803b1580156110d557600080fd5b505afa1580156110e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110d9190614406565b92915050565b6000838152600c60209081526040808320848452909152812060030154606091906111805760405162461bcd60e51b815260206004820152601660248201527f7478206461746120646f6573206e6f742065786973740000000000000000000060448201526064016107a9565b6000858152600c6020908152604080832086845290915290206002015484146111eb5760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e646578000000000000000000000060448201526064016107a9565b6000858152600c602090815260408083208684529091529020600581015460049091018054909160ff1690829061122190614423565b80601f016020809104026020016040519081016040528092919081815260200182805461124d90614423565b801561129a5780601f1061126f5761010080835404028352916020019161129a565b820191906000526020600020905b81548152906001019060200180831161127d57829003601f168201915b5050505050915091509150935093915050565b60075460009060ff16158061110d57505073ffffffffffffffffffffffffffffffffffffffff1660009081526008602052604090205460ff1690565b6000806003541161133c5760405162461bcd60e51b815260206004820152601e60248201527f7374616b65206261736520636f7374206e6f7420636f6e66696720796574000060448201526064016107a9565b6000838152600a602090815260408083208584529091529020600201546113a55760405162461bcd60e51b815260206004820152601c60248201527f626174636820656c656d656e7420646f6573206e6f742065786973740000000060448201526064016107a9565b6006546000848152600a602090815260408083208684529091529020600101546113cf9190614477565b6003546113dc91906144b4565b9392505050565b6114216040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146114e75760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4016107a9565b600081116115375760405162461bcd60e51b815260206004820152601760248201527f736c69636520636f756e742073686f756c64206774203000000000000000000060448201526064016107a9565b6004548114156115895760405162461bcd60e51b815260206004820152601b60248201527f736c69636520636f756e7420686173206e6f74206368616e676564000000000060448201526064016107a9565b600455565b6115be61159a8861348f565b6040516020016115aa91906144cc565b604051602081830303815290604052611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461165e5760405162461bcd60e51b815260206004820152602d60248201527f46756e6374696f6e2063616e206f6e6c792062652063616c6c6564206279207460448201527f68652053657175656e6365722e0000000000000000000000000000000000000060648201526084016107a9565b6000878152600b602090815260408083208884529091529020600301546116ed5760405162461bcd60e51b815260206004820152602760248201527f7468657265206973206e6f207374616b6520666f72207468697320626c6f636b60448201527f206e756d6265720000000000000000000000000000000000000000000000000060648201526084016107a9565b6000878152600b6020908152604080832088845290915290206002015486146117585760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e646578000000000000000000000060448201526064016107a9565b6000878152600b6020908152604080832088845290915281206006015460ff16600381111561178957611789614391565b146117d65760405162461bcd60e51b815260206004820152601560248201527f6e6f7420616c6c6f77656420746f207375626d6974000000000000000000000060448201526064016107a9565b6117e78787878787878760016135ec565b6000878152600b6020908152604080832088845290915281206006015460ff16600381111561181857611818614391565b1415611a75576000878152600b60209081526040808320888452808352818420805473ffffffffffffffffffffffffffffffffffffffff1685526009845291842054938990529091526005015411156118b35760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e74207374616b65000000000000000000000000000060448201526064016107a9565b6000878152600b6020908152604080832088845290915290206005015447101561191f5760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e636500000000000000000000000060448201526064016107a9565b6000878152600b60209081526040808320888452909152902060068101805460ff191660011790556005015415611a75576000878152600b6020908152604080832088845282528083206005810154905473ffffffffffffffffffffffffffffffffffffffff168452600990925282208054919290916119a09084906143ef565b90915550506000878152600b602090815260408083208884529091528082206005015490513391908381818185875af1925050503d8060008114611a00576040519150601f19603f3d011682016040523d82523d6000602084013e611a05565b606091505b5050905080611a565760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e636500000000000000000000000060448201526064016107a9565b506000878152600b602090815260408083208884529091528120600501555b6000878152600b602090815260408083208884528252918290206005015482513381529182018a9052818301899052606082018890526080820152600160a0820181905260c082015290517ffa136ae724a018470beba9749c1fdfb83177d6bd6aaaab35d6dbfde739e509109181900360e00190a150505050505050565b611b316040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611bf75760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4016107a9565b60008111611c475760405162461bcd60e51b815260206004820152601660248201527f62617463682073697a652073686f756c6420677420300000000000000000000060448201526064016107a9565b600554811415611c995760405162461bcd60e51b815260206004820152601a60248201527f62617463682073697a6520686173206e6f74206368616e67656400000000000060448201526064016107a9565b600555565b611cdc6040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611da25760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4016107a9565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600860205260409020805491151560ff19928316179055600780549091166001179055565b611e226040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ee85760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4016107a9565b600355565b611ef6336112ad565b611f685760405162461bcd60e51b815260206004820152602360248201527f6f6e6c792077686974656c6973746564207665726966696572732063616e206360448201527f616c6c000000000000000000000000000000000000000000000000000000000060648201526084016107a9565b346000611f7585856112e9565b9050600060035411611fc95760405162461bcd60e51b815260206004820152601e60248201527f7374616b65206261736520636f7374206e6f7420636f6e66696720796574000060448201526064016107a9565b8181146120185760405162461bcd60e51b815260206004820152601460248201527f7374616b6520636f737420696e636f727265637400000000000000000000000060448201526064016107a9565b6000600254116120905760405162461bcd60e51b815260206004820152602760248201527f73657175656e636572207375626d6974207365636f6e6473206e6f7420636f6e60448201527f666967207965740000000000000000000000000000000000000000000000000060648201526084016107a9565b6000858152600a602090815260408083208784529091529020600201546120f95760405162461bcd60e51b815260206004820152601c60248201527f626174636820656c656d656e7420646f6573206e6f742065786973740000000060448201526064016107a9565b6000858152600a6020908152604080832087845290915290205483906121359064ffffffffff81169065010000000000900462ffffff1661450d565b64ffffffffff161015801561216957506000858152600a6020908152604080832087845290915290205464ffffffffff1683115b6121db5760405162461bcd60e51b815260206004820152602160248201527f626c6f636b206e756d626572206973206e6f7420696e2074686973206261746360448201527f680000000000000000000000000000000000000000000000000000000000000060648201526084016107a9565b6000858152600b60209081526040808320868452909152902060030154156122a35760036000868152600b6020908152604080832087845290915290206006015460ff16600381111561223057612230614391565b146122a35760405162461bcd60e51b815260206004820152602560248201527f74686572652069732061207374616b6520666f7220746869732062617463682060448201527f696e64657800000000000000000000000000000000000000000000000000000060648201526084016107a9565b60006122e36040518060400160405280601481526020017f5374617465436f6d6d69746d656e74436861696e000000000000000000000000815250611066565b9050428173ffffffffffffffffffffffffffffffffffffffff1663c17b291b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561232c57600080fd5b505afa158015612340573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123649190614536565b6000888152600a602090815260408083208a845290915290206004015461238b91906144b4565b116123fe5760405162461bcd60e51b815260206004820152602e60248201527f746865206261746368206973206f757473696465206f6620746865206672617560448201527f642070726f6f662077696e646f7700000000000000000000000000000000000060648201526084016107a9565b6040518060e001604052803373ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018681526020014281526020016002544261244591906144b4565b815260208101859052604001600090526000878152600b60209081526040808320888452825291829020835181547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9091161781559083015160018083019190915591830151600282015560608301516003808301919091556080840151600483015560a0840151600583015560c084015160068301805493949193909260ff199091169190849081111561251257612512614391565b021790555050336000908152600960205260408120805486935090919061253a9084906144b4565b9091555050604080513381526020810188905290810186905260608101859052608081018490527f918b3eda1688b2f6d3e6d173db1ec863e43f4d1c369d647b1912b0df8be5f12f9060a00160405180910390a1505050505050565b60043560243560d81c60293560e890811c90602c35901c60003681806125be61159a8961348f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461265e5760405162461bcd60e51b815260206004820152602d60248201527f46756e6374696f6e2063616e206f6e6c792062652063616c6c6564206279207460448201527f68652053657175656e6365722e0000000000000000000000000000000000000060648201526084016107a9565b600061266b86601061454f565b61267690602f61457a565b62ffffff169050808411156127155760006126928260076144b4565b905060006126a183600b6144b4565b600554843560cc1c9850833560e01c9650813595509091506126c4600287614598565b11156127125760405162461bcd60e51b815260206004820152601c60248201527f73697a65206f66207478206461746120697320746f6f206c617267650000000060448201526064016107a9565b50505b60006127556040518060400160405280601981526020017f43616e6f6e6963616c5472616e73616374696f6e436861696e00000000000000815250611066565b905060008173ffffffffffffffffffffffffffffffffffffffff1663cfdf677e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561279f57600080fd5b505afa1580156127b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127d79190614406565b6040517f576f2588000000000000000000000000000000000000000000000000000000008152600481018d905290915060009073ffffffffffffffffffffffffffffffffffffffff83169063576f25889060240160206040518083038186803b15801561284357600080fd5b505afa158015612857573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061287b9190614536565b90506000808473ffffffffffffffffffffffffffffffffffffffff166000366040516128a89291906145d3565b6000604051808303816000865af19150503d80600081146128e5576040519150601f19603f3d011682016040523d82523d6000602084013e6128ea565b606091505b50909250905081612902576040513d806000833e8082fd5b50506040518060c001604052808c64ffffffffff1681526020018b62ffffff16815260200187815260200189815260200186815260200142815250600a60008e8152602001908152602001600020600083815260200190815260200160002060008201518160000160006101000a81548164ffffffffff021916908364ffffffffff16021790555060208201518160000160056101000a81548162ffffff021916908362ffffff16021790555060408201518160010155606082015181600201556080820151816003015560a082015181600401559050507f77e48e0d46be115d5fe8dd03f4dbf8eb309c5fdc8ffdcbe6f8eaa5bd6c65aed98c828d8d8a8d8b604051612a4c9796959493929190968752602087019590955264ffffffffff93909316604086015262ffffff919091166060850152608084015260a083015260c082015260e00190565b60405180910390a1505050505050505050505050565b6000848152600c602090815260408083208584529091528120600301548190612acd5760405162461bcd60e51b815260206004820152601660248201527f7478206461746120646f6573206e6f742065786973740000000000000000000060448201526064016107a9565b6000868152600c602090815260408083208784529091529020600201548514612b385760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e646578000000000000000000000060448201526064016107a9565b8383604051602001612b4b9291906145e3565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291815281516020928301206000898152600c845282812088825290935291206005015490925060ff16905094509492505050565b612be86040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612cae5760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4016107a9565b6007805460ff19169055565b612cf86040518060400160405280600d81526020017f4d455449535f4d414e4147455200000000000000000000000000000000000000815250611066565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612dbe5760405162461bcd60e51b815260206004820152604b60248201527f4d564d5f43616e6f6e6963616c5472616e73616374696f6e3a2046756e63746960448201527f6f6e2063616e206f6e6c792062652063616c6c656420627920746865204d455460648201527f49535f4d414e414745522e000000000000000000000000000000000000000000608482015260a4016107a9565b60008111612e0e5760405162461bcd60e51b815260206004820152601360248201527f7365636f6e64732073686f756c6420677420300000000000000000000000000060448201526064016107a9565b600254811415612e605760405162461bcd60e51b815260206004820152601760248201527f7365636f6e647320686173206e6f74206368616e67656400000000000000000060448201526064016107a9565b600255565b612e7161159a8561348f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415612f125760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e2063616e206e6f742062652063616c6c656420627920746860448201527f652053657175656e6365722e000000000000000000000000000000000000000060648201526084016107a9565b6000848152600b60209081526040808320858452909152902060030154612fa15760405162461bcd60e51b815260206004820152602760248201527f7468657265206973206e6f207374616b6520666f72207468697320626c6f636b60448201527f206e756d6265720000000000000000000000000000000000000000000000000060648201526084016107a9565b6000848152600b60209081526040808320858452909152902060020154831461300c5760405162461bcd60e51b815260206004820152601560248201527f696e636f727265637420626174636820696e646578000000000000000000000060448201526064016107a9565b6000848152600b60209081526040808320858452909152902060040154421161309d5760405162461bcd60e51b815260206004820152603160248201527f63616e206e6f74207375626d697420647572696e672073657175656e6365722060448201527f7375626d69742070726f74656374696f6e00000000000000000000000000000060648201526084016107a9565b6000848152600b6020908152604080832085845290915290205473ffffffffffffffffffffffffffffffffffffffff163314613171576002546000858152600b6020908152604080832086845290915290206004015442916130fe916144b4565b106131715760405162461bcd60e51b815260206004820152602e60248201527f63616e206e6f74207375626d697420647572696e67207374616b65722073756260448201527f6d69742070726f74656374696f6e00000000000000000000000000000000000060648201526084016107a9565b6131ad84848484600080806040519080825280602002602001820160405280156131a5578160200160208202803683370190505b5060006135ec565b6000848152600b6020908152604080832085845290915281206006015460ff1660038111156131de576131de614391565b1415613413576000848152600b6020908152604080832085845280835281842060068101805460ff19166002179055805473ffffffffffffffffffffffffffffffffffffffff16808652600985529285205494879052925260059091015490911080159061326757506000858152600b6020908152604080832086845290915290206005015415155b15613411576000858152600b602090815260408083208684529091529020600501544710156132d85760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e636500000000000000000000000060448201526064016107a9565b6000858152600b6020908152604080832086845282528083206005015473ffffffffffffffffffffffffffffffffffffffff85168452600990925282208054919290916133269084906143ef565b90915550506000858152600b6020908152604080832086845290915280822060050154905173ffffffffffffffffffffffffffffffffffffffff841691908381818185875af1925050503d806000811461339c576040519150601f19603f3d011682016040523d82523d6000602084013e6133a1565b606091505b50509050806133f25760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e636500000000000000000000000060448201526064016107a9565b506000858152600b602090815260408083208684529091528120600501555b505b6000848152600b60209081526040808320858452825280832060050154815133815292830188905290820186905260608201859052608082015260a0810182905260c08101919091527ffa136ae724a018470beba9749c1fdfb83177d6bd6aaaab35d6dbfde739e509109060e00160405180910390a150505050565b6060816134cf57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156134f957806134e381614609565b91506134f29050600a83614598565b91506134d3565b60008167ffffffffffffffff81111561351457613514613f93565b6040519080825280601f01601f19166020018201604052801561353e576020820181803683370190505b509050815b85156135e3576135546001826143ef565b90506000613563600a88614598565b61356e90600a614477565b61357890886143ef565b613583906030614642565b905060008160f81b9050808484815181106135a0576135a0614667565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506135da600a89614598565b97505050613543565b50949350505050565b600085511161363d5760405162461bcd60e51b815260206004820152600a60248201527f656d70747920646174610000000000000000000000000000000000000000000060448201526064016107a9565b6000888152600a602090815260408083208a84529091529020600201546136a65760405162461bcd60e51b815260206004820152601c60248201527f626174636820656c656d656e7420646f6573206e6f742065786973740000000060448201526064016107a9565b6000888152600a602090815260408083208a845290915290205465010000000000900462ffffff166137405760405162461bcd60e51b815260206004820152603060248201527f626174636820746f74616c20656c656d656e7420746f20617070656e6420736860448201527f6f756c64206e6f74206265207a65726f0000000000000000000000000000000060648201526084016107a9565b6000888152600c602090815260408083208984529091529020600301541561393e576000888152600c6020908152604080832089845290915290206005015460ff16156137cf5760405162461bcd60e51b815260206004820152601060248201527f747820646174612076657269666965640000000000000000000000000000000060448201526064016107a9565b6000888152600c6020908152604080832089845290915290205473ffffffffffffffffffffffffffffffffffffffff163314613911576000888152600c60209081526040808320898452909152902060030154429061383190610708906144b4565b1161387e5760405162461bcd60e51b815260206004820152600d60248201527f696e207375626d697474696e670000000000000000000000000000000000000060448201526064016107a9565b6000888152600c60209081526040808320898452825290912080547fffffffffffffffffffffffff00000000000000000000000000000000000000001633178155600181018890556002810189905542600382015586516138e792600490920191880190613e61565b506000888152600c602090815260408083208984529091529020600501805460ff19169055613a0d565b6000888152600c60209081526040808320898452825290912086516138e792600490920191880190613e61565b6040805160c08101825233815260208082018981528284018b81524260608501908152608085018b8152600060a087018190528f8152600c86528781208e8252865296909620855181547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9091161781559251600184015590516002830155516003820155925180519293926139f09260048501920190613e61565b5060a091909101516005909101805460ff19169115159190911790555b8015613b055760008686604051602001613a289291906145e3565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152918152815160209283012060008c8152600a84528281208c825290935290822060030154909250613a879083888789613b0f565b9050600181151514613adb5760405162461bcd60e51b815260206004820152601560248201527f7478206461746120766572696679206661696c6564000000000000000000000060448201526064016107a9565b50506000888152600c602090815260408083208984529091529020600501805460ff191660011790555b5050505050505050565b6000808211613b865760405162461bcd60e51b815260206004820152603760248201527f4c69625f4d65726b6c65547265653a20546f74616c206c6561766573206d757360448201527f742062652067726561746572207468616e207a65726f2e00000000000000000060648201526084016107a9565b818410613bfa5760405162461bcd60e51b8152602060048201526024808201527f4c69625f4d65726b6c65547265653a20496e646578206f7574206f6620626f7560448201527f6e64732e0000000000000000000000000000000000000000000000000000000060648201526084016107a9565b613c0382613d7d565b835114613c9e5760405162461bcd60e51b815260206004820152604d60248201527f4c69625f4d65726b6c65547265653a20546f74616c207369626c696e6773206460448201527f6f6573206e6f7420636f72726563746c7920636f72726573706f6e6420746f2060648201527f746f74616c206c65617665732e00000000000000000000000000000000000000608482015260a4016107a9565b8460005b8451811015613d70578560011660011415613d0957848181518110613cc957613cc9614667565b602002602001015182604051602001613cec929190918252602082015260400190565b604051602081830303815290604052805190602001209150613d57565b81858281518110613d1c57613d1c614667565b6020026020010151604051602001613d3e929190918252602082015260400190565b6040516020818303038152906040528051906020012091505b60019590951c9480613d6881614609565b915050613ca2565b5090951495945050505050565b6000808211613df45760405162461bcd60e51b815260206004820152603060248201527f4c69625f4d65726b6c65547265653a2043616e6e6f7420636f6d70757465206360448201527f65696c286c6f675f3229206f6620302e0000000000000000000000000000000060648201526084016107a9565b8160011415613e0557506000919050565b81600060805b60018110613e435780613e21600180831b6143ef565b901b831615613e3b57613e3481836144b4565b92811c9291505b60011c613e0b565b506001811b84146113dc57613e596001826144b4565b949350505050565b828054613e6d90614423565b90600052602060002090601f016020900481019282613e8f5760008555613ed5565b82601f10613ea857805160ff1916838001178555613ed5565b82800160010185558215613ed5579182015b82811115613ed5578251825591602001919060010190613eba565b50613ee1929150613ee5565b5090565b5b80821115613ee15760008155600101613ee6565b80358015158114613f0a57600080fd5b919050565b60008060008060808587031215613f2557600080fd5b843593506020850135925060408501359150613f4360608601613efa565b905092959194509250565b600080600060608486031215613f6357600080fd5b505081359360208301359350604090920135919050565b600060208284031215613f8c57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561400957614009613f93565b604052919050565b600067ffffffffffffffff83111561402b5761402b613f93565b61405c60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601613fc2565b905082815283838301111561407057600080fd5b828260208301376000602084830101529392505050565b60006020828403121561409957600080fd5b813567ffffffffffffffff8111156140b057600080fd5b8201601f810184136140c157600080fd5b613e5984823560208401614011565b60005b838110156140eb5781810151838201526020016140d3565b838111156140fa576000848401525b50505050565b600081518084526141188160208601602086016140d0565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60408152600061415d6040830185614100565b905082151560208301529392505050565b6020815260006113dc6020830184614100565b73ffffffffffffffffffffffffffffffffffffffff811681146141a357600080fd5b50565b6000602082840312156141b857600080fd5b81356113dc81614181565b600080604083850312156141d657600080fd5b50508035926020909101359150565b600082601f8301126141f657600080fd5b6113dc83833560208501614011565b600080600080600080600060e0888a03121561422057600080fd5b87359650602080890135965060408901359550606089013567ffffffffffffffff8082111561424e57600080fd5b61425a8c838d016141e5565b965060808b0135955060a08b0135945060c08b013591508082111561427e57600080fd5b818b0191508b601f83011261429257600080fd5b8135818111156142a4576142a4613f93565b8060051b91506142b5848301613fc2565b818152918301840191848101908e8411156142cf57600080fd5b938501935b838510156142ed578435825293850193908501906142d4565b80965050505050505092959891949750929550565b6000806040838503121561431557600080fd5b823561432081614181565b915061432e60208401613efa565b90509250929050565b6000806000806080858703121561434d57600080fd5b843593506020850135925060408501359150606085013567ffffffffffffffff81111561437957600080fd5b614385878288016141e5565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015614401576144016143c0565b500390565b60006020828403121561441857600080fd5b81516113dc81614181565b600181811c9082168061443757607f821691505b60208210811415614471577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156144af576144af6143c0565b500290565b600082198211156144c7576144c76143c0565b500190565b600082516144de8184602087016140d0565b7f5f4d564d5f53657175656e6365725f5772617070657200000000000000000000920191825250601601919050565b600064ffffffffff80831681851680830382111561452d5761452d6143c0565b01949350505050565b60006020828403121561454857600080fd5b5051919050565b600062ffffff80831681851681830481118215151615614571576145716143c0565b02949350505050565b600062ffffff80831681851680830382111561452d5761452d6143c0565b6000826145ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b8183823760009101908152919050565b828152600082516145fb8160208501602087016140d0565b919091016020019392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561463b5761463b6143c0565b5060010190565b600060ff821660ff84168060ff0382111561465f5761465f6143c0565b019392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220b865b1352f49fb7dbbf6ba69c7849a98a4245ea8715f098bfa725a02c522205364736f6c63430008090033

Deployed Bytecode Sourcemap

90242:23195:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;95959:110;;;;;;;;;;-1:-1:-1;96046:15:0;;95959:110;;;160:25:1;;;148:2;133:18;95959:110:0;;;;;;;;95235:112;;;;;;;;;;-1:-1:-1;95323:16:0;;95235:112;;90995:31;;;;;;;;;;;;;;;;108602:598;;;;;;;;;;-1:-1:-1;108602:598:0;;;;;:::i;:::-;;:::i;:::-;;111305:1548;;;;;;;;;;-1:-1:-1;111305:1548:0;;;;;:::i;:::-;;:::i;5264:43::-;;;;;;;;;;-1:-1:-1;5264:43:0;;;;;;;;;;;1274:42:1;1262:55;;;1244:74;;1232:2;1217:18;5264:43:0;1072:252:1;94608:242:0;;;;;;;;;;-1:-1:-1;94608:242:0;;;;;:::i;:::-;;:::i;90692:30::-;;;;;;;;;;;;;;;;93925:157;;;;;;;;;;-1:-1:-1;93925:157:0;;;;;:::i;:::-;;:::i;5867:129::-;;;;;;;;;;-1:-1:-1;5867:129:0;;;;;:::i;:::-;;:::i;91180:28::-;;;;;;;;;;;;;;;;94090:106;;;;;;;;;;-1:-1:-1;94175:13:0;;94090:106;;93811;;;;;;;;;;-1:-1:-1;93896:13:0;;93811:106;;95593:102;;;;;;;;;;-1:-1:-1;95676:11:0;;95593:102;;107314:620;;;;;;;;;;-1:-1:-1;107314:620:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;90395:57::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;96077:139::-;;;;;;;;;;-1:-1:-1;96077:139:0;;;;;:::i;:::-;;:::i;:::-;;;4887:14:1;;4880:22;4862:41;;4850:2;4835:18;96077:139:0;4722:187:1;94204:396:0;;;;;;;;;;-1:-1:-1;94204:396:0;;;;;:::i;:::-;;:::i;94976:251::-;;;;;;;;;;-1:-1:-1;94976:251:0;;;;;:::i;:::-;;:::i;91073:26::-;;;;;;;;;;;;;;;;99239:2609;;;;;;;;;;-1:-1:-1;99239:2609:0;;;;;:::i;:::-;;:::i;95355:230::-;;;;;;;;;;-1:-1:-1;95355:230:0;;;;;:::i;:::-;;:::i;96224:164::-;;;;;;;;;;-1:-1:-1;96224:164:0;;;;;:::i;:::-;;:::i;90795:30::-;;;;;;;;;;;;;;;;91331:42;;;;;;;;;;-1:-1:-1;91331:42:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;93566:237;;;;;;;;;;-1:-1:-1;93566:237:0;;;;;:::i;:::-;;:::i;109208:2089::-;;;;;;:::i;:::-;;:::i;96499:2732::-;;;;;;;;;;;;;:::i;90906:28::-;;;;;;;;;;;;;;;;107942:652;;;;;;;;;;-1:-1:-1;107942:652:0;;;;;:::i;:::-;;:::i;:::-;;;;7904:25:1;;;7972:14;;7965:22;7960:2;7945:18;;7938:50;7877:18;107942:652:0;7736:258:1;94858:110:0;;;;;;;;;;-1:-1:-1;94945:15:0;;94858:110;;96396:95;;;;;;;;;;;;;:::i;95703:248::-;;;;;;;;;;-1:-1:-1;95703:248:0;;;;;:::i;:::-;;:::i;101856:2840::-;;;;;;;;;;-1:-1:-1;101856:2840:0;;;;;:::i;:::-;;:::i;90523:52::-;;;;;;;;;;;;90571:4;90523:52;;108602:598;92191:25;92199:16;;;;;;;;;;;;;;;;;92191:7;:25::i;:::-;92177:39;;:10;:39;;;92155:164;;;;-1:-1:-1;;;92155:164:0;;8201:2:1;92155:164:0;;;8183:21:1;8240:2;8220:18;;;8213:30;8279:34;8259:18;;;8252:62;8350:34;8330:18;;;8323:62;8422:13;8401:19;;;8394:42;8453:19;;92155:164:0;;;;;;;;;108833:21:::1;::::0;;;:11:::1;:21;::::0;;;;;;;:35;;;;;;;;:45:::1;;::::0;108825:85:::1;;;::::0;-1:-1:-1;;;108825:85:0;;8685:2:1;108825:85:0::1;::::0;::::1;8667:21:1::0;8724:2;8704:18;;;8697:30;8763:24;8743:18;;;8736:52;8805:18;;108825:85:0::1;8483:346:1::0;108825:85:0::1;108929:21;::::0;;;:11:::1;:21;::::0;;;;;;;:35;;;;;;;;:46:::1;;::::0;:61;::::1;108921:95;;;::::0;-1:-1:-1;;;108921:95:0;;9036:2:1;108921:95:0::1;::::0;::::1;9018:21:1::0;9075:2;9055:18;;;9048:30;9114:23;9094:18;;;9087:51;9155:18;;108921:95:0::1;8834:345:1::0;108921:95:0::1;109035:21;::::0;;;:11:::1;:21;::::0;;;;;;;:35;;;;;;;;:44:::1;;::::0;::::1;;:57;;::::0;::::1;;;;109027:96;;;::::0;-1:-1:-1;;;109027:96:0;;9386:2:1;109027:96:0::1;::::0;::::1;9368:21:1::0;9425:2;9405:18;;;9398:30;9464:28;9444:18;;;9437:56;9510:18;;109027:96:0::1;9184:350:1::0;109027:96:0::1;109136:21;::::0;;;:11:::1;:21;::::0;;;;;;;:35;;;;;;;;:44:::1;;:56:::0;;-1:-1:-1;;109136:56:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;-1:-1:-1;108602:598:0:o;111305:1548::-;111541:1;111481:33;;;:23;:33;;;;;;;;:47;;;;;;;;:57;;;111473:112;;;;-1:-1:-1;;;111473:112:0;;9741:2:1;111473:112:0;;;9723:21:1;9780:2;9760:18;;;9753:30;9819:34;9799:18;;;9792:62;9890:8;9870:18;;;9863:36;9916:19;;111473:112:0;9539:402:1;111473:112:0;111661:1;111604:33;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;;111596:91;;;;-1:-1:-1;;;111596:91:0;;10148:2:1;111596:91:0;;;10130:21:1;10187:2;10167:18;;;10160:30;10226:22;10206:18;;;10199:50;10266:18;;111596:91:0;9946:344:1;111596:91:0;111764:16;111706:33;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;;;;:74;;;;;;;;:::i;:::-;;111698:114;;;;-1:-1:-1;;;111698:114:0;;10686:2:1;111698:114:0;;;10668:21:1;10725:2;10705:18;;;10698:30;10764:29;10744:18;;;10737:57;10811:18;;111698:114:0;10484:351:1;111698:114:0;111831:33;;;;:23;:33;;;;;;;;:47;;;;;;;;:54;:68;:54;111889:10;111831:68;111823:111;;;;-1:-1:-1;;;111823:111:0;;11042:2:1;111823:111:0;;;11024:21:1;11081:2;11061:18;;;11054:30;11120:32;11100:18;;;11093:60;11170:18;;111823:111:0;10840:354:1;111823:111:0;111953:33;;;;:23;:33;;;;;;;;:47;;;;;;;;:55;;;112011:15;-1:-1:-1;111945:127:0;;;;-1:-1:-1;;;111945:127:0;;11401:2:1;111945:127:0;;;11383:21:1;11440:2;11420:18;;;11413:30;11479:34;11459:18;;;11452:62;11550:11;11530:18;;;11523:39;11579:19;;111945:127:0;11199:405:1;111945:127:0;112164:10;112149:26;;;;:14;:26;;;;;;;;;112091:33;;;:23;:33;;;;;:47;;;;;;;;;:54;;;:84;;112083:115;;;;-1:-1:-1;;;112083:115:0;;11811:2:1;112083:115:0;;;11793:21:1;11850:2;11830:18;;;11823:30;11889:20;11869:18;;;11862:48;11927:18;;112083:115:0;11609:342:1;112083:115:0;112233:33;;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;;112291:21;-1:-1:-1;112233:79:0;112211:149;;;;-1:-1:-1;;;112211:149:0;;12158:2:1;112211:149:0;;;12140:21:1;12197:2;12177:18;;;12170:30;12236:22;12216:18;;;12209:50;12276:18;;112211:149:0;11956:344:1;112211:149:0;112371:33;;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;;:76;;-1:-1:-1;;112371:76:0;112428:19;112371:76;;;112488:54;;;112473:10;112458:26;;:14;:26;;;;;:84;;112488:54;;112458:26;;:84;;112488:54;;112458:84;:::i;:::-;;;;-1:-1:-1;;112616:12:0;112666:33;;;:23;:33;;;;;;;;:47;;;;;;;;;:54;;;112634:91;;112642:10;;112666:54;112616:12;112634:91;112616:12;112634:91;112666:54;112642:10;112634:91;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;112615:110;;;112744:7;112736:40;;;;-1:-1:-1;;;112736:40:0;;12158:2:1;112736:40:0;;;12140:21:1;12197:2;12177:18;;;12170:30;12236:22;12216:18;;;12209:50;12276:18;;112736:40:0;11956:344:1;112736:40:0;-1:-1:-1;112844:1:0;112787:33;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;:58;;;;-1:-1:-1;111305:1548:0:o;94608:242::-;92191:25;92199:16;;;;;;;;;;;;;;;;;92191:7;:25::i;:::-;92177:39;;:10;:39;;;92155:164;;;;-1:-1:-1;;;92155:164:0;;8201:2:1;92155:164:0;;;8183:21:1;8240:2;8220:18;;;8213:30;8279:34;8259:18;;;8252:62;8350:34;8330:18;;;8323:62;8422:13;8401:19;;;8394:42;8453:19;;92155:164:0;7999:479:1;92155:164:0;94706:1:::1;94698:5;:9;94690:44;;;::::0;-1:-1:-1;;;94690:44:0;;13036:2:1;94690:44:0::1;::::0;::::1;13018:21:1::0;13075:2;13055:18;;;13048:30;13114:24;13094:18;;;13087:52;13156:18;;94690:44:0::1;12834:346:1::0;94690:44:0::1;94762:15;;94753:5;:24;;94745:63;;;::::0;-1:-1:-1;;;94745:63:0;;13387:2:1;94745:63:0::1;::::0;::::1;13369:21:1::0;13426:2;13406:18;;;13399:30;13465:28;13445:18;;;13438:56;13511:18;;94745:63:0::1;13185:350:1::0;94745:63:0::1;94819:15;:23:::0;94608:242::o;93925:157::-;92191:25;92199:16;;;;;;;;;;;;;;;;;92191:7;:25::i;:::-;92177:39;;:10;:39;;;92155:164;;;;-1:-1:-1;;;92155:164:0;;8201:2:1;92155:164:0;;;8183:21:1;8240:2;8220:18;;;8213:30;8279:34;8259:18;;;8252:62;8350:34;8330:18;;;8323:62;8422:13;8401:19;;;8394:42;8453:19;;92155:164:0;7999:479:1;92155:164:0;94044:13:::1;:30:::0;93925:157::o;5867:129::-;5926:7;5953:17;;:35;;;;;:17;;;;;:28;;:35;;5982:5;;5953:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5946:42;5867:129;-1:-1:-1;;5867:129:0:o;107314:620::-;107549:13;107598:21;;;:11;:21;;;;;;;;:35;;;;;;;;:45;;;107515:19;;107549:13;107590:85;;;;-1:-1:-1;;;107590:85:0;;8685:2:1;107590:85:0;;;8667:21:1;8724:2;8704:18;;;8697:30;8763:24;8743:18;;;8736:52;8805:18;;107590:85:0;8483:346:1;107590:85:0;107694:21;;;;:11;:21;;;;;;;;:35;;;;;;;;:46;;;:61;;107686:95;;;;-1:-1:-1;;;107686:95:0;;9036:2:1;107686:95:0;;;9018:21:1;9075:2;9055:18;;;9048:30;9114:23;9094:18;;;9087:51;9155:18;;107686:95:0;8834:345:1;107686:95:0;107814:21;;;;:11;:21;;;;;;;;:35;;;;;;;;107871:44;;;;107814:42;;;;107792:134;;107814:42;;107871:44;;;107814:42;;107792:134;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107314:620;;;;;;:::o;96077:139::-;96172:12;;96148:4;;96172:12;;96171:13;;:37;;-1:-1:-1;;96188:20:0;;;;;;:9;:20;;;;;;;;;96077:139::o;94204:396::-;94302:7;94346:1;94330:13;;:17;94322:60;;;;-1:-1:-1;;;94322:60:0;;14440:2:1;94322:60:0;;;14422:21:1;14479:2;14459:18;;;14452:30;14518:32;14498:18;;;14491:60;14568:18;;94322:60:0;14238:354:1;94322:60:0;94456:1;94401:27;;;:17;:27;;;;;;;;:40;;;;;;;;:52;;;94393:97;;;;-1:-1:-1;;;94393:97:0;;14799:2:1;94393:97:0;;;14781:21:1;14838:2;14818:18;;;14811:30;14877;14857:18;;;14850:58;14925:18;;94393:97:0;14597:352:1;94393:97:0;94579:13;;94524:27;;;;:17;:27;;;;;;;;:40;;;;;;;;:52;;;:68;;94579:13;94524:68;:::i;:::-;94508:13;;:84;;;;:::i;:::-;94501:91;94204:396;-1:-1:-1;;;94204:396:0:o;94976:251::-;92191:25;92199:16;;;;;;;;;;;;;;;;;92191:7;:25::i;:::-;92177:39;;:10;:39;;;92155:164;;;;-1:-1:-1;;;92155:164:0;;8201:2:1;92155:164:0;;;8183:21:1;8240:2;8220:18;;;8213:30;8279:34;8259:18;;;8252:62;8350:34;8330:18;;;8323:62;8422:13;8401:19;;;8394:42;8453:19;;92155:164:0;7999:479:1;92155:164:0;95077:1:::1;95068:6;:10;95060:46;;;::::0;-1:-1:-1;;;95060:46:0;;15522:2:1;95060:46:0::1;::::0;::::1;15504:21:1::0;15561:2;15541:18;;;15534:30;15600:25;15580:18;;;15573:53;15643:18;;95060:46:0::1;15320:347:1::0;95060:46:0::1;95135:16;;95125:6;:26;;95117:66;;;::::0;-1:-1:-1;;;95117:66:0;;15874:2:1;95117:66:0::1;::::0;::::1;15856:21:1::0;15913:2;15893:18;;;15886:30;15952:29;15932:18;;;15925:57;15999:18;;95117:66:0::1;15672:351:1::0;95117:66:0::1;95194:16;:25:::0;94976:251::o;99239:2609::-;99575:78;99607:18;99616:8;99607;:18::i;:::-;99590:61;;;;;;;;:::i;:::-;;;;;;;;;;;;;99575:7;:78::i;:::-;99561:92;;:10;:92;;;99539:187;;;;-1:-1:-1;;;99539:187:0;;16696:2:1;99539:187:0;;;16678:21:1;16735:2;16715:18;;;16708:30;16774:34;16754:18;;;16747:62;16845:15;16825:18;;;16818:43;16878:19;;99539:187:0;16494:409:1;99539:187:0;99829:1;99769:33;;;:23;:33;;;;;;;;:47;;;;;;;;:57;;;99761:113;;;;-1:-1:-1;;;99761:113:0;;17110:2:1;99761:113:0;;;17092:21:1;17149:2;17129:18;;;17122:30;17188:34;17168:18;;;17161:62;17259:9;17239:18;;;17232:37;17286:19;;99761:113:0;16908:403:1;99761:113:0;99893:33;;;;:23;:33;;;;;;;;:47;;;;;;;;:58;;;:73;;99885:107;;;;-1:-1:-1;;;99885:107:0;;9036:2:1;99885:107:0;;;9018:21:1;9075:2;9055:18;;;9048:30;9114:23;9094:18;;;9087:51;9155:18;;99885:107:0;8834:345:1;99885:107:0;100069:16;100011:33;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;;;;:74;;;;;;;;:::i;:::-;;100003:108;;;;-1:-1:-1;;;100003:108:0;;17518:2:1;100003:108:0;;;17500:21:1;17557:2;17537:18;;;17530:30;17596:23;17576:18;;;17569:51;17637:18;;100003:108:0;17316:345:1;100003:108:0;100319:101;100335:8;100345:11;100358:12;100372:5;100379:10;100391:12;100406:6;100415:4;100319:15;:101::i;:::-;100495:16;100437:33;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;;;;:74;;;;;;;;:::i;:::-;;100433:1157;;;100612:70;100627:33;;;:23;:33;;;;;;;;:47;;;;;;;;;:54;;;;100612:70;;:14;:70;;;;;;100554:47;;;;;;;:54;;;:128;;100528:208;;;;-1:-1:-1;;;100528:208:0;;11811:2:1;100528:208:0;;;11793:21:1;11850:2;11830:18;;;11823:30;11889:20;11869:18;;;11862:48;11927:18;;100528:208:0;11609:342:1;100528:208:0;100777:33;;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;;100835:21;-1:-1:-1;100777:79:0;100751:161;;;;-1:-1:-1;;;100751:161:0;;12158:2:1;100751:161:0;;;12140:21:1;12197:2;12177:18;;;12170:30;12236:22;12216:18;;;12209:50;12276:18;;100751:161:0;11956:344:1;100751:161:0;100927:33;;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;;:76;;-1:-1:-1;;100927:76:0;100984:19;100927:76;;;101022:54;;;:58;101018:561;;101174:33;;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;;;101115;;;;101100:70;;:14;:70;;;;;:128;;101174:54;;101100:70;;:128;;101174:54;;101100:128;:::i;:::-;;;;-1:-1:-1;;101318:12:0;101368:33;;;:23;:33;;;;;;;;:47;;;;;;;;;:54;;;101336:91;;101344:10;;101368:54;101318:12;101336:91;101318:12;101336:91;101368:54;101344:10;101336:91;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101317:110;;;101454:7;101446:40;;;;-1:-1:-1;;;101446:40:0;;12158:2:1;101446:40:0;;;12140:21:1;12197:2;12177:18;;;12170:30;12236:22;12216:18;;;12209:50;12276:18;;101446:40:0;11956:344:1;101446:40:0;-1:-1:-1;101562:1:0;101505:33;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;:58;101018:561;101737:33;;;;:23;:33;;;;;;;;:47;;;;;;;;;:54;;;101607:233;;101636:10;17969:74:1;;18059:18;;;18052:34;;;18102:18;;;18095:34;;;18160:2;18145:18;;18138:34;;;18203:3;18188:19;;18181:35;101806:4:0;18247:3:1;18232:19;;18225:51;;;18307:3;18292:19;;18285:51;101607:233:0;;;;;;;17956:3:1;101607:233:0;;;99239:2609;;;;;;;:::o;95355:230::-;92191:25;92199:16;;;;;;;;;;;;;;;;;92191:7;:25::i;:::-;92177:39;;:10;:39;;;92155:164;;;;-1:-1:-1;;;92155:164:0;;8201:2:1;92155:164:0;;;8183:21:1;8240:2;8220:18;;;8213:30;8279:34;8259:18;;;8252:62;8350:34;8330:18;;;8323:62;8422:13;8401:19;;;8394:42;8453:19;;92155:164:0;7999:479:1;92155:164:0;95449:1:::1;95441:5;:9;95433:44;;;::::0;-1:-1:-1;;;95433:44:0;;18549:2:1;95433:44:0::1;::::0;::::1;18531:21:1::0;18588:2;18568:18;;;18561:30;18627:24;18607:18;;;18600:52;18669:18;;95433:44:0::1;18347:346:1::0;95433:44:0::1;95505:11;;95496:5;:20;;95488:59;;;::::0;-1:-1:-1;;;95488:59:0;;18900:2:1;95488:59:0::1;::::0;::::1;18882:21:1::0;18939:2;18919:18;;;18912:30;18978:28;18958:18;;;18951:56;19024:18;;95488:59:0::1;18698:350:1::0;95488:59:0::1;95558:11;:19:::0;95355:230::o;96224:164::-;92191:25;92199:16;;;;;;;;;;;;;;;;;92191:7;:25::i;:::-;92177:39;;:10;:39;;;92155:164;;;;-1:-1:-1;;;92155:164:0;;8201:2:1;92155:164:0;;;8183:21:1;8240:2;8220:18;;;8213:30;8279:34;8259:18;;;8252:62;8350:34;8330:18;;;8323:62;8422:13;8401:19;;;8394:42;8453:19;;92155:164:0;7999:479:1;92155:164:0;96319:20:::1;::::0;;::::1;;::::0;;;:9:::1;:20;::::0;;;;:31;;;::::1;;-1:-1:-1::0;;96319:31:0;;::::1;;::::0;;96361:12:::1;:19:::0;;;;::::1;96319:31:::0;96361:19:::1;::::0;;96224:164::o;93566:237::-;92191:25;92199:16;;;;;;;;;;;;;;;;;92191:7;:25::i;:::-;92177:39;;:10;:39;;;92155:164;;;;-1:-1:-1;;;92155:164:0;;8201:2:1;92155:164:0;;;8183:21:1;8240:2;8220:18;;;8213:30;8279:34;8259:18;;;8252:62;8350:34;8330:18;;;8323:62;8422:13;8401:19;;;8394:42;8453:19;;92155:164:0;7999:479:1;92155:164:0;93765:13:::1;:30:::0;93566:237::o;109208:2089::-;92391:25;92405:10;92391:13;:25::i;:::-;92383:73;;;;-1:-1:-1;;;92383:73:0;;19255:2:1;92383:73:0;;;19237:21:1;19294:2;19274:18;;;19267:30;19333:34;19313:18;;;19306:62;19404:5;19384:18;;;19377:33;19427:19;;92383:73:0;19053:399:1;92383:73:0;109436:9:::1;109418:15;109476:42;109496:8:::0;109506:11;109476:19:::1;:42::i;:::-;109456:62;;109553:1;109537:13;;:17;109529:60;;;::::0;-1:-1:-1;;;109529:60:0;;14440:2:1;109529:60:0::1;::::0;::::1;14422:21:1::0;14479:2;14459:18;;;14452:30;14518:32;14498:18;;;14491:60;14568:18;;109529:60:0::1;14238:354:1::0;109529:60:0::1;109621:7;109608:9;:20;109600:53;;;::::0;-1:-1:-1;;;109600:53:0;;19659:2:1;109600:53:0::1;::::0;::::1;19641:21:1::0;19698:2;19678:18;;;19671:30;19737:22;19717:18;;;19710:50;19777:18;;109600:53:0::1;19457:344:1::0;109600:53:0::1;109690:1;109672:15;;:19;109664:71;;;::::0;-1:-1:-1;;;109664:71:0;;20008:2:1;109664:71:0::1;::::0;::::1;19990:21:1::0;20047:2;20027:18;;;20020:30;20086:34;20066:18;;;20059:62;20157:9;20137:18;;;20130:37;20184:19;;109664:71:0::1;19806:403:1::0;109664:71:0::1;109846:1;109791:27:::0;;;:17:::1;:27;::::0;;;;;;;:40;;;;;;;;:52:::1;;::::0;109783:97:::1;;;::::0;-1:-1:-1;;;109783:97:0;;14799:2:1;109783:97:0::1;::::0;::::1;14781:21:1::0;14838:2;14818:18;;;14811:30;14877;14857:18;;;14850:58;14925:18;;109783:97:0::1;14597:352:1::0;109783:97:0::1;110036:27;::::0;;;:17:::1;:27;::::0;;;;;;;:40;;;;;;;;:61;110101:12;;109971:126:::1;::::0;110036:61:::1;::::0;::::1;::::0;109971:62;;::::1;;;:126;:::i;:::-;:142;;;;:222;;;;-1:-1:-1::0;110117:27:0::1;::::0;;;:17:::1;:27;::::0;;;;;;;:40;;;;;;;;:61;::::1;;:76:::0;-1:-1:-1;109971:222:0::1;109963:268;;;::::0;-1:-1:-1;;;109963:268:0;;20651:2:1;109963:268:0::1;::::0;::::1;20633:21:1::0;20690:2;20670:18;;;20663:30;20729:34;20709:18;;;20702:62;20800:3;20780:18;;;20773:31;20821:19;;109963:268:0::1;20449:397:1::0;109963:268:0::1;110306:1;110246:33:::0;;;:23:::1;:33;::::0;;;;;;;:47;;;;;;;;:57:::1;;::::0;:61;110242:221:::1;;110390:19;110332:33;::::0;;;:23:::1;:33;::::0;;;;;;;:47;;;;;;;;:54:::1;;::::0;::::1;;:77;::::0;::::1;;;;;;:::i;:::-;;110324:127;;;::::0;-1:-1:-1;;;110324:127:0;;21053:2:1;110324:127:0::1;::::0;::::1;21035:21:1::0;21092:2;21072:18;;;21065:30;21131:34;21111:18;;;21104:62;21202:7;21182:18;;;21175:35;21227:19;;110324:127:0::1;20851:401:1::0;110324:127:0::1;110499:31;110554;;;;;;;;;;;;;;;;;::::0;:7:::1;:31::i;:::-;110499:87;;110692:15;110658:10;:29;;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;110605:27;::::0;;;:17:::1;:27;::::0;;;;;;;:40;;;;;;;;:50:::1;;::::0;:84:::1;::::0;;::::1;:::i;:::-;:102;110597:161;;;::::0;-1:-1:-1;;;110597:161:0;;21648:2:1;110597:161:0::1;::::0;::::1;21630:21:1::0;21687:2;21667:18;;;21660:30;21726:34;21706:18;;;21699:62;21797:16;21777:18;;;21770:44;21831:19;;110597:161:0::1;21446:410:1::0;110597:161:0::1;110821:331;;;;;;;;110868:10;110821:331;;;;;;110906:12;110821:331;;;;110946:11;110821:331;;;;110985:15;110821:331;;;;111046:15;;111028;:33;;;;:::i;:::-;110821:331:::0;;::::1;::::0;::::1;::::0;;;;;-1:-1:-1;110821:331:0;;110771:33:::1;::::0;;;:23:::1;:33;::::0;;;;;;;:47;;;;;;;;;:381;;;;;::::1;;::::0;;::::1;;::::0;;;;::::1;::::0;-1:-1:-1;110771:381:0;;::::1;::::0;;;;;;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;::::0;;;;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;:47;;:381;;;;-1:-1:-1;;110771:381:0;;::::1;::::0;-1:-1:-1;110771:381:0;;;::::1;;;;;;:::i;:::-;;;::::0;;-1:-1:-1;;111178:10:0::1;111163:26;::::0;;;:14:::1;:26;::::0;;;;:37;;111193:7;;-1:-1:-1;111163:26:0;;;:37:::1;::::0;111193:7;;111163:37:::1;:::i;:::-;::::0;;;-1:-1:-1;;111218:71:0::1;::::0;;111232:10:::1;22120:74:1::0;;22225:2;22210:18;;22203:34;;;22253:18;;;22246:34;;;22311:2;22296:18;;22289:34;;;22354:3;22339:19;;22332:35;;;111218:71:0::1;::::0;22107:3:1;22092:19;111218:71:0::1;;;;;;;109407:1890;;;109208:2089:::0;;;:::o;96499:2732::-;96919:1;96906:15;96982:2;96969:16;96964:3;96960:26;97047:2;97034:16;97029:3;97025:26;;;;97112:2;97099:16;97090:26;;96567:16;96853:14;96567:16;;97173:78;97205:18;96906:15;97205:8;:18::i;97173:78::-;97159:92;;:10;:92;;;97137:187;;;;-1:-1:-1;;;97137:187:0;;16696:2:1;97137:187:0;;;16678:21:1;16735:2;16715:18;;;16708:30;16774:34;16754:18;;;16747:62;16845:15;16825:18;;;16818:43;16878:19;;97137:187:0;16494:409:1;97137:187:0;97335:13;97357:16;97362:11;97357:2;:16;:::i;:::-;97352:21;;:2;:21;:::i;:::-;97335:38;;;;97400:5;97388:9;:17;97384:591;;;97567:17;97587:9;97591:5;97587:1;:9;:::i;:::-;97567:29;-1:-1:-1;97611:15:0;97630:10;97635:5;97630:2;:10;:::i;:::-;97919:11;;97705:19;;97700:3;97696:29;;-1:-1:-1;97762:23:0;;97757:3;97753:33;;-1:-1:-1;97812:21:0;;;-1:-1:-1;97611:29:0;;-1:-1:-1;97905:10:0;97914:1;97753:33;97905:10;:::i;:::-;:25;;97897:66;;;;-1:-1:-1;;;97897:66:0;;23355:2:1;97897:66:0;;;23337:21:1;23394:2;23374:18;;;23367:30;23433;23413:18;;;23406:58;23481:18;;97897:66:0;23153:352:1;97897:66:0;97407:568;;97384:591;97987:11;98001:36;;;;;;;;;;;;;;;;;;:7;:36::i;:::-;97987:50;;98048:33;98111:3;98084:39;;;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;98157:36;;;;;;;;160:25:1;;;98048:77:0;;-1:-1:-1;98136:18:0;;98157:26;;;;;;133:18:1;;98157:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;98136:57;;98245:12;98259:19;98282:3;:8;;98291;;98282:18;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;98244:56:0;;-1:-1:-1;98244:56:0;-1:-1:-1;98319:16:0;98315:268;;98405:4;98399:11;98444:16;98505:4;98502:1;98497:3;98482:28;98544:4;98539:3;98532:17;98315:268;98204:390;;98665:328;;;;;;;;98716:20;98665:328;;;;;;98774:21;98665:328;;;;;;98833:6;98665:328;;;;98877:9;98665:328;;;;98924:4;98665:328;;;;98966:15;98665:328;;;98623:17;:27;98641:8;98623:27;;;;;;;;;;;:39;98651:10;98623:39;;;;;;;;;;;:370;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99011:212;99044:8;99067:10;99092:20;99127:21;99163:6;99184:9;99208:4;99011:212;;;;;;;;;;;24384:25:1;;;24440:2;24425:18;;24418:34;;;;24500:12;24488:25;;;;24483:2;24468:18;;24461:53;24562:8;24550:21;;;;24545:2;24530:18;;24523:49;24603:3;24588:19;;24581:35;24647:3;24632:19;;24625:35;24691:3;24676:19;;24669:35;24371:3;24356:19;;24073:637;99011:212:0;;;;;;;;96556:2675;;;;;;;;;;;;96499:2732::o;107942:652::-;108174:14;108252:21;;;:11;:21;;;;;;;;:35;;;;;;;;:45;;;108174:14;;108244:85;;;;-1:-1:-1;;;108244:85:0;;8685:2:1;108244:85:0;;;8667:21:1;8724:2;8704:18;;;8697:30;8763:24;8743:18;;;8736:52;8805:18;;108244:85:0;8483:346:1;108244:85:0;108348:21;;;;:11;:21;;;;;;;;:35;;;;;;;;:46;;;:61;;108340:95;;;;-1:-1:-1;;;108340:95:0;;9036:2:1;108340:95:0;;;9018:21:1;9075:2;9055:18;;;9048:30;9114:23;9094:18;;;9087:51;9155:18;;108340:95:0;8834:345:1;108340:95:0;108495:12;108509:5;108478:37;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;108468:48;;108478:37;108468:48;;;;108531:21;;;;:11;:21;;;;;:35;;;;;;;;:44;;;108468:48;;-1:-1:-1;108531:44:0;;;-1:-1:-1;107942:652:0;;;;;;;:::o;96396:95::-;92191:25;92199:16;;;;;;;;;;;;;;;;;92191:7;:25::i;:::-;92177:39;;:10;:39;;;92155:164;;;;-1:-1:-1;;;92155:164:0;;8201:2:1;92155:164:0;;;8183:21:1;8240:2;8220:18;;;8213:30;8279:34;8259:18;;;8252:62;8350:34;8330:18;;;8323:62;8422:13;8401:19;;;8394:42;8453:19;;92155:164:0;7999:479:1;92155:164:0;96463:12:::1;:20:::0;;-1:-1:-1;;96463:20:0::1;::::0;;96396:95::o;95703:248::-;92191:25;92199:16;;;;;;;;;;;;;;;;;92191:7;:25::i;:::-;92177:39;;:10;:39;;;92155:164;;;;-1:-1:-1;;;92155:164:0;;8201:2:1;92155:164:0;;;8183:21:1;8240:2;8220:18;;;8213:30;8279:34;8259:18;;;8252:62;8350:34;8330:18;;;8323:62;8422:13;8401:19;;;8394:42;8453:19;;92155:164:0;7999:479:1;92155:164:0;95807:1:::1;95796:8;:12;95788:44;;;::::0;-1:-1:-1;;;95788:44:0;;25268:2:1;95788:44:0::1;::::0;::::1;25250:21:1::0;25307:2;25287:18;;;25280:30;25346:21;25326:18;;;25319:49;25385:18;;95788:44:0::1;25066:343:1::0;95788:44:0::1;95863:15;;95851:8;:27;;95843:63;;;::::0;-1:-1:-1;;;95843:63:0;;25616:2:1;95843:63:0::1;::::0;::::1;25598:21:1::0;25655:2;25635:18;;;25628:30;25694:25;25674:18;;;25667:53;25737:18;;95843:63:0::1;25414:347:1::0;95843:63:0::1;95917:15;:26:::0;95703:248::o;101856:2840::-;102102:78;102134:18;102143:8;102134;:18::i;102102:78::-;102088:92;;:10;:92;;;;102066:186;;;;-1:-1:-1;;;102066:186:0;;25968:2:1;102066:186:0;;;25950:21:1;26007:2;25987:18;;;25980:30;26046:34;26026:18;;;26019:62;26117:14;26097:18;;;26090:42;26149:19;;102066:186:0;25766:408:1;102066:186:0;102355:1;102295:33;;;:23;:33;;;;;;;;:47;;;;;;;;:57;;;102287:113;;;;-1:-1:-1;;;102287:113:0;;17110:2:1;102287:113:0;;;17092:21:1;17149:2;17129:18;;;17122:30;17188:34;17168:18;;;17161:62;17259:9;17239:18;;;17232:37;17286:19;;102287:113:0;16908:403:1;102287:113:0;102419:33;;;;:23;:33;;;;;;;;:47;;;;;;;;:58;;;:73;;102411:107;;;;-1:-1:-1;;;102411:107:0;;9036:2:1;102411:107:0;;;9018:21:1;9075:2;9055:18;;;9048:30;9114:23;9094:18;;;9087:51;9155:18;;102411:107:0;8834:345:1;102411:107:0;102787:33;;;;:23;:33;;;;;;;;:47;;;;;;;;:55;;;102845:15;-1:-1:-1;102779:135:0;;;;-1:-1:-1;;;102779:135:0;;26381:2:1;102779:135:0;;;26363:21:1;26420:2;26400:18;;;26393:30;26459:34;26439:18;;;26432:62;26530:19;26510:18;;;26503:47;26567:19;;102779:135:0;26179:413:1;102779:135:0;102929:33;;;;:23;:33;;;;;;;;:47;;;;;;;;:54;:68;:54;102987:10;102929:68;102925:316;;103145:15;;103087:33;;;;:23;:33;;;;;;;;:47;;;;;;;;:55;;;103163:15;;103087:73;;;:::i;:::-;:91;103079:150;;;;-1:-1:-1;;;103079:150:0;;26799:2:1;103079:150:0;;;26781:21:1;26838:2;26818:18;;;26811:30;26877:34;26857:18;;;26850:62;26948:16;26928:18;;;26921:44;26982:19;;103079:150:0;26597:410:1;103079:150:0;103253:90;103269:8;103279:11;103292:12;103306:5;103313:1;;;103319:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;103319:16:0;;103337:5;103253:15;:90::i;:::-;103418:16;103360:33;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;;;;:74;;;;;;;;:::i;:::-;;103356:1080;;;103451:33;;;;:23;:33;;;;;;;;:47;;;;;;;;;:54;;;:81;;-1:-1:-1;;103451:81:0;103508:24;103451:81;;;103567:54;;;;103698:23;;;:14;:23;;;;;;103640:47;;;;;;:54;;;;;103567;;-1:-1:-1;103640:81:0;;;:143;;-1:-1:-1;103782:1:0;103725:33;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;;:58;;103640:143;103636:789;;;103834:33;;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;;103892:21;-1:-1:-1;103834:79:0;103804:173;;;;-1:-1:-1;;;103804:173:0;;12158:2:1;103804:173:0;;;12140:21:1;12197:2;12177:18;;;12170:30;12236:22;12216:18;;;12209:50;12276:18;;103804:173:0;11956:344:1;103804:173:0;104023:33;;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;;103996:23;;;;;:14;:23;;;;;:81;;104023:54;;103996:23;;:81;;104023:54;;103996:81;:::i;:::-;;;;-1:-1:-1;;104167:12:0;104214:33;;;:23;:33;;;;;;;;:47;;;;;;;;;:54;;;104185:88;;:21;;;;104214:54;104167:12;104185:88;104167:12;104185:88;104214:54;104185:21;:88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;104166:107;;;104300:7;104292:40;;;;-1:-1:-1;;;104292:40:0;;12158:2:1;104292:40:0;;;12140:21:1;12197:2;12177:18;;;12170:30;12236:22;12216:18;;;12209:50;12276:18;;104292:40:0;11956:344:1;104292:40:0;-1:-1:-1;104408:1:0;104351:33;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;:58;103636:789;103436:1000;103356:1080;104583:33;;;;:23;:33;;;;;;;;:47;;;;;;;;:54;;;104453:235;;104482:10;17969:74:1;;18059:18;;;18052:34;;;18102:18;;;18095:34;;;18160:2;18145:18;;18138:34;;;18203:3;18188:19;;18181:35;18247:3;18232:19;;18225:51;;;18307:3;18292:19;;18285:51;;;;104453:235:0;;17956:3:1;17941:19;104453:235:0;;;;;;;101856:2840;;;;:::o;112861:573::-;112911:27;112955:7;112951:50;;-1:-1:-1;;112979:10:0;;;;;;;;;;;;;;;;;;112861:573::o;112951:50::-;113020:2;113011:6;113052:69;113059:6;;113052:69;;113082:5;;;;:::i;:::-;;-1:-1:-1;113102:7:0;;-1:-1:-1;113107:2:0;113102:7;;:::i;:::-;;;113052:69;;;113131:17;113161:3;113151:14;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;113151:14:0;-1:-1:-1;113131:34:0;-1:-1:-1;113185:3:0;113199:198;113206:7;;113199:198;;113234:3;113236:1;113234;:3;:::i;:::-;113230:7;-1:-1:-1;113252:10:0;113282:7;113287:2;113282;:7;:::i;:::-;:12;;113292:2;113282:12;:::i;:::-;113277:17;;:2;:17;:::i;:::-;113266:29;;:2;:29;:::i;:::-;113252:44;;113311:9;113330:4;113323:12;;113311:24;;113360:2;113350:4;113355:1;113350:7;;;;;;;;:::i;:::-;;;;:12;;;;;;;;;;-1:-1:-1;113377:8:0;113383:2;113377:8;;:::i;:::-;;;113215:182;;113199:198;;;-1:-1:-1;113421:4:0;112861:573;-1:-1:-1;;;;112861:573:0:o;104704:2602::-;105034:1;105019:5;:12;:16;105011:39;;;;-1:-1:-1;;;105011:39:0;;27812:2:1;105011:39:0;;;27794:21:1;27851:2;27831:18;;;27824:30;27890:12;27870:18;;;27863:40;27920:18;;105011:39:0;27610:334:1;105011:39:0;105161:1;105106:27;;;:17;:27;;;;;;;;:40;;;;;;;;:52;;;105098:97;;;;-1:-1:-1;;;105098:97:0;;14799:2:1;105098:97:0;;;14781:21:1;14838:2;14818:18;;;14811:30;14877;14857:18;;;14850:58;14925:18;;105098:97:0;14597:352:1;105098:97:0;105279:1;105214:27;;;:17;:27;;;;;;;;:40;;;;;;;;:62;;;;;;105206:127;;;;-1:-1:-1;;;105206:127:0;;28151:2:1;105206:127:0;;;28133:21:1;28190:2;28170:18;;;28163:30;28229:34;28209:18;;;28202:62;28300:18;28280;;;28273:46;28336:19;;105206:127:0;27949:412:1;105206:127:0;105435:1;105387:21;;;:11;:21;;;;;;;;:35;;;;;;;;:45;;;:49;105383:1479;;105461:21;;;;:11;:21;;;;;;;;:35;;;;;;;;:44;;;;;:53;105453:82;;;;-1:-1:-1;;;105453:82:0;;28568:2:1;105453:82:0;;;28550:21:1;28607:2;28587:18;;;28580:30;28646:18;28626;;;28619:46;28682:18;;105453:82:0;28366:340:1;105453:82:0;105554:21;;;;:11;:21;;;;;;;;:35;;;;;;;;:42;:56;:42;105600:10;105554:56;105550:926;;105639:21;;;;:11;:21;;;;;;;;:35;;;;;;;;:45;;;105711:15;;105639:69;;90571:4;;105639:69;:::i;:::-;:87;105631:113;;;;-1:-1:-1;;;105631:113:0;;28913:2:1;105631:113:0;;;28895:21:1;28952:2;28932:18;;;28925:30;28991:15;28971:18;;;28964:43;29024:18;;105631:113:0;28711:337:1;105631:113:0;105802:21;;;;:11;:21;;;;;;;;:35;;;;;;;;:55;;;;105847:10;105802:55;;;-1:-1:-1;105876:47:0;;:62;;;105957:46;;;:60;;;106084:15;106036:45;;;:63;106118:50;;;;:42;;;;;:50;;;;:::i;:::-;-1:-1:-1;106234:5:0;106187:21;;;:11;:21;;;;;;;;:35;;;;;;;;:44;;:52;;-1:-1:-1;;106187:52:0;;;105383:1479;;105550:926;106293:21;;;;:11;:21;;;;;;;;:35;;;;;;;;:50;;;;:42;;;;;:50;;;;:::i;105383:1479::-;106555:295;;;;;;;;106602:10;106555:295;;;;;;;;;;;;;;;106739:15;106555:295;;;;;;;;;;;;-1:-1:-1;106555:295:0;;;;;;106517:21;;;:11;:21;;;;;:35;;;;;;;;;:333;;;;;;106555:295;106517:333;;;;;;;;-1:-1:-1;106517:333:0;;;;;;;;;;;;;;;;;;106555:295;;106517:35;:333;;;;;;;;;:::i;:::-;-1:-1:-1;106517:333:0;;;;;;;;;;;;-1:-1:-1;;106517:333:0;;;;;;;;;;105383:1479;106876:14;106872:427;;;106907:16;106953:12;106967:5;106936:37;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;106926:48;;106936:37;106926:48;;;;106989:13;107027:27;;;:17;:27;;;;;:40;;;;;;;;;:45;;;106926:48;;-1:-1:-1;107005:112:0;;106926:48;107084:10;107096:6;107104:12;107005:21;:112::i;:::-;106989:128;-1:-1:-1;107152:4:0;107140:16;;;;107132:50;;;;-1:-1:-1;;;107132:50:0;;29255:2:1;107132:50:0;;;29237:21:1;29294:2;29274:18;;;29267:30;29333:23;29313:18;;;29306:51;29374:18;;107132:50:0;29053:345:1;107132:50:0;-1:-1:-1;;107236:21:0;;;;:11;:21;;;;;;;;:35;;;;;;;;:44;;:51;;-1:-1:-1;;107236:51:0;107283:4;107236:51;;;106872:427;104704:2602;;;;;;;;:::o;64192:997::-;64379:4;64419:1;64404:12;:16;64396:84;;;;-1:-1:-1;;;64396:84:0;;29605:2:1;64396:84:0;;;29587:21:1;29644:2;29624:18;;;29617:30;29683:34;29663:18;;;29656:62;29754:25;29734:18;;;29727:53;29797:19;;64396:84:0;29403:419:1;64396:84:0;64510:12;64501:6;:21;64493:70;;;;-1:-1:-1;;;64493:70:0;;30029:2:1;64493:70:0;;;30011:21:1;30068:2;30048:18;;;30041:30;30107:34;30087:18;;;30080:62;30178:6;30158:18;;;30151:34;30202:19;;64493:70:0;29827:400:1;64493:70:0;64618:23;64628:12;64618:9;:23::i;:::-;64598:9;:16;:43;64576:170;;;;-1:-1:-1;;;64576:170:0;;30434:2:1;64576:170:0;;;30416:21:1;30473:2;30453:18;;;30446:30;30512:34;30492:18;;;30485:62;30583:34;30563:18;;;30556:62;30655:15;30634:19;;;30627:44;30688:19;;64576:170:0;30232:481:1;64576:170:0;64782:5;64759:20;64800:341;64824:9;:16;64820:1;:20;64800:341;;;64867:6;64876:1;64867:10;64882:1;64866:17;64862:239;;;64946:9;64956:1;64946:12;;;;;;;;:::i;:::-;;;;;;;64960;64929:44;;;;;;;;30875:19:1;;;30919:2;30910:12;;30903:28;30956:2;30947:12;;30718:247;64929:44:0;;;;;;;;;;;;;64919:55;;;;;;64904:70;;64862:239;;;65057:12;65071:9;65081:1;65071:12;;;;;;;;:::i;:::-;;;;;;;65040:44;;;;;;;;30875:19:1;;;30919:2;30910:12;;30903:28;30956:2;30947:12;;30718:247;65040:44:0;;;;;;;;;;;;;65030:55;;;;;;65015:70;;64862:239;65128:1;65117:12;;;;;64842:3;;;;:::i;:::-;;;;64800:341;;;-1:-1:-1;65160:21:0;;;;64192:997;-1:-1:-1;;;;;64192:997:0:o;65466:788::-;65520:7;65554:1;65548:3;:7;65540:68;;;;-1:-1:-1;;;65540:68:0;;31172:2:1;65540:68:0;;;31154:21:1;31211:2;31191:18;;;31184:30;31250:34;31230:18;;;31223:62;31321:18;31301;;;31294:46;31357:19;;65540:68:0;30970:412:1;65540:68:0;65625:3;65632:1;65625:8;65621:49;;;-1:-1:-1;65657:1:0;;65466:788;-1:-1:-1;65466:788:0:o;65621:49::-;65837:3;65823:11;65898:3;65881:187;65908:1;65903;:6;65881:187;;65973:1;65947:21;65967:1;65948:15;;;65947:21;:::i;:::-;65946:28;;65939:36;;:41;65935:122;;66001:12;66012:1;66001:12;;:::i;:::-;66032:9;;;;66001:12;-1:-1:-1;65935:122:0;65917:1;65911:7;65881:187;;;-1:-1:-1;66158:1:0;66150:21;;66149:30;;66145:75;;66196:12;66207:1;66196:12;;:::i;:::-;;66239:7;-1:-1:-1;;;;65466:788:0:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;196:160:1;261:20;;317:13;;310:21;300:32;;290:60;;346:1;343;336:12;290:60;196:160;;;:::o;361:385::-;444:6;452;460;468;521:3;509:9;500:7;496:23;492:33;489:53;;;538:1;535;528:12;489:53;574:9;561:23;551:33;;631:2;620:9;616:18;603:32;593:42;;682:2;671:9;667:18;654:32;644:42;;705:35;736:2;725:9;721:18;705:35;:::i;:::-;695:45;;361:385;;;;;;;:::o;751:316::-;828:6;836;844;897:2;885:9;876:7;872:23;868:32;865:52;;;913:1;910;903:12;865:52;-1:-1:-1;;936:23:1;;;1006:2;991:18;;978:32;;-1:-1:-1;1057:2:1;1042:18;;;1029:32;;751:316;-1:-1:-1;751:316:1:o;1329:180::-;1388:6;1441:2;1429:9;1420:7;1416:23;1412:32;1409:52;;;1457:1;1454;1447:12;1409:52;-1:-1:-1;1480:23:1;;1329:180;-1:-1:-1;1329:180:1:o;1514:184::-;1566:77;1563:1;1556:88;1663:4;1660:1;1653:15;1687:4;1684:1;1677:15;1703:334;1774:2;1768:9;1830:2;1820:13;;1835:66;1816:86;1804:99;;1933:18;1918:34;;1954:22;;;1915:62;1912:88;;;1980:18;;:::i;:::-;2016:2;2009:22;1703:334;;-1:-1:-1;1703:334:1:o;2042:466::-;2107:5;2141:18;2133:6;2130:30;2127:56;;;2163:18;;:::i;:::-;2201:116;2311:4;2242:66;2237:2;2229:6;2225:15;2221:88;2217:99;2201:116;:::i;:::-;2192:125;;2340:6;2333:5;2326:21;2380:3;2371:6;2366:3;2362:16;2359:25;2356:45;;;2397:1;2394;2387:12;2356:45;2446:6;2441:3;2434:4;2427:5;2423:16;2410:43;2500:1;2493:4;2484:6;2477:5;2473:18;2469:29;2462:40;2042:466;;;;;:::o;2513:451::-;2582:6;2635:2;2623:9;2614:7;2610:23;2606:32;2603:52;;;2651:1;2648;2641:12;2603:52;2691:9;2678:23;2724:18;2716:6;2713:30;2710:50;;;2756:1;2753;2746:12;2710:50;2779:22;;2832:4;2824:13;;2820:27;-1:-1:-1;2810:55:1;;2861:1;2858;2851:12;2810:55;2884:74;2950:7;2945:2;2932:16;2927:2;2923;2919:11;2884:74;:::i;3200:258::-;3272:1;3282:113;3296:6;3293:1;3290:13;3282:113;;;3372:11;;;3366:18;3353:11;;;3346:39;3318:2;3311:10;3282:113;;;3413:6;3410:1;3407:13;3404:48;;;3448:1;3439:6;3434:3;3430:16;3423:27;3404:48;;3200:258;;;:::o;3463:316::-;3504:3;3542:5;3536:12;3569:6;3564:3;3557:19;3585:63;3641:6;3634:4;3629:3;3625:14;3618:4;3611:5;3607:16;3585:63;:::i;:::-;3693:2;3681:15;3698:66;3677:88;3668:98;;;;3768:4;3664:109;;3463:316;-1:-1:-1;;3463:316:1:o;3784:298::-;3953:2;3942:9;3935:21;3916:4;3973:44;4013:2;4002:9;3998:18;3990:6;3973:44;:::i;:::-;3965:52;;4067:6;4060:14;4053:22;4048:2;4037:9;4033:18;4026:50;3784:298;;;;;:::o;4087:219::-;4236:2;4225:9;4218:21;4199:4;4256:44;4296:2;4285:9;4281:18;4273:6;4256:44;:::i;4311:154::-;4397:42;4390:5;4386:54;4379:5;4376:65;4366:93;;4455:1;4452;4445:12;4366:93;4311:154;:::o;4470:247::-;4529:6;4582:2;4570:9;4561:7;4557:23;4553:32;4550:52;;;4598:1;4595;4588:12;4550:52;4637:9;4624:23;4656:31;4681:5;4656:31;:::i;4914:248::-;4982:6;4990;5043:2;5031:9;5022:7;5018:23;5014:32;5011:52;;;5059:1;5056;5049:12;5011:52;-1:-1:-1;;5082:23:1;;;5152:2;5137:18;;;5124:32;;-1:-1:-1;4914:248:1:o;5167:221::-;5209:5;5262:3;5255:4;5247:6;5243:17;5239:27;5229:55;;5280:1;5277;5270:12;5229:55;5302:80;5378:3;5369:6;5356:20;5349:4;5341:6;5337:17;5302:80;:::i;5393:1488::-;5540:6;5548;5556;5564;5572;5580;5588;5641:3;5629:9;5620:7;5616:23;5612:33;5609:53;;;5658:1;5655;5648:12;5609:53;5694:9;5681:23;5671:33;;5723:2;5772;5761:9;5757:18;5744:32;5734:42;;5823:2;5812:9;5808:18;5795:32;5785:42;;5878:2;5867:9;5863:18;5850:32;5901:18;5942:2;5934:6;5931:14;5928:34;;;5958:1;5955;5948:12;5928:34;5981:49;6022:7;6013:6;6002:9;5998:22;5981:49;:::i;:::-;5971:59;;6077:3;6066:9;6062:19;6049:33;6039:43;;6129:3;6118:9;6114:19;6101:33;6091:43;;6187:3;6176:9;6172:19;6159:33;6143:49;;6217:2;6207:8;6204:16;6201:36;;;6233:1;6230;6223:12;6201:36;6271:8;6260:9;6256:24;6246:34;;6318:7;6311:4;6307:2;6303:13;6299:27;6289:55;;6340:1;6337;6330:12;6289:55;6376:2;6363:16;6398:2;6394;6391:10;6388:36;;;6404:18;;:::i;:::-;6450:2;6447:1;6443:10;6433:20;;6473:28;6497:2;6493;6489:11;6473:28;:::i;:::-;6535:15;;;6605:11;;;6601:20;;;6566:12;;;;6633:19;;;6630:39;;;6665:1;6662;6655:12;6630:39;6689:11;;;;6709:142;6725:6;6720:3;6717:15;6709:142;;;6791:17;;6779:30;;6742:12;;;;6829;;;;6709:142;;;6870:5;6860:15;;;;;;;;5393:1488;;;;;;;;;;:::o;6886:315::-;6951:6;6959;7012:2;7000:9;6991:7;6987:23;6983:32;6980:52;;;7028:1;7025;7018:12;6980:52;7067:9;7054:23;7086:31;7111:5;7086:31;:::i;:::-;7136:5;-1:-1:-1;7160:35:1;7191:2;7176:18;;7160:35;:::i;:::-;7150:45;;6886:315;;;;;:::o;7206:525::-;7301:6;7309;7317;7325;7378:3;7366:9;7357:7;7353:23;7349:33;7346:53;;;7395:1;7392;7385:12;7346:53;7431:9;7418:23;7408:33;;7488:2;7477:9;7473:18;7460:32;7450:42;;7539:2;7528:9;7524:18;7511:32;7501:42;;7594:2;7583:9;7579:18;7566:32;7621:18;7613:6;7610:30;7607:50;;;7653:1;7650;7643:12;7607:50;7676:49;7717:7;7708:6;7697:9;7693:22;7676:49;:::i;:::-;7666:59;;;7206:525;;;;;;;:::o;10295:184::-;10347:77;10344:1;10337:88;10444:4;10441:1;10434:15;10468:4;10465:1;10458:15;12305:184;12357:77;12354:1;12347:88;12454:4;12451:1;12444:15;12478:4;12475:1;12468:15;12494:125;12534:4;12562:1;12559;12556:8;12553:34;;;12567:18;;:::i;:::-;-1:-1:-1;12604:9:1;;12494:125::o;13540:251::-;13610:6;13663:2;13651:9;13642:7;13638:23;13634:32;13631:52;;;13679:1;13676;13669:12;13631:52;13711:9;13705:16;13730:31;13755:5;13730:31;:::i;13796:437::-;13875:1;13871:12;;;;13918;;;13939:61;;13993:4;13985:6;13981:17;13971:27;;13939:61;14046:2;14038:6;14035:14;14015:18;14012:38;14009:218;;;14083:77;14080:1;14073:88;14184:4;14181:1;14174:15;14212:4;14209:1;14202:15;14009:218;;13796:437;;;:::o;14954:228::-;14994:7;15120:1;15052:66;15048:74;15045:1;15042:81;15037:1;15030:9;15023:17;15019:105;15016:131;;;15127:18;;:::i;:::-;-1:-1:-1;15167:9:1;;14954:228::o;15187:128::-;15227:3;15258:1;15254:6;15251:1;15248:13;15245:39;;;15264:18;;:::i;:::-;-1:-1:-1;15300:9:1;;15187:128::o;16028:461::-;16260:3;16298:6;16292:13;16314:53;16360:6;16355:3;16348:4;16340:6;16336:17;16314:53;:::i;:::-;16428:24;16389:16;;16414:39;;;-1:-1:-1;16480:2:1;16469:14;;16028:461;-1:-1:-1;16028:461:1:o;20214:230::-;20253:3;20281:12;20320:2;20317:1;20313:10;20350:2;20347:1;20343:10;20381:3;20377:2;20373:12;20368:3;20365:21;20362:47;;;20389:18;;:::i;:::-;20425:13;;20214:230;-1:-1:-1;;;;20214:230:1:o;21257:184::-;21327:6;21380:2;21368:9;21359:7;21355:23;21351:32;21348:52;;;21396:1;21393;21386:12;21348:52;-1:-1:-1;21419:16:1;;21257:184;-1:-1:-1;21257:184:1:o;22378:260::-;22417:7;22449:8;22484:2;22481:1;22477:10;22514:2;22511:1;22507:10;22570:3;22566:2;22562:12;22557:3;22554:21;22547:3;22540:11;22533:19;22529:47;22526:73;;;22579:18;;:::i;:::-;22619:13;;22378:260;-1:-1:-1;;;;22378:260:1:o;22643:226::-;22682:3;22710:8;22745:2;22742:1;22738:10;22775:2;22772:1;22768:10;22806:3;22802:2;22798:12;22793:3;22790:21;22787:47;;;22814:18;;:::i;22874:274::-;22914:1;22940;22930:189;;22975:77;22972:1;22965:88;23076:4;23073:1;23066:15;23104:4;23101:1;23094:15;22930:189;-1:-1:-1;23133:9:1;;22874:274::o;23797:271::-;23980:6;23972;23967:3;23954:33;23936:3;24006:16;;24031:13;;;24006:16;23797:271;-1:-1:-1;23797:271:1:o;24715:346::-;24902:6;24897:3;24890:19;24872:3;24938:6;24932:13;24954:60;25007:6;25002:2;24997:3;24993:12;24988:2;24980:6;24976:15;24954:60;:::i;:::-;25034:16;;;;25052:2;25030:25;;24715:346;-1:-1:-1;;;24715:346:1:o;27012:195::-;27051:3;27082:66;27075:5;27072:77;27069:103;;;27152:18;;:::i;:::-;-1:-1:-1;27199:1:1;27188:13;;27012:195::o;27212:204::-;27250:3;27286:4;27283:1;27279:12;27318:4;27315:1;27311:12;27353:3;27347:4;27343:14;27338:3;27335:23;27332:49;;;27361:18;;:::i;:::-;27397:13;;27212:204;-1:-1:-1;;;27212:204:1:o;27421:184::-;27473:77;27470:1;27463:88;27570:4;27567:1;27560:15;27594:4;27591:1;27584:15

Swarm Source

ipfs://b865b1352f49fb7dbbf6ba69c7849a98a4245ea8715f098bfa725a02c5222053

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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