Address Details
contract

0xda3Eb100c32cD9387A834f9b9feE340300eB2aA8

Contract Name
MultiSig
Creator
0x5bc1c4–68a788 at 0xce6148–c5d166
Balance
0 CELO ( )
Locked CELO Balance
0.00 CELO
Voting CELO Balance
0.00 CELO
Pending Unlocked Gold
0.00 CELO
Tokens
Fetching tokens...
Transactions
0 Transactions
Transfers
0 Transfers
Gas Used
Fetching gas used...
Last Balance Update
25501861
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
MultiSig




Optimization enabled
false
Compiler version
v0.8.11+commit.d7f03943




EVM Version
istanbul




Verified at
2023-07-19T09:30:28.164171Z

contracts/common/MultiSig.sol

//SPDX-License-Identifier: LGPL-3.0-only
pragma solidity 0.8.11;

import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol";
import "@openzeppelin/contracts/proxy/utils/Initializable.sol";

import "../libraries/ExternalCall.sol";

/**
 * @title Multisignature wallet - Allows multiple parties to agree on proposals before
 * execution.
 * @author Stefan George - <stefan.george@consensys.net>
 * @dev NOTE: This contract has its limitations and is not viable for every
 * multi-signature setup. On a case by case basis, evaluate whether this is the
 * correct contract for your use case.
 * In particular, this contract doesn't have an atomic "add owners and increase
 * requirement" operation.
 * This can be tricky, for example, in a situation where a MultiSig starts out
 * owned by a single owner. Safely increasing the owner set and requirement at
 * the same time is not trivial. One way to work around this situation is to
 * first add a second address controlled by the original owner, increase the
 * requirement, and then replace the auxillary address with the intended second
 * owner.
 * Again, this is just one example, in general make sure to verify this contract
 * will support your intended usage. The goal of this contract is to offer a
 * simple, minimal multi-signature API that's easy to understand even for novice
 * Solidity users.
 * Forked from
 * github.com/celo-org/celo-monorepo/blob/master/packages/protocol/contracts/common/MultiSig.sol
 */
contract MultiSig is Initializable, UUPSUpgradeable {
    using EnumerableSet for EnumerableSet.AddressSet;

    /**
     * @notice The maximum number of multisig owners.
     */
    uint256 public constant MAX_OWNER_COUNT = 50;

    /**
     * @notice The minimum time in seconds that must elapse before a proposal is executable.
     */
    uint256 public immutable minDelay;

    /**
     * @notice The value used to mark a proposal as executed.
     */
    uint256 internal constant DONE_TIMESTAMP = uint256(1);

    /**
     * @notice Used to keep track of a proposal.
     * @param destinations The addresses at which the proposal is directed to.
     * @param values The amounts of CELO involved.
     * @param payloads The payloads of the proposal.
     * @param timestampExecutable The timestamp at which a proposal becomes executable.
     * @dev timestampExecutable is 0 if proposal is not yet scheduled or 1 if the proposal
     * is executed.
     * @param confirmations The list of confirmations. Keyed by the address that
     * confirmed the proposal, whether or not the proposal is confirmed.
     */
    struct Proposal {
        address[] destinations;
        uint256[] values;
        bytes[] payloads;
        uint256 timestampExecutable;
        mapping(address => bool) confirmations;
    }

    /**
     * @notice The delay that must elapse to be able to execute a proposal.
     */
    uint256 public delay;

    /**
     * @notice Keyed by proposal ID, the Proposal record.
     */
    mapping(uint256 => Proposal) public proposals;

    /**
     * @notice The set of addresses which are owners of the multisig.
     */
    EnumerableSet.AddressSet private owners;

    /**
     * @notice The amount of confirmations required
     * for a proposal to be fully confirmed.
     */
    uint256 public required;

    /**
     * @notice The total count of proposals.
     */
    uint256 public proposalCount;

    /**
     * @notice Used when a proposal is successfully confirmed.
     * @param sender The address of the sender.
     * @param proposalId The ID of the proposal.
     */
    event ProposalConfirmed(address indexed sender, uint256 indexed proposalId);

    /**
     * @notice Used when a confirmation is successfully revoked.
     * @param sender The address of the sender.
     * @param proposalId The ID of the proposal.
     */
    event ConfirmationRevoked(address indexed sender, uint256 indexed proposalId);

    /**
     * @notice Used when a proposal is successfully added.
     * @param proposalId The ID of the proposal that was added.
     */
    event ProposalAdded(uint256 indexed proposalId);

    /**
     * @notice Emitted when a confirmed proposal is successfully executed.
     * @param proposalId The ID of the proposal that was executed.
     * @param returnData The response that was recieved from the external call.
     */
    event ProposalExecuted(uint256 indexed proposalId, bytes returnData);

    /**
     * @notice Emitted when one of the transactions that make up a proposal is successfully
     * executed.
     * @param index The index of the transaction within the proposal.
     * @param proposalId The ID of the proposal.
     * @param returnData The response that was recieved from the external call.
     */
    event TransactionExecuted(uint256 index, uint256 indexed proposalId, bytes returnData);

    /**
     * @notice Emitted when CELO is sent to this contract.
     * @param sender The account which sent the CELO.
     * @param value The amount of CELO sent.
     */
    event CeloDeposited(address indexed sender, uint256 value);

    /**
     * @notice Emitted when an Owner is successfully added as part of the multisig.
     * @param owner The added owner.
     */
    event OwnerAdded(address indexed owner);

    /**
     * @notice Emitted when an Owner is successfully removed from the multisig.
     * @param owner The removed owner.
     */
    event OwnerRemoved(address indexed owner);

    /**
     * @notice Emitted when the minimum amount of required confirmations is
     * successfully changed.
     * @param required The new required amount.
     */
    event RequirementChanged(uint256 required);

    /**
     * @notice Emitted when a proposal is scheduled.
     * @param proposalId The ID of the proposal that is scheduled.
     */
    event ProposalScheduled(uint256 indexed proposalId);

    /**
     * @notice Used when `delay` is changed.
     * @param delay The current delay value.
     * @param newDelay The new delay value.
     */
    event DelayChanged(uint256 delay, uint256 newDelay);

    /**
     * @notice Used when sender is not this contract in an `onlyWallet` function.
     * @param account The sender which triggered the function.
     */
    error SenderMustBeMultisigWallet(address account);

    /**
     * @notice Used when attempting to add an already existing owner.
     * @param owner The address of the owner.
     */
    error OwnerAlreadyExists(address owner);

    /**
     * @notice Used when an owner does not exist.
     * @param owner The address of the owner.
     */
    error OwnerDoesNotExist(address owner);

    /**
     * @notice Used when a proposal does not exist.
     * @param proposalId The ID of the non-existent proposal.
     */
    error ProposalDoesNotExist(uint256 proposalId);

    /**
     * @notice Used when a proposal is not confirmed by a given owner.
     * @param proposalId The ID of the proposal that is not confirmed.
     * @param owner The address of the owner which did not confirm the proposal.
     */
    error ProposalNotConfirmed(uint256 proposalId, address owner);

    /**
     * @notice Used when a proposal is not fully confirmed.
     * @dev A proposal is fully confirmed when the `required` threshold
     * of confirmations has been met.
     * @param proposalId The ID of the proposal that is not fully confirmed.
     */
    error ProposalNotFullyConfirmed(uint256 proposalId);

    /**
     * @notice Used when a proposal is already confirmed by an owner.
     * @param proposalId The ID of the proposal that is already confirmed.
     * @param owner The address of the owner which confirmed the proposal.
     */
    error ProposalAlreadyConfirmed(uint256 proposalId, address owner);

    /**
     * @notice Used when a proposal has been executed.
     * @param proposalId The ID of the proposal that is already executed.
     */
    error ProposalAlreadyExecuted(uint256 proposalId);

    /**
     * @notice Used when a passed address is address(0).
     */
    error NullAddress();

    /**
     * @notice Used when the set threshold values for owner and minimum
     * required confirmations are not met.
     * @param ownerCount The count of owners.
     * @param required The number of required confirmations.
     */
    error InvalidRequirement(uint256 ownerCount, uint256 required);

    /**
     * @notice Used when attempting to remove the last owner.
     * @param owner The last owner.
     */
    error CannotRemoveLastOwner(address owner);

    /**
     * @notice Used when attempting to schedule an already scheduled proposal.
     * @param proposalId The ID of the proposal which is already scheduled.
     */
    error ProposalAlreadyScheduled(uint256 proposalId);

    /**
     * @notice Used when a proposal is not scheduled.
     * @param proposalId The ID of the proposal which is not scheduled.
     */
    error ProposalNotScheduled(uint256 proposalId);

    /**
     * @notice Used when a time lock delay is not reached.
     * @param proposalId The ID of the proposal whose time lock has not been reached yet.
     */
    error ProposalTimelockNotReached(uint256 proposalId);

    /**
     * @notice Used when a provided value is less than the minimum time lock delay.
     * @param delay The insufficient delay.
     */
    error InsufficientDelay(uint256 delay);

    /**
     * @notice Used when the sizes of the provided arrays params do not match
     * when submitting a proposal.
     */
    error ParamLengthsMismatch();

    /**
     * @notice Checks that only the multisig contract can execute a function.
     */
    modifier onlyWallet() {
        if (msg.sender != address(this)) {
            revert SenderMustBeMultisigWallet(msg.sender);
        }
        _;
    }

    /**
     * @notice Checks that an address is not a multisig owner.
     * @param owner The address to check.
     */
    modifier ownerDoesNotExist(address owner) {
        if (owners.contains(owner)) {
            revert OwnerAlreadyExists(owner);
        }
        _;
    }

    /**
     * @notice Checks that an address is a multisig owner.
     * @param owner The address to check.
     */
    modifier ownerExists(address owner) {
        if (!owners.contains(owner)) {
            revert OwnerDoesNotExist(owner);
        }
        _;
    }

    /**
     * @notice Checks that a proposal exists.
     * @param proposalId The proposal ID to check.
     */
    modifier proposalExists(uint256 proposalId) {
        if (proposals[proposalId].destinations.length == 0) {
            revert ProposalDoesNotExist(proposalId);
        }
        _;
    }

    /**
     * @notice Checks that a proposal has been confirmed by a multisig owner.
     * @param proposalId The proposal ID to check.
     * @param owner The owner to check.
     */
    modifier confirmed(uint256 proposalId, address owner) {
        if (!proposals[proposalId].confirmations[owner]) {
            revert ProposalNotConfirmed(proposalId, owner);
        }
        _;
    }

    /**
     * @notice Checks that a proposal has not been confirmed by a multisig owner.
     * @param proposalId The proposal ID to check.
     * @param owner The owner to check.
     */
    modifier notConfirmed(uint256 proposalId, address owner) {
        if (proposals[proposalId].confirmations[owner]) {
            revert ProposalAlreadyConfirmed(proposalId, owner);
        }
        _;
    }

    /**
     * @notice Checks that a proposal has not been executed.
     * @dev A proposal can only be executed after it is fully confirmed.
     * @param proposalId The proposal ID to check.
     */
    modifier notExecuted(uint256 proposalId) {
        if (proposals[proposalId].timestampExecutable == DONE_TIMESTAMP) {
            revert ProposalAlreadyExecuted(proposalId);
        }
        _;
    }

    /**
     * @notice Checks that an address is not address(0).
     * @param addr The address to check.
     */
    modifier notNull(address addr) {
        if (addr == address(0)) {
            revert NullAddress();
        }
        _;
    }

    /**
     * @notice Checks that each address in a batch of addresses are not address(0).
     * @param _addresses The addresses to check.
     */
    modifier notNullBatch(address[] memory _addresses) {
        for (uint256 i = 0; i < _addresses.length; i++) {
            if (_addresses[i] == address(0)) {
                revert NullAddress();
            }
        }
        _;
    }

    /**
     * @notice Checks that the values passed for number of multisig owners and required
     * confirmation are valid in comparison with the configured thresholds.
     * @param ownerCount The owners count to check.
     * @param requiredConfirmations The minimum number of confirmations required to consider
     * a proposal as fully confirmed.
     */
    modifier validRequirement(uint256 ownerCount, uint256 requiredConfirmations) {
        if (
            ownerCount > MAX_OWNER_COUNT ||
            requiredConfirmations > ownerCount ||
            requiredConfirmations == 0 ||
            ownerCount == 0
        ) {
            revert InvalidRequirement(ownerCount, requiredConfirmations);
        }
        _;
    }

    /**
     * @notice Checks that a proposal is scheduled.
     * @param proposalId The ID of the proposal to check.
     */
    modifier scheduled(uint256 proposalId) {
        if (!isScheduled(proposalId)) {
            revert ProposalNotScheduled(proposalId);
        }
        _;
    }

    /**
     * @notice Checks that a proposal is not scheduled.
     * @param proposalId The ID of the proposal to check.
     */
    modifier notScheduled(uint256 proposalId) {
        if (isScheduled(proposalId)) {
            revert ProposalAlreadyScheduled(proposalId);
        }
        _;
    }

    /**
     * @notice Checks that a proposal's time lock has elapsed.
     * @param proposalId The ID of the proposal to check.
     */
    modifier timeLockReached(uint256 proposalId) {
        if (!isProposalTimelockReached(proposalId)) {
            revert ProposalTimelockNotReached(proposalId);
        }
        _;
    }

    /**
     * @notice Checks that a proposal is fully confirmed.
     * @param proposalId The ID of the proposal to check.
     */
    modifier fullyConfirmed(uint256 proposalId) {
        if (!isFullyConfirmed(proposalId)) {
            revert ProposalNotFullyConfirmed(proposalId);
        }
        _;
    }

    /**
     * @notice Sets `initialized` to  true on implementation contracts.
     * @param _minDelay The minimum time in seconds that must elapse before a
     * proposal is executable.
     */
    // solhint-disable-next-line no-empty-blocks
    constructor(uint256 _minDelay) initializer {
        minDelay = _minDelay;
    }

    receive() external payable {
        if (msg.value > 0) {
            emit CeloDeposited(msg.sender, msg.value);
        }
    }

    /**
     * @notice Bootstraps this contract with initial data.
     * @dev This plays the role of a typical contract constructor. Sets initial owners and
     * required number of confirmations. The initializer modifier ensures that this function
     * is ONLY callable once.
     * @param initialOwners The list of initial owners.
     * @param requiredConfirmations The number of required confirmations for a proposal
     * to be fully confirmed.
     * @param _delay The delay that must elapse to be able to execute a proposal.
     */
    function initialize(
        address[] calldata initialOwners,
        uint256 requiredConfirmations,
        uint256 _delay
    ) external initializer validRequirement(initialOwners.length, requiredConfirmations) {
        for (uint256 i = 0; i < initialOwners.length; i++) {
            if (owners.contains(initialOwners[i])) {
                revert OwnerAlreadyExists(initialOwners[i]);
            }

            if (initialOwners[i] == address(0)) {
                revert NullAddress();
            }

            owners.add(initialOwners[i]);
            emit OwnerAdded(initialOwners[i]);
        }
        _changeRequirement(requiredConfirmations);
        _changeDelay(_delay);
    }

    /**
     * @notice Adds a new multisig owner.
     * @dev This call can only be made by this contract.
     * @param owner The owner to add.
     */
    function addOwner(address owner)
        external
        onlyWallet
        ownerDoesNotExist(owner)
        notNull(owner)
        validRequirement(owners.length() + 1, required)
    {
        owners.add(owner);
        emit OwnerAdded(owner);
    }

    /**
     * @notice Removes an existing owner.
     * @dev This call can only be made by this contract.
     * @param owner The owner to remove.
     */
    function removeOwner(address owner) external onlyWallet ownerExists(owner) {
        if (owners.length() == 1) {
            revert CannotRemoveLastOwner(owner);
        }

        owners.remove(owner);

        if (required > owners.length()) {
            // Readjust the required amount, since the list of total owners has reduced.
            changeRequirement(owners.length());
        }
        emit OwnerRemoved(owner);
    }

    /**
     * @notice Replaces an existing owner with a new owner.
     * @dev This call can only be made by this contract.
     * @param owner The owner to be replaced.
     */
    function replaceOwner(address owner, address newOwner)
        external
        onlyWallet
        ownerExists(owner)
        notNull(newOwner)
        ownerDoesNotExist(newOwner)
    {
        owners.remove(owner);
        owners.add(newOwner);
        emit OwnerRemoved(owner);
        emit OwnerAdded(newOwner);
    }

    /**
     * @notice Void a confirmation for a previously confirmed proposal.
     * @param proposalId The ID of the proposal to be revoked.
     */
    function revokeConfirmation(uint256 proposalId)
        external
        ownerExists(msg.sender)
        confirmed(proposalId, msg.sender)
        notExecuted(proposalId)
    {
        proposals[proposalId].confirmations[msg.sender] = false;
        emit ConfirmationRevoked(msg.sender, proposalId);
    }

    /**
     * @notice Creates a proposal and triggers the first confirmation on behalf of the
     * proposal creator.
     * @param destinations The addresses at which the proposal is target at.
     * @param values The CELO values involved in the proposal if any.
     * @param payloads The payloads of the proposal.
     * @return proposalId Returns the ID of the proposal that gets generated.
     */
    function submitProposal(
        address[] calldata destinations,
        uint256[] calldata values,
        bytes[] calldata payloads
    ) external returns (uint256 proposalId) {
        if (destinations.length != values.length) {
            revert ParamLengthsMismatch();
        }

        if (destinations.length != payloads.length) {
            revert ParamLengthsMismatch();
        }
        proposalId = addProposal(destinations, values, payloads);
        confirmProposal(proposalId);
    }

    /**
     * @notice Get the list of multisig owners.
     * @return The list of owner addresses.
     */
    function getOwners() external view returns (address[] memory) {
        return owners.values();
    }

    /**
     * @notice Gets the list of owners' addresses which have confirmed a given proposal.
     * @param proposalId The ID of the proposal.
     * @return The list of owner addresses.
     */
    function getConfirmations(uint256 proposalId) external view returns (address[] memory) {
        address[] memory confirmationsTemp = new address[](owners.length());
        uint256 count = 0;
        for (uint256 i = 0; i < owners.length(); i++) {
            if (proposals[proposalId].confirmations[owners.at(i)]) {
                confirmationsTemp[count] = owners.at(i);
                count++;
            }
        }
        address[] memory confirmingOwners = new address[](count);
        for (uint256 i = 0; i < count; i++) {
            confirmingOwners[i] = confirmationsTemp[i];
        }
        return confirmingOwners;
    }

    /**
     * @notice Gets the destinations, values and payloads of a proposal.
     * @param proposalId The ID of the proposal.
     * @param destinations The addresses at which the proposal is target at.
     * @param values The CELO values involved in the proposal if any.
     * @param payloads The payloads of the proposal.
     */
    function getProposal(uint256 proposalId)
        external
        view
        returns (
            address[] memory destinations,
            uint256[] memory values,
            bytes[] memory payloads
        )
    {
        Proposal storage proposal = proposals[proposalId];
        return (proposal.destinations, proposal.values, proposal.payloads);
    }

    /**
     * @notice Changes the number of confirmations required to consider a proposal
     * fully confirmed.
     * @dev Proposal has to be sent by wallet.
     * @param newRequired The new number of confirmations required.
     */
    function changeRequirement(uint256 newRequired)
        public
        onlyWallet
        validRequirement(owners.length(), newRequired)
    {
        _changeRequirement(newRequired);
    }

    /**
     * @notice Changes the value of the delay that must
     * elapse before a proposal can become executable.
     * @dev Proposal has to be sent by wallet.
     * @param newDelay The new delay value.
     */
    function changeDelay(uint256 newDelay) public onlyWallet {
        _changeDelay(newDelay);
    }

    /**
     * @notice Confirms a proposal. A proposal is executed if this confirmation
     * makes it fully confirmed.
     * @param proposalId The ID of the proposal to confirm.
     */
    function confirmProposal(uint256 proposalId)
        public
        ownerExists(msg.sender)
        proposalExists(proposalId)
        notConfirmed(proposalId, msg.sender)
    {
        proposals[proposalId].confirmations[msg.sender] = true;
        emit ProposalConfirmed(msg.sender, proposalId);
        if (isFullyConfirmed(proposalId)) {
            scheduleProposal(proposalId);
        }
    }

    /**
     * @notice Schedules a proposal with a time lock.
     * @param proposalId The ID of the proposal to confirm.
     */
    function scheduleProposal(uint256 proposalId)
        public
        ownerExists(msg.sender)
        notExecuted(proposalId)
    {
        schedule(proposalId);
        emit ProposalScheduled(proposalId);
    }

    /**
     * @notice Executes a proposal. A proposal is only executetable if it is fully confirmed,
     * scheduled and the set delay has elapsed.
     * @dev Any of the multisig owners can execute a given proposal, even though they may
     * not have participated in its confirmation process.
     */
    function executeProposal(uint256 proposalId)
        public
        scheduled(proposalId)
        notExecuted(proposalId)
        timeLockReached(proposalId)
    {
        Proposal storage proposal = proposals[proposalId];
        proposal.timestampExecutable = DONE_TIMESTAMP;

        for (uint256 i = 0; i < proposals[proposalId].destinations.length; i++) {
            bytes memory returnData = ExternalCall.execute(
                proposal.destinations[i],
                proposal.values[i],
                proposal.payloads[i]
            );
            emit TransactionExecuted(i, proposalId, returnData);
        }
    }

    /**
     * @notice Returns the timestamp at which a proposal becomes executable.
     * @param proposalId The ID of the proposal.
     * @return The timestamp at which the proposal becomes executable.
     */
    function getTimestamp(uint256 proposalId) public view returns (uint256) {
        return proposals[proposalId].timestampExecutable;
    }

    /**
     * @notice Returns whether a proposal is scheduled.
     * @param proposalId The ID of the proposal to check.
     * @return Whether or not the proposal is scheduled.
     */
    function isScheduled(uint256 proposalId) public view returns (bool) {
        return getTimestamp(proposalId) > DONE_TIMESTAMP;
    }

    /**
     * @notice Returns whether a proposal is executable or not.
     * A proposal is executable if it is scheduled, the delay has elapsed
     * and it is not yet executed.
     * @param proposalId The ID of the proposal to check.
     * @return Whether or not the time lock is reached.
     */
    function isProposalTimelockReached(uint256 proposalId) public view returns (bool) {
        uint256 timestamp = getTimestamp(proposalId);
        return
            timestamp <= block.timestamp &&
            proposals[proposalId].timestampExecutable > DONE_TIMESTAMP;
    }

    /**
     * @notice Checks that a proposal has been confirmed by at least the `required`
     * number of owners.
     * @param proposalId The ID of the proposal to check.
     * @return Whether or not the proposal is confirmed by the minimum set of owners.
     */
    function isFullyConfirmed(uint256 proposalId) public view returns (bool) {
        uint256 count = 0;
        for (uint256 i = 0; i < owners.length(); i++) {
            if (proposals[proposalId].confirmations[owners.at(i)]) {
                count++;
            }
            if (count == required) {
                return true;
            }
        }
        return false;
    }

    /**
     * @notice Checks that a proposal is confirmed by an owner.
     * @param proposalId The ID of the proposal to check.
     * @param owner The address to check.
     * @return Whether or not the proposal is confirmed by the given owner.
     */
    function isConfirmedBy(uint256 proposalId, address owner) public view returns (bool) {
        return proposals[proposalId].confirmations[owner];
    }

    /**
     * @notice Checks that an address is a multisig owner.
     * @param owner The address to check.
     * @return Whether or not the address is a multisig owner.
     */
    function isOwner(address owner) public view returns (bool) {
        return owners.contains(owner);
    }

    /**
     * @notice Adds a new proposal to the proposals list.
     * @param destinations The addresses at which the proposal is directed to.
     * @param values The CELO valuse involved in the proposal if any.
     * @param payloads The payloads of the proposal.
     * @return proposalId Returns the ID of the proposal that gets generated.
     */
    function addProposal(
        address[] memory destinations,
        uint256[] memory values,
        bytes[] memory payloads
    ) internal notNullBatch(destinations) returns (uint256 proposalId) {
        proposalId = proposalCount;
        Proposal storage proposal = proposals[proposalId];

        proposal.destinations = destinations;
        proposal.values = values;
        proposal.payloads = payloads;

        proposalCount++;
        emit ProposalAdded(proposalId);
    }

    /**
     * @notice Schedules a proposal with a time lock.
     * @param proposalId The ID of the proposal to schedule.
     */
    function schedule(uint256 proposalId)
        internal
        notScheduled(proposalId)
        fullyConfirmed(proposalId)
    {
        proposals[proposalId].timestampExecutable = block.timestamp + delay;
    }

    /**
     * @notice Changes the value of the delay that must
     * elapse before a proposal can become executable.
     * @param newDelay The new delay value.
     */
    function _changeDelay(uint256 newDelay) internal {
        if (newDelay < minDelay) {
            revert InsufficientDelay(newDelay);
        }

        delay = newDelay;
        emit DelayChanged(delay, newDelay);
    }

    /**
     * @notice Changes the number of confirmations required to consider a proposal
     * fully confirmed.
     * @dev This method does not do any validation, see `changeRequirement`
     * for how it is used with the requirement validation modifier.
     * @param newRequired The new number of confirmations required.
     */
    function _changeRequirement(uint256 newRequired) internal {
        required = newRequired;
        emit RequirementChanged(newRequired);
    }

    /**
     * @notice Guard method for UUPS (Universal Upgradable Proxy Standard)
     * See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#transparent-vs-uups
     * @dev This methods overrides the virtual one in UUPSUpgradeable and
     * adds the onlyWallet modifer.
     */
    // solhint-disable-next-line no-empty-blocks
    function _authorizeUpgrade(address) internal override onlyWallet {}

    /**
     * @notice Returns the storage, major, minor, and patch version of the contract.
     * @return Storage version of the contract.
     * @return Major version of the contract.
     * @return Minor version of the contract.
     * @return Patch version of the contract.
     */
    function getVersionNumber()
        external
        pure
        returns (
            uint256,
            uint256,
            uint256,
            uint256
        )
    {
        return (1, 1, 1, 0);
    }
}
        

/_openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol

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

pragma solidity ^0.8.2;

import "../beacon/IBeacon.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._
 *
 * @custom:oz-upgrades-unsafe-allow delegatecall
 */
abstract contract ERC1967Upgrade {
    // 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 Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @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 _upgradeToAndCallSecure(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        address oldImplementation = _getImplementation();

        // Initial upgrade and setup call
        _setImplementation(newImplementation);
        if (data.length > 0 || forceCall) {
            Address.functionDelegateCall(newImplementation, data);
        }

        // Perform rollback test if not already in progress
        StorageSlot.BooleanSlot storage rollbackTesting = StorageSlot.getBooleanSlot(_ROLLBACK_SLOT);
        if (!rollbackTesting.value) {
            // Trigger rollback using upgradeTo from the new implementation
            rollbackTesting.value = true;
            Address.functionDelegateCall(
                newImplementation,
                abi.encodeWithSignature("upgradeTo(address)", oldImplementation)
            );
            rollbackTesting.value = false;
            // Check rollback was effective
            require(oldImplementation == _getImplementation(), "ERC1967Upgrade: upgrade breaks further upgrades");
            // Finally reset to the new implementation and log the upgrade
            _upgradeTo(newImplementation);
        }
    }

    /**
     * @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 Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @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 Emitted when the beacon is upgraded.
     */
    event BeaconUpgraded(address indexed beacon);

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

/_openzeppelin/contracts/proxy/beacon/IBeacon.sol

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

/_openzeppelin/contracts/proxy/utils/Initializable.sol

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

pragma solidity ^0.8.0;

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 a proxied contract can't have 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.
 *
 * 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 initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

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

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

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

    function _isConstructor() private view returns (bool) {
        return !Address.isContract(address(this));
    }
}
          

/_openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol

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

pragma solidity ^0.8.0;

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 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 Upgrade the implementation of the proxy to `newImplementation`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeTo(address newImplementation) external virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallSecure(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.
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallSecure(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;
}
          

/_openzeppelin/contracts/utils/Address.sol

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

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}
          

/_openzeppelin/contracts/utils/StorageSlot.sol

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

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:
 * ```
 * 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`, and `uint256`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

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

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

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

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

/_openzeppelin/contracts/utils/structs/EnumerableSet.sol

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

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

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

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

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

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

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

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

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }
}
          

/contracts/libraries/ExternalCall.sol

//SPDX-License-Identifier: LGPL-3.0-only
pragma solidity 0.8.11;

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

library ExternalCall {
    /**
     * @notice Used when destination is not a contract.
     * @param destination The invalid destination address.
     */
    error InvalidContractAddress(address destination);

    /**
     * @notice Used when an execution fails.
     */
    error ExecutionFailed();

    /**
     * @notice Executes external call.
     * @param destination The address to call.
     * @param value The CELO value to be sent.
     * @param data The data to be sent.
     * @return The call return value.
     */
    function execute(
        address destination,
        uint256 value,
        bytes memory data
    ) internal returns (bytes memory) {
        if (data.length > 0) {
            if (!Address.isContract(destination)) {
                revert InvalidContractAddress(destination);
            }
        }

        bool success;
        bytes memory returnData;
        // solhint-disable-next-line avoid-low-level-calls
        (success, returnData) = destination.call{value: value}(data);
        if (!success) {
            revert ExecutionFailed();
        }

        return returnData;
    }
}
          

Compiler Settings

{"remappings":[],"optimizer":{"runs":200,"enabled":false},"metadata":{"useLiteralContent":true,"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"istanbul","compilationTarget":{"contracts/common/MultiSig.sol":"MultiSig"}}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"uint256","name":"_minDelay","internalType":"uint256"}]},{"type":"error","name":"CannotRemoveLastOwner","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"ExecutionFailed","inputs":[]},{"type":"error","name":"InsufficientDelay","inputs":[{"type":"uint256","name":"delay","internalType":"uint256"}]},{"type":"error","name":"InvalidContractAddress","inputs":[{"type":"address","name":"destination","internalType":"address"}]},{"type":"error","name":"InvalidRequirement","inputs":[{"type":"uint256","name":"ownerCount","internalType":"uint256"},{"type":"uint256","name":"required","internalType":"uint256"}]},{"type":"error","name":"NullAddress","inputs":[]},{"type":"error","name":"OwnerAlreadyExists","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"OwnerDoesNotExist","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"ParamLengthsMismatch","inputs":[]},{"type":"error","name":"ProposalAlreadyConfirmed","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"},{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"ProposalAlreadyExecuted","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"error","name":"ProposalAlreadyScheduled","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"error","name":"ProposalDoesNotExist","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"error","name":"ProposalNotConfirmed","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"},{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"ProposalNotFullyConfirmed","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"error","name":"ProposalNotScheduled","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"error","name":"ProposalTimelockNotReached","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"error","name":"SenderMustBeMultisigWallet","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"event","name":"AdminChanged","inputs":[{"type":"address","name":"previousAdmin","internalType":"address","indexed":false},{"type":"address","name":"newAdmin","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"BeaconUpgraded","inputs":[{"type":"address","name":"beacon","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"CeloDeposited","inputs":[{"type":"address","name":"sender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ConfirmationRevoked","inputs":[{"type":"address","name":"sender","internalType":"address","indexed":true},{"type":"uint256","name":"proposalId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"DelayChanged","inputs":[{"type":"uint256","name":"delay","internalType":"uint256","indexed":false},{"type":"uint256","name":"newDelay","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnerAdded","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"OwnerRemoved","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ProposalAdded","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"ProposalConfirmed","inputs":[{"type":"address","name":"sender","internalType":"address","indexed":true},{"type":"uint256","name":"proposalId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"ProposalExecuted","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256","indexed":true},{"type":"bytes","name":"returnData","internalType":"bytes","indexed":false}],"anonymous":false},{"type":"event","name":"ProposalScheduled","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"RequirementChanged","inputs":[{"type":"uint256","name":"required","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"TransactionExecuted","inputs":[{"type":"uint256","name":"index","internalType":"uint256","indexed":false},{"type":"uint256","name":"proposalId","internalType":"uint256","indexed":true},{"type":"bytes","name":"returnData","internalType":"bytes","indexed":false}],"anonymous":false},{"type":"event","name":"Upgraded","inputs":[{"type":"address","name":"implementation","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_OWNER_COUNT","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addOwner","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"changeDelay","inputs":[{"type":"uint256","name":"newDelay","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"changeRequirement","inputs":[{"type":"uint256","name":"newRequired","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"confirmProposal","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"delay","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"executeProposal","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address[]","name":"","internalType":"address[]"}],"name":"getConfirmations","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address[]","name":"","internalType":"address[]"}],"name":"getOwners","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address[]","name":"destinations","internalType":"address[]"},{"type":"uint256[]","name":"values","internalType":"uint256[]"},{"type":"bytes[]","name":"payloads","internalType":"bytes[]"}],"name":"getProposal","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getTimestamp","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getVersionNumber","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"address[]","name":"initialOwners","internalType":"address[]"},{"type":"uint256","name":"requiredConfirmations","internalType":"uint256"},{"type":"uint256","name":"_delay","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isConfirmedBy","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"},{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isFullyConfirmed","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isOwner","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isProposalTimelockReached","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isScheduled","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"minDelay","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"proposalCount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"timestampExecutable","internalType":"uint256"}],"name":"proposals","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removeOwner","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"replaceOwner","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"required","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeConfirmation","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"scheduleProposal","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}],"name":"submitProposal","inputs":[{"type":"address[]","name":"destinations","internalType":"address[]"},{"type":"uint256[]","name":"values","internalType":"uint256[]"},{"type":"bytes[]","name":"payloads","internalType":"bytes[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"upgradeTo","inputs":[{"type":"address","name":"newImplementation","internalType":"address"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"upgradeToAndCall","inputs":[{"type":"address","name":"newImplementation","internalType":"address"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"receive","stateMutability":"payable"}]
              

Contract Creation Code

0x60c06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff168152503480156200004457600080fd5b506040516200477e3803806200477e83398181016040528101906200006a9190620001db565b600060019054906101000a900460ff16620000945760008054906101000a900460ff1615620000a5565b620000a46200016a60201b60201c565b5b620000e7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000de9062000294565b60405180910390fd5b60008060019054906101000a900460ff16159050801562000138576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8160a081815250508015620001625760008060016101000a81548160ff0219169083151502179055505b5050620002b6565b600062000182306200018860201b620024931760201c565b15905090565b600080823b905060008111915050919050565b600080fd5b6000819050919050565b620001b581620001a0565b8114620001c157600080fd5b50565b600081519050620001d581620001aa565b92915050565b600060208284031215620001f457620001f36200019b565b5b60006200020484828501620001c4565b91505092915050565b600082825260208201905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b60006200027c602e836200020d565b915062000289826200021e565b604082019050919050565b60006020820190508181036000830152620002af816200026d565b9050919050565b60805160a051614486620002f860003960008181611d2701526128c7015260008181610e2601528181610eb501528181610feb015261107a01526144866000f3fe6080604052600436106101c65760003560e01c80637065cb48116100f7578063c63c4e9b11610095578063dc8452cd11610064578063dc8452cd146106f7578063df5aa6b114610722578063e20056e61461074b578063f4a4f4d21461077457610225565b8063c63c4e9b14610637578063c7f758a814610662578063d74f8edd146106a1578063da35c664146106cc57610225565b8063a42606e3116100d1578063a42606e314610557578063b5dc40c314610594578063b633620c146105d1578063ba51a6df1461060e57610225565b80637065cb48146104c65780638a8e784c146104ef578063a0e67e2b1461052c57610225565b80634f1ef2861161016457806354255be01161013e57806354255be0146104075780635eae7959146104355780636a42b8f81461045e5780636e7afa341461048957610225565b80634f1ef286146103855780635037ec62146103a157806352745014146103ca57610225565b806320ea8d86116101a057806320ea8d86146102b95780632f54bf6e146102e25780633659cfe61461031f57806339a08f011461034857610225565b8063013cf08b1461022a5780630d61b51914610267578063173825d91461029057610225565b36610225576000341115610223573373ffffffffffffffffffffffffffffffffffffffff167fb3bcfe4f408c657ba1ce2fc1c3235d37903cb674e54269bfe562874af3fc0f143460405161021a919061335c565b60405180910390a25b005b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906133b7565b61079d565b60405161025e919061335c565b60405180910390f35b34801561027357600080fd5b5061028e600480360381019061028991906133b7565b6107bb565b005b34801561029c57600080fd5b506102b760048036038101906102b29190613442565b610a60565b005b3480156102c557600080fd5b506102e060048036038101906102db91906133b7565b610bf7565b005b3480156102ee57600080fd5b5061030960048036038101906103049190613442565b610e07565b604051610316919061348a565b60405180910390f35b34801561032b57600080fd5b5061034660048036038101906103419190613442565b610e24565b005b34801561035457600080fd5b5061036f600480360381019061036a91906133b7565b610fad565b60405161037c919061348a565b60405180910390f35b61039f600480360381019061039a91906135eb565b610fe9565b005b3480156103ad57600080fd5b506103c860048036038101906103c391906133b7565b611126565b005b3480156103d657600080fd5b506103f160048036038101906103ec9190613753565b6111a2565b6040516103fe919061335c565b60405180910390f35b34801561041357600080fd5b5061041c6112d0565b60405161042c9493929190613807565b60405180910390f35b34801561044157600080fd5b5061045c6004803603810190610457919061384c565b6112eb565b005b34801561046a57600080fd5b5061047361164e565b604051610480919061335c565b60405180910390f35b34801561049557600080fd5b506104b060048036038101906104ab91906133b7565b611654565b6040516104bd919061348a565b60405180910390f35b3480156104d257600080fd5b506104ed60048036038101906104e89190613442565b61172b565b005b3480156104fb57600080fd5b50610516600480360381019061051191906138c0565b61193a565b604051610523919061348a565b60405180910390f35b34801561053857600080fd5b506105416119a5565b60405161054e91906139be565b60405180910390f35b34801561056357600080fd5b5061057e600480360381019061057991906133b7565b6119b6565b60405161058b919061348a565b60405180910390f35b3480156105a057600080fd5b506105bb60048036038101906105b691906133b7565b6119cb565b6040516105c891906139be565b60405180910390f35b3480156105dd57600080fd5b506105f860048036038101906105f391906133b7565b611c14565b604051610605919061335c565b60405180910390f35b34801561061a57600080fd5b50610635600480360381019061063091906133b7565b611c34565b005b34801561064357600080fd5b5061064c611d25565b604051610659919061335c565b60405180910390f35b34801561066e57600080fd5b50610689600480360381019061068491906133b7565b611d49565b60405161069893929190613be8565b60405180910390f35b3480156106ad57600080fd5b506106b6611f2c565b6040516106c3919061335c565b60405180910390f35b3480156106d857600080fd5b506106e1611f31565b6040516106ee919061335c565b60405180910390f35b34801561070357600080fd5b5061070c611f37565b604051610719919061335c565b60405180910390f35b34801561072e57600080fd5b50610749600480360381019061074491906133b7565b611f3d565b005b34801561075757600080fd5b50610772600480360381019061076d9190613c34565b61202b565b005b34801561078057600080fd5b5061079b600480360381019061079691906133b7565b612267565b005b60026020528060005260406000206000915090508060030154905081565b806107c5816119b6565b61080657806040517ffc8f7d550000000000000000000000000000000000000000000000000000000081526004016107fd919061335c565b60405180910390fd5b8160016002600083815260200190815260200160002060030154141561086357806040517f4eec80e600000000000000000000000000000000000000000000000000000000815260040161085a919061335c565b60405180910390fd5b8261086d81610fad565b6108ae57806040517f676790790000000000000000000000000000000000000000000000000000000081526004016108a5919061335c565b60405180910390fd5b60006002600086815260200190815260200160002090506001816003018190555060005b6002600087815260200190815260200160002060000180549050811015610a58576000610a0883600001838154811061090e5761090d613c74565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684600101848154811061094f5761094e613c74565b5b90600052602060002001548560020185815481106109705761096f613c74565b5b90600052602060002001805461098590613cd2565b80601f01602080910402602001604051908101604052809291908181526020018280546109b190613cd2565b80156109fe5780601f106109d3576101008083540402835291602001916109fe565b820191906000526020600020905b8154815290600101906020018083116109e157829003601f168201915b50505050506124a6565b9050867f8c24081880749c0e4b467d98c335531022b2e7b74f6e264405138daf13d31e3c8383604051610a3c929190613d4e565b60405180910390a2508080610a5090613dad565b9150506108d2565b505050505050565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ad057336040517f03f2b1fd000000000000000000000000000000000000000000000000000000008152600401610ac79190613e05565b60405180910390fd5b80610ae58160036125b590919063ffffffff16565b610b2657806040517f531e21ce000000000000000000000000000000000000000000000000000000008152600401610b1d9190613e05565b60405180910390fd5b6001610b3260036125e5565b1415610b7557816040517fb1722f41000000000000000000000000000000000000000000000000000000008152600401610b6c9190613e05565b60405180910390fd5b610b898260036125fa90919063ffffffff16565b50610b9460036125e5565b6005541115610bb057610baf610baa60036125e5565b611c34565b5b8173ffffffffffffffffffffffffffffffffffffffff167f58619076adf5bb0943d100ef88d52d7c3fd691b19d3a9071b555b651fbf418da60405160405180910390a25050565b33610c0c8160036125b590919063ffffffff16565b610c4d57806040517f531e21ce000000000000000000000000000000000000000000000000000000008152600401610c449190613e05565b60405180910390fd5b81336002600083815260200190815260200160002060040160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610cf35781816040517f36308e83000000000000000000000000000000000000000000000000000000008152600401610cea929190613e20565b60405180910390fd5b83600160026000838152602001908152602001600020600301541415610d5057806040517f4eec80e6000000000000000000000000000000000000000000000000000000008152600401610d47919061335c565b60405180910390fd5b60006002600087815260200190815260200160002060040160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550843373ffffffffffffffffffffffffffffffffffffffff167f795394da21278ca39d59bb3ca00efeebdc0679acc420916c7385c2c5d942656f60405160405180910390a35050505050565b6000610e1d8260036125b590919063ffffffff16565b9050919050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415610eb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eaa90613ecc565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610ef261262a565b73ffffffffffffffffffffffffffffffffffffffff1614610f48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3f90613f5e565b60405180910390fd5b610f5181612681565b610faa81600067ffffffffffffffff811115610f7057610f6f6134c0565b5b6040519080825280601f01601f191660200182016040528015610fa25781602001600182028036833780820191505090505b5060006126f4565b50565b600080610fb983611c14565b9050428111158015610fe1575060016002600085815260200190815260200160002060030154115b915050919050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415611078576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106f90613ecc565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166110b761262a565b73ffffffffffffffffffffffffffffffffffffffff161461110d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110490613f5e565b60405180910390fd5b61111682612681565b611122828260016126f4565b5050565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461119657336040517f03f2b1fd00000000000000000000000000000000000000000000000000000000815260040161118d9190613e05565b60405180910390fd5b61119f816128c5565b50565b60008484905087879050146111e3576040517f98a8185a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b828290508787905014611222576040517f98a8185a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112bb878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508585906112b69190614031565b61296f565b90506112c681612267565b9695505050505050565b60008060008060018060016000935093509350935090919293565b600060019054906101000a900460ff166113135760008054906101000a900460ff161561131c565b61131b612ac8565b5b61135b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611352906140b8565b60405180910390fd5b60008060019054906101000a900460ff1615905080156113ab576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b848490508360328211806113be57508181115b806113c95750600081145b806113d45750600082145b156114185781816040517f3507718800000000000000000000000000000000000000000000000000000000815260040161140f9291906140d8565b60405180910390fd5b60005b878790508110156116115761146188888381811061143c5761143b613c74565b5b90506020020160208101906114519190613442565b60036125b590919063ffffffff16565b156114ca5787878281811061147957611478613c74565b5b905060200201602081019061148e9190613442565b6040517f5ba0cba40000000000000000000000000000000000000000000000000000000081526004016114c19190613e05565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168888838181106114f5576114f4613c74565b5b905060200201602081019061150a9190613442565b73ffffffffffffffffffffffffffffffffffffffff161415611558576040517fe99d5ac500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61159388888381811061156e5761156d613c74565b5b90506020020160208101906115839190613442565b6003612ad990919063ffffffff16565b508787828181106115a7576115a6613c74565b5b90506020020160208101906115bc9190613442565b73ffffffffffffffffffffffffffffffffffffffff167f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c360405160405180910390a2808061160990613dad565b91505061141b565b5061161b85612b09565b611624846128c5565b505080156116475760008060016101000a81548160ff0219169083151502179055505b5050505050565b60015481565b6000806000905060005b61166860036125e5565b81101561171f5760026000858152602001908152602001600020600401600061169b836003612b4a90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156116f75781806116f390613dad565b9250505b60055482141561170c57600192505050611726565b808061171790613dad565b91505061165e565b5060009150505b919050565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461179b57336040517f03f2b1fd0000000000000000000000000000000000000000000000000000000081526004016117929190613e05565b60405180910390fd5b806117b08160036125b590919063ffffffff16565b156117f257806040517f5ba0cba40000000000000000000000000000000000000000000000000000000081526004016117e99190613e05565b60405180910390fd5b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561185a576040517fe99d5ac500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600161186660036125e5565b6118709190614101565b600554603282118061188157508181115b8061188c5750600081145b806118975750600082145b156118db5781816040517f350771880000000000000000000000000000000000000000000000000000000081526004016118d29291906140d8565b60405180910390fd5b6118ef856003612ad990919063ffffffff16565b508473ffffffffffffffffffffffffffffffffffffffff167f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c360405160405180910390a25050505050565b60006002600084815260200190815260200160002060040160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60606119b16003612b64565b905090565b600060016119c383611c14565b119050919050565b606060006119d960036125e5565b67ffffffffffffffff8111156119f2576119f16134c0565b5b604051908082528060200260200182016040528015611a205781602001602082028036833780820191505090505b5090506000805b611a3160036125e5565b811015611b3457600260008681526020019081526020016000206004016000611a64836003612b4a90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611b2157611ac5816003612b4a90919063ffffffff16565b838381518110611ad857611ad7613c74565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508180611b1d90613dad565b9250505b8080611b2c90613dad565b915050611a27565b5060008167ffffffffffffffff811115611b5157611b506134c0565b5b604051908082528060200260200182016040528015611b7f5781602001602082028036833780820191505090505b50905060005b82811015611c0857838181518110611ba057611b9f613c74565b5b6020026020010151828281518110611bbb57611bba613c74565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508080611c0090613dad565b915050611b85565b50809350505050919050565b600060026000838152602001908152602001600020600301549050919050565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ca457336040517f03f2b1fd000000000000000000000000000000000000000000000000000000008152600401611c9b9190613e05565b60405180910390fd5b611cae60036125e5565b816032821180611cbd57508181115b80611cc85750600081145b80611cd35750600082145b15611d175781816040517f35077188000000000000000000000000000000000000000000000000000000008152600401611d0e9291906140d8565b60405180910390fd5b611d2083612b09565b505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6060806060600060026000868152602001908152602001600020905080600001816001018260020182805480602002602001604051908101604052809291908181526020018280548015611df257602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611da8575b5050505050925081805480602002602001604051908101604052809291908181526020018280548015611e4457602002820191906000526020600020905b815481526020019060010190808311611e30575b5050505050915080805480602002602001604051908101604052809291908181526020016000905b82821015611f18578382906000526020600020018054611e8b90613cd2565b80601f0160208091040260200160405190810160405280929190818152602001828054611eb790613cd2565b8015611f045780601f10611ed957610100808354040283529160200191611f04565b820191906000526020600020905b815481529060010190602001808311611ee757829003601f168201915b505050505081526020019060010190611e6c565b505050509050935093509350509193909250565b603281565b60065481565b60055481565b33611f528160036125b590919063ffffffff16565b611f9357806040517f531e21ce000000000000000000000000000000000000000000000000000000008152600401611f8a9190613e05565b60405180910390fd5b81600160026000838152602001908152602001600020600301541415611ff057806040517f4eec80e6000000000000000000000000000000000000000000000000000000008152600401611fe7919061335c565b60405180910390fd5b611ff983612b85565b827f8b9c2cfee0d20895490bae51f33d88197032bb221b15e360155508136257569a60405160405180910390a2505050565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461209b57336040517f03f2b1fd0000000000000000000000000000000000000000000000000000000081526004016120929190613e05565b60405180910390fd5b816120b08160036125b590919063ffffffff16565b6120f157806040517f531e21ce0000000000000000000000000000000000000000000000000000000081526004016120e89190613e05565b60405180910390fd5b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612159576040517fe99d5ac500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8261216e8160036125b590919063ffffffff16565b156121b057806040517f5ba0cba40000000000000000000000000000000000000000000000000000000081526004016121a79190613e05565b60405180910390fd5b6121c48560036125fa90919063ffffffff16565b506121d9846003612ad990919063ffffffff16565b508473ffffffffffffffffffffffffffffffffffffffff167f58619076adf5bb0943d100ef88d52d7c3fd691b19d3a9071b555b651fbf418da60405160405180910390a28373ffffffffffffffffffffffffffffffffffffffff167f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c360405160405180910390a25050505050565b3361227c8160036125b590919063ffffffff16565b6122bd57806040517f531e21ce0000000000000000000000000000000000000000000000000000000081526004016122b49190613e05565b60405180910390fd5b8160006002600083815260200190815260200160002060000180549050141561231d57806040517f4f017420000000000000000000000000000000000000000000000000000000008152600401612314919061335c565b60405180910390fd5b82336002600083815260200190815260200160002060040160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156123c45781816040517f3d5ba2050000000000000000000000000000000000000000000000000000000081526004016123bb929190613e20565b60405180910390fd5b60016002600087815260200190815260200160002060040160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550843373ffffffffffffffffffffffffffffffffffffffff167f03c76756bd7402ca4b074fa11dfd2a209452c67f6f414cff1d8e9795d291421760405160405180910390a361247d85611654565b1561248c5761248b85611f3d565b5b5050505050565b600080823b905060008111915050919050565b60606000825111156124fd576124bb84612493565b6124fc57836040517f19bb40290000000000000000000000000000000000000000000000000000000081526004016124f39190613e05565b60405180910390fd5b5b600060608573ffffffffffffffffffffffffffffffffffffffff1685856040516125279190614193565b60006040518083038185875af1925050503d8060008114612564576040519150601f19603f3d011682016040523d82523d6000602084013e612569565b606091505b508092508193505050816125a9576040517facfdb44400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80925050509392505050565b60006125dd836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612c49565b905092915050565b60006125f382600001612c6c565b9050919050565b6000612622836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612c7d565b905092915050565b60006126587f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b612d91565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146126f157336040517f03f2b1fd0000000000000000000000000000000000000000000000000000000081526004016126e89190613e05565b60405180910390fd5b50565b60006126fe61262a565b905061270984612d9b565b6000835111806127165750815b15612727576127258484612e54565b505b60006127557f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b612e81565b90508060000160009054906101000a900460ff166128be5760018160000160006101000a81548160ff021916908315150217905550612821858360405160240161279f9190613e05565b6040516020818303038152906040527f3659cfe6000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612e54565b5060008160000160006101000a81548160ff02191690831515021790555061284761262a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146128b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ab9061421c565b60405180910390fd5b6128bd85612e8b565b5b5050505050565b7f000000000000000000000000000000000000000000000000000000000000000081101561292a57806040517f08462b5c000000000000000000000000000000000000000000000000000000008152600401612921919061335c565b60405180910390fd5b806001819055507fe238f342cc2d86b842f1511bd768de5dbea53639f6b5335c5d877543bc355c71600154826040516129649291906140d8565b60405180910390a150565b60008360005b8151811015612a1257600073ffffffffffffffffffffffffffffffffffffffff168282815181106129a9576129a8613c74565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614156129ff576040517fe99d5ac500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8080612a0a90613dad565b915050612975565b506006549150600060026000848152602001908152602001600020905085816000019080519060200190612a47929190613105565b5084816001019080519060200190612a6092919061318f565b5083816002019080519060200190612a799291906131dc565b5060066000815480929190612a8d90613dad565b9190505550827f3f802220982dbddc337f1811180e73513e775b18380401997927fd1454cfd0bd60405160405180910390a250509392505050565b6000612ad330612493565b15905090565b6000612b01836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612eda565b905092915050565b806005819055507facbdb084c721332ac59f9b8e392196c9eb0e4932862da8eb9beaf0dad4f550da81604051612b3f919061335c565b60405180910390a150565b6000612b598360000183612f4a565b60001c905092915050565b60606000612b7483600001612f75565b905060608190508092505050919050565b80612b8f816119b6565b15612bd157806040517fd61102f5000000000000000000000000000000000000000000000000000000008152600401612bc8919061335c565b60405180910390fd5b81612bdb81611654565b612c1c57806040517f4e59425a000000000000000000000000000000000000000000000000000000008152600401612c13919061335c565b60405180910390fd5b60015442612c2a9190614101565b6002600085815260200190815260200160002060030181905550505050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b60008083600101600084815260200190815260200160002054905060008114612d85576000600182612caf919061423c565b9050600060018660000180549050612cc7919061423c565b9050818114612d36576000866000018281548110612ce857612ce7613c74565b5b9060005260206000200154905080876000018481548110612d0c57612d0b613c74565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480612d4a57612d49614270565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612d8b565b60009150505b92915050565b6000819050919050565b612da481612493565b612de3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dda90614311565b60405180910390fd5b80612e107f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b612d91565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060612e79838360405180606001604052806027815260200161442a60279139612fd1565b905092915050565b6000819050919050565b612e9481612d9b565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b6000612ee68383612c49565b612f3f578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612f44565b600090505b92915050565b6000826000018281548110612f6257612f61613c74565b5b9060005260206000200154905092915050565b606081600001805480602002602001604051908101604052809291908181526020018280548015612fc557602002820191906000526020600020905b815481526020019060010190808311612fb1575b50505050509050919050565b6060612fdc84612493565b61301b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613012906143a3565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516130439190614193565b600060405180830381855af49150503d806000811461307e576040519150601f19603f3d011682016040523d82523d6000602084013e613083565b606091505b509150915061309382828661309e565b925050509392505050565b606083156130ae578290506130fe565b6000835111156130c15782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130f59190614407565b60405180910390fd5b9392505050565b82805482825590600052602060002090810192821561317e579160200282015b8281111561317d5782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190613125565b5b50905061318b919061323c565b5090565b8280548282559060005260206000209081019282156131cb579160200282015b828111156131ca5782518255916020019190600101906131af565b5b5090506131d8919061323c565b5090565b82805482825590600052602060002090810192821561322b579160200282015b8281111561322a57825182908051906020019061321a929190613259565b50916020019190600101906131fc565b5b50905061323891906132df565b5090565b5b8082111561325557600081600090555060010161323d565b5090565b82805461326590613cd2565b90600052602060002090601f01602090048101928261328757600085556132ce565b82601f106132a057805160ff19168380011785556132ce565b828001600101855582156132ce579182015b828111156132cd5782518255916020019190600101906132b2565b5b5090506132db919061323c565b5090565b5b808211156132ff57600081816132f69190613303565b506001016132e0565b5090565b50805461330f90613cd2565b6000825580601f106133215750613340565b601f01602090049060005260206000209081019061333f919061323c565b5b50565b6000819050919050565b61335681613343565b82525050565b6000602082019050613371600083018461334d565b92915050565b6000604051905090565b600080fd5b600080fd5b61339481613343565b811461339f57600080fd5b50565b6000813590506133b18161338b565b92915050565b6000602082840312156133cd576133cc613381565b5b60006133db848285016133a2565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061340f826133e4565b9050919050565b61341f81613404565b811461342a57600080fd5b50565b60008135905061343c81613416565b92915050565b60006020828403121561345857613457613381565b5b60006134668482850161342d565b91505092915050565b60008115159050919050565b6134848161346f565b82525050565b600060208201905061349f600083018461347b565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6134f8826134af565b810181811067ffffffffffffffff82111715613517576135166134c0565b5b80604052505050565b600061352a613377565b905061353682826134ef565b919050565b600067ffffffffffffffff821115613556576135556134c0565b5b61355f826134af565b9050602081019050919050565b82818337600083830152505050565b600061358e6135898461353b565b613520565b9050828152602081018484840111156135aa576135a96134aa565b5b6135b584828561356c565b509392505050565b600082601f8301126135d2576135d16134a5565b5b81356135e284826020860161357b565b91505092915050565b6000806040838503121561360257613601613381565b5b60006136108582860161342d565b925050602083013567ffffffffffffffff81111561363157613630613386565b5b61363d858286016135bd565b9150509250929050565b600080fd5b600080fd5b60008083601f840112613667576136666134a5565b5b8235905067ffffffffffffffff81111561368457613683613647565b5b6020830191508360208202830111156136a05761369f61364c565b5b9250929050565b60008083601f8401126136bd576136bc6134a5565b5b8235905067ffffffffffffffff8111156136da576136d9613647565b5b6020830191508360208202830111156136f6576136f561364c565b5b9250929050565b60008083601f840112613713576137126134a5565b5b8235905067ffffffffffffffff8111156137305761372f613647565b5b60208301915083602082028301111561374c5761374b61364c565b5b9250929050565b600080600080600080606087890312156137705761376f613381565b5b600087013567ffffffffffffffff81111561378e5761378d613386565b5b61379a89828a01613651565b9650965050602087013567ffffffffffffffff8111156137bd576137bc613386565b5b6137c989828a016136a7565b9450945050604087013567ffffffffffffffff8111156137ec576137eb613386565b5b6137f889828a016136fd565b92509250509295509295509295565b600060808201905061381c600083018761334d565b613829602083018661334d565b613836604083018561334d565b613843606083018461334d565b95945050505050565b6000806000806060858703121561386657613865613381565b5b600085013567ffffffffffffffff81111561388457613883613386565b5b61389087828801613651565b945094505060206138a3878288016133a2565b92505060406138b4878288016133a2565b91505092959194509250565b600080604083850312156138d7576138d6613381565b5b60006138e5858286016133a2565b92505060206138f68582860161342d565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61393581613404565b82525050565b6000613947838361392c565b60208301905092915050565b6000602082019050919050565b600061396b82613900565b613975818561390b565b93506139808361391c565b8060005b838110156139b1578151613998888261393b565b97506139a383613953565b925050600181019050613984565b5085935050505092915050565b600060208201905081810360008301526139d88184613960565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613a1581613343565b82525050565b6000613a278383613a0c565b60208301905092915050565b6000602082019050919050565b6000613a4b826139e0565b613a5581856139eb565b9350613a60836139fc565b8060005b83811015613a91578151613a788882613a1b565b9750613a8383613a33565b925050600181019050613a64565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613b04578082015181840152602081019050613ae9565b83811115613b13576000848401525b50505050565b6000613b2482613aca565b613b2e8185613ad5565b9350613b3e818560208601613ae6565b613b47816134af565b840191505092915050565b6000613b5e8383613b19565b905092915050565b6000602082019050919050565b6000613b7e82613a9e565b613b888185613aa9565b935083602082028501613b9a85613aba565b8060005b85811015613bd65784840389528151613bb78582613b52565b9450613bc283613b66565b925060208a01995050600181019050613b9e565b50829750879550505050505092915050565b60006060820190508181036000830152613c028186613960565b90508181036020830152613c168185613a40565b90508181036040830152613c2a8184613b73565b9050949350505050565b60008060408385031215613c4b57613c4a613381565b5b6000613c598582860161342d565b9250506020613c6a8582860161342d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613cea57607f821691505b60208210811415613cfe57613cfd613ca3565b5b50919050565b600082825260208201905092915050565b6000613d2082613aca565b613d2a8185613d04565b9350613d3a818560208601613ae6565b613d43816134af565b840191505092915050565b6000604082019050613d63600083018561334d565b8181036020830152613d758184613d15565b90509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613db882613343565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613deb57613dea613d7e565b5b600182019050919050565b613dff81613404565b82525050565b6000602082019050613e1a6000830184613df6565b92915050565b6000604082019050613e35600083018561334d565b613e426020830184613df6565b9392505050565b600082825260208201905092915050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b6000613eb6602c83613e49565b9150613ec182613e5a565b604082019050919050565b60006020820190508181036000830152613ee581613ea9565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b6000613f48602c83613e49565b9150613f5382613eec565b604082019050919050565b60006020820190508181036000830152613f7781613f3b565b9050919050565b600067ffffffffffffffff821115613f9957613f986134c0565b5b602082029050602081019050919050565b6000613fbd613fb884613f7e565b613520565b90508083825260208201905060208402830185811115613fe057613fdf61364c565b5b835b8181101561402757803567ffffffffffffffff811115614005576140046134a5565b5b80860161401289826135bd565b85526020850194505050602081019050613fe2565b5050509392505050565b600061403e368484613faa565b905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b60006140a2602e83613e49565b91506140ad82614046565b604082019050919050565b600060208201905081810360008301526140d181614095565b9050919050565b60006040820190506140ed600083018561334d565b6140fa602083018461334d565b9392505050565b600061410c82613343565b915061411783613343565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561414c5761414b613d7e565b5b828201905092915050565b600081905092915050565b600061416d82613aca565b6141778185614157565b9350614187818560208601613ae6565b80840191505092915050565b600061419f8284614162565b915081905092915050565b7f45524331393637557067726164653a207570677261646520627265616b73206660008201527f7572746865722075706772616465730000000000000000000000000000000000602082015250565b6000614206602f83613e49565b9150614211826141aa565b604082019050919050565b60006020820190508181036000830152614235816141f9565b9050919050565b600061424782613343565b915061425283613343565b92508282101561426557614264613d7e565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b60006142fb602d83613e49565b91506143068261429f565b604082019050919050565b6000602082019050818103600083015261432a816142ee565b9050919050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b600061438d602683613e49565b915061439882614331565b604082019050919050565b600060208201905081810360008301526143bc81614380565b9050919050565b600081519050919050565b60006143d9826143c3565b6143e38185613e49565b93506143f3818560208601613ae6565b6143fc816134af565b840191505092915050565b6000602082019050818103600083015261442181846143ce565b90509291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212205d2050c96ac6170a8d1b3359aae89520ea664c0a207e989b29d1fa846b53b29964736f6c634300080b00330000000000000000000000000000000000000000000000000000000000054600

Deployed ByteCode

0x6080604052600436106101c65760003560e01c80637065cb48116100f7578063c63c4e9b11610095578063dc8452cd11610064578063dc8452cd146106f7578063df5aa6b114610722578063e20056e61461074b578063f4a4f4d21461077457610225565b8063c63c4e9b14610637578063c7f758a814610662578063d74f8edd146106a1578063da35c664146106cc57610225565b8063a42606e3116100d1578063a42606e314610557578063b5dc40c314610594578063b633620c146105d1578063ba51a6df1461060e57610225565b80637065cb48146104c65780638a8e784c146104ef578063a0e67e2b1461052c57610225565b80634f1ef2861161016457806354255be01161013e57806354255be0146104075780635eae7959146104355780636a42b8f81461045e5780636e7afa341461048957610225565b80634f1ef286146103855780635037ec62146103a157806352745014146103ca57610225565b806320ea8d86116101a057806320ea8d86146102b95780632f54bf6e146102e25780633659cfe61461031f57806339a08f011461034857610225565b8063013cf08b1461022a5780630d61b51914610267578063173825d91461029057610225565b36610225576000341115610223573373ffffffffffffffffffffffffffffffffffffffff167fb3bcfe4f408c657ba1ce2fc1c3235d37903cb674e54269bfe562874af3fc0f143460405161021a919061335c565b60405180910390a25b005b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906133b7565b61079d565b60405161025e919061335c565b60405180910390f35b34801561027357600080fd5b5061028e600480360381019061028991906133b7565b6107bb565b005b34801561029c57600080fd5b506102b760048036038101906102b29190613442565b610a60565b005b3480156102c557600080fd5b506102e060048036038101906102db91906133b7565b610bf7565b005b3480156102ee57600080fd5b5061030960048036038101906103049190613442565b610e07565b604051610316919061348a565b60405180910390f35b34801561032b57600080fd5b5061034660048036038101906103419190613442565b610e24565b005b34801561035457600080fd5b5061036f600480360381019061036a91906133b7565b610fad565b60405161037c919061348a565b60405180910390f35b61039f600480360381019061039a91906135eb565b610fe9565b005b3480156103ad57600080fd5b506103c860048036038101906103c391906133b7565b611126565b005b3480156103d657600080fd5b506103f160048036038101906103ec9190613753565b6111a2565b6040516103fe919061335c565b60405180910390f35b34801561041357600080fd5b5061041c6112d0565b60405161042c9493929190613807565b60405180910390f35b34801561044157600080fd5b5061045c6004803603810190610457919061384c565b6112eb565b005b34801561046a57600080fd5b5061047361164e565b604051610480919061335c565b60405180910390f35b34801561049557600080fd5b506104b060048036038101906104ab91906133b7565b611654565b6040516104bd919061348a565b60405180910390f35b3480156104d257600080fd5b506104ed60048036038101906104e89190613442565b61172b565b005b3480156104fb57600080fd5b50610516600480360381019061051191906138c0565b61193a565b604051610523919061348a565b60405180910390f35b34801561053857600080fd5b506105416119a5565b60405161054e91906139be565b60405180910390f35b34801561056357600080fd5b5061057e600480360381019061057991906133b7565b6119b6565b60405161058b919061348a565b60405180910390f35b3480156105a057600080fd5b506105bb60048036038101906105b691906133b7565b6119cb565b6040516105c891906139be565b60405180910390f35b3480156105dd57600080fd5b506105f860048036038101906105f391906133b7565b611c14565b604051610605919061335c565b60405180910390f35b34801561061a57600080fd5b50610635600480360381019061063091906133b7565b611c34565b005b34801561064357600080fd5b5061064c611d25565b604051610659919061335c565b60405180910390f35b34801561066e57600080fd5b50610689600480360381019061068491906133b7565b611d49565b60405161069893929190613be8565b60405180910390f35b3480156106ad57600080fd5b506106b6611f2c565b6040516106c3919061335c565b60405180910390f35b3480156106d857600080fd5b506106e1611f31565b6040516106ee919061335c565b60405180910390f35b34801561070357600080fd5b5061070c611f37565b604051610719919061335c565b60405180910390f35b34801561072e57600080fd5b50610749600480360381019061074491906133b7565b611f3d565b005b34801561075757600080fd5b50610772600480360381019061076d9190613c34565b61202b565b005b34801561078057600080fd5b5061079b600480360381019061079691906133b7565b612267565b005b60026020528060005260406000206000915090508060030154905081565b806107c5816119b6565b61080657806040517ffc8f7d550000000000000000000000000000000000000000000000000000000081526004016107fd919061335c565b60405180910390fd5b8160016002600083815260200190815260200160002060030154141561086357806040517f4eec80e600000000000000000000000000000000000000000000000000000000815260040161085a919061335c565b60405180910390fd5b8261086d81610fad565b6108ae57806040517f676790790000000000000000000000000000000000000000000000000000000081526004016108a5919061335c565b60405180910390fd5b60006002600086815260200190815260200160002090506001816003018190555060005b6002600087815260200190815260200160002060000180549050811015610a58576000610a0883600001838154811061090e5761090d613c74565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684600101848154811061094f5761094e613c74565b5b90600052602060002001548560020185815481106109705761096f613c74565b5b90600052602060002001805461098590613cd2565b80601f01602080910402602001604051908101604052809291908181526020018280546109b190613cd2565b80156109fe5780601f106109d3576101008083540402835291602001916109fe565b820191906000526020600020905b8154815290600101906020018083116109e157829003601f168201915b50505050506124a6565b9050867f8c24081880749c0e4b467d98c335531022b2e7b74f6e264405138daf13d31e3c8383604051610a3c929190613d4e565b60405180910390a2508080610a5090613dad565b9150506108d2565b505050505050565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ad057336040517f03f2b1fd000000000000000000000000000000000000000000000000000000008152600401610ac79190613e05565b60405180910390fd5b80610ae58160036125b590919063ffffffff16565b610b2657806040517f531e21ce000000000000000000000000000000000000000000000000000000008152600401610b1d9190613e05565b60405180910390fd5b6001610b3260036125e5565b1415610b7557816040517fb1722f41000000000000000000000000000000000000000000000000000000008152600401610b6c9190613e05565b60405180910390fd5b610b898260036125fa90919063ffffffff16565b50610b9460036125e5565b6005541115610bb057610baf610baa60036125e5565b611c34565b5b8173ffffffffffffffffffffffffffffffffffffffff167f58619076adf5bb0943d100ef88d52d7c3fd691b19d3a9071b555b651fbf418da60405160405180910390a25050565b33610c0c8160036125b590919063ffffffff16565b610c4d57806040517f531e21ce000000000000000000000000000000000000000000000000000000008152600401610c449190613e05565b60405180910390fd5b81336002600083815260200190815260200160002060040160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610cf35781816040517f36308e83000000000000000000000000000000000000000000000000000000008152600401610cea929190613e20565b60405180910390fd5b83600160026000838152602001908152602001600020600301541415610d5057806040517f4eec80e6000000000000000000000000000000000000000000000000000000008152600401610d47919061335c565b60405180910390fd5b60006002600087815260200190815260200160002060040160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550843373ffffffffffffffffffffffffffffffffffffffff167f795394da21278ca39d59bb3ca00efeebdc0679acc420916c7385c2c5d942656f60405160405180910390a35050505050565b6000610e1d8260036125b590919063ffffffff16565b9050919050565b7f000000000000000000000000da3eb100c32cd9387a834f9b9fee340300eb2aa873ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415610eb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eaa90613ecc565b60405180910390fd5b7f000000000000000000000000da3eb100c32cd9387a834f9b9fee340300eb2aa873ffffffffffffffffffffffffffffffffffffffff16610ef261262a565b73ffffffffffffffffffffffffffffffffffffffff1614610f48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3f90613f5e565b60405180910390fd5b610f5181612681565b610faa81600067ffffffffffffffff811115610f7057610f6f6134c0565b5b6040519080825280601f01601f191660200182016040528015610fa25781602001600182028036833780820191505090505b5060006126f4565b50565b600080610fb983611c14565b9050428111158015610fe1575060016002600085815260200190815260200160002060030154115b915050919050565b7f000000000000000000000000da3eb100c32cd9387a834f9b9fee340300eb2aa873ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415611078576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106f90613ecc565b60405180910390fd5b7f000000000000000000000000da3eb100c32cd9387a834f9b9fee340300eb2aa873ffffffffffffffffffffffffffffffffffffffff166110b761262a565b73ffffffffffffffffffffffffffffffffffffffff161461110d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110490613f5e565b60405180910390fd5b61111682612681565b611122828260016126f4565b5050565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461119657336040517f03f2b1fd00000000000000000000000000000000000000000000000000000000815260040161118d9190613e05565b60405180910390fd5b61119f816128c5565b50565b60008484905087879050146111e3576040517f98a8185a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b828290508787905014611222576040517f98a8185a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112bb878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508585906112b69190614031565b61296f565b90506112c681612267565b9695505050505050565b60008060008060018060016000935093509350935090919293565b600060019054906101000a900460ff166113135760008054906101000a900460ff161561131c565b61131b612ac8565b5b61135b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611352906140b8565b60405180910390fd5b60008060019054906101000a900460ff1615905080156113ab576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b848490508360328211806113be57508181115b806113c95750600081145b806113d45750600082145b156114185781816040517f3507718800000000000000000000000000000000000000000000000000000000815260040161140f9291906140d8565b60405180910390fd5b60005b878790508110156116115761146188888381811061143c5761143b613c74565b5b90506020020160208101906114519190613442565b60036125b590919063ffffffff16565b156114ca5787878281811061147957611478613c74565b5b905060200201602081019061148e9190613442565b6040517f5ba0cba40000000000000000000000000000000000000000000000000000000081526004016114c19190613e05565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168888838181106114f5576114f4613c74565b5b905060200201602081019061150a9190613442565b73ffffffffffffffffffffffffffffffffffffffff161415611558576040517fe99d5ac500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61159388888381811061156e5761156d613c74565b5b90506020020160208101906115839190613442565b6003612ad990919063ffffffff16565b508787828181106115a7576115a6613c74565b5b90506020020160208101906115bc9190613442565b73ffffffffffffffffffffffffffffffffffffffff167f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c360405160405180910390a2808061160990613dad565b91505061141b565b5061161b85612b09565b611624846128c5565b505080156116475760008060016101000a81548160ff0219169083151502179055505b5050505050565b60015481565b6000806000905060005b61166860036125e5565b81101561171f5760026000858152602001908152602001600020600401600061169b836003612b4a90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156116f75781806116f390613dad565b9250505b60055482141561170c57600192505050611726565b808061171790613dad565b91505061165e565b5060009150505b919050565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461179b57336040517f03f2b1fd0000000000000000000000000000000000000000000000000000000081526004016117929190613e05565b60405180910390fd5b806117b08160036125b590919063ffffffff16565b156117f257806040517f5ba0cba40000000000000000000000000000000000000000000000000000000081526004016117e99190613e05565b60405180910390fd5b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561185a576040517fe99d5ac500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600161186660036125e5565b6118709190614101565b600554603282118061188157508181115b8061188c5750600081145b806118975750600082145b156118db5781816040517f350771880000000000000000000000000000000000000000000000000000000081526004016118d29291906140d8565b60405180910390fd5b6118ef856003612ad990919063ffffffff16565b508473ffffffffffffffffffffffffffffffffffffffff167f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c360405160405180910390a25050505050565b60006002600084815260200190815260200160002060040160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60606119b16003612b64565b905090565b600060016119c383611c14565b119050919050565b606060006119d960036125e5565b67ffffffffffffffff8111156119f2576119f16134c0565b5b604051908082528060200260200182016040528015611a205781602001602082028036833780820191505090505b5090506000805b611a3160036125e5565b811015611b3457600260008681526020019081526020016000206004016000611a64836003612b4a90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611b2157611ac5816003612b4a90919063ffffffff16565b838381518110611ad857611ad7613c74565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508180611b1d90613dad565b9250505b8080611b2c90613dad565b915050611a27565b5060008167ffffffffffffffff811115611b5157611b506134c0565b5b604051908082528060200260200182016040528015611b7f5781602001602082028036833780820191505090505b50905060005b82811015611c0857838181518110611ba057611b9f613c74565b5b6020026020010151828281518110611bbb57611bba613c74565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508080611c0090613dad565b915050611b85565b50809350505050919050565b600060026000838152602001908152602001600020600301549050919050565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ca457336040517f03f2b1fd000000000000000000000000000000000000000000000000000000008152600401611c9b9190613e05565b60405180910390fd5b611cae60036125e5565b816032821180611cbd57508181115b80611cc85750600081145b80611cd35750600082145b15611d175781816040517f35077188000000000000000000000000000000000000000000000000000000008152600401611d0e9291906140d8565b60405180910390fd5b611d2083612b09565b505050565b7f000000000000000000000000000000000000000000000000000000000005460081565b6060806060600060026000868152602001908152602001600020905080600001816001018260020182805480602002602001604051908101604052809291908181526020018280548015611df257602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611da8575b5050505050925081805480602002602001604051908101604052809291908181526020018280548015611e4457602002820191906000526020600020905b815481526020019060010190808311611e30575b5050505050915080805480602002602001604051908101604052809291908181526020016000905b82821015611f18578382906000526020600020018054611e8b90613cd2565b80601f0160208091040260200160405190810160405280929190818152602001828054611eb790613cd2565b8015611f045780601f10611ed957610100808354040283529160200191611f04565b820191906000526020600020905b815481529060010190602001808311611ee757829003601f168201915b505050505081526020019060010190611e6c565b505050509050935093509350509193909250565b603281565b60065481565b60055481565b33611f528160036125b590919063ffffffff16565b611f9357806040517f531e21ce000000000000000000000000000000000000000000000000000000008152600401611f8a9190613e05565b60405180910390fd5b81600160026000838152602001908152602001600020600301541415611ff057806040517f4eec80e6000000000000000000000000000000000000000000000000000000008152600401611fe7919061335c565b60405180910390fd5b611ff983612b85565b827f8b9c2cfee0d20895490bae51f33d88197032bb221b15e360155508136257569a60405160405180910390a2505050565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461209b57336040517f03f2b1fd0000000000000000000000000000000000000000000000000000000081526004016120929190613e05565b60405180910390fd5b816120b08160036125b590919063ffffffff16565b6120f157806040517f531e21ce0000000000000000000000000000000000000000000000000000000081526004016120e89190613e05565b60405180910390fd5b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612159576040517fe99d5ac500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8261216e8160036125b590919063ffffffff16565b156121b057806040517f5ba0cba40000000000000000000000000000000000000000000000000000000081526004016121a79190613e05565b60405180910390fd5b6121c48560036125fa90919063ffffffff16565b506121d9846003612ad990919063ffffffff16565b508473ffffffffffffffffffffffffffffffffffffffff167f58619076adf5bb0943d100ef88d52d7c3fd691b19d3a9071b555b651fbf418da60405160405180910390a28373ffffffffffffffffffffffffffffffffffffffff167f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c360405160405180910390a25050505050565b3361227c8160036125b590919063ffffffff16565b6122bd57806040517f531e21ce0000000000000000000000000000000000000000000000000000000081526004016122b49190613e05565b60405180910390fd5b8160006002600083815260200190815260200160002060000180549050141561231d57806040517f4f017420000000000000000000000000000000000000000000000000000000008152600401612314919061335c565b60405180910390fd5b82336002600083815260200190815260200160002060040160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156123c45781816040517f3d5ba2050000000000000000000000000000000000000000000000000000000081526004016123bb929190613e20565b60405180910390fd5b60016002600087815260200190815260200160002060040160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550843373ffffffffffffffffffffffffffffffffffffffff167f03c76756bd7402ca4b074fa11dfd2a209452c67f6f414cff1d8e9795d291421760405160405180910390a361247d85611654565b1561248c5761248b85611f3d565b5b5050505050565b600080823b905060008111915050919050565b60606000825111156124fd576124bb84612493565b6124fc57836040517f19bb40290000000000000000000000000000000000000000000000000000000081526004016124f39190613e05565b60405180910390fd5b5b600060608573ffffffffffffffffffffffffffffffffffffffff1685856040516125279190614193565b60006040518083038185875af1925050503d8060008114612564576040519150601f19603f3d011682016040523d82523d6000602084013e612569565b606091505b508092508193505050816125a9576040517facfdb44400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80925050509392505050565b60006125dd836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612c49565b905092915050565b60006125f382600001612c6c565b9050919050565b6000612622836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612c7d565b905092915050565b60006126587f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b612d91565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146126f157336040517f03f2b1fd0000000000000000000000000000000000000000000000000000000081526004016126e89190613e05565b60405180910390fd5b50565b60006126fe61262a565b905061270984612d9b565b6000835111806127165750815b15612727576127258484612e54565b505b60006127557f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b612e81565b90508060000160009054906101000a900460ff166128be5760018160000160006101000a81548160ff021916908315150217905550612821858360405160240161279f9190613e05565b6040516020818303038152906040527f3659cfe6000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612e54565b5060008160000160006101000a81548160ff02191690831515021790555061284761262a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146128b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ab9061421c565b60405180910390fd5b6128bd85612e8b565b5b5050505050565b7f000000000000000000000000000000000000000000000000000000000005460081101561292a57806040517f08462b5c000000000000000000000000000000000000000000000000000000008152600401612921919061335c565b60405180910390fd5b806001819055507fe238f342cc2d86b842f1511bd768de5dbea53639f6b5335c5d877543bc355c71600154826040516129649291906140d8565b60405180910390a150565b60008360005b8151811015612a1257600073ffffffffffffffffffffffffffffffffffffffff168282815181106129a9576129a8613c74565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614156129ff576040517fe99d5ac500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8080612a0a90613dad565b915050612975565b506006549150600060026000848152602001908152602001600020905085816000019080519060200190612a47929190613105565b5084816001019080519060200190612a6092919061318f565b5083816002019080519060200190612a799291906131dc565b5060066000815480929190612a8d90613dad565b9190505550827f3f802220982dbddc337f1811180e73513e775b18380401997927fd1454cfd0bd60405160405180910390a250509392505050565b6000612ad330612493565b15905090565b6000612b01836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612eda565b905092915050565b806005819055507facbdb084c721332ac59f9b8e392196c9eb0e4932862da8eb9beaf0dad4f550da81604051612b3f919061335c565b60405180910390a150565b6000612b598360000183612f4a565b60001c905092915050565b60606000612b7483600001612f75565b905060608190508092505050919050565b80612b8f816119b6565b15612bd157806040517fd61102f5000000000000000000000000000000000000000000000000000000008152600401612bc8919061335c565b60405180910390fd5b81612bdb81611654565b612c1c57806040517f4e59425a000000000000000000000000000000000000000000000000000000008152600401612c13919061335c565b60405180910390fd5b60015442612c2a9190614101565b6002600085815260200190815260200160002060030181905550505050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b60008083600101600084815260200190815260200160002054905060008114612d85576000600182612caf919061423c565b9050600060018660000180549050612cc7919061423c565b9050818114612d36576000866000018281548110612ce857612ce7613c74565b5b9060005260206000200154905080876000018481548110612d0c57612d0b613c74565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480612d4a57612d49614270565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612d8b565b60009150505b92915050565b6000819050919050565b612da481612493565b612de3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dda90614311565b60405180910390fd5b80612e107f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b612d91565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060612e79838360405180606001604052806027815260200161442a60279139612fd1565b905092915050565b6000819050919050565b612e9481612d9b565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b6000612ee68383612c49565b612f3f578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612f44565b600090505b92915050565b6000826000018281548110612f6257612f61613c74565b5b9060005260206000200154905092915050565b606081600001805480602002602001604051908101604052809291908181526020018280548015612fc557602002820191906000526020600020905b815481526020019060010190808311612fb1575b50505050509050919050565b6060612fdc84612493565b61301b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613012906143a3565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516130439190614193565b600060405180830381855af49150503d806000811461307e576040519150601f19603f3d011682016040523d82523d6000602084013e613083565b606091505b509150915061309382828661309e565b925050509392505050565b606083156130ae578290506130fe565b6000835111156130c15782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130f59190614407565b60405180910390fd5b9392505050565b82805482825590600052602060002090810192821561317e579160200282015b8281111561317d5782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190613125565b5b50905061318b919061323c565b5090565b8280548282559060005260206000209081019282156131cb579160200282015b828111156131ca5782518255916020019190600101906131af565b5b5090506131d8919061323c565b5090565b82805482825590600052602060002090810192821561322b579160200282015b8281111561322a57825182908051906020019061321a929190613259565b50916020019190600101906131fc565b5b50905061323891906132df565b5090565b5b8082111561325557600081600090555060010161323d565b5090565b82805461326590613cd2565b90600052602060002090601f01602090048101928261328757600085556132ce565b82601f106132a057805160ff19168380011785556132ce565b828001600101855582156132ce579182015b828111156132cd5782518255916020019190600101906132b2565b5b5090506132db919061323c565b5090565b5b808211156132ff57600081816132f69190613303565b506001016132e0565b5090565b50805461330f90613cd2565b6000825580601f106133215750613340565b601f01602090049060005260206000209081019061333f919061323c565b5b50565b6000819050919050565b61335681613343565b82525050565b6000602082019050613371600083018461334d565b92915050565b6000604051905090565b600080fd5b600080fd5b61339481613343565b811461339f57600080fd5b50565b6000813590506133b18161338b565b92915050565b6000602082840312156133cd576133cc613381565b5b60006133db848285016133a2565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061340f826133e4565b9050919050565b61341f81613404565b811461342a57600080fd5b50565b60008135905061343c81613416565b92915050565b60006020828403121561345857613457613381565b5b60006134668482850161342d565b91505092915050565b60008115159050919050565b6134848161346f565b82525050565b600060208201905061349f600083018461347b565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6134f8826134af565b810181811067ffffffffffffffff82111715613517576135166134c0565b5b80604052505050565b600061352a613377565b905061353682826134ef565b919050565b600067ffffffffffffffff821115613556576135556134c0565b5b61355f826134af565b9050602081019050919050565b82818337600083830152505050565b600061358e6135898461353b565b613520565b9050828152602081018484840111156135aa576135a96134aa565b5b6135b584828561356c565b509392505050565b600082601f8301126135d2576135d16134a5565b5b81356135e284826020860161357b565b91505092915050565b6000806040838503121561360257613601613381565b5b60006136108582860161342d565b925050602083013567ffffffffffffffff81111561363157613630613386565b5b61363d858286016135bd565b9150509250929050565b600080fd5b600080fd5b60008083601f840112613667576136666134a5565b5b8235905067ffffffffffffffff81111561368457613683613647565b5b6020830191508360208202830111156136a05761369f61364c565b5b9250929050565b60008083601f8401126136bd576136bc6134a5565b5b8235905067ffffffffffffffff8111156136da576136d9613647565b5b6020830191508360208202830111156136f6576136f561364c565b5b9250929050565b60008083601f840112613713576137126134a5565b5b8235905067ffffffffffffffff8111156137305761372f613647565b5b60208301915083602082028301111561374c5761374b61364c565b5b9250929050565b600080600080600080606087890312156137705761376f613381565b5b600087013567ffffffffffffffff81111561378e5761378d613386565b5b61379a89828a01613651565b9650965050602087013567ffffffffffffffff8111156137bd576137bc613386565b5b6137c989828a016136a7565b9450945050604087013567ffffffffffffffff8111156137ec576137eb613386565b5b6137f889828a016136fd565b92509250509295509295509295565b600060808201905061381c600083018761334d565b613829602083018661334d565b613836604083018561334d565b613843606083018461334d565b95945050505050565b6000806000806060858703121561386657613865613381565b5b600085013567ffffffffffffffff81111561388457613883613386565b5b61389087828801613651565b945094505060206138a3878288016133a2565b92505060406138b4878288016133a2565b91505092959194509250565b600080604083850312156138d7576138d6613381565b5b60006138e5858286016133a2565b92505060206138f68582860161342d565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61393581613404565b82525050565b6000613947838361392c565b60208301905092915050565b6000602082019050919050565b600061396b82613900565b613975818561390b565b93506139808361391c565b8060005b838110156139b1578151613998888261393b565b97506139a383613953565b925050600181019050613984565b5085935050505092915050565b600060208201905081810360008301526139d88184613960565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613a1581613343565b82525050565b6000613a278383613a0c565b60208301905092915050565b6000602082019050919050565b6000613a4b826139e0565b613a5581856139eb565b9350613a60836139fc565b8060005b83811015613a91578151613a788882613a1b565b9750613a8383613a33565b925050600181019050613a64565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613b04578082015181840152602081019050613ae9565b83811115613b13576000848401525b50505050565b6000613b2482613aca565b613b2e8185613ad5565b9350613b3e818560208601613ae6565b613b47816134af565b840191505092915050565b6000613b5e8383613b19565b905092915050565b6000602082019050919050565b6000613b7e82613a9e565b613b888185613aa9565b935083602082028501613b9a85613aba565b8060005b85811015613bd65784840389528151613bb78582613b52565b9450613bc283613b66565b925060208a01995050600181019050613b9e565b50829750879550505050505092915050565b60006060820190508181036000830152613c028186613960565b90508181036020830152613c168185613a40565b90508181036040830152613c2a8184613b73565b9050949350505050565b60008060408385031215613c4b57613c4a613381565b5b6000613c598582860161342d565b9250506020613c6a8582860161342d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613cea57607f821691505b60208210811415613cfe57613cfd613ca3565b5b50919050565b600082825260208201905092915050565b6000613d2082613aca565b613d2a8185613d04565b9350613d3a818560208601613ae6565b613d43816134af565b840191505092915050565b6000604082019050613d63600083018561334d565b8181036020830152613d758184613d15565b90509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613db882613343565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613deb57613dea613d7e565b5b600182019050919050565b613dff81613404565b82525050565b6000602082019050613e1a6000830184613df6565b92915050565b6000604082019050613e35600083018561334d565b613e426020830184613df6565b9392505050565b600082825260208201905092915050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b6000613eb6602c83613e49565b9150613ec182613e5a565b604082019050919050565b60006020820190508181036000830152613ee581613ea9565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b6000613f48602c83613e49565b9150613f5382613eec565b604082019050919050565b60006020820190508181036000830152613f7781613f3b565b9050919050565b600067ffffffffffffffff821115613f9957613f986134c0565b5b602082029050602081019050919050565b6000613fbd613fb884613f7e565b613520565b90508083825260208201905060208402830185811115613fe057613fdf61364c565b5b835b8181101561402757803567ffffffffffffffff811115614005576140046134a5565b5b80860161401289826135bd565b85526020850194505050602081019050613fe2565b5050509392505050565b600061403e368484613faa565b905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b60006140a2602e83613e49565b91506140ad82614046565b604082019050919050565b600060208201905081810360008301526140d181614095565b9050919050565b60006040820190506140ed600083018561334d565b6140fa602083018461334d565b9392505050565b600061410c82613343565b915061411783613343565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561414c5761414b613d7e565b5b828201905092915050565b600081905092915050565b600061416d82613aca565b6141778185614157565b9350614187818560208601613ae6565b80840191505092915050565b600061419f8284614162565b915081905092915050565b7f45524331393637557067726164653a207570677261646520627265616b73206660008201527f7572746865722075706772616465730000000000000000000000000000000000602082015250565b6000614206602f83613e49565b9150614211826141aa565b604082019050919050565b60006020820190508181036000830152614235816141f9565b9050919050565b600061424782613343565b915061425283613343565b92508282101561426557614264613d7e565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b60006142fb602d83613e49565b91506143068261429f565b604082019050919050565b6000602082019050818103600083015261432a816142ee565b9050919050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b600061438d602683613e49565b915061439882614331565b604082019050919050565b600060208201905081810360008301526143bc81614380565b9050919050565b600081519050919050565b60006143d9826143c3565b6143e38185613e49565b93506143f3818560208601613ae6565b6143fc816134af565b840191505092915050565b6000602082019050818103600083015261442181846143ce565b90509291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212205d2050c96ac6170a8d1b3359aae89520ea664c0a207e989b29d1fa846b53b29964736f6c634300080b0033