ETH Price: $2,862.83 (-2.67%)

Contract

0xa30c61Cc85D723187C9122e7991209a509Da267F
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MAPOmnichainServiceV2

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
// SPDX-License-Identifier: MIT

pragma solidity 0.8.7;

import "@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@mapprotocol/protocol/contracts/interface/ILightNode.sol";
import "@mapprotocol/protocol/contracts/utils/Utils.sol";
import "@mapprotocol/protocol/contracts/lib/RLPReader.sol";
import "./interface/IWrappedToken.sol";
import "./interface/IMintableToken.sol";
import "./interface/IButterReceiver.sol";
import "./interface/IButterMosV2.sol";
import "./utils/EvmDecoder.sol";

contract MAPOmnichainServiceV2 is ReentrancyGuard, Initializable, Pausable, IButterMosV2, UUPSUpgradeable {
    using SafeMath for uint256;
    using RLPReader for bytes;
    using RLPReader for RLPReader.RLPItem;
    using Address for address;

    uint256 public immutable selfChainId = block.chainid;
    uint256 public nonce;
    address public wToken; // native wrapped token
    address public relayContract;
    uint256 public relayChainId;
    ILightNode public lightNode;

    enum chainType {
        NULL,
        EVM,
        NEAR
    }

    mapping(bytes32 => bool) public orderList;
    mapping(address => bool) public mintableTokens;
    mapping(uint256 => mapping(address => bool)) public tokenMappingList;
    //pre version,now placeholder the slot
    address public butterRouter;

    // reserved
    IEvent.swapOutEvent[] private verifiedLogs;

    mapping(bytes32 => bool) public  storedOrderId;     // log hash

    event SetButterRouterAddress(address indexed _newRouter);

    event mapTransferExecute(uint256 indexed fromChain, uint256 indexed toChain, address indexed from);
    event SetLightClient(address _lightNode);
    event AddMintableToken(address[] _token);
    event RemoveMintableToken(address[] _token);
    event SetRelayContract(uint256 _chainId, address _relay);
    event RegisterToken(address _token, uint256 _toChain, bool _enable);
    event RegisterChain(uint256 _chainId, chainType _type);
    event mapSwapExecute(uint256 indexed fromChain, uint256 indexed toChain, address indexed from);
    event mapSwapInVerified(bytes logs);

    function initialize(
        address _wToken,
        address _lightNode,
        address _owner
    ) public initializer checkAddress(_wToken) checkAddress(_lightNode) checkAddress(_owner) {
        wToken = _wToken;
        lightNode = ILightNode(_lightNode);
        _changeAdmin(_owner);
    }

    receive() external payable {}

    modifier checkOrder(bytes32 _orderId) {
        require(!orderList[_orderId], "order exist");
        orderList[_orderId] = true;
        _;
    }

    modifier checkBridgeable(address _token, uint256 _chainId) {
        require(tokenMappingList[_chainId][_token], "token not registered");
        _;
    }

    modifier checkAddress(address _address) {
        require(_address != address(0), "address is zero");
        _;
    }

    modifier onlyOwner() {
        require(msg.sender == _getAdmin(), "mos :: only admin");
        _;
    }

    function setPause() external onlyOwner {
        _pause();
    }

    function setUnpause() external onlyOwner {
        _unpause();
    }

    function setLightClient(address _lightNode) external onlyOwner checkAddress(_lightNode) {
        lightNode = ILightNode(_lightNode);
        emit SetLightClient(_lightNode);
    }

    function addMintableToken(address[] memory _token) external onlyOwner {
        for (uint256 i = 0; i < _token.length; i++) {
            mintableTokens[_token[i]] = true;
        }
        emit AddMintableToken(_token);
    }

    function removeMintableToken(address[] memory _token) external onlyOwner {
        for (uint256 i = 0; i < _token.length; i++) {
            mintableTokens[_token[i]] = false;
        }
        emit RemoveMintableToken(_token);
    }

    function setRelayContract(uint256 _chainId, address _relay) external onlyOwner checkAddress(_relay) {
        relayContract = _relay;
        relayChainId = _chainId;

        emit SetRelayContract(_chainId, _relay);
    }

    function registerToken(address _token, uint256 _toChain, bool _enable) external onlyOwner {
        require(_token.isContract(), "token is not contract");
        tokenMappingList[_toChain][_token] = _enable;
        emit RegisterToken(_token, _toChain, _enable);
    }

    // ------------------------------------------

    function swapOutToken(
        address _initiatorAddress, // swap initiator address
        address _token, // src token
        bytes memory _to,
        uint256 _amount,
        uint256 _toChain, // target chain id
        bytes calldata _swapData
    ) external virtual override nonReentrant whenNotPaused checkBridgeable(_token, _toChain) returns (bytes32 orderId) {
        require(_amount > 0, "Sending value is zero");
        require(IERC20(_token).balanceOf(msg.sender) >= _amount, "Insufficient token balance");
        if (isMintable(_token)) {
            IMintableToken(_token).burnFrom(msg.sender, _amount);
        } else {
            SafeERC20.safeTransferFrom(IERC20(_token), msg.sender, address(this), _amount);
        }
        orderId = _swapOut(_token, _to, _initiatorAddress, _amount, _toChain, _swapData);
    }

    function swapOutNative(
        address _initiatorAddress, // swap initiator address
        bytes memory _to,
        uint256 _toChain, // target chain id
        bytes calldata _swapData
    )
        external
        payable
        virtual
        override
        nonReentrant
        whenNotPaused
        checkBridgeable(wToken, _toChain)
        returns (bytes32 orderId)
    {
        uint256 amount = msg.value;
        require(amount > 0, "Sending value is zero");
        IWrappedToken(wToken).deposit{value: amount}();
        orderId = _swapOut(wToken, _to, _initiatorAddress, amount, _toChain, _swapData);
    }

    function depositToken(
        address _token,
        address _to,
        uint256 _amount
    ) external override nonReentrant whenNotPaused checkBridgeable(_token, relayChainId) {
        address from = msg.sender;
        require(_amount > 0, "Sending value is zero");
        //require(IERC20(token).balanceOf(_from) >= _amount, "balance too low");

        if (isMintable(_token)) {
            IMintableToken(_token).burnFrom(from, _amount);
        } else {
            SafeERC20.safeTransferFrom(IERC20(_token), from, address(this), _amount);
        }
        _deposit(_token, from, _to, _amount);
    }

    function depositNative(
        address _to
    ) external payable override nonReentrant whenNotPaused checkBridgeable(wToken, relayChainId) {
        address from = msg.sender;
        uint256 amount = msg.value;
        require(amount > 0, "Sending value is zero");
        IWrappedToken(wToken).deposit{value: amount}();
        _deposit(wToken, from, _to, amount);
    }

    // verify swap in logs and store hash
    function swapInVerify(uint256 _chainId, bytes memory _receiptProof) external nonReentrant whenNotPaused {
        require(_chainId == relayChainId, "invalid chain id");
        (bool success, string memory message, bytes memory logArray) = lightNode.verifyProofData(_receiptProof);
        require(success, message);
        bytes32 hash = keccak256(logArray);
        require(!storedOrderId[hash], "already verified");
        storedOrderId[hash] = true;
        emit mapSwapInVerified(logArray);
    }
    // execute stored swap in logs
    function swapInVerified(bytes calldata logArray) external nonReentrant whenNotPaused {
        bytes32 hash = keccak256(logArray);
        require(storedOrderId[hash], "not verified");
        _swapInVerified(logArray);
    }

    function swapIn(uint256 _chainId, bytes memory _receiptProof) external nonReentrant whenNotPaused {
        require(_chainId == relayChainId, "invalid chain id");
        (bool success, string memory message, bytes memory logArray) = lightNode.verifyProofData(_receiptProof);
        require(success, message);
        _swapInVerified(logArray);
        emit mapSwapExecute(_chainId, selfChainId, msg.sender);
    }

    function isMintable(address _token) public view returns (bool) {
        return mintableTokens[_token];
    }

    function isBridgeable(address _token, uint256 _toChain) public view returns (bool) {
        return tokenMappingList[_toChain][_token];
    }

    function getOrderStatus(
        uint256,
        uint256 _blockNum,
        bytes32 _orderId
    ) external view override returns (bool exists, bool verifiable, uint256 nodeType) {
        exists = orderList[_orderId];
        verifiable = lightNode.isVerifiable(_blockNum, bytes32(""));
        nodeType = lightNode.nodeType();
    }

    function _getOrderID(address _from, bytes memory _to, uint256 _toChain) internal returns (bytes32) {
        return keccak256(abi.encodePacked(address(this), nonce++, selfChainId, _toChain, _from, _to));
    }

    function _swapInVerified(bytes memory logArray) private {
        IEvent.txLog[] memory logs = EvmDecoder.decodeTxLogs(logArray);
        for (uint256 i = 0; i < logs.length; i++) {
            IEvent.txLog memory log = logs[i];  
            bytes32 topic = abi.decode(log.topics[0], (bytes32));
            if (topic == EvmDecoder.MAP_SWAPOUT_TOPIC && relayContract == log.addr) {
                (, IEvent.swapOutEvent memory outEvent) = EvmDecoder.decodeSwapOutLog(log);
                // there might be more than one events to multi-chains
                // only process the event for this chain
                if (selfChainId == outEvent.toChain) {
                   _swapIn(outEvent);
                }
            }
       }
    }

    function _swapIn(IEvent.swapOutEvent memory _outEvent) internal checkOrder(_outEvent.orderId) {
        address tokenIn = Utils.fromBytes(_outEvent.token);
        // receiving address
        address payable toAddress = payable(Utils.fromBytes(_outEvent.to));
        // amount of token need to be sent
        uint256 actualAmountIn = _outEvent.amount;

        if (isMintable(tokenIn)) {
            IMintableToken(tokenIn).mint(address(this), actualAmountIn);
        }

        // if swap params is not empty, then we need to do swap on current chain
        if (_outEvent.swapData.length > 0 && address(toAddress).isContract()) {
            SafeERC20.safeTransfer(IERC20(tokenIn), toAddress, actualAmountIn);
            try
                IButterReceiver(toAddress).onReceived(
                    _outEvent.orderId,
                    tokenIn,
                    actualAmountIn,
                    _outEvent.fromChain,
                    _outEvent.from,
                    _outEvent.swapData
                )
            {
                // do nothing
            } catch {
                // do nothing
            }
        } else {
            // transfer token if swap did not happen
            if (tokenIn == wToken) {
                IWrappedToken(wToken).withdraw(actualAmountIn);
                Address.sendValue(payable(toAddress), actualAmountIn);
            } else {
                SafeERC20.safeTransfer(IERC20(tokenIn), toAddress, actualAmountIn);
            }
        }
        emit mapSwapIn(
            _outEvent.fromChain,
            selfChainId,
            _outEvent.orderId,
            tokenIn,
            _outEvent.from,
            toAddress,
            actualAmountIn
        );
    }

    function _swapOut(
        address _token, // src token
        bytes memory _to,
        address _from,
        uint256 _amount,
        uint256 _toChain, // target chain id
        bytes calldata _swapData
    ) internal returns (bytes32 orderId) {
        require(_toChain != selfChainId, "Cannot swap to self chain");
        orderId = _getOrderID(msg.sender, _to, _toChain);
        _notifyLightClient(bytes(""));
        emit mapSwapOut(
            selfChainId,
            _toChain,
            orderId,
            Utils.toBytes(_token),
            Utils.toBytes(_from),
            _to,
            _amount,
            _swapData
        );
    }

    function _deposit(address _token, address _from, address _to, uint256 _amount) internal {
        bytes32 orderId = _getOrderID(_from, Utils.toBytes(_to), relayChainId);
        _notifyLightClient(bytes(""));
        emit mapDepositOut(selfChainId, relayChainId, orderId, _token, Utils.toBytes(_from), _to, _amount);
    }

    function _notifyLightClient(bytes memory _data) internal {
        lightNode.notifyLightClient(address(this), _data);
    }

    /** UUPS *********************************************************/
    function _authorizeUpgrade(address) internal view override {
        require(msg.sender == _getAdmin(), "MAPOmnichainService: only Admin can upgrade");
    }

    function changeAdmin(address _admin) external onlyOwner checkAddress(_admin) {
        _changeAdmin(_admin);
    }

    function getAdmin() external view returns (address) {
        return _getAdmin();
    }

    function getImplementation() external view returns (address) {
        return _getImplementation();
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

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

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

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

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

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

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

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

        return result;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

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

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

pragma solidity ^0.8.0;

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IWrappedToken {
    function deposit() external payable;

    function transfer(address to, uint256 value) external returns (bool);

    function withdraw(uint256) external;
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IMintableToken {
    function mint(address to, uint256 amount) external;

    function burn(uint256 amount) external;

    function burnFrom(address from, uint256 amount) external;
}

File 17 of 37 : IButterReceiver.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IButterReceiver {
    //_srcToken received token (wtoken or erc20 token)
    function onReceived(
        bytes32 _orderId,
        address _srcToken,
        uint256 _amount,
        uint256 _fromChain,
        bytes calldata _from,
        bytes calldata _payload
    ) external;
}

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

interface IButterMosV2 {
    function swapOutToken(
        address _sender,
        address _token, // src token
        bytes memory _to,
        uint256 _amount,
        uint256 _toChain, // target chain id
        bytes calldata _swapData
    ) external returns (bytes32 orderId);

    function swapOutNative(
        address _sender,
        bytes memory _to,
        uint256 _toChain, // target chain id
        bytes calldata _swapData
    ) external payable returns (bytes32 orderId);

    function depositToken(address _token, address to, uint256 _amount) external;

    function depositNative(address _to) external payable;

    function getOrderStatus(
        uint256 _chainId,
        uint256 _blockNum,
        bytes32 _orderId
    ) external view returns (bool exists, bool verifiable, uint256 nodeType);

    event mapTransferOut(
        uint256 indexed fromChain,
        uint256 indexed toChain,
        bytes32 orderId,
        bytes token,
        bytes from,
        bytes to,
        uint256 amount,
        bytes toChainToken
    );

    event mapDepositOut(
        uint256 indexed fromChain,
        uint256 indexed toChain,
        bytes32 orderId,
        address token,
        bytes from,
        address to,
        uint256 amount
    );

    event mapSwapOut(
        uint256 indexed fromChain, // from chain
        uint256 indexed toChain, // to chain
        bytes32 orderId, // order id
        bytes token, // token to transfer
        bytes from, // source chain from address
        bytes to,
        uint256 amount,
        bytes swapData // swap data, used on target chain dex.
    );

    event mapSwapIn(
        uint256 indexed fromChain,
        uint256 indexed toChain,
        bytes32 indexed orderId,
        address token,
        bytes from,
        address toAddress,
        uint256 amountOut
    );
}

// SPDX-License-Identifier: MIT

pragma solidity 0.8.7;

import "@mapprotocol/protocol/contracts/utils/Utils.sol";
import "@mapprotocol/protocol/contracts/lib/RLPReader.sol";
import "../interface/IEvent.sol";

library EvmDecoder {
    using RLPReader for bytes;
    using RLPReader for RLPReader.RLPItem;

    bytes32 constant MAP_DEPOSITOUT_TOPIC =
        keccak256(bytes("mapDepositOut(uint256,uint256,bytes32,address,bytes,address,uint256)"));
    bytes32 constant MAP_SWAPOUT_TOPIC =
        keccak256(bytes("mapSwapOut(uint256,uint256,bytes32,bytes,bytes,bytes,uint256,bytes)"));

    function decodeTxLogs(bytes memory logsHash) internal pure returns (IEvent.txLog[] memory _txLogs) {
        RLPReader.RLPItem[] memory ls = logsHash.toRlpItem().toList();
        _txLogs = new IEvent.txLog[](ls.length);
        for (uint256 i = 0; i < ls.length; i++) {
            RLPReader.RLPItem[] memory item = ls[i].toList();

            require(item.length >= 3, "log length to low");

            RLPReader.RLPItem[] memory firstItemList = item[1].toList();
            bytes[] memory topic = new bytes[](firstItemList.length);
            for (uint256 j = 0; j < firstItemList.length; j++) {
                topic[j] = firstItemList[j].toBytes();
            }
            _txLogs[i] = IEvent.txLog({addr: item[0].toAddress(), topics: topic, data: item[2].toBytes()});
        }
    }

    function decodeSwapOutLog(
        IEvent.txLog memory log
    ) internal pure returns (bytes memory executorId, IEvent.swapOutEvent memory outEvent) {
        executorId = Utils.toBytes(log.addr);
        outEvent.fromChain = abi.decode(log.topics[1], (uint256));
        outEvent.toChain = abi.decode(log.topics[2], (uint256));

        (outEvent.orderId, outEvent.token, outEvent.from, outEvent.to, outEvent.amount, outEvent.swapData) = abi.decode(
            log.data,
            (bytes32, bytes, bytes, bytes, uint256, bytes)
        );
    }

    function decodeDepositOutLog(
        IEvent.txLog memory log
    ) internal pure returns (bytes memory executorId, IEvent.depositOutEvent memory depositEvent) {
        executorId = Utils.toBytes(log.addr);

        depositEvent.fromChain = abi.decode(log.topics[1], (uint256));
        depositEvent.toChain = abi.decode(log.topics[2], (uint256));

        address token;
        address toAddress;
        (depositEvent.orderId, token, depositEvent.from, toAddress, depositEvent.amount) = abi.decode(
            log.data,
            (bytes32, address, bytes, address, uint256)
        );

        depositEvent.token = Utils.toBytes(token);
        depositEvent.to = Utils.toBytes(toAddress);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

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

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/Address.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```solidity
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 *
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
     * constructor.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!Address.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: setting the version to 255 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized != type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint8) {
        return _initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _initializing;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library Utils {
    uint256 constant MIN_NEAR_ADDRESS_LEN = 2;
    uint256 constant MAX_NEAR_ADDRESS_LEN = 64;

    function checkBytes(bytes memory b1, bytes memory b2) internal pure returns (bool) {
        return keccak256(b1) == keccak256(b2);
    }

    function fromBytes(bytes memory bys) internal pure returns (address addr) {
        assembly {
            addr := mload(add(bys, 20))
        }
    }

    function toBytes(address self) internal pure returns (bytes memory b) {
        b = abi.encodePacked(self);
    }

    function splitExtra(bytes memory extra) internal pure returns (bytes memory newExtra) {
        require(extra.length >= 64, "Invalid extra result type");
        newExtra = new bytes(64);
        for (uint256 i = 0; i < 64; i++) {
            newExtra[i] = extra[i];
        }
    }

    function hexStrToBytes(bytes memory _hexStr) internal pure returns (bytes memory) {
        //Check hex string is valid
        if (_hexStr.length % 2 != 0 || _hexStr.length < 4) {
            revert("hexStrToBytes: invalid input");
        }

        bytes memory bytes_array = new bytes(_hexStr.length / 2 - 32);

        for (uint256 i = 64; i < _hexStr.length; i += 2) {
            uint8 tetrad1 = 16;
            uint8 tetrad2 = 16;

            //left digit
            if (uint8(_hexStr[i]) >= 48 && uint8(_hexStr[i]) <= 57) tetrad1 = uint8(_hexStr[i]) - 48;

            //right digit
            if (uint8(_hexStr[i + 1]) >= 48 && uint8(_hexStr[i + 1]) <= 57) tetrad2 = uint8(_hexStr[i + 1]) - 48;

            //left A->F
            if (uint8(_hexStr[i]) >= 65 && uint8(_hexStr[i]) <= 70) tetrad1 = uint8(_hexStr[i]) - 65 + 10;

            //right A->F
            if (uint8(_hexStr[i + 1]) >= 65 && uint8(_hexStr[i + 1]) <= 70) tetrad2 = uint8(_hexStr[i + 1]) - 65 + 10;

            //left a->f
            if (uint8(_hexStr[i]) >= 97 && uint8(_hexStr[i]) <= 102) tetrad1 = uint8(_hexStr[i]) - 97 + 10;

            //right a->f
            if (uint8(_hexStr[i + 1]) >= 97 && uint8(_hexStr[i + 1]) <= 102) tetrad2 = uint8(_hexStr[i + 1]) - 97 + 10;

            //Check all symbols are allowed
            if (tetrad1 == 16 || tetrad2 == 16) revert("hexStrToBytes: invalid input");

            bytes_array[i / 2 - 32] = bytes1(16 * tetrad1 + tetrad2);
        }

        return bytes_array;
    }

    function isValidNearAddress(bytes memory _addr) internal pure returns (bool) {
        if (_addr.length < MIN_NEAR_ADDRESS_LEN || _addr.length > MAX_NEAR_ADDRESS_LEN) {
            return false;
        }
        bool last_char_is_separator = true;
        for (uint256 i = 0; i < _addr.length; i++) {
            uint8 char = uint8(_addr[i]);
            bool current_char_is_separator = false;

            //char 97-122 is a-z, 48-57 is 0-9 , 45 is - ,46 is .,95 is _
            if ((char >= 97 && char <= 122) || (char >= 48 && char <= 57) || (char == 45 || char == 46 || char == 95)) {
                if ((char == 45 || char == 46 || char == 95)) {
                    current_char_is_separator = true;
                }
            } else {
                return false;
            }

            if (current_char_is_separator && last_char_is_separator) {
                return false;
            }

            last_char_is_separator = current_char_is_separator;
        }
        return !last_char_is_separator;
    }

    function isValidEvmAddress(bytes memory _addr) internal pure returns (bool) {
        return _addr.length == 20;
    }

    function isValidAddress(bytes memory _addr, uint256 chainType) internal pure returns (bool) {
        if (chainType == 1) return isValidEvmAddress(_addr);
        if (chainType == 2) return isValidNearAddress(_addr);
        return false;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)

pragma solidity ^0.8.0;

import "../../interfaces/draft-IERC1822.sol";
import "../ERC1967/ERC1967Upgrade.sol";

/**
 * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
 * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
 *
 * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
 * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
 * `UUPSUpgradeable` with a custom implementation of upgrades.
 *
 * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
 *
 * _Available since v4.1._
 */
abstract contract UUPSUpgradeable is IERC1822Proxiable, ERC1967Upgrade {
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
    address private immutable __self = address(this);

    /**
     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is
     * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case
     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a
     * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to
     * fail.
     */
    modifier onlyProxy() {
        require(address(this) != __self, "Function must be called through delegatecall");
        require(_getImplementation() == __self, "Function must be called through active proxy");
        _;
    }

    /**
     * @dev Check that the execution is not being performed through a delegate call. This allows a function to be
     * callable on the implementing contract but not through proxies.
     */
    modifier notDelegated() {
        require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall");
        _;
    }

    /**
     * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the
     * implementation. It is used to validate the implementation's compatibility when performing an upgrade.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.
     */
    function proxiableUUID() external view virtual override notDelegated returns (bytes32) {
        return _IMPLEMENTATION_SLOT;
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     *
     * @custom:oz-upgrades-unsafe-allow-reachable delegatecall
     */
    function upgradeTo(address newImplementation) public virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
     * encoded in `data`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     *
     * @custom:oz-upgrades-unsafe-allow-reachable delegatecall
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, data, true);
    }

    /**
     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
     * {upgradeTo} and {upgradeToAndCall}.
     *
     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
     *
     * ```solidity
     * function _authorizeUpgrade(address) internal override onlyOwner {}
     * ```
     */
    function _authorizeUpgrade(address newImplementation) internal virtual;
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface ILightNode {
    event UpdateBlockHeader(address indexed maintainer, uint256 indexed blockHeight);

    event ClientNotifySend(address indexed sender, uint256 indexed blockHeight, bytes notifyData);

    function updateBlockHeader(bytes memory _blockHeader) external;

    function updateLightClient(bytes memory _data) external;

    // @notice Notify light client to relay the block
    // @param _data - notify data, if no data set it to empty
    function notifyLightClient(address _from, bytes memory _data) external;

    // @notice Validate the receipt according to the block header and receipt merkel proof
    //         Using block header number and block receipt root cache to optimize the validation gas cost.
    // @param _receiptProof - the bytes to receipt proof
    // @return success - verification result
    // @return message - the result message
    // @return logs - the logs included in the receipt
    function verifyProofDataWithCache(
        bytes memory _receiptProof
    ) external returns (bool success, string memory message, bytes memory logs);

    // @notice Validate the receipt according to the block header and receipt merkel proof
    // @param _receiptProof - the bytes to receipt proof
    // @return success - verification result
    // @return message - the result message
    // @return logs - the logs included in the receipt
    function verifyProofData(
        bytes memory _receiptProof
    ) external view returns (bool success, string memory message, bytes memory logs);

    // Get client state
    function clientState() external view returns (bytes memory);

    function finalizedState(bytes memory _data) external view returns (bytes memory);

    // @notice Get the light client block height
    // @return height - current block height or slot number
    function headerHeight() external view returns (uint256 height);

    //
    function verifiableHeaderRange() external view returns (uint256, uint256);

    // @notice Check whether the block can be verified
    // @return
    function isVerifiable(uint256 _blockHeight, bytes32 _hash) external view returns (bool);

    // @notice Get the light client type
    // @return - 1 default light client
    //           2 zk light client
    //           3 oracle client
    function nodeType() external view returns (uint256);
}

// SPDX-License-Identifier: MIT

/*
 * @author Hamdi Allam [email protected]
 * Please reach out with any questions or concerns
 */
pragma solidity ^0.8.0;

library RLPReader {
    uint8 constant STRING_SHORT_START = 0x80;
    uint8 constant STRING_LONG_START = 0xb8;
    uint8 constant LIST_SHORT_START = 0xc0;
    uint8 constant LIST_LONG_START = 0xf8;
    uint8 constant WORD_SIZE = 32;

    struct RLPItem {
        uint256 len;
        uint256 memPtr;
    }

    struct Iterator {
        RLPItem item; // Item that's being iterated over.
        uint256 nextPtr; // Position of the next item in the list.
    }

    /*
     * @dev Returns the next element in the iteration. Reverts if it has not next element.
     * @param self The iterator.
     * @return The next element in the iteration.
     */
    function next(Iterator memory self) internal pure returns (RLPItem memory) {
        require(hasNext(self), "not have next");

        uint256 ptr = self.nextPtr;
        uint256 itemLength = _itemLength(ptr);
        self.nextPtr = ptr + itemLength;

        return RLPItem(itemLength, ptr);
    }

    /*
     * @dev Returns true if the iteration has more elements.
     * @param self The iterator.
     * @return true if the iteration has more elements.
     */
    function hasNext(Iterator memory self) internal pure returns (bool) {
        RLPItem memory item = self.item;
        return self.nextPtr < item.memPtr + item.len;
    }

    /*
     * @param item RLP encoded bytes
     */
    function toRlpItem(bytes memory item) internal pure returns (RLPItem memory) {
        uint256 memPtr;
        assembly {
            memPtr := add(item, 0x20)
        }

        return RLPItem(item.length, memPtr);
    }

    /*
     * @dev Create an iterator. Reverts if item is not a list.
     * @param self The RLP item.
     * @return An 'Iterator' over the item.
     */
    function iterator(RLPItem memory self) internal pure returns (Iterator memory) {
        require(isList(self), "check self list fail");

        uint256 ptr = self.memPtr + _payloadOffset(self.memPtr);
        return Iterator(self, ptr);
    }

    /*
     * @param the RLP item.
     */
    function rlpLen(RLPItem memory item) internal pure returns (uint256) {
        return item.len;
    }

    /*
     * @param the RLP item.
     * @return (memPtr, len) pair: location of the item's payload in memory.
     */
    function payloadLocation(RLPItem memory item) internal pure returns (uint256, uint256) {
        uint256 offset = _payloadOffset(item.memPtr);
        uint256 memPtr = item.memPtr + offset;
        uint256 len = item.len - offset;
        // data length
        return (memPtr, len);
    }

    /*
     * @param the RLP item.
     */
    function payloadLen(RLPItem memory item) internal pure returns (uint256) {
        (, uint256 len) = payloadLocation(item);
        return len;
    }

    /*
     * @param the RLP item containing the encoded list.
     */
    function toList(RLPItem memory item) internal pure returns (RLPItem[] memory) {
        require(isList(item), "is list fail");

        uint256 items = numItems(item);
        RLPItem[] memory result = new RLPItem[](items);

        uint256 memPtr = item.memPtr + _payloadOffset(item.memPtr);
        uint256 dataLen;
        for (uint256 i = 0; i < items; i++) {
            dataLen = _itemLength(memPtr);
            result[i] = RLPItem(dataLen, memPtr);
            memPtr = memPtr + dataLen;
        }

        return result;
    }

    // @return indicator whether encoded payload is a list. negate this function call for isData.
    function isList(RLPItem memory item) internal pure returns (bool) {
        if (item.len == 0) return false;

        uint8 byte0;
        uint256 memPtr = item.memPtr;
        assembly {
            byte0 := byte(0, mload(memPtr))
        }

        if (byte0 < LIST_SHORT_START) return false;
        return true;
    }

    /*
     * @dev A cheaper version of keccak256(toRlpBytes(item)) that avoids copying memory.
     * @return keccak256 hash of RLP encoded bytes.
     */
    function rlpBytesKeccak256(RLPItem memory item) internal pure returns (bytes32) {
        uint256 ptr = item.memPtr;
        uint256 len = item.len;
        bytes32 result;
        assembly {
            result := keccak256(ptr, len)
        }
        return result;
    }

    /*
     * @dev A cheaper version of keccak256(toBytes(item)) that avoids copying memory.
     * @return keccak256 hash of the item payload.
     */
    function payloadKeccak256(RLPItem memory item) internal pure returns (bytes32) {
        (uint256 memPtr, uint256 len) = payloadLocation(item);
        bytes32 result;
        assembly {
            result := keccak256(memPtr, len)
        }
        return result;
    }

    /** RLPItem conversions into data types **/

    // @returns raw rlp encoding in bytes
    function toRlpBytes(RLPItem memory item) internal pure returns (bytes memory) {
        bytes memory result = new bytes(item.len);
        if (result.length == 0) return result;

        uint256 ptr;
        assembly {
            ptr := add(0x20, result)
        }

        copy(item.memPtr, ptr, item.len);
        return result;
    }

    // any non-zero byte except "0x80" is considered true
    function toBoolean(RLPItem memory item) internal pure returns (bool) {
        require(item.len == 1, "item len is not one");
        uint256 result;
        uint256 memPtr = item.memPtr;
        assembly {
            result := byte(0, mload(memPtr))
        }

        // SEE Github Issue #5.
        // Summary: Most commonly used RLP libraries (i.e Geth) will encode
        // "0" as "0x80" instead of as "0". We handle this edge case explicitly
        // here.
        if (result == 0 || result == STRING_SHORT_START) {
            return false;
        } else {
            return true;
        }
    }

    function toAddress(RLPItem memory item) internal pure returns (address) {
        // 1 byte for the length prefix
        require(item.len == 21, "item len is not 21");

        return address(uint160(toUint(item)));
    }

    function toUint(RLPItem memory item) internal pure returns (uint256) {
        require(item.len > 0 && item.len <= 33, "item len is not uint");

        (uint256 memPtr, uint256 len) = payloadLocation(item);

        uint256 result;
        assembly {
            result := mload(memPtr)

            // shfit to the correct location if neccesary
            if lt(len, 32) {
                result := div(result, exp(256, sub(32, len)))
            }
        }

        return result;
    }

    // enforces 32 byte length
    function toUintStrict(RLPItem memory item) internal pure returns (uint256) {
        // one byte prefix
        require(item.len == 33, "item is not uint strict");

        uint256 result;
        uint256 memPtr = item.memPtr + 1;
        assembly {
            result := mload(memPtr)
        }

        return result;
    }

    function toBytes(RLPItem memory item) internal pure returns (bytes memory) {
        require(item.len > 0, "item len is zero");

        (uint256 memPtr, uint256 len) = payloadLocation(item);
        bytes memory result = new bytes(len);

        uint256 destPtr;
        assembly {
            destPtr := add(0x20, result)
        }

        copy(memPtr, destPtr, len);
        return result;
    }

    /*
     * Private Helpers
     */

    // @return number of payload items inside an encoded list.
    function numItems(RLPItem memory item) internal pure returns (uint256) {
        if (item.len == 0) return 0;

        uint256 count = 0;
        uint256 currPtr = item.memPtr + _payloadOffset(item.memPtr);
        uint256 endPtr = item.memPtr + item.len;
        while (currPtr < endPtr) {
            currPtr = currPtr + _itemLength(currPtr);
            // skip over an item
            count++;
        }

        return count;
    }

    // @return entire rlp item byte length
    function _itemLength(uint256 memPtr) private pure returns (uint256) {
        uint256 itemLen;
        uint256 byte0;
        assembly {
            byte0 := byte(0, mload(memPtr))
        }

        if (byte0 < STRING_SHORT_START) itemLen = 1;
        else if (byte0 < STRING_LONG_START) itemLen = byte0 - STRING_SHORT_START + 1;
        else if (byte0 < LIST_SHORT_START) {
            assembly {
                let byteLen := sub(byte0, 0xb7) // # of bytes the actual length is
                memPtr := add(memPtr, 1) // skip over the first byte

                /* 32 byte word size */
                let dataLen := div(mload(memPtr), exp(256, sub(32, byteLen))) // right shifting to get the len
                itemLen := add(dataLen, add(byteLen, 1))
            }
        } else if (byte0 < LIST_LONG_START) {
            itemLen = byte0 - LIST_SHORT_START + 1;
        } else {
            assembly {
                let byteLen := sub(byte0, 0xf7)
                memPtr := add(memPtr, 1)

                let dataLen := div(mload(memPtr), exp(256, sub(32, byteLen))) // right shifting to the correct length
                itemLen := add(dataLen, add(byteLen, 1))
            }
        }

        return itemLen;
    }

    // @return number of bytes until the data
    function _payloadOffset(uint256 memPtr) private pure returns (uint256) {
        uint256 byte0;
        assembly {
            byte0 := byte(0, mload(memPtr))
        }

        if (byte0 < STRING_SHORT_START) return 0;
        else if (byte0 < STRING_LONG_START || (byte0 >= LIST_SHORT_START && byte0 < LIST_LONG_START)) return 1;
        else if (byte0 < LIST_SHORT_START)
            // being explicit
            return byte0 - (STRING_LONG_START - 1) + 1;
        else return byte0 - (LIST_LONG_START - 1) + 1;
    }

    /*
     * @param src Pointer to source
     * @param dest Pointer to destination
     * @param len Amount of memory to copy from the source
     */
    function copy(uint256 src, uint256 dest, uint256 len) private pure {
        if (len == 0) return;

        // copy as many word sizes as possible
        for (; len >= WORD_SIZE; len -= WORD_SIZE) {
            assembly {
                mstore(dest, mload(src))
            }

            src += WORD_SIZE;
            dest += WORD_SIZE;
        }

        if (len > 0) {
            // left over bytes. Mask is used to remove unwanted bytes from the word
            uint256 mask = 256 ** (WORD_SIZE - len) - 1;
            assembly {
                let srcpart := and(mload(src), not(mask)) // zero out src
                let destpart := and(mload(dest), mask) // retrieve the bytes
                mstore(dest, or(destpart, srcpart))
            }
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 30 of 37 : IEvent.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IEvent {
    struct depositOutEvent {
        bytes token;
        bytes from;
        bytes32 orderId;
        uint256 fromChain;
        uint256 toChain;
        bytes to;
        uint256 amount;
    }

    struct swapOutEvent {
        uint256 fromChain;
        uint256 toChain;
        bytes32 orderId;
        bytes token; // token to transfer
        bytes from;
        bytes to;
        uint256 amount;
        bytes swapData;
    }

    struct txLog {
        address addr;
        bytes[] topics;
        bytes data;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 32 of 37 : draft-IERC1822.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)

pragma solidity ^0.8.0;

/**
 * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
 * proxy whose upgrades are fully controlled by the current implementation.
 */
interface IERC1822Proxiable {
    /**
     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
     * address.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy.
     */
    function proxiableUUID() external view returns (bytes32);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity ^0.8.2;

import "../beacon/IBeacon.sol";
import "../../interfaces/IERC1967.sol";
import "../../interfaces/draft-IERC1822.sol";
import "../../utils/Address.sol";
import "../../utils/StorageSlot.sol";

/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 *
 * _Available since v4.1._
 */
abstract contract ERC1967Upgrade is IERC1967 {
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Returns the current implementation address.
     */
    function _getImplementation() internal view returns (address) {
        return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {
        _upgradeTo(newImplementation);
        if (data.length > 0 || forceCall) {
            Address.functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {
        // Upgrades from old implementations will perform a rollback test. This test requires the new
        // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
        // this special case will break upgrade paths from old UUPS implementation to new ones.
        if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {
            _setImplementation(newImplementation);
        } else {
            try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {
                require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
            } catch {
                revert("ERC1967Upgrade: new implementation is not UUPS");
            }
            _upgradeToAndCall(newImplementation, data, forceCall);
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Returns the current admin.
     */
    function _getAdmin() internal view returns (address) {
        return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        require(newAdmin != address(0), "ERC1967: new admin is the zero address");
        StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     */
    function _changeAdmin(address newAdmin) internal {
        emit AdminChanged(_getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
     */
    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Returns the current beacon.
     */
    function _getBeacon() internal view returns (address) {
        return StorageSlot.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(Address.isContract(newBeacon), "ERC1967: new beacon is not a contract");
        require(
            Address.isContract(IBeacon(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;
    }

    /**
     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
     *
     * Emits a {BeaconUpgraded} event.
     */
    function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);
        if (data.length > 0 || forceCall) {
            Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
        }
    }
}

File 34 of 37 : IERC1967.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)

pragma solidity ^0.8.0;

/**
 * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.
 *
 * _Available since v4.8.3._
 */
interface IERC1967 {
    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Emitted when the beacon is changed.
     */
    event BeaconUpgraded(address indexed beacon);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._
 * _Available since v4.9 for `string`, `bytes`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeacon {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"_token","type":"address[]"}],"name":"AddMintableToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_chainId","type":"uint256"},{"indexed":false,"internalType":"enum MAPOmnichainServiceV2.chainType","name":"_type","type":"uint8"}],"name":"RegisterChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_toChain","type":"uint256"},{"indexed":false,"internalType":"bool","name":"_enable","type":"bool"}],"name":"RegisterToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"_token","type":"address[]"}],"name":"RemoveMintableToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_newRouter","type":"address"}],"name":"SetButterRouterAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_lightNode","type":"address"}],"name":"SetLightClient","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_chainId","type":"uint256"},{"indexed":false,"internalType":"address","name":"_relay","type":"address"}],"name":"SetRelayContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromChain","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"toChain","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"orderId","type":"bytes32"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"bytes","name":"from","type":"bytes"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mapDepositOut","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromChain","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"toChain","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"}],"name":"mapSwapExecute","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromChain","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"toChain","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"orderId","type":"bytes32"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"bytes","name":"from","type":"bytes"},{"indexed":false,"internalType":"address","name":"toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"mapSwapIn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"logs","type":"bytes"}],"name":"mapSwapInVerified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromChain","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"toChain","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"orderId","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"token","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"from","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"to","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"swapData","type":"bytes"}],"name":"mapSwapOut","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromChain","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"toChain","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"}],"name":"mapTransferExecute","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromChain","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"toChain","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"orderId","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"token","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"from","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"to","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"toChainToken","type":"bytes"}],"name":"mapTransferOut","type":"event"},{"inputs":[{"internalType":"address[]","name":"_token","type":"address[]"}],"name":"addMintableToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"butterRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"depositNative","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_blockNum","type":"uint256"},{"internalType":"bytes32","name":"_orderId","type":"bytes32"}],"name":"getOrderStatus","outputs":[{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"bool","name":"verifiable","type":"bool"},{"internalType":"uint256","name":"nodeType","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wToken","type":"address"},{"internalType":"address","name":"_lightNode","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_toChain","type":"uint256"}],"name":"isBridgeable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"isMintable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lightNode","outputs":[{"internalType":"contract ILightNode","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintableTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"orderList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_toChain","type":"uint256"},{"internalType":"bool","name":"_enable","type":"bool"}],"name":"registerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"relayChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"relayContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_token","type":"address[]"}],"name":"removeMintableToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"selfChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_lightNode","type":"address"}],"name":"setLightClient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"address","name":"_relay","type":"address"}],"name":"setRelayContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setUnpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"storedOrderId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"bytes","name":"_receiptProof","type":"bytes"}],"name":"swapIn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"logArray","type":"bytes"}],"name":"swapInVerified","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"bytes","name":"_receiptProof","type":"bytes"}],"name":"swapInVerify","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_initiatorAddress","type":"address"},{"internalType":"bytes","name":"_to","type":"bytes"},{"internalType":"uint256","name":"_toChain","type":"uint256"},{"internalType":"bytes","name":"_swapData","type":"bytes"}],"name":"swapOutNative","outputs":[{"internalType":"bytes32","name":"orderId","type":"bytes32"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_initiatorAddress","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"bytes","name":"_to","type":"bytes"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_toChain","type":"uint256"},{"internalType":"bytes","name":"_swapData","type":"bytes"}],"name":"swapOutToken","outputs":[{"internalType":"bytes32","name":"orderId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"tokenMappingList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"wToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c06040523060601b6080524660a05234801561001b57600080fd5b5060016000819055805462ff00001916905560805160601c60a0516141cd6100a2600039600081816105ab0152818161169701528181611ba901528181611ee601528181612042015281816120d8015281816121e601526129570152600081816109270152818161096701528181610b6c01528181610bac0152610c2401526141cd6000f3fe6080604052600436106102135760003560e01c80636e9960c311610118578063cc9e3e89116100a0578063d5351aaa1161006f578063d5351aaa14610622578063d93765fc14610635578063ee9592b914610672578063f5d66c2e146106ad578063fb0f97a8146106dd57600080fd5b8063cc9e3e8914610599578063ccb3f442146105cd578063d33a28a2146105ed578063d431b1ac1461060d57600080fd5b80638f283970116100e75780638f2839701461050e578063aaf10f421461052e578063affed0e014610543578063b899f90414610559578063c0c53b8b1461057957600080fd5b80636e9960c3146104ae578063848cb5c6146104c35780638df0dcde146104d85780638df10cbb146104ee57600080fd5b80634de5103e1161019b57806355d35a401161016a57806355d35a40146104005780635c550ac2146104205780635c975abb146104405780635f670bd31461045e5780636af6400d1461047e57600080fd5b80634de5103e1461038a5780634f1ef286146103aa57806352d1902d146103bd57806355b35560146103e057600080fd5b806333bb7f91116101e257806333bb7f91146102e75780633659cfe6146102fa5780633e553bab1461031a57806345711d481461033a578063462b940f1461036a57600080fd5b80630babd8641461021f5780631a19a6281461025c578063222b15fb1461027e5780632b585db4146102c757600080fd5b3661021a57005b600080fd5b34801561022b57600080fd5b5060035461023f906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561026857600080fd5b5061027c61027736600461380d565b6106fd565b005b34801561028a57600080fd5b506102b761029936600461359a565b6001600160a01b031660009081526008602052604090205460ff1690565b6040519015158152602001610253565b3480156102d357600080fd5b506102b76102e23660046137a3565b6107e1565b61027c6102f536600461359a565b61080e565b34801561030657600080fd5b5061027c61031536600461359a565b61091c565b34801561032657600080fd5b5061027c61033536600461359a565b6109e2565b34801561034657600080fd5b506102b761035536600461359a565b60086020526000908152604090205460ff1681565b34801561037657600080fd5b5061027c610385366004613a5a565b610a96565b34801561039657600080fd5b50600a5461023f906001600160a01b031681565b61027c6103b83660046136d2565b610b61565b3480156103c957600080fd5b506103d2610c17565b604051908152602001610253565b3480156103ec57600080fd5b5061027c6103fb3660046137cd565b610cca565b34801561040c57600080fd5b5061027c61041b366004613a9b565b610dc6565b34801561042c57600080fd5b5060045461023f906001600160a01b031681565b34801561044c57600080fd5b5060015462010000900460ff166102b7565b34801561046a57600080fd5b5060065461023f906001600160a01b031681565b34801561048a57600080fd5b506102b761049936600461396a565b60076020526000908152604090205460ff1681565b3480156104ba57600080fd5b5061023f610e7f565b3480156104cf57600080fd5b5061027c610e8e565b3480156104e457600080fd5b506103d260055481565b3480156104fa57600080fd5b5061027c610509366004613ac7565b610ed0565b34801561051a57600080fd5b5061027c61052936600461359a565b611091565b34801561053a57600080fd5b5061023f6110f9565b34801561054f57600080fd5b506103d260025481565b34801561056557600080fd5b506103d26105743660046135f8565b611103565b34801561058557600080fd5b5061027c6105943660046135b5565b6112fc565b3480156105a557600080fd5b506103d27f000000000000000000000000000000000000000000000000000000000000000081565b3480156105d957600080fd5b5061027c6105e836600461380d565b6114b3565b3480156105f957600080fd5b5061027c610608366004613ac7565b611583565b34801561061957600080fd5b5061027c6116ec565b6103d261063036600461371f565b61172c565b34801561064157600080fd5b50610655610650366004613af7565b611844565b604080519315158452911515602084015290820152606001610253565b34801561067e57600080fd5b506102b761068d366004613a9b565b600960209081526000928352604080842090915290825290205460ff1681565b3480156106b957600080fd5b506102b76106c836600461396a565b600c6020526000908152604090205460ff1681565b3480156106e957600080fd5b5061027c6106f8366004613696565b611972565b610705611a9a565b6001600160a01b0316336001600160a01b03161461073e5760405162461bcd60e51b815260040161073590613e88565b60405180910390fd5b60005b81518110156107a657600060086000848481518110610762576107626140d3565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061079e816140a2565b915050610741565b507fc27ae4a8b33d533c4256030aa4b2aaa26894eeaee1163759bd284eabcf15caa7816040516107d69190613c2e565b60405180910390a150565b60008181526009602090815260408083206001600160a01b038616845290915290205460ff165b92915050565b610816611acd565b61081e611b27565b60035460055460008181526009602090815260408083206001600160a01b039095168084529490915290205460ff166108695760405162461bcd60e51b815260040161073590613de5565b3334806108885760405162461bcd60e51b815260040161073590613eb3565b600360009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156108d857600080fd5b505af11580156108ec573d6000803e3d6000fd5b505060035461090b93506001600160a01b031691508490508784611b73565b505050506109196001600055565b50565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156109655760405162461bcd60e51b815260040161073590613d99565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610997611c16565b6001600160a01b0316146109bd5760405162461bcd60e51b815260040161073590613e13565b6109c681611c2c565b6040805160008082526020820190925261091991839190611ca8565b6109ea611a9a565b6001600160a01b0316336001600160a01b031614610a1a5760405162461bcd60e51b815260040161073590613e88565b806001600160a01b038116610a415760405162461bcd60e51b815260040161073590613e5f565b600680546001600160a01b0319166001600160a01b0384169081179091556040519081527fdbbd7b2f0d0e7ab85011e3c9115c836f3cc29f189c9c0f77b8f0dc718116c9469060200160405180910390a15050565b610a9e611acd565b610aa6611b27565b60008282604051610ab8929190613baa565b60408051918290039091206000818152600c602052919091205490915060ff16610b135760405162461bcd60e51b815260206004820152600c60248201526b1b9bdd081d995c9a599a595960a21b6044820152606401610735565b610b5283838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611e2292505050565b50610b5d6001600055565b5050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610baa5760405162461bcd60e51b815260040161073590613d99565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610bdc611c16565b6001600160a01b031614610c025760405162461bcd60e51b815260040161073590613e13565b610c0b82611c2c565b610b5d82826001611ca8565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610cb75760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610735565b5060008051602061410e83398151915290565b610cd2611a9a565b6001600160a01b0316336001600160a01b031614610d025760405162461bcd60e51b815260040161073590613e88565b6001600160a01b0383163b610d515760405162461bcd60e51b81526020600482015260156024820152741d1bdad95b881a5cc81b9bdd0818dbdb9d1c9858dd605a1b6044820152606401610735565b60008281526009602090815260408083206001600160a01b03871680855290835292819020805460ff191685151590811790915581519384529183018590528201527fb7e2e36d837b3e9a99d8c3de2eed62d21e4b1550a939fe020796d059a023800a906060015b60405180910390a1505050565b610dce611a9a565b6001600160a01b0316336001600160a01b031614610dfe5760405162461bcd60e51b815260040161073590613e88565b806001600160a01b038116610e255760405162461bcd60e51b815260040161073590613e5f565b600480546001600160a01b0319166001600160a01b03841690811790915560058490556040805185815260208101929092527f1a43895ae95563631980575c9049ad602ade0cced91de88c94af53e71de9f0809101610db9565b6000610e89611a9a565b905090565b610e96611a9a565b6001600160a01b0316336001600160a01b031614610ec65760405162461bcd60e51b815260040161073590613e88565b610ece611f2b565b565b610ed8611acd565b610ee0611b27565b6005548214610f245760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a590818da185a5b881a5960821b6044820152606401610735565b60065460405163016dc52760e41b8152600091829182916001600160a01b0316906316dc527090610f59908790600401613d86565b60006040518083038186803b158015610f7157600080fd5b505afa158015610f85573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fad91908101906138dd565b925092509250828290610fd35760405162461bcd60e51b81526004016107359190613d86565b5080516020808301919091206000818152600c90925260409091205460ff16156110325760405162461bcd60e51b815260206004820152601060248201526f185b1c9958591e481d995c9a599a595960821b6044820152606401610735565b6000818152600c602052604090819020805460ff19166001179055517f71b6b465a3e1914ab78a5c4e72ed92c70071ccf1a1bdee55bc47174cbcd476059061107b908490613d86565b60405180910390a150505050610b5d6001600055565b611099611a9a565b6001600160a01b0316336001600160a01b0316146110c95760405162461bcd60e51b815260040161073590613e88565b806001600160a01b0381166110f05760405162461bcd60e51b815260040161073590613e5f565b610b5d82611f7f565b6000610e89611c16565b600061110d611acd565b611115611b27565b60008481526009602090815260408083206001600160a01b038b1684529091529020548790859060ff1661115b5760405162461bcd60e51b815260040161073590613de5565b6000871161117b5760405162461bcd60e51b815260040161073590613eb3565b6040516370a0823160e01b815233600482015287906001600160a01b038b16906370a082319060240160206040518083038186803b1580156111bc57600080fd5b505afa1580156111d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f49190613983565b10156112425760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420746f6b656e2062616c616e63650000000000006044820152606401610735565b6001600160a01b03891660009081526008602052604090205460ff16156112c85760405163079cc67960e41b8152336004820152602481018890526001600160a01b038a16906379cc679090604401600060405180830381600087803b1580156112ab57600080fd5b505af11580156112bf573d6000803e3d6000fd5b505050506112d4565b6112d48933308a611fd3565b6112e389898c8a8a8a8a61203e565b925050506112f16001600055565b979650505050505050565b600154610100900460ff161580801561131957506001805460ff16105b806113325750303b15801561133257506001805460ff16145b6113955760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610735565b6001805460ff19168117905580156113b7576001805461ff0019166101001790555b836001600160a01b0381166113de5760405162461bcd60e51b815260040161073590613e5f565b836001600160a01b0381166114055760405162461bcd60e51b815260040161073590613e5f565b836001600160a01b03811661142c5760405162461bcd60e51b815260040161073590613e5f565b600380546001600160a01b03808a166001600160a01b031992831617909255600680549289169290911691909117905561146585611f7f565b50505080156114ad576001805461ff00191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050565b6114bb611a9a565b6001600160a01b0316336001600160a01b0316146114eb5760405162461bcd60e51b815260040161073590613e88565b60005b81518110156115535760016008600084848151811061150f5761150f6140d3565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061154b816140a2565b9150506114ee565b507fdacfd802eca1f2a9d9a6e78cf204ab0fe040a4ba3a8a00a66872d18658b61e5a816040516107d69190613c2e565b61158b611acd565b611593611b27565b60055482146115d75760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a590818da185a5b881a5960821b6044820152606401610735565b60065460405163016dc52760e41b8152600091829182916001600160a01b0316906316dc52709061160c908790600401613d86565b60006040518083038186803b15801561162457600080fd5b505afa158015611638573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261166091908101906138dd565b9250925092508282906116865760405162461bcd60e51b81526004016107359190613d86565b5061169081611e22565b60405133907f00000000000000000000000000000000000000000000000000000000000000009087907f8131e5b107f7021b0773c1108755872d7b94bb31532fdf2256e0a3ef2c890a3d90600090a4505050610b5d6001600055565b6116f4611a9a565b6001600160a01b0316336001600160a01b0316146117245760405162461bcd60e51b815260040161073590613e88565b610ece612155565b6000611736611acd565b61173e611b27565b60035460008581526009602090815260408083206001600160a01b0390941680845293909152902054859060ff166117885760405162461bcd60e51b815260040161073590613de5565b34806117a65760405162461bcd60e51b815260040161073590613eb3565b600360009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156117f657600080fd5b505af115801561180a573d6000803e3d6000fd5b505060035461182c93506001600160a01b031691508a90508b848b8b8b61203e565b935050505061183b6001600055565b95945050505050565b6000818152600760205260408082205460065491516303f77f1160e21b8152600481018690526024810184905260ff909116929182916001600160a01b0390911690630fddfc449060440160206040518083038186803b1580156118a757600080fd5b505afa1580156118bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118df91906138c0565b9150600660009054906101000a90046001600160a01b03166001600160a01b0316633fa9a8de6040518163ffffffff1660e01b815260040160206040518083038186803b15801561192f57600080fd5b505afa158015611943573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119679190613983565b905093509350939050565b61197a611acd565b611982611b27565b60055460008181526009602090815260408083206001600160a01b038816845290915290205484919060ff166119ca5760405162461bcd60e51b815260040161073590613de5565b33836119e85760405162461bcd60e51b815260040161073590613eb3565b6001600160a01b03861660009081526008602052604090205460ff1615611a705760405163079cc67960e41b81526001600160a01b038281166004830152602482018690528716906379cc679090604401600060405180830381600087803b158015611a5357600080fd5b505af1158015611a67573d6000803e3d6000fd5b50505050611a7c565b611a7c86823087611fd3565b611a8886828787611b73565b505050611a956001600055565b505050565b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b546001600160a01b0316919050565b60026000541415611b205760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610735565b6002600055565b60015462010000900460ff1615610ece5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610735565b6000611b8a84611b8285612196565b6005546121cc565b9050611ba46040518060200160405280600081525061223d565b6005547f00000000000000000000000000000000000000000000000000000000000000007fb7100086a8e13ebae772a0f09b07046e389a6b036406d22b86f2d2e5b860a8d98388611bf489612196565b8888604051611c07959493929190613c7b565b60405180910390a35050505050565b600060008051602061410e833981519152611abe565b611c34611a9a565b6001600160a01b0316336001600160a01b0316146109195760405162461bcd60e51b815260206004820152602b60248201527f4d41504f6d6e69636861696e536572766963653a206f6e6c792041646d696e2060448201526a63616e207570677261646560a81b6064820152608401610735565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611cdb57611a95836122a4565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b158015611d1457600080fd5b505afa925050508015611d44575060408051601f3d908101601f19168201909252611d4191810190613983565b60015b611da75760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610735565b60008051602061410e8339815191528114611e165760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610735565b50611a95838383612343565b6000611e2d82612368565b905060005b8151811015611a95576000828281518110611e4f57611e4f6140d3565b6020026020010151905060008160200151600081518110611e7257611e726140d3565b6020026020010151806020019051810190611e8d9190613983565b9050604051806080016040528060438152602001614155604391398051906020012081148015611ecc575081516004546001600160a01b039081169116145b15611f16576000611edc836125f8565b91505080602001517f00000000000000000000000000000000000000000000000000000000000000001415611f1457611f14816126ff565b505b50508080611f23906140a2565b915050611e32565b611f336129c3565b6001805462ff0000191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f611fa8611a9a565b604080516001600160a01b03928316815291841660208301520160405180910390a161091981612a12565b6040516001600160a01b03808516602483015283166044820152606481018290526114ad9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612a9e565b60007f00000000000000000000000000000000000000000000000000000000000000008414156120b05760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74207377617020746f2073656c6620636861696e000000000000006044820152606401610735565b6120bb3388866121cc565b90506120d56040518060200160405280600081525061223d565b837f00000000000000000000000000000000000000000000000000000000000000007fca1cf8cebf88499429cca8f87cbca15ab8dafd06702259a5344ddce89ef3f3a5836121228c612196565b61212b8b612196565b8c8b8a8a6040516121429796959493929190613d08565b60405180910390a3979650505050505050565b61215d611b27565b6001805462ff00001916620100001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f623390565b604051606082811b6bffffffffffffffffffffffff19166020830152906034016040516020818303038152906040529050919050565b60028054600091309190836121e0836140a2565b919050557f000000000000000000000000000000000000000000000000000000000000000084878760405160200161221d96959493929190613b4f565b6040516020818303038152906040528051906020012090505b9392505050565b600654604051630121b06960e71b81526001600160a01b03909116906390d834809061226f9030908590600401613bd6565b600060405180830381600087803b15801561228957600080fd5b505af115801561229d573d6000803e3d6000fd5b5050505050565b6001600160a01b0381163b6123115760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610735565b8060008051602061410e8339815191525b80546001600160a01b0319166001600160a01b039290921691909117905550565b61234c83612b73565b6000825111806123595750805b15611a95576114ad8383612bb3565b606060006123a56123a08460408051808201825260008082526020918201528151808301909252825182529182019181019190915290565b612bd8565b905080516001600160401b038111156123c0576123c06140e9565b60405190808252806020026020018201604052801561241e57816020015b61240b604051806060016040528060006001600160a01b0316815260200160608152602001606081525090565b8152602001906001900390816123de5790505b50915060005b81518110156125f1576000612451838381518110612444576124446140d3565b6020026020010151612bd8565b90506003815110156124995760405162461bcd60e51b81526020600482015260116024820152706c6f67206c656e67746820746f206c6f7760781b6044820152606401610735565b60006124b182600181518110612444576124446140d3565b9050600081516001600160401b038111156124ce576124ce6140e9565b60405190808252806020026020018201604052801561250157816020015b60608152602001906001900390816124ec5790505b50905060005b825181101561256257612532838281518110612525576125256140d3565b6020026020010151612d1f565b828281518110612544576125446140d3565b6020026020010181905250808061255a906140a2565b915050612507565b50604051806060016040528061259185600081518110612584576125846140d3565b6020026020010151612dd2565b6001600160a01b031681526020018281526020016125bb85600281518110612525576125256140d3565b8152508685815181106125d0576125d06140d3565b602002602001018190525050505080806125e9906140a2565b915050612424565b5050919050565b606061264560405180610100016040528060008152602001600081526020016000801916815260200160608152602001606081526020016060815260200160008152602001606081525090565b825161265090612196565b91508260200151600181518110612669576126696140d3565b60200260200101518060200190518101906126849190613983565b815260208301518051600290811061269e5761269e6140d3565b60200260200101518060200190518101906126b99190613983565b81602001818152505082604001518060200190518101906126da919061399c565b60e087015260c086015260a08501526080840152606083015260408201529092909150565b60408082015160008181526007602052919091205460ff16156127525760405162461bcd60e51b815260206004820152600b60248201526a1bdc99195c88195e1a5cdd60aa1b6044820152606401610735565b6000818152600760205260408120805460ff19166001179055606083015161277b906014015190565b9050600061278e8460a001516014015190565b60c08501519091506127b8836001600160a01b031660009081526008602052604090205460ff1690565b1561281e576040516340c10f1960e01b8152306004820152602481018290526001600160a01b038416906340c10f1990604401600060405180830381600087803b15801561280557600080fd5b505af1158015612819573d6000803e3d6000fd5b505050505b60008560e001515111801561283c57506001600160a01b0382163b15155b156128c75761284c838383612e24565b6040808601518651608088015160e08901519351632344e65560e01b81526001600160a01b03871694632344e6559461288e9490938a93899390600401613cb6565b600060405180830381600087803b1580156128a857600080fd5b505af19250505080156128b9575060015b6128c257612950565b612950565b6003546001600160a01b038481169116141561294557600354604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561292357600080fd5b505af1158015612937573d6000803e3d6000fd5b505050506128c28282612e54565b612950838383612e24565b84604001517f000000000000000000000000000000000000000000000000000000000000000086600001517f2a945137b011d4aadec6425788c652197d107fc33f6cdccbb0c269273be9c1c986896080015187876040516129b49493929190613bfa565b60405180910390a45050505050565b60015462010000900460ff16610ece5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610735565b6001600160a01b038116612a775760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b6064820152608401610735565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103612322565b6000612af3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612f6d9092919063ffffffff16565b9050805160001480612b14575080806020019051810190612b1491906138c0565b611a955760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610735565b612b7c816122a4565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060612236838360405180606001604052806027815260200161412e60279139612f84565b6060612be382612ffc565b612c1e5760405162461bcd60e51b815260206004820152600c60248201526b1a5cc81b1a5cdd0819985a5b60a21b6044820152606401610735565b6000612c2983613035565b90506000816001600160401b03811115612c4557612c456140e9565b604051908082528060200260200182016040528015612c8a57816020015b6040805180820190915260008082526020820152815260200190600190039081612c635790505b5090506000612c9c85602001516130b8565b8560200151612cab9190613f39565b90506000805b84811015612d1457612cc283613133565b9150604051806040016040528083815260200184815250848281518110612ceb57612ceb6140d3565b6020908102919091010152612d008284613f39565b925080612d0c816140a2565b915050612cb1565b509195945050505050565b8051606090612d635760405162461bcd60e51b815260206004820152601060248201526f6974656d206c656e206973207a65726f60801b6044820152606401610735565b600080612d6f846131dc565b915091506000816001600160401b03811115612d8d57612d8d6140e9565b6040519080825280601f01601f191660200182016040528015612db7576020820181803683370190505b50905060208101612dc9848285613223565b50949350505050565b8051600090601514612e1b5760405162461bcd60e51b81526020600482015260126024820152716974656d206c656e206973206e6f7420323160701b6044820152606401610735565b610808826132a2565b6040516001600160a01b038316602482015260448101829052611a9590849063a9059cbb60e01b90606401612007565b80471015612ea45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610735565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612ef1576040519150601f19603f3d011682016040523d82523d6000602084013e612ef6565b606091505b5050905080611a955760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610735565b6060612f7c8484600085613329565b949350505050565b6060600080856001600160a01b031685604051612fa19190613bba565b600060405180830381855af49150503d8060008114612fdc576040519150601f19603f3d011682016040523d82523d6000602084013e612fe1565b606091505b5091509150612ff2868383876133f5565b9695505050505050565b805160009061300d57506000919050565b6020820151805160001a9060c082101561302b575060009392505050565b5060019392505050565b805160009061304657506000919050565b60008061305684602001516130b8565b84602001516130659190613f39565b905060008460000151856020015161307d9190613f39565b90505b808210156130af5761309182613133565b61309b9083613f39565b9150826130a7816140a2565b935050613080565b50909392505050565b8051600090811a60808110156130d15750600092915050565b60b88110806130ec575060c081108015906130ec575060f881105b156130fa5750600192915050565b60c08110156131275761310f600160b8614053565b61311c9060ff168261403c565b612236906001613f39565b61310f600160f8614053565b80516000908190811a608081101561314e57600191506131d5565b60b88110156131745761316260808261403c565b61316d906001613f39565b91506131d5565b60c08110156131a15760b78103600185019450806020036101000a855104600182018101935050506131d5565b60f88110156131b55761316260c08261403c565b60f78103600185019450806020036101000a855104600182018101935050505b5092915050565b60008060006131ee84602001516130b8565b905060008185602001516132029190613f39565b90506000828660000151613216919061403c565b9196919550909350505050565b8061322d57505050565b602081106132655782518252613244602084613f39565b9250613251602083613f39565b915061325e60208261403c565b905061322d565b8015611a95576000600161327a83602061403c565b61328690610100613f94565b613290919061403c565b84518451821691191617835250505050565b8051600090158015906132b757508151602110155b6132fa5760405162461bcd60e51b81526020600482015260146024820152731a5d195b481b195b881a5cc81b9bdd081d5a5b9d60621b6044820152606401610735565b600080613306846131dc565b815191935091506020821015612f7c5760208290036101000a9004949350505050565b60608247101561338a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610735565b600080866001600160a01b031685876040516133a69190613bba565b60006040518083038185875af1925050503d80600081146133e3576040519150601f19603f3d011682016040523d82523d6000602084013e6133e8565b606091505b50915091506112f1878383875b6060831561346157825161345a576001600160a01b0385163b61345a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610735565b5081612f7c565b612f7c83838151156134765781518083602001fd5b8060405162461bcd60e51b81526004016107359190613d86565b60006134a361349e84613f12565b613ee2565b90508281528383830111156134b757600080fd5b612236836020830184614076565b80356001600160a01b03811681146134dc57600080fd5b919050565b60008083601f8401126134f357600080fd5b5081356001600160401b0381111561350a57600080fd5b60208301915083602082850101111561352257600080fd5b9250929050565b600082601f83011261353a57600080fd5b813561354861349e82613f12565b81815284602083860101111561355d57600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f83011261358b57600080fd5b61223683835160208501613490565b6000602082840312156135ac57600080fd5b612236826134c5565b6000806000606084860312156135ca57600080fd5b6135d3846134c5565b92506135e1602085016134c5565b91506135ef604085016134c5565b90509250925092565b600080600080600080600060c0888a03121561361357600080fd5b61361c886134c5565b965061362a602089016134c5565b955060408801356001600160401b038082111561364657600080fd5b6136528b838c01613529565b965060608a0135955060808a0135945060a08a013591508082111561367657600080fd5b506136838a828b016134e1565b989b979a50959850939692959293505050565b6000806000606084860312156136ab57600080fd5b6136b4846134c5565b92506136c2602085016134c5565b9150604084013590509250925092565b600080604083850312156136e557600080fd5b6136ee836134c5565b915060208301356001600160401b0381111561370957600080fd5b61371585828601613529565b9150509250929050565b60008060008060006080868803121561373757600080fd5b613740866134c5565b945060208601356001600160401b038082111561375c57600080fd5b61376889838a01613529565b955060408801359450606088013591508082111561378557600080fd5b50613792888289016134e1565b969995985093965092949392505050565b600080604083850312156137b657600080fd5b6137bf836134c5565b946020939093013593505050565b6000806000606084860312156137e257600080fd5b6137eb846134c5565b9250602084013591506040840135613802816140ff565b809150509250925092565b6000602080838503121561382057600080fd5b82356001600160401b038082111561383757600080fd5b818501915085601f83011261384b57600080fd5b81358181111561385d5761385d6140e9565b8060051b915061386e848301613ee2565b8181528481019084860184860187018a101561388957600080fd5b600095505b838610156138b35761389f816134c5565b83526001959095019491860191860161388e565b5098975050505050505050565b6000602082840312156138d257600080fd5b8151612236816140ff565b6000806000606084860312156138f257600080fd5b83516138fd816140ff565b60208501519093506001600160401b038082111561391a57600080fd5b818601915086601f83011261392e57600080fd5b61393d87835160208501613490565b9350604086015191508082111561395357600080fd5b506139608682870161357a565b9150509250925092565b60006020828403121561397c57600080fd5b5035919050565b60006020828403121561399557600080fd5b5051919050565b60008060008060008060c087890312156139b557600080fd5b8651955060208701516001600160401b03808211156139d357600080fd5b6139df8a838b0161357a565b965060408901519150808211156139f557600080fd5b613a018a838b0161357a565b95506060890151915080821115613a1757600080fd5b613a238a838b0161357a565b94506080890151935060a0890151915080821115613a4057600080fd5b50613a4d89828a0161357a565b9150509295509295509295565b60008060208385031215613a6d57600080fd5b82356001600160401b03811115613a8357600080fd5b613a8f858286016134e1565b90969095509350505050565b60008060408385031215613aae57600080fd5b82359150613abe602084016134c5565b90509250929050565b60008060408385031215613ada57600080fd5b8235915060208301356001600160401b0381111561370957600080fd5b600080600060608486031215613b0c57600080fd5b505081359360208301359350604090920135919050565b60008151808452613b3b816020860160208601614076565b601f01601f19169290920160200192915050565b60006bffffffffffffffffffffffff19808960601b168352876014840152866034840152856054840152808560601b166074840152508251613b98816088850160208701614076565b91909101608801979650505050505050565b8183823760009101908152919050565b60008251613bcc818460208701614076565b9190910192915050565b6001600160a01b0383168152604060208201819052600090612f7c90830184613b23565b600060018060a01b03808716835260806020840152613c1c6080840187613b23565b94166040830152506060015292915050565b6020808252825182820181905260009190848201906040850190845b81811015613c6f5783516001600160a01b031683529284019291840191600101613c4a565b50909695505050505050565b858152600060018060a01b03808716602084015260a06040840152613ca360a0840187613b23565b9416606083015250608001529392505050565b86815260018060a01b038616602082015284604082015283606082015260c060808201526000613ce960c0830185613b23565b82810360a0840152613cfb8185613b23565b9998505050505050505050565b87815260c060208201526000613d2160c0830189613b23565b8281036040840152613d338189613b23565b90508281036060840152613d478188613b23565b905085608084015282810360a0840152838152838560208301376000602085830101526020601f19601f86011682010191505098975050505050505050565b6020815260006122366020830184613b23565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252601490820152731d1bdad95b881b9bdd081c9959da5cdd195c995960621b604082015260600190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252600f908201526e61646472657373206973207a65726f60881b604082015260600190565b60208082526011908201527036b7b9901d1d1037b7363c9030b236b4b760791b604082015260600190565b60208082526015908201527453656e64696e672076616c7565206973207a65726f60581b604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715613f0a57613f0a6140e9565b604052919050565b60006001600160401b03821115613f2b57613f2b6140e9565b50601f01601f191660200190565b60008219821115613f4c57613f4c6140bd565b500190565b600181815b80851115613f8c578160001904821115613f7257613f726140bd565b80851615613f7f57918102915b93841c9390800290613f56565b509250929050565b60006122368383600082613faa57506001610808565b81613fb757506000610808565b8160018114613fcd5760028114613fd757613ff3565b6001915050610808565b60ff841115613fe857613fe86140bd565b50506001821b610808565b5060208310610133831016604e8410600b8410161715614016575081810a610808565b6140208383613f51565b8060001904821115614034576140346140bd565b029392505050565b60008282101561404e5761404e6140bd565b500390565b600060ff821660ff84168082101561406d5761406d6140bd565b90039392505050565b60005b83811015614091578181015183820152602001614079565b838111156114ad5750506000910152565b60006000198214156140b6576140b66140bd565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461091957600080fdfe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65646d6170537761704f75742875696e743235362c75696e743235362c627974657333322c62797465732c62797465732c62797465732c75696e743235362c627974657329a2646970667358221220d8b724318e8d1a41f0202435661b4faefdf1106935a8b273f7756e621d9438bd64736f6c63430008070033

Deployed Bytecode

0x6080604052600436106102135760003560e01c80636e9960c311610118578063cc9e3e89116100a0578063d5351aaa1161006f578063d5351aaa14610622578063d93765fc14610635578063ee9592b914610672578063f5d66c2e146106ad578063fb0f97a8146106dd57600080fd5b8063cc9e3e8914610599578063ccb3f442146105cd578063d33a28a2146105ed578063d431b1ac1461060d57600080fd5b80638f283970116100e75780638f2839701461050e578063aaf10f421461052e578063affed0e014610543578063b899f90414610559578063c0c53b8b1461057957600080fd5b80636e9960c3146104ae578063848cb5c6146104c35780638df0dcde146104d85780638df10cbb146104ee57600080fd5b80634de5103e1161019b57806355d35a401161016a57806355d35a40146104005780635c550ac2146104205780635c975abb146104405780635f670bd31461045e5780636af6400d1461047e57600080fd5b80634de5103e1461038a5780634f1ef286146103aa57806352d1902d146103bd57806355b35560146103e057600080fd5b806333bb7f91116101e257806333bb7f91146102e75780633659cfe6146102fa5780633e553bab1461031a57806345711d481461033a578063462b940f1461036a57600080fd5b80630babd8641461021f5780631a19a6281461025c578063222b15fb1461027e5780632b585db4146102c757600080fd5b3661021a57005b600080fd5b34801561022b57600080fd5b5060035461023f906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561026857600080fd5b5061027c61027736600461380d565b6106fd565b005b34801561028a57600080fd5b506102b761029936600461359a565b6001600160a01b031660009081526008602052604090205460ff1690565b6040519015158152602001610253565b3480156102d357600080fd5b506102b76102e23660046137a3565b6107e1565b61027c6102f536600461359a565b61080e565b34801561030657600080fd5b5061027c61031536600461359a565b61091c565b34801561032657600080fd5b5061027c61033536600461359a565b6109e2565b34801561034657600080fd5b506102b761035536600461359a565b60086020526000908152604090205460ff1681565b34801561037657600080fd5b5061027c610385366004613a5a565b610a96565b34801561039657600080fd5b50600a5461023f906001600160a01b031681565b61027c6103b83660046136d2565b610b61565b3480156103c957600080fd5b506103d2610c17565b604051908152602001610253565b3480156103ec57600080fd5b5061027c6103fb3660046137cd565b610cca565b34801561040c57600080fd5b5061027c61041b366004613a9b565b610dc6565b34801561042c57600080fd5b5060045461023f906001600160a01b031681565b34801561044c57600080fd5b5060015462010000900460ff166102b7565b34801561046a57600080fd5b5060065461023f906001600160a01b031681565b34801561048a57600080fd5b506102b761049936600461396a565b60076020526000908152604090205460ff1681565b3480156104ba57600080fd5b5061023f610e7f565b3480156104cf57600080fd5b5061027c610e8e565b3480156104e457600080fd5b506103d260055481565b3480156104fa57600080fd5b5061027c610509366004613ac7565b610ed0565b34801561051a57600080fd5b5061027c61052936600461359a565b611091565b34801561053a57600080fd5b5061023f6110f9565b34801561054f57600080fd5b506103d260025481565b34801561056557600080fd5b506103d26105743660046135f8565b611103565b34801561058557600080fd5b5061027c6105943660046135b5565b6112fc565b3480156105a557600080fd5b506103d27f0000000000000000000000000000000000000000000000000000000000013e3181565b3480156105d957600080fd5b5061027c6105e836600461380d565b6114b3565b3480156105f957600080fd5b5061027c610608366004613ac7565b611583565b34801561061957600080fd5b5061027c6116ec565b6103d261063036600461371f565b61172c565b34801561064157600080fd5b50610655610650366004613af7565b611844565b604080519315158452911515602084015290820152606001610253565b34801561067e57600080fd5b506102b761068d366004613a9b565b600960209081526000928352604080842090915290825290205460ff1681565b3480156106b957600080fd5b506102b76106c836600461396a565b600c6020526000908152604090205460ff1681565b3480156106e957600080fd5b5061027c6106f8366004613696565b611972565b610705611a9a565b6001600160a01b0316336001600160a01b03161461073e5760405162461bcd60e51b815260040161073590613e88565b60405180910390fd5b60005b81518110156107a657600060086000848481518110610762576107626140d3565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061079e816140a2565b915050610741565b507fc27ae4a8b33d533c4256030aa4b2aaa26894eeaee1163759bd284eabcf15caa7816040516107d69190613c2e565b60405180910390a150565b60008181526009602090815260408083206001600160a01b038616845290915290205460ff165b92915050565b610816611acd565b61081e611b27565b60035460055460008181526009602090815260408083206001600160a01b039095168084529490915290205460ff166108695760405162461bcd60e51b815260040161073590613de5565b3334806108885760405162461bcd60e51b815260040161073590613eb3565b600360009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156108d857600080fd5b505af11580156108ec573d6000803e3d6000fd5b505060035461090b93506001600160a01b031691508490508784611b73565b505050506109196001600055565b50565b306001600160a01b037f000000000000000000000000a30c61cc85d723187c9122e7991209a509da267f1614156109655760405162461bcd60e51b815260040161073590613d99565b7f000000000000000000000000a30c61cc85d723187c9122e7991209a509da267f6001600160a01b0316610997611c16565b6001600160a01b0316146109bd5760405162461bcd60e51b815260040161073590613e13565b6109c681611c2c565b6040805160008082526020820190925261091991839190611ca8565b6109ea611a9a565b6001600160a01b0316336001600160a01b031614610a1a5760405162461bcd60e51b815260040161073590613e88565b806001600160a01b038116610a415760405162461bcd60e51b815260040161073590613e5f565b600680546001600160a01b0319166001600160a01b0384169081179091556040519081527fdbbd7b2f0d0e7ab85011e3c9115c836f3cc29f189c9c0f77b8f0dc718116c9469060200160405180910390a15050565b610a9e611acd565b610aa6611b27565b60008282604051610ab8929190613baa565b60408051918290039091206000818152600c602052919091205490915060ff16610b135760405162461bcd60e51b815260206004820152600c60248201526b1b9bdd081d995c9a599a595960a21b6044820152606401610735565b610b5283838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611e2292505050565b50610b5d6001600055565b5050565b306001600160a01b037f000000000000000000000000a30c61cc85d723187c9122e7991209a509da267f161415610baa5760405162461bcd60e51b815260040161073590613d99565b7f000000000000000000000000a30c61cc85d723187c9122e7991209a509da267f6001600160a01b0316610bdc611c16565b6001600160a01b031614610c025760405162461bcd60e51b815260040161073590613e13565b610c0b82611c2c565b610b5d82826001611ca8565b6000306001600160a01b037f000000000000000000000000a30c61cc85d723187c9122e7991209a509da267f1614610cb75760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610735565b5060008051602061410e83398151915290565b610cd2611a9a565b6001600160a01b0316336001600160a01b031614610d025760405162461bcd60e51b815260040161073590613e88565b6001600160a01b0383163b610d515760405162461bcd60e51b81526020600482015260156024820152741d1bdad95b881a5cc81b9bdd0818dbdb9d1c9858dd605a1b6044820152606401610735565b60008281526009602090815260408083206001600160a01b03871680855290835292819020805460ff191685151590811790915581519384529183018590528201527fb7e2e36d837b3e9a99d8c3de2eed62d21e4b1550a939fe020796d059a023800a906060015b60405180910390a1505050565b610dce611a9a565b6001600160a01b0316336001600160a01b031614610dfe5760405162461bcd60e51b815260040161073590613e88565b806001600160a01b038116610e255760405162461bcd60e51b815260040161073590613e5f565b600480546001600160a01b0319166001600160a01b03841690811790915560058490556040805185815260208101929092527f1a43895ae95563631980575c9049ad602ade0cced91de88c94af53e71de9f0809101610db9565b6000610e89611a9a565b905090565b610e96611a9a565b6001600160a01b0316336001600160a01b031614610ec65760405162461bcd60e51b815260040161073590613e88565b610ece611f2b565b565b610ed8611acd565b610ee0611b27565b6005548214610f245760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a590818da185a5b881a5960821b6044820152606401610735565b60065460405163016dc52760e41b8152600091829182916001600160a01b0316906316dc527090610f59908790600401613d86565b60006040518083038186803b158015610f7157600080fd5b505afa158015610f85573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fad91908101906138dd565b925092509250828290610fd35760405162461bcd60e51b81526004016107359190613d86565b5080516020808301919091206000818152600c90925260409091205460ff16156110325760405162461bcd60e51b815260206004820152601060248201526f185b1c9958591e481d995c9a599a595960821b6044820152606401610735565b6000818152600c602052604090819020805460ff19166001179055517f71b6b465a3e1914ab78a5c4e72ed92c70071ccf1a1bdee55bc47174cbcd476059061107b908490613d86565b60405180910390a150505050610b5d6001600055565b611099611a9a565b6001600160a01b0316336001600160a01b0316146110c95760405162461bcd60e51b815260040161073590613e88565b806001600160a01b0381166110f05760405162461bcd60e51b815260040161073590613e5f565b610b5d82611f7f565b6000610e89611c16565b600061110d611acd565b611115611b27565b60008481526009602090815260408083206001600160a01b038b1684529091529020548790859060ff1661115b5760405162461bcd60e51b815260040161073590613de5565b6000871161117b5760405162461bcd60e51b815260040161073590613eb3565b6040516370a0823160e01b815233600482015287906001600160a01b038b16906370a082319060240160206040518083038186803b1580156111bc57600080fd5b505afa1580156111d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f49190613983565b10156112425760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420746f6b656e2062616c616e63650000000000006044820152606401610735565b6001600160a01b03891660009081526008602052604090205460ff16156112c85760405163079cc67960e41b8152336004820152602481018890526001600160a01b038a16906379cc679090604401600060405180830381600087803b1580156112ab57600080fd5b505af11580156112bf573d6000803e3d6000fd5b505050506112d4565b6112d48933308a611fd3565b6112e389898c8a8a8a8a61203e565b925050506112f16001600055565b979650505050505050565b600154610100900460ff161580801561131957506001805460ff16105b806113325750303b15801561133257506001805460ff16145b6113955760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610735565b6001805460ff19168117905580156113b7576001805461ff0019166101001790555b836001600160a01b0381166113de5760405162461bcd60e51b815260040161073590613e5f565b836001600160a01b0381166114055760405162461bcd60e51b815260040161073590613e5f565b836001600160a01b03811661142c5760405162461bcd60e51b815260040161073590613e5f565b600380546001600160a01b03808a166001600160a01b031992831617909255600680549289169290911691909117905561146585611f7f565b50505080156114ad576001805461ff00191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050565b6114bb611a9a565b6001600160a01b0316336001600160a01b0316146114eb5760405162461bcd60e51b815260040161073590613e88565b60005b81518110156115535760016008600084848151811061150f5761150f6140d3565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061154b816140a2565b9150506114ee565b507fdacfd802eca1f2a9d9a6e78cf204ab0fe040a4ba3a8a00a66872d18658b61e5a816040516107d69190613c2e565b61158b611acd565b611593611b27565b60055482146115d75760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a590818da185a5b881a5960821b6044820152606401610735565b60065460405163016dc52760e41b8152600091829182916001600160a01b0316906316dc52709061160c908790600401613d86565b60006040518083038186803b15801561162457600080fd5b505afa158015611638573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261166091908101906138dd565b9250925092508282906116865760405162461bcd60e51b81526004016107359190613d86565b5061169081611e22565b60405133907f0000000000000000000000000000000000000000000000000000000000013e319087907f8131e5b107f7021b0773c1108755872d7b94bb31532fdf2256e0a3ef2c890a3d90600090a4505050610b5d6001600055565b6116f4611a9a565b6001600160a01b0316336001600160a01b0316146117245760405162461bcd60e51b815260040161073590613e88565b610ece612155565b6000611736611acd565b61173e611b27565b60035460008581526009602090815260408083206001600160a01b0390941680845293909152902054859060ff166117885760405162461bcd60e51b815260040161073590613de5565b34806117a65760405162461bcd60e51b815260040161073590613eb3565b600360009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156117f657600080fd5b505af115801561180a573d6000803e3d6000fd5b505060035461182c93506001600160a01b031691508a90508b848b8b8b61203e565b935050505061183b6001600055565b95945050505050565b6000818152600760205260408082205460065491516303f77f1160e21b8152600481018690526024810184905260ff909116929182916001600160a01b0390911690630fddfc449060440160206040518083038186803b1580156118a757600080fd5b505afa1580156118bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118df91906138c0565b9150600660009054906101000a90046001600160a01b03166001600160a01b0316633fa9a8de6040518163ffffffff1660e01b815260040160206040518083038186803b15801561192f57600080fd5b505afa158015611943573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119679190613983565b905093509350939050565b61197a611acd565b611982611b27565b60055460008181526009602090815260408083206001600160a01b038816845290915290205484919060ff166119ca5760405162461bcd60e51b815260040161073590613de5565b33836119e85760405162461bcd60e51b815260040161073590613eb3565b6001600160a01b03861660009081526008602052604090205460ff1615611a705760405163079cc67960e41b81526001600160a01b038281166004830152602482018690528716906379cc679090604401600060405180830381600087803b158015611a5357600080fd5b505af1158015611a67573d6000803e3d6000fd5b50505050611a7c565b611a7c86823087611fd3565b611a8886828787611b73565b505050611a956001600055565b505050565b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b546001600160a01b0316919050565b60026000541415611b205760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610735565b6002600055565b60015462010000900460ff1615610ece5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610735565b6000611b8a84611b8285612196565b6005546121cc565b9050611ba46040518060200160405280600081525061223d565b6005547f0000000000000000000000000000000000000000000000000000000000013e317fb7100086a8e13ebae772a0f09b07046e389a6b036406d22b86f2d2e5b860a8d98388611bf489612196565b8888604051611c07959493929190613c7b565b60405180910390a35050505050565b600060008051602061410e833981519152611abe565b611c34611a9a565b6001600160a01b0316336001600160a01b0316146109195760405162461bcd60e51b815260206004820152602b60248201527f4d41504f6d6e69636861696e536572766963653a206f6e6c792041646d696e2060448201526a63616e207570677261646560a81b6064820152608401610735565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611cdb57611a95836122a4565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b158015611d1457600080fd5b505afa925050508015611d44575060408051601f3d908101601f19168201909252611d4191810190613983565b60015b611da75760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610735565b60008051602061410e8339815191528114611e165760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610735565b50611a95838383612343565b6000611e2d82612368565b905060005b8151811015611a95576000828281518110611e4f57611e4f6140d3565b6020026020010151905060008160200151600081518110611e7257611e726140d3565b6020026020010151806020019051810190611e8d9190613983565b9050604051806080016040528060438152602001614155604391398051906020012081148015611ecc575081516004546001600160a01b039081169116145b15611f16576000611edc836125f8565b91505080602001517f0000000000000000000000000000000000000000000000000000000000013e311415611f1457611f14816126ff565b505b50508080611f23906140a2565b915050611e32565b611f336129c3565b6001805462ff0000191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f611fa8611a9a565b604080516001600160a01b03928316815291841660208301520160405180910390a161091981612a12565b6040516001600160a01b03808516602483015283166044820152606481018290526114ad9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612a9e565b60007f0000000000000000000000000000000000000000000000000000000000013e318414156120b05760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74207377617020746f2073656c6620636861696e000000000000006044820152606401610735565b6120bb3388866121cc565b90506120d56040518060200160405280600081525061223d565b837f0000000000000000000000000000000000000000000000000000000000013e317fca1cf8cebf88499429cca8f87cbca15ab8dafd06702259a5344ddce89ef3f3a5836121228c612196565b61212b8b612196565b8c8b8a8a6040516121429796959493929190613d08565b60405180910390a3979650505050505050565b61215d611b27565b6001805462ff00001916620100001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f623390565b604051606082811b6bffffffffffffffffffffffff19166020830152906034016040516020818303038152906040529050919050565b60028054600091309190836121e0836140a2565b919050557f0000000000000000000000000000000000000000000000000000000000013e3184878760405160200161221d96959493929190613b4f565b6040516020818303038152906040528051906020012090505b9392505050565b600654604051630121b06960e71b81526001600160a01b03909116906390d834809061226f9030908590600401613bd6565b600060405180830381600087803b15801561228957600080fd5b505af115801561229d573d6000803e3d6000fd5b5050505050565b6001600160a01b0381163b6123115760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610735565b8060008051602061410e8339815191525b80546001600160a01b0319166001600160a01b039290921691909117905550565b61234c83612b73565b6000825111806123595750805b15611a95576114ad8383612bb3565b606060006123a56123a08460408051808201825260008082526020918201528151808301909252825182529182019181019190915290565b612bd8565b905080516001600160401b038111156123c0576123c06140e9565b60405190808252806020026020018201604052801561241e57816020015b61240b604051806060016040528060006001600160a01b0316815260200160608152602001606081525090565b8152602001906001900390816123de5790505b50915060005b81518110156125f1576000612451838381518110612444576124446140d3565b6020026020010151612bd8565b90506003815110156124995760405162461bcd60e51b81526020600482015260116024820152706c6f67206c656e67746820746f206c6f7760781b6044820152606401610735565b60006124b182600181518110612444576124446140d3565b9050600081516001600160401b038111156124ce576124ce6140e9565b60405190808252806020026020018201604052801561250157816020015b60608152602001906001900390816124ec5790505b50905060005b825181101561256257612532838281518110612525576125256140d3565b6020026020010151612d1f565b828281518110612544576125446140d3565b6020026020010181905250808061255a906140a2565b915050612507565b50604051806060016040528061259185600081518110612584576125846140d3565b6020026020010151612dd2565b6001600160a01b031681526020018281526020016125bb85600281518110612525576125256140d3565b8152508685815181106125d0576125d06140d3565b602002602001018190525050505080806125e9906140a2565b915050612424565b5050919050565b606061264560405180610100016040528060008152602001600081526020016000801916815260200160608152602001606081526020016060815260200160008152602001606081525090565b825161265090612196565b91508260200151600181518110612669576126696140d3565b60200260200101518060200190518101906126849190613983565b815260208301518051600290811061269e5761269e6140d3565b60200260200101518060200190518101906126b99190613983565b81602001818152505082604001518060200190518101906126da919061399c565b60e087015260c086015260a08501526080840152606083015260408201529092909150565b60408082015160008181526007602052919091205460ff16156127525760405162461bcd60e51b815260206004820152600b60248201526a1bdc99195c88195e1a5cdd60aa1b6044820152606401610735565b6000818152600760205260408120805460ff19166001179055606083015161277b906014015190565b9050600061278e8460a001516014015190565b60c08501519091506127b8836001600160a01b031660009081526008602052604090205460ff1690565b1561281e576040516340c10f1960e01b8152306004820152602481018290526001600160a01b038416906340c10f1990604401600060405180830381600087803b15801561280557600080fd5b505af1158015612819573d6000803e3d6000fd5b505050505b60008560e001515111801561283c57506001600160a01b0382163b15155b156128c75761284c838383612e24565b6040808601518651608088015160e08901519351632344e65560e01b81526001600160a01b03871694632344e6559461288e9490938a93899390600401613cb6565b600060405180830381600087803b1580156128a857600080fd5b505af19250505080156128b9575060015b6128c257612950565b612950565b6003546001600160a01b038481169116141561294557600354604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561292357600080fd5b505af1158015612937573d6000803e3d6000fd5b505050506128c28282612e54565b612950838383612e24565b84604001517f0000000000000000000000000000000000000000000000000000000000013e3186600001517f2a945137b011d4aadec6425788c652197d107fc33f6cdccbb0c269273be9c1c986896080015187876040516129b49493929190613bfa565b60405180910390a45050505050565b60015462010000900460ff16610ece5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610735565b6001600160a01b038116612a775760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b6064820152608401610735565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103612322565b6000612af3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612f6d9092919063ffffffff16565b9050805160001480612b14575080806020019051810190612b1491906138c0565b611a955760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610735565b612b7c816122a4565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060612236838360405180606001604052806027815260200161412e60279139612f84565b6060612be382612ffc565b612c1e5760405162461bcd60e51b815260206004820152600c60248201526b1a5cc81b1a5cdd0819985a5b60a21b6044820152606401610735565b6000612c2983613035565b90506000816001600160401b03811115612c4557612c456140e9565b604051908082528060200260200182016040528015612c8a57816020015b6040805180820190915260008082526020820152815260200190600190039081612c635790505b5090506000612c9c85602001516130b8565b8560200151612cab9190613f39565b90506000805b84811015612d1457612cc283613133565b9150604051806040016040528083815260200184815250848281518110612ceb57612ceb6140d3565b6020908102919091010152612d008284613f39565b925080612d0c816140a2565b915050612cb1565b509195945050505050565b8051606090612d635760405162461bcd60e51b815260206004820152601060248201526f6974656d206c656e206973207a65726f60801b6044820152606401610735565b600080612d6f846131dc565b915091506000816001600160401b03811115612d8d57612d8d6140e9565b6040519080825280601f01601f191660200182016040528015612db7576020820181803683370190505b50905060208101612dc9848285613223565b50949350505050565b8051600090601514612e1b5760405162461bcd60e51b81526020600482015260126024820152716974656d206c656e206973206e6f7420323160701b6044820152606401610735565b610808826132a2565b6040516001600160a01b038316602482015260448101829052611a9590849063a9059cbb60e01b90606401612007565b80471015612ea45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610735565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612ef1576040519150601f19603f3d011682016040523d82523d6000602084013e612ef6565b606091505b5050905080611a955760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610735565b6060612f7c8484600085613329565b949350505050565b6060600080856001600160a01b031685604051612fa19190613bba565b600060405180830381855af49150503d8060008114612fdc576040519150601f19603f3d011682016040523d82523d6000602084013e612fe1565b606091505b5091509150612ff2868383876133f5565b9695505050505050565b805160009061300d57506000919050565b6020820151805160001a9060c082101561302b575060009392505050565b5060019392505050565b805160009061304657506000919050565b60008061305684602001516130b8565b84602001516130659190613f39565b905060008460000151856020015161307d9190613f39565b90505b808210156130af5761309182613133565b61309b9083613f39565b9150826130a7816140a2565b935050613080565b50909392505050565b8051600090811a60808110156130d15750600092915050565b60b88110806130ec575060c081108015906130ec575060f881105b156130fa5750600192915050565b60c08110156131275761310f600160b8614053565b61311c9060ff168261403c565b612236906001613f39565b61310f600160f8614053565b80516000908190811a608081101561314e57600191506131d5565b60b88110156131745761316260808261403c565b61316d906001613f39565b91506131d5565b60c08110156131a15760b78103600185019450806020036101000a855104600182018101935050506131d5565b60f88110156131b55761316260c08261403c565b60f78103600185019450806020036101000a855104600182018101935050505b5092915050565b60008060006131ee84602001516130b8565b905060008185602001516132029190613f39565b90506000828660000151613216919061403c565b9196919550909350505050565b8061322d57505050565b602081106132655782518252613244602084613f39565b9250613251602083613f39565b915061325e60208261403c565b905061322d565b8015611a95576000600161327a83602061403c565b61328690610100613f94565b613290919061403c565b84518451821691191617835250505050565b8051600090158015906132b757508151602110155b6132fa5760405162461bcd60e51b81526020600482015260146024820152731a5d195b481b195b881a5cc81b9bdd081d5a5b9d60621b6044820152606401610735565b600080613306846131dc565b815191935091506020821015612f7c5760208290036101000a9004949350505050565b60608247101561338a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610735565b600080866001600160a01b031685876040516133a69190613bba565b60006040518083038185875af1925050503d80600081146133e3576040519150601f19603f3d011682016040523d82523d6000602084013e6133e8565b606091505b50915091506112f1878383875b6060831561346157825161345a576001600160a01b0385163b61345a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610735565b5081612f7c565b612f7c83838151156134765781518083602001fd5b8060405162461bcd60e51b81526004016107359190613d86565b60006134a361349e84613f12565b613ee2565b90508281528383830111156134b757600080fd5b612236836020830184614076565b80356001600160a01b03811681146134dc57600080fd5b919050565b60008083601f8401126134f357600080fd5b5081356001600160401b0381111561350a57600080fd5b60208301915083602082850101111561352257600080fd5b9250929050565b600082601f83011261353a57600080fd5b813561354861349e82613f12565b81815284602083860101111561355d57600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f83011261358b57600080fd5b61223683835160208501613490565b6000602082840312156135ac57600080fd5b612236826134c5565b6000806000606084860312156135ca57600080fd5b6135d3846134c5565b92506135e1602085016134c5565b91506135ef604085016134c5565b90509250925092565b600080600080600080600060c0888a03121561361357600080fd5b61361c886134c5565b965061362a602089016134c5565b955060408801356001600160401b038082111561364657600080fd5b6136528b838c01613529565b965060608a0135955060808a0135945060a08a013591508082111561367657600080fd5b506136838a828b016134e1565b989b979a50959850939692959293505050565b6000806000606084860312156136ab57600080fd5b6136b4846134c5565b92506136c2602085016134c5565b9150604084013590509250925092565b600080604083850312156136e557600080fd5b6136ee836134c5565b915060208301356001600160401b0381111561370957600080fd5b61371585828601613529565b9150509250929050565b60008060008060006080868803121561373757600080fd5b613740866134c5565b945060208601356001600160401b038082111561375c57600080fd5b61376889838a01613529565b955060408801359450606088013591508082111561378557600080fd5b50613792888289016134e1565b969995985093965092949392505050565b600080604083850312156137b657600080fd5b6137bf836134c5565b946020939093013593505050565b6000806000606084860312156137e257600080fd5b6137eb846134c5565b9250602084013591506040840135613802816140ff565b809150509250925092565b6000602080838503121561382057600080fd5b82356001600160401b038082111561383757600080fd5b818501915085601f83011261384b57600080fd5b81358181111561385d5761385d6140e9565b8060051b915061386e848301613ee2565b8181528481019084860184860187018a101561388957600080fd5b600095505b838610156138b35761389f816134c5565b83526001959095019491860191860161388e565b5098975050505050505050565b6000602082840312156138d257600080fd5b8151612236816140ff565b6000806000606084860312156138f257600080fd5b83516138fd816140ff565b60208501519093506001600160401b038082111561391a57600080fd5b818601915086601f83011261392e57600080fd5b61393d87835160208501613490565b9350604086015191508082111561395357600080fd5b506139608682870161357a565b9150509250925092565b60006020828403121561397c57600080fd5b5035919050565b60006020828403121561399557600080fd5b5051919050565b60008060008060008060c087890312156139b557600080fd5b8651955060208701516001600160401b03808211156139d357600080fd5b6139df8a838b0161357a565b965060408901519150808211156139f557600080fd5b613a018a838b0161357a565b95506060890151915080821115613a1757600080fd5b613a238a838b0161357a565b94506080890151935060a0890151915080821115613a4057600080fd5b50613a4d89828a0161357a565b9150509295509295509295565b60008060208385031215613a6d57600080fd5b82356001600160401b03811115613a8357600080fd5b613a8f858286016134e1565b90969095509350505050565b60008060408385031215613aae57600080fd5b82359150613abe602084016134c5565b90509250929050565b60008060408385031215613ada57600080fd5b8235915060208301356001600160401b0381111561370957600080fd5b600080600060608486031215613b0c57600080fd5b505081359360208301359350604090920135919050565b60008151808452613b3b816020860160208601614076565b601f01601f19169290920160200192915050565b60006bffffffffffffffffffffffff19808960601b168352876014840152866034840152856054840152808560601b166074840152508251613b98816088850160208701614076565b91909101608801979650505050505050565b8183823760009101908152919050565b60008251613bcc818460208701614076565b9190910192915050565b6001600160a01b0383168152604060208201819052600090612f7c90830184613b23565b600060018060a01b03808716835260806020840152613c1c6080840187613b23565b94166040830152506060015292915050565b6020808252825182820181905260009190848201906040850190845b81811015613c6f5783516001600160a01b031683529284019291840191600101613c4a565b50909695505050505050565b858152600060018060a01b03808716602084015260a06040840152613ca360a0840187613b23565b9416606083015250608001529392505050565b86815260018060a01b038616602082015284604082015283606082015260c060808201526000613ce960c0830185613b23565b82810360a0840152613cfb8185613b23565b9998505050505050505050565b87815260c060208201526000613d2160c0830189613b23565b8281036040840152613d338189613b23565b90508281036060840152613d478188613b23565b905085608084015282810360a0840152838152838560208301376000602085830101526020601f19601f86011682010191505098975050505050505050565b6020815260006122366020830184613b23565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252601490820152731d1bdad95b881b9bdd081c9959da5cdd195c995960621b604082015260600190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252600f908201526e61646472657373206973207a65726f60881b604082015260600190565b60208082526011908201527036b7b9901d1d1037b7363c9030b236b4b760791b604082015260600190565b60208082526015908201527453656e64696e672076616c7565206973207a65726f60581b604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715613f0a57613f0a6140e9565b604052919050565b60006001600160401b03821115613f2b57613f2b6140e9565b50601f01601f191660200190565b60008219821115613f4c57613f4c6140bd565b500190565b600181815b80851115613f8c578160001904821115613f7257613f726140bd565b80851615613f7f57918102915b93841c9390800290613f56565b509250929050565b60006122368383600082613faa57506001610808565b81613fb757506000610808565b8160018114613fcd5760028114613fd757613ff3565b6001915050610808565b60ff841115613fe857613fe86140bd565b50506001821b610808565b5060208310610133831016604e8410600b8410161715614016575081810a610808565b6140208383613f51565b8060001904821115614034576140346140bd565b029392505050565b60008282101561404e5761404e6140bd565b500390565b600060ff821660ff84168082101561406d5761406d6140bd565b90039392505050565b60005b83811015614091578181015183820152602001614079565b838111156114ad5750506000910152565b60006000198214156140b6576140b66140bd565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461091957600080fdfe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65646d6170537761704f75742875696e743235362c75696e743235362c627974657333322c62797465732c62797465732c62797465732c75696e743235362c627974657329a2646970667358221220d8b724318e8d1a41f0202435661b4faefdf1106935a8b273f7756e621d9438bd64736f6c63430008070033

Deployed Bytecode Sourcemap

1054:12513:30:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1388:21;;;;;;;;;;-1:-1:-1;1388:21:30;;;;-1:-1:-1;;;;;1388:21:30;;;;;;-1:-1:-1;;;;;12363:32:37;;;12345:51;;12333:2;12318:18;1388:21:30;;;;;;;;4083:233;;;;;;;;;;-1:-1:-1;4083:233:30;;;;;:::i;:::-;;:::i;:::-;;8586:109;;;;;;;;;;-1:-1:-1;8586:109:30;;;;;:::i;:::-;-1:-1:-1;;;;;8666:22:30;8643:4;8666:22;;;:14;:22;;;;;;;;;8586:109;;;;15383:14:37;;15376:22;15358:41;;15346:2;15331:18;8586:109:30;15218:187:37;8701:141:30;;;;;;;;;;-1:-1:-1;8701:141:30;;;;;:::i;:::-;;:::i;6969:374::-;;;;;;:::i;:::-;;:::i;3143:195:12:-;;;;;;;;;;-1:-1:-1;3143:195:12;;;;;:::i;:::-;;:::i;3665:180:30:-;;;;;;;;;;-1:-1:-1;3665:180:30;;;;;:::i;:::-;;:::i;1655:46::-;;;;;;;;;;-1:-1:-1;1655:46:30;;;;;:::i;:::-;;;;;;;;;;;;;;;;7934:225;;;;;;;;;;-1:-1:-1;7934:225:30;;;;;:::i;:::-;;:::i;1824:27::-;;;;;;;;;;-1:-1:-1;1824:27:30;;;;-1:-1:-1;;;;;1824:27:30;;;3657:220:12;;;;;;:::i;:::-;;:::i;2762:131::-;;;;;;;;;;;;;:::i;:::-;;;15900:25:37;;;15888:2;15873:18;2762:131:12;15754:177:37;4550:269:30;;;;;;;;;;-1:-1:-1;4550:269:30;;;;;:::i;:::-;;:::i;4322:222::-;;;;;;;;;;-1:-1:-1;4322:222:30;;;;;:::i;:::-;;:::i;1439:28::-;;;;;;;;;;-1:-1:-1;1439:28:30;;;;-1:-1:-1;;;;;1439:28:30;;;1615:84:13;;;;;;;;;;-1:-1:-1;1685:7:13;;;;;;;1615:84;;1506:27:30;;;;;;;;;;-1:-1:-1;1506:27:30;;;;-1:-1:-1;;;;;1506:27:30;;;1608:41;;;;;;;;;;-1:-1:-1;1608:41:30;;;;;:::i;:::-;;;;;;;;;;;;;;;;13367:87;;;;;;;;;;;;;:::i;3591:68::-;;;;;;;;;;;;;:::i;1473:27::-;;;;;;;;;;;;;;;;7391:503;;;;;;;;;;-1:-1:-1;7391:503:30;;;;;:::i;:::-;;:::i;13247:114::-;;;;;;;;;;-1:-1:-1;13247:114:30;;;;;:::i;:::-;;:::i;13460:105::-;;;;;;;;;;;;;:::i;1362:20::-;;;;;;;;;;;;;;;;4876:836;;;;;;;;;;-1:-1:-1;4876:836:30;;;;;:::i;:::-;;:::i;2637:297::-;;;;;;;;;;-1:-1:-1;2637:297:30;;;;;:::i;:::-;;:::i;1304:52::-;;;;;;;;;;;;;;;3851:226;;;;;;;;;;-1:-1:-1;3851:226:30;;;;;:::i;:::-;;:::i;8165:415::-;;;;;;;;;;-1:-1:-1;8165:415:30;;;;;:::i;:::-;;:::i;3521:64::-;;;;;;;;;;;;;:::i;5718:626::-;;;;;;:::i;:::-;;:::i;8848:335::-;;;;;;;;;;-1:-1:-1;8848:335:30;;;;;:::i;:::-;;:::i;:::-;;;;15625:14:37;;15618:22;15600:41;;15684:14;;15677:22;15672:2;15657:18;;15650:50;15716:18;;;15709:34;15588:2;15573:18;8848:335:30;15410:339:37;1707:68:30;;;;;;;;;;-1:-1:-1;1707:68:30;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;1923:46;;;;;;;;;;-1:-1:-1;1923:46:30;;;;;:::i;:::-;;;;;;;;;;;;;;;;6350:613;;;;;;;;;;-1:-1:-1;6350:613:30;;;;;:::i;:::-;;:::i;4083:233::-;3464:11;:9;:11::i;:::-;-1:-1:-1;;;;;3450:25:30;:10;-1:-1:-1;;;;;3450:25:30;;3442:55;;;;-1:-1:-1;;;3442:55:30;;;;;;;:::i;:::-;;;;;;;;;4171:9:::1;4166:102;4190:6;:13;4186:1;:17;4166:102;;;4252:5;4224:14;:25;4239:6;4246:1;4239:9;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;4224:25:30::1;::::0;;;::::1;::::0;;;;;;-1:-1:-1;4224:25:30;:33;;-1:-1:-1;;4224:33:30::1;::::0;::::1;;::::0;;;::::1;::::0;;4205:3;::::1;::::0;::::1;:::i;:::-;;;;4166:102;;;;4282:27;4302:6;4282:27;;;;;;:::i;:::-;;;;;;;;4083:233:::0;:::o;8701:141::-;8778:4;8801:26;;;:16;:26;;;;;;;;-1:-1:-1;;;;;8801:34:30;;;;;;;;;;;;8701:141;;;;;:::o;6969:374::-;2261:21:14;:19;:21::i;:::-;1239:19:13::1;:17;:19::i;:::-;7088:6:30::2;::::0;7096:12:::2;::::0;7088:6:::2;3204:26:::0;;;:16:::2;:26;::::0;;;;;;;-1:-1:-1;;;;;7088:6:30;;::::2;3204:34:::0;;;;;;;;;;::::2;;3196:67;;;;-1:-1:-1::0;;;3196:67:30::2;;;;;;;:::i;:::-;7135:10:::3;7172:9;7199:10:::0;7191:44:::3;;;;-1:-1:-1::0;;;7191:44:30::3;;;;;;;:::i;:::-;7259:6;;;;;;;;;-1:-1:-1::0;;;;;7259:6:30::3;-1:-1:-1::0;;;;;7245:29:30::3;;7282:6;7245:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;-1:-1:-1::0;;7310:6:30::3;::::0;7301:35:::3;::::0;-1:-1:-1;;;;;;7310:6:30::3;::::0;-1:-1:-1;7318:4:30;;-1:-1:-1;7324:3:30;7329:6;7301:8:::3;:35::i;:::-;7110:233;;1268:1:13::2;;2303:20:14::0;1716:1;2809:7;:22;2629:209;2303:20;6969:374:30;:::o;3143:195:12:-;1645:4;-1:-1:-1;;;;;1654:6:12;1637:23;;;1629:80;;;;-1:-1:-1;;;1629:80:12;;;;;;;:::i;:::-;1751:6;-1:-1:-1;;;;;1727:30:12;:20;:18;:20::i;:::-;-1:-1:-1;;;;;1727:30:12;;1719:87;;;;-1:-1:-1;;;1719:87:12;;;;;;;:::i;:::-;3224:36:::1;3242:17;3224;:36::i;:::-;3311:12;::::0;;3321:1:::1;3311:12:::0;;;::::1;::::0;::::1;::::0;;;3270:61:::1;::::0;3292:17;;3311:12;3270:21:::1;:61::i;3665:180:30:-:0;3464:11;:9;:11::i;:::-;-1:-1:-1;;;;;3450:25:30;:10;-1:-1:-1;;;;;3450:25:30;;3442:55;;;;-1:-1:-1;;;3442:55:30;;;;;;;:::i;:::-;3741:10;-1:-1:-1;;;;;3345:22:30;::::1;3337:50;;;;-1:-1:-1::0;;;3337:50:30::1;;;;;;;:::i;:::-;3763:9:::2;:34:::0;;-1:-1:-1;;;;;;3763:34:30::2;-1:-1:-1::0;;;;;3763:34:30;::::2;::::0;;::::2;::::0;;;3812:26:::2;::::0;12345:51:37;;;3812:26:30::2;::::0;12333:2:37;12318:18;3812:26:30::2;;;;;;;3507:1:::1;3665:180:::0;:::o;7934:225::-;2261:21:14;:19;:21::i;:::-;1239:19:13::1;:17;:19::i;:::-;8029:12:30::2;8054:8;;8044:19;;;;;;;:::i;:::-;;::::0;;;;;::::2;::::0;;;8081::::2;::::0;;;:13:::2;:19;::::0;;;;;;8044;;-1:-1:-1;8081:19:30::2;;8073:44;;;::::0;-1:-1:-1;;;8073:44:30;;19977:2:37;8073:44:30::2;::::0;::::2;19959:21:37::0;20016:2;19996:18;;;19989:30;-1:-1:-1;;;20035:18:37;;;20028:42;20087:18;;8073:44:30::2;19775:336:37::0;8073:44:30::2;8127:25;8143:8;;8127:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;;;;-1:-1:-1;8127:15:30::2;::::0;-1:-1:-1;;;8127:25:30:i:2;:::-;8019:140;2303:20:14::0;1716:1;2809:7;:22;2629:209;2303:20;7934:225:30;;:::o;3657:220:12:-;1645:4;-1:-1:-1;;;;;1654:6:12;1637:23;;;1629:80;;;;-1:-1:-1;;;1629:80:12;;;;;;;:::i;:::-;1751:6;-1:-1:-1;;;;;1727:30:12;:20;:18;:20::i;:::-;-1:-1:-1;;;;;1727:30:12;;1719:87;;;;-1:-1:-1;;;1719:87:12;;;;;;;:::i;:::-;3772:36:::1;3790:17;3772;:36::i;:::-;3818:52;3840:17;3859:4;3865;3818:21;:52::i;2762:131::-:0;2840:7;2080:4;-1:-1:-1;;;;;2089:6:12;2072:23;;2064:92;;;;-1:-1:-1;;;2064:92:12;;25516:2:37;2064:92:12;;;25498:21:37;25555:2;25535:18;;;25528:30;25594:34;25574:18;;;25567:62;25665:26;25645:18;;;25638:54;25709:19;;2064:92:12;25314:420:37;2064:92:12;-1:-1:-1;;;;;;;;;;;;2762:131:12;:::o;4550:269:30:-;3464:11;:9;:11::i;:::-;-1:-1:-1;;;;;3450:25:30;:10;-1:-1:-1;;;;;3450:25:30;;3442:55;;;;-1:-1:-1;;;3442:55:30;;;;;;;:::i;:::-;-1:-1:-1;;;;;4658:17:30;::::1;1702:19:20::0;4650:53:30::1;;;::::0;-1:-1:-1;;;4650:53:30;;24468:2:37;4650:53:30::1;::::0;::::1;24450:21:37::0;24507:2;24487:18;;;24480:30;-1:-1:-1;;;24526:18:37;;;24519:51;24587:18;;4650:53:30::1;24266:345:37::0;4650:53:30::1;4713:26;::::0;;;:16:::1;:26;::::0;;;;;;;-1:-1:-1;;;;;4713:34:30;::::1;::::0;;;;;;;;;;:44;;-1:-1:-1;;4713:44:30::1;::::0;::::1;;::::0;;::::1;::::0;;;4772:40;;14391:51:37;;;14458:18;;;14451:34;;;14501:18;;14494:50;4772:40:30::1;::::0;14379:2:37;14364:18;4772:40:30::1;;;;;;;;4550:269:::0;;;:::o;4322:222::-;3464:11;:9;:11::i;:::-;-1:-1:-1;;;;;3450:25:30;:10;-1:-1:-1;;;;;3450:25:30;;3442:55;;;;-1:-1:-1;;;3442:55:30;;;;;;;:::i;:::-;4414:6;-1:-1:-1;;;;;3345:22:30;::::1;3337:50;;;;-1:-1:-1::0;;;3337:50:30::1;;;;;;;:::i;:::-;4432:13:::2;:22:::0;;-1:-1:-1;;;;;;4432:22:30::2;-1:-1:-1::0;;;;;4432:22:30;::::2;::::0;;::::2;::::0;;;4464:12:::2;:23:::0;;;4503:34:::2;::::0;;31719:25:37;;;31775:2;31760:18;;31753:60;;;;4503:34:30::2;::::0;31692:18:37;4503:34:30::2;31545:274:37::0;13367:87:30;13410:7;13436:11;:9;:11::i;:::-;13429:18;;13367:87;:::o;3591:68::-;3464:11;:9;:11::i;:::-;-1:-1:-1;;;;;3450:25:30;:10;-1:-1:-1;;;;;3450:25:30;;3442:55;;;;-1:-1:-1;;;3442:55:30;;;;;;;:::i;:::-;3642:10:::1;:8;:10::i;:::-;3591:68::o:0;7391:503::-;2261:21:14;:19;:21::i;:::-;1239:19:13::1;:17;:19::i;:::-;7525:12:30::2;;7513:8;:24;7505:53;;;::::0;-1:-1:-1;;;7505:53:30;;26286:2:37;7505:53:30::2;::::0;::::2;26268:21:37::0;26325:2;26305:18;;;26298:30;-1:-1:-1;;;26344:18:37;;;26337:46;26400:18;;7505:53:30::2;26084:340:37::0;7505:53:30::2;7631:9;::::0;:40:::2;::::0;-1:-1:-1;;;7631:40:30;;7569:12:::2;::::0;;;;;-1:-1:-1;;;;;7631:9:30::2;::::0;:25:::2;::::0;:40:::2;::::0;7657:13;;7631:40:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;::::0;;::::2;-1:-1:-1::0;;7631:40:30::2;::::0;::::2;;::::0;::::2;::::0;;;::::2;::::0;::::2;:::i;:::-;7568:103;;;;;;7689:7;7698;7681:25;;;;;-1:-1:-1::0;;;7681:25:30::2;;;;;;;;:::i;:::-;-1:-1:-1::0;7731:19:30;;::::2;::::0;;::::2;::::0;;;;7716:12:::2;7769:19:::0;;;:13:::2;:19:::0;;;;;;;;::::2;;7768:20;7760:49;;;::::0;-1:-1:-1;;;7760:49:30;;22172:2:37;7760:49:30::2;::::0;::::2;22154:21:37::0;22211:2;22191:18;;;22184:30;-1:-1:-1;;;22230:18:37;;;22223:46;22286:18;;7760:49:30::2;21970:340:37::0;7760:49:30::2;7819:19;::::0;;;:13:::2;:19;::::0;;;;;;:26;;-1:-1:-1;;7819:26:30::2;7841:4;7819:26;::::0;;7860:27;::::2;::::0;::::2;::::0;7878:8;;7860:27:::2;:::i;:::-;;;;;;;;7495:399;;;;2303:20:14::0;1716:1;2809:7;:22;2629:209;13247:114:30;3464:11;:9;:11::i;:::-;-1:-1:-1;;;;;3450:25:30;:10;-1:-1:-1;;;;;3450:25:30;;3442:55;;;;-1:-1:-1;;;3442:55:30;;;;;;;:::i;:::-;13316:6;-1:-1:-1;;;;;3345:22:30;::::1;3337:50;;;;-1:-1:-1::0;;;3337:50:30::1;;;;;;;:::i;:::-;13334:20:::2;13347:6;13334:12;:20::i;13460:105::-:0;13512:7;13538:20;:18;:20::i;4876:836::-;5228:15;2261:21:14;:19;:21::i;:::-;1239:19:13::1;:17;:19::i;:::-;3204:26:30::2;::::0;;;:16:::2;:26;::::0;;;;;;;-1:-1:-1;;;;;3204:34:30;::::2;::::0;;;;;;;;5201:6;;5209:8;;3204:34:::2;;3196:67;;;;-1:-1:-1::0;;;3196:67:30::2;;;;;;;:::i;:::-;5273:1:::3;5263:7;:11;5255:45;;;;-1:-1:-1::0;;;5255:45:30::3;;;;;;;:::i;:::-;5318:36;::::0;-1:-1:-1;;;5318:36:30;;5343:10:::3;5318:36;::::0;::::3;12345:51:37::0;5358:7:30;;-1:-1:-1;;;;;5318:24:30;::::3;::::0;::::3;::::0;12318:18:37;;5318:36:30::3;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:47;;5310:86;;;::::0;-1:-1:-1;;;5310:86:30;;28972:2:37;5310:86:30::3;::::0;::::3;28954:21:37::0;29011:2;28991:18;;;28984:30;29050:28;29030:18;;;29023:56;29096:18;;5310:86:30::3;28770:350:37::0;5310:86:30::3;-1:-1:-1::0;;;;;8666:22:30;;8643:4;8666:22;;;:14;:22;;;;;;;;5406:210:::3;;;5444:52;::::0;-1:-1:-1;;;5444:52:30;;5476:10:::3;5444:52;::::0;::::3;14090:51:37::0;14157:18;;;14150:34;;;-1:-1:-1;;;;;5444:31:30;::::3;::::0;::::3;::::0;14063:18:37;;5444:52:30::3;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;5406:210;;;5527:78;5561:6;5570:10;5590:4;5597:7;5527:26;:78::i;:::-;5635:70;5644:6;5652:3;5657:17;5676:7;5685:8;5695:9;;5635:8;:70::i;:::-;5625:80;;1268:1:13::2;;2303:20:14::0;1716:1;2809:7;:22;2629:209;2303:20;4876:836:30;;;;;;;;;:::o;2637:297::-;3291:13:11;;;;;;;3290:14;;3336:34;;;;-1:-1:-1;3369:1:11;3354:12;;;;:16;3336:34;3335:97;;;-1:-1:-1;3404:4:11;1702:19:20;:23;;;3376:55:11;;-1:-1:-1;3414:12:11;;;;;:17;3376:55;3314:190;;;;-1:-1:-1;;;3314:190:11;;27382:2:37;3314:190:11;;;27364:21:37;27421:2;27401:18;;;27394:30;27460:34;27440:18;;;27433:62;-1:-1:-1;;;27511:18:37;;;27504:44;27565:19;;3314:190:11;27180:410:37;3314:190:11;3529:1;3514:16;;-1:-1:-1;;3514:16:11;;;;;3540:65;;;;3590:4;3574:20;;-1:-1:-1;;3574:20:11;;;;;3540:65;2772:7:30;-1:-1:-1;;;;;3345:22:30;::::1;3337:50;;;;-1:-1:-1::0;;;3337:50:30::1;;;;;;;:::i;:::-;2794:10:::0;-1:-1:-1;;;;;3345:22:30;::::2;3337:50;;;;-1:-1:-1::0;;;3337:50:30::2;;;;;;;:::i;:::-;2819:6:::0;-1:-1:-1;;;;;3345:22:30;::::3;3337:50;;;;-1:-1:-1::0;;;3337:50:30::3;;;;;;;:::i;:::-;2837:6:::4;:16:::0;;-1:-1:-1;;;;;2837:16:30;;::::4;-1:-1:-1::0;;;;;;2837:16:30;;::::4;;::::0;;;2863:9:::4;:34:::0;;;;::::4;::::0;;;::::4;::::0;;;::::4;::::0;;2907:20:::4;2920:6:::0;2907:12:::4;:20::i;:::-;3397:1:::3;::::2;3614::11::1;3629:14:::0;3625:99;;;3659:13;:21;;-1:-1:-1;;3659:21:11;;;3699:14;;18806:36:37;;;3699:14:11;;18794:2:37;18779:18;3699:14:11;;;;;;;3625:99;3258:472;2637:297:30;;;:::o;3851:226::-;3464:11;:9;:11::i;:::-;-1:-1:-1;;;;;3450:25:30;:10;-1:-1:-1;;;;;3450:25:30;;3442:55;;;;-1:-1:-1;;;3442:55:30;;;;;;;:::i;:::-;3936:9:::1;3931:101;3955:6;:13;3951:1;:17;3931:101;;;4017:4;3989:14;:25;4004:6;4011:1;4004:9;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;3989:25:30::1;::::0;;;::::1;::::0;;;;;;-1:-1:-1;3989:25:30;:32;;-1:-1:-1;;3989:32:30::1;::::0;::::1;;::::0;;;::::1;::::0;;3970:3;::::1;::::0;::::1;:::i;:::-;;;;3931:101;;;;4046:24;4063:6;4046:24;;;;;;:::i;8165:415::-:0;2261:21:14;:19;:21::i;:::-;1239:19:13::1;:17;:19::i;:::-;8293:12:30::2;;8281:8;:24;8273:53;;;::::0;-1:-1:-1;;;8273:53:30;;26286:2:37;8273:53:30::2;::::0;::::2;26268:21:37::0;26325:2;26305:18;;;26298:30;-1:-1:-1;;;26344:18:37;;;26337:46;26400:18;;8273:53:30::2;26084:340:37::0;8273:53:30::2;8399:9;::::0;:40:::2;::::0;-1:-1:-1;;;8399:40:30;;8337:12:::2;::::0;;;;;-1:-1:-1;;;;;8399:9:30::2;::::0;:25:::2;::::0;:40:::2;::::0;8425:13;;8399:40:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;::::0;;::::2;-1:-1:-1::0;;8399:40:30::2;::::0;::::2;;::::0;::::2;::::0;;;::::2;::::0;::::2;:::i;:::-;8336:103;;;;;;8457:7;8466;8449:25;;;;;-1:-1:-1::0;;;8449:25:30::2;;;;;;;;:::i;:::-;;8484;8500:8;8484:15;:25::i;:::-;8524:49;::::0;8562:10:::2;::::0;8549:11:::2;::::0;8539:8;;8524:49:::2;::::0;;;::::2;8263:317;;;2303:20:14::0;1716:1;2809:7;:22;2629:209;3521:64:30;3464:11;:9;:11::i;:::-;-1:-1:-1;;;;;3450:25:30;:10;-1:-1:-1;;;;;3450:25:30;;3442:55;;;;-1:-1:-1;;;3442:55:30;;;;;;;:::i;:::-;3570:8:::1;:6;:8::i;5718:626::-:0;6081:15;2261:21:14;:19;:21::i;:::-;1239:19:13::1;:17;:19::i;:::-;6046:6:30::2;::::0;::::2;3204:26:::0;;;:16:::2;:26;::::0;;;;;;;-1:-1:-1;;;;;6046:6:30;;::::2;3204:34:::0;;;;;;;;;;6054:8;;3204:34:::2;;3196:67;;;;-1:-1:-1::0;;;3196:67:30::2;;;;;;;:::i;:::-;6129:9:::3;6156:10:::0;6148:44:::3;;;;-1:-1:-1::0;;;6148:44:30::3;;;;;;;:::i;:::-;6216:6;;;;;;;;;-1:-1:-1::0;;;;;6216:6:30::3;-1:-1:-1::0;;;;;6202:29:30::3;;6239:6;6202:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;-1:-1:-1::0;;6277:6:30::3;::::0;6268:69:::3;::::0;-1:-1:-1;;;;;;6277:6:30::3;::::0;-1:-1:-1;6285:3:30;;-1:-1:-1;6290:17:30;6309:6;6317:8;6327:9;;6268:8:::3;:69::i;:::-;6258:79;;6102:242;1268:1:13::2;;2303:20:14::0;1716:1;2809:7;:22;2629:209;2303:20;5718:626:30;;;;;;;:::o;8848:335::-;8980:11;9047:19;;;:9;:19;;;;;;;9089:9;;:46;;-1:-1:-1;;;9089:46:30;;;;;31998:25:37;;;32039:18;;;32032:34;;;9047:19:30;;;;;8980:11;;;-1:-1:-1;;;;;9089:9:30;;;;:22;;31971:18:37;;9089:46:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;9076:59;;9156:9;;;;;;;;;-1:-1:-1;;;;;9156:9:30;-1:-1:-1;;;;;9156:18:30;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;9145:31;;8848:335;;;;;;;:::o;6350:613::-;2261:21:14;:19;:21::i;:::-;1239:19:13::1;:17;:19::i;:::-;6517:12:30::2;::::0;3204:26:::2;::::0;;;:16:::2;:26;::::0;;;;;;;-1:-1:-1;;;;;3204:34:30;::::2;::::0;;;;;;;;6509:6;;6517:12;3204:34:::2;;3196:67;;;;-1:-1:-1::0;;;3196:67:30::2;;;;;;;:::i;:::-;6556:10:::3;6584:11:::0;6576:45:::3;;;;-1:-1:-1::0;;;6576:45:30::3;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;8666:22:30;;8643:4;8666:22;;;:14;:22;;;;;;;;6713:198:::3;;;6751:46;::::0;-1:-1:-1;;;6751:46:30;;-1:-1:-1;;;;;14108:32:37;;;6751:46:30::3;::::0;::::3;14090:51:37::0;14157:18;;;14150:34;;;6751:31:30;::::3;::::0;::::3;::::0;14063:18:37;;6751:46:30::3;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;6713:198;;;6828:72;6862:6;6871:4;6885;6892:7;6828:26;:72::i;:::-;6920:36;6929:6;6937:4;6943:3;6948:7;6920:8;:36::i;:::-;6531:432;1268:1:13::2;;2303:20:14::0;1716:1;2809:7;:22;2629:209;2303:20;6350:613:30;;;:::o;3784:122:9:-;3828:7;3656:66;3854:39;:45;-1:-1:-1;;;;;3854:45:9;;3784:122;-1:-1:-1;3784:122:9:o;2336:287:14:-;1759:1;2468:7;;:19;;2460:63;;;;-1:-1:-1;;;2460:63:14;;30508:2:37;2460:63:14;;;30490:21:37;30547:2;30527:18;;;30520:30;30586:33;30566:18;;;30559:61;30637:18;;2460:63:14;30306:355:37;2460:63:14;1759:1;2598:7;:18;2336:287::o;1767:106:13:-;1685:7;;;;;;;1836:9;1828:38;;;;-1:-1:-1;;;1828:38:13;;25941:2:37;1828:38:13;;;25923:21:37;25980:2;25960:18;;;25953:30;-1:-1:-1;;;25999:18:37;;;25992:46;26055:18;;1828:38:13;25739:340:37;12555:322:30;12653:15;12671:52;12683:5;12690:18;12704:3;12690:13;:18::i;:::-;12710:12;;12671:11;:52::i;:::-;12653:70;;12733:29;12752:9;;;;;;;;;;;;12733:18;:29::i;:::-;12804:12;;12791:11;12777:93;12818:7;12827:6;12835:20;12849:5;12835:13;:20::i;:::-;12857:3;12862:7;12777:93;;;;;;;;;;:::i;:::-;;;;;;;;12643:234;12555:322;;;;:::o;1175:140:9:-;1228:7;-1:-1:-1;;;;;;;;;;;1254:48:9;1859:190:22;13084:157:30;13175:11;:9;:11::i;:::-;-1:-1:-1;;;;;13161:25:30;:10;-1:-1:-1;;;;;13161:25:30;;13153:81;;;;-1:-1:-1;;;13153:81:30;;29685:2:37;13153:81:30;;;29667:21:37;29724:2;29704:18;;;29697:30;29763:34;29743:18;;;29736:62;-1:-1:-1;;;29814:18:37;;;29807:41;29865:19;;13153:81:30;29483:407:37;2494:922:9;689:66;2910:48;;;2906:504;;;2974:37;2993:17;2974:18;:37::i;2906:504::-;3064:17;-1:-1:-1;;;;;3046:50:9;;:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3046:52:9;;;;;;;;-1:-1:-1;;3046:52:9;;;;;;;;;;;;:::i;:::-;;;3042:291;;3262:56;;-1:-1:-1;;;3262:56:9;;28143:2:37;3262:56:9;;;28125:21:37;28182:2;28162:18;;;28155:30;28221:34;28201:18;;;28194:62;-1:-1:-1;;;28272:18:37;;;28265:44;28326:19;;3262:56:9;27941:410:37;3042:291:9;-1:-1:-1;;;;;;;;;;;3148:28:9;;3140:82;;;;-1:-1:-1;;;3140:82:9;;26972:2:37;3140:82:9;;;26954:21:37;27011:2;26991:18;;;26984:30;27050:34;27030:18;;;27023:62;-1:-1:-1;;;27101:18:37;;;27094:39;27150:19;;3140:82:9;26770:405:37;3140:82:9;3099:138;3346:53;3364:17;3383:4;3389:9;3346:17;:53::i;9404:742:30:-;9470:26;9499:33;9523:8;9499:23;:33::i;:::-;9470:62;;9547:9;9542:598;9566:4;:11;9562:1;:15;9542:598;;;9598:23;9624:4;9629:1;9624:7;;;;;;;;:::i;:::-;;;;;;;9598:33;;9647:13;9674:3;:10;;;9685:1;9674:13;;;;;;;;:::i;:::-;;;;;;;9663:36;;;;;;;;;;;;:::i;:::-;9647:52;;507:76:36;;;;;;;;;;;;;;;;;497:87;;;;;;9717:5:30;:37;:66;;;;-1:-1:-1;9775:8:30;;9758:13;;-1:-1:-1;;;;;9758:13:30;;;:25;;;9717:66;9713:418;;;9806:35;9845:32;9873:3;9845:27;:32::i;:::-;9803:74;;;10042:8;:16;;;10027:11;:31;10023:94;;;10081:17;10089:8;10081:7;:17::i;:::-;9785:346;9713:418;9584:556;;9579:3;;;;;:::i;:::-;;;;9542:598;;2433:117:13;1486:16;:14;:16::i;:::-;2491:7:::1;:15:::0;;-1:-1:-1;;2491:15:13::1;::::0;;2521:22:::1;734:10:21::0;2530:12:13::1;2521:22;::::0;-1:-1:-1;;;;;12363:32:37;;;12345:51;;12333:2;12318:18;2521:22:13::1;;;;;;;2433:117::o:0;4300:135:9:-;4364:35;4377:11;:9;:11::i;:::-;4364:35;;;-1:-1:-1;;;;;12637:15:37;;;12619:34;;12689:15;;;12684:2;12669:18;;12662:43;12554:18;4364:35:9;;;;;;;4409:19;4419:8;4409:9;:19::i;1355:203:19:-;1482:68;;-1:-1:-1;;;;;12974:15:37;;;1482:68:19;;;12956:34:37;13026:15;;13006:18;;;12999:43;13058:18;;;13051:34;;;1455:96:19;;1475:5;;-1:-1:-1;;;1505:27:19;12891:18:37;;1482:68:19;;;;-1:-1:-1;;1482:68:19;;;;;;;;;;;;;;-1:-1:-1;;;;;1482:68:19;-1:-1:-1;;;;;;1482:68:19;;;;;;;;;;1455:19;:96::i;11892:657:30:-;12124:15;12171:11;12159:8;:23;;12151:61;;;;-1:-1:-1;;;12151:61:30;;24818:2:37;12151:61:30;;;24800:21:37;24857:2;24837:18;;;24830:30;24896:27;24876:18;;;24869:55;24941:18;;12151:61:30;24616:349:37;12151:61:30;12232:38;12244:10;12256:3;12261:8;12232:11;:38::i;:::-;12222:48;;12280:29;12299:9;;;;;;;;;;;;12280:18;:29::i;:::-;12373:8;12348:11;12324:218;12395:7;12416:21;12430:6;12416:13;:21::i;:::-;12451:20;12465:5;12451:13;:20::i;:::-;12485:3;12502:7;12523:9;;12324:218;;;;;;;;;;;;:::i;:::-;;;;;;;;11892:657;;;;;;;;;:::o;2186:115:13:-;1239:19;:17;:19::i;:::-;2255:4:::1;2245:14:::0;;-1:-1:-1;;2245:14:13::1;::::0;::::1;::::0;;2274:20:::1;2281:12;734:10:21::0;;655:96;473:113:2;557:22;;527:14;10643:15:37;;;-1:-1:-1;;10639:53:37;557:22:2;;;10627:66:37;527:14:2;10709:12:37;;557:22:2;;;;;;;;;;;;553:26;;473:113;;;:::o;9189:209:30:-;9347:5;:7;;9279;;9340:4;;9347:7;9279;9347;;;:::i;:::-;;;;;9356:11;9369:8;9379:5;9386:3;9315:75;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;9305:86;;;;;;9298:93;;9189:209;;;;;;:::o;12883:123::-;12950:9;;:49;;-1:-1:-1;;;12950:49:30;;-1:-1:-1;;;;;12950:9:30;;;;:27;;:49;;12986:4;;12993:5;;12950:49;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12883:123;:::o;1406:259:9:-;-1:-1:-1;;;;;1702:19:20;;;1479:95:9;;;;-1:-1:-1;;;1479:95:9;;28558:2:37;1479:95:9;;;28540:21:37;28597:2;28577:18;;;28570:30;28636:34;28616:18;;;28609:62;-1:-1:-1;;;28687:18:37;;;28680:43;28740:19;;1479:95:9;28356:409:37;1479:95:9;1641:17;-1:-1:-1;;;;;;;;;;;1584:48:9;:74;;-1:-1:-1;;;;;;1584:74:9;-1:-1:-1;;;;;1584:74:9;;;;;;;;;;-1:-1:-1;1406:259:9:o;2057:265::-;2165:29;2176:17;2165:10;:29::i;:::-;2222:1;2208:4;:11;:15;:28;;;;2227:9;2208:28;2204:112;;;2252:53;2281:17;2300:4;2252:28;:53::i;591:795:36:-;659:29;700;732;:20;:8;-1:-1:-1;;;;;;;;;;;;;;;;;1700:28:1;;;;;;;;1708:11;;1700:28;;1658:15;;;1700:28;;;;;;;;1514:221;732:20:36;:27;:29::i;:::-;700:61;;800:2;:9;-1:-1:-1;;;;;781:29:36;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;781:29:36;;;;;;;;;;;;;;;;;771:39;;825:9;820:560;844:2;:9;840:1;:13;820:560;;;874:31;908:14;:2;911:1;908:5;;;;;;;;:::i;:::-;;;;;;;:12;:14::i;:::-;874:48;;960:1;945:4;:11;:16;;937:46;;;;-1:-1:-1;;;937:46:36;;23357:2:37;937:46:36;;;23339:21:37;23396:2;23376:18;;;23369:30;-1:-1:-1;;;23415:18:37;;;23408:47;23472:18;;937:46:36;23155:341:37;937:46:36;998:40;1041:16;:4;1046:1;1041:7;;;;;;;;:::i;:16::-;998:59;;1071:20;1106:13;:20;-1:-1:-1;;;;;1094:33:36;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1071:56;;1146:9;1141:121;1165:13;:20;1161:1;:24;1141:121;;;1221:26;:13;1235:1;1221:16;;;;;;;;:::i;:::-;;;;;;;:24;:26::i;:::-;1210:5;1216:1;1210:8;;;;;;;;:::i;:::-;;;;;;:37;;;;1187:3;;;;;:::i;:::-;;;;1141:121;;;;1288:81;;;;;;;;1308:19;:4;1313:1;1308:7;;;;;;;;:::i;:::-;;;;;;;:17;:19::i;:::-;-1:-1:-1;;;;;1288:81:36;;;;;1337:5;1288:81;;;;1350:17;:4;1355:1;1350:7;;;;;;;;:::i;:17::-;1288:81;;;1275:7;1283:1;1275:10;;;;;;;;:::i;:::-;;;;;;:94;;;;860:520;;;855:3;;;;;:::i;:::-;;;;820:560;;;;690:696;591:795;;;:::o;1392:549::-;1480:23;1505:35;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1505:35:36;1579:8;;1565:23;;:13;:23::i;:::-;1552:36;;1630:3;:10;;;1641:1;1630:13;;;;;;;;:::i;:::-;;;;;;;1619:36;;;;;;;;;;;;:::i;:::-;1598:57;;1695:10;;;;:13;;1706:1;;1695:13;;;;;;:::i;:::-;;;;;;;1684:36;;;;;;;;;;;;:::i;:::-;1665:8;:16;;:55;;;;;1856:3;:8;;;1832:102;;;;;;;;;;;;:::i;:::-;1811:17;;;1731:203;1794:15;;;1731:203;1781:11;;;1731:203;1766:13;;;1731:203;1750:14;;;1731:203;1732:16;;;1731:203;1392:549;;1732:8;;-1:-1:-1;1392:549:36:o;10152:1734:30:-;10227:17;;;;;3032:19;;;;:9;:19;;;;;;;;;3031:20;3023:44;;;;-1:-1:-1;;;3023:44:30;;21832:2:37;3023:44:30;;;21814:21:37;21871:2;21851:18;;;21844:30;-1:-1:-1;;;21890:18:37;;;21883:41;21941:18;;3023:44:30;21630:335:37;3023:44:30;3077:19;;;;:9;:19;;;;;:26;;-1:-1:-1;;3077:26:30;3099:4;3077:26;;;10290:15:::1;::::0;::::1;::::0;10274:32:::1;::::0;447:2:2;438:12;432:19;;317:150;10274:32:30::1;10256:50;;10345:25;10381:29;10397:9;:12;;;447:2:2::0;438:12;432:19;;317:150;10381:29:30::1;10489:16;::::0;::::1;::::0;10345:66;;-1:-1:-1;10520:19:30::1;10531:7:::0;-1:-1:-1;;;;;8666:22:30;8643:4;8666:22;;;:14;:22;;;;;;;;;8586:109;10520:19:::1;10516:109;;;10555:59;::::0;-1:-1:-1;;;10555:59:30;;10592:4:::1;10555:59;::::0;::::1;14090:51:37::0;14157:18;;;14150:34;;;-1:-1:-1;;;;;10555:28:30;::::1;::::0;::::1;::::0;14063:18:37;;10555:59:30::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;10516:109;10748:1;10720:9;:18;;;:25;:29;:64;;;;-1:-1:-1::0;;;;;;10753:29:30;::::1;1702:19:20::0;:23;;10753:31:30::1;10716:941;;;10800:66;10830:7;10840:9;10851:14;10800:22;:66::i;:::-;10959:17;::::0;;::::1;::::0;11063:19;;11104:14:::1;::::0;::::1;::::0;11140:18:::1;::::0;::::1;::::0;10900:276;;-1:-1:-1;;;10900:276:30;;-1:-1:-1;;;;;10900:37:30;::::1;::::0;::::1;::::0;:276:::1;::::0;10959:17;;10998:7;;11027:14;;11140:18;10900:276:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;10880:406;;10716:941;;10880:406;10716:941;;;11384:6;::::0;-1:-1:-1;;;;;11373:17:30;;::::1;11384:6:::0;::::1;11373:17;11369:278;;;11424:6;::::0;11410:46:::1;::::0;-1:-1:-1;;;11410:46:30;;::::1;::::0;::::1;15900:25:37::0;;;-1:-1:-1;;;;;11424:6:30;;::::1;::::0;11410:30:::1;::::0;15873:18:37;;11410:46:30::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;11474:53;11500:9;11512:14;11474:17;:53::i;11369:278::-;11566:66;11596:7;11606:9;11617:14;11566:22;:66::i;:::-;11752:9;:17;;;11727:11;11694:9;:19;;;11671:208;11783:7;11804:9;:14;;;11832:9;11855:14;11671:208;;;;;;;;;:::i;:::-;;;;;;;;10246:1640;;;10152:1734:::0;;:::o;1945:106:13:-;1685:7;;;;;;;2003:41;;;;-1:-1:-1;;;2003:41:13;;19279:2:37;2003:41:13;;;19261:21:37;19318:2;19298:18;;;19291:30;-1:-1:-1;;;19337:18:37;;;19330:50;19397:18;;2003:41:13;19077:344:37;3988:201:9;-1:-1:-1;;;;;4051:22:9;;4043:73;;;;-1:-1:-1;;;4043:73:9;;21080:2:37;4043:73:9;;;21062:21:37;21119:2;21099:18;;;21092:30;21158:34;21138:18;;;21131:62;-1:-1:-1;;;21209:18:37;;;21202:36;21255:19;;4043:73:9;20878:402:37;4043:73:9;4174:8;3656:66;4126:39;1859:190:22;5196:642:19;5615:23;5641:69;5669:4;5641:69;;;;;;;;;;;;;;;;;5649:5;-1:-1:-1;;;;;5641:27:19;;;:69;;;;;:::i;:::-;5615:95;;5728:10;:17;5749:1;5728:22;:56;;;;5765:10;5754:30;;;;;;;;;;;;:::i;:::-;5720:111;;;;-1:-1:-1;;;5720:111:19;;30097:2:37;5720:111:19;;;30079:21:37;30136:2;30116:18;;;30109:30;30175:34;30155:18;;;30148:62;-1:-1:-1;;;30226:18:37;;;30219:40;30276:19;;5720:111:19;29895:406:37;1771:152:9;1837:37;1856:17;1837:18;:37::i;:::-;1889:27;;-1:-1:-1;;;;;1889:27:9;;;;;;;;1771:152;:::o;6674:198:20:-;6757:12;6788:77;6809:6;6817:4;6788:77;;;;;;;;;;;;;;;;;:20;:77::i;2979:535:1:-;3039:16;3075:12;3082:4;3075:6;:12::i;:::-;3067:37;;;;-1:-1:-1;;;3067:37:1;;26631:2:37;3067:37:1;;;26613:21:37;26670:2;26650:18;;;26643:30;-1:-1:-1;;;26689:18:37;;;26682:42;26741:18;;3067:37:1;26429:336:37;3067:37:1;3115:13;3131:14;3140:4;3131:8;:14::i;:::-;3115:30;;3155:23;3195:5;-1:-1:-1;;;;;3181:20:1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;3181:20:1;;;;;;;;;;;;;;;;3155:46;;3212:14;3243:27;3258:4;:11;;;3243:14;:27::i;:::-;3229:4;:11;;;:41;;;;:::i;:::-;3212:58;-1:-1:-1;3280:15:1;;3305:179;3329:5;3325:1;:9;3305:179;;;3365:19;3377:6;3365:11;:19::i;:::-;3355:29;;3410:24;;;;;;;;3418:7;3410:24;;;;3427:6;3410:24;;;3398:6;3405:1;3398:9;;;;;;;;:::i;:::-;;;;;;;;;;:36;3457:16;3466:7;3457:6;:16;:::i;:::-;3448:25;-1:-1:-1;3336:3:1;;;;:::i;:::-;;;;3305:179;;;-1:-1:-1;3501:6:1;;2979:535;-1:-1:-1;;;;;2979:535:1:o;7002:399::-;7095:8;;7063:12;;7087:41;;;;-1:-1:-1;;;7087:41:1;;21487:2:37;7087:41:1;;;21469:21:37;21526:2;21506:18;;;21499:30;-1:-1:-1;;;21545:18:37;;;21538:46;21601:18;;7087:41:1;21285:340:37;7087:41:1;7140:14;7156:11;7171:21;7187:4;7171:15;:21::i;:::-;7139:53;;;;7202:19;7234:3;-1:-1:-1;;;;;7224:14:1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7224:14:1;-1:-1:-1;7202:36:1;-1:-1:-1;7312:4:1;7308:17;;7345:26;7350:6;7308:17;7367:3;7345:4;:26::i;:::-;-1:-1:-1;7388:6:1;7002:399;-1:-1:-1;;;;7002:399:1:o;5915:222::-;6045:8;;5978:7;;6057:2;6045:14;6037:45;;;;-1:-1:-1;;;6037:45:1;;30868:2:37;6037:45:1;;;30850:21:37;30907:2;30887:18;;;30880:30;-1:-1:-1;;;30926:18:37;;;30919:48;30984:18;;6037:45:1;30666:342:37;6037:45:1;6116:12;6123:4;6116:6;:12::i;941:175:19:-;1050:58;;-1:-1:-1;;;;;14108:32:37;;1050:58:19;;;14090:51:37;14157:18;;;14150:34;;;1023:86:19;;1043:5;;-1:-1:-1;;;1073:23:19;14063:18:37;;1050:58:19;13916:274:37;2647:312:20;2761:6;2736:21;:31;;2728:73;;;;-1:-1:-1;;;2728:73:20;;23703:2:37;2728:73:20;;;23685:21:37;23742:2;23722:18;;;23715:30;23781:31;23761:18;;;23754:59;23830:18;;2728:73:20;23501:353:37;2728:73:20;2813:12;2831:9;-1:-1:-1;;;;;2831:14:20;2853:6;2831:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2812:52;;;2882:7;2874:78;;;;-1:-1:-1;;;2874:78:20;;22517:2:37;2874:78:20;;;22499:21:37;22556:2;22536:18;;;22529:30;22595:34;22575:18;;;22568:62;22666:28;22646:18;;;22639:56;22712:19;;2874:78:20;22315:422:37;4108:223:20;4241:12;4272:52;4294:6;4302:4;4308:1;4311:12;4272:21;:52::i;:::-;4265:59;4108:223;-1:-1:-1;;;;4108:223:20:o;7058:325::-;7199:12;7224;7238:23;7265:6;-1:-1:-1;;;;;7265:19:20;7285:4;7265:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7223:67;;;;7307:69;7334:6;7342:7;7351:10;7363:12;7307:26;:69::i;:::-;7300:76;7058:325;-1:-1:-1;;;;;;7058:325:20:o;3618:321:1:-;3698:8;;3678:4;;3694:31;;-1:-1:-1;3720:5:1;;3618:321;-1:-1:-1;3618:321:1:o;3694:31::-;3774:11;;;;3835:13;;3736:11;3827:22;;312:4;3873:24;;3869:42;;;-1:-1:-1;3906:5:1;;3618:321;-1:-1:-1;;;3618:321:1:o;3869:42::-;-1:-1:-1;3928:4:1;;3618:321;-1:-1:-1;;;3618:321:1:o;7509:437::-;7594:8;;7571:7;;7590:27;;-1:-1:-1;7616:1:1;;7509:437;-1:-1:-1;7509:437:1:o;7590:27::-;7628:13;7655:15;7687:27;7702:4;:11;;;7687:14;:27::i;:::-;7673:4;:11;;;:41;;;;:::i;:::-;7655:59;;7724:14;7755:4;:8;;;7741:4;:11;;;:22;;;;:::i;:::-;7724:39;;7773:144;7790:6;7780:7;:16;7773:144;;;7832:20;7844:7;7832:11;:20::i;:::-;7822:30;;:7;:30;:::i;:::-;7812:40;-1:-1:-1;7899:7:1;;;;:::i;:::-;;;;7773:144;;;-1:-1:-1;7934:5:1;;7509:437;-1:-1:-1;;;7509:437:1:o;9278:521::-;9422:13;;9340:7;;9414:22;;223:4;9460:26;;9456:336;;;-1:-1:-1;9495:1:1;;9278:521;-1:-1:-1;;9278:521:1:o;9456:336::-;268:4;9515:25;;;:83;;-1:-1:-1;312:4:1;9545:25;;;;;:52;;-1:-1:-1;355:4:1;9574:23;;9545:52;9511:281;;;-1:-1:-1;9607:1:1;;9278:521;-1:-1:-1;;9278:521:1:o;9511:281::-;312:4;9627:24;;9623:169;;;9711:21;9731:1;268:4;9711:21;:::i;:::-;9702:31;;;;:5;:31;:::i;:::-;:35;;9736:1;9702:35;:::i;9623:169::-;9768:19;9786:1;355:4;9768:19;:::i;7995:1231::-;8161:13;;8054:7;;;;8153:22;;223:4;8199:26;;8195:1000;;;8237:1;8227:11;;8195:1000;;;268:4;8257:25;;8253:942;;;8294:26;223:4;8294:5;:26;:::i;:::-;:30;;8323:1;8294:30;:::i;:::-;8284:40;;8253:942;;;312:4;8343:24;;8339:856;;;8436:4;8429:5;8425:16;8515:1;8507:6;8503:14;8493:24;;8654:7;8650:2;8646:16;8641:3;8637:26;8628:6;8622:13;8618:46;8751:1;8742:7;8738:15;8729:7;8725:29;8714:40;;;;8339:856;;;355:4;8788:23;;8784:411;;;8837:24;312:4;8837:5;:24;:::i;8784:411::-;8949:4;8942:5;8938:16;8993:1;8985:6;8981:14;8971:24;;9064:7;9060:2;9056:16;9051:3;9047:26;9038:6;9032:13;9028:46;9168:1;9159:7;9155:15;9146:7;9142:29;9131:40;;;;8784:411;-1:-1:-1;9212:7:1;7995:1231;-1:-1:-1;;7995:1231:1:o;2415:289::-;2484:7;2493;2512:14;2529:27;2544:4;:11;;;2529:14;:27::i;:::-;2512:44;;2566:14;2597:6;2583:4;:11;;;:20;;;;:::i;:::-;2566:37;;2613:11;2638:6;2627:4;:8;;;:17;;;;:::i;:::-;2685:6;;2613:31;;-1:-1:-1;2415:289:1;;-1:-1:-1;;;;2415:289:1:o;9957:770::-;10038:8;10034:21;;9957:770;;;:::o;10034:21::-;392:2;10119:16;;10112:194;;10209:10;;10196:24;;10248:16;392:2;10215:3;10248:16;:::i;:::-;;-1:-1:-1;10278:17:1;392:2;10278:17;;:::i;:::-;;-1:-1:-1;10137:16:1;392:2;10137:16;;:::i;:::-;;;10112:194;;;10320:7;;10316:405;;10427:12;10469:1;10450:15;10462:3;392:2;10450:15;:::i;:::-;10442:24;;:3;:24;:::i;:::-;:28;;;;:::i;:::-;10530:10;;10605:11;;10601:22;;10542:9;;10526:26;10675:21;10662:35;;-1:-1:-1;9957:770:1;;;:::o;6143:491::-;6230:8;;6203:7;;6230:12;;;;:30;;-1:-1:-1;6246:8:1;;6258:2;-1:-1:-1;6246:14:1;6230:30;6222:63;;;;-1:-1:-1;;;6222:63:1;;19628:2:37;6222:63:1;;;19610:21:37;19667:2;19647:18;;;19640:30;-1:-1:-1;;;19686:18:37;;;19679:50;19746:18;;6222:63:1;19426:344:37;6222:63:1;6297:14;6313:11;6328:21;6344:4;6328:15;:21::i;:::-;6417:13;;6296:53;;-1:-1:-1;6296:53:1;-1:-1:-1;6513:2:1;6505:11;;6502:92;;;6570:2;6566:12;;;6561:3;6557:22;6545:35;;6621:6;6143:491;-1:-1:-1;;;;6143:491:1:o;5165:446:20:-;5330:12;5387:5;5362:21;:30;;5354:81;;;;-1:-1:-1;;;5354:81:20;;24061:2:37;5354:81:20;;;24043:21:37;24100:2;24080:18;;;24073:30;24139:34;24119:18;;;24112:62;-1:-1:-1;;;24190:18:37;;;24183:36;24236:19;;5354:81:20;23859:402:37;5354:81:20;5446:12;5460:23;5487:6;-1:-1:-1;;;;;5487:11:20;5506:5;5513:4;5487:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5445:73;;;;5535:69;5562:6;5570:7;5579:10;5591:12;7671:628;7851:12;7879:7;7875:418;;;7906:17;;7902:286;;-1:-1:-1;;;;;1702:19:20;;;8113:60;;;;-1:-1:-1;;;8113:60:20;;29327:2:37;8113:60:20;;;29309:21:37;29366:2;29346:18;;;29339:30;29405:31;29385:18;;;29378:59;29454:18;;8113:60:20;29125:353:37;8113:60:20;-1:-1:-1;8208:10:20;8201:17;;7875:418;8249:33;8257:10;8269:12;8980:17;;:21;8976:379;;9208:10;9202:17;9264:15;9251:10;9247:2;9243:19;9236:44;8976:379;9331:12;9324:20;;-1:-1:-1;;;9324:20:20;;;;;;;;:::i;14:307:37:-;89:5;118:52;134:35;162:6;134:35;:::i;:::-;118:52;:::i;:::-;109:61;;193:6;186:5;179:21;233:3;224:6;219:3;215:16;212:25;209:45;;;250:1;247;240:12;209:45;263:52;308:6;301:4;294:5;290:16;285:3;263:52;:::i;326:173::-;394:20;;-1:-1:-1;;;;;443:31:37;;433:42;;423:70;;489:1;486;479:12;423:70;326:173;;;:::o;504:347::-;555:8;565:6;619:3;612:4;604:6;600:17;596:27;586:55;;637:1;634;627:12;586:55;-1:-1:-1;660:20:37;;-1:-1:-1;;;;;692:30:37;;689:50;;;735:1;732;725:12;689:50;772:4;764:6;760:17;748:29;;824:3;817:4;808:6;800;796:19;792:30;789:39;786:59;;;841:1;838;831:12;786:59;504:347;;;;;:::o;856:462::-;898:5;951:3;944:4;936:6;932:17;928:27;918:55;;969:1;966;959:12;918:55;1005:6;992:20;1036:48;1052:31;1080:2;1052:31;:::i;1036:48::-;1109:2;1100:7;1093:19;1155:3;1148:4;1143:2;1135:6;1131:15;1127:26;1124:35;1121:55;;;1172:1;1169;1162:12;1121:55;1237:2;1230:4;1222:6;1218:17;1211:4;1202:7;1198:18;1185:55;1285:1;1260:16;;;1278:4;1256:27;1249:38;;;;1264:7;856:462;-1:-1:-1;;;856:462:37:o;1323:235::-;1376:5;1429:3;1422:4;1414:6;1410:17;1406:27;1396:55;;1447:1;1444;1437:12;1396:55;1469:83;1548:3;1539:6;1533:13;1526:4;1518:6;1514:17;1469:83;:::i;1563:186::-;1622:6;1675:2;1663:9;1654:7;1650:23;1646:32;1643:52;;;1691:1;1688;1681:12;1643:52;1714:29;1733:9;1714:29;:::i;1754:334::-;1831:6;1839;1847;1900:2;1888:9;1879:7;1875:23;1871:32;1868:52;;;1916:1;1913;1906:12;1868:52;1939:29;1958:9;1939:29;:::i;:::-;1929:39;;1987:38;2021:2;2010:9;2006:18;1987:38;:::i;:::-;1977:48;;2044:38;2078:2;2067:9;2063:18;2044:38;:::i;:::-;2034:48;;1754:334;;;;;:::o;2093:915::-;2217:6;2225;2233;2241;2249;2257;2265;2318:3;2306:9;2297:7;2293:23;2289:33;2286:53;;;2335:1;2332;2325:12;2286:53;2358:29;2377:9;2358:29;:::i;:::-;2348:39;;2406:38;2440:2;2429:9;2425:18;2406:38;:::i;:::-;2396:48;;2495:2;2484:9;2480:18;2467:32;-1:-1:-1;;;;;2559:2:37;2551:6;2548:14;2545:34;;;2575:1;2572;2565:12;2545:34;2598:49;2639:7;2630:6;2619:9;2615:22;2598:49;:::i;:::-;2588:59;;2694:2;2683:9;2679:18;2666:32;2656:42;;2745:3;2734:9;2730:19;2717:33;2707:43;;2803:3;2792:9;2788:19;2775:33;2759:49;;2833:2;2823:8;2820:16;2817:36;;;2849:1;2846;2839:12;2817:36;;2888:60;2940:7;2929:8;2918:9;2914:24;2888:60;:::i;:::-;2093:915;;;;-1:-1:-1;2093:915:37;;-1:-1:-1;2093:915:37;;;;2862:86;;-1:-1:-1;;;2093:915:37:o;3013:328::-;3090:6;3098;3106;3159:2;3147:9;3138:7;3134:23;3130:32;3127:52;;;3175:1;3172;3165:12;3127:52;3198:29;3217:9;3198:29;:::i;:::-;3188:39;;3246:38;3280:2;3269:9;3265:18;3246:38;:::i;:::-;3236:48;;3331:2;3320:9;3316:18;3303:32;3293:42;;3013:328;;;;;:::o;3346:394::-;3423:6;3431;3484:2;3472:9;3463:7;3459:23;3455:32;3452:52;;;3500:1;3497;3490:12;3452:52;3523:29;3542:9;3523:29;:::i;:::-;3513:39;;3603:2;3592:9;3588:18;3575:32;-1:-1:-1;;;;;3622:6:37;3619:30;3616:50;;;3662:1;3659;3652:12;3616:50;3685:49;3726:7;3717:6;3706:9;3702:22;3685:49;:::i;:::-;3675:59;;;3346:394;;;;;:::o;3745:771::-;3851:6;3859;3867;3875;3883;3936:3;3924:9;3915:7;3911:23;3907:33;3904:53;;;3953:1;3950;3943:12;3904:53;3976:29;3995:9;3976:29;:::i;:::-;3966:39;;4056:2;4045:9;4041:18;4028:32;-1:-1:-1;;;;;4120:2:37;4112:6;4109:14;4106:34;;;4136:1;4133;4126:12;4106:34;4159:49;4200:7;4191:6;4180:9;4176:22;4159:49;:::i;:::-;4149:59;;4255:2;4244:9;4240:18;4227:32;4217:42;;4312:2;4301:9;4297:18;4284:32;4268:48;;4341:2;4331:8;4328:16;4325:36;;;4357:1;4354;4347:12;4325:36;;4396:60;4448:7;4437:8;4426:9;4422:24;4396:60;:::i;:::-;3745:771;;;;-1:-1:-1;3745:771:37;;-1:-1:-1;4475:8:37;;4370:86;3745:771;-1:-1:-1;;;3745:771:37:o;4521:254::-;4589:6;4597;4650:2;4638:9;4629:7;4625:23;4621:32;4618:52;;;4666:1;4663;4656:12;4618:52;4689:29;4708:9;4689:29;:::i;:::-;4679:39;4765:2;4750:18;;;;4737:32;;-1:-1:-1;;;4521:254:37:o;4780:383::-;4854:6;4862;4870;4923:2;4911:9;4902:7;4898:23;4894:32;4891:52;;;4939:1;4936;4929:12;4891:52;4962:29;4981:9;4962:29;:::i;:::-;4952:39;;5038:2;5027:9;5023:18;5010:32;5000:42;;5092:2;5081:9;5077:18;5064:32;5105:28;5127:5;5105:28;:::i;:::-;5152:5;5142:15;;;4780:383;;;;;:::o;5168:963::-;5252:6;5283:2;5326;5314:9;5305:7;5301:23;5297:32;5294:52;;;5342:1;5339;5332:12;5294:52;5382:9;5369:23;-1:-1:-1;;;;;5452:2:37;5444:6;5441:14;5438:34;;;5468:1;5465;5458:12;5438:34;5506:6;5495:9;5491:22;5481:32;;5551:7;5544:4;5540:2;5536:13;5532:27;5522:55;;5573:1;5570;5563:12;5522:55;5609:2;5596:16;5631:2;5627;5624:10;5621:36;;;5637:18;;:::i;:::-;5683:2;5680:1;5676:10;5666:20;;5706:28;5730:2;5726;5722:11;5706:28;:::i;:::-;5768:15;;;5799:12;;;;5831:11;;;5861;;;5857:20;;5854:33;-1:-1:-1;5851:53:37;;;5900:1;5897;5890:12;5851:53;5922:1;5913:10;;5932:169;5946:2;5943:1;5940:9;5932:169;;;6003:23;6022:3;6003:23;:::i;:::-;5991:36;;5964:1;5957:9;;;;;6047:12;;;;6079;;5932:169;;;-1:-1:-1;6120:5:37;5168:963;-1:-1:-1;;;;;;;;5168:963:37:o;6136:245::-;6203:6;6256:2;6244:9;6235:7;6231:23;6227:32;6224:52;;;6272:1;6269;6262:12;6224:52;6304:9;6298:16;6323:28;6345:5;6323:28;:::i;6386:803::-;6490:6;6498;6506;6559:2;6547:9;6538:7;6534:23;6530:32;6527:52;;;6575:1;6572;6565:12;6527:52;6607:9;6601:16;6626:28;6648:5;6626:28;:::i;:::-;6722:2;6707:18;;6701:25;6673:5;;-1:-1:-1;;;;;;6775:14:37;;;6772:34;;;6802:1;6799;6792:12;6772:34;6840:6;6829:9;6825:22;6815:32;;6885:7;6878:4;6874:2;6870:13;6866:27;6856:55;;6907:1;6904;6897:12;6856:55;6930:77;6999:7;6994:2;6988:9;6983:2;6979;6975:11;6930:77;:::i;:::-;6920:87;;7053:2;7042:9;7038:18;7032:25;7016:41;;7082:2;7072:8;7069:16;7066:36;;;7098:1;7095;7088:12;7066:36;;7121:62;7175:7;7164:8;7153:9;7149:24;7121:62;:::i;:::-;7111:72;;;6386:803;;;;;:::o;7194:180::-;7253:6;7306:2;7294:9;7285:7;7281:23;7277:32;7274:52;;;7322:1;7319;7312:12;7274:52;-1:-1:-1;7345:23:37;;7194:180;-1:-1:-1;7194:180:37:o;7379:184::-;7449:6;7502:2;7490:9;7481:7;7477:23;7473:32;7470:52;;;7518:1;7515;7508:12;7470:52;-1:-1:-1;7541:16:37;;7379:184;-1:-1:-1;7379:184:37:o;7568:1087::-;7719:6;7727;7735;7743;7751;7759;7812:3;7800:9;7791:7;7787:23;7783:33;7780:53;;;7829:1;7826;7819:12;7780:53;7858:9;7852:16;7842:26;;7912:2;7901:9;7897:18;7891:25;-1:-1:-1;;;;;7976:2:37;7968:6;7965:14;7962:34;;;7992:1;7989;7982:12;7962:34;8015:60;8067:7;8058:6;8047:9;8043:22;8015:60;:::i;:::-;8005:70;;8121:2;8110:9;8106:18;8100:25;8084:41;;8150:2;8140:8;8137:16;8134:36;;;8166:1;8163;8156:12;8134:36;8189:62;8243:7;8232:8;8221:9;8217:24;8189:62;:::i;:::-;8179:72;;8297:2;8286:9;8282:18;8276:25;8260:41;;8326:2;8316:8;8313:16;8310:36;;;8342:1;8339;8332:12;8310:36;8365:62;8419:7;8408:8;8397:9;8393:24;8365:62;:::i;:::-;8355:72;;8467:3;8456:9;8452:19;8446:26;8436:36;;8518:3;8507:9;8503:19;8497:26;8481:42;;8548:2;8538:8;8535:16;8532:36;;;8564:1;8561;8554:12;8532:36;;8587:62;8641:7;8630:8;8619:9;8615:24;8587:62;:::i;:::-;8577:72;;;7568:1087;;;;;;;;:::o;8660:409::-;8730:6;8738;8791:2;8779:9;8770:7;8766:23;8762:32;8759:52;;;8807:1;8804;8797:12;8759:52;8847:9;8834:23;-1:-1:-1;;;;;8872:6:37;8869:30;8866:50;;;8912:1;8909;8902:12;8866:50;8951:58;9001:7;8992:6;8981:9;8977:22;8951:58;:::i;:::-;9028:8;;8925:84;;-1:-1:-1;8660:409:37;-1:-1:-1;;;;8660:409:37:o;9263:254::-;9331:6;9339;9392:2;9380:9;9371:7;9367:23;9363:32;9360:52;;;9408:1;9405;9398:12;9360:52;9444:9;9431:23;9421:33;;9473:38;9507:2;9496:9;9492:18;9473:38;:::i;:::-;9463:48;;9263:254;;;;;:::o;9522:388::-;9599:6;9607;9660:2;9648:9;9639:7;9635:23;9631:32;9628:52;;;9676:1;9673;9666:12;9628:52;9712:9;9699:23;9689:33;;9773:2;9762:9;9758:18;9745:32;-1:-1:-1;;;;;9792:6:37;9789:30;9786:50;;;9832:1;9829;9822:12;9915:316;9992:6;10000;10008;10061:2;10049:9;10040:7;10036:23;10032:32;10029:52;;;10077:1;10074;10067:12;10029:52;-1:-1:-1;;10100:23:37;;;10170:2;10155:18;;10142:32;;-1:-1:-1;10221:2:37;10206:18;;;10193:32;;9915:316;-1:-1:-1;9915:316:37:o;10236:257::-;10277:3;10315:5;10309:12;10342:6;10337:3;10330:19;10358:63;10414:6;10407:4;10402:3;10398:14;10391:4;10384:5;10380:16;10358:63;:::i;:::-;10475:2;10454:15;-1:-1:-1;;10450:29:37;10441:39;;;;10482:4;10437:50;;10236:257;-1:-1:-1;;10236:257:37:o;10732:697::-;11001:3;11033:26;11029:31;11102:2;11093:6;11089:2;11085:15;11081:24;11076:3;11069:37;11136:6;11131:2;11126:3;11122:12;11115:28;11173:6;11168:2;11163:3;11159:12;11152:28;11210:6;11205:2;11200:3;11196:12;11189:28;11269:2;11260:6;11256:2;11252:15;11248:24;11242:3;11237;11233:13;11226:47;;11302:6;11296:13;11318:63;11374:6;11368:3;11363;11359:13;11352:4;11344:6;11340:17;11318:63;:::i;:::-;11401:16;;;;11419:3;11397:26;;10732:697;-1:-1:-1;;;;;;;10732:697:37:o;11434:271::-;11617:6;11609;11604:3;11591:33;11573:3;11643:16;;11668:13;;;11643:16;11434:271;-1:-1:-1;11434:271:37:o;11710:274::-;11839:3;11877:6;11871:13;11893:53;11939:6;11934:3;11927:4;11919:6;11915:17;11893:53;:::i;:::-;11962:16;;;;;11710:274;-1:-1:-1;;11710:274:37:o;13096:314::-;-1:-1:-1;;;;;13271:32:37;;13253:51;;13340:2;13335;13320:18;;13313:30;;;-1:-1:-1;;13360:44:37;;13385:18;;13377:6;13360:44;:::i;13415:496::-;13617:4;13663:1;13659;13654:3;13650:11;13646:19;13704:2;13696:6;13692:15;13681:9;13674:34;13744:3;13739:2;13728:9;13724:18;13717:31;13765:45;13805:3;13794:9;13790:19;13782:6;13765:45;:::i;:::-;13846:15;;13841:2;13826:18;;13819:43;-1:-1:-1;13893:2:37;13878:18;13871:34;13757:53;13415:496;-1:-1:-1;;13415:496:37:o;14555:658::-;14726:2;14778:21;;;14848:13;;14751:18;;;14870:22;;;14697:4;;14726:2;14949:15;;;;14923:2;14908:18;;;14697:4;14992:195;15006:6;15003:1;15000:13;14992:195;;;15071:13;;-1:-1:-1;;;;;15067:39:37;15055:52;;15162:15;;;;15127:12;;;;15103:1;15021:9;14992:195;;;-1:-1:-1;15204:3:37;;14555:658;-1:-1:-1;;;;;;14555:658:37:o;15936:560::-;16195:6;16184:9;16177:25;16158:4;16238:1;16234;16229:3;16225:11;16221:19;16288:2;16280:6;16276:15;16271:2;16260:9;16256:18;16249:43;16328:3;16323:2;16312:9;16308:18;16301:31;16349:45;16389:3;16378:9;16374:19;16366:6;16349:45;:::i;:::-;16430:15;;16425:2;16410:18;;16403:43;-1:-1:-1;16477:3:37;16462:19;16455:35;16341:53;15936:560;-1:-1:-1;;;15936:560:37:o;16501:691::-;16806:6;16795:9;16788:25;16878:1;16874;16869:3;16865:11;16861:19;16853:6;16849:32;16844:2;16833:9;16829:18;16822:60;16918:6;16913:2;16902:9;16898:18;16891:34;16961:6;16956:2;16945:9;16941:18;16934:34;17005:3;16999;16988:9;16984:19;16977:32;16769:4;17032:45;17072:3;17061:9;17057:19;17049:6;17032:45;:::i;:::-;17126:9;17118:6;17114:22;17108:3;17097:9;17093:19;17086:51;17154:32;17179:6;17171;17154:32;:::i;:::-;17146:40;16501:691;-1:-1:-1;;;;;;;;;16501:691:37:o;17197:1005::-;17548:6;17537:9;17530:25;17591:3;17586:2;17575:9;17571:18;17564:31;17511:4;17618:45;17658:3;17647:9;17643:19;17635:6;17618:45;:::i;:::-;17711:9;17703:6;17699:22;17694:2;17683:9;17679:18;17672:50;17745:32;17770:6;17762;17745:32;:::i;:::-;17731:46;;17825:9;17817:6;17813:22;17808:2;17797:9;17793:18;17786:50;17859:32;17884:6;17876;17859:32;:::i;:::-;17845:46;;17928:6;17922:3;17911:9;17907:19;17900:35;17984:9;17976:6;17972:22;17966:3;17955:9;17951:19;17944:51;18019:6;18011;18004:22;18073:6;18065;18060:2;18052:6;18048:15;18035:45;18126:1;18121:2;18112:6;18104;18100:19;18096:28;18089:39;18193:2;18186;18182:7;18177:2;18169:6;18165:15;18161:29;18153:6;18149:42;18145:51;18137:59;;;17197:1005;;;;;;;;;;:::o;18207:217::-;18354:2;18343:9;18336:21;18317:4;18374:44;18414:2;18403:9;18399:18;18391:6;18374:44;:::i;20116:408::-;20318:2;20300:21;;;20357:2;20337:18;;;20330:30;20396:34;20391:2;20376:18;;20369:62;-1:-1:-1;;;20462:2:37;20447:18;;20440:42;20514:3;20499:19;;20116:408::o;20529:344::-;20731:2;20713:21;;;20770:2;20750:18;;;20743:30;-1:-1:-1;;;20804:2:37;20789:18;;20782:50;20864:2;20849:18;;20529:344::o;22742:408::-;22944:2;22926:21;;;22983:2;22963:18;;;22956:30;23022:34;23017:2;23002:18;;22995:62;-1:-1:-1;;;23088:2:37;23073:18;;23066:42;23140:3;23125:19;;22742:408::o;24970:339::-;25172:2;25154:21;;;25211:2;25191:18;;;25184:30;-1:-1:-1;;;25245:2:37;25230:18;;25223:45;25300:2;25285:18;;24970:339::o;27595:341::-;27797:2;27779:21;;;27836:2;27816:18;;;27809:30;-1:-1:-1;;;27870:2:37;27855:18;;27848:47;27927:2;27912:18;;27595:341::o;31013:345::-;31215:2;31197:21;;;31254:2;31234:18;;;31227:30;-1:-1:-1;;;31288:2:37;31273:18;;31266:51;31349:2;31334:18;;31013:345::o;32077:275::-;32148:2;32142:9;32213:2;32194:13;;-1:-1:-1;;32190:27:37;32178:40;;-1:-1:-1;;;;;32233:34:37;;32269:22;;;32230:62;32227:88;;;32295:18;;:::i;:::-;32331:2;32324:22;32077:275;;-1:-1:-1;32077:275:37:o;32357:186::-;32405:4;-1:-1:-1;;;;;32430:6:37;32427:30;32424:56;;;32460:18;;:::i;:::-;-1:-1:-1;32526:2:37;32505:15;-1:-1:-1;;32501:29:37;32532:4;32497:40;;32357:186::o;32548:128::-;32588:3;32619:1;32615:6;32612:1;32609:13;32606:39;;;32625:18;;:::i;:::-;-1:-1:-1;32661:9:37;;32548:128::o;32681:422::-;32770:1;32813:5;32770:1;32827:270;32848:7;32838:8;32835:21;32827:270;;;32907:4;32903:1;32899:6;32895:17;32889:4;32886:27;32883:53;;;32916:18;;:::i;:::-;32966:7;32956:8;32952:22;32949:55;;;32986:16;;;;32949:55;33065:22;;;;33025:15;;;;32827:270;;;32831:3;32681:422;;;;;:::o;33108:131::-;33168:5;33197:36;33224:8;33218:4;33293:5;33323:8;33313:80;;-1:-1:-1;33364:1:37;33378:5;;33313:80;33412:4;33402:76;;-1:-1:-1;33449:1:37;33463:5;;33402:76;33494:4;33512:1;33507:59;;;;33580:1;33575:130;;;;33487:218;;33507:59;33537:1;33528:10;;33551:5;;;33575:130;33612:3;33602:8;33599:17;33596:43;;;33619:18;;:::i;:::-;-1:-1:-1;;33675:1:37;33661:16;;33690:5;;33487:218;;33789:2;33779:8;33776:16;33770:3;33764:4;33761:13;33757:36;33751:2;33741:8;33738:16;33733:2;33727:4;33724:12;33720:35;33717:77;33714:159;;;-1:-1:-1;33826:19:37;;;33858:5;;33714:159;33905:34;33930:8;33924:4;33905:34;:::i;:::-;33975:6;33971:1;33967:6;33963:19;33954:7;33951:32;33948:58;;;33986:18;;:::i;:::-;34024:20;;33244:806;-1:-1:-1;;;33244:806:37:o;34055:125::-;34095:4;34123:1;34120;34117:8;34114:34;;;34128:18;;:::i;:::-;-1:-1:-1;34165:9:37;;34055:125::o;34185:195::-;34223:4;34260;34257:1;34253:12;34292:4;34289:1;34285:12;34317:3;34312;34309:12;34306:38;;;34324:18;;:::i;:::-;34361:13;;;34185:195;-1:-1:-1;;;34185:195:37:o;34385:258::-;34457:1;34467:113;34481:6;34478:1;34475:13;34467:113;;;34557:11;;;34551:18;34538:11;;;34531:39;34503:2;34496:10;34467:113;;;34598:6;34595:1;34592:13;34589:48;;;-1:-1:-1;;34633:1:37;34615:16;;34608:27;34385:258::o;34648:135::-;34687:3;-1:-1:-1;;34708:17:37;;34705:43;;;34728:18;;:::i;:::-;-1:-1:-1;34775:1:37;34764:13;;34648:135::o;34788:127::-;34849:10;34844:3;34840:20;34837:1;34830:31;34880:4;34877:1;34870:15;34904:4;34901:1;34894:15;34920:127;34981:10;34976:3;34972:20;34969:1;34962:31;35012:4;35009:1;35002:15;35036:4;35033:1;35026:15;35052:127;35113:10;35108:3;35104:20;35101:1;35094:31;35144:4;35141:1;35134:15;35168:4;35165:1;35158:15;35184:118;35270:5;35263:13;35256:21;35249:5;35246:32;35236:60;;35292:1;35289;35282:12

Swarm Source

ipfs://d8b724318e8d1a41f0202435661b4faefdf1106935a8b273f7756e621d9438bd

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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.