ETH Price: $3,313.20 (-4.53%)

Contract

0x319Dd14f434727722Ecee1d27E9e7d4E08b9fFE6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Match Orders139099372021-12-31 0:39:121091 days ago1640911152IN
0x319Dd14f...E08b9fFE6
0 ETH0.09815507350.22862637
Match Orders137645462021-12-08 11:24:321114 days ago1638962672IN
0x319Dd14f...E08b9fFE6
0 ETH0.0449617158.84162187
Match Orders134970912021-10-27 3:45:431156 days ago1635306343IN
0x319Dd14f...E08b9fFE6
0 ETH0.07403613284.84749405
Match Orders133762812021-10-08 5:19:561175 days ago1633670396IN
0x319Dd14f...E08b9fFE6
0 ETH0.07208276277.29154209
Match Orders133762332021-10-08 5:09:051175 days ago1633669745IN
0x319Dd14f...E08b9fFE6
0 ETH0.07196345277.58001292
Match Orders132944932021-09-25 10:40:301188 days ago1632566430IN
0x319Dd14f...E08b9fFE6
0 ETH0.0214677582.81004109
Match Orders131698982021-09-06 3:51:521207 days ago1630900312IN
0x319Dd14f...E08b9fFE6
0 ETH0.06699674273.19738704
Match Orders131615432021-09-04 21:01:161208 days ago1630789276IN
0x319Dd14f...E08b9fFE6
0 ETH0.06579401252.70884759
Match Orders131364362021-09-01 0:02:281212 days ago1630454548IN
0x319Dd14f...E08b9fFE6
0 ETH0.08980588418.12770705
Match Orders131188742021-08-29 6:50:051215 days ago1630219805IN
0x319Dd14f...E08b9fFE6
0 ETH0.03751777156.6360498
Match Orders130296122021-08-15 11:53:571229 days ago1629028437IN
0x319Dd14f...E08b9fFE6
0 ETH0.0173381363.31736904
Match Orders130031912021-08-11 9:58:501233 days ago1628675930IN
0x319Dd14f...E08b9fFE6
0 ETH0.03351466120.97366213
Match Orders129709332021-08-06 10:38:151238 days ago1628246295IN
0x319Dd14f...E08b9fFE6
0 ETH0.0170741761.71693105
Cancel Order129464352021-08-02 14:22:541242 days ago1627914174IN
0x319Dd14f...E08b9fFE6
0 ETH0.0030207640.00000145
Match Orders129371022021-08-01 2:50:441243 days ago1627786244IN
0x319Dd14f...E08b9fFE6
0 ETH0.0154920169
Cancel Order128903802021-07-24 17:33:031251 days ago1627147983IN
0x319Dd14f...E08b9fFE6
0 ETH0.0015851421
Cancel Order128895232021-07-24 14:28:291251 days ago1627136909IN
0x319Dd14f...E08b9fFE6
0 ETH0.0012836117
Match Orders128634252021-07-20 12:35:311255 days ago1626784531IN
0x319Dd14f...E08b9fFE6
0 ETH0.0158092466
Match Orders127846542021-07-08 4:40:551267 days ago1625719255IN
0x319Dd14f...E08b9fFE6
0 ETH0.0176814569
Match Orders127673852021-07-05 12:07:581270 days ago1625486878IN
0x319Dd14f...E08b9fFE6
0 ETH0.014811960
Match Orders127669642021-07-05 10:36:211270 days ago1625481381IN
0x319Dd14f...E08b9fFE6
0 ETH0.0068592330
Match Orders127553912021-07-03 15:27:531272 days ago1625326073IN
0x319Dd14f...E08b9fFE6
0 ETH0.0138566754
Match Orders126972032021-06-24 13:50:131281 days ago1624542613IN
0x319Dd14f...E08b9fFE6
0 ETH0.0086219236
Match Orders126964062021-06-24 10:49:381281 days ago1624531778IN
0x319Dd14f...E08b9fFE6
0 ETH0.0071860230
Match Orders126904122021-06-23 12:35:141282 days ago1624451714IN
0x319Dd14f...E08b9fFE6
0 ETH0.0091382736
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
153841142022-08-21 13:00:38858 days ago1661086838
0x319Dd14f...E08b9fFE6
0.00201 ETH
153841142022-08-21 13:00:38858 days ago1661086838
0x319Dd14f...E08b9fFE6
0.00909 ETH
153841142022-08-21 13:00:38858 days ago1661086838
0x319Dd14f...E08b9fFE6
0.009 ETH
153841142022-08-21 13:00:38858 days ago1661086838
0x319Dd14f...E08b9fFE6
0.0201 ETH
150701262022-07-03 14:25:53907 days ago1656858353
0x319Dd14f...E08b9fFE6
0.00213 ETH
150701262022-07-03 14:25:53907 days ago1656858353
0x319Dd14f...E08b9fFE6
0.01017 ETH
150701262022-07-03 14:25:53907 days ago1656858353
0x319Dd14f...E08b9fFE6
0.009 ETH
150701262022-07-03 14:25:53907 days ago1656858353
0x319Dd14f...E08b9fFE6
0.0213 ETH
146456962022-04-24 5:48:12977 days ago1650779292
0x319Dd14f...E08b9fFE6
0.00149 ETH
146456962022-04-24 5:48:12977 days ago1650779292
0x319Dd14f...E08b9fFE6
0.00891 ETH
146456962022-04-24 5:48:12977 days ago1650779292
0x319Dd14f...E08b9fFE6
0.0045 ETH
146456962022-04-24 5:48:12977 days ago1650779292
0x319Dd14f...E08b9fFE6
0.0149 ETH
140535242022-01-22 5:25:221069 days ago1642829122
0x319Dd14f...E08b9fFE6
0.00081 ETH
140535242022-01-22 5:25:221069 days ago1642829122
0x319Dd14f...E08b9fFE6
0.00639 ETH
140535242022-01-22 5:25:221069 days ago1642829122
0x319Dd14f...E08b9fFE6
0.0009 ETH
140535242022-01-22 5:25:221069 days ago1642829122
0x319Dd14f...E08b9fFE6
0.0081 ETH
138334892021-12-19 4:46:051103 days ago1639889165
0x319Dd14f...E08b9fFE6
0.0009 ETH
138334892021-12-19 4:46:051103 days ago1639889165
0x319Dd14f...E08b9fFE6
0.0054 ETH
138334892021-12-19 4:46:051103 days ago1639889165
0x319Dd14f...E08b9fFE6
0.0027 ETH
138334892021-12-19 4:46:051103 days ago1639889165
0x319Dd14f...E08b9fFE6
0.009 ETH
138293142021-12-18 13:10:271104 days ago1639833027
0x319Dd14f...E08b9fFE6
0.00285 ETH
138293142021-12-18 13:10:271104 days ago1639833027
0x319Dd14f...E08b9fFE6
0.01215 ETH
138293142021-12-18 13:10:271104 days ago1639833027
0x319Dd14f...E08b9fFE6
0.0135 ETH
138293142021-12-18 13:10:271104 days ago1639833027
0x319Dd14f...E08b9fFE6
0.0285 ETH
133450052021-10-03 8:01:311180 days ago1633248091
0x319Dd14f...E08b9fFE6
0.00119 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Exchange

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Apache-2.0 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-02-17
*/

// File: @0x/contracts-utils/contracts/src/LibRichErrors.sol

/*

  Copyright 2019 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity ^0.5.9;
pragma experimental ABIEncoderV2;


library LibRichErrors {

    // bytes4(keccak256("Error(string)"))
    bytes4 internal constant STANDARD_ERROR_SELECTOR =
        0x08c379a0;

    // solhint-disable func-name-mixedcase
    /// @dev ABI encode a standard, string revert error payload.
    ///      This is the same payload that would be included by a `revert(string)`
    ///      solidity statement. It has the function signature `Error(string)`.
    /// @param message The error string.
    /// @return The ABI encoded error.
    function StandardError(
        string memory message
    )
        internal
        pure
        returns (bytes memory)
    {
        return abi.encodeWithSelector(
            STANDARD_ERROR_SELECTOR,
            bytes(message)
        );
    }
    // solhint-enable func-name-mixedcase

    /// @dev Reverts an encoded rich revert reason `errorData`.
    /// @param errorData ABI encoded error data.
    function rrevert(bytes memory errorData)
        internal
        pure
    {
        assembly {
            revert(add(errorData, 0x20), mload(errorData))
        }
    }
}

// File: @0x/contracts-utils/contracts/src/LibSafeMathRichErrors.sol

pragma solidity ^0.5.9;


library LibSafeMathRichErrors {

    // bytes4(keccak256("Uint256BinOpError(uint8,uint256,uint256)"))
    bytes4 internal constant UINT256_BINOP_ERROR_SELECTOR =
        0xe946c1bb;

    // bytes4(keccak256("Uint256DowncastError(uint8,uint256)"))
    bytes4 internal constant UINT256_DOWNCAST_ERROR_SELECTOR =
        0xc996af7b;

    enum BinOpErrorCodes {
        ADDITION_OVERFLOW,
        MULTIPLICATION_OVERFLOW,
        SUBTRACTION_UNDERFLOW,
        DIVISION_BY_ZERO
    }

    enum DowncastErrorCodes {
        VALUE_TOO_LARGE_TO_DOWNCAST_TO_UINT32,
        VALUE_TOO_LARGE_TO_DOWNCAST_TO_UINT64,
        VALUE_TOO_LARGE_TO_DOWNCAST_TO_UINT96
    }

    // solhint-disable func-name-mixedcase
    function Uint256BinOpError(
        BinOpErrorCodes errorCode,
        uint256 a,
        uint256 b
    )
        internal
        pure
        returns (bytes memory)
    {
        return abi.encodeWithSelector(
            UINT256_BINOP_ERROR_SELECTOR,
            errorCode,
            a,
            b
        );
    }

    function Uint256DowncastError(
        DowncastErrorCodes errorCode,
        uint256 a
    )
        internal
        pure
        returns (bytes memory)
    {
        return abi.encodeWithSelector(
            UINT256_DOWNCAST_ERROR_SELECTOR,
            errorCode,
            a
        );
    }
}

// File: @0x/contracts-utils/contracts/src/LibSafeMath.sol

pragma solidity ^0.5.9;


library LibSafeMath {

    function safeMul(uint256 a, uint256 b)
        internal
        pure
        returns (uint256)
    {
        if (a == 0) {
            return 0;
        }
        uint256 c = a * b;
        if (c / a != b) {
            LibRichErrors.rrevert(LibSafeMathRichErrors.Uint256BinOpError(
                LibSafeMathRichErrors.BinOpErrorCodes.MULTIPLICATION_OVERFLOW,
                a,
                b
            ));
        }
        return c;
    }

    function safeDiv(uint256 a, uint256 b)
        internal
        pure
        returns (uint256)
    {
        if (b == 0) {
            LibRichErrors.rrevert(LibSafeMathRichErrors.Uint256BinOpError(
                LibSafeMathRichErrors.BinOpErrorCodes.DIVISION_BY_ZERO,
                a,
                b
            ));
        }
        uint256 c = a / b;
        return c;
    }

    function safeSub(uint256 a, uint256 b)
        internal
        pure
        returns (uint256)
    {
        if (b > a) {
            LibRichErrors.rrevert(LibSafeMathRichErrors.Uint256BinOpError(
                LibSafeMathRichErrors.BinOpErrorCodes.SUBTRACTION_UNDERFLOW,
                a,
                b
            ));
        }
        return a - b;
    }

    function safeAdd(uint256 a, uint256 b)
        internal
        pure
        returns (uint256)
    {
        uint256 c = a + b;
        if (c < a) {
            LibRichErrors.rrevert(LibSafeMathRichErrors.Uint256BinOpError(
                LibSafeMathRichErrors.BinOpErrorCodes.ADDITION_OVERFLOW,
                a,
                b
            ));
        }
        return c;
    }

    function max256(uint256 a, uint256 b)
        internal
        pure
        returns (uint256)
    {
        return a >= b ? a : b;
    }

    function min256(uint256 a, uint256 b)
        internal
        pure
        returns (uint256)
    {
        return a < b ? a : b;
    }
}


// File: contracts/exchange/libs/LibMath.sol

/*
  Copyright 2018 ZeroEx Intl.
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/

pragma solidity 0.5.16;


contract LibMath  {
    using LibSafeMath for uint256;

    /// @dev Calculates partial value given a numerator and denominator rounded down.
    ///      Reverts if rounding error is >= 0.1%
    /// @param numerator Numerator.
    /// @param denominator Denominator.
    /// @param target Value to calculate partial of.
    /// @return Partial value of target rounded down.
    function safeGetPartialAmountFloor(
        uint256 numerator,
        uint256 denominator,
        uint256 target
    )
        internal
        pure
        returns (uint256 partialAmount)
    {
        require(
            denominator > 0,
            "DIVISION_BY_ZERO"
        );

        require(
            !isRoundingErrorFloor(
                numerator,
                denominator,
                target
            ),
            "ROUNDING_ERROR"
        );

        partialAmount = numerator.safeMul(target).safeDiv(denominator);
        return partialAmount;
    }

    /// @dev Calculates partial value given a numerator and denominator rounded down.
    ///      Reverts if rounding error is >= 0.1%
    /// @param numerator Numerator.
    /// @param denominator Denominator.
    /// @param target Value to calculate partial of.
    /// @return Partial value of target rounded up.
    function safeGetPartialAmountCeil(
        uint256 numerator,
        uint256 denominator,
        uint256 target
    )
        internal
        pure
        returns (uint256 partialAmount)
    {
        require(
            denominator > 0,
            "DIVISION_BY_ZERO"
        );

        require(
            !isRoundingErrorCeil(
                numerator,
                denominator,
                target
            ),
            "ROUNDING_ERROR"
        );

        // safeDiv computes `floor(a / b)`. We use the identity (a, b integer):
        //       ceil(a / b) = floor((a + b - 1) / b)
        // To implement `ceil(a / b)` using safeDiv.
        partialAmount = numerator.safeMul(target).safeAdd(denominator.safeSub(1)).safeDiv(denominator);
        return partialAmount;
    }

    /// @dev Calculates partial value given a numerator and denominator rounded down.
    /// @param numerator Numerator.
    /// @param denominator Denominator.
    /// @param target Value to calculate partial of.
    /// @return Partial value of target rounded down.
    function getPartialAmountFloor(
        uint256 numerator,
        uint256 denominator,
        uint256 target
    )
        internal
        pure
        returns (uint256 partialAmount)
    {
        require(
            denominator > 0,
            "DIVISION_BY_ZERO"
        );

        partialAmount = numerator.safeMul(target).safeDiv(denominator);
        return partialAmount;
    }

    /// @dev Calculates partial value given a numerator and denominator rounded down.
    /// @param numerator Numerator.
    /// @param denominator Denominator.
    /// @param target Value to calculate partial of.
    /// @return Partial value of target rounded up.
    function getPartialAmountCeil(
        uint256 numerator,
        uint256 denominator,
        uint256 target
    )
        internal
        pure
        returns (uint256 partialAmount)
    {
        require(
            denominator > 0,
            "DIVISION_BY_ZERO"
        );

        // safeDiv computes `floor(a / b)`. We use the identity (a, b integer):
        //       ceil(a / b) = floor((a + b - 1) / b)
        // To implement `ceil(a / b)` using safeDiv.
        partialAmount = numerator.safeMul(target).safeAdd(denominator.safeSub(1)).safeDiv(denominator);
        return partialAmount;
    }

    /// @dev Checks if rounding error >= 0.1% when rounding down.
    /// @param numerator Numerator.
    /// @param denominator Denominator.
    /// @param target Value to multiply with numerator/denominator.
    /// @return Rounding error is present.
    function isRoundingErrorFloor(
        uint256 numerator,
        uint256 denominator,
        uint256 target
    )
        internal
        pure
        returns (bool isError)
    {
        require(
            denominator > 0,
            "DIVISION_BY_ZERO"
        );

        // The absolute rounding error is the difference between the rounded
        // value and the ideal value. The relative rounding error is the
        // absolute rounding error divided by the absolute value of the
        // ideal value. This is undefined when the ideal value is zero.
        //
        // The ideal value is `numerator * target / denominator`.
        // Let's call `numerator * target % denominator` the remainder.
        // The absolute error is `remainder / denominator`.
        //
        // When the ideal value is zero, we require the absolute error to
        // be zero. Fortunately, this is always the case. The ideal value is
        // zero iff `numerator == 0` and/or `target == 0`. In this case the
        // remainder and absolute error are also zero.
        if (target == 0 || numerator == 0) {
            return false;
        }

        // Otherwise, we want the relative rounding error to be strictly
        // less than 0.1%.
        // The relative error is `remainder / (numerator * target)`.
        // We want the relative error less than 1 / 1000:
        //        remainder / (numerator * denominator)  <  1 / 1000
        // or equivalently:
        //        1000 * remainder  <  numerator * target
        // so we have a rounding error iff:
        //        1000 * remainder  >=  numerator * target
        uint256 remainder = mulmod(
            target,
            numerator,
            denominator
        );
        isError = remainder.safeMul(1000) >= numerator.safeMul(target);
        return isError;
    }

    /// @dev Checks if rounding error >= 0.1% when rounding up.
    /// @param numerator Numerator.
    /// @param denominator Denominator.
    /// @param target Value to multiply with numerator/denominator.
    /// @return Rounding error is present.
    function isRoundingErrorCeil(
        uint256 numerator,
        uint256 denominator,
        uint256 target
    )
        internal
        pure
        returns (bool isError)
    {
        require(
            denominator > 0,
            "DIVISION_BY_ZERO"
        );

        // See the comments in `isRoundingError`.
        if (target == 0 || numerator == 0) {
            // When either is zero, the ideal value and rounded value are zero
            // and there is no rounding error. (Although the relative error
            // is undefined.)
            return false;
        }
        // Compute remainder as before
        uint256 remainder = mulmod(
            target,
            numerator,
            denominator
        );
        remainder = denominator.safeSub(remainder) % denominator;
        isError = remainder.safeMul(1000) >= numerator.safeMul(target);
        return isError;
    }
}


// File: contracts/exchange/libs/LibFillResults.sol

/*
  Copyright 2018 ZeroEx Intl.
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/

pragma solidity 0.5.16;


contract LibFillResults {
    using LibSafeMath for uint256;

    struct FillResults {
        uint256 makerAssetFilledAmount;  // Total amount of makerAsset(s) filled.
        uint256 takerAssetFilledAmount;  // Total amount of takerAsset(s) filled.
        uint256 makerFeePaid;            // Total amount of ZRX paid by maker(s) to feeRecipient(s).
        uint256 takerFeePaid;            // Total amount of ZRX paid by taker to feeRecipients(s).
    }

    struct MatchedFillResults {
        FillResults left;                    // Amounts filled and fees paid of left order.
        FillResults right;                   // Amounts filled and fees paid of right order.
        uint256 leftMakerAssetSpreadAmount;  // Spread between price of left and right order, denominated in the left order's makerAsset, paid to taker.
    }

    /// @dev Adds properties of both FillResults instances.
    ///      Modifies the first FillResults instance specified.
    /// @param totalFillResults Fill results instance that will be added onto.
    /// @param singleFillResults Fill results instance that will be added to totalFillResults.
    function addFillResults(FillResults memory totalFillResults, FillResults memory singleFillResults)
        internal
        pure
    {
        totalFillResults.makerAssetFilledAmount = totalFillResults.makerAssetFilledAmount.safeAdd(singleFillResults.makerAssetFilledAmount);
        totalFillResults.takerAssetFilledAmount = totalFillResults.takerAssetFilledAmount.safeAdd(singleFillResults.takerAssetFilledAmount);
        totalFillResults.makerFeePaid = totalFillResults.makerFeePaid.safeAdd(singleFillResults.makerFeePaid);
        totalFillResults.takerFeePaid = totalFillResults.takerFeePaid.safeAdd(singleFillResults.takerFeePaid);
    }
}


// File: contracts/exchange/libs/LibEIP712.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract LibEIP712 {

    // EIP191 header for EIP712 prefix
    string constant internal EIP191_HEADER = "\x19\x01";

    // EIP712 Domain Name value
    string constant internal EIP712_DOMAIN_NAME = "0x Protocol";

    // EIP712 Domain Version value
    string constant internal EIP712_DOMAIN_VERSION = "2";

    // Hash of the EIP712 Domain Separator Schema
    bytes32 constant internal EIP712_DOMAIN_SEPARATOR_SCHEMA_HASH = keccak256(abi.encodePacked(
        "EIP712Domain(",
        "string name,",
        "string version,",
        "address verifyingContract",
        ")"
    ));

    // Hash of the EIP712 Domain Separator data
    // solhint-disable-next-line var-name-mixedcase
    bytes32 public EIP712_DOMAIN_HASH;

    constructor ()
        public
    {
        EIP712_DOMAIN_HASH = keccak256(abi.encodePacked(
            EIP712_DOMAIN_SEPARATOR_SCHEMA_HASH,
            keccak256(bytes(EIP712_DOMAIN_NAME)),
            keccak256(bytes(EIP712_DOMAIN_VERSION)),
            uint256(address(this))
        ));
    }

    /// @dev Calculates EIP712 encoding for a hash struct in this EIP712 Domain.
    /// @param hashStruct The EIP712 hash struct.
    /// @return EIP712 hash applied to this EIP712 Domain.
    function hashEIP712Message(bytes32 hashStruct)
        internal
        view
        returns (bytes32 result)
    {
        bytes32 eip712DomainHash = EIP712_DOMAIN_HASH;

        // Assembly for more efficient computing:
        // keccak256(abi.encodePacked(
        //     EIP191_HEADER,
        //     EIP712_DOMAIN_HASH,
        //     hashStruct
        // ));

        assembly {
            // Load free memory pointer
            let memPtr := mload(64)

            mstore(memPtr, 0x1901000000000000000000000000000000000000000000000000000000000000)  // EIP191 header
            mstore(add(memPtr, 2), eip712DomainHash)                                            // EIP712 domain hash
            mstore(add(memPtr, 34), hashStruct)                                                 // Hash of struct

            // Compute hash
            result := keccak256(memPtr, 66)
        }
        return result;
    }
}


// File: contracts/exchange/libs/LibOrder.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract LibOrder is
    LibEIP712
{
    // Hash for the EIP712 Order Schema
    bytes32 constant internal EIP712_ORDER_SCHEMA_HASH = keccak256(abi.encodePacked(
        "Order(",
        "address makerAddress,",
        "address takerAddress,",
        "address feeRecipientAddress,",
        "address senderAddress,",
        "uint256 makerAssetAmount,",
        "uint256 takerAssetAmount,",
        "uint256 makerFee,",
        "uint256 takerFee,",
        "uint256 expirationTimeSeconds,",
        "uint256 salt,",
        "bytes makerAssetData,",
        "bytes takerAssetData",
        ")"
    ));

    // A valid order remains fillable until it is expired, fully filled, or cancelled.
    // An order's state is unaffected by external factors, like account balances.
    enum OrderStatus {
        INVALID,                     // Default value
        INVALID_MAKER_ASSET_AMOUNT,  // Order does not have a valid maker asset amount
        INVALID_TAKER_ASSET_AMOUNT,  // Order does not have a valid taker asset amount
        FILLABLE,                    // Order is fillable
        EXPIRED,                     // Order has already expired
        FULLY_FILLED,                // Order is fully filled
        CANCELLED                    // Order has been cancelled
    }

    // solhint-disable max-line-length
    struct Order {
        address payable makerAddress;           // Address that created the order.      
        address payable takerAddress;           // Address that is allowed to fill the order. If set to 0, any address is allowed to fill the order.          
        address payable feeRecipientAddress;    // Address that will recieve fees when order is filled.      
        address senderAddress;          // Address that is allowed to call Exchange contract methods that affect this order. If set to 0, any address is allowed to call these methods.
        uint256 makerAssetAmount;       // Amount of makerAsset being offered by maker. Must be greater than 0.        
        uint256 takerAssetAmount;       // Amount of takerAsset being bid on by maker. Must be greater than 0.        
        uint256 makerFee;               // Amount of ZRX paid to feeRecipient by maker when order is filled. If set to 0, no transfer of ZRX from maker to feeRecipient will be attempted.
        uint256 takerFee;               // Amount of ZRX paid to feeRecipient by taker when order is filled. If set to 0, no transfer of ZRX from taker to feeRecipient will be attempted.
        uint256 expirationTimeSeconds;  // Timestamp in seconds at which order expires.          
        uint256 salt;                   // Arbitrary number to facilitate uniqueness of the order's hash.     
        bytes makerAssetData;           // Encoded data that can be decoded by a specified proxy contract when transferring makerAsset. The last byte references the id of this proxy.
        bytes takerAssetData;           // Encoded data that can be decoded by a specified proxy contract when transferring takerAsset. The last byte references the id of this proxy.
    }
    // solhint-enable max-line-length

    struct OrderInfo {
        uint8 orderStatus;                    // Status that describes order's validity and fillability.
        bytes32 orderHash;                    // EIP712 hash of the order (see LibOrder.getOrderHash).
        uint256 orderTakerAssetFilledAmount;  // Amount of order that has already been filled.
    }

    /// @dev Calculates Keccak-256 hash of the order.
    /// @param order The order structure.
    /// @return Keccak-256 EIP712 hash of the order.
    function getOrderHash(Order memory order)
        internal
        view
        returns (bytes32 orderHash)
    {
        orderHash = hashEIP712Message(hashOrder(order));
        return orderHash;
    }

    /// @dev Calculates EIP712 hash of the order.
    /// @param order The order structure.
    /// @return EIP712 hash of the order.
    function hashOrder(Order memory order)
        internal
        pure
        returns (bytes32 result)
    {
        bytes32 schemaHash = EIP712_ORDER_SCHEMA_HASH;
        bytes32 makerAssetDataHash = keccak256(order.makerAssetData);
        bytes32 takerAssetDataHash = keccak256(order.takerAssetData);

        // Assembly for more efficiently computing:
        // keccak256(abi.encodePacked(
        //     EIP712_ORDER_SCHEMA_HASH,
        //     bytes32(order.makerAddress),
        //     bytes32(order.takerAddress),
        //     bytes32(order.feeRecipientAddress),
        //     bytes32(order.senderAddress),
        //     order.makerAssetAmount,
        //     order.takerAssetAmount,
        //     order.makerFee,
        //     order.takerFee,
        //     order.expirationTimeSeconds,
        //     order.salt,
        //     keccak256(order.makerAssetData),
        //     keccak256(order.takerAssetData)
        // ));

        assembly {
            // Calculate memory addresses that will be swapped out before hashing
            let pos1 := sub(order, 32)
            let pos2 := add(order, 320)
            let pos3 := add(order, 352)

            // Backup
            let temp1 := mload(pos1)
            let temp2 := mload(pos2)
            let temp3 := mload(pos3)
            
            // Hash in place
            mstore(pos1, schemaHash)
            mstore(pos2, makerAssetDataHash)
            mstore(pos3, takerAssetDataHash)
            result := keccak256(pos1, 416)
            
            // Restore
            mstore(pos1, temp1)
            mstore(pos2, temp2)
            mstore(pos3, temp3)
        }
        return result;
    }
}


// File: contracts/exchange/interfaces/IExchangeCore.sol

/*

  Modified by Metaps Alpha Inc.

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract IExchangeCore {

    /// @dev Cancels all orders created by makerAddress with a salt less than or equal to the targetOrderEpoch
    ///      and senderAddress equal to msg.sender (or null address if msg.sender == makerAddress).
    /// @param targetOrderEpoch Orders created with a salt less or equal to this value will be cancelled.
    function cancelOrdersUpTo(uint256 targetOrderEpoch)
        external;

    /// @dev Fills the input order.
    /// @param order Order struct containing order specifications.
    /// @param takerAssetFillAmount Desired amount of takerAsset to sell.
    /// @param signature Proof that order has been created by maker.
    /// @return Amounts filled and fees paid by maker and taker.
    function fillOrder(
        LibOrder.Order memory order,
        uint256 takerAssetFillAmount,
        bytes memory signature
    )
        public
        payable
        returns (LibFillResults.FillResults memory fillResults);

    /// @dev After calling, the order can not be filled anymore.
    /// @param order Order struct containing order specifications.
    function cancelOrder(LibOrder.Order memory order)
        public;

    /// @dev Gets information about an order: status, hash, and amount filled.
    /// @param order Order to gather information on.
    /// @return OrderInfo Information about the order and its state.
    ///                   See LibOrder.OrderInfo for a complete description.
    function getOrderInfo(LibOrder.Order memory order)
        public
        view
        returns (LibOrder.OrderInfo memory orderInfo);

    /// @dev miime - Update order (Cancel order and then update deposit for new order).
    /// @param newOrderHash New orderHash for deposit.
    /// @param newOfferAmount New offer amount.
    /// @param orderToBeCanceled Order to be canceled.
    function updateOrder(
        bytes32 newOrderHash,
        uint256 newOfferAmount,
        LibOrder.Order memory orderToBeCanceled
    )
        public
        payable;
}


// File: contracts/exchange/mixins/MExchangeCore.sol

/*

  Modified by Metaps Alpha Inc.

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract MExchangeCore is
    IExchangeCore
{
    // Fill event is emitted whenever an order is filled.
    event Fill(
        address indexed makerAddress,         // Address that created the order.      
        address indexed feeRecipientAddress,  // Address that received fees.
        address takerAddress,                 // Address that filled the order.
        address senderAddress,                // Address that called the Exchange contract (msg.sender).
        uint256 makerAssetFilledAmount,       // Amount of makerAsset sold by maker and bought by taker. 
        uint256 takerAssetFilledAmount,       // Amount of takerAsset sold by taker and bought by maker.
        uint256 makerFeePaid,                 // Amount of ZRX paid to feeRecipient by maker.
        uint256 takerFeePaid,                 // Amount of ZRX paid to feeRecipient by taker.
        bytes32 indexed orderHash,            // EIP712 hash of order (see LibOrder.getOrderHash).
        bytes makerAssetData,                 // Encoded data specific to makerAsset. 
        bytes takerAssetData                  // Encoded data specific to takerAsset.
    );

    // Cancel event is emitted whenever an individual order is cancelled.
    event Cancel(
        address indexed makerAddress,         // Address that created the order.      
        address indexed feeRecipientAddress,  // Address that would have recieved fees if order was filled.   
        address senderAddress,                // Address that called the Exchange contract (msg.sender).
        bytes32 indexed orderHash,            // EIP712 hash of order (see LibOrder.getOrderHash).
        bytes makerAssetData,                 // Encoded data specific to makerAsset. 
        bytes takerAssetData                  // Encoded data specific to takerAsset.
    );

    // CancelUpTo event is emitted whenever `cancelOrdersUpTo` is executed succesfully.
    event CancelUpTo(
        address indexed makerAddress,         // Orders cancelled must have been created by this address.
        address indexed senderAddress,        // Orders cancelled must have a `senderAddress` equal to this address.
        uint256 orderEpoch                    // Orders with specified makerAddress and senderAddress with a salt less than this value are considered cancelled.
    );

    // miime: Transfer event is emitted whenever `transfer` is executed succesfully.
    event Transfer(
        address indexed toAddress,
        uint256 indexed amount
    );

    /// @dev Fills the input order.
    /// @param order Order struct containing order specifications.
    /// @param takerAssetFillAmount Desired amount of takerAsset to sell.
    /// @param signature Proof that order has been created by maker.
    /// @return Amounts filled and fees paid by maker and taker.
    function fillOrderInternal(
        LibOrder.Order memory order,
        uint256 takerAssetFillAmount,
        bytes memory signature
    )
        internal
        returns (LibFillResults.FillResults memory fillResults);

    /// @dev After calling, the order can not be filled anymore.
    /// @param order Order struct containing order specifications.
    function cancelOrderInternal(LibOrder.Order memory order)
        internal
        returns (LibOrder.OrderInfo memory);

    /// @dev Updates state with results of a fill order.
    /// @param order that was filled.
    /// @param takerAddress Address of taker who filled the order.
    /// @param orderTakerAssetFilledAmount Amount of order already filled.
    /// @return fillResults Amounts filled and fees paid by maker and taker.
    function updateFilledState(
        LibOrder.Order memory order,
        address takerAddress,
        bytes32 orderHash,
        uint256 orderTakerAssetFilledAmount,
        LibFillResults.FillResults memory fillResults
    )
        internal;

    /// @dev Updates state with results of cancelling an order.
    ///      State is only updated if the order is currently fillable.
    ///      Otherwise, updating state would have no effect.
    /// @param order that was cancelled.
    /// @param orderHash Hash of order that was cancelled.
    function updateCancelledState(
        LibOrder.Order memory order,
        bytes32 orderHash
    )
        internal;
    
    /// @dev Validates context for fillOrder. Succeeds or throws.
    /// @param order to be filled.
    /// @param orderInfo OrderStatus, orderHash, and amount already filled of order.
    /// @param takerAddress Address of order taker.
    /// @param signature Proof that the orders was created by its maker.
    function assertFillableOrder(
        LibOrder.Order memory order,
        LibOrder.OrderInfo memory orderInfo,
        address takerAddress,
        bytes memory signature
    )
        internal
        view;
    
    /// @dev Validates context for fillOrder. Succeeds or throws.
    /// @param order to be filled.
    /// @param orderInfo Status, orderHash, and amount already filled of order.
    /// @param takerAssetFillAmount Desired amount of order to fill by taker.
    /// @param takerAssetFilledAmount Amount of takerAsset that will be filled.
    /// @param makerAssetFilledAmount Amount of makerAsset that will be transfered.
    function assertValidFill(
        LibOrder.Order memory order,
        LibOrder.OrderInfo memory orderInfo,
        uint256 takerAssetFillAmount,
        uint256 takerAssetFilledAmount,
        uint256 makerAssetFilledAmount
    )
        internal
        view;

    /// @dev Validates context for cancelOrder. Succeeds or throws.
    /// @param order to be cancelled.
    /// @param orderInfo OrderStatus, orderHash, and amount already filled of order.
    function assertValidCancel(
        LibOrder.Order memory order,
        LibOrder.OrderInfo memory orderInfo
    )
        internal
        view;

    /// @dev Calculates amounts filled and fees paid by maker and taker.
    /// @param order to be filled.
    /// @param takerAssetFilledAmount Amount of takerAsset that will be filled.
    /// @return fillResults Amounts filled and fees paid by maker and taker.
    function calculateFillResults(
        LibOrder.Order memory order,
        uint256 takerAssetFilledAmount
    )
        internal
        pure
        returns (LibFillResults.FillResults memory fillResults);

}

// File: contracts/exchange/interfaces/ISignatureValidator.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract ISignatureValidator {

    /// @dev Approves a hash on-chain using any valid signature type.
    ///      After presigning a hash, the preSign signature type will become valid for that hash and signer.
    /// @param signerAddress Address that should have signed the given hash.
    /// @param signature Proof that the hash has been signed by signer.
    function preSign(
        bytes32 hash,
        address signerAddress,
        bytes calldata signature
    )
        external;
    
    /// @dev Approves/unnapproves a Validator contract to verify signatures on signer's behalf.
    /// @param validatorAddress Address of Validator contract.
    /// @param approval Approval or disapproval of  Validator contract.
    function setSignatureValidatorApproval(
        address validatorAddress,
        bool approval
    )
        external;

    /// @dev Verifies that a signature is valid.
    /// @param hash Message hash that is signed.
    /// @param signerAddress Address of signer.
    /// @param signature Proof of signing.
    /// @return Validity of order signature.
    function isValidSignature(
        bytes32 hash,
        address signerAddress,
        bytes memory signature
    )
        public
        view
        returns (bool isValid);
}

// File: contracts/exchange/mixins/MSignatureValidator.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract MSignatureValidator is
    ISignatureValidator
{
    event SignatureValidatorApproval(
        address indexed signerAddress,     // Address that approves or disapproves a contract to verify signatures.
        address indexed validatorAddress,  // Address of signature validator contract.
        bool approved                      // Approval or disapproval of validator contract.
    );

    // Allowed signature types.
    enum SignatureType {
        Illegal,         // 0x00, default value
        Invalid,         // 0x01
        EIP712,          // 0x02
        EthSign,         // 0x03
        Wallet,          // 0x04
        Validator,       // 0x05
        PreSigned,       // 0x06
        NSignatureTypes  // 0x07, number of signature types. Always leave at end.
    }

    /// @dev Verifies signature using logic defined by Wallet contract.
    /// @param hash Any 32 byte hash.
    /// @param walletAddress Address that should have signed the given hash
    ///                      and defines its own signature verification method.
    /// @param signature Proof that the hash has been signed by signer.
    /// @return True if the address recovered from the provided signature matches the input signer address.
    function isValidWalletSignature(
        bytes32 hash,
        address walletAddress,
        bytes memory signature
    )
        internal
        view
        returns (bool isValid);

    /// @dev Verifies signature using logic defined by Validator contract.
    /// @param validatorAddress Address of validator contract.
    /// @param hash Any 32 byte hash.
    /// @param signerAddress Address that should have signed the given hash.
    /// @param signature Proof that the hash has been signed by signer.
    /// @return True if the address recovered from the provided signature matches the input signer address.
    function isValidValidatorSignature(
        address validatorAddress,
        bytes32 hash,
        address signerAddress,
        bytes memory signature
    )
        internal
        view
        returns (bool isValid);
}

// File: contracts/exchange/interfaces/ITransactions.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/
pragma solidity 0.5.16;


contract ITransactions {

    /// @dev Executes an exchange method call in the context of signer.
    /// @param salt Arbitrary number to ensure uniqueness of transaction hash.
    /// @param signerAddress Address of transaction signer.
    /// @param data AbiV2 encoded calldata.
    /// @param signature Proof of signer transaction by signer.
    function executeTransaction(
        uint256 salt,
        address payable signerAddress,
        bytes calldata data,
        bytes calldata signature
    )
        external;
}

// File: contracts/exchange/mixins/MTransactions.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/
pragma solidity 0.5.16;


contract MTransactions is
    ITransactions
{
    // Hash for the EIP712 ZeroEx Transaction Schema
    bytes32 constant internal EIP712_ZEROEX_TRANSACTION_SCHEMA_HASH = keccak256(abi.encodePacked(
        "ZeroExTransaction(",
        "uint256 salt,",
        "address signerAddress,",
        "bytes data",
        ")"
    ));

    /// @dev Calculates EIP712 hash of the Transaction.
    /// @param salt Arbitrary number to ensure uniqueness of transaction hash.
    /// @param signerAddress Address of transaction signer.
    /// @param data AbiV2 encoded calldata.
    /// @return EIP712 hash of the Transaction.
    function hashZeroExTransaction(
        uint256 salt,
        address signerAddress,
        bytes memory data
    )
        internal
        pure
        returns (bytes32 result);

    /// @dev The current function will be called in the context of this address (either 0x transaction signer or `msg.sender`).
    ///      If calling a fill function, this address will represent the taker.
    ///      If calling a cancel function, this address will represent the maker.
    /// @return Signer of 0x transaction if entry point is `executeTransaction`.
    ///         `msg.sender` if entry point is any other function.
    function getCurrentContextAddress()
        internal
        view
        returns (address payable);
}

// File: contracts/exchange/interfaces/IAssetProxyDispatcher.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract IAssetProxyDispatcher {

    /// @dev Registers an asset proxy to its asset proxy id.
    ///      Once an asset proxy is registered, it cannot be unregistered.
    /// @param assetProxy Address of new asset proxy to register.
    function registerAssetProxy(address assetProxy)
        external;

    /// @dev Gets an asset proxy.
    /// @param assetProxyId Id of the asset proxy.
    /// @return The asset proxy registered to assetProxyId. Returns 0x0 if no proxy is registered.
    function getAssetProxy(bytes4 assetProxyId)
        external
        view
        returns (address);
}

// File: contracts/exchange/mixins/MAssetProxyDispatcher.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract MAssetProxyDispatcher is
    IAssetProxyDispatcher
{
    // Logs registration of new asset proxy
    event AssetProxyRegistered(
        bytes4 id,              // Id of new registered AssetProxy.
        address assetProxy      // Address of new registered AssetProxy.
    );

    /// @dev Forwards arguments to assetProxy and calls `transferFrom`. Either succeeds or throws.
    /// @param assetData Byte array encoded for the asset.
    /// @param from Address to transfer token from.
    /// @param to Address to transfer token to.
    /// @param amount Amount of token to transfer.
    function dispatchTransferFrom(
        bytes memory assetData,
        address from,
        address payable to,
        uint256 amount
    )
        internal;
}

// File: @0x/contracts-utils/contracts/src/LibReentrancyGuardRichErrors.sol

/*

  Copyright 2019 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity ^0.5.9;


library LibReentrancyGuardRichErrors {

    // bytes4(keccak256("IllegalReentrancyError()"))
    bytes internal constant ILLEGAL_REENTRANCY_ERROR_SELECTOR_BYTES =
        hex"0c3b823f";

    // solhint-disable func-name-mixedcase
    function IllegalReentrancyError()
        internal
        pure
        returns (bytes memory)
    {
        return ILLEGAL_REENTRANCY_ERROR_SELECTOR_BYTES;
    }
}

// File: @0x/contracts-utils/contracts/src/ReentrancyGuard.sol

/*

  Copyright 2019 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity ^0.5.9;


contract ReentrancyGuard {

    // Locked state of mutex.
    bool private _locked = false;

    /// @dev Functions with this modifer cannot be reentered. The mutex will be locked
    ///      before function execution and unlocked after.
    modifier nonReentrant() {
        _lockMutexOrThrowIfAlreadyLocked();
        _;
        _unlockMutex();
    }

    function _lockMutexOrThrowIfAlreadyLocked()
        internal
    {
        // Ensure mutex is unlocked.
        if (_locked) {
            LibRichErrors.rrevert(
                LibReentrancyGuardRichErrors.IllegalReentrancyError()
            );
        }
        // Lock mutex.
        _locked = true;
    }

    function _unlockMutex()
        internal
    {
        // Unlock mutex.
        _locked = false;
    }
}

// File: contracts/exchange/libs/Operational.sol

/*

  Copyright 2019 Metaps Alpha Inc.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract Operational
{
    address public owner;

    address[] public withdrawOperators; // It is mainly responsible for the withdraw of deposit on cancelling.
    mapping (address => bool) public isWithdrawOperator;

    address[] public depositOperators; // It is mainly responsible for the deposit / transfer on dutch auction buying.
    mapping (address => bool) public isDepositOperator;

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

    event WithdrawOperatorAdded(
        address indexed target,
        address indexed caller
    );

    event WithdrawOperatorRemoved(
        address indexed target,
        address indexed caller
    );

    event DepositOperatorAdded(
        address indexed target,
        address indexed caller
    );

    event DepositOperatorRemoved(
        address indexed target,
        address indexed caller
    );

    constructor ()
        public
    {
        owner = msg.sender;
    }

    modifier onlyOwner() {
        require(
            msg.sender == owner,
            "ONLY_CONTRACT_OWNER"
        );
        _;
    }

    modifier onlyDepositOperator() {
        require(
            isDepositOperator[msg.sender],
            "SENDER_IS_NOT_DEPOSIT_OPERATOR"
        );
        _;
    }

    modifier withdrawable(address toAddress) {
        require(
            isWithdrawOperator[msg.sender] || toAddress == msg.sender,
            "SENDER_IS_NOT_WITHDRAWABLE"
        );
        _;
    }

    function transferOwnership(address newOwner)
        public
        onlyOwner
    {
        require(
            newOwner != address(0),
            "INVALID_OWNER"
        );
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
    }

    function addWithdrawOperator(address target)
        external
        onlyOwner
    {
        require(
            !isWithdrawOperator[target],
            "TARGET_IS_ALREADY_WITHDRAW_OPERATOR"
        );

        isWithdrawOperator[target] = true;
        withdrawOperators.push(target);
        emit WithdrawOperatorAdded(target, msg.sender);
    }

    function removeWithdrawOperator(address target)
        external
        onlyOwner
    {
        require(
            isWithdrawOperator[target],
            "TARGET_IS_NOT_WITHDRAW_OPERATOR"
        );

        delete isWithdrawOperator[target];
        for (uint256 i = 0; i < withdrawOperators.length; i++) {
            if (withdrawOperators[i] == target) {
                withdrawOperators[i] = withdrawOperators[withdrawOperators.length - 1];
                withdrawOperators.length -= 1;
                break;
            }
        }
        emit WithdrawOperatorRemoved(target, msg.sender);
    }

    function addDepositOperator(address target)
        external
        onlyOwner
    {
        require(
            !isDepositOperator[target],
            "TARGET_IS_ALREADY_DEPOSIT_OPERATOR"
        );

        isDepositOperator[target] = true;
        depositOperators.push(target);
        emit DepositOperatorAdded(target, msg.sender);
    }

    function removeDepositOperator(address target)
        external
        onlyOwner
    {
        require(
            isDepositOperator[target],
            "TARGET_IS_NOT_DEPOSIT_OPERATOR"
        );

        delete isDepositOperator[target];
        for (uint256 i = 0; i < depositOperators.length; i++) {
            if (depositOperators[i] == target) {
                depositOperators[i] = depositOperators[depositOperators.length - 1];
                depositOperators.length -= 1;
                break;
            }
        }
        emit DepositOperatorRemoved(target, msg.sender);
    }
}

// File: contracts/exchange/libs/DepositManager.sol

/*

  Copyright 2019 Metaps Alpha Inc.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract DepositManager is
    Operational,
    ReentrancyGuard
{
    using LibSafeMath for uint256;

    // Mapping from user to deposit amount
    mapping (address => uint256) public depositAmount;
    // Mapping from order and user to deposit amount for withdraw
    mapping (bytes32 => mapping (address => uint256)) public orderToDepositAmount;

    // Deposit event is emitted whenever `deposit` is executed succesfully.
    event Deposit(
        bytes32 indexed orderHash,
        address indexed senderAddress,
        uint256 amount
    );

    // DepositChanged event is emitted whenever `updateOrder` is executed succesfully.
    event DepositChanged(
        bytes32 indexed newOrderHash,
        uint256 newAmount,
        bytes32 indexed oldOrderHash,
        uint256 oldAmount,
        address indexed senderAddress
    );

    // Withdraw event is emitted whenever `withdraw` (it may be called in `cancelOrder`) is executed succesfully.
    event Withdraw(
        bytes32 indexed orderHash,
        address indexed toAddress,
        uint256 amount
    );

    /// @dev Deposit for offer.
    /// @param orderHash orderHash of the order.
    function deposit(bytes32 orderHash)
        public
        payable
        nonReentrant
    {
        depositInternal(orderHash, msg.sender, msg.value);
    }

    /// @dev Withdraw deposit.
    /// @param orderHash orderHash of the order.
    /// @param toAddress Address to be refund.
    function withdraw(bytes32 orderHash, address payable toAddress)
        public
        nonReentrant
        withdrawable(toAddress)
    {
        withdrawInternal(orderHash, toAddress);
    }

    /// @dev Deposit by operator for dutch auction buying.
    /// @param orderHash orderHash of the order.
    /// @param toAddress Address of deposit target.
    function depositByOperator(bytes32 orderHash, address toAddress)
        public
        payable
        nonReentrant
        onlyDepositOperator
    {
        depositInternal(orderHash, toAddress, msg.value);
    }

    function depositInternal(bytes32 orderHash, address sender, uint256 amount)
        internal
    {
        depositAmount[sender] = depositAmount[sender].safeAdd(amount);
        orderToDepositAmount[orderHash][sender] = orderToDepositAmount[orderHash][sender].safeAdd(amount);
        emit Deposit(orderHash, sender, amount);
    }

    function withdrawInternal(bytes32 orderHash, address payable toAddress)
        internal
    {
        if (orderToDepositAmount[orderHash][toAddress] > 0) {
            uint256 amount = orderToDepositAmount[orderHash][toAddress];
            depositAmount[toAddress] = depositAmount[toAddress].safeSub(amount);
            delete orderToDepositAmount[orderHash][toAddress];
            toAddress.transfer(amount);
            emit Withdraw(orderHash, toAddress, amount);
        }
    }

    function changeDeposit(
        bytes32 newOrderHash,
        uint256 newOfferAmount,
        bytes32 oldOrderHash,
        uint256 oldOfferAmount,
        address payable sender
    )
        internal
    {
        if (msg.value > 0) {
            depositAmount[sender] = depositAmount[sender].safeAdd(msg.value);
            orderToDepositAmount[newOrderHash][sender] = orderToDepositAmount[newOrderHash][sender].safeAdd(msg.value);
        }
        uint256 oldOrderToDepositAmount = orderToDepositAmount[oldOrderHash][sender];
        moveDeposit(oldOrderHash, newOrderHash, sender);
        if (oldOrderToDepositAmount > newOfferAmount) {
            uint256 refundAmount = orderToDepositAmount[newOrderHash][sender].safeSub(newOfferAmount);
            orderToDepositAmount[newOrderHash][sender] = orderToDepositAmount[newOrderHash][sender].safeSub(refundAmount);
            depositAmount[sender] = depositAmount[sender].safeSub(refundAmount);
            sender.transfer(refundAmount);
        }
        emit DepositChanged(newOrderHash, newOfferAmount, oldOrderHash, oldOfferAmount, sender);
    }

    function moveDeposit(
        bytes32 fromOrderHash,
        bytes32 toOrderHash,
        address sender
    )
        internal
    {
        uint256 amount = orderToDepositAmount[fromOrderHash][sender];
        delete orderToDepositAmount[fromOrderHash][sender];
        orderToDepositAmount[toOrderHash][sender] = orderToDepositAmount[toOrderHash][sender].safeAdd(amount);
    }

    function deductOrderToDepositAmount(
        bytes32 orderHash,
        address target,
        uint256 amount
    )
        internal
    {
        orderToDepositAmount[orderHash][target] = orderToDepositAmount[orderHash][target].safeSub(amount);
    }
}

// File: contracts/exchange/libs/LibConstants.sol

/*

  Copyright 2019 Metaps Alpha Inc.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


// solhint-disable max-line-length
contract LibConstants {
    // miime - The special asset data for ETH
    // ETH_ASSET_DATA = bytes4(keccak256("ERC20Token(address)")); + 0 padding
    //                = 0xf47261b00000000000000000000000000000000000000000000000000000000000000000
    bytes constant public ETH_ASSET_DATA = "\xf4\x72\x61\xb0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00";
    bytes32 constant public KECCAK256_ETH_ASSET_DATA = keccak256(ETH_ASSET_DATA);
    uint256 constant public TRANSFER_GAS_LIMIT = 300000; // Gas limit for ETH sending
}
// solhint-enable max-line-length

// File: contracts/exchange/MixinExchangeCore.sol

/*

  Modified by Metaps Alpha Inc.

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract MixinExchangeCore is
    DepositManager,
    LibConstants,
    LibMath,
    LibOrder,
    LibFillResults,
    MAssetProxyDispatcher,
    MExchangeCore,
    MSignatureValidator,
    MTransactions
{
    // Mapping of orderHash => amount of takerAsset already bought by maker
    mapping (bytes32 => uint256) public filled;

    // Mapping of orderHash => cancelled
    mapping (bytes32 => bool) public cancelled;

    // Mapping of makerAddress => senderAddress => lowest salt an order can have in order to be fillable
    // Orders with specified senderAddress and with a salt less than their epoch are considered cancelled
    mapping (address => mapping (address => uint256)) public orderEpoch;

    /// @dev Cancels all orders created by makerAddress with a salt less than or equal to the targetOrderEpoch
    ///      and senderAddress equal to msg.sender (or null address if msg.sender == makerAddress).
    /// @param targetOrderEpoch Orders created with a salt less or equal to this value will be cancelled.
    function cancelOrdersUpTo(uint256 targetOrderEpoch)
        external
        nonReentrant
    {
        address makerAddress = getCurrentContextAddress();
        // If this function is called via `executeTransaction`, we only update the orderEpoch for the makerAddress/msg.sender combination.
        // This allows external filter contracts to add rules to how orders are cancelled via this function.
        address senderAddress = makerAddress == msg.sender ? address(0) : msg.sender;

        // orderEpoch is initialized to 0, so to cancelUpTo we need salt + 1
        uint256 newOrderEpoch = targetOrderEpoch + 1;
        uint256 oldOrderEpoch = orderEpoch[makerAddress][senderAddress];

        // Ensure orderEpoch is monotonically increasing
        require(
            newOrderEpoch > oldOrderEpoch,
            "INVALID_NEW_ORDER_EPOCH"
        );

        // Update orderEpoch
        orderEpoch[makerAddress][senderAddress] = newOrderEpoch;
        emit CancelUpTo(
            makerAddress,
            senderAddress,
            newOrderEpoch
        );
    }

    /// @dev Fills the input order.
    /// @param order Order struct containing order specifications.
    /// @param takerAssetFillAmount Desired amount of takerAsset to sell.
    /// @param signature Proof that order has been created by maker.
    /// @return Amounts filled and fees paid by maker and taker.
    function fillOrder(
        Order memory order,
        uint256 takerAssetFillAmount,
        bytes memory signature
    )
        public
        payable
        nonReentrant
        returns (FillResults memory fillResults)
    {
        fillResults = fillOrderInternal(
            order,
            takerAssetFillAmount,
            signature
        );
        return fillResults;
    }

    /// @dev After calling, the order can not be filled anymore.
    ///      Throws if order is invalid or sender does not have permission to cancel.
    /// @param order Order to cancel. Order must be OrderStatus.FILLABLE.
    function cancelOrder(Order memory order)
        public
        nonReentrant
    {
        OrderInfo memory orderInfo = cancelOrderInternal(order);
        withdrawInternal(orderInfo.orderHash, msg.sender);
    }

    /// @dev Gets information about an order: status, hash, and amount filled.
    /// @param order Order to gather information on.
    /// @return OrderInfo Information about the order and its state.
    ///         See LibOrder.OrderInfo for a complete description.
    function getOrderInfo(Order memory order)
        public
        view
        returns (OrderInfo memory orderInfo)
    {
        // Compute the order hash
        orderInfo.orderHash = getOrderHash(order);

        // Fetch filled amount
        orderInfo.orderTakerAssetFilledAmount = filled[orderInfo.orderHash];

        // If order.makerAssetAmount is zero, we also reject the order.
        // While the Exchange contract handles them correctly, they create
        // edge cases in the supporting infrastructure because they have
        // an 'infinite' price when computed by a simple division.
        if (order.makerAssetAmount == 0) {
            orderInfo.orderStatus = uint8(OrderStatus.INVALID_MAKER_ASSET_AMOUNT);
            return orderInfo;
        }

        // If order.takerAssetAmount is zero, then the order will always
        // be considered filled because 0 == takerAssetAmount == orderTakerAssetFilledAmount
        // Instead of distinguishing between unfilled and filled zero taker
        // amount orders, we choose not to support them.
        if (order.takerAssetAmount == 0) {
            orderInfo.orderStatus = uint8(OrderStatus.INVALID_TAKER_ASSET_AMOUNT);
            return orderInfo;
        }

        // Validate order availability
        if (orderInfo.orderTakerAssetFilledAmount >= order.takerAssetAmount) {
            orderInfo.orderStatus = uint8(OrderStatus.FULLY_FILLED);
            return orderInfo;
        }

        // Validate order expiration
        // solhint-disable-next-line not-rely-on-time
        if (block.timestamp >= order.expirationTimeSeconds) {
            orderInfo.orderStatus = uint8(OrderStatus.EXPIRED);
            return orderInfo;
        }

        // Check if order has been cancelled
        if (cancelled[orderInfo.orderHash]) {
            orderInfo.orderStatus = uint8(OrderStatus.CANCELLED);
            return orderInfo;
        }
        if (orderEpoch[order.makerAddress][order.senderAddress] > order.salt) {
            orderInfo.orderStatus = uint8(OrderStatus.CANCELLED);
            return orderInfo;
        }

        // All other statuses are ruled out: order is Fillable
        orderInfo.orderStatus = uint8(OrderStatus.FILLABLE);
        return orderInfo;
    }

    /// @dev miime - Cancel order and then update deposit for new order.
    /// @param newOrderHash New orderHash for deposit.
    /// @param newOfferAmount New offer amount.
    /// @param orderToBeCanceled Order to be canceled.
    function updateOrder(
        bytes32 newOrderHash,
        uint256 newOfferAmount,
        Order memory orderToBeCanceled
    )
        public
        payable
        nonReentrant
    {
        OrderInfo memory orderInfo = cancelOrderInternal(orderToBeCanceled);
        uint256 oldOfferAmount = orderToBeCanceled.makerAssetAmount.safeAdd(orderToBeCanceled.makerFee);
        changeDeposit(newOrderHash, newOfferAmount, orderInfo.orderHash, oldOfferAmount, msg.sender);
    }

    /// @dev Fills the input order.
    /// @param order Order struct containing order specifications.
    /// @param takerAssetFillAmount Desired amount of takerAsset to sell.
    /// @param signature Proof that order has been created by maker.
    /// @return Amounts filled and fees paid by maker and taker.
    function fillOrderInternal(
        Order memory order,
        uint256 takerAssetFillAmount,
        bytes memory signature
    )
        internal
        returns (FillResults memory fillResults)
    {
        // Fetch order info
        OrderInfo memory orderInfo = getOrderInfo(order);

        // Fetch taker address
        address payable takerAddress = getCurrentContextAddress();

        // miime: Deposit the sending ETH on buying
        // Hash calculation is expensive, so it is implemented here.
        if (msg.value > 0) {
            depositInternal(orderInfo.orderHash, takerAddress, msg.value);
        }

        // Assert that the order is fillable by taker
        assertFillableOrder(
            order,
            orderInfo,
            takerAddress,
            signature
        );

        // Get amount of takerAsset to fill
        uint256 remainingTakerAssetAmount = order.takerAssetAmount.safeSub(orderInfo.orderTakerAssetFilledAmount);
        uint256 takerAssetFilledAmount = LibSafeMath.min256(takerAssetFillAmount, remainingTakerAssetAmount);

        // Compute proportional fill amounts
        fillResults = calculateFillResults(order, takerAssetFilledAmount);

        // Validate context
        assertValidFill(
            order,
            orderInfo,
            takerAssetFillAmount,
            takerAssetFilledAmount,
            fillResults.makerAssetFilledAmount
        );

        // Update exchange internal state
        updateFilledState(
            order,
            takerAddress,
            orderInfo.orderHash,
            orderInfo.orderTakerAssetFilledAmount,
            fillResults
        );

        // Settle order
        settleOrder(
            order,
            takerAddress,
            fillResults
        );

        // miime: Deduct deposit of this order
        if (keccak256(order.makerAssetData) == KECCAK256_ETH_ASSET_DATA) {
            deductOrderToDepositAmount(
                orderInfo.orderHash,
                order.makerAddress,
                fillResults.makerAssetFilledAmount.safeAdd(fillResults.makerFeePaid)
            );
        }
        if (keccak256(order.takerAssetData) == KECCAK256_ETH_ASSET_DATA) {
            deductOrderToDepositAmount(
                orderInfo.orderHash,
                takerAddress,
                fillResults.takerAssetFilledAmount.safeAdd(fillResults.takerFeePaid)
            );
        }

        return fillResults;
    }

    /// @dev After calling, the order can not be filled anymore.
    ///      Throws if order is invalid or sender does not have permission to cancel.
    /// @param order Order to cancel. Order must be OrderStatus.FILLABLE.
    /// @return orderInfo
    function cancelOrderInternal(Order memory order)
        internal
        returns (OrderInfo memory)
    {
        // Fetch current order status
        OrderInfo memory orderInfo = getOrderInfo(order);

        // Validate context
        assertValidCancel(order, orderInfo);

        // Perform cancel
        updateCancelledState(order, orderInfo.orderHash);

        return orderInfo;
    }

    /// @dev Updates state with results of a fill order.
    /// @param order that was filled.
    /// @param takerAddress Address of taker who filled the order.
    /// @param orderTakerAssetFilledAmount Amount of order already filled.
    function updateFilledState(
        Order memory order,
        address takerAddress,
        bytes32 orderHash,
        uint256 orderTakerAssetFilledAmount,
        FillResults memory fillResults
    )
        internal
    {
        // Update state
        filled[orderHash] = orderTakerAssetFilledAmount.safeAdd(fillResults.takerAssetFilledAmount);

        // Log order
        emit Fill(
            order.makerAddress,
            order.feeRecipientAddress,
            takerAddress,
            msg.sender,
            fillResults.makerAssetFilledAmount,
            fillResults.takerAssetFilledAmount,
            fillResults.makerFeePaid,
            fillResults.takerFeePaid,
            orderHash,
            order.makerAssetData,
            order.takerAssetData
        );
    }

    /// @dev Updates state with results of cancelling an order.
    ///      State is only updated if the order is currently fillable.
    ///      Otherwise, updating state would have no effect.
    /// @param order that was cancelled.
    /// @param orderHash Hash of order that was cancelled.
    function updateCancelledState(
        Order memory order,
        bytes32 orderHash
    )
        internal
    {
        // Perform cancel
        cancelled[orderHash] = true;

        // Log cancel
        emit Cancel(
            order.makerAddress,
            order.feeRecipientAddress,
            msg.sender,
            orderHash,
            order.makerAssetData,
            order.takerAssetData
        );
    }

    /// @dev Validates context for fillOrder. Succeeds or throws.
    /// @param order to be filled.
    /// @param orderInfo OrderStatus, orderHash, and amount already filled of order.
    /// @param takerAddress Address of order taker.
    /// @param signature Proof that the orders was created by its maker.
    function assertFillableOrder(
        Order memory order,
        OrderInfo memory orderInfo,
        address takerAddress,
        bytes memory signature
    )
        internal
        view
    {
        // An order can only be filled if its status is FILLABLE.
        require(
            orderInfo.orderStatus == uint8(OrderStatus.FILLABLE),
            "ORDER_UNFILLABLE"
        );

        // Validate sender is allowed to fill this order
        if (order.senderAddress != address(0)) {
            require(
                order.senderAddress == msg.sender,
                "INVALID_SENDER"
            );
        }

        // Validate taker is allowed to fill this order
        if (order.takerAddress != address(0)) {
            require(
                order.takerAddress == takerAddress,
                "INVALID_TAKER"
            );
        }

        // Validate Maker signature (check only if first time seen)
        if (orderInfo.orderTakerAssetFilledAmount == 0) {
            require(
                isValidSignature(
                    orderInfo.orderHash,
                    order.makerAddress,
                    signature
                ),
                "INVALID_ORDER_SIGNATURE"
            );
        }
    }

    /// @dev Validates context for fillOrder. Succeeds or throws.
    /// @param order to be filled.
    /// @param orderInfo OrderStatus, orderHash, and amount already filled of order.
    /// @param takerAssetFillAmount Desired amount of order to fill by taker.
    /// @param takerAssetFilledAmount Amount of takerAsset that will be filled.
    /// @param makerAssetFilledAmount Amount of makerAsset that will be transfered.
    function assertValidFill(
        Order memory order,
        OrderInfo memory orderInfo,
        uint256 takerAssetFillAmount,  // TODO: use FillResults
        uint256 takerAssetFilledAmount,
        uint256 makerAssetFilledAmount
    )
        internal
        view
    {
        // Revert if fill amount is invalid
        // TODO: reconsider necessity for v2.1
        require(
            takerAssetFillAmount != 0,
            "INVALID_TAKER_AMOUNT"
        );

        // Make sure taker does not pay more than desired amount
        // NOTE: This assertion should never fail, it is here
        //       as an extra defence against potential bugs.
        require(
            takerAssetFilledAmount <= takerAssetFillAmount,
            "TAKER_OVERPAY"
        );

        // Make sure order is not overfilled
        // NOTE: This assertion should never fail, it is here
        //       as an extra defence against potential bugs.
        require(
            orderInfo.orderTakerAssetFilledAmount.safeAdd(takerAssetFilledAmount) <= order.takerAssetAmount,
            "ORDER_OVERFILL"
        );

        // Make sure order is filled at acceptable price.
        // The order has an implied price from the makers perspective:
        //    order price = order.makerAssetAmount / order.takerAssetAmount
        // i.e. the number of makerAsset maker is paying per takerAsset. The
        // maker is guaranteed to get this price or a better (lower) one. The
        // actual price maker is getting in this fill is:
        //    fill price = makerAssetFilledAmount / takerAssetFilledAmount
        // We need `fill price <= order price` for the fill to be fair to maker.
        // This amounts to:
        //     makerAssetFilledAmount        order.makerAssetAmount
        //    ------------------------  <=  -----------------------
        //     takerAssetFilledAmount        order.takerAssetAmount
        // or, equivalently:
        //     makerAssetFilledAmount * order.takerAssetAmount <=
        //     order.makerAssetAmount * takerAssetFilledAmount
        // NOTE: This assertion should never fail, it is here
        //       as an extra defence against potential bugs.
        require(
            makerAssetFilledAmount.safeMul(order.takerAssetAmount) <=
            order.makerAssetAmount.safeMul(takerAssetFilledAmount),
            "INVALID_FILL_PRICE"
        );
    }

    /// @dev Validates context for cancelOrder. Succeeds or throws.
    /// @param order to be cancelled.
    /// @param orderInfo OrderStatus, orderHash, and amount already filled of order.
    function assertValidCancel(
        Order memory order,
        OrderInfo memory orderInfo
    )
        internal
        view
    {
        // Ensure order is valid
        // An order can only be cancelled if its status is FILLABLE.
        require(
            orderInfo.orderStatus == uint8(OrderStatus.FILLABLE),
            "ORDER_UNFILLABLE"
        );

        // Validate sender is allowed to cancel this order
        if (order.senderAddress != address(0)) {
            require(
                order.senderAddress == msg.sender,
                "INVALID_SENDER"
            );
        }

        // Validate transaction signed by maker
        address makerAddress = getCurrentContextAddress();
        require(
            order.makerAddress == makerAddress,
            "INVALID_MAKER"
        );
    }

    /// @dev Calculates amounts filled and fees paid by maker and taker.
    /// @param order to be filled.
    /// @param takerAssetFilledAmount Amount of takerAsset that will be filled.
    /// @return fillResults Amounts filled and fees paid by maker and taker.
    function calculateFillResults(
        Order memory order,
        uint256 takerAssetFilledAmount
    )
        internal
        pure
        returns (FillResults memory fillResults)
    {
        // Compute proportional transfer amounts
        fillResults.takerAssetFilledAmount = takerAssetFilledAmount;
        fillResults.makerAssetFilledAmount = safeGetPartialAmountFloor(
            takerAssetFilledAmount,
            order.takerAssetAmount,
            order.makerAssetAmount
        );
        fillResults.makerFeePaid = safeGetPartialAmountFloor(
            fillResults.makerAssetFilledAmount,
            order.makerAssetAmount,
            order.makerFee
        );
        fillResults.takerFeePaid = safeGetPartialAmountFloor(
            takerAssetFilledAmount,
            order.takerAssetAmount,
            order.takerFee
        );

        return fillResults;
    }

    /// @dev Settles an order by transferring assets between counterparties.
    /// @param order Order struct containing order specifications.
    /// @param takerAddress Address selling takerAsset and buying makerAsset.
    /// @param fillResults Amounts to be filled and fees paid by maker and taker.
    function settleOrder(
        LibOrder.Order memory order,
        address payable takerAddress,
        LibFillResults.FillResults memory fillResults
    )
        private
    {
        bytes memory ethAssetData = ETH_ASSET_DATA;
        dispatchTransferFrom(
            order.makerAssetData,
            order.makerAddress,
            takerAddress,
            fillResults.makerAssetFilledAmount
        );
        dispatchTransferFrom(
            order.takerAssetData,
            takerAddress,
            order.makerAddress,
            fillResults.takerAssetFilledAmount
        );
        dispatchTransferFrom(
            ethAssetData,
            order.makerAddress,
            order.feeRecipientAddress,
            fillResults.makerFeePaid
        );
        dispatchTransferFrom(
            ethAssetData,
            takerAddress,
            order.feeRecipientAddress,
            fillResults.takerFeePaid
        );
    }
}

// File: @0x/contracts-utils/contracts/src/LibBytesRichErrors.sol

/*

  Copyright 2019 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity ^0.5.9;


library LibBytesRichErrors {

    enum InvalidByteOperationErrorCodes {
        FromLessThanOrEqualsToRequired,
        ToLessThanOrEqualsLengthRequired,
        LengthGreaterThanZeroRequired,
        LengthGreaterThanOrEqualsFourRequired,
        LengthGreaterThanOrEqualsTwentyRequired,
        LengthGreaterThanOrEqualsThirtyTwoRequired,
        LengthGreaterThanOrEqualsNestedBytesLengthRequired,
        DestinationLengthGreaterThanOrEqualSourceLengthRequired
    }

    // bytes4(keccak256("InvalidByteOperationError(uint8,uint256,uint256)"))
    bytes4 internal constant INVALID_BYTE_OPERATION_ERROR_SELECTOR =
        0x28006595;

    // solhint-disable func-name-mixedcase
    function InvalidByteOperationError(
        InvalidByteOperationErrorCodes errorCode,
        uint256 offset,
        uint256 required
    )
        internal
        pure
        returns (bytes memory)
    {
        return abi.encodeWithSelector(
            INVALID_BYTE_OPERATION_ERROR_SELECTOR,
            errorCode,
            offset,
            required
        );
    }
}

// File: @0x/contracts-utils/contracts/src/LibBytes.sol

/*

  Copyright 2019 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity ^0.5.9;


library LibBytes {

    using LibBytes for bytes;

    /// @dev Gets the memory address for a byte array.
    /// @param input Byte array to lookup.
    /// @return memoryAddress Memory address of byte array. This
    ///         points to the header of the byte array which contains
    ///         the length.
    function rawAddress(bytes memory input)
        internal
        pure
        returns (uint256 memoryAddress)
    {
        assembly {
            memoryAddress := input
        }
        return memoryAddress;
    }

    /// @dev Gets the memory address for the contents of a byte array.
    /// @param input Byte array to lookup.
    /// @return memoryAddress Memory address of the contents of the byte array.
    function contentAddress(bytes memory input)
        internal
        pure
        returns (uint256 memoryAddress)
    {
        assembly {
            memoryAddress := add(input, 32)
        }
        return memoryAddress;
    }

    /// @dev Copies `length` bytes from memory location `source` to `dest`.
    /// @param dest memory address to copy bytes to.
    /// @param source memory address to copy bytes from.
    /// @param length number of bytes to copy.
    function memCopy(
        uint256 dest,
        uint256 source,
        uint256 length
    )
        internal
        pure
    {
        if (length < 32) {
            // Handle a partial word by reading destination and masking
            // off the bits we are interested in.
            // This correctly handles overlap, zero lengths and source == dest
            assembly {
                let mask := sub(exp(256, sub(32, length)), 1)
                let s := and(mload(source), not(mask))
                let d := and(mload(dest), mask)
                mstore(dest, or(s, d))
            }
        } else {
            // Skip the O(length) loop when source == dest.
            if (source == dest) {
                return;
            }

            // For large copies we copy whole words at a time. The final
            // word is aligned to the end of the range (instead of after the
            // previous) to handle partial words. So a copy will look like this:
            //
            //  ####
            //      ####
            //          ####
            //            ####
            //
            // We handle overlap in the source and destination range by
            // changing the copying direction. This prevents us from
            // overwriting parts of source that we still need to copy.
            //
            // This correctly handles source == dest
            //
            if (source > dest) {
                assembly {
                    // We subtract 32 from `sEnd` and `dEnd` because it
                    // is easier to compare with in the loop, and these
                    // are also the addresses we need for copying the
                    // last bytes.
                    length := sub(length, 32)
                    let sEnd := add(source, length)
                    let dEnd := add(dest, length)

                    // Remember the last 32 bytes of source
                    // This needs to be done here and not after the loop
                    // because we may have overwritten the last bytes in
                    // source already due to overlap.
                    let last := mload(sEnd)

                    // Copy whole words front to back
                    // Note: the first check is always true,
                    // this could have been a do-while loop.
                    // solhint-disable-next-line no-empty-blocks
                    for {} lt(source, sEnd) {} {
                        mstore(dest, mload(source))
                        source := add(source, 32)
                        dest := add(dest, 32)
                    }

                    // Write the last 32 bytes
                    mstore(dEnd, last)
                }
            } else {
                assembly {
                    // We subtract 32 from `sEnd` and `dEnd` because those
                    // are the starting points when copying a word at the end.
                    length := sub(length, 32)
                    let sEnd := add(source, length)
                    let dEnd := add(dest, length)

                    // Remember the first 32 bytes of source
                    // This needs to be done here and not after the loop
                    // because we may have overwritten the first bytes in
                    // source already due to overlap.
                    let first := mload(source)

                    // Copy whole words back to front
                    // We use a signed comparisson here to allow dEnd to become
                    // negative (happens when source and dest < 32). Valid
                    // addresses in local memory will never be larger than
                    // 2**255, so they can be safely re-interpreted as signed.
                    // Note: the first check is always true,
                    // this could have been a do-while loop.
                    // solhint-disable-next-line no-empty-blocks
                    for {} slt(dest, dEnd) {} {
                        mstore(dEnd, mload(sEnd))
                        sEnd := sub(sEnd, 32)
                        dEnd := sub(dEnd, 32)
                    }

                    // Write the first 32 bytes
                    mstore(dest, first)
                }
            }
        }
    }

    /// @dev Returns a slices from a byte array.
    /// @param b The byte array to take a slice from.
    /// @param from The starting index for the slice (inclusive).
    /// @param to The final index for the slice (exclusive).
    /// @return result The slice containing bytes at indices [from, to)
    function slice(
        bytes memory b,
        uint256 from,
        uint256 to
    )
        internal
        pure
        returns (bytes memory result)
    {
        // Ensure that the from and to positions are valid positions for a slice within
        // the byte array that is being used.
        if (from > to) {
            LibRichErrors.rrevert(LibBytesRichErrors.InvalidByteOperationError(
                LibBytesRichErrors.InvalidByteOperationErrorCodes.FromLessThanOrEqualsToRequired,
                from,
                to
            ));
        }
        if (to > b.length) {
            LibRichErrors.rrevert(LibBytesRichErrors.InvalidByteOperationError(
                LibBytesRichErrors.InvalidByteOperationErrorCodes.ToLessThanOrEqualsLengthRequired,
                to,
                b.length
            ));
        }

        // Create a new bytes structure and copy contents
        result = new bytes(to - from);
        memCopy(
            result.contentAddress(),
            b.contentAddress() + from,
            result.length
        );
        return result;
    }

    /// @dev Returns a slice from a byte array without preserving the input.
    /// @param b The byte array to take a slice from. Will be destroyed in the process.
    /// @param from The starting index for the slice (inclusive).
    /// @param to The final index for the slice (exclusive).
    /// @return result The slice containing bytes at indices [from, to)
    /// @dev When `from == 0`, the original array will match the slice. In other cases its state will be corrupted.
    function sliceDestructive(
        bytes memory b,
        uint256 from,
        uint256 to
    )
        internal
        pure
        returns (bytes memory result)
    {
        // Ensure that the from and to positions are valid positions for a slice within
        // the byte array that is being used.
        if (from > to) {
            LibRichErrors.rrevert(LibBytesRichErrors.InvalidByteOperationError(
                LibBytesRichErrors.InvalidByteOperationErrorCodes.FromLessThanOrEqualsToRequired,
                from,
                to
            ));
        }
        if (to > b.length) {
            LibRichErrors.rrevert(LibBytesRichErrors.InvalidByteOperationError(
                LibBytesRichErrors.InvalidByteOperationErrorCodes.ToLessThanOrEqualsLengthRequired,
                to,
                b.length
            ));
        }

        // Create a new bytes structure around [from, to) in-place.
        assembly {
            result := add(b, from)
            mstore(result, sub(to, from))
        }
        return result;
    }

    /// @dev Pops the last byte off of a byte array by modifying its length.
    /// @param b Byte array that will be modified.
    /// @return The byte that was popped off.
    function popLastByte(bytes memory b)
        internal
        pure
        returns (bytes1 result)
    {
        if (b.length == 0) {
            LibRichErrors.rrevert(LibBytesRichErrors.InvalidByteOperationError(
                LibBytesRichErrors.InvalidByteOperationErrorCodes.LengthGreaterThanZeroRequired,
                b.length,
                0
            ));
        }

        // Store last byte.
        result = b[b.length - 1];

        assembly {
            // Decrement length of byte array.
            let newLen := sub(mload(b), 1)
            mstore(b, newLen)
        }
        return result;
    }

    /// @dev Tests equality of two byte arrays.
    /// @param lhs First byte array to compare.
    /// @param rhs Second byte array to compare.
    /// @return True if arrays are the same. False otherwise.
    function equals(
        bytes memory lhs,
        bytes memory rhs
    )
        internal
        pure
        returns (bool equal)
    {
        // Keccak gas cost is 30 + numWords * 6. This is a cheap way to compare.
        // We early exit on unequal lengths, but keccak would also correctly
        // handle this.
        return lhs.length == rhs.length && keccak256(lhs) == keccak256(rhs);
    }

    /// @dev Reads an address from a position in a byte array.
    /// @param b Byte array containing an address.
    /// @param index Index in byte array of address.
    /// @return address from byte array.
    function readAddress(
        bytes memory b,
        uint256 index
    )
        internal
        pure
        returns (address result)
    {
        if (b.length < index + 20) {
            LibRichErrors.rrevert(LibBytesRichErrors.InvalidByteOperationError(
                LibBytesRichErrors.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsTwentyRequired,
                b.length,
                index + 20 // 20 is length of address
            ));
        }

        // Add offset to index:
        // 1. Arrays are prefixed by 32-byte length parameter (add 32 to index)
        // 2. Account for size difference between address length and 32-byte storage word (subtract 12 from index)
        index += 20;

        // Read address from array memory
        assembly {
            // 1. Add index to address of bytes array
            // 2. Load 32-byte word from memory
            // 3. Apply 20-byte mask to obtain address
            result := and(mload(add(b, index)), 0xffffffffffffffffffffffffffffffffffffffff)
        }
        return result;
    }

    /// @dev Writes an address into a specific position in a byte array.
    /// @param b Byte array to insert address into.
    /// @param index Index in byte array of address.
    /// @param input Address to put into byte array.
    function writeAddress(
        bytes memory b,
        uint256 index,
        address input
    )
        internal
        pure
    {
        if (b.length < index + 20) {
            LibRichErrors.rrevert(LibBytesRichErrors.InvalidByteOperationError(
                LibBytesRichErrors.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsTwentyRequired,
                b.length,
                index + 20 // 20 is length of address
            ));
        }

        // Add offset to index:
        // 1. Arrays are prefixed by 32-byte length parameter (add 32 to index)
        // 2. Account for size difference between address length and 32-byte storage word (subtract 12 from index)
        index += 20;

        // Store address into array memory
        assembly {
            // The address occupies 20 bytes and mstore stores 32 bytes.
            // First fetch the 32-byte word where we'll be storing the address, then
            // apply a mask so we have only the bytes in the word that the address will not occupy.
            // Then combine these bytes with the address and store the 32 bytes back to memory with mstore.

            // 1. Add index to address of bytes array
            // 2. Load 32-byte word from memory
            // 3. Apply 12-byte mask to obtain extra bytes occupying word of memory where we'll store the address
            let neighbors := and(
                mload(add(b, index)),
                0xffffffffffffffffffffffff0000000000000000000000000000000000000000
            )

            // Make sure input address is clean.
            // (Solidity does not guarantee this)
            input := and(input, 0xffffffffffffffffffffffffffffffffffffffff)

            // Store the neighbors and address into memory
            mstore(add(b, index), xor(input, neighbors))
        }
    }

    /// @dev Reads a bytes32 value from a position in a byte array.
    /// @param b Byte array containing a bytes32 value.
    /// @param index Index in byte array of bytes32 value.
    /// @return bytes32 value from byte array.
    function readBytes32(
        bytes memory b,
        uint256 index
    )
        internal
        pure
        returns (bytes32 result)
    {
        if (b.length < index + 32) {
            LibRichErrors.rrevert(LibBytesRichErrors.InvalidByteOperationError(
                LibBytesRichErrors.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsThirtyTwoRequired,
                b.length,
                index + 32
            ));
        }

        // Arrays are prefixed by a 256 bit length parameter
        index += 32;

        // Read the bytes32 from array memory
        assembly {
            result := mload(add(b, index))
        }
        return result;
    }

    /// @dev Writes a bytes32 into a specific position in a byte array.
    /// @param b Byte array to insert <input> into.
    /// @param index Index in byte array of <input>.
    /// @param input bytes32 to put into byte array.
    function writeBytes32(
        bytes memory b,
        uint256 index,
        bytes32 input
    )
        internal
        pure
    {
        if (b.length < index + 32) {
            LibRichErrors.rrevert(LibBytesRichErrors.InvalidByteOperationError(
                LibBytesRichErrors.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsThirtyTwoRequired,
                b.length,
                index + 32
            ));
        }

        // Arrays are prefixed by a 256 bit length parameter
        index += 32;

        // Read the bytes32 from array memory
        assembly {
            mstore(add(b, index), input)
        }
    }

    /// @dev Reads a uint256 value from a position in a byte array.
    /// @param b Byte array containing a uint256 value.
    /// @param index Index in byte array of uint256 value.
    /// @return uint256 value from byte array.
    function readUint256(
        bytes memory b,
        uint256 index
    )
        internal
        pure
        returns (uint256 result)
    {
        result = uint256(readBytes32(b, index));
        return result;
    }

    /// @dev Writes a uint256 into a specific position in a byte array.
    /// @param b Byte array to insert <input> into.
    /// @param index Index in byte array of <input>.
    /// @param input uint256 to put into byte array.
    function writeUint256(
        bytes memory b,
        uint256 index,
        uint256 input
    )
        internal
        pure
    {
        writeBytes32(b, index, bytes32(input));
    }

    /// @dev Reads an unpadded bytes4 value from a position in a byte array.
    /// @param b Byte array containing a bytes4 value.
    /// @param index Index in byte array of bytes4 value.
    /// @return bytes4 value from byte array.
    function readBytes4(
        bytes memory b,
        uint256 index
    )
        internal
        pure
        returns (bytes4 result)
    {
        if (b.length < index + 4) {
            LibRichErrors.rrevert(LibBytesRichErrors.InvalidByteOperationError(
                LibBytesRichErrors.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsFourRequired,
                b.length,
                index + 4
            ));
        }

        // Arrays are prefixed by a 32 byte length field
        index += 32;

        // Read the bytes4 from array memory
        assembly {
            result := mload(add(b, index))
            // Solidity does not require us to clean the trailing bytes.
            // We do it anyway
            result := and(result, 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000)
        }
        return result;
    }

    /// @dev Writes a new length to a byte array.
    ///      Decreasing length will lead to removing the corresponding lower order bytes from the byte array.
    ///      Increasing length may lead to appending adjacent in-memory bytes to the end of the byte array.
    /// @param b Bytes array to write new length to.
    /// @param length New length of byte array.
    function writeLength(bytes memory b, uint256 length)
        internal
        pure
    {
        assembly {
            mstore(b, length)
        }
    }
}

// File: contracts/exchange/interfaces/IWallet.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract IWallet {

    /// @dev Verifies that a signature is valid.
    /// @param hash Message hash that is signed.
    /// @param signature Proof of signing.
    /// @return Magic bytes4 value if the signature is valid.
    ///         Magic value is bytes4(keccak256("isValidWalletSignature(bytes32,address,bytes)"))
    function isValidSignature(
        bytes32 hash,
        bytes calldata signature
    )
        external
        view
        returns (bytes4);
}

// File: contracts/exchange/interfaces/IValidator.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract IValidator {

    /// @dev Verifies that a signature is valid.
    /// @param hash Message hash that is signed.
    /// @param signerAddress Address that should have signed the given hash.
    /// @param signature Proof of signing.
    /// @return Magic bytes4 value if the signature is valid.
    ///         Magic value is bytes4(keccak256("isValidValidatorSignature(address,bytes32,address,bytes)"))
    function isValidSignature(
        bytes32 hash,
        address signerAddress,
        bytes calldata signature
    )
        external
        view
        returns (bytes4);
}

// File: contracts/exchange/MixinSignatureValidator.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract MixinSignatureValidator is
    ReentrancyGuard,
    MSignatureValidator,
    MTransactions
{
    using LibBytes for bytes;

    // Mapping of hash => signer => signed
    mapping (bytes32 => mapping (address => bool)) public preSigned;

    // Mapping of signer => validator => approved
    mapping (address => mapping (address => bool)) public allowedValidators;

    /// @dev Approves a hash on-chain using any valid signature type.
    ///      After presigning a hash, the preSign signature type will become valid for that hash and signer.
    /// @param signerAddress Address that should have signed the given hash.
    /// @param signature Proof that the hash has been signed by signer.
    function preSign(
        bytes32 hash,
        address signerAddress,
        bytes calldata signature
    )
        external
    {
        if (signerAddress != msg.sender) {
            require(
                isValidSignature(
                    hash,
                    signerAddress,
                    signature
                ),
                "INVALID_SIGNATURE"
            );
        }
        preSigned[hash][signerAddress] = true;
    }

    /// @dev Approves/unnapproves a Validator contract to verify signatures on signer's behalf.
    /// @param validatorAddress Address of Validator contract.
    /// @param approval Approval or disapproval of  Validator contract.
    function setSignatureValidatorApproval(
        address validatorAddress,
        bool approval
    )
        external
        nonReentrant
    {
        address signerAddress = getCurrentContextAddress();
        allowedValidators[signerAddress][validatorAddress] = approval;
        emit SignatureValidatorApproval(
            signerAddress,
            validatorAddress,
            approval
        );
    }

    /// @dev Verifies that a hash has been signed by the given signer.
    /// @param hash Any 32 byte hash.
    /// @param signerAddress Address that should have signed the given hash.
    /// @param signature Proof that the hash has been signed by signer.
    /// @return True if the address recovered from the provided signature matches the input signer address.
    function isValidSignature(
        bytes32 hash,
        address signerAddress,
        bytes memory signature
    )
        public
        view
        returns (bool isValid)
    {
        require(
            signature.length > 0,
            "LENGTH_GREATER_THAN_0_REQUIRED"
        );

        // Pop last byte off of signature byte array.
        uint8 signatureTypeRaw = uint8(signature.popLastByte());

        // Ensure signature is supported
        require(
            signatureTypeRaw < uint8(SignatureType.NSignatureTypes),
            "SIGNATURE_UNSUPPORTED"
        );

        SignatureType signatureType = SignatureType(signatureTypeRaw);

        // Variables are not scoped in Solidity.
        uint8 v;
        bytes32 r;
        bytes32 s;
        address recovered;

        // Always illegal signature.
        // This is always an implicit option since a signer can create a
        // signature array with invalid type or length. We may as well make
        // it an explicit option. This aids testing and analysis. It is
        // also the initialization value for the enum type.
        if (signatureType == SignatureType.Illegal) {
            revert("SIGNATURE_ILLEGAL");

        // Always invalid signature.
        // Like Illegal, this is always implicitly available and therefore
        // offered explicitly. It can be implicitly created by providing
        // a correctly formatted but incorrect signature.
        } else if (signatureType == SignatureType.Invalid) {
            require(
                signature.length == 0,
                "LENGTH_0_REQUIRED"
            );
            isValid = false;
            return isValid;

        // Signature using EIP712
        } else if (signatureType == SignatureType.EIP712) {
            require(
                signature.length == 65,
                "LENGTH_65_REQUIRED"
            );
            v = uint8(signature[0]);
            r = signature.readBytes32(1);
            s = signature.readBytes32(33);
            recovered = ecrecover(
                hash,
                v,
                r,
                s
            );
            isValid = signerAddress == recovered;
            return isValid;

        // Signed using web3.eth_sign
        } else if (signatureType == SignatureType.EthSign) {
            require(
                signature.length == 65,
                "LENGTH_65_REQUIRED"
            );
            v = uint8(signature[0]);
            r = signature.readBytes32(1);
            s = signature.readBytes32(33);
            recovered = ecrecover(
                keccak256(abi.encodePacked(
                    "\x19Ethereum Signed Message:\n32",
                    hash
                )),
                v,
                r,
                s
            );
            isValid = signerAddress == recovered;
            return isValid;

        // Signature verified by wallet contract.
        // If used with an order, the maker of the order is the wallet contract.
        } else if (signatureType == SignatureType.Wallet) {
            isValid = isValidWalletSignature(
                hash,
                signerAddress,
                signature
            );
            return isValid;

        // Signature verified by validator contract.
        // If used with an order, the maker of the order can still be an EOA.
        // A signature using this type should be encoded as:
        // | Offset   | Length | Contents                        |
        // | 0x00     | x      | Signature to validate           |
        // | 0x00 + x | 20     | Address of validator contract   |
        // | 0x14 + x | 1      | Signature type is always "\x06" |
        } else if (signatureType == SignatureType.Validator) {
            // Pop last 20 bytes off of signature byte array.
            uint256 signatureLength = signature.length;
            address validatorAddress = signature.readAddress(signatureLength - 20);

            // Ensure signer has approved validator.
            if (!allowedValidators[signerAddress][validatorAddress]) {
                return false;
            }
            isValid = isValidValidatorSignature(
                validatorAddress,
                hash,
                signerAddress,
                signature
            );
            return isValid;

        // Signer signed hash previously using the preSign function.
        } else if (signatureType == SignatureType.PreSigned) {
            isValid = preSigned[hash][signerAddress];
            return isValid;
        }

        // Anything else is illegal (We do not return false because
        // the signature may actually be valid, just not in a format
        // that we currently support. In this case returning false
        // may lead the caller to incorrectly believe that the
        // signature was invalid.)
        revert("SIGNATURE_UNSUPPORTED");
    }

    /// @dev Verifies signature using logic defined by Wallet contract. Wallet contract
    ///      must return `bytes4(keccak256("isValidWalletSignature(bytes32,address,bytes)"))`
    ///      miime:   or `bytes4(keccak256("isValidSignature(bytes32,bytes)"))`
    ///      miime:   or `bytes4(keccak256("isValidSignature(bytes,bytes)")`
    /// @param hash Any 32 byte hash.
    /// @param walletAddress Address that should have signed the given hash
    ///                      and defines its own signature verification method.
    /// @param signature Proof that the hash has been signed by signer.
    /// @return True if signature is valid for given wallet..
    function isValidWalletSignature(
        bytes32 hash,
        address walletAddress,
        bytes memory signature
    )
        internal
        view
        returns (bool isValid)
    {
        bytes memory callData = abi.encodeWithSelector(
            IWallet(walletAddress).isValidSignature.selector,
            hash,
            signature
        );
        // bytes4 0xb0671381
        bytes32 magicValue = bytes32(bytes4(keccak256("isValidWalletSignature(bytes32,address,bytes)")));
        // miime: bytes4 0x20c13b0b for EIP-1271
        bytes32 magicValueEIP1271 = bytes32(bytes4(keccak256("isValidSignature(bytes,bytes)")));
        // miime: bytes4 0x1626ba7e for Dapper contract wallet https://github.com/dapperlabs/dapper-contracts/blob/2ccb26e/contracts/ERC1271/ERC1271.sol#L6
        bytes32 magicValueEIP1271Old = bytes32(bytes4(keccak256("isValidSignature(bytes32,bytes)")));
        assembly {
            // extcodesize added as an extra safety measure
            if iszero(extcodesize(walletAddress)) {
                // Revert with `Error("WALLET_ERROR")`
                mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000)
                mstore(32, 0x0000002000000000000000000000000000000000000000000000000000000000)
                mstore(64, 0x0000000c57414c4c45545f4552524f5200000000000000000000000000000000)
                mstore(96, 0)
                revert(0, 100)
            }

            let cdStart := add(callData, 32)
            let success := staticcall(
                gas,              // forward all gas
                walletAddress,    // address of Wallet contract
                cdStart,          // pointer to start of input
                mload(callData),  // length of input
                cdStart,          // write output over input
                32                // output size is 32 bytes
            )

            if iszero(eq(returndatasize(), 32)) {
                // Revert with `Error("WALLET_ERROR")`
                mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000)
                mstore(32, 0x0000002000000000000000000000000000000000000000000000000000000000)
                mstore(64, 0x0000000c57414c4c45545f4552524f5200000000000000000000000000000000)
                mstore(96, 0)
                revert(0, 100)
            }

            switch success
            case 0 {
                // Revert with `Error("WALLET_ERROR")`
                mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000)
                mstore(32, 0x0000002000000000000000000000000000000000000000000000000000000000)
                mstore(64, 0x0000000c57414c4c45545f4552524f5200000000000000000000000000000000)
                mstore(96, 0)
                revert(0, 100)
            }
            case 1 {
                // miime: Added EIP1271
                // Signature is valid if call did not revert and returned true
                isValid := or(
                    eq(
                        and(mload(cdStart), 0xffffffff00000000000000000000000000000000000000000000000000000000),
                        and(magicValue, 0xffffffff00000000000000000000000000000000000000000000000000000000)
                    ),
                    or(
                        eq(
                            and(mload(cdStart), 0xffffffff00000000000000000000000000000000000000000000000000000000),
                            and(magicValueEIP1271, 0xffffffff00000000000000000000000000000000000000000000000000000000)
                        ),
                        eq(
                            and(mload(cdStart), 0xffffffff00000000000000000000000000000000000000000000000000000000),
                            and(magicValueEIP1271Old, 0xffffffff00000000000000000000000000000000000000000000000000000000)
                        )
                    )
                )
            }
        }
        return isValid;
    }

    /// @dev Verifies signature using logic defined by Validator contract.
    ///      Validator must return `bytes4(keccak256("isValidValidatorSignature(address,bytes32,address,bytes)"))`
    /// @param validatorAddress Address of validator contract.
    /// @param hash Any 32 byte hash.
    /// @param signerAddress Address that should have signed the given hash.
    /// @param signature Proof that the hash has been signed by signer.
    /// @return True if the address recovered from the provided signature matches the input signer address.
    function isValidValidatorSignature(
        address validatorAddress,
        bytes32 hash,
        address signerAddress,
        bytes memory signature
    )
        internal
        view
        returns (bool isValid)
    {
        bytes memory callData = abi.encodeWithSelector(
            IValidator(signerAddress).isValidSignature.selector,
            hash,
            signerAddress,
            signature
        );
        // bytes4 0x42b38674
        bytes32 magicValue = bytes32(bytes4(keccak256("isValidValidatorSignature(address,bytes32,address,bytes)")));
        assembly {
            // extcodesize added as an extra safety measure
            if iszero(extcodesize(validatorAddress)) {
                // Revert with `Error("VALIDATOR_ERROR")`
                mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000)
                mstore(32, 0x0000002000000000000000000000000000000000000000000000000000000000)
                mstore(64, 0x0000000f56414c494441544f525f4552524f5200000000000000000000000000)
                mstore(96, 0)
                revert(0, 100)
            }

            let cdStart := add(callData, 32)
            let success := staticcall(
                gas,               // forward all gas
                validatorAddress,  // address of Validator contract
                cdStart,           // pointer to start of input
                mload(callData),   // length of input
                cdStart,           // write output over input
                32                 // output size is 32 bytes
            )

            if iszero(eq(returndatasize(), 32)) {
                // Revert with `Error("VALIDATOR_ERROR")`
                mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000)
                mstore(32, 0x0000002000000000000000000000000000000000000000000000000000000000)
                mstore(64, 0x0000000f56414c494441544f525f4552524f5200000000000000000000000000)
                mstore(96, 0)
                revert(0, 100)
            }

            switch success
            case 0 {
                // Revert with `Error("VALIDATOR_ERROR")`
                mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000)
                mstore(32, 0x0000002000000000000000000000000000000000000000000000000000000000)
                mstore(64, 0x0000000f56414c494441544f525f4552524f5200000000000000000000000000)
                mstore(96, 0)
                revert(0, 100)
            }
            case 1 {
                // Signature is valid if call did not revert and returned true
                isValid := eq(
                    and(mload(cdStart), 0xffffffff00000000000000000000000000000000000000000000000000000000),
                    and(magicValue, 0xffffffff00000000000000000000000000000000000000000000000000000000)
                )
            }
        }
        return isValid;
    }
}

// File: contracts/exchange/MixinWrapperFunctions.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract MixinWrapperFunctions is
    ReentrancyGuard,
    LibMath,
    MExchangeCore
{
    /// @dev Synchronously cancels multiple orders in a single transaction.
    /// @param orders Array of order specifications.
    function batchCancelOrders(LibOrder.Order[] memory orders)
        public
        nonReentrant
    {
        uint256 ordersLength = orders.length;
        for (uint256 i = 0; i != ordersLength; i++) {
            cancelOrderInternal(orders[i]);
        }
    }

    /// @dev Fetches information for all passed in orders.
    /// @param orders Array of order specifications.
    /// @return Array of OrderInfo instances that correspond to each order.
    function getOrdersInfo(LibOrder.Order[] memory orders)
        public
        view
        returns (LibOrder.OrderInfo[] memory)
    {
        uint256 ordersLength = orders.length;
        LibOrder.OrderInfo[] memory ordersInfo = new LibOrder.OrderInfo[](ordersLength);
        for (uint256 i = 0; i != ordersLength; i++) {
            ordersInfo[i] = getOrderInfo(orders[i]);
        }
        return ordersInfo;
    }

}

// File: contracts/exchange/interfaces/IAssetProxy.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract IAssetProxy {
    /// @dev Transfers assets. Either succeeds or throws.
    /// @param assetData Byte array encoded for the respective asset proxy.
    /// @param from Address to transfer asset from.
    /// @param to Address to transfer asset to.
    /// @param amount Amount of asset to transfer.
    function transferFrom(
        bytes calldata assetData,
        address from,
        address to,
        uint256 amount
    )
        external;
    
    /// @dev Gets the proxy id associated with the proxy address.
    /// @return Proxy id.
    function getProxyId()
        external
        pure
        returns (bytes4);
}

// File: contracts/exchange/MixinAssetProxyDispatcher.sol

/*

  Modified by Metaps Alpha Inc.

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract MixinAssetProxyDispatcher is
    DepositManager,
    LibConstants,
    MAssetProxyDispatcher
{
    // Mapping from Asset Proxy Id's to their respective Asset Proxy
    mapping (bytes4 => address) public assetProxies;

    /// @dev Registers an asset proxy to its asset proxy id.
    ///      Once an asset proxy is registered, it cannot be unregistered.
    /// @param assetProxy Address of new asset proxy to register.
    function registerAssetProxy(address assetProxy)
        external
        onlyOwner
    {
        // Ensure that no asset proxy exists with current id.
        bytes4 assetProxyId = IAssetProxy(assetProxy).getProxyId();
        address currentAssetProxy = assetProxies[assetProxyId];
        require(
            currentAssetProxy == address(0),
            "ASSET_PROXY_ALREADY_EXISTS"
        );

        // Add asset proxy and log registration.
        assetProxies[assetProxyId] = assetProxy;
        emit AssetProxyRegistered(
            assetProxyId,
            assetProxy
        );
    }

    /// @dev Gets an asset proxy.
    /// @param assetProxyId Id of the asset proxy.
    /// @return The asset proxy registered to assetProxyId. Returns 0x0 if no proxy is registered.
    function getAssetProxy(bytes4 assetProxyId)
        external
        view
        returns (address)
    {
        return assetProxies[assetProxyId];
    }

    /// @dev Forwards arguments to assetProxy and calls `transferFrom`. Either succeeds or throws.
    /// @param assetData Byte array encoded for the asset.
    /// @param from Address to transfer token from.
    /// @param to Address to transfer token to.
    /// @param amount Amount of token to transfer.
    function dispatchTransferFrom(
        bytes memory assetData,
        address from,
        address payable to,
        uint256 amount
    )
        internal
    {
        // Do nothing if no amount should be transferred.
        if (amount > 0 && from != to) {
            // Ensure assetData length is valid
            require(
                assetData.length > 3,
                "LENGTH_GREATER_THAN_3_REQUIRED"
            );

            // miime - If assetData is for ETH, send ETH from deposit.
            if (keccak256(assetData) == KECCAK256_ETH_ASSET_DATA) {
                require(
                    depositAmount[from] >= amount,
                    "DEPOSIT_AMOUNT_IS_INSUFFICIENT"
                );
                uint256 afterBalance = depositAmount[from].safeSub(amount);
                depositAmount[from] = afterBalance;
                if (to != address(this)) {
                    (bool success, bytes memory _data) = to.call.gas(TRANSFER_GAS_LIMIT).value(amount)("");
                    require(success, "ETH_SENDING_FAILED");
                }
                return;
            }

            // Lookup assetProxy. We do not use `LibBytes.readBytes4` for gas efficiency reasons.
            bytes4 assetProxyId;
            assembly {
                assetProxyId := and(mload(
                    add(assetData, 32)),
                    0xFFFFFFFF00000000000000000000000000000000000000000000000000000000
                )
            }
            address assetProxy = assetProxies[assetProxyId];

            // Ensure that assetProxy exists
            require(
                assetProxy != address(0),
                "ASSET_PROXY_DOES_NOT_EXIST"
            );
            
            // We construct calldata for the `assetProxy.transferFrom` ABI.
            // The layout of this calldata is in the table below.
            // 
            // | Area     | Offset | Length  | Contents                                    |
            // | -------- |--------|---------|-------------------------------------------- |
            // | Header   | 0      | 4       | function selector                           |
            // | Params   |        | 4 * 32  | function parameters:                        |
            // |          | 4      |         |   1. offset to assetData (*)                |
            // |          | 36     |         |   2. from                                   |
            // |          | 68     |         |   3. to                                     |
            // |          | 100    |         |   4. amount                                 |
            // | Data     |        |         | assetData:                                  |
            // |          | 132    | 32      | assetData Length                            |
            // |          | 164    | **      | assetData Contents                          |

            assembly {
                /////// Setup State ///////
                // `cdStart` is the start of the calldata for `assetProxy.transferFrom` (equal to free memory ptr).
                let cdStart := mload(64)
                // `dataAreaLength` is the total number of words needed to store `assetData`
                //  As-per the ABI spec, this value is padded up to the nearest multiple of 32,
                //  and includes 32-bytes for length.
                let dataAreaLength := and(add(mload(assetData), 63), 0xFFFFFFFFFFFE0)
                // `cdEnd` is the end of the calldata for `assetProxy.transferFrom`.
                let cdEnd := add(cdStart, add(132, dataAreaLength))

                
                /////// Setup Header Area ///////
                // This area holds the 4-byte `transferFromSelector`.
                // bytes4(keccak256("transferFrom(bytes,address,address,uint256)")) = 0xa85e59e4
                mstore(cdStart, 0xa85e59e400000000000000000000000000000000000000000000000000000000)
                
                /////// Setup Params Area ///////
                // Each parameter is padded to 32-bytes. The entire Params Area is 128 bytes.
                // Notes:
                //   1. The offset to `assetData` is the length of the Params Area (128 bytes).
                //   2. A 20-byte mask is applied to addresses to zero-out the unused bytes.
                mstore(add(cdStart, 4), 128)
                mstore(add(cdStart, 36), and(from, 0xffffffffffffffffffffffffffffffffffffffff))
                mstore(add(cdStart, 68), and(to, 0xffffffffffffffffffffffffffffffffffffffff))
                mstore(add(cdStart, 100), amount)
                
                /////// Setup Data Area ///////
                // This area holds `assetData`.
                let dataArea := add(cdStart, 132)
                // solhint-disable-next-line no-empty-blocks
                for {} lt(dataArea, cdEnd) {} {
                    mstore(dataArea, mload(assetData))
                    dataArea := add(dataArea, 32)
                    assetData := add(assetData, 32)
                }

                /////// Call `assetProxy.transferFrom` using the constructed calldata ///////
                let success := call(
                    gas,                    // forward all gas
                    assetProxy,             // call address of asset proxy
                    0,                      // don't send any ETH
                    cdStart,                // pointer to start of input
                    sub(cdEnd, cdStart),    // length of input  
                    cdStart,                // write output over input
                    512                     // reserve 512 bytes for output
                )
                if iszero(success) {
                    revert(cdStart, returndatasize())
                }
            }
        }
    }
}

// File: contracts/exchange/MixinTransactions.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/
pragma solidity 0.5.16;


contract MixinTransactions is
    LibEIP712,
    MSignatureValidator,
    MTransactions
{
    // Mapping of transaction hash => executed
    // This prevents transactions from being executed more than once.
    mapping (bytes32 => bool) public transactions;

    // Address of current transaction signer
    address payable public currentContextAddress;

    /// @dev Executes an exchange method call in the context of signer.
    /// @param salt Arbitrary number to ensure uniqueness of transaction hash.
    /// @param signerAddress Address of transaction signer.
    /// @param data AbiV2 encoded calldata.
    /// @param signature Proof of signer transaction by signer.
    function executeTransaction(
        uint256 salt,
        address payable signerAddress,
        bytes calldata data,
        bytes calldata signature
    )
        external
    {
        // Prevent reentrancy
        require(
            currentContextAddress == address(0),
            "REENTRANCY_ILLEGAL"
        );

        bytes32 transactionHash = hashEIP712Message(hashZeroExTransaction(
            salt,
            signerAddress,
            data
        ));

        // Validate transaction has not been executed
        require(
            !transactions[transactionHash],
            "INVALID_TX_HASH"
        );

        // Transaction always valid if signer is sender of transaction
        if (signerAddress != msg.sender) {
            // Validate signature
            require(
                isValidSignature(
                    transactionHash,
                    signerAddress,
                    signature
                ),
                "INVALID_TX_SIGNATURE"
            );

            // Set the current transaction signer
            currentContextAddress = signerAddress;
        }

        // Execute transaction
        transactions[transactionHash] = true;
        (bool success,) = address(this).delegatecall(data);
        require(
            success,
            "FAILED_EXECUTION"
        );

        // Reset current transaction signer if it was previously updated
        if (signerAddress != msg.sender) {
            currentContextAddress = address(0);
        }
    }

    /// @dev Calculates EIP712 hash of the Transaction.
    /// @param salt Arbitrary number to ensure uniqueness of transaction hash.
    /// @param signerAddress Address of transaction signer.
    /// @param data AbiV2 encoded calldata.
    /// @return EIP712 hash of the Transaction.
    function hashZeroExTransaction(
        uint256 salt,
        address signerAddress,
        bytes memory data
    )
        internal
        pure
        returns (bytes32 result)
    {
        bytes32 schemaHash = EIP712_ZEROEX_TRANSACTION_SCHEMA_HASH;
        bytes32 dataHash = keccak256(data);

        // Assembly for more efficiently computing:
        // keccak256(abi.encodePacked(
        //     EIP712_ZEROEX_TRANSACTION_SCHEMA_HASH,
        //     salt,
        //     bytes32(signerAddress),
        //     keccak256(data)
        // ));

        assembly {
            // Load free memory pointer
            let memPtr := mload(64)

            mstore(memPtr, schemaHash)                                                               // hash of schema
            mstore(add(memPtr, 32), salt)                                                            // salt
            mstore(add(memPtr, 64), and(signerAddress, 0xffffffffffffffffffffffffffffffffffffffff))  // signerAddress
            mstore(add(memPtr, 96), dataHash)                                                        // hash of data

            // Compute hash
            result := keccak256(memPtr, 128)
        }
        return result;
    }

    /// @dev The current function will be called in the context of this address (either 0x transaction signer or `msg.sender`).
    ///      If calling a fill function, this address will represent the taker.
    ///      If calling a cancel function, this address will represent the maker.
    /// @return Signer of 0x transaction if entry point is `executeTransaction`.
    ///         `msg.sender` if entry point is any other function.
    function getCurrentContextAddress()
        internal
        view
        returns (address payable)
    {
        address payable currentContextAddress_ = currentContextAddress;
        address payable contextAddress = currentContextAddress_ == address(0) ? msg.sender : currentContextAddress_;
        return contextAddress;
    }
}

// File: contracts/exchange/interfaces/IMatchOrders.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/
pragma solidity 0.5.16;


contract IMatchOrders {

    /// @dev Match two complementary orders that have a profitable spread.
    ///      Each order is filled at their respective price point. However, the calculations are
    ///      carried out as though the orders are both being filled at the right order's price point.
    ///      The profit made by the left order goes to the taker (who matched the two orders).
    /// @param leftOrder First order to match.
    /// @param rightOrder Second order to match.
    /// @param leftSignature Proof that order was created by the left maker.
    /// @param rightSignature Proof that order was created by the right maker.
    /// @return matchedFillResults Amounts filled and fees paid by maker and taker of matched orders.
    function matchOrders(
        LibOrder.Order memory leftOrder,
        LibOrder.Order memory rightOrder,
        bytes memory leftSignature,
        bytes memory rightSignature
    )
        public
        returns (LibFillResults.MatchedFillResults memory matchedFillResults);
}

// File: contracts/exchange/mixins/MMatchOrders.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


contract MMatchOrders is
    IMatchOrders
{
    /// @dev Validates context for matchOrders. Succeeds or throws.
    /// @param leftOrder First order to match.
    /// @param rightOrder Second order to match.
    function assertValidMatch(
        LibOrder.Order memory leftOrder,
        LibOrder.Order memory rightOrder
    )
        internal
        pure;

    /// @dev Calculates fill amounts for the matched orders.
    ///      Each order is filled at their respective price point. However, the calculations are
    ///      carried out as though the orders are both being filled at the right order's price point.
    ///      The profit made by the leftOrder order goes to the taker (who matched the two orders).
    /// @param leftOrder First order to match.
    /// @param rightOrder Second order to match.
    /// @param leftOrderTakerAssetFilledAmount Amount of left order already filled.
    /// @param rightOrderTakerAssetFilledAmount Amount of right order already filled.
    /// @param matchedFillResults Amounts to fill and fees to pay by maker and taker of matched orders.
    function calculateMatchedFillResults(
        LibOrder.Order memory leftOrder,
        LibOrder.Order memory rightOrder,
        uint256 leftOrderTakerAssetFilledAmount,
        uint256 rightOrderTakerAssetFilledAmount
    )
        internal
        pure
        returns (LibFillResults.MatchedFillResults memory matchedFillResults);

}

// File: contracts/exchange/MixinMatchOrders.sol

/*
  Modified by Metaps Alpha Inc.

  Copyright 2018 ZeroEx Intl.
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/

pragma solidity 0.5.16;


contract MixinMatchOrders is
    DepositManager,
    LibConstants,
    LibMath,
    MAssetProxyDispatcher,
    MExchangeCore,
    MMatchOrders,
    MTransactions
{
    /// @dev Match two complementary orders that have a profitable spread.
    ///      Each order is filled at their respective price point. However, the calculations are
    ///      carried out as though the orders are both being filled at the right order's price point.
    ///      The profit made by the left order goes to the taker (who matched the two orders).
    /// @param leftOrder First order to match.
    /// @param rightOrder Second order to match.
    /// @param leftSignature Proof that order was created by the left maker.
    /// @param rightSignature Proof that order was created by the right maker.
    /// @return matchedFillResults Amounts filled and fees paid by maker and taker of matched orders.
    function matchOrders(
        LibOrder.Order memory leftOrder,
        LibOrder.Order memory rightOrder,
        bytes memory leftSignature,
        bytes memory rightSignature
    )
        public
        nonReentrant
        returns (LibFillResults.MatchedFillResults memory matchedFillResults)
    {
        // We assume that rightOrder.takerAssetData == leftOrder.makerAssetData and rightOrder.makerAssetData == leftOrder.takerAssetData.
        // If this assumption isn't true, the match will fail at signature validation.
        rightOrder.makerAssetData = leftOrder.takerAssetData;
        rightOrder.takerAssetData = leftOrder.makerAssetData;

        // Get left & right order info
        LibOrder.OrderInfo memory leftOrderInfo = getOrderInfo(leftOrder);
        LibOrder.OrderInfo memory rightOrderInfo = getOrderInfo(rightOrder);

        // Fetch taker address
        address payable takerAddress = getCurrentContextAddress();
        
        // Either our context is valid or we revert
        assertFillableOrder(
            leftOrder,
            leftOrderInfo,
            takerAddress,
            leftSignature
        );
        assertFillableOrder(
            rightOrder,
            rightOrderInfo,
            takerAddress,
            rightSignature
        );
        assertValidMatch(leftOrder, rightOrder);

        // Compute proportional fill amounts
        matchedFillResults = calculateMatchedFillResults(
            leftOrder,
            rightOrder,
            leftOrderInfo.orderTakerAssetFilledAmount,
            rightOrderInfo.orderTakerAssetFilledAmount
        );

        // Validate fill contexts
        assertValidFill(
            leftOrder,
            leftOrderInfo,
            matchedFillResults.left.takerAssetFilledAmount,
            matchedFillResults.left.takerAssetFilledAmount,
            matchedFillResults.left.makerAssetFilledAmount
        );
        assertValidFill(
            rightOrder,
            rightOrderInfo,
            matchedFillResults.right.takerAssetFilledAmount,
            matchedFillResults.right.takerAssetFilledAmount,
            matchedFillResults.right.makerAssetFilledAmount
        );
        
        // Update exchange state
        updateFilledState(
            leftOrder,
            takerAddress,
            leftOrderInfo.orderHash,
            leftOrderInfo.orderTakerAssetFilledAmount,
            matchedFillResults.left
        );
        updateFilledState(
            rightOrder,
            takerAddress,
            rightOrderInfo.orderHash,
            rightOrderInfo.orderTakerAssetFilledAmount,
            matchedFillResults.right
        );

        // Settle matched orders. Succeeds or throws.
        settleMatchedOrders(
            leftOrder,
            rightOrder,
            takerAddress,
            matchedFillResults
        );

        // miime: Deduct deposit of this order
        if (keccak256(leftOrder.makerAssetData) == KECCAK256_ETH_ASSET_DATA) {
            deductOrderToDepositAmount(
                leftOrderInfo.orderHash,
                leftOrder.makerAddress,
                matchedFillResults.right.takerAssetFilledAmount.safeAdd(matchedFillResults.leftMakerAssetSpreadAmount).safeAdd(matchedFillResults.left.makerFeePaid)
            );
        }
        if (keccak256(rightOrder.makerAssetData) == KECCAK256_ETH_ASSET_DATA) {
            deductOrderToDepositAmount(
                rightOrderInfo.orderHash,
                rightOrder.makerAddress,
                matchedFillResults.left.takerAssetFilledAmount.safeAdd(matchedFillResults.right.makerFeePaid)
            );
        }
        if (keccak256(leftOrder.takerAssetData) == KECCAK256_ETH_ASSET_DATA) {
            deductOrderToDepositAmount(
                leftOrderInfo.orderHash,
                takerAddress,
                matchedFillResults.left.takerFeePaid
            );
        }
        if (keccak256(rightOrder.takerAssetData) == KECCAK256_ETH_ASSET_DATA) {
            deductOrderToDepositAmount(
                rightOrderInfo.orderHash,
                takerAddress,
                matchedFillResults.right.takerFeePaid
            );
        }

        return matchedFillResults;
    }

    /// @dev Validates context for matchOrders. Succeeds or throws.
    /// @param leftOrder First order to match.
    /// @param rightOrder Second order to match.
    function assertValidMatch(
        LibOrder.Order memory leftOrder,
        LibOrder.Order memory rightOrder
    )
        internal
        pure
    {
        // Make sure there is a profitable spread.
        // There is a profitable spread iff the cost per unit bought (OrderA.MakerAmount/OrderA.TakerAmount) for each order is greater
        // than the profit per unit sold of the matched order (OrderB.TakerAmount/OrderB.MakerAmount).
        // This is satisfied by the equations below:
        // <leftOrder.makerAssetAmount> / <leftOrder.takerAssetAmount> >= <rightOrder.takerAssetAmount> / <rightOrder.makerAssetAmount>
        // AND
        // <rightOrder.makerAssetAmount> / <rightOrder.takerAssetAmount> >= <leftOrder.takerAssetAmount> / <leftOrder.makerAssetAmount>
        // These equations can be combined to get the following:
        require(
            leftOrder.makerAssetAmount.safeMul(rightOrder.makerAssetAmount) >=
            leftOrder.takerAssetAmount.safeMul(rightOrder.takerAssetAmount),
            "NEGATIVE_SPREAD_REQUIRED"
        );
    }

    /// @dev Calculates fill amounts for the matched orders.
    ///      Each order is filled at their respective price point. However, the calculations are
    ///      carried out as though the orders are both being filled at the right order's price point.
    ///      The profit made by the leftOrder order goes to the taker (who matched the two orders).
    /// @param leftOrder First order to match.
    /// @param rightOrder Second order to match.
    /// @param leftOrderTakerAssetFilledAmount Amount of left order already filled.
    /// @param rightOrderTakerAssetFilledAmount Amount of right order already filled.
    /// @param matchedFillResults Amounts to fill and fees to pay by maker and taker of matched orders.
    function calculateMatchedFillResults(
        LibOrder.Order memory leftOrder,
        LibOrder.Order memory rightOrder,
        uint256 leftOrderTakerAssetFilledAmount,
        uint256 rightOrderTakerAssetFilledAmount
    )
        internal
        pure
        returns (LibFillResults.MatchedFillResults memory matchedFillResults)
    {
        // Derive maker asset amounts for left & right orders, given store taker assert amounts
        uint256 leftTakerAssetAmountRemaining = leftOrder.takerAssetAmount.safeSub(leftOrderTakerAssetFilledAmount);
        uint256 leftMakerAssetAmountRemaining = safeGetPartialAmountFloor(
            leftOrder.makerAssetAmount,
            leftOrder.takerAssetAmount,
            leftTakerAssetAmountRemaining
        );
        uint256 rightTakerAssetAmountRemaining = rightOrder.takerAssetAmount.safeSub(rightOrderTakerAssetFilledAmount);
        uint256 rightMakerAssetAmountRemaining = safeGetPartialAmountFloor(
            rightOrder.makerAssetAmount,
            rightOrder.takerAssetAmount,
            rightTakerAssetAmountRemaining
        );

        // Calculate fill results for maker and taker assets: at least one order will be fully filled.
        // The maximum amount the left maker can buy is `leftTakerAssetAmountRemaining`
        // The maximum amount the right maker can sell is `rightMakerAssetAmountRemaining`
        // We have two distinct cases for calculating the fill results:
        // Case 1.
        //   If the left maker can buy more than the right maker can sell, then only the right order is fully filled.
        //   If the left maker can buy exactly what the right maker can sell, then both orders are fully filled.
        // Case 2.
        //   If the left maker cannot buy more than the right maker can sell, then only the left order is fully filled.
        if (leftTakerAssetAmountRemaining >= rightMakerAssetAmountRemaining) {
            // Case 1: Right order is fully filled
            matchedFillResults.right.makerAssetFilledAmount = rightMakerAssetAmountRemaining;
            matchedFillResults.right.takerAssetFilledAmount = rightTakerAssetAmountRemaining;
            matchedFillResults.left.takerAssetFilledAmount = matchedFillResults.right.makerAssetFilledAmount;
            // Round down to ensure the maker's exchange rate does not exceed the price specified by the order. 
            // We favor the maker when the exchange rate must be rounded.
            matchedFillResults.left.makerAssetFilledAmount = safeGetPartialAmountFloor(
                leftOrder.makerAssetAmount,
                leftOrder.takerAssetAmount,
                matchedFillResults.left.takerAssetFilledAmount
            );
        } else {
            // Case 2: Left order is fully filled
            matchedFillResults.left.makerAssetFilledAmount = leftMakerAssetAmountRemaining;
            matchedFillResults.left.takerAssetFilledAmount = leftTakerAssetAmountRemaining;
            matchedFillResults.right.makerAssetFilledAmount = matchedFillResults.left.takerAssetFilledAmount;
            // Round up to ensure the maker's exchange rate does not exceed the price specified by the order.
            // We favor the maker when the exchange rate must be rounded.
            matchedFillResults.right.takerAssetFilledAmount = safeGetPartialAmountCeil(
                rightOrder.takerAssetAmount,
                rightOrder.makerAssetAmount,
                matchedFillResults.right.makerAssetFilledAmount
            );
        }

        // Calculate amount given to taker
        matchedFillResults.leftMakerAssetSpreadAmount = matchedFillResults.left.makerAssetFilledAmount.safeSub(
            matchedFillResults.right.takerAssetFilledAmount
        );

        // Compute fees for left order
        matchedFillResults.left.makerFeePaid = safeGetPartialAmountFloor(
            matchedFillResults.left.makerAssetFilledAmount,
            leftOrder.makerAssetAmount,
            leftOrder.makerFee
        );
        matchedFillResults.left.takerFeePaid = safeGetPartialAmountFloor(
            matchedFillResults.left.takerAssetFilledAmount,
            leftOrder.takerAssetAmount,
            leftOrder.takerFee
        );

        // Compute fees for right order
        matchedFillResults.right.makerFeePaid = safeGetPartialAmountFloor(
            matchedFillResults.right.makerAssetFilledAmount,
            rightOrder.makerAssetAmount,
            rightOrder.makerFee
        );
        matchedFillResults.right.takerFeePaid = safeGetPartialAmountFloor(
            matchedFillResults.right.takerAssetFilledAmount,
            rightOrder.takerAssetAmount,
            rightOrder.takerFee
        );

        // Return fill results
        return matchedFillResults;
    }

    /// @dev Settles matched order by transferring appropriate funds between order makers, taker, and fee recipient.
    /// @param leftOrder First matched order.
    /// @param rightOrder Second matched order.
    /// @param takerAddress Address that matched the orders. The taker receives the spread between orders as profit.
    /// @param matchedFillResults Struct holding amounts to transfer between makers, taker, and fee recipients.
    function settleMatchedOrders(
        LibOrder.Order memory leftOrder,
        LibOrder.Order memory rightOrder,
        address payable takerAddress,
        LibFillResults.MatchedFillResults memory matchedFillResults
    )
        private
    {
        bytes memory ethAssetData = ETH_ASSET_DATA;

        // Order makers and taker
        dispatchTransferFrom(
            leftOrder.makerAssetData,
            leftOrder.makerAddress,
            rightOrder.makerAddress,
            matchedFillResults.right.takerAssetFilledAmount
        );
        dispatchTransferFrom(
            rightOrder.makerAssetData,
            rightOrder.makerAddress,
            leftOrder.makerAddress,
            matchedFillResults.left.takerAssetFilledAmount
        );
        dispatchTransferFrom(
            leftOrder.makerAssetData,
            leftOrder.makerAddress,
            takerAddress,
            matchedFillResults.leftMakerAssetSpreadAmount
        );

        // Maker fees
        dispatchTransferFrom(
            ethAssetData,
            leftOrder.makerAddress,
            leftOrder.feeRecipientAddress,
            matchedFillResults.left.makerFeePaid
        );
        dispatchTransferFrom(
            ethAssetData,
            rightOrder.makerAddress,
            rightOrder.feeRecipientAddress,
            matchedFillResults.right.makerFeePaid
        );

        // Taker fees
        if (leftOrder.feeRecipientAddress == rightOrder.feeRecipientAddress) {
            dispatchTransferFrom(
                ethAssetData,
                takerAddress,
                leftOrder.feeRecipientAddress,
                matchedFillResults.left.takerFeePaid.safeAdd(
                    matchedFillResults.right.takerFeePaid
                )
            );
        } else {
            dispatchTransferFrom(
                ethAssetData,
                takerAddress,
                leftOrder.feeRecipientAddress,
                matchedFillResults.left.takerFeePaid
            );
            dispatchTransferFrom(
                ethAssetData,
                takerAddress,
                rightOrder.feeRecipientAddress,
                matchedFillResults.right.takerFeePaid
            );
        }
    }
}

// File: contracts/exchange/Exchange.sol

/*

  Modified by Metaps Alpha Inc.

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.5.16;


// solhint-disable no-empty-blocks
contract Exchange is
    MixinExchangeCore,
    MixinMatchOrders,
    MixinSignatureValidator,
    MixinTransactions,
    MixinWrapperFunctions,
    MixinAssetProxyDispatcher
{
    string constant public VERSION = "2.1.0-alpha-miime";

    // Mixins are instantiated in the order they are inherited
    constructor ()
        public
        MixinExchangeCore()
        MixinMatchOrders()
        MixinSignatureValidator()
        MixinTransactions()
        MixinAssetProxyDispatcher()
        MixinWrapperFunctions()
    {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes4","name":"id","type":"bytes4"},{"indexed":false,"internalType":"address","name":"assetProxy","type":"address"}],"name":"AssetProxyRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"makerAddress","type":"address"},{"indexed":true,"internalType":"address","name":"feeRecipientAddress","type":"address"},{"indexed":false,"internalType":"address","name":"senderAddress","type":"address"},{"indexed":true,"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"makerAssetData","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"takerAssetData","type":"bytes"}],"name":"Cancel","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"makerAddress","type":"address"},{"indexed":true,"internalType":"address","name":"senderAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"orderEpoch","type":"uint256"}],"name":"CancelUpTo","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"senderAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"newOrderHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"oldOrderHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"oldAmount","type":"uint256"},{"indexed":true,"internalType":"address","name":"senderAddress","type":"address"}],"name":"DepositChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":true,"internalType":"address","name":"caller","type":"address"}],"name":"DepositOperatorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":true,"internalType":"address","name":"caller","type":"address"}],"name":"DepositOperatorRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"makerAddress","type":"address"},{"indexed":true,"internalType":"address","name":"feeRecipientAddress","type":"address"},{"indexed":false,"internalType":"address","name":"takerAddress","type":"address"},{"indexed":false,"internalType":"address","name":"senderAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"makerAssetFilledAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"takerAssetFilledAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"makerFeePaid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"takerFeePaid","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"makerAssetData","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"takerAssetData","type":"bytes"}],"name":"Fill","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"signerAddress","type":"address"},{"indexed":true,"internalType":"address","name":"validatorAddress","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"SignatureValidatorApproval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"toAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":true,"internalType":"address","name":"caller","type":"address"}],"name":"WithdrawOperatorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":true,"internalType":"address","name":"caller","type":"address"}],"name":"WithdrawOperatorRemoved","type":"event"},{"constant":true,"inputs":[],"name":"EIP712_DOMAIN_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ETH_ASSET_DATA","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"KECCAK256_ETH_ASSET_DATA","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"TRANSFER_GAS_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"addDepositOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"addWithdrawOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowedValidators","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"name":"assetProxies","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"components":[{"internalType":"address payable","name":"makerAddress","type":"address"},{"internalType":"address payable","name":"takerAddress","type":"address"},{"internalType":"address payable","name":"feeRecipientAddress","type":"address"},{"internalType":"address","name":"senderAddress","type":"address"},{"internalType":"uint256","name":"makerAssetAmount","type":"uint256"},{"internalType":"uint256","name":"takerAssetAmount","type":"uint256"},{"internalType":"uint256","name":"makerFee","type":"uint256"},{"internalType":"uint256","name":"takerFee","type":"uint256"},{"internalType":"uint256","name":"expirationTimeSeconds","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"makerAssetData","type":"bytes"},{"internalType":"bytes","name":"takerAssetData","type":"bytes"}],"internalType":"struct LibOrder.Order[]","name":"orders","type":"tuple[]"}],"name":"batchCancelOrders","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"components":[{"internalType":"address payable","name":"makerAddress","type":"address"},{"internalType":"address payable","name":"takerAddress","type":"address"},{"internalType":"address payable","name":"feeRecipientAddress","type":"address"},{"internalType":"address","name":"senderAddress","type":"address"},{"internalType":"uint256","name":"makerAssetAmount","type":"uint256"},{"internalType":"uint256","name":"takerAssetAmount","type":"uint256"},{"internalType":"uint256","name":"makerFee","type":"uint256"},{"internalType":"uint256","name":"takerFee","type":"uint256"},{"internalType":"uint256","name":"expirationTimeSeconds","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"makerAssetData","type":"bytes"},{"internalType":"bytes","name":"takerAssetData","type":"bytes"}],"internalType":"struct LibOrder.Order","name":"order","type":"tuple"}],"name":"cancelOrder","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"targetOrderEpoch","type":"uint256"}],"name":"cancelOrdersUpTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"cancelled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentContextAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"deposit","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"depositAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"internalType":"address","name":"toAddress","type":"address"}],"name":"depositByOperator","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"depositOperators","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"address payable","name":"signerAddress","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"executeTransaction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"components":[{"internalType":"address payable","name":"makerAddress","type":"address"},{"internalType":"address payable","name":"takerAddress","type":"address"},{"internalType":"address payable","name":"feeRecipientAddress","type":"address"},{"internalType":"address","name":"senderAddress","type":"address"},{"internalType":"uint256","name":"makerAssetAmount","type":"uint256"},{"internalType":"uint256","name":"takerAssetAmount","type":"uint256"},{"internalType":"uint256","name":"makerFee","type":"uint256"},{"internalType":"uint256","name":"takerFee","type":"uint256"},{"internalType":"uint256","name":"expirationTimeSeconds","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"makerAssetData","type":"bytes"},{"internalType":"bytes","name":"takerAssetData","type":"bytes"}],"internalType":"struct LibOrder.Order","name":"order","type":"tuple"},{"internalType":"uint256","name":"takerAssetFillAmount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"fillOrder","outputs":[{"components":[{"internalType":"uint256","name":"makerAssetFilledAmount","type":"uint256"},{"internalType":"uint256","name":"takerAssetFilledAmount","type":"uint256"},{"internalType":"uint256","name":"makerFeePaid","type":"uint256"},{"internalType":"uint256","name":"takerFeePaid","type":"uint256"}],"internalType":"struct LibFillResults.FillResults","name":"fillResults","type":"tuple"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"filled","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"assetProxyId","type":"bytes4"}],"name":"getAssetProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"components":[{"internalType":"address payable","name":"makerAddress","type":"address"},{"internalType":"address payable","name":"takerAddress","type":"address"},{"internalType":"address payable","name":"feeRecipientAddress","type":"address"},{"internalType":"address","name":"senderAddress","type":"address"},{"internalType":"uint256","name":"makerAssetAmount","type":"uint256"},{"internalType":"uint256","name":"takerAssetAmount","type":"uint256"},{"internalType":"uint256","name":"makerFee","type":"uint256"},{"internalType":"uint256","name":"takerFee","type":"uint256"},{"internalType":"uint256","name":"expirationTimeSeconds","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"makerAssetData","type":"bytes"},{"internalType":"bytes","name":"takerAssetData","type":"bytes"}],"internalType":"struct LibOrder.Order","name":"order","type":"tuple"}],"name":"getOrderInfo","outputs":[{"components":[{"internalType":"uint8","name":"orderStatus","type":"uint8"},{"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"internalType":"uint256","name":"orderTakerAssetFilledAmount","type":"uint256"}],"internalType":"struct LibOrder.OrderInfo","name":"orderInfo","type":"tuple"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"components":[{"internalType":"address payable","name":"makerAddress","type":"address"},{"internalType":"address payable","name":"takerAddress","type":"address"},{"internalType":"address payable","name":"feeRecipientAddress","type":"address"},{"internalType":"address","name":"senderAddress","type":"address"},{"internalType":"uint256","name":"makerAssetAmount","type":"uint256"},{"internalType":"uint256","name":"takerAssetAmount","type":"uint256"},{"internalType":"uint256","name":"makerFee","type":"uint256"},{"internalType":"uint256","name":"takerFee","type":"uint256"},{"internalType":"uint256","name":"expirationTimeSeconds","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"makerAssetData","type":"bytes"},{"internalType":"bytes","name":"takerAssetData","type":"bytes"}],"internalType":"struct LibOrder.Order[]","name":"orders","type":"tuple[]"}],"name":"getOrdersInfo","outputs":[{"components":[{"internalType":"uint8","name":"orderStatus","type":"uint8"},{"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"internalType":"uint256","name":"orderTakerAssetFilledAmount","type":"uint256"}],"internalType":"struct LibOrder.OrderInfo[]","name":"","type":"tuple[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isDepositOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"address","name":"signerAddress","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"isValidSignature","outputs":[{"internalType":"bool","name":"isValid","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWithdrawOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"components":[{"internalType":"address payable","name":"makerAddress","type":"address"},{"internalType":"address payable","name":"takerAddress","type":"address"},{"internalType":"address payable","name":"feeRecipientAddress","type":"address"},{"internalType":"address","name":"senderAddress","type":"address"},{"internalType":"uint256","name":"makerAssetAmount","type":"uint256"},{"internalType":"uint256","name":"takerAssetAmount","type":"uint256"},{"internalType":"uint256","name":"makerFee","type":"uint256"},{"internalType":"uint256","name":"takerFee","type":"uint256"},{"internalType":"uint256","name":"expirationTimeSeconds","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"makerAssetData","type":"bytes"},{"internalType":"bytes","name":"takerAssetData","type":"bytes"}],"internalType":"struct LibOrder.Order","name":"leftOrder","type":"tuple"},{"components":[{"internalType":"address payable","name":"makerAddress","type":"address"},{"internalType":"address payable","name":"takerAddress","type":"address"},{"internalType":"address payable","name":"feeRecipientAddress","type":"address"},{"internalType":"address","name":"senderAddress","type":"address"},{"internalType":"uint256","name":"makerAssetAmount","type":"uint256"},{"internalType":"uint256","name":"takerAssetAmount","type":"uint256"},{"internalType":"uint256","name":"makerFee","type":"uint256"},{"internalType":"uint256","name":"takerFee","type":"uint256"},{"internalType":"uint256","name":"expirationTimeSeconds","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"makerAssetData","type":"bytes"},{"internalType":"bytes","name":"takerAssetData","type":"bytes"}],"internalType":"struct LibOrder.Order","name":"rightOrder","type":"tuple"},{"internalType":"bytes","name":"leftSignature","type":"bytes"},{"internalType":"bytes","name":"rightSignature","type":"bytes"}],"name":"matchOrders","outputs":[{"components":[{"components":[{"internalType":"uint256","name":"makerAssetFilledAmount","type":"uint256"},{"internalType":"uint256","name":"takerAssetFilledAmount","type":"uint256"},{"internalType":"uint256","name":"makerFeePaid","type":"uint256"},{"internalType":"uint256","name":"takerFeePaid","type":"uint256"}],"internalType":"struct LibFillResults.FillResults","name":"left","type":"tuple"},{"components":[{"internalType":"uint256","name":"makerAssetFilledAmount","type":"uint256"},{"internalType":"uint256","name":"takerAssetFilledAmount","type":"uint256"},{"internalType":"uint256","name":"makerFeePaid","type":"uint256"},{"internalType":"uint256","name":"takerFeePaid","type":"uint256"}],"internalType":"struct LibFillResults.FillResults","name":"right","type":"tuple"},{"internalType":"uint256","name":"leftMakerAssetSpreadAmount","type":"uint256"}],"internalType":"struct LibFillResults.MatchedFillResults","name":"matchedFillResults","type":"tuple"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"orderEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"address","name":"","type":"address"}],"name":"orderToDepositAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"address","name":"signerAddress","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"preSign","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"address","name":"","type":"address"}],"name":"preSigned","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"assetProxy","type":"address"}],"name":"registerAssetProxy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"removeDepositOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"removeWithdrawOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"validatorAddress","type":"address"},{"internalType":"bool","name":"approval","type":"bool"}],"name":"setSignatureValidatorApproval","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"transactions","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"newOrderHash","type":"bytes32"},{"internalType":"uint256","name":"newOfferAmount","type":"uint256"},{"components":[{"internalType":"address payable","name":"makerAddress","type":"address"},{"internalType":"address payable","name":"takerAddress","type":"address"},{"internalType":"address payable","name":"feeRecipientAddress","type":"address"},{"internalType":"address","name":"senderAddress","type":"address"},{"internalType":"uint256","name":"makerAssetAmount","type":"uint256"},{"internalType":"uint256","name":"takerAssetAmount","type":"uint256"},{"internalType":"uint256","name":"makerFee","type":"uint256"},{"internalType":"uint256","name":"takerFee","type":"uint256"},{"internalType":"uint256","name":"expirationTimeSeconds","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"makerAssetData","type":"bytes"},{"internalType":"bytes","name":"takerAssetData","type":"bytes"}],"internalType":"struct LibOrder.Order","name":"orderToBeCanceled","type":"tuple"}],"name":"updateOrder","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"internalType":"address payable","name":"toAddress","type":"address"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawOperators","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]

60806040526005805460ff191690553480156200001b57600080fd5b50600080546001600160a01b031916331790556040516200003f9060200162000247565b60408051601f1981840301815282825280516020918201208383018352600b84526a0c1e08141c9bdd1bd8dbdb60aa1b938201939093528151808301835260018152601960f91b908201529051620000df92917ff0f24618f4c4be1e62e026fb039a20ef96f4495294817d1027ffaa6d1f70e61e917fad7c5bef027816a800da1736444fb58a807ef4c9603b7848673f7e3a68eb14a591309101620001f7565b60408051601f19818403018152919052805160209091012060085562000296565b620001156200010f8262000293565b62000293565b82525050565b60006200012a600c836200028e565b6b1cdd1c9a5b99c81b985b594b60a21b8152600c0192915050565b6000620001546019836200028e565b7f6164647265737320766572696679696e67436f6e747261637400000000000000815260190192915050565b60006200018f6001836200028e565b602960f81b815260010192915050565b6000620001ae600f836200028e565b6e1cdd1c9a5b99c81d995c9cda5bdb8b608a1b8152600f0192915050565b6000620001db600d836200028e565b6c08a92a06e626488dedac2d2dc5609b1b8152600d0192915050565b600062000205828762000100565b60208201915062000217828662000100565b60208201915062000229828562000100565b6020820191506200023b828462000100565b50602001949350505050565b60006200025482620001cc565b915062000261826200011b565b91506200026e826200019f565b91506200027b8262000145565b9150620002888262000180565b92915050565b919050565b90565b61537f80620002a66000396000f3fe6080604052600436106102515760003560e01c806389d807fd11610139578063c585bb93116100b6578063eea086ba1161007a578063eea086ba146106eb578063f2fde38b14610700578063f3f6c9c814610720578063fa0aba3214610733578063fcfa641114610753578063ffa1ad741461077357610251565b8063c585bb9314610649578063c75e0a8114610669578063d46b02c314610696578063d9bfa73e146106b6578063e306f779146106d657610251565b8063b214faa5116100fd578063b214faa5146105b6578063b4be83d5146105c9578063bfc8bfce146105e9578063c202aded14610609578063c3e562f51461062957610251565b806389d807fd1461051f5780638da5cb5b1461054157806392b3462014610556578063931ea7d714610576578063936347021461059657610251565b80634f9559b1116101d2578063619d595311610196578063619d59531461045f578063642f2eaf1461047257806377fcce68146104925780637b8e3514146104b25780637e9d74dc146104d257806382c174d0146104ff57610251565b80634f9559b1146103bf57806350f62da7146103df5780635979612d146103ff578063607041081461041f57806360ac85d61461043f57610251565b806338a66be21161021957806338a66be21461031b5780633c28d861146103305780633fd3c9971461035d57806343c71aff1461038a5780634ac147821461039f57610251565b80631b258d5014610256578063288cdc91146102785780632ac12622146102ae5780632c45ed78146102db5780633683ef8e146102fb575b600080fd5b34801561026257600080fd5b50610276610271366004613b21565b610788565b005b34801561028457600080fd5b50610298610293366004613b03565b6107f4565b6040516102a59190614e2c565b60405180910390f35b3480156102ba57600080fd5b506102ce6102c9366004613b03565b610806565b6040516102a59190614e1e565b3480156102e757600080fd5b506102986102f6366004613b21565b61081b565b34801561030757600080fd5b50610276610316366004613b40565b610838565b34801561032757600080fd5b506102986108d7565b34801561033c57600080fd5b5061035061034b366004613cd5565b6108de565b6040516102a5919061516c565b34801561036957600080fd5b5061037d610378366004613c65565b610bd3565b6040516102a59190614d3e565b34801561039657600080fd5b50610298610bee565b3480156103ab57600080fd5b506102766103ba366004613acf565b610c1f565b3480156103cb57600080fd5b506102766103da366004613b03565b610c65565b3480156103eb57600080fd5b506102986103fa366004613a47565b610d50565b34801561040b57600080fd5b506102ce61041a366004613a47565b610d62565b34801561042b57600080fd5b5061037d61043a366004613c65565b610d77565b34801561044b57600080fd5b5061027661045a366004613a47565b610da0565b61027661046d366004613b21565b610e90565b34801561047e57600080fd5b506102ce61048d366004613b03565b610eda565b34801561049e57600080fd5b506102766104ad366004613a9f565b610eef565b3480156104be57600080fd5b506102ce6104cd366004613a65565b610f7b565b3480156104de57600080fd5b506104f26104ed366004613acf565b610f9b565b6040516102a59190614e0d565b34801561050b57600080fd5b506102ce61051a366004613b21565b61102f565b34801561052b57600080fd5b5061053461104f565b6040516102a59190614ed7565b34801561054d57600080fd5b5061037d61106b565b34801561056257600080fd5b50610276610571366004613a47565b61107a565b34801561058257600080fd5b50610276610591366004613a47565b6111f5565b3480156105a257600080fd5b506102ce6105b1366004613ba7565b6112e6565b6102766105c4366004613b03565b611674565b6105dc6105d7366004613d91565b61168f565b6040516102a5919061515e565b3480156105f557600080fd5b50610276610604366004613dd9565b6116b4565b34801561061557600080fd5b5061037d610624366004613b03565b611899565b34801561063557600080fd5b506102ce610644366004613a47565b6118c0565b34801561065557600080fd5b50610276610664366004613a47565b6118d5565b34801561067557600080fd5b50610689610684366004613ca1565b611a27565b6040516102a5919061517b565b3480156106a257600080fd5b506102766106b1366004613ca1565b611b10565b3480156106c257600080fd5b506102986106d1366004613a65565b611b42565b3480156106e257600080fd5b50610298611b5f565b3480156106f757600080fd5b5061037d611b65565b34801561070c57600080fd5b5061027661071b366004613a47565b611b74565b61027661072e366004613c0b565b611c1f565b34801561073f57600080fd5b5061037d61074e366004613b03565b611c79565b34801561075f57600080fd5b5061027661076e366004613a47565b611c86565b34801561077f57600080fd5b50610534611e01565b610790611e2e565b33600090815260026020526040902054819060ff16806107b857506001600160a01b03811633145b6107dd5760405162461bcd60e51b81526004016107d49061513e565b60405180910390fd5b6107e78383611e58565b506107f0611f62565b5050565b60096020526000908152604090205481565b600a6020526000908152604090205460ff1681565b600760209081526000928352604080842090915290825290205481565b6001600160a01b03831633146108a557610889848484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506112e692505050565b6108a55760405162461bcd60e51b81526004016107d490614fee565b50506000918252600c602090815260408084206001600160a01b0390931684529190529020805460ff19166001179055565b620493e081565b6108e661370f565b6108ee611e2e565b61016080860151610140808701919091528601519085015261090e61373c565b61091786611a27565b905061092161373c565b61092a86611a27565b90506000610936611f6e565b905061094488848389611f94565b61095087838388611f94565b61095a888861207d565b61096e8888856040015185604001516120cd565b805160208101519051919550610989918a918691819061226c565b6020808501519081015190516109a5918991859190819061226c565b6109be8882856020015186604001518860000151612331565b6109d78782846020015185604001518860200151612331565b6109e3888883876123e1565b60405180606001604052806024815260200161531960249139604051610a099190614c15565b6040518091039020886101400151604051610a249190614c15565b60405180910390201415610a7b57610a7b83602001518960000151610a76876000015160400151610a6a89604001518a602001516020015161251090919063ffffffff16565b9063ffffffff61251016565b612535565b60405180606001604052806024815260200161531960249139604051610aa19190614c15565b6040518091039020876101400151604051610abc9190614c15565b60405180910390201415610af45760208083015188518683015160400151875190930151610af493610a76919063ffffffff61251016565b60405180606001604052806024815260200161531960249139604051610b1a9190614c15565b6040518091039020886101600151604051610b359190614c15565b60405180910390201415610b5a57610b5a836020015182866000015160600151612535565b60405180606001604052806024815260200161531960249139604051610b809190614c15565b6040518091039020876101600151604051610b9b9190614c15565b60405180910390201415610bc057610bc0826020015182866020015160600151612535565b505050610bcb611f62565b949350505050565b6010602052600090815260409020546001600160a01b031681565b60405180606001604052806024815260200161531960249139604051610c149190614c15565b604051809103902081565b610c27611e2e565b805160005b818114610c5857610c4f838281518110610c4257fe5b6020026020010151612591565b50600101610c2c565b5050610c62611f62565b50565b610c6d611e2e565b6000610c77611f6e565b905060006001600160a01b0382163314610c915733610c94565b60005b6001600160a01b038084166000908152600b60209081526040808320938516835292905220549091506001840190808211610ce15760405162461bcd60e51b81526004016107d49061507e565b6001600160a01b038085166000818152600b602090815260408083209488168084529490915290819020859055517f82af639571738f4ebd4268fb0363d8957ebe1bbb9e78dba5ebd69eed39b154f090610d3c908690614e2c565b60405180910390a350505050610c62611f62565b60066020526000908152604090205481565b60046020526000908152604090205460ff1681565b6001600160e01b031981166000908152601060205260409020546001600160a01b03165b919050565b6000546001600160a01b03163314610dca5760405162461bcd60e51b81526004016107d4906150ce565b6001600160a01b03811660009081526002602052604090205460ff1615610e035760405162461bcd60e51b81526004016107d490614fbe565b6001600160a01b038116600081815260026020526040808220805460ff19166001908117909155805480820182559083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b03191684179055513392917f0da9caec92a6633ec5303ab10a916b8b9259517e13192c0aec8d6bf3f7fb350b91a350565b610e98611e2e565b3360009081526004602052604090205460ff16610ec75760405162461bcd60e51b81526004016107d490614f7e565b610ed28282346125c4565b6107f0611f62565b600e6020526000908152604090205460ff1681565b610ef7611e2e565b6000610f01611f6e565b6001600160a01b038181166000818152600d602090815260408083209489168084529490915290819020805460ff19168715151790555192935090917fa8656e308026eeabce8f0bc18048433252318ab80ac79da0b3d3d8697dfba89190610f6a908690614e1e565b60405180910390a3506107f0611f62565b600d60209081526000928352604080842090915290825290205460ff1681565b6060600082519050606081604051908082528060200260200182016040528015610fdf57816020015b610fcc61373c565b815260200190600190039081610fc45790505b50905060005b82811461102757611008858281518110610ffb57fe5b6020026020010151611a27565b82828151811061101457fe5b6020908102919091010152600101610fe5565b509392505050565b600c60209081526000928352604080842090915290825290205460ff1681565b6040518060600160405280602481526020016153196024913981565b6000546001600160a01b031681565b6000546001600160a01b031633146110a45760405162461bcd60e51b81526004016107d4906150ce565b6001600160a01b03811660009081526002602052604090205460ff166110dc5760405162461bcd60e51b81526004016107d4906150ee565b6001600160a01b0381166000908152600260205260408120805460ff191690555b6001548110156111bb57816001600160a01b03166001828154811061111e57fe5b6000918252602090912001546001600160a01b031614156111b35760018054600019810190811061114b57fe5b600091825260209091200154600180546001600160a01b03909216918390811061117157fe5b600091825260209091200180546001600160a01b0319166001600160a01b03929092169190911790556001805460001901906111ad908261375c565b506111bb565b6001016110fd565b5060405133906001600160a01b038316907fc03f62302eb85eef9129d96cb26c130f821bd2244125a4a71fdf348790832b1390600090a350565b6000546001600160a01b0316331461121f5760405162461bcd60e51b81526004016107d4906150ce565b6001600160a01b03811660009081526004602052604090205460ff16156112585760405162461bcd60e51b81526004016107d490614f6e565b6001600160a01b038116600081815260046020526040808220805460ff1916600190811790915560038054918201815583527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b03191684179055513392917fd2f3f54a1162c37c3f0d514ab98620b75e42002fbf74284b2fd5e3eecf155b2991a350565b6000808251116113085760405162461bcd60e51b81526004016107d49061506e565b600061131383612687565b60f81c9050600781106113385760405162461bcd60e51b81526004016107d490614f5e565b60008160ff16600781111561134957fe5b905060008080808085600781111561135d57fe5b141561137b5760405162461bcd60e51b81526004016107d49061505e565b600185600781111561138957fe5b14156113be578751156113ae5760405162461bcd60e51b81526004016107d49061514e565b506000955061166d945050505050565b60028560078111156113cc57fe5b141561149c5787516041146113f35760405162461bcd60e51b81526004016107d490614f1e565b8760008151811061140057fe5b016020015160f81c935061141b88600163ffffffff6126d016565b925061142e88602163ffffffff6126d016565b915060018a858585604051600081526020016040526040516114539493929190614e87565b6020604051602081039080840390855afa158015611475573d6000803e3d6000fd5b5050604051601f1901516001600160a01b038b8116911614975061166d9650505050505050565b60038560078111156114aa57fe5b14156115575787516041146114d15760405162461bcd60e51b81526004016107d490614f1e565b876000815181106114de57fe5b016020015160f81c93506114f988600163ffffffff6126d016565b925061150c88602163ffffffff6126d016565b915060018a6040516020016115219190614c2c565b60405160208183030381529060405280519060200120858585604051600081526020016040526040516114539493929190614e87565b600485600781111561156557fe5b1415611584576115768a8a8a6126fa565b965061166d95505050505050565b600585600781111561159257fe5b141561160d57875160006115b08a601319840163ffffffff6128d216565b6001600160a01b03808d166000908152600d602090815260408083209385168352929052205490915060ff166115f15760009850505050505050505061166d565b6115fd818d8d8d612905565b985061166d975050505050505050565b600685600781111561161b57fe5b1415611655575050506000878152600c602090815260408083206001600160a01b038a16845290915290205460ff16935061166d92505050565b60405162461bcd60e51b81526004016107d490614f5e565b9392505050565b61167c611e2e565b6116878133346125c4565b610c62611f62565b611697613780565b61169f611e2e565b6116aa848484612a73565b905061166d611f62565b600f546001600160a01b0316156116dd5760405162461bcd60e51b81526004016107d4906150be565b6000611728611723888888888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612c1692505050565b612c73565b6000818152600e602052604090205490915060ff161561175a5760405162461bcd60e51b81526004016107d490614fde565b6001600160a01b03861633146117e3576117ab818785858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506112e692505050565b6117c75760405162461bcd60e51b81526004016107d49061511e565b600f80546001600160a01b0319166001600160a01b0388161790555b6000818152600e6020526040808220805460ff1916600117905551309061180d9088908890614c08565b600060405180830381855af49150503d8060008114611848576040519150601f19603f3d011682016040523d82523d6000602084013e61184d565b606091505b505090508061186e5760405162461bcd60e51b81526004016107d49061500e565b6001600160a01b038716331461188f57600f80546001600160a01b03191690555b5050505050505050565b600381815481106118a657fe5b6000918252602090912001546001600160a01b0316905081565b60026020526000908152604090205460ff1681565b6000546001600160a01b031633146118ff5760405162461bcd60e51b81526004016107d4906150ce565b6000816001600160a01b031663ae25532e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561193a57600080fd5b505afa15801561194e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506119729190810190613c83565b6001600160e01b031981166000908152601060205260409020549091506001600160a01b031680156119b65760405162461bcd60e51b81526004016107d490614f4e565b6001600160e01b031982166000908152601060205260409081902080546001600160a01b0319166001600160a01b038616179055517fd2c6b762299c609bdb96520b58a49bfb80186934d4f71a86a367571a15c0319490611a1a9084908690614ebc565b60405180910390a1505050565b611a2f61373c565b611a3882612c98565b602080830182905260009182526009905260409081902054908201526080820151611a6a5760015b60ff168152610d9b565b60a0820151611a7a576002611a60565b8160a00151816040015110611a90576005611a60565b8161010001514210611aa3576004611a60565b6020808201516000908152600a909152604090205460ff1615611ac7576006611a60565b61012082015182516001600160a01b039081166000908152600b602090815260408083206060880151909416835292905220541115611b07576006611a60565b60038152919050565b611b18611e2e565b611b2061373c565b611b2982612591565b9050611b39816020015133611e58565b50610c62611f62565b600b60209081526000928352604080842090915290825290205481565b60085481565b600f546001600160a01b031681565b6000546001600160a01b03163314611b9e5760405162461bcd60e51b81526004016107d4906150ce565b6001600160a01b038116611bc45760405162461bcd60e51b81526004016107d49061508e565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611c27611e2e565b611c2f61373c565b611c3882612591565b90506000611c578360c00151846080015161251090919063ffffffff16565b9050611c6a858584602001518433612ca6565b5050611c74611f62565b505050565b600181815481106118a657fe5b6000546001600160a01b03163314611cb05760405162461bcd60e51b81526004016107d4906150ce565b6001600160a01b03811660009081526004602052604090205460ff16611ce85760405162461bcd60e51b81526004016107d49061502e565b6001600160a01b0381166000908152600460205260408120805460ff191690555b600354811015611dc757816001600160a01b031660038281548110611d2a57fe5b6000918252602090912001546001600160a01b03161415611dbf57600380546000198101908110611d5757fe5b600091825260209091200154600380546001600160a01b039092169183908110611d7d57fe5b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055600380546000190190611db9908261375c565b50611dc7565b600101611d09565b5060405133906001600160a01b038316907f59b89d91440b7546647fc913702d6fceb3b3af75b87b4c71c6a2679909610d5190600090a350565b60405180604001604052806011815260200170322e312e302d616c7068612d6d69696d6560781b81525081565b60055460ff1615611e4957611e49611e44612ead565b612ecb565b6005805460ff19166001179055565b60008281526007602090815260408083206001600160a01b0385168452909152902054156107f05760008281526007602090815260408083206001600160a01b0385168452825280832054600690925290912054611ebc908263ffffffff612ed316565b6001600160a01b0383166000818152600660209081526040808320949094558682526007815283822083835290528281208190559151909183156108fc02918491818181858888f19350505050158015611f1a573d6000803e3d6000fd5b50816001600160a01b0316837fe7284ffe0c70ad2f3b0aa15cde1cfe95f736935651a138725b21fd168edc5d6a83604051611f559190614e2c565b60405180910390a3505050565b6005805460ff19169055565b600f546000906001600160a01b0316818115611f8a5781611f8c565b335b925050505b90565b825160ff16600314611fb85760405162461bcd60e51b81526004016107d4906150de565b60608401516001600160a01b031615611ff75760608401516001600160a01b03163314611ff75760405162461bcd60e51b81526004016107d4906150fe565b60208401516001600160a01b03161561203f57816001600160a01b031684602001516001600160a01b03161461203f5760405162461bcd60e51b81526004016107d490614f2e565b60408301516120775761205b83602001518560000151836112e6565b6120775760405162461bcd60e51b81526004016107d490614f9e565b50505050565b60a080820151908301516120969163ffffffff612ef216565b608080830151908401516120af9163ffffffff612ef216565b10156107f05760405162461bcd60e51b81526004016107d49061510e565b6120d561370f565b60a08501516000906120ed908563ffffffff612ed316565b9050600061210487608001518860a0015184612f23565b9050600061211f858860a00151612ed390919063ffffffff16565b9050600061213688608001518960a0015184612f23565b90508084106121795760208086018051839052805182018490525151865182015260808a015160a08b01518751909201516121719290612f23565b8551526121b6565b845183905284516020908101859052855181015190860180519190915260a089015160808a01519151516121ad9290612f8c565b60208087015101525b60208086015101518551516121d09163ffffffff612ed316565b604086015284515160808a015160c08b01516121ed929190612f23565b85516040015284516020015160a08a015160e08b015161220e929190612f23565b855160600152602085015151608089015160c08a015161222f929190612f23565b856020015160400181815250506122578560200151602001518960a001518a60e00151612f23565b60208601516060015250505050949350505050565b826122895760405162461bcd60e51b81526004016107d49061503e565b828211156122a95760405162461bcd60e51b81526004016107d49061501e565b60a085015160408501516122c3908463ffffffff61251016565b11156122e15760405162461bcd60e51b81526004016107d490614f3e565b60808501516122f6908363ffffffff612ef216565b60a086015161230c90839063ffffffff612ef216565b111561232a5760405162461bcd60e51b81526004016107d4906150ae565b5050505050565b602081015161234790839063ffffffff61251016565b60096000858152602001908152602001600020819055508285604001516001600160a01b031686600001516001600160a01b03167f0bcc4c97732e47d9946f229edb95f5b6323f601300e4690de719993f3c371129873386600001518760200151886040015189606001518e61014001518f61016001516040516123d2989796959493929190614d89565b60405180910390a45050505050565b60606040518060600160405280602481526020016153196024913961014086015186518651602080870151015193945061241a93612ffd565b6101408401518451865184516020015161243693929190612ffd565b61244f8561014001518660000151858560400151612ffd565b61246b8186600001518760400151856000015160400151612ffd565b6124878185600001518660400151856020015160400151612ffd565b83604001516001600160a01b031685604001516001600160a01b031614156124e0576124db818487604001516124d686602001516060015187600001516060015161251090919063ffffffff16565b612ffd565b61232a565b6124f881848760400151856000015160600151612ffd565b61232a81848660400151856020015160600151612ffd565b60008282018381101561252c5761252c611e4460008686613268565b90505b92915050565b60008381526007602090815260408083206001600160a01b0386168452909152902054612568908263ffffffff612ed316565b60009384526007602090815260408086206001600160a01b039095168652939052919092205550565b61259961373c565b6125a161373c565b6125aa83611a27565b90506125b683826132c2565b61252f838260200151613366565b6001600160a01b0382166000908152600660205260409020546125ed908263ffffffff61251016565b6001600160a01b0383166000818152600660209081526040808320949094558682526007815283822092825291909152205461262f908263ffffffff61251016565b60008481526007602090815260408083206001600160a01b038716808552925291829020929092555184907f182fa52899142d44ff5c45a6354d3b3e868d5b07db6a65580b39bd321bdaf8ac90611f55908590614e2c565b60008151600014156126a4576126a4611e446002845160006133e2565b816001835103815181106126b457fe5b0160200151825160001901909252506001600160f81b03191690565b600081602001835110156126f1576126f1611e4460058551856020016133e2565b50016020015190565b604051600090606090630b135d3f60e11b9061271c9087908690602401614e67565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050509050600060405161275f90614d28565b6040519081900381206001600160e01b031916915060009061278090614c4c565b6040519081900381206001600160e01b03191691506000906127a190614c21565b60405180910390206001600160e01b0319169050863b6127ec5762461bcd60e51b600052600160e51b6020526c062ba0a62622aa2fa2a92927a960811b604052600060605260646000fd5b602084016020818651838b5afa60203d146128325762461bcd60e51b600052600160e51b6020526c062ba0a62622aa2fa2a92927a960811b604052600060605260646000fd5b8080156128465760018114612877576128c4565b62461bcd60e51b600052600160e51b6020526c062ba0a62622aa2fa2a92927a960811b604052600060605260646000fd5b6001600160e01b031984166001600160e01b0319845116146001600160e01b031986166001600160e01b031985511614176001600160e01b031987166001600160e01b0319855116141797505b505050505050509392505050565b600081601401835110156128f3576128f3611e4460048551856014016133e2565b5001601401516001600160a01b031690565b6040516000906060906349b1a38160e11b9061292990879087908790602401614e3a565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050509050600060405161296c90614d1d565b60405180910390206001600160e01b0319169050863b6129ba5762461bcd60e51b600052600160e51b6020526f07ab20a624a220aa27a92fa2a92927a960691b604052600060605260646000fd5b602082016020818451838b5afa60203d14612a035762461bcd60e51b600052600160e51b6020526f07ab20a624a220aa27a92fa2a92927a960691b604052600060605260646000fd5b808015612a175760018114612a4b57612a66565b62461bcd60e51b600052600160e51b6020526f07ab20a624a220aa27a92fa2a92927a960691b604052600060605260646000fd5b6001600160e01b031984166001600160e01b03198451161495505b5050505050949350505050565b612a7b613780565b612a8361373c565b612a8c85611a27565b90506000612a98611f6e565b90503415612aaf57612aaf826020015182346125c4565b612abb86838387611f94565b6000612ad883604001518860a00151612ed390919063ffffffff16565b90506000612ae68783613401565b9050612af28882613417565b9450612b0588858984896000015161226c565b612b1a88848660200151876040015189612331565b612b25888487613478565b60405180606001604052806024815260200161531960249139604051612b4b9190614c15565b6040518091039020886101400151604051612b669190614c15565b60405180910390201415612b98576020840151885160408701518751612b98939291610a76919063ffffffff61251016565b60405180606001604052806024815260200161531960249139604051612bbe9190614c15565b6040518091039020886101600151604051612bd99190614c15565b60405180910390201415612c0b57612c0b846020015184610a768860600151896020015161251090919063ffffffff16565b505050509392505050565b600080604051602001612c2890614c57565b60408051601f1981840301815282825280516020918201208651878301209084529083018890526001600160a01b038716918301919091526060820152608090209150509392505050565b60085460405161190160f01b8152600281019190915260228101919091526042902090565b600061252f611723836134f0565b3415612d3b576001600160a01b038116600090815260066020526040902054612cd5903463ffffffff61251016565b6001600160a01b03821660008181526006602090815260408083209490945588825260078152838220928252919091522054612d17903463ffffffff61251016565b60008681526007602090815260408083206001600160a01b03861684529091529020555b60008381526007602090815260408083206001600160a01b0385168452909152902054612d69848784613586565b84811115612e605760008681526007602090815260408083206001600160a01b0386168452909152812054612da4908763ffffffff612ed316565b60008881526007602090815260408083206001600160a01b0388168452909152902054909150612dda908263ffffffff612ed316565b60008881526007602090815260408083206001600160a01b0388168452825280832093909355600690522054612e16908263ffffffff612ed316565b6001600160a01b038416600081815260066020526040808220939093559151909183156108fc02918491818181858888f19350505050158015612e5d573d6000803e3d6000fd5b50505b816001600160a01b031684877f8cc802977edfa64abef2b610ec3adbc8fbe0dabbe60079046b02789ac0d13b868887604051612e9d929190615189565b60405180910390a4505050505050565b6040805180820190915260048152630c3b823f60e01b602082015290565b805160208201fd5b600082821115612eec57612eec611e4460028585613268565b50900390565b600082612f015750600061252f565b82820282848281612f0e57fe5b041461252c5761252c611e4460018686613268565b6000808311612f445760405162461bcd60e51b81526004016107d490614f8e565b612f4f8484846135fd565b15612f6c5760405162461bcd60e51b81526004016107d490614ffe565b610bcb83612f80868563ffffffff612ef216565b9063ffffffff61367216565b6000808311612fad5760405162461bcd60e51b81526004016107d490614f8e565b612fb884848461369c565b15612fd55760405162461bcd60e51b81526004016107d490614ffe565b610bcb83612f80612fed82600163ffffffff612ed316565b610a6a888763ffffffff612ef216565b60008111801561301f5750816001600160a01b0316836001600160a01b031614155b156120775760038451116130455760405162461bcd60e51b81526004016107d49061509e565b6040518060600160405280602481526020016153196024913960405161306b9190614c15565b604051809103902084805190602001201415613196576001600160a01b0383166000908152600660205260409020548111156130b95760405162461bcd60e51b81526004016107d490614fce565b6001600160a01b0383166000908152600660205260408120546130e2908363ffffffff612ed316565b6001600160a01b038086166000908152600660205260409020829055909150831630146131905760006060846001600160a01b0316620493e08560405161312890614d33565b600060405180830381858888f193505050503d8060008114613166576040519150601f19603f3d011682016040523d82523d6000602084013e61316b565b606091505b50915091508161318d5760405162461bcd60e51b81526004016107d49061512e565b50505b50612077565b6020848101516001600160e01b031916600081815260109092526040909120546001600160a01b0316806131dc5760405162461bcd60e51b81526004016107d49061504e565b604051660fffffffffffe0603f88510116806084018201632a17967960e21b8352608060048401526001600160a01b03881660248401526001600160a01b0387166044840152856064840152608483015b8181101561324557895181526020998a01990161322d565b61020084858403866000895af18061325b573d85fd5b5050505050505050505050565b606063e946c1bb60e01b84848460405160240161328793929190614ee8565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290509392505050565b805160ff166003146132e65760405162461bcd60e51b81526004016107d4906150de565b60608201516001600160a01b0316156133255760608201516001600160a01b031633146133255760405162461bcd60e51b81526004016107d4906150fe565b600061332f611f6e565b9050806001600160a01b031683600001516001600160a01b031614611c745760405162461bcd60e51b81526004016107d490614fae565b6000818152600a602052604090819020805460ff19166001179055828101518351610140850151610160860151935185946001600160a01b039485169493909316927fdc47b3613d9fe400085f6dbdc99453462279057e6207385042827ed6b1a62cf7926133d692339290614d4c565b60405180910390a45050565b6060632800659560e01b84848460405160240161328793929190614f10565b6000818310613410578161252c565b5090919050565b61341f613780565b6020810182905260a0830151608084015161343b918491612f23565b808252608084015160c0850151613453929190612f23565b604082015260a083015160e084015161346d918491612f23565b606082015292915050565b606060405180606001604052806024815260200161531960249139610140850151855184519293506134ab928690612ffd565b6134c48461016001518486600001518560200151612ffd565b6134dc81856000015186604001518560400151612ffd565b612077818486604001518560600151612ffd565b60008060405160200161350290614c8e565b604051602081830303815290604052805190602001209050600083610140015160405161352f9190614c15565b60405180910390209050600084610160015160405161354e9190614c15565b604051908190039020601f19860180516101408801805161016090990180519784529581529285526101a08220915295905250525090565b60008381526007602081815260408084206001600160a01b038616808652908352818520805490869055878652938352818520908552909152909120546135d3908263ffffffff61251016565b60009384526007602090815260408086206001600160a01b03909516865293905291909220555050565b600080831161361e5760405162461bcd60e51b81526004016107d490614f8e565b811580613629575083155b156136365750600061166d565b6000838061364057fe5b8584099050613655858463ffffffff612ef216565b613667826103e863ffffffff612ef216565b101595945050505050565b60008161368857613688611e4460038585613268565b600082848161369357fe5b04949350505050565b60008083116136bd5760405162461bcd60e51b81526004016107d490614f8e565b8115806136c8575083155b156136d55750600061166d565b600083806136df57fe5b8584099050836136f5818363ffffffff612ed316565b816136fc57fe5b069050613655858463ffffffff612ef216565b6040518060600160405280613722613780565b815260200161372f613780565b8152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b815481835581811115611c7457600083815260209020611c749181019083016137a8565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b611f9191905b808211156137c257600081556001016137ae565b5090565b803561252f816152e9565b600082601f8301126137e257600080fd5b81356137f56137f0826151ca565b6151a4565b81815260209384019390925082018360005b83811015613833578135860161381d8882613900565b8452506020928301929190910190600101613807565b5050505092915050565b803561252f816152fd565b803561252f81615306565b803561252f8161530f565b805161252f8161530f565b60008083601f84011261387b57600080fd5b5081356001600160401b0381111561389257600080fd5b6020830191508360018202830111156138aa57600080fd5b9250929050565b600082601f8301126138c257600080fd5b81356138d06137f0826151ea565b915080825260208301602083018583830111156138ec57600080fd5b6138f7838284615293565b50505092915050565b6000610180828403121561391357600080fd5b61391e6101806151a4565b9050600061392c84846137c6565b825250602061393d848483016137c6565b6020830152506040613951848285016137c6565b6040830152506060613965848285016137c6565b606083015250608061397984828501613848565b60808301525060a061398d84828501613848565b60a08301525060c06139a184828501613848565b60c08301525060e06139b584828501613848565b60e0830152506101006139ca84828501613848565b610100830152506101206139e084828501613848565b610120830152506101408201356001600160401b03811115613a0157600080fd5b613a0d848285016138b1565b610140830152506101608201356001600160401b03811115613a2e57600080fd5b613a3a848285016138b1565b6101608301525092915050565b600060208284031215613a5957600080fd5b6000610bcb84846137c6565b60008060408385031215613a7857600080fd5b6000613a8485856137c6565b9250506020613a95858286016137c6565b9150509250929050565b60008060408385031215613ab257600080fd5b6000613abe85856137c6565b9250506020613a958582860161383d565b600060208284031215613ae157600080fd5b81356001600160401b03811115613af757600080fd5b610bcb848285016137d1565b600060208284031215613b1557600080fd5b6000610bcb8484613848565b60008060408385031215613b3457600080fd5b6000613a848585613848565b60008060008060608587031215613b5657600080fd5b6000613b628787613848565b9450506020613b73878288016137c6565b93505060408501356001600160401b03811115613b8f57600080fd5b613b9b87828801613869565b95989497509550505050565b600080600060608486031215613bbc57600080fd5b6000613bc88686613848565b9350506020613bd9868287016137c6565b92505060408401356001600160401b03811115613bf557600080fd5b613c01868287016138b1565b9150509250925092565b600080600060608486031215613c2057600080fd5b6000613c2c8686613848565b9350506020613c3d86828701613848565b92505060408401356001600160401b03811115613c5957600080fd5b613c0186828701613900565b600060208284031215613c7757600080fd5b6000610bcb8484613853565b600060208284031215613c9557600080fd5b6000610bcb848461385e565b600060208284031215613cb357600080fd5b81356001600160401b03811115613cc957600080fd5b610bcb84828501613900565b60008060008060808587031215613ceb57600080fd5b84356001600160401b03811115613d0157600080fd5b613d0d87828801613900565b94505060208501356001600160401b03811115613d2957600080fd5b613d3587828801613900565b93505060408501356001600160401b03811115613d5157600080fd5b613d5d878288016138b1565b92505060608501356001600160401b03811115613d7957600080fd5b613d85878288016138b1565b91505092959194509250565b600080600060608486031215613da657600080fd5b83356001600160401b03811115613dbc57600080fd5b613dc886828701613900565b9350506020613bd986828701613848565b60008060008060008060808789031215613df257600080fd5b6000613dfe8989613848565b9650506020613e0f89828a016137c6565b95505060408701356001600160401b03811115613e2b57600080fd5b613e3789828a01613869565b945094505060608701356001600160401b03811115613e5557600080fd5b613e6189828a01613869565b92509250509295509295509295565b6000613e7c8383614bc8565b505060600190565b613e8d81615267565b82525050565b613e8d81615224565b6000613ea782615217565b613eb1818561521b565b9350613ebc83615211565b8060005b83811015613eea578151613ed48882613e70565b9750613edf83615211565b925050600101613ec0565b509495945050505050565b613e8d8161522f565b613e8d81611f91565b613e8d613f1382611f91565b611f91565b613e8d81615234565b6000613f2d8385610d9b565b9350613f3a838584615293565b50500190565b6000613f4b82615217565b613f55818561521b565b9350613f6581856020860161529f565b613f6e816152cb565b9093019392505050565b6000613f8382615217565b613f8d8185610d9b565b9350613f9d81856020860161529f565b9290920192915050565b613e8d81615272565b613e8d8161527d565b6000613fc660128361521b565b7113115391d51217cd8d57d49154555254915160721b815260200192915050565b6000613ff4600d8361521b565b6c24a72b20a624a22faa20a5a2a960991b815260200192915050565b600061401d600e8361521b565b6d13d491115497d3d591549192531360921b815260200192915050565b6000614047601f83610d9b565b7f697356616c69645369676e617475726528627974657333322c627974657329008152601f0192915050565b6000614080601c83610d9b565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c0192915050565b60006140b9601983610d9b565b7f75696e74323536206d616b65724173736574416d6f756e742c00000000000000815260190192915050565b60006140f2601d83610d9b565b7f697356616c69645369676e61747572652862797465732c6279746573290000008152601d0192915050565b600061412b601683610d9b565b751859191c995cdcc81cd95b99195c9059191c995cdccb60521b815260160192915050565b600061415d601283610d9b565b710b4cae4de8af0a8e4c2dce6c2c6e8d2dedc560731b815260120192915050565b600061418b600683610d9b565b6509ee4c8cae4560d31b815260060192915050565b60006141ad601a8361521b565b7f41535345545f50524f58595f414c52454144595f455849535453000000000000815260200192915050565b60006141e660158361521b565b7414d251d3905515549157d55394d5541413d4951151605a1b815260200192915050565b6000614217603883610d9b565b7f697356616c696456616c696461746f725369676e61747572652861646472657381527f732c627974657333322c616464726573732c6279746573290000000000000000602082015260380192915050565b6000614276601583610d9b565b74189e5d195cc81b585ad95c905cdcd95d11185d184b605a1b815260150192915050565b60006142a760228361521b565b7f5441524745545f49535f414c52454144595f4445504f5349545f4f504552415481526127a960f11b602082015260400192915050565b60006142eb601583610d9b565b741859191c995cdcc81b585ad95c9059191c995cdccb605a1b815260150192915050565b600061431c601e8361521b565b7f53454e4445525f49535f4e4f545f4445504f5349545f4f50455241544f520000815260200192915050565b600061435560108361521b565b6f4449564953494f4e5f42595f5a45524f60801b815260200192915050565b600061438160178361521b565b7f494e56414c49445f4f524445525f5349474e4154555245000000000000000000815260200192915050565b60006143ba600d8361521b565b6c24a72b20a624a22fa6a0a5a2a960991b815260200192915050565b60006143e360238361521b565b7f5441524745545f49535f414c52454144595f57495448445241575f4f504552418152622a27a960e91b602082015260400192915050565b6000614428601483610d9b565b7362797465732074616b657241737365744461746160601b815260140192915050565b6000614458601e8361521b565b7f4445504f5349545f414d4f554e545f49535f494e53554646494349454e540000815260200192915050565b6000614491600f8361521b565b6e0929cac82989288bea8b0be9082a69608b1b815260200192915050565b60006144bc600183610d9b565b602960f81b815260010192915050565b60006144d9601183610d9b565b701d5a5b9d0c8d4d881d185ad95c9199594b607a1b815260110192915050565b600061450660118361521b565b70494e56414c49445f5349474e415455524560781b815260200192915050565b6000614533600e8361521b565b6d2927aaa72224a723afa2a92927a960911b815260200192915050565b600061455d60108361521b565b6f2320a4a622a22fa2ac22a1aaaa24a7a760811b815260200192915050565b6000614589600d8361521b565b6c54414b45525f4f56455250415960981b815260200192915050565b60006145b2600d83610d9b565b6c1d5a5b9d0c8d4d881cd85b1d0b609a1b8152600d0192915050565b60006145db601e8361521b565b7f5441524745545f49535f4e4f545f4445504f5349545f4f50455241544f520000815260200192915050565b600061461460148361521b565b731253959053125117d51052d15497d05353d5539560621b815260200192915050565b6000614644600a83610d9b565b696279746573206461746160b01b8152600a0192915050565b600061466a601a8361521b565b7f41535345545f50524f58595f444f45535f4e4f545f4558495354000000000000815260200192915050565b60006146a360118361521b565b7014d251d3905515549157d253131151d053607a1b815260200192915050565b60006146d0601e8361521b565b7f4c454e4754485f475245415445525f5448414e5f305f52455155495245440000815260200192915050565b600061470960178361521b565b7f494e56414c49445f4e45575f4f524445525f45504f4348000000000000000000815260200192915050565b6000614742600d8361521b565b6c24a72b20a624a22fa7aba722a960991b815260200192915050565b600061476b601e8361521b565b7f4c454e4754485f475245415445525f5448414e5f335f52455155495245440000815260200192915050565b60006147a4601183610d9b565b701d5a5b9d0c8d4d881b585ad95c9199594b607a1b815260110192915050565b60006147d160128361521b565b71494e56414c49445f46494c4c5f505249434560701b815260200192915050565b60006147ff60128361521b565b71149151539514905390d657d253131151d05360721b815260200192915050565b600061482d60138361521b565b7227a7262cafa1a7a72a2920a1aa2fa7aba722a960691b815260200192915050565b600061485c602d83610d9b565b7f697356616c696457616c6c65745369676e617475726528627974657333322c6181526c6464726573732c62797465732960981b6020820152602d0192915050565b60006148ab601c83610d9b565b7f6164647265737320666565526563697069656e74416464726573732c000000008152601c0192915050565b600061252f600083610d9b565b60006148f160108361521b565b6f4f524445525f554e46494c4c41424c4560801b815260200192915050565b600061491d601f8361521b565b7f5441524745545f49535f4e4f545f57495448445241575f4f50455241544f5200815260200192915050565b6000614956600e8361521b565b6d24a72b20a624a22fa9a2a72222a960911b815260200192915050565b6000614980601683610d9b565b751859191c995cdcc81cda59db995c9059191c995cdccb60521b815260160192915050565b60006149b260188361521b565b7f4e454741544956455f5350524541445f52455155495245440000000000000000815260200192915050565b60006149eb60148361521b565b73494e56414c49445f54585f5349474e415455524560601b815260200192915050565b6000614a1b60128361521b565b7111551217d4d15391125391d7d1905253115160721b815260200192915050565b6000614a49601583610d9b565b741859191c995cdcc81d185ad95c9059191c995cdccb605a1b815260150192915050565b6000614a7a601e83610d9b565b7f75696e743235362065787069726174696f6e54696d655365636f6e64732c00008152601e0192915050565b6000614ab3601a8361521b565b7f53454e4445525f49535f4e4f545f574954484452415741424c45000000000000815260200192915050565b6000614aec601983610d9b565b7f75696e743235362074616b65724173736574416d6f756e742c00000000000000815260190192915050565b6000614b2560118361521b565b7013115391d51217cc17d491545552549151607a1b815260200192915050565b80516080830190614b568482613efe565b506020820151614b696020850182613efe565b506040820151614b7c6040850182613efe565b5060608201516120776060850182613efe565b8051610120830190614ba18482614b45565b506020820151614bb46080850182614b45565b506040820151612077610100850182613efe565b80516060830190614bd98482614bff565b506020820151614bec6020850182613efe565b5060408201516120776040850182613efe565b613e8d81615261565b6000610bcb828486613f21565b600061166d8284613f78565b600061252f8261403a565b6000614c3782614073565b9150614c438284613f07565b50602001919050565b600061252f826140e5565b6000614c6282614150565b9150614c6d826145a5565b9150614c7882614973565b9150614c8382614637565b915061252f826144af565b6000614c998261417e565b9150614ca4826142de565b9150614caf82614a3c565b9150614cba8261489e565b9150614cc58261411e565b9150614cd0826140ac565b9150614cdb82614adf565b9150614ce682614797565b9150614cf1826144cc565b9150614cfc82614a6d565b9150614d07826145a5565b9150614d1282614269565b9150614c838261441b565b600061252f8261420a565b600061252f8261484f565b600061252f826148d7565b6020810161252f8284613e93565b60608101614d5a8286613e84565b8181036020830152614d6c8185613f40565b90508181036040830152614d808184613f40565b95945050505050565b6101008101614d98828b613e93565b614da5602083018a613e84565b614db26040830189613efe565b614dbf6060830188613efe565b614dcc6080830187613efe565b614dd960a0830186613efe565b81810360c0830152614deb8185613f40565b905081810360e0830152614dff8184613f40565b9a9950505050505050505050565b6020808252810161252c8184613e9c565b6020810161252f8284613ef5565b6020810161252f8284613efe565b60608101614e488286613efe565b614e556020830185613e93565b8181036040830152614d808184613f40565b60408101614e758285613efe565b8181036020830152610bcb8184613f40565b60808101614e958287613efe565b614ea26020830186614bff565b614eaf6040830185613efe565b614d806060830184613efe565b60408101614eca8285613f18565b61166d6020830184613e93565b6020808252810161252c8184613f40565b60608101614ef68286613fa7565b614f036020830185613efe565b610bcb6040830184613efe565b60608101614ef68286613fb0565b6020808252810161252f81613fb9565b6020808252810161252f81613fe7565b6020808252810161252f81614010565b6020808252810161252f816141a0565b6020808252810161252f816141d9565b6020808252810161252f8161429a565b6020808252810161252f8161430f565b6020808252810161252f81614348565b6020808252810161252f81614374565b6020808252810161252f816143ad565b6020808252810161252f816143d6565b6020808252810161252f8161444b565b6020808252810161252f81614484565b6020808252810161252f816144f9565b6020808252810161252f81614526565b6020808252810161252f81614550565b6020808252810161252f8161457c565b6020808252810161252f816145ce565b6020808252810161252f81614607565b6020808252810161252f8161465d565b6020808252810161252f81614696565b6020808252810161252f816146c3565b6020808252810161252f816146fc565b6020808252810161252f81614735565b6020808252810161252f8161475e565b6020808252810161252f816147c4565b6020808252810161252f816147f2565b6020808252810161252f81614820565b6020808252810161252f816148e4565b6020808252810161252f81614910565b6020808252810161252f81614949565b6020808252810161252f816149a5565b6020808252810161252f816149de565b6020808252810161252f81614a0e565b6020808252810161252f81614aa6565b6020808252810161252f81614b18565b6080810161252f8284614b45565b610120810161252f8284614b8f565b6060810161252f8284614bc8565b604081016151978285613efe565b61166d6020830184613efe565b6040518181016001600160401b03811182821017156151c257600080fd5b604052919050565b60006001600160401b038211156151e057600080fd5b5060209081020190565b60006001600160401b0382111561520057600080fd5b506020601f91909101601f19160190565b60200190565b5190565b90815260200190565b600061252f82615255565b151590565b6001600160e01b03191690565b80610d9b816152d5565b80610d9b816152df565b6001600160a01b031690565b60ff1690565b600061252f82615288565b600061252f82615241565b600061252f8261524b565b600061252f82615224565b82818337506000910152565b60005b838110156152ba5781810151838201526020016152a2565b838111156120775750506000910152565b601f01601f191690565b60048110610c6257fe5b60088110610c6257fe5b6152f281615224565b8114610c6257600080fd5b6152f28161522f565b6152f281611f91565b6152f28161523456fef47261b00000000000000000000000000000000000000000000000000000000000000000a365627a7a72315820b53bc6df196a4770dea96b0a47e540c106600ce51886e42222292d6b86d548d86c6578706572696d656e74616cf564736f6c63430005100040

Deployed Bytecode

0x6080604052600436106102515760003560e01c806389d807fd11610139578063c585bb93116100b6578063eea086ba1161007a578063eea086ba146106eb578063f2fde38b14610700578063f3f6c9c814610720578063fa0aba3214610733578063fcfa641114610753578063ffa1ad741461077357610251565b8063c585bb9314610649578063c75e0a8114610669578063d46b02c314610696578063d9bfa73e146106b6578063e306f779146106d657610251565b8063b214faa5116100fd578063b214faa5146105b6578063b4be83d5146105c9578063bfc8bfce146105e9578063c202aded14610609578063c3e562f51461062957610251565b806389d807fd1461051f5780638da5cb5b1461054157806392b3462014610556578063931ea7d714610576578063936347021461059657610251565b80634f9559b1116101d2578063619d595311610196578063619d59531461045f578063642f2eaf1461047257806377fcce68146104925780637b8e3514146104b25780637e9d74dc146104d257806382c174d0146104ff57610251565b80634f9559b1146103bf57806350f62da7146103df5780635979612d146103ff578063607041081461041f57806360ac85d61461043f57610251565b806338a66be21161021957806338a66be21461031b5780633c28d861146103305780633fd3c9971461035d57806343c71aff1461038a5780634ac147821461039f57610251565b80631b258d5014610256578063288cdc91146102785780632ac12622146102ae5780632c45ed78146102db5780633683ef8e146102fb575b600080fd5b34801561026257600080fd5b50610276610271366004613b21565b610788565b005b34801561028457600080fd5b50610298610293366004613b03565b6107f4565b6040516102a59190614e2c565b60405180910390f35b3480156102ba57600080fd5b506102ce6102c9366004613b03565b610806565b6040516102a59190614e1e565b3480156102e757600080fd5b506102986102f6366004613b21565b61081b565b34801561030757600080fd5b50610276610316366004613b40565b610838565b34801561032757600080fd5b506102986108d7565b34801561033c57600080fd5b5061035061034b366004613cd5565b6108de565b6040516102a5919061516c565b34801561036957600080fd5b5061037d610378366004613c65565b610bd3565b6040516102a59190614d3e565b34801561039657600080fd5b50610298610bee565b3480156103ab57600080fd5b506102766103ba366004613acf565b610c1f565b3480156103cb57600080fd5b506102766103da366004613b03565b610c65565b3480156103eb57600080fd5b506102986103fa366004613a47565b610d50565b34801561040b57600080fd5b506102ce61041a366004613a47565b610d62565b34801561042b57600080fd5b5061037d61043a366004613c65565b610d77565b34801561044b57600080fd5b5061027661045a366004613a47565b610da0565b61027661046d366004613b21565b610e90565b34801561047e57600080fd5b506102ce61048d366004613b03565b610eda565b34801561049e57600080fd5b506102766104ad366004613a9f565b610eef565b3480156104be57600080fd5b506102ce6104cd366004613a65565b610f7b565b3480156104de57600080fd5b506104f26104ed366004613acf565b610f9b565b6040516102a59190614e0d565b34801561050b57600080fd5b506102ce61051a366004613b21565b61102f565b34801561052b57600080fd5b5061053461104f565b6040516102a59190614ed7565b34801561054d57600080fd5b5061037d61106b565b34801561056257600080fd5b50610276610571366004613a47565b61107a565b34801561058257600080fd5b50610276610591366004613a47565b6111f5565b3480156105a257600080fd5b506102ce6105b1366004613ba7565b6112e6565b6102766105c4366004613b03565b611674565b6105dc6105d7366004613d91565b61168f565b6040516102a5919061515e565b3480156105f557600080fd5b50610276610604366004613dd9565b6116b4565b34801561061557600080fd5b5061037d610624366004613b03565b611899565b34801561063557600080fd5b506102ce610644366004613a47565b6118c0565b34801561065557600080fd5b50610276610664366004613a47565b6118d5565b34801561067557600080fd5b50610689610684366004613ca1565b611a27565b6040516102a5919061517b565b3480156106a257600080fd5b506102766106b1366004613ca1565b611b10565b3480156106c257600080fd5b506102986106d1366004613a65565b611b42565b3480156106e257600080fd5b50610298611b5f565b3480156106f757600080fd5b5061037d611b65565b34801561070c57600080fd5b5061027661071b366004613a47565b611b74565b61027661072e366004613c0b565b611c1f565b34801561073f57600080fd5b5061037d61074e366004613b03565b611c79565b34801561075f57600080fd5b5061027661076e366004613a47565b611c86565b34801561077f57600080fd5b50610534611e01565b610790611e2e565b33600090815260026020526040902054819060ff16806107b857506001600160a01b03811633145b6107dd5760405162461bcd60e51b81526004016107d49061513e565b60405180910390fd5b6107e78383611e58565b506107f0611f62565b5050565b60096020526000908152604090205481565b600a6020526000908152604090205460ff1681565b600760209081526000928352604080842090915290825290205481565b6001600160a01b03831633146108a557610889848484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506112e692505050565b6108a55760405162461bcd60e51b81526004016107d490614fee565b50506000918252600c602090815260408084206001600160a01b0390931684529190529020805460ff19166001179055565b620493e081565b6108e661370f565b6108ee611e2e565b61016080860151610140808701919091528601519085015261090e61373c565b61091786611a27565b905061092161373c565b61092a86611a27565b90506000610936611f6e565b905061094488848389611f94565b61095087838388611f94565b61095a888861207d565b61096e8888856040015185604001516120cd565b805160208101519051919550610989918a918691819061226c565b6020808501519081015190516109a5918991859190819061226c565b6109be8882856020015186604001518860000151612331565b6109d78782846020015185604001518860200151612331565b6109e3888883876123e1565b60405180606001604052806024815260200161531960249139604051610a099190614c15565b6040518091039020886101400151604051610a249190614c15565b60405180910390201415610a7b57610a7b83602001518960000151610a76876000015160400151610a6a89604001518a602001516020015161251090919063ffffffff16565b9063ffffffff61251016565b612535565b60405180606001604052806024815260200161531960249139604051610aa19190614c15565b6040518091039020876101400151604051610abc9190614c15565b60405180910390201415610af45760208083015188518683015160400151875190930151610af493610a76919063ffffffff61251016565b60405180606001604052806024815260200161531960249139604051610b1a9190614c15565b6040518091039020886101600151604051610b359190614c15565b60405180910390201415610b5a57610b5a836020015182866000015160600151612535565b60405180606001604052806024815260200161531960249139604051610b809190614c15565b6040518091039020876101600151604051610b9b9190614c15565b60405180910390201415610bc057610bc0826020015182866020015160600151612535565b505050610bcb611f62565b949350505050565b6010602052600090815260409020546001600160a01b031681565b60405180606001604052806024815260200161531960249139604051610c149190614c15565b604051809103902081565b610c27611e2e565b805160005b818114610c5857610c4f838281518110610c4257fe5b6020026020010151612591565b50600101610c2c565b5050610c62611f62565b50565b610c6d611e2e565b6000610c77611f6e565b905060006001600160a01b0382163314610c915733610c94565b60005b6001600160a01b038084166000908152600b60209081526040808320938516835292905220549091506001840190808211610ce15760405162461bcd60e51b81526004016107d49061507e565b6001600160a01b038085166000818152600b602090815260408083209488168084529490915290819020859055517f82af639571738f4ebd4268fb0363d8957ebe1bbb9e78dba5ebd69eed39b154f090610d3c908690614e2c565b60405180910390a350505050610c62611f62565b60066020526000908152604090205481565b60046020526000908152604090205460ff1681565b6001600160e01b031981166000908152601060205260409020546001600160a01b03165b919050565b6000546001600160a01b03163314610dca5760405162461bcd60e51b81526004016107d4906150ce565b6001600160a01b03811660009081526002602052604090205460ff1615610e035760405162461bcd60e51b81526004016107d490614fbe565b6001600160a01b038116600081815260026020526040808220805460ff19166001908117909155805480820182559083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b03191684179055513392917f0da9caec92a6633ec5303ab10a916b8b9259517e13192c0aec8d6bf3f7fb350b91a350565b610e98611e2e565b3360009081526004602052604090205460ff16610ec75760405162461bcd60e51b81526004016107d490614f7e565b610ed28282346125c4565b6107f0611f62565b600e6020526000908152604090205460ff1681565b610ef7611e2e565b6000610f01611f6e565b6001600160a01b038181166000818152600d602090815260408083209489168084529490915290819020805460ff19168715151790555192935090917fa8656e308026eeabce8f0bc18048433252318ab80ac79da0b3d3d8697dfba89190610f6a908690614e1e565b60405180910390a3506107f0611f62565b600d60209081526000928352604080842090915290825290205460ff1681565b6060600082519050606081604051908082528060200260200182016040528015610fdf57816020015b610fcc61373c565b815260200190600190039081610fc45790505b50905060005b82811461102757611008858281518110610ffb57fe5b6020026020010151611a27565b82828151811061101457fe5b6020908102919091010152600101610fe5565b509392505050565b600c60209081526000928352604080842090915290825290205460ff1681565b6040518060600160405280602481526020016153196024913981565b6000546001600160a01b031681565b6000546001600160a01b031633146110a45760405162461bcd60e51b81526004016107d4906150ce565b6001600160a01b03811660009081526002602052604090205460ff166110dc5760405162461bcd60e51b81526004016107d4906150ee565b6001600160a01b0381166000908152600260205260408120805460ff191690555b6001548110156111bb57816001600160a01b03166001828154811061111e57fe5b6000918252602090912001546001600160a01b031614156111b35760018054600019810190811061114b57fe5b600091825260209091200154600180546001600160a01b03909216918390811061117157fe5b600091825260209091200180546001600160a01b0319166001600160a01b03929092169190911790556001805460001901906111ad908261375c565b506111bb565b6001016110fd565b5060405133906001600160a01b038316907fc03f62302eb85eef9129d96cb26c130f821bd2244125a4a71fdf348790832b1390600090a350565b6000546001600160a01b0316331461121f5760405162461bcd60e51b81526004016107d4906150ce565b6001600160a01b03811660009081526004602052604090205460ff16156112585760405162461bcd60e51b81526004016107d490614f6e565b6001600160a01b038116600081815260046020526040808220805460ff1916600190811790915560038054918201815583527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b03191684179055513392917fd2f3f54a1162c37c3f0d514ab98620b75e42002fbf74284b2fd5e3eecf155b2991a350565b6000808251116113085760405162461bcd60e51b81526004016107d49061506e565b600061131383612687565b60f81c9050600781106113385760405162461bcd60e51b81526004016107d490614f5e565b60008160ff16600781111561134957fe5b905060008080808085600781111561135d57fe5b141561137b5760405162461bcd60e51b81526004016107d49061505e565b600185600781111561138957fe5b14156113be578751156113ae5760405162461bcd60e51b81526004016107d49061514e565b506000955061166d945050505050565b60028560078111156113cc57fe5b141561149c5787516041146113f35760405162461bcd60e51b81526004016107d490614f1e565b8760008151811061140057fe5b016020015160f81c935061141b88600163ffffffff6126d016565b925061142e88602163ffffffff6126d016565b915060018a858585604051600081526020016040526040516114539493929190614e87565b6020604051602081039080840390855afa158015611475573d6000803e3d6000fd5b5050604051601f1901516001600160a01b038b8116911614975061166d9650505050505050565b60038560078111156114aa57fe5b14156115575787516041146114d15760405162461bcd60e51b81526004016107d490614f1e565b876000815181106114de57fe5b016020015160f81c93506114f988600163ffffffff6126d016565b925061150c88602163ffffffff6126d016565b915060018a6040516020016115219190614c2c565b60405160208183030381529060405280519060200120858585604051600081526020016040526040516114539493929190614e87565b600485600781111561156557fe5b1415611584576115768a8a8a6126fa565b965061166d95505050505050565b600585600781111561159257fe5b141561160d57875160006115b08a601319840163ffffffff6128d216565b6001600160a01b03808d166000908152600d602090815260408083209385168352929052205490915060ff166115f15760009850505050505050505061166d565b6115fd818d8d8d612905565b985061166d975050505050505050565b600685600781111561161b57fe5b1415611655575050506000878152600c602090815260408083206001600160a01b038a16845290915290205460ff16935061166d92505050565b60405162461bcd60e51b81526004016107d490614f5e565b9392505050565b61167c611e2e565b6116878133346125c4565b610c62611f62565b611697613780565b61169f611e2e565b6116aa848484612a73565b905061166d611f62565b600f546001600160a01b0316156116dd5760405162461bcd60e51b81526004016107d4906150be565b6000611728611723888888888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612c1692505050565b612c73565b6000818152600e602052604090205490915060ff161561175a5760405162461bcd60e51b81526004016107d490614fde565b6001600160a01b03861633146117e3576117ab818785858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506112e692505050565b6117c75760405162461bcd60e51b81526004016107d49061511e565b600f80546001600160a01b0319166001600160a01b0388161790555b6000818152600e6020526040808220805460ff1916600117905551309061180d9088908890614c08565b600060405180830381855af49150503d8060008114611848576040519150601f19603f3d011682016040523d82523d6000602084013e61184d565b606091505b505090508061186e5760405162461bcd60e51b81526004016107d49061500e565b6001600160a01b038716331461188f57600f80546001600160a01b03191690555b5050505050505050565b600381815481106118a657fe5b6000918252602090912001546001600160a01b0316905081565b60026020526000908152604090205460ff1681565b6000546001600160a01b031633146118ff5760405162461bcd60e51b81526004016107d4906150ce565b6000816001600160a01b031663ae25532e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561193a57600080fd5b505afa15801561194e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506119729190810190613c83565b6001600160e01b031981166000908152601060205260409020549091506001600160a01b031680156119b65760405162461bcd60e51b81526004016107d490614f4e565b6001600160e01b031982166000908152601060205260409081902080546001600160a01b0319166001600160a01b038616179055517fd2c6b762299c609bdb96520b58a49bfb80186934d4f71a86a367571a15c0319490611a1a9084908690614ebc565b60405180910390a1505050565b611a2f61373c565b611a3882612c98565b602080830182905260009182526009905260409081902054908201526080820151611a6a5760015b60ff168152610d9b565b60a0820151611a7a576002611a60565b8160a00151816040015110611a90576005611a60565b8161010001514210611aa3576004611a60565b6020808201516000908152600a909152604090205460ff1615611ac7576006611a60565b61012082015182516001600160a01b039081166000908152600b602090815260408083206060880151909416835292905220541115611b07576006611a60565b60038152919050565b611b18611e2e565b611b2061373c565b611b2982612591565b9050611b39816020015133611e58565b50610c62611f62565b600b60209081526000928352604080842090915290825290205481565b60085481565b600f546001600160a01b031681565b6000546001600160a01b03163314611b9e5760405162461bcd60e51b81526004016107d4906150ce565b6001600160a01b038116611bc45760405162461bcd60e51b81526004016107d49061508e565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611c27611e2e565b611c2f61373c565b611c3882612591565b90506000611c578360c00151846080015161251090919063ffffffff16565b9050611c6a858584602001518433612ca6565b5050611c74611f62565b505050565b600181815481106118a657fe5b6000546001600160a01b03163314611cb05760405162461bcd60e51b81526004016107d4906150ce565b6001600160a01b03811660009081526004602052604090205460ff16611ce85760405162461bcd60e51b81526004016107d49061502e565b6001600160a01b0381166000908152600460205260408120805460ff191690555b600354811015611dc757816001600160a01b031660038281548110611d2a57fe5b6000918252602090912001546001600160a01b03161415611dbf57600380546000198101908110611d5757fe5b600091825260209091200154600380546001600160a01b039092169183908110611d7d57fe5b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055600380546000190190611db9908261375c565b50611dc7565b600101611d09565b5060405133906001600160a01b038316907f59b89d91440b7546647fc913702d6fceb3b3af75b87b4c71c6a2679909610d5190600090a350565b60405180604001604052806011815260200170322e312e302d616c7068612d6d69696d6560781b81525081565b60055460ff1615611e4957611e49611e44612ead565b612ecb565b6005805460ff19166001179055565b60008281526007602090815260408083206001600160a01b0385168452909152902054156107f05760008281526007602090815260408083206001600160a01b0385168452825280832054600690925290912054611ebc908263ffffffff612ed316565b6001600160a01b0383166000818152600660209081526040808320949094558682526007815283822083835290528281208190559151909183156108fc02918491818181858888f19350505050158015611f1a573d6000803e3d6000fd5b50816001600160a01b0316837fe7284ffe0c70ad2f3b0aa15cde1cfe95f736935651a138725b21fd168edc5d6a83604051611f559190614e2c565b60405180910390a3505050565b6005805460ff19169055565b600f546000906001600160a01b0316818115611f8a5781611f8c565b335b925050505b90565b825160ff16600314611fb85760405162461bcd60e51b81526004016107d4906150de565b60608401516001600160a01b031615611ff75760608401516001600160a01b03163314611ff75760405162461bcd60e51b81526004016107d4906150fe565b60208401516001600160a01b03161561203f57816001600160a01b031684602001516001600160a01b03161461203f5760405162461bcd60e51b81526004016107d490614f2e565b60408301516120775761205b83602001518560000151836112e6565b6120775760405162461bcd60e51b81526004016107d490614f9e565b50505050565b60a080820151908301516120969163ffffffff612ef216565b608080830151908401516120af9163ffffffff612ef216565b10156107f05760405162461bcd60e51b81526004016107d49061510e565b6120d561370f565b60a08501516000906120ed908563ffffffff612ed316565b9050600061210487608001518860a0015184612f23565b9050600061211f858860a00151612ed390919063ffffffff16565b9050600061213688608001518960a0015184612f23565b90508084106121795760208086018051839052805182018490525151865182015260808a015160a08b01518751909201516121719290612f23565b8551526121b6565b845183905284516020908101859052855181015190860180519190915260a089015160808a01519151516121ad9290612f8c565b60208087015101525b60208086015101518551516121d09163ffffffff612ed316565b604086015284515160808a015160c08b01516121ed929190612f23565b85516040015284516020015160a08a015160e08b015161220e929190612f23565b855160600152602085015151608089015160c08a015161222f929190612f23565b856020015160400181815250506122578560200151602001518960a001518a60e00151612f23565b60208601516060015250505050949350505050565b826122895760405162461bcd60e51b81526004016107d49061503e565b828211156122a95760405162461bcd60e51b81526004016107d49061501e565b60a085015160408501516122c3908463ffffffff61251016565b11156122e15760405162461bcd60e51b81526004016107d490614f3e565b60808501516122f6908363ffffffff612ef216565b60a086015161230c90839063ffffffff612ef216565b111561232a5760405162461bcd60e51b81526004016107d4906150ae565b5050505050565b602081015161234790839063ffffffff61251016565b60096000858152602001908152602001600020819055508285604001516001600160a01b031686600001516001600160a01b03167f0bcc4c97732e47d9946f229edb95f5b6323f601300e4690de719993f3c371129873386600001518760200151886040015189606001518e61014001518f61016001516040516123d2989796959493929190614d89565b60405180910390a45050505050565b60606040518060600160405280602481526020016153196024913961014086015186518651602080870151015193945061241a93612ffd565b6101408401518451865184516020015161243693929190612ffd565b61244f8561014001518660000151858560400151612ffd565b61246b8186600001518760400151856000015160400151612ffd565b6124878185600001518660400151856020015160400151612ffd565b83604001516001600160a01b031685604001516001600160a01b031614156124e0576124db818487604001516124d686602001516060015187600001516060015161251090919063ffffffff16565b612ffd565b61232a565b6124f881848760400151856000015160600151612ffd565b61232a81848660400151856020015160600151612ffd565b60008282018381101561252c5761252c611e4460008686613268565b90505b92915050565b60008381526007602090815260408083206001600160a01b0386168452909152902054612568908263ffffffff612ed316565b60009384526007602090815260408086206001600160a01b039095168652939052919092205550565b61259961373c565b6125a161373c565b6125aa83611a27565b90506125b683826132c2565b61252f838260200151613366565b6001600160a01b0382166000908152600660205260409020546125ed908263ffffffff61251016565b6001600160a01b0383166000818152600660209081526040808320949094558682526007815283822092825291909152205461262f908263ffffffff61251016565b60008481526007602090815260408083206001600160a01b038716808552925291829020929092555184907f182fa52899142d44ff5c45a6354d3b3e868d5b07db6a65580b39bd321bdaf8ac90611f55908590614e2c565b60008151600014156126a4576126a4611e446002845160006133e2565b816001835103815181106126b457fe5b0160200151825160001901909252506001600160f81b03191690565b600081602001835110156126f1576126f1611e4460058551856020016133e2565b50016020015190565b604051600090606090630b135d3f60e11b9061271c9087908690602401614e67565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050509050600060405161275f90614d28565b6040519081900381206001600160e01b031916915060009061278090614c4c565b6040519081900381206001600160e01b03191691506000906127a190614c21565b60405180910390206001600160e01b0319169050863b6127ec5762461bcd60e51b600052600160e51b6020526c062ba0a62622aa2fa2a92927a960811b604052600060605260646000fd5b602084016020818651838b5afa60203d146128325762461bcd60e51b600052600160e51b6020526c062ba0a62622aa2fa2a92927a960811b604052600060605260646000fd5b8080156128465760018114612877576128c4565b62461bcd60e51b600052600160e51b6020526c062ba0a62622aa2fa2a92927a960811b604052600060605260646000fd5b6001600160e01b031984166001600160e01b0319845116146001600160e01b031986166001600160e01b031985511614176001600160e01b031987166001600160e01b0319855116141797505b505050505050509392505050565b600081601401835110156128f3576128f3611e4460048551856014016133e2565b5001601401516001600160a01b031690565b6040516000906060906349b1a38160e11b9061292990879087908790602401614e3a565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050509050600060405161296c90614d1d565b60405180910390206001600160e01b0319169050863b6129ba5762461bcd60e51b600052600160e51b6020526f07ab20a624a220aa27a92fa2a92927a960691b604052600060605260646000fd5b602082016020818451838b5afa60203d14612a035762461bcd60e51b600052600160e51b6020526f07ab20a624a220aa27a92fa2a92927a960691b604052600060605260646000fd5b808015612a175760018114612a4b57612a66565b62461bcd60e51b600052600160e51b6020526f07ab20a624a220aa27a92fa2a92927a960691b604052600060605260646000fd5b6001600160e01b031984166001600160e01b03198451161495505b5050505050949350505050565b612a7b613780565b612a8361373c565b612a8c85611a27565b90506000612a98611f6e565b90503415612aaf57612aaf826020015182346125c4565b612abb86838387611f94565b6000612ad883604001518860a00151612ed390919063ffffffff16565b90506000612ae68783613401565b9050612af28882613417565b9450612b0588858984896000015161226c565b612b1a88848660200151876040015189612331565b612b25888487613478565b60405180606001604052806024815260200161531960249139604051612b4b9190614c15565b6040518091039020886101400151604051612b669190614c15565b60405180910390201415612b98576020840151885160408701518751612b98939291610a76919063ffffffff61251016565b60405180606001604052806024815260200161531960249139604051612bbe9190614c15565b6040518091039020886101600151604051612bd99190614c15565b60405180910390201415612c0b57612c0b846020015184610a768860600151896020015161251090919063ffffffff16565b505050509392505050565b600080604051602001612c2890614c57565b60408051601f1981840301815282825280516020918201208651878301209084529083018890526001600160a01b038716918301919091526060820152608090209150509392505050565b60085460405161190160f01b8152600281019190915260228101919091526042902090565b600061252f611723836134f0565b3415612d3b576001600160a01b038116600090815260066020526040902054612cd5903463ffffffff61251016565b6001600160a01b03821660008181526006602090815260408083209490945588825260078152838220928252919091522054612d17903463ffffffff61251016565b60008681526007602090815260408083206001600160a01b03861684529091529020555b60008381526007602090815260408083206001600160a01b0385168452909152902054612d69848784613586565b84811115612e605760008681526007602090815260408083206001600160a01b0386168452909152812054612da4908763ffffffff612ed316565b60008881526007602090815260408083206001600160a01b0388168452909152902054909150612dda908263ffffffff612ed316565b60008881526007602090815260408083206001600160a01b0388168452825280832093909355600690522054612e16908263ffffffff612ed316565b6001600160a01b038416600081815260066020526040808220939093559151909183156108fc02918491818181858888f19350505050158015612e5d573d6000803e3d6000fd5b50505b816001600160a01b031684877f8cc802977edfa64abef2b610ec3adbc8fbe0dabbe60079046b02789ac0d13b868887604051612e9d929190615189565b60405180910390a4505050505050565b6040805180820190915260048152630c3b823f60e01b602082015290565b805160208201fd5b600082821115612eec57612eec611e4460028585613268565b50900390565b600082612f015750600061252f565b82820282848281612f0e57fe5b041461252c5761252c611e4460018686613268565b6000808311612f445760405162461bcd60e51b81526004016107d490614f8e565b612f4f8484846135fd565b15612f6c5760405162461bcd60e51b81526004016107d490614ffe565b610bcb83612f80868563ffffffff612ef216565b9063ffffffff61367216565b6000808311612fad5760405162461bcd60e51b81526004016107d490614f8e565b612fb884848461369c565b15612fd55760405162461bcd60e51b81526004016107d490614ffe565b610bcb83612f80612fed82600163ffffffff612ed316565b610a6a888763ffffffff612ef216565b60008111801561301f5750816001600160a01b0316836001600160a01b031614155b156120775760038451116130455760405162461bcd60e51b81526004016107d49061509e565b6040518060600160405280602481526020016153196024913960405161306b9190614c15565b604051809103902084805190602001201415613196576001600160a01b0383166000908152600660205260409020548111156130b95760405162461bcd60e51b81526004016107d490614fce565b6001600160a01b0383166000908152600660205260408120546130e2908363ffffffff612ed316565b6001600160a01b038086166000908152600660205260409020829055909150831630146131905760006060846001600160a01b0316620493e08560405161312890614d33565b600060405180830381858888f193505050503d8060008114613166576040519150601f19603f3d011682016040523d82523d6000602084013e61316b565b606091505b50915091508161318d5760405162461bcd60e51b81526004016107d49061512e565b50505b50612077565b6020848101516001600160e01b031916600081815260109092526040909120546001600160a01b0316806131dc5760405162461bcd60e51b81526004016107d49061504e565b604051660fffffffffffe0603f88510116806084018201632a17967960e21b8352608060048401526001600160a01b03881660248401526001600160a01b0387166044840152856064840152608483015b8181101561324557895181526020998a01990161322d565b61020084858403866000895af18061325b573d85fd5b5050505050505050505050565b606063e946c1bb60e01b84848460405160240161328793929190614ee8565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290509392505050565b805160ff166003146132e65760405162461bcd60e51b81526004016107d4906150de565b60608201516001600160a01b0316156133255760608201516001600160a01b031633146133255760405162461bcd60e51b81526004016107d4906150fe565b600061332f611f6e565b9050806001600160a01b031683600001516001600160a01b031614611c745760405162461bcd60e51b81526004016107d490614fae565b6000818152600a602052604090819020805460ff19166001179055828101518351610140850151610160860151935185946001600160a01b039485169493909316927fdc47b3613d9fe400085f6dbdc99453462279057e6207385042827ed6b1a62cf7926133d692339290614d4c565b60405180910390a45050565b6060632800659560e01b84848460405160240161328793929190614f10565b6000818310613410578161252c565b5090919050565b61341f613780565b6020810182905260a0830151608084015161343b918491612f23565b808252608084015160c0850151613453929190612f23565b604082015260a083015160e084015161346d918491612f23565b606082015292915050565b606060405180606001604052806024815260200161531960249139610140850151855184519293506134ab928690612ffd565b6134c48461016001518486600001518560200151612ffd565b6134dc81856000015186604001518560400151612ffd565b612077818486604001518560600151612ffd565b60008060405160200161350290614c8e565b604051602081830303815290604052805190602001209050600083610140015160405161352f9190614c15565b60405180910390209050600084610160015160405161354e9190614c15565b604051908190039020601f19860180516101408801805161016090990180519784529581529285526101a08220915295905250525090565b60008381526007602081815260408084206001600160a01b038616808652908352818520805490869055878652938352818520908552909152909120546135d3908263ffffffff61251016565b60009384526007602090815260408086206001600160a01b03909516865293905291909220555050565b600080831161361e5760405162461bcd60e51b81526004016107d490614f8e565b811580613629575083155b156136365750600061166d565b6000838061364057fe5b8584099050613655858463ffffffff612ef216565b613667826103e863ffffffff612ef216565b101595945050505050565b60008161368857613688611e4460038585613268565b600082848161369357fe5b04949350505050565b60008083116136bd5760405162461bcd60e51b81526004016107d490614f8e565b8115806136c8575083155b156136d55750600061166d565b600083806136df57fe5b8584099050836136f5818363ffffffff612ed316565b816136fc57fe5b069050613655858463ffffffff612ef216565b6040518060600160405280613722613780565b815260200161372f613780565b8152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b815481835581811115611c7457600083815260209020611c749181019083016137a8565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b611f9191905b808211156137c257600081556001016137ae565b5090565b803561252f816152e9565b600082601f8301126137e257600080fd5b81356137f56137f0826151ca565b6151a4565b81815260209384019390925082018360005b83811015613833578135860161381d8882613900565b8452506020928301929190910190600101613807565b5050505092915050565b803561252f816152fd565b803561252f81615306565b803561252f8161530f565b805161252f8161530f565b60008083601f84011261387b57600080fd5b5081356001600160401b0381111561389257600080fd5b6020830191508360018202830111156138aa57600080fd5b9250929050565b600082601f8301126138c257600080fd5b81356138d06137f0826151ea565b915080825260208301602083018583830111156138ec57600080fd5b6138f7838284615293565b50505092915050565b6000610180828403121561391357600080fd5b61391e6101806151a4565b9050600061392c84846137c6565b825250602061393d848483016137c6565b6020830152506040613951848285016137c6565b6040830152506060613965848285016137c6565b606083015250608061397984828501613848565b60808301525060a061398d84828501613848565b60a08301525060c06139a184828501613848565b60c08301525060e06139b584828501613848565b60e0830152506101006139ca84828501613848565b610100830152506101206139e084828501613848565b610120830152506101408201356001600160401b03811115613a0157600080fd5b613a0d848285016138b1565b610140830152506101608201356001600160401b03811115613a2e57600080fd5b613a3a848285016138b1565b6101608301525092915050565b600060208284031215613a5957600080fd5b6000610bcb84846137c6565b60008060408385031215613a7857600080fd5b6000613a8485856137c6565b9250506020613a95858286016137c6565b9150509250929050565b60008060408385031215613ab257600080fd5b6000613abe85856137c6565b9250506020613a958582860161383d565b600060208284031215613ae157600080fd5b81356001600160401b03811115613af757600080fd5b610bcb848285016137d1565b600060208284031215613b1557600080fd5b6000610bcb8484613848565b60008060408385031215613b3457600080fd5b6000613a848585613848565b60008060008060608587031215613b5657600080fd5b6000613b628787613848565b9450506020613b73878288016137c6565b93505060408501356001600160401b03811115613b8f57600080fd5b613b9b87828801613869565b95989497509550505050565b600080600060608486031215613bbc57600080fd5b6000613bc88686613848565b9350506020613bd9868287016137c6565b92505060408401356001600160401b03811115613bf557600080fd5b613c01868287016138b1565b9150509250925092565b600080600060608486031215613c2057600080fd5b6000613c2c8686613848565b9350506020613c3d86828701613848565b92505060408401356001600160401b03811115613c5957600080fd5b613c0186828701613900565b600060208284031215613c7757600080fd5b6000610bcb8484613853565b600060208284031215613c9557600080fd5b6000610bcb848461385e565b600060208284031215613cb357600080fd5b81356001600160401b03811115613cc957600080fd5b610bcb84828501613900565b60008060008060808587031215613ceb57600080fd5b84356001600160401b03811115613d0157600080fd5b613d0d87828801613900565b94505060208501356001600160401b03811115613d2957600080fd5b613d3587828801613900565b93505060408501356001600160401b03811115613d5157600080fd5b613d5d878288016138b1565b92505060608501356001600160401b03811115613d7957600080fd5b613d85878288016138b1565b91505092959194509250565b600080600060608486031215613da657600080fd5b83356001600160401b03811115613dbc57600080fd5b613dc886828701613900565b9350506020613bd986828701613848565b60008060008060008060808789031215613df257600080fd5b6000613dfe8989613848565b9650506020613e0f89828a016137c6565b95505060408701356001600160401b03811115613e2b57600080fd5b613e3789828a01613869565b945094505060608701356001600160401b03811115613e5557600080fd5b613e6189828a01613869565b92509250509295509295509295565b6000613e7c8383614bc8565b505060600190565b613e8d81615267565b82525050565b613e8d81615224565b6000613ea782615217565b613eb1818561521b565b9350613ebc83615211565b8060005b83811015613eea578151613ed48882613e70565b9750613edf83615211565b925050600101613ec0565b509495945050505050565b613e8d8161522f565b613e8d81611f91565b613e8d613f1382611f91565b611f91565b613e8d81615234565b6000613f2d8385610d9b565b9350613f3a838584615293565b50500190565b6000613f4b82615217565b613f55818561521b565b9350613f6581856020860161529f565b613f6e816152cb565b9093019392505050565b6000613f8382615217565b613f8d8185610d9b565b9350613f9d81856020860161529f565b9290920192915050565b613e8d81615272565b613e8d8161527d565b6000613fc660128361521b565b7113115391d51217cd8d57d49154555254915160721b815260200192915050565b6000613ff4600d8361521b565b6c24a72b20a624a22faa20a5a2a960991b815260200192915050565b600061401d600e8361521b565b6d13d491115497d3d591549192531360921b815260200192915050565b6000614047601f83610d9b565b7f697356616c69645369676e617475726528627974657333322c627974657329008152601f0192915050565b6000614080601c83610d9b565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c0192915050565b60006140b9601983610d9b565b7f75696e74323536206d616b65724173736574416d6f756e742c00000000000000815260190192915050565b60006140f2601d83610d9b565b7f697356616c69645369676e61747572652862797465732c6279746573290000008152601d0192915050565b600061412b601683610d9b565b751859191c995cdcc81cd95b99195c9059191c995cdccb60521b815260160192915050565b600061415d601283610d9b565b710b4cae4de8af0a8e4c2dce6c2c6e8d2dedc560731b815260120192915050565b600061418b600683610d9b565b6509ee4c8cae4560d31b815260060192915050565b60006141ad601a8361521b565b7f41535345545f50524f58595f414c52454144595f455849535453000000000000815260200192915050565b60006141e660158361521b565b7414d251d3905515549157d55394d5541413d4951151605a1b815260200192915050565b6000614217603883610d9b565b7f697356616c696456616c696461746f725369676e61747572652861646472657381527f732c627974657333322c616464726573732c6279746573290000000000000000602082015260380192915050565b6000614276601583610d9b565b74189e5d195cc81b585ad95c905cdcd95d11185d184b605a1b815260150192915050565b60006142a760228361521b565b7f5441524745545f49535f414c52454144595f4445504f5349545f4f504552415481526127a960f11b602082015260400192915050565b60006142eb601583610d9b565b741859191c995cdcc81b585ad95c9059191c995cdccb605a1b815260150192915050565b600061431c601e8361521b565b7f53454e4445525f49535f4e4f545f4445504f5349545f4f50455241544f520000815260200192915050565b600061435560108361521b565b6f4449564953494f4e5f42595f5a45524f60801b815260200192915050565b600061438160178361521b565b7f494e56414c49445f4f524445525f5349474e4154555245000000000000000000815260200192915050565b60006143ba600d8361521b565b6c24a72b20a624a22fa6a0a5a2a960991b815260200192915050565b60006143e360238361521b565b7f5441524745545f49535f414c52454144595f57495448445241575f4f504552418152622a27a960e91b602082015260400192915050565b6000614428601483610d9b565b7362797465732074616b657241737365744461746160601b815260140192915050565b6000614458601e8361521b565b7f4445504f5349545f414d4f554e545f49535f494e53554646494349454e540000815260200192915050565b6000614491600f8361521b565b6e0929cac82989288bea8b0be9082a69608b1b815260200192915050565b60006144bc600183610d9b565b602960f81b815260010192915050565b60006144d9601183610d9b565b701d5a5b9d0c8d4d881d185ad95c9199594b607a1b815260110192915050565b600061450660118361521b565b70494e56414c49445f5349474e415455524560781b815260200192915050565b6000614533600e8361521b565b6d2927aaa72224a723afa2a92927a960911b815260200192915050565b600061455d60108361521b565b6f2320a4a622a22fa2ac22a1aaaa24a7a760811b815260200192915050565b6000614589600d8361521b565b6c54414b45525f4f56455250415960981b815260200192915050565b60006145b2600d83610d9b565b6c1d5a5b9d0c8d4d881cd85b1d0b609a1b8152600d0192915050565b60006145db601e8361521b565b7f5441524745545f49535f4e4f545f4445504f5349545f4f50455241544f520000815260200192915050565b600061461460148361521b565b731253959053125117d51052d15497d05353d5539560621b815260200192915050565b6000614644600a83610d9b565b696279746573206461746160b01b8152600a0192915050565b600061466a601a8361521b565b7f41535345545f50524f58595f444f45535f4e4f545f4558495354000000000000815260200192915050565b60006146a360118361521b565b7014d251d3905515549157d253131151d053607a1b815260200192915050565b60006146d0601e8361521b565b7f4c454e4754485f475245415445525f5448414e5f305f52455155495245440000815260200192915050565b600061470960178361521b565b7f494e56414c49445f4e45575f4f524445525f45504f4348000000000000000000815260200192915050565b6000614742600d8361521b565b6c24a72b20a624a22fa7aba722a960991b815260200192915050565b600061476b601e8361521b565b7f4c454e4754485f475245415445525f5448414e5f335f52455155495245440000815260200192915050565b60006147a4601183610d9b565b701d5a5b9d0c8d4d881b585ad95c9199594b607a1b815260110192915050565b60006147d160128361521b565b71494e56414c49445f46494c4c5f505249434560701b815260200192915050565b60006147ff60128361521b565b71149151539514905390d657d253131151d05360721b815260200192915050565b600061482d60138361521b565b7227a7262cafa1a7a72a2920a1aa2fa7aba722a960691b815260200192915050565b600061485c602d83610d9b565b7f697356616c696457616c6c65745369676e617475726528627974657333322c6181526c6464726573732c62797465732960981b6020820152602d0192915050565b60006148ab601c83610d9b565b7f6164647265737320666565526563697069656e74416464726573732c000000008152601c0192915050565b600061252f600083610d9b565b60006148f160108361521b565b6f4f524445525f554e46494c4c41424c4560801b815260200192915050565b600061491d601f8361521b565b7f5441524745545f49535f4e4f545f57495448445241575f4f50455241544f5200815260200192915050565b6000614956600e8361521b565b6d24a72b20a624a22fa9a2a72222a960911b815260200192915050565b6000614980601683610d9b565b751859191c995cdcc81cda59db995c9059191c995cdccb60521b815260160192915050565b60006149b260188361521b565b7f4e454741544956455f5350524541445f52455155495245440000000000000000815260200192915050565b60006149eb60148361521b565b73494e56414c49445f54585f5349474e415455524560601b815260200192915050565b6000614a1b60128361521b565b7111551217d4d15391125391d7d1905253115160721b815260200192915050565b6000614a49601583610d9b565b741859191c995cdcc81d185ad95c9059191c995cdccb605a1b815260150192915050565b6000614a7a601e83610d9b565b7f75696e743235362065787069726174696f6e54696d655365636f6e64732c00008152601e0192915050565b6000614ab3601a8361521b565b7f53454e4445525f49535f4e4f545f574954484452415741424c45000000000000815260200192915050565b6000614aec601983610d9b565b7f75696e743235362074616b65724173736574416d6f756e742c00000000000000815260190192915050565b6000614b2560118361521b565b7013115391d51217cc17d491545552549151607a1b815260200192915050565b80516080830190614b568482613efe565b506020820151614b696020850182613efe565b506040820151614b7c6040850182613efe565b5060608201516120776060850182613efe565b8051610120830190614ba18482614b45565b506020820151614bb46080850182614b45565b506040820151612077610100850182613efe565b80516060830190614bd98482614bff565b506020820151614bec6020850182613efe565b5060408201516120776040850182613efe565b613e8d81615261565b6000610bcb828486613f21565b600061166d8284613f78565b600061252f8261403a565b6000614c3782614073565b9150614c438284613f07565b50602001919050565b600061252f826140e5565b6000614c6282614150565b9150614c6d826145a5565b9150614c7882614973565b9150614c8382614637565b915061252f826144af565b6000614c998261417e565b9150614ca4826142de565b9150614caf82614a3c565b9150614cba8261489e565b9150614cc58261411e565b9150614cd0826140ac565b9150614cdb82614adf565b9150614ce682614797565b9150614cf1826144cc565b9150614cfc82614a6d565b9150614d07826145a5565b9150614d1282614269565b9150614c838261441b565b600061252f8261420a565b600061252f8261484f565b600061252f826148d7565b6020810161252f8284613e93565b60608101614d5a8286613e84565b8181036020830152614d6c8185613f40565b90508181036040830152614d808184613f40565b95945050505050565b6101008101614d98828b613e93565b614da5602083018a613e84565b614db26040830189613efe565b614dbf6060830188613efe565b614dcc6080830187613efe565b614dd960a0830186613efe565b81810360c0830152614deb8185613f40565b905081810360e0830152614dff8184613f40565b9a9950505050505050505050565b6020808252810161252c8184613e9c565b6020810161252f8284613ef5565b6020810161252f8284613efe565b60608101614e488286613efe565b614e556020830185613e93565b8181036040830152614d808184613f40565b60408101614e758285613efe565b8181036020830152610bcb8184613f40565b60808101614e958287613efe565b614ea26020830186614bff565b614eaf6040830185613efe565b614d806060830184613efe565b60408101614eca8285613f18565b61166d6020830184613e93565b6020808252810161252c8184613f40565b60608101614ef68286613fa7565b614f036020830185613efe565b610bcb6040830184613efe565b60608101614ef68286613fb0565b6020808252810161252f81613fb9565b6020808252810161252f81613fe7565b6020808252810161252f81614010565b6020808252810161252f816141a0565b6020808252810161252f816141d9565b6020808252810161252f8161429a565b6020808252810161252f8161430f565b6020808252810161252f81614348565b6020808252810161252f81614374565b6020808252810161252f816143ad565b6020808252810161252f816143d6565b6020808252810161252f8161444b565b6020808252810161252f81614484565b6020808252810161252f816144f9565b6020808252810161252f81614526565b6020808252810161252f81614550565b6020808252810161252f8161457c565b6020808252810161252f816145ce565b6020808252810161252f81614607565b6020808252810161252f8161465d565b6020808252810161252f81614696565b6020808252810161252f816146c3565b6020808252810161252f816146fc565b6020808252810161252f81614735565b6020808252810161252f8161475e565b6020808252810161252f816147c4565b6020808252810161252f816147f2565b6020808252810161252f81614820565b6020808252810161252f816148e4565b6020808252810161252f81614910565b6020808252810161252f81614949565b6020808252810161252f816149a5565b6020808252810161252f816149de565b6020808252810161252f81614a0e565b6020808252810161252f81614aa6565b6020808252810161252f81614b18565b6080810161252f8284614b45565b610120810161252f8284614b8f565b6060810161252f8284614bc8565b604081016151978285613efe565b61166d6020830184613efe565b6040518181016001600160401b03811182821017156151c257600080fd5b604052919050565b60006001600160401b038211156151e057600080fd5b5060209081020190565b60006001600160401b0382111561520057600080fd5b506020601f91909101601f19160190565b60200190565b5190565b90815260200190565b600061252f82615255565b151590565b6001600160e01b03191690565b80610d9b816152d5565b80610d9b816152df565b6001600160a01b031690565b60ff1690565b600061252f82615288565b600061252f82615241565b600061252f8261524b565b600061252f82615224565b82818337506000910152565b60005b838110156152ba5781810151838201526020016152a2565b838111156120775750506000910152565b601f01601f191690565b60048110610c6257fe5b60088110610c6257fe5b6152f281615224565b8114610c6257600080fd5b6152f28161522f565b6152f281611f91565b6152f28161523456fef47261b00000000000000000000000000000000000000000000000000000000000000000a365627a7a72315820b53bc6df196a4770dea96b0a47e540c106600ce51886e42222292d6b86d548d86c6578706572696d656e74616cf564736f6c63430005100040

Deployed Bytecode Sourcemap

156944:546:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55245:197;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;55245:197:0;;;;;;;;:::i;:::-;;60879:42;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;60879:42:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;60972;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;60972:42:0;;;;;;;;:::i;:::-;;;;;;;;54027:77;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;54027:77:0;;;;;;;;:::i;105021:472::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;105021:472:0;;;;;;;;:::i;59743:51::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59743:51:0;;;:::i;142249:4330::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;142249:4330:0;;;;;;;;:::i;:::-;;;;;;;;123957:47;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;123957:47:0;;;;;;;;:::i;:::-;;;;;;;;59660:76;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59660:76:0;;;:::i;120798:268::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;120798:268:0;;;;;;;;:::i;61632:1102::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;61632:1102:0;;;;;;;;:::i;53904:49::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;53904:49:0;;;;;;;;:::i;49561:50::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;49561:50:0;;;;;;;;:::i;125027:160::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;125027:160:0;;;;;;;;:::i;51073:362::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;51073:362:0;;;;;;;;:::i;55613:221::-;;;;;;;;;:::i;132352:45::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;132352:45:0;;;;;;;;:::i;105735:426::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;105735:426:0;;;;;;;;:::i;104609:71::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;104609:71:0;;;;;;;;:::i;121265:430::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;121265:430:0;;;;;;;;:::i;:::-;;;;;;;;104486:63;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;104486:63:0;;;;;;;;:::i;59468:185::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59468:185:0;;;:::i;:::-;;;;;;;;49240:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;49240:20:0;;;:::i;51443:625::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;51443:625:0;;;;;;;;:::i;52076:356::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;52076:356:0;;;;;;;;:::i;106540:5045::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;106540:5045:0;;;;;;;;:::i;54943:164::-;;;;;;;;;:::i;63058:406::-;;;;;;;;;:::i;:::-;;;;;;;;132829:1571;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;132829:1571:0;;;;;;;;:::i;49441:33::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;49441:33:0;;;;;;;;:::i;49381:51::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;49381:51:0;;;;;;;;:::i;124218:614::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;124218:614:0;;;;;;;;:::i;64198:2316::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;64198:2316:0;;;;;;;;:::i;:::-;;;;;;;;63700:218;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;63700:218:0;;;;;;;;:::i;61236:67::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;61236:67:0;;;;;;;;:::i;17087:33::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;17087:33:0;;;:::i;132452:44::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;132452:44:0;;;:::i;50796:269::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;50796:269:0;;;;;;;;:::i;66757:488::-;;;;;;;;;:::i;49269:34::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;49269:34:0;;;;;;;;:::i;52440:614::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;52440:614:0;;;;;;;;:::i;157133:52::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;157133:52:0;;;:::i;55245:197::-;47998:34;:32;:34::i;:::-;50676:10;50657:30;;;;:18;:30;;;;;;55369:9;;50657:30;;;:57;;-1:-1:-1;;;;;;50691:23:0;;50704:10;50691:23;50657:57;50635:133;;;;-1:-1:-1;;;50635:133:0;;;;;;;;;;;;;;;;;55396:38;55413:9;55424;55396:16;:38::i;:::-;48043:1;48055:14;:12;:14::i;:::-;55245:197;;:::o;60879:42::-;;;;;;;;;;;;;:::o;60972:::-;;;;;;;;;;;;;;;:::o;54027:77::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;105021:472::-;-1:-1:-1;;;;;105173:27:0;;105190:10;105173:27;105169:269;;105243:130;105282:4;105309:13;105345:9;;105243:130;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;105243:16:0;;-1:-1:-1;;;105243:130:0:i;:::-;105217:209;;;;-1:-1:-1;;;105217:209:0;;;;;;;;;-1:-1:-1;;105448:15:0;;;;:9;:15;;;;;;;;-1:-1:-1;;;;;105448:30:0;;;;;;;;;;:37;;-1:-1:-1;;105448:37:0;105481:4;105448:37;;;105021:472::o;59743:51::-;59788:6;59743:51;:::o;142249:4330::-;142493:59;;:::i;:::-;47998:34;:32;:34::i;:::-;142826:24;;;;;142798:25;;;;:52;;;;142889:24;;;142861:25;;;:52;142966:39;;:::i;:::-;143008:23;143021:9;143008:12;:23::i;:::-;142966:65;;143042:40;;:::i;:::-;143085:24;143098:10;143085:12;:24::i;:::-;143042:67;;143154:28;143185:26;:24;:26::i;:::-;143154:57;;143285:137;143319:9;143343:13;143371:12;143398:13;143285:19;:137::i;:::-;143433:140;143467:10;143492:14;143521:12;143548:14;143433:19;:140::i;:::-;143584:39;143601:9;143612:10;143584:16;:39::i;:::-;143703:200;143745:9;143769:10;143794:13;:41;;;143850:14;:42;;;143703:27;:200::i;:::-;144033:23;;:46;;;;144155;;143682:221;;-1:-1:-1;143951:261:0;;143981:9;;144005:13;;144033:46;;143951:15;:261::i;:::-;144307:24;;;;;:47;;;;144431;;144223:266;;144253:10;;144278:14;;144307:47;;;144223:15;:266::i;:::-;144544:211;144576:9;144600:12;144627:13;:23;;;144665:13;:41;;;144721:18;:23;;;144544:17;:211::i;:::-;144766:215;144798:10;144823:12;144850:14;:24;;;144889:14;:42;;;144946:18;:24;;;144766:17;:215::i;:::-;145049:139;145083:9;145107:10;145132:12;145159:18;145049:19;:139::i;:::-;59721:14;;;;;;;;;;;;;;;;;59711:25;;;;;;;;;;;;;;;145263:9;:24;;;145253:35;;;;;;;;;;;;;;;:63;145249:387;;;145333:291;145378:13;:23;;;145420:9;:22;;;145461:148;145572:18;:23;;;:36;;;145461:102;145517:18;:45;;;145461:18;:24;;;:47;;;:55;;:102;;;;:::i;:::-;:110;:148;:110;:148;:::i;:::-;145333:26;:291::i;:::-;59721:14;;;;;;;;;;;;;;;;;59711:25;;;;;;;;;;;;;;;145660:10;:25;;;145650:36;;;;;;;;;;;;;;;:64;145646:335;;;145776:24;;;;;145819:23;;145916:24;;;;:37;;;145861:23;;:46;;;;145731:238;;145861:93;;:46;:93;:54;:93;:::i;145731:238::-;59721:14;;;;;;;;;;;;;;;;;59711:25;;;;;;;;;;;;;;;146005:9;:24;;;145995:35;;;;;;;;;;;;;;;:63;145991:265;;;146075:169;146120:13;:23;;;146162:12;146193:18;:23;;;:36;;;146075:26;:169::i;:::-;59721:14;;;;;;;;;;;;;;;;;59711:25;;;;;;;;;;;;;;;146280:10;:25;;;146270:36;;;;;;;;;;;;;;;:64;146266:268;;;146351:171;146396:14;:24;;;146439:12;146470:18;:24;;;:37;;;146351:26;:171::i;:::-;-1:-1:-1;;;48055:14:0;:12;:14::i;:::-;142249:4330;;;;;;:::o;123957:47::-;;;;;;;;;;;;-1:-1:-1;;;;;123957:47:0;;:::o;59660:76::-;59721:14;;;;;;;;;;;;;;;;;59711:25;;;;;;;;;;;;;;;59660:76;:::o;120798:268::-;47998:34;:32;:34::i;:::-;120934:13;;120911:20;120958:101;120983:12;120978:1;:17;120958:101;;121017:30;121037:6;121044:1;121037:9;;;;;;;;;;;;;;121017:19;:30::i;:::-;-1:-1:-1;120997:3:0;;120958:101;;;;48043:1;48055:14;:12;:14::i;:::-;120798:268;:::o;61632:1102::-;47998:34;:32;:34::i;:::-;61740:20;61763:26;:24;:26::i;:::-;61740:49;-1:-1:-1;62050:21:0;-1:-1:-1;;;;;62074:26:0;;62090:10;62074:26;:52;;62116:10;62074:52;;;62111:1;62074:52;-1:-1:-1;;;;;62296:24:0;;;62217:21;62296:24;;;:10;:24;;;;;;;;:39;;;;;;;;;;62050:76;;-1:-1:-1;62260:1:0;62241:20;;;62428:29;;;62406:102;;;;-1:-1:-1;;;62406:102:0;;;;;;;;;-1:-1:-1;;;;;62551:24:0;;;;;;;:10;:24;;;;;;;;:39;;;;;;;;;;;;;;:55;;;62622:104;;;;;62593:13;;62622:104;;;;;;;;;;48043:1;;;;48055:14;:12;:14::i;53904:49::-;;;;;;;;;;;;;:::o;49561:50::-;;;;;;;;;;;;;;;:::o;125027:160::-;-1:-1:-1;;;;;;125153:26:0;;125121:7;125153:26;;;:12;:26;;;;;;-1:-1:-1;;;;;125153:26:0;125027:160;;;;:::o;51073:362::-;50324:5;;-1:-1:-1;;;;;50324:5:0;50310:10;:19;50288:88;;;;-1:-1:-1;;;50288:88:0;;;;;;;;;-1:-1:-1;;;;;51194:26:0;;;;;;:18;:26;;;;;;;;51193:27;51171:112;;;;-1:-1:-1;;;51171:112:0;;;;;;;;;-1:-1:-1;;;;;51296:26:0;;;;;;:18;:26;;;;;;:33;;-1:-1:-1;;51296:33:0;51325:4;51296:33;;;;;;27:10:-1;;23:18;;;45:23;;51340:30:0;;;;;;;-1:-1:-1;;;;;;51340:30:0;;;;;51386:41;51416:10;;51296:26;51386:41;;;51073:362;:::o;55613:221::-;47998:34;:32;:34::i;:::-;50486:10;50468:29;;;;:17;:29;;;;;;;;50446:109;;;;-1:-1:-1;;;50446:109:0;;;;;;;;;55778:48;55794:9;55805;55816;55778:15;:48::i;:::-;48055:14;:12;:14::i;132352:45::-;;;;;;;;;;;;;;;:::o;105735:426::-;47998:34;:32;:34::i;:::-;105896:21;105920:26;:24;:26::i;:::-;-1:-1:-1;;;;;105957:32:0;;;;;;;:17;:32;;;;;;;;:50;;;;;;;;;;;;;;:61;;-1:-1:-1;;105957:61:0;;;;;;;106034:119;105957:32;;-1:-1:-1;105957:50:0;;106034:119;;;;105957:61;;106034:119;;;;;;;;;;48043:1;48055:14;:12;:14::i;104609:71::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;121265:430::-;121368:27;121413:20;121436:6;:13;121413:36;;121460:38;121526:12;121501:38;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;-1:-1:-1;121460:79:0;-1:-1:-1;121555:9:0;121550:110;121575:12;121570:1;:17;121550:110;;121625:23;121638:6;121645:1;121638:9;;;;;;;;;;;;;;121625:12;:23::i;:::-;121609:10;121620:1;121609:13;;;;;;;;;;;;;;;;;:39;121589:3;;121550:110;;;-1:-1:-1;121677:10:0;121265:430;-1:-1:-1;;;121265:430:0:o;104486:63::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;59468:185::-;;;;;;;;;;;;;;;;;;;:::o;49240:20::-;;;-1:-1:-1;;;;;49240:20:0;;:::o;51443:625::-;50324:5;;-1:-1:-1;;;;;50324:5:0;50310:10;:19;50288:88;;;;-1:-1:-1;;;50288:88:0;;;;;;;;;-1:-1:-1;;;;;51566:26:0;;;;;;:18;:26;;;;;;;;51544:107;;;;-1:-1:-1;;;51544:107:0;;;;;;;;;-1:-1:-1;;;;;51671:26:0;;;;;;:18;:26;;;;;51664:33;;-1:-1:-1;;51664:33:0;;;51708:294;51732:17;:24;51728:28;;51708:294;;;51806:6;-1:-1:-1;;;;;51782:30:0;:17;51800:1;51782:20;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;51782:20:0;:30;51778:213;;;51856:17;51874:24;;-1:-1:-1;;51874:28:0;;;51856:47;;;;;;;;;;;;;;;;;51833:20;;-1:-1:-1;;;;;51856:47:0;;;;51851:1;;51833:20;;;;;;;;;;;;;;;:70;;-1:-1:-1;;;;;;51833:70:0;-1:-1:-1;;;;;51833:70:0;;;;;;;;;;-1:-1:-1;51922:29:0;;-1:-1:-1;;51922:29:0;;;;;;:::i;:::-;;51970:5;;51778:213;51758:3;;51708:294;;;-1:-1:-1;52017:43:0;;52049:10;;-1:-1:-1;;;;;52017:43:0;;;;;;;;51443:625;:::o;52076:356::-;50324:5;;-1:-1:-1;;;;;50324:5:0;50310:10;:19;50288:88;;;;-1:-1:-1;;;50288:88:0;;;;;;;;;-1:-1:-1;;;;;52196:25:0;;;;;;:17;:25;;;;;;;;52195:26;52173:110;;;;-1:-1:-1;;;52173:110:0;;;;;;;;;-1:-1:-1;;;;;52296:25:0;;;;;;:17;:25;;;;;;:32;;-1:-1:-1;;52296:32:0;52324:4;52296:32;;;;;;52339:16;27:10:-1;;23:18;;;45:23;;52339:29:0;;;;;;-1:-1:-1;;;;;;52339:29:0;;;;;52384:40;52413:10;;52296:25;52384:40;;;52076:356;:::o;106540:5045::-;106709:12;106780:1;106761:9;:16;:20;106739:100;;;;-1:-1:-1;;;106739:100:0;;;;;;;;;106907:22;106938:23;:9;:21;:23::i;:::-;106932:30;;;-1:-1:-1;107064:29:0;107039:55;;107017:126;;;;-1:-1:-1;;;107017:126:0;;;;;;;;;107156:27;107200:16;107186:31;;;;;;;;;;107156:61;-1:-1:-1;107280:7:0;;;;;107695:13;:38;;;;;;;;;107691:3536;;;107750:27;;-1:-1:-1;;;107750:27:0;;;;;;;;107691:3536;108065:21;108048:13;:38;;;;;;;;;108044:3183;;;108129:16;;:21;108103:100;;;;-1:-1:-1;;;108103:100:0;;;;;;;;;-1:-1:-1;108228:5:0;;-1:-1:-1;108248:14:0;;-1:-1:-1;;;;;108248:14:0;108044:3183;108338:20;108321:13;:37;;;;;;;;;108317:2910;;;108401:9;:16;108421:2;108401:22;108375:102;;;;-1:-1:-1;;;108375:102:0;;;;;;;;;108502:9;108512:1;108502:12;;;;;;;;;;;;;;;-1:-1:-1;108534:24:0;:9;108556:1;108534:24;:21;:24;:::i;:::-;108530:28;-1:-1:-1;108577:25:0;:9;108599:2;108577:25;:21;:25;:::i;:::-;108573:29;;108629:107;108657:4;108680:1;108700;108720;108629:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;108629:107:0;;-1:-1:-1;;108629:107:0;;-1:-1:-1;;;;;108761:26:0;;;;;;;-1:-1:-1;108802:14:0;;-1:-1:-1;;;;;;;108802:14:0;108317:2910;108896:21;108879:13;:38;;;;;;;;;108875:2352;;;108960:9;:16;108980:2;108960:22;108934:102;;;;-1:-1:-1;;;108934:102:0;;;;;;;;;109061:9;109071:1;109061:12;;;;;;;;;;;;;;;-1:-1:-1;109093:24:0;:9;109115:1;109093:24;:21;:24;:::i;:::-;109089:28;-1:-1:-1;109136:25:0;:9;109158:2;109136:25;:21;:25;:::i;:::-;109132:29;;109188:233;109322:4;109226:119;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;109226:119:0;;;109216:130;;;;;;109365:1;109385;109405;109188:233;;;;;;;;;;;;;;;;;;;108875:2352;109675:20;109658:13;:37;;;;;;;;;109654:1573;;;109722:120;109763:4;109786:13;109818:9;109722:22;:120::i;:::-;109712:130;-1:-1:-1;109857:14:0;;-1:-1:-1;;;;;;109857:14:0;109654:1573;110379:23;110362:13;:40;;;;;;;;;110358:869;;;110508:16;;110482:23;110566:43;110508:9;-1:-1:-1;;110588:20:0;;110566:43;:21;:43;:::i;:::-;-1:-1:-1;;;;;110685:32:0;;;;;;;:17;:32;;;;;;;;:50;;;;;;;;;;110539:70;;-1:-1:-1;110685:50:0;;110680:104;;110763:5;110756:12;;;;;;;;;;;;110680:104;110808:158;110852:16;110887:4;110910:13;110942:9;110808:25;:158::i;:::-;110798:168;-1:-1:-1;110981:14:0;;-1:-1:-1;;;;;;;;110981:14:0;110358:869;111106:23;111089:13;:40;;;;;;;;;111085:142;;;-1:-1:-1;;;111156:15:0;;;;:9;:15;;;;;;;;-1:-1:-1;;;;;111156:30:0;;;;;;;;;;;;;-1:-1:-1;111201:14:0;;-1:-1:-1;;;111201:14:0;111085:142;111546:31;;-1:-1:-1;;;111546:31:0;;;;;;;;106540:5045;;;;;;:::o;54943:164::-;47998:34;:32;:34::i;:::-;55050:49;55066:9;55077:10;55089:9;55050:15;:49::i;:::-;48055:14;:12;:14::i;63058:406::-;63258:30;;:::i;:::-;47998:34;:32;:34::i;:::-;63320:107;63352:5;63372:20;63407:9;63320:17;:107::i;:::-;63306:121;-1:-1:-1;48055:14:0;:12;:14::i;132829:1571::-;133079:21;;-1:-1:-1;;;;;133079:21:0;:35;133057:103;;;;-1:-1:-1;;;133057:103:0;;;;;;;;;133173:23;133199:117;133217:98;133253:4;133272:13;133300:4;;133217:98;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;133217:21:0;;-1:-1:-1;;;133217:98:0:i;:::-;133199:17;:117::i;:::-;133407:29;;;;:12;:29;;;;;;133173:143;;-1:-1:-1;133407:29:0;;133406:30;133384:95;;;;-1:-1:-1;;;133384:95:0;;;;;;;;;-1:-1:-1;;;;;133568:27:0;;133585:10;133568:27;133564:423;;133673:141;133712:15;133750:13;133786:9;;133673:141;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;133673:16:0;;-1:-1:-1;;;133673:141:0:i;:::-;133647:223;;;;-1:-1:-1;;;133647:223:0;;;;;;;;;133938:21;:37;;-1:-1:-1;;;;;;133938:37:0;-1:-1:-1;;;;;133938:37:0;;;;;133564:423;134031:29;;;;:12;:29;;;;;;:36;;-1:-1:-1;;134031:36:0;134063:4;134031:36;;;134096:32;134104:4;;134096:32;;134123:4;;;;134096:32;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;134078:50:0;;;134161:7;134139:73;;;;-1:-1:-1;;;134139:73:0;;;;;;;;;-1:-1:-1;;;;;134303:27:0;;134320:10;134303:27;134299:94;;134347:21;:34;;-1:-1:-1;;;;;;134347:34:0;;;134299:94;132829:1571;;;;;;;;:::o;49441:33::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;49441:33:0;;-1:-1:-1;49441:33:0;:::o;49381:51::-;;;;;;;;;;;;;;;:::o;124218:614::-;50324:5;;-1:-1:-1;;;;;50324:5:0;50310:10;:19;50288:88;;;;-1:-1:-1;;;50288:88:0;;;;;;;;;124382:19;124416:10;-1:-1:-1;;;;;124404:34:0;;:36;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;124404:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;124404:36:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;124404:36:0;;;;;;;;;-1:-1:-1;;;;;;124479:26:0;;124451:25;124479:26;;;:12;:26;;;;;;124382:58;;-1:-1:-1;;;;;;124479:26:0;124538:31;;124516:107;;;;-1:-1:-1;;;124516:107:0;;;;;;;;;-1:-1:-1;;;;;;124686:26:0;;;;;;:12;:26;;;;;;;:39;;-1:-1:-1;;;;;;124686:39:0;-1:-1:-1;;;;;124686:39:0;;;;;124741:83;;;;;124686:26;;:39;;124741:83;;;;;;;;;;50387:1;;124218:614;:::o;64198:2316::-;64288:26;;:::i;:::-;64389:19;64402:5;64389:12;:19::i;:::-;64367;;;;:41;;;64493:27;;;;:6;:27;;;;;;;;64453:37;;;:67;64828:22;;;;64824:160;;64902:38;64896:45;64872:69;;;;64956:16;;64824:160;65303:22;;;;65299:160;;65377:38;65371:45;;65299:160;65556:5;:22;;;65515:9;:37;;;:63;65511:182;;65625:24;65619:31;;65511:182;65821:5;:27;;;65802:15;:46;65798:160;;65895:19;65889:26;;65798:160;66030:19;;;;;66020:30;;;;:9;:30;;;;;;;;;66016:146;;;66097:21;66091:28;;66016:146;66230:10;;;;66187:18;;-1:-1:-1;;;;;66176:30:0;;;;;;;:10;:30;;;;;;;;66207:19;;;;66176:51;;;;;;;;;;:64;66172:180;;;66287:21;66281:28;;66172:180;66458:20;66428:51;;;64198:2316;-1:-1:-1;64198:2316:0:o;63700:218::-;47998:34;:32;:34::i;:::-;63795:26;;:::i;:::-;63824;63844:5;63824:19;:26::i;:::-;63795:55;;63861:49;63878:9;:19;;;63899:10;63861:16;:49::i;:::-;48043:1;48055:14;:12;:14::i;61236:67::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;17087:33::-;;;;:::o;132452:44::-;;;-1:-1:-1;;;;;132452:44:0;;:::o;50796:269::-;50324:5;;-1:-1:-1;;;;;50324:5:0;50310:10;:19;50288:88;;;;-1:-1:-1;;;50288:88:0;;;;;;;;;-1:-1:-1;;;;;50914:22:0;;50892:85;;;;-1:-1:-1;;;50892:85:0;;;;;;;;;51014:5;;;50993:37;;-1:-1:-1;;;;;50993:37:0;;;;51014:5;;;50993:37;;;51041:5;:16;;-1:-1:-1;;;;;;51041:16:0;-1:-1:-1;;;;;51041:16:0;;;;;;;;;;50796:269::o;66757:488::-;47998:34;:32;:34::i;:::-;66961:26;;:::i;:::-;66990:38;67010:17;66990:19;:38::i;:::-;66961:67;;67039:22;67064:70;67107:17;:26;;;67064:17;:34;;;:42;;:70;;;;:::i;:::-;67039:95;;67145:92;67159:12;67173:14;67189:9;:19;;;67210:14;67226:10;67145:13;:92::i;:::-;48043:1;;48055:14;:12;:14::i;:::-;66757:488;;;:::o;49269:34::-;;;;;;;;;;52440:614;50324:5;;-1:-1:-1;;;;;50324:5:0;50310:10;:19;50288:88;;;;-1:-1:-1;;;50288:88:0;;;;;;;;;-1:-1:-1;;;;;52562:25:0;;;;;;:17;:25;;;;;;;;52540:105;;;;-1:-1:-1;;;52540:105:0;;;;;;;;;-1:-1:-1;;;;;52665:25:0;;;;;;:17;:25;;;;;52658:32;;-1:-1:-1;;52658:32:0;;;52701:288;52725:16;:23;52721:27;;52701:288;;;52797:6;-1:-1:-1;;;;;52774:29:0;:16;52791:1;52774:19;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;52774:19:0;:29;52770:208;;;52846:16;52863:23;;-1:-1:-1;;52863:27:0;;;52846:45;;;;;;;;;;;;;;;;52824:16;:19;;-1:-1:-1;;;;;52846:45:0;;;;52841:1;;52824:19;;;;;;;;;;;;;;;:67;;-1:-1:-1;;;;;;52824:67:0;-1:-1:-1;;;;;52824:67:0;;;;;;;;;;52910:16;:28;;-1:-1:-1;;52910:28:0;;;;;;:::i;:::-;;52957:5;;52770:208;52750:3;;52701:288;;;-1:-1:-1;53004:42:0;;53035:10;;-1:-1:-1;;;;;53004:42:0;;;;;;;;52440:614;:::o;157133:52::-;;;;;;;;;;;;;;-1:-1:-1;;;157133:52:0;;;;:::o;48085:320::-;48205:7;;;;48201:148;;;48229:108;48269:53;:51;:53::i;:::-;48229:21;:108::i;:::-;48383:7;:14;;-1:-1:-1;;48383:14:0;48393:4;48383:14;;;48085:320::o;56187:496::-;56342:1;56297:31;;;:20;:31;;;;;;;;-1:-1:-1;;;;;56297:42:0;;;;;;;;;;:46;56293:383;;56360:14;56377:31;;;:20;:31;;;;;;;;-1:-1:-1;;;;;56377:42:0;;;;;;;;;;56461:13;:24;;;;;;;:40;;56377:42;56461:40;:32;:40;:::i;:::-;-1:-1:-1;;;;;56434:24:0;;;;;;:13;:24;;;;;;;;:67;;;;56523:31;;;:20;:31;;;;;:42;;;;;;;;56516:49;;;56580:26;;56434:24;;56580:26;;;;;56599:6;;56580:26;56434:24;56580:26;56599:6;56434:24;56580:26;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56580:26:0;56646:9;-1:-1:-1;;;;;56626:38:0;56635:9;56626:38;56657:6;56626:38;;;;;;;;;;;;;;;56293:383;56187:496;;:::o;48413:107::-;48497:7;:15;;-1:-1:-1;;48497:15:0;;;48413:107::o;136406:339::-;136566:21;;136492:15;;-1:-1:-1;;;;;136566:21:0;136492:15;136631:36;;:74;;136683:22;136631:74;;;136670:10;136631:74;136598:107;-1:-1:-1;;;136406:339:0;;:::o;72912:1286::-;73215:21;;:52;;73246:20;73215:52;73193:118;;;;-1:-1:-1;;;73193:118:0;;;;;;;;;73386:19;;;;-1:-1:-1;;;;;73386:33:0;;73382:175;;73462:19;;;;-1:-1:-1;;;;;73462:33:0;73485:10;73462:33;73436:109;;;;-1:-1:-1;;;73436:109:0;;;;;;;;;73630:18;;;;-1:-1:-1;;;;;73630:32:0;;73626:174;;73727:12;-1:-1:-1;;;;;73705:34:0;:5;:18;;;-1:-1:-1;;;;;73705:34:0;;73679:109;;;;-1:-1:-1;;;73679:109:0;;;;;;;;;73885:37;;;;73881:310;;73970:150;74009:9;:19;;;74051:5;:18;;;74092:9;73970:16;:150::i;:::-;73944:235;;;;-1:-1:-1;;;73944:235:0;;;;;;;;;72912:1286;;;;:::o;146754:1093::-;147759:27;;;;;147724:26;;;;:63;;;:34;:63;:::i;:::-;147679:27;;;;;147644:26;;;;:63;;;:34;:63;:::i;:::-;:143;;147622:217;;;;-1:-1:-1;;;147622:217:0;;;;;;;;148594:4859;148874:59;;:::i;:::-;149088:26;;;;149048:37;;149088:67;;149123:31;149088:67;:34;:67;:::i;:::-;149048:107;;149166:37;149206:162;149246:9;:26;;;149287:9;:26;;;149328:29;149206:25;:162::i;:::-;149166:202;;149379:38;149420:69;149456:32;149420:10;:27;;;:35;;:69;;;;:::i;:::-;149379:110;;149500:38;149541:165;149581:10;:27;;;149623:10;:27;;;149665:30;149541:25;:165::i;:::-;149500:206;;150508:30;150475:29;:63;150471:1696;;150607:24;;;;;;:80;;;150702:24;;:47;;:80;;;150846:24;:47;150797:23;;:46;;:96;151190:26;;;;151235;;;;151280:23;;:46;;;;151146:195;;151235:26;151146:25;:195::i;:::-;151097:23;;:244;150471:1696;;;151425:23;;:78;;;151518:23;;:46;;;;:78;;;151661:23;;:46;;;151611:24;;;;;:96;;;;152001:27;;;;152047;;;;152093:24;;:47;151958:197;;152047:27;151958:24;:197::i;:::-;151908:24;;;;;:47;:247;150471:1696;152340:24;;;;;:47;;152271:23;;:46;:127;;;:54;:127;:::i;:::-;152223:45;;;:175;152530:23;;:46;152591:26;;;;152632:18;;;;152490:171;;152530:46;152591:26;152490:25;:171::i;:::-;152451:23;;:36;;:210;152751:23;;:46;;;152812:26;;;;152853:18;;;;152711:171;;152751:46;152812:26;152711:25;:171::i;:::-;152672:23;;:36;;:210;153016:24;;;;:47;153078:27;;;;153120:19;;;;152976:174;;153016:47;153078:27;152976:25;:174::i;:::-;152936:18;:24;;;:37;;:214;;;;;153201:174;153241:18;:24;;;:47;;;153303:10;:27;;;153345:10;:19;;;153201:25;:174::i;:::-;153161:24;;;;:37;;:214;-1:-1:-1;;;;148594:4859:0;;;;;;:::o;74640:2455::-;75048:25;75026:95;;;;-1:-1:-1;;;75026:95:0;;;;;;;;;75373:20;75347:22;:46;;75325:109;;;;-1:-1:-1;;;75325:109:0;;;;;;;;;75713:22;;;;75640:37;;;;:69;;75686:22;75640:69;:45;:69;:::i;:::-;:95;;75618:159;;;;-1:-1:-1;;;75618:159:0;;;;;;;;;76987:22;;;;:54;;77018:22;76987:54;:30;:54;:::i;:::-;76947:22;;;;76916:54;;:22;;:54;:30;:54;:::i;:::-;:125;;76894:193;;;;-1:-1:-1;;;76894:193:0;;;;;;;;;74640:2455;;;;;:::o;71022:817::-;71346:34;;;;71310:71;;:27;;:71;:35;:71;:::i;:::-;71290:6;:17;71297:9;71290:17;;;;;;;;;;;:91;;;;71741:9;71473:5;:25;;;-1:-1:-1;;;;;71421:410:0;71440:5;:18;;;-1:-1:-1;;;;;71421:410:0;;71513:12;71540:10;71565:11;:34;;;71614:11;:34;;;71663:11;:24;;;71702:11;:24;;;71765:5;:20;;;71800:5;:20;;;71421:410;;;;;;;;;;;;;;;;;;;;;;71022:817;;;;;:::o;153906:2289::-;154169:25;154197:14;;;;;;;;;;;;;;;;;154294:24;;;;154333:22;;154370:23;;154408:24;;;;;:47;;154169:42;;-1:-1:-1;154259:207:0;;:20;:207::i;:::-;154512:25;;;;154552:23;;154590:22;;154627:23;;:46;;;154477:207;;154512:25;154552:23;154590:22;154477:20;:207::i;:::-;154695:194;154730:9;:24;;;154769:9;:22;;;154806:12;154833:18;:45;;;154695:20;:194::i;:::-;154925:190;154960:12;154987:9;:22;;;155024:9;:29;;;155068:18;:23;;;:36;;;154925:20;:190::i;:::-;155126:193;155161:12;155188:10;:23;;;155226:10;:30;;;155271:18;:24;;;:37;;;155126:20;:193::i;:::-;155392:10;:30;;;-1:-1:-1;;;;;155359:63:0;:9;:29;;;-1:-1:-1;;;;;155359:63:0;;155355:833;;;155439:287;155478:12;155509;155540:9;:29;;;155588:123;155655:18;:24;;;:37;;;155588:18;:23;;;:36;;;:44;;:123;;;;:::i;:::-;155439:20;:287::i;:::-;155355:833;;;155759:200;155798:12;155829;155860:9;:29;;;155908:18;:23;;;:36;;;155759:20;:200::i;:::-;155974:202;156013:12;156044;156075:10;:30;;;156124:18;:24;;;:37;;;155974:20;:202::i;4718:397::-;4807:7;4844:5;;;4864;;;4860:229;;;4886:191;4908:168;4966:55;5040:1;5060;4908:39;:168::i;4886:191::-;5106:1;-1:-1:-1;4718:397:0;;;;;:::o;58225:260::-;58422:31;;;;:20;:31;;;;;;;;-1:-1:-1;;;;;58422:39:0;;;;;;;;;;:55;;58470:6;58422:55;:47;:55;:::i;:::-;58380:31;;;;:20;:31;;;;;;;;-1:-1:-1;;;;;58380:39:0;;;;;;;;;;;;:97;-1:-1:-1;58225:260:0:o;70365:408::-;70450:16;;:::i;:::-;70523:26;;:::i;:::-;70552:19;70565:5;70552:12;:19::i;:::-;70523:48;;70613:35;70631:5;70638:9;70613:17;:35::i;:::-;70688:48;70709:5;70716:9;:19;;;70688:20;:48::i;55842:337::-;-1:-1:-1;;;;;55976:21:0;;;;;;:13;:21;;;;;;:37;;56006:6;55976:37;:29;:37;:::i;:::-;-1:-1:-1;;;;;55952:21:0;;;;;;:13;:21;;;;;;;;:61;;;;56066:31;;;:20;:31;;;;;:39;;;;;;;;;:55;;56114:6;56066:55;:47;:55;:::i;:::-;56024:31;;;;:20;:31;;;;;;;;-1:-1:-1;;;;;56024:39:0;;;;;;;;;;;:97;;;;56137:34;56045:9;;56137:34;;;;56164:6;;56137:34;;91967:644;92054:13;92089:1;:8;92101:1;92089:13;92085:273;;;92119:227;92141:204;92204:79;92302:1;:8;92329:1;92141:44;:204::i;92119:227::-;92408:1;92421;92410;:8;:12;92408:15;;;;;;;;;;;;92526:8;;-1:-1:-1;;92522:16:0;92552:17;;;-1:-1:-1;;;;;;;92408:15:0;;91967:644::o;96929:703::-;97056:14;97103:5;97111:2;97103:10;97092:1;:8;:21;97088:303;;;97130:249;97152:226;97215:92;97326:1;:8;97353:5;97361:2;97353:10;97152:44;:226::i;97130:249::-;-1:-1:-1;97576:13:0;97474:2;97576:13;97570:20;;96929:703::o;112269:4046::-;112500:139;;112446:12;;112476:21;;-1:-1:-1;;;112537:48:0;112500:139;;112600:4;;112619:9;;112500:139;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;112500:139:0;;;;-1:-1:-1;;;;;112500:139:0;;38:4:-1;29:7;25:18;67:10;61:17;-1:-1;;;;;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;112500:139:0;112476:163;;112680:18;112716:58;;;;;;;;;;;;;;;-1:-1:-1;;;;;;112701:75:0;;-1:-1:-1;112837:25:0;;112880:42;;;;;;;;;;;;;-1:-1:-1;;;;;;112865:59:0;;-1:-1:-1;113092:28:0;;113138:44;;;;;;;;;;;;-1:-1:-1;;;;;113123:61:0;;113092:92;;113302:13;113290:26;113280:2;;-1:-1:-1;;;113400:1:0;113393:77;-1:-1:-1;;;113495:2:0;113488:78;-1:-1:-1;;;113591:2:0;113584:78;113691:1;113687:2;113680:13;113721:3;113718:1;113711:14;113280:2;113785;113775:8;113771:17;114145:2;114083:7;114035:8;114029:15;113965:7;113900:13;113846:3;113817:387;114251:2;114233:16;114230:24;114220:2;;-1:-1:-1;;;114338:1:0;114331:77;-1:-1:-1;;;114433:2:0;114426:78;-1:-1:-1;;;114529:2:0;114522:78;114629:1;114625:2;114618:13;114659:3;114656:1;114649:14;114220:2;114701:7;114722:429;;;;115170:1;115165:1107;;;;114694:1578;;114722:429;-1:-1:-1;;;114811:1:0;114804:77;-1:-1:-1;;;114906:2:0;114899:78;-1:-1:-1;;;115002:2:0;114995:78;115102:1;115098:2;115091:13;115132:3;115129:1;115122:14;115165:1107;-1:-1:-1;;;;;;116099:20:0;116095:93;-1:-1:-1;;;;;;115987:7:0;115981:14;115977:87;115944:271;-1:-1:-1;;;;;;115804:17:0;115800:90;-1:-1:-1;;;;;;115692:7:0;115686:14;115682:87;115649:268;115620:618;-1:-1:-1;;;;;;115495:10:0;115491:83;-1:-1:-1;;;;;;115387:7:0;115381:14;115377:87;115348:249;115323:934;115312:945;;114694:1578;-1:-1:-1;;;;;;;112269:4046:0;;;;;:::o;93465:1100::-;93592:14;93639:5;93647:2;93639:10;93628:1;:8;:21;93624:327;;;93666:273;93688:250;93751:89;93859:1;:8;93886:5;93894:2;93886:10;93688:44;:250::i;93666:273::-;-1:-1:-1;94464:13:0;94202:2;94464:13;94458:20;-1:-1:-1;;;;;94454:69:0;;93465:1100::o;116878:3001::-;117147:170;;117093:12;;117123:21;;-1:-1:-1;;;117184:51:0;117147:170;;117250:4;;117195:13;;117297:9;;117147:170;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;117147:170:0;;;;-1:-1:-1;;;;;117147:170:0;;38:4:-1;29:7;25:18;67:10;61:17;-1:-1;;;;;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;117147:170:0;117123:194;;117358:18;117394:69;;;;;;;;;;;;;;-1:-1:-1;;;;;117379:86:0;;117358:107;;117583:16;117571:29;117561:2;;-1:-1:-1;;;117687:1:0;117680:77;-1:-1:-1;;;117782:2:0;117775:78;-1:-1:-1;;;117878:2:0;117871:78;117978:1;117974:2;117967:13;118008:3;118005:1;117998:14;117561:2;118072;118062:8;118058:17;118440:2;118377:7;118328:8;118322:15;118257:7;118188:16;118133:3;118104:396;118547:2;118529:16;118526:24;118516:2;;-1:-1:-1;;;118637:1:0;118630:77;-1:-1:-1;;;118732:2:0;118725:78;-1:-1:-1;;;118828:2:0;118821:78;118928:1;118924:2;118917:13;118958:3;118955:1;118948:14;118516:2;119000:7;119021:432;;;;119472:1;119467:369;;;;118993:843;;119021:432;-1:-1:-1;;;119113:1:0;119106:77;-1:-1:-1;;;119208:2:0;119201:78;-1:-1:-1;;;119304:2:0;119297:78;119404:1;119400:2;119393:13;119434:3;119431:1;119424:14;119467:369;-1:-1:-1;;;;;;119723:10:0;119719:83;-1:-1:-1;;;;;;119619:7:0;119613:14;119609:87;119584:237;119573:248;;118993:843;-1:-1:-1;;;;;116878:3001:0;;;;;;:::o;67569:2533::-;67740:30;;:::i;:::-;67817:26;;:::i;:::-;67846:19;67859:5;67846:12;:19::i;:::-;67817:48;;67910:28;67941:26;:24;:26::i;:::-;67910:57;-1:-1:-1;68107:9:0;:13;68103:107;;68137:61;68153:9;:19;;;68174:12;68188:9;68137:15;:61::i;:::-;68277:125;68311:5;68331:9;68355:12;68382:9;68277:19;:125::i;:::-;68460:33;68496:69;68527:9;:37;;;68496:5;:22;;;:30;;:69;;;;:::i;:::-;68460:105;;68576:30;68609:67;68628:20;68650:25;68609:18;:67::i;:::-;68576:100;;68749:51;68770:5;68777:22;68749:20;:51::i;:::-;68735:65;;68842:191;68872:5;68892:9;68916:20;68951:22;68988:11;:34;;;68842:15;:191::i;:::-;69089:187;69121:5;69141:12;69168:9;:19;;;69202:9;:37;;;69254:11;69089:17;:187::i;:::-;69314:95;69340:5;69360:12;69387:11;69314;:95::i;:::-;59721:14;;;;;;;;;;;;;;;;;59711:25;;;;;;;;;;;;;;;69484:5;:20;;;69474:31;;;;;;;;;;;;;;;:59;69470:295;;;69595:19;;;;69633:18;;69713:24;;;;69670:34;;69550:203;;69595:19;69633:18;69670:68;;:34;:68;:42;:68;:::i;69550:203::-;59721:14;;;;;;;;;;;;;;;;;59711:25;;;;;;;;;;;;;;;69789:5;:20;;;69779:31;;;;;;;;;;;;;;;:59;69775:289;;;69855:197;69900:9;:19;;;69938:12;69969:68;70012:11;:24;;;69969:11;:34;;;:42;;:68;;;;:::i;69855:197::-;-1:-1:-1;;;;67569:2533:0;;;;;:::o;134700:1255::-;134871:14;134903:18;41908:152;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;41908:152:0;;;41898:163;;49:4:-1;41898:163:0;;;;134991:15;;;;;;135383:26;;;135510:15;;;135503:29;;;-1:-1:-1;;;;;135637:62:0;;135620:15;;;135613:87;;;;135751:2;135739:15;;135732:33;135909:3;135891:22;;;-1:-1:-1;;134700:1255:0;;;;;:::o;17636:946::-;17792:18;;18111:2;18105:9;-1:-1:-1;;;18130:82:0;;18263:1;18251:14;;18244:40;;;;18382:2;18370:15;;18363:35;;;;18537:2;18519:21;;;17636:946::o;22928:209::-;23020:17;23067:35;23085:16;23095:5;23085:9;:16::i;56691:1128::-;56920:9;:13;56916:231;;-1:-1:-1;;;;;56974:21:0;;;;;;:13;:21;;;;;;:40;;57004:9;56974:40;:29;:40;:::i;:::-;-1:-1:-1;;;;;56950:21:0;;;;;;:13;:21;;;;;;;;:64;;;;57074:34;;;:20;:34;;;;;:42;;;;;;;;;:61;;57125:9;57074:61;:50;:61;:::i;:::-;57029:34;;;;:20;:34;;;;;;;;-1:-1:-1;;;;;57029:42:0;;;;;;;;;:106;56916:231;57157:31;57191:34;;;:20;:34;;;;;;;;-1:-1:-1;;;;;57191:42:0;;;;;;;;;;57244:47;57212:12;57270;57226:6;57244:11;:47::i;:::-;57332:14;57306:23;:40;57302:412;;;57363:20;57386:34;;;:20;:34;;;;;;;;-1:-1:-1;;;;;57386:42:0;;;;;;;;;;:66;;57437:14;57386:66;:50;:66;:::i;:::-;57512:34;;;;:20;:34;;;;;;;;-1:-1:-1;;;;;57512:42:0;;;;;;;;;;57363:89;;-1:-1:-1;57512:64:0;;57363:89;57512:64;:50;:64;:::i;:::-;57467:34;;;;:20;:34;;;;;;;;-1:-1:-1;;;;;57467:42:0;;;;;;;;;:109;;;;57615:13;:21;;;;:43;;57645:12;57615:43;:29;:43;:::i;:::-;-1:-1:-1;;;;;57591:21:0;;;;;;:13;:21;;;;;;:67;;;;57673:29;;57591:21;;57673:29;;;;;57689:12;;57673:29;57591:21;57673:29;57689:12;57591:21;57673:29;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57673:29:0;57302:412;;57804:6;-1:-1:-1;;;;;57729:82:0;57774:12;57744;57729:82;57758:14;57788;57729:82;;;;;;;;;;;;;;;;56691:1128;;;;;;:::o;46845:168::-;46966:39;;;;;;;;;;;;-1:-1:-1;;;46966:39:0;;;;46845:168;:::o;1659:177::-;1807:9;1801:16;1794:4;1783:9;1779:20;1772:46;4333:377;4422:7;4455:1;4451;:5;4447:233;;;4473:195;4495:172;4553:59;4631:1;4651;4495:39;:172::i;4473:195::-;-1:-1:-1;4697:5:0;;;4333:377::o;3455:465::-;3544:7;3573:6;3569:47;;-1:-1:-1;3603:1:0;3596:8;;3569:47;3638:5;;;3642:1;3638;:5;:1;3658:5;;;;;:10;3654:240;;3685:197;3707:174;3765:61;3845:1;3865;3707:39;:174::i;6476:605::-;6651:21;6726:1;6712:11;:15;6690:81;;;;-1:-1:-1;;;6690:81:0;;;;;;;;;6807:118;6846:9;6874:11;6904:6;6807:20;:118::i;:::-;6806:119;6784:183;;;;-1:-1:-1;;;6784:183:0;;;;;;;;;6996:46;7030:11;6996:25;:9;7014:6;6996:25;:17;:25;:::i;:::-;:33;:46;:33;:46;:::i;7412:825::-;7586:21;7661:1;7647:11;:15;7625:81;;;;-1:-1:-1;;;7625:81:0;;;;;;;;;7742:117;7780:9;7808:11;7838:6;7742:19;:117::i;:::-;7741:118;7719:182;;;;-1:-1:-1;;;7719:182:0;;;;;;;;;8120:78;8186:11;8120:57;8154:22;8186:11;8174:1;8154:22;:19;:22;:::i;:::-;8120:25;:9;8138:6;8120:25;:17;:25;:::i;125509:5940::-;125762:1;125753:6;:10;:24;;;;;125775:2;-1:-1:-1;;;;;125767:10:0;:4;-1:-1:-1;;;;;125767:10:0;;;125753:24;125749:5693;;;125888:1;125869:9;:16;:20;125843:112;;;;-1:-1:-1;;;125843:112:0;;;;;;;;;59721:14;;;;;;;;;;;;;;;;;59711:25;;;;;;;;;;;;;;;126058:9;126048:20;;;;;;:48;126044:610;;;-1:-1:-1;;;;;126147:19:0;;;;;;:13;:19;;;;;;:29;-1:-1:-1;126147:29:0;126117:133;;;;-1:-1:-1;;;126117:133:0;;;;;;;;;-1:-1:-1;;;;;126292:19:0;;126269:20;126292:19;;;:13;:19;;;;;;:35;;126320:6;126292:35;:27;:35;:::i;:::-;-1:-1:-1;;;;;126346:19:0;;;;;;;:13;:19;;;;;:34;;;126269:58;;-1:-1:-1;126403:19:0;;126417:4;126403:19;126399:215;;126448:12;126462:18;126484:2;-1:-1:-1;;;;;126484:7:0;59788:6;126522;126484:49;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;126447:86:0;;;;126564:7;126556:38;;;;-1:-1:-1;;;126556:38:0;;;;;;;;;126399:215;;;126632:7;;;126044:610;126894:2;126879:18;;;126851:47;-1:-1:-1;;;;;;126847:159:0;126769:19;127056:26;;;:12;:26;;;;;;;;-1:-1:-1;;;;;127056:26:0;127171:24;127145:112;;;;-1:-1:-1;;;127145:112:0;;;;;;;;;128694:2;128688:9;129014:15;129009:2;128997:9;128991:16;128987:25;128983:47;129169:14;129164:3;129160:24;129151:7;129147:38;-1:-1:-1;;;129450:7:0;129443:83;129950:3;129946:1;129937:7;129933:15;129926:28;-1:-1:-1;;;;;130001:4:0;129997:53;129992:2;129983:7;129979:16;129972:79;-1:-1:-1;;;;;130098:2:0;130094:51;130089:2;130080:7;130076:16;130069:77;130190:6;130184:3;130175:7;130171:17;130164:33;130360:3;130351:7;130347:17;130444:210;130464:5;130454:8;130451:19;130444:210;;;130514:16;;130497:34;;130579:2;130617:18;;;;130565:17;130444:210;;;131230:3;131158:7;131103;131096:5;131092:19;131018:7;130951:1;130875:10;130811:3;130784:520;131332:7;131322:2;;131380:16;131371:7;131364:33;131322:2;128492:2939;;;;;;;125509:5940;;;;:::o;2673:337::-;2833:12;2118:10;2907:28;;2950:9;2974:1;2990;2870:132;;;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;2870:132:0;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;;;;2870:132:0;;;179:29:-1;;;;160:49;;;2870:132:0;-1:-1:-1;2673:337:0;;;;;:::o;77297:844::-;77571:21;;:52;;77602:20;77571:52;77549:118;;;;-1:-1:-1;;;77549:118:0;;;;;;;;;77744:19;;;;-1:-1:-1;;;;;77744:33:0;;77740:175;;77820:19;;;;-1:-1:-1;;;;;77820:33:0;77843:10;77820:33;77794:109;;;;-1:-1:-1;;;77794:109:0;;;;;;;;;77976:20;77999:26;:24;:26::i;:::-;77976:49;;78080:12;-1:-1:-1;;;;;78058:34:0;:5;:18;;;-1:-1:-1;;;;;78058:34:0;;78036:97;;;;-1:-1:-1;;;78036:97:0;;;;;;;;72148:440;72303:20;;;;:9;:20;;;;;;;:27;;-1:-1:-1;;72303:27:0;72326:4;72303:27;;;72425:25;;;;72392:18;;72514:20;;;;72549;;;;72371:209;;72313:9;;-1:-1:-1;;;;;72371:209:0;;;;;;;;;;;;;72465:10;;72549:20;72371:209;;;;;;;;;;72148:440;;:::o;82027:393::-;82222:12;81964:10;82296:37;;82348:9;82372:6;82393:8;82259:153;;;;;;;;;;;5273:141;5361:7;5397:1;5393;:5;:13;;5405:1;5393:13;;;-1:-1:-1;5401:1:0;;5386:20;-1:-1:-1;5273:141:0:o;78418:914::-;78575:30;;:::i;:::-;78673:34;;;:59;;;78857:22;;;;78894;;;;78780:147;;78710:22;;78780:25;:147::i;:::-;78743:184;;;79054:22;;;;79091:14;;;;78965:151;;78743:184;79054:22;78965:25;:151::i;:::-;78938:24;;;:178;79231:22;;;;79268:14;;;;79154:139;;79194:22;;79154:25;:139::i;:::-;79127:24;;;:166;78418:914;;;;:::o;79648:972::-;79842:25;79870:14;;;;;;;;;;;;;;;;;79930:20;;;;79965:18;;80025:34;;79842:42;;-1:-1:-1;79895:175:0;;79998:12;;79895:20;:175::i;:::-;80081;80116:5;:20;;;80151:12;80178:5;:18;;;80211:11;:34;;;80081:20;:175::i;:::-;80267:170;80302:12;80329:5;:18;;;80362:5;:25;;;80402:11;:24;;;80267:20;:170::i;:::-;80448:164;80483:12;80510;80537:5;:25;;;80577:11;:24;;;80448:20;:164::i;23282:1727::-;23371:14;23403:18;19415:472;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;19415:472:0;;;19405:483;;;;;;23403:45;;23459:26;23498:5;:20;;;23488:31;;;;;;;;;;;;;;;23459:60;;23530:26;23569:5;:20;;;23559:31;;;;;;;;;;;;;;;;-1:-1:-1;;24377:14:0;;24525:11;;24428:3;24417:15;;24563:11;;24469:3;24458:15;;;24601:11;;24670:24;;;24708:32;;;24754;;;24826:3;24810:20;;24882:19;;24915;;;-1:-1:-1;24948:19:0;-1:-1:-1;24810:20:0;23282:1727::o;57827:390::-;57976:14;57993:35;;;:20;:35;;;;;;;;-1:-1:-1;;;;;57993:43:0;;;;;;;;;;;;;58047:50;;;;58152:33;;;;;;;;;:41;;;;;;;;;;:57;;57993:43;58152:57;:49;:57;:::i;:::-;58108:33;;;;:20;:33;;;;;;;;-1:-1:-1;;;;;58108:41:0;;;;;;;;;;;;:101;-1:-1:-1;;57827:390:0:o;10096:1897::-;10266:12;10332:1;10318:11;:15;10296:81;;;;-1:-1:-1;;;10296:81:0;;;;;;;;;11203:11;;;:29;;-1:-1:-1;11218:14:0;;11203:29;11199:74;;;-1:-1:-1;11256:5:0;11249:12;;11199:74;11779:17;11865:11;11799:88;;;;;11841:9;11820:6;11799:88;11779:108;-1:-1:-1;11935:25:0;:9;11953:6;11935:25;:17;:25;:::i;:::-;11908:23;:9;11926:4;11908:23;:17;:23;:::i;:::-;:52;;;10096:1897;-1:-1:-1;;;;;10096:1897:0:o;3928:397::-;4017:7;4046:6;4042:229;;4069:190;4091:167;4149:54;4222:1;4242;4091:39;:167::i;4069:190::-;4281:9;4297:1;4293;:5;;;;;;;3928:397;-1:-1:-1;;;;3928:397:0:o;12257:937::-;12426:12;12492:1;12478:11;:15;12456:81;;;;-1:-1:-1;;;12456:81:0;;;;;;;;;12605:11;;;:29;;-1:-1:-1;12620:14:0;;12605:29;12601:262;;;-1:-1:-1;12846:5:0;12839:12;;12601:262;12913:17;12999:11;12933:88;;;;;12975:9;12954:6;12933:88;12913:108;-1:-1:-1;13077:11:0;13044:30;13077:11;12913:108;13044:30;:19;:30;:::i;:::-;:44;;;;;;;-1:-1:-1;13136:25:0;:9;13154:6;13136:25;:17;:25;:::i;156944:546::-;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;:::o;:::-;;;;;;;;;-1:-1:-1;156944:546:0;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;5:130:-1;72:20;;97:33;72:20;97:33;;327:732;;462:3;455:4;447:6;443:17;439:27;429:2;;480:1;477;470:12;429:2;517:6;504:20;539:98;554:82;629:6;554:82;;;539:98;;;665:21;;;709:4;697:17;;;;530:107;;-1:-1;722:14;;697:17;817:1;802:251;827:6;824:1;821:13;802:251;;;910:3;897:17;889:6;885:30;934:55;985:3;973:10;934:55;;;922:68;;-1:-1;1013:4;1004:14;;;;1032;;;;;849:1;842:9;802:251;;;806:14;422:637;;;;;;;;1067:124;1131:20;;1156:30;1131:20;1156:30;;1198:130;1265:20;;1290:33;1265:20;1290:33;;1335:128;1401:20;;1426:32;1401:20;1426:32;;1470:132;1547:13;;1565:32;1547:13;1565:32;;1623:336;;;1737:3;1730:4;1722:6;1718:17;1714:27;1704:2;;1755:1;1752;1745:12;1704:2;-1:-1;1775:20;;-1:-1;;;;;1804:30;;1801:2;;;1847:1;1844;1837:12;1801:2;1881:4;1873:6;1869:17;1857:29;;1932:3;1924:4;1916:6;1912:17;1902:8;1898:32;1895:41;1892:2;;;1949:1;1946;1939:12;1892:2;1697:262;;;;;;1968:432;;2065:3;2058:4;2050:6;2046:17;2042:27;2032:2;;2083:1;2080;2073:12;2032:2;2120:6;2107:20;2142:60;2157:44;2194:6;2157:44;;2142:60;2133:69;;2222:6;2215:5;2208:21;2258:4;2250:6;2246:17;2291:4;2284:5;2280:16;2326:3;2317:6;2312:3;2308:16;2305:25;2302:2;;;2343:1;2340;2333:12;2302:2;2353:41;2387:6;2382:3;2377;2353:41;;;2025:375;;;;;;;;2885:2235;;2992:6;2980:9;2975:3;2971:19;2967:32;2964:2;;;3012:1;3009;3002:12;2964:2;3030:22;3045:6;3030:22;;;3021:31;-1:-1;3110:1;3142:57;3195:3;3175:9;3142:57;;;3117:83;;-1:-1;3269:2;3302:57;3355:3;3331:22;;;3302:57;;;3295:4;3288:5;3284:16;3277:83;3221:150;3436:2;3469:57;3522:3;3513:6;3502:9;3498:22;3469:57;;;3462:4;3455:5;3451:16;3444:83;3381:157;3597:2;3630:49;3675:3;3666:6;3655:9;3651:22;3630:49;;;3623:4;3616:5;3612:16;3605:75;3548:143;3753:3;3787:49;3832:3;3823:6;3812:9;3808:22;3787:49;;;3780:4;3773:5;3769:16;3762:75;3701:147;3910:3;3944:49;3989:3;3980:6;3969:9;3965:22;3944:49;;;3937:4;3930:5;3926:16;3919:75;3858:147;4059:3;4093:49;4138:3;4129:6;4118:9;4114:22;4093:49;;;4086:4;4079:5;4075:16;4068:75;4015:139;4208:3;4242:49;4287:3;4278:6;4267:9;4263:22;4242:49;;;4235:4;4228:5;4224:16;4217:75;4164:139;4370:3;4406:49;4451:3;4442:6;4431:9;4427:22;4406:49;;;4397:6;4390:5;4386:18;4379:77;4313:154;4517:3;4553:49;4598:3;4589:6;4578:9;4574:22;4553:49;;;4544:6;4537:5;4533:18;4526:77;4477:137;4702:3;4691:9;4687:19;4674:33;-1:-1;;;;;4719:6;4716:30;4713:2;;;4759:1;4756;4749:12;4713:2;4796:54;4846:3;4837:6;4826:9;4822:22;4796:54;;;4787:6;4780:5;4776:18;4769:82;4624:238;4950:3;4939:9;4935:19;4922:33;-1:-1;;;;;4967:6;4964:30;4961:2;;;5007:1;5004;4997:12;4961:2;5044:54;5094:3;5085:6;5074:9;5070:22;5044:54;;;5035:6;5028:5;5024:18;5017:82;4872:238;2958:2162;;;;;7538:241;;7642:2;7630:9;7621:7;7617:23;7613:32;7610:2;;;7658:1;7655;7648:12;7610:2;7693:1;7710:53;7755:7;7735:9;7710:53;;7786:366;;;7907:2;7895:9;7886:7;7882:23;7878:32;7875:2;;;7923:1;7920;7913:12;7875:2;7958:1;7975:53;8020:7;8000:9;7975:53;;;7965:63;;7937:97;8065:2;8083:53;8128:7;8119:6;8108:9;8104:22;8083:53;;;8073:63;;8044:98;7869:283;;;;;;8159:360;;;8277:2;8265:9;8256:7;8252:23;8248:32;8245:2;;;8293:1;8290;8283:12;8245:2;8328:1;8345:53;8390:7;8370:9;8345:53;;;8335:63;;8307:97;8435:2;8453:50;8495:7;8486:6;8475:9;8471:22;8453:50;;8526:413;;8673:2;8661:9;8652:7;8648:23;8644:32;8641:2;;;8689:1;8686;8679:12;8641:2;8724:31;;-1:-1;;;;;8764:30;;8761:2;;;8807:1;8804;8797:12;8761:2;8827:96;8915:7;8906:6;8895:9;8891:22;8827:96;;8946:241;;9050:2;9038:9;9029:7;9025:23;9021:32;9018:2;;;9066:1;9063;9056:12;9018:2;9101:1;9118:53;9163:7;9143:9;9118:53;;9194:366;;;9315:2;9303:9;9294:7;9290:23;9286:32;9283:2;;;9331:1;9328;9321:12;9283:2;9366:1;9383:53;9428:7;9408:9;9383:53;;9956:615;;;;;10113:2;10101:9;10092:7;10088:23;10084:32;10081:2;;;10129:1;10126;10119:12;10081:2;10164:1;10181:53;10226:7;10206:9;10181:53;;;10171:63;;10143:97;10271:2;10289:53;10334:7;10325:6;10314:9;10310:22;10289:53;;;10279:63;;10250:98;10407:2;10396:9;10392:18;10379:32;-1:-1;;;;;10423:6;10420:30;10417:2;;;10463:1;10460;10453:12;10417:2;10491:64;10547:7;10538:6;10527:9;10523:22;10491:64;;;10075:496;;;;-1:-1;10481:74;-1:-1;;;;10075:496;10578:595;;;;10725:2;10713:9;10704:7;10700:23;10696:32;10693:2;;;10741:1;10738;10731:12;10693:2;10776:1;10793:53;10838:7;10818:9;10793:53;;;10783:63;;10755:97;10883:2;10901:53;10946:7;10937:6;10926:9;10922:22;10901:53;;;10891:63;;10862:98;11019:2;11008:9;11004:18;10991:32;-1:-1;;;;;11035:6;11032:30;11029:2;;;11075:1;11072;11065:12;11029:2;11095:62;11149:7;11140:6;11129:9;11125:22;11095:62;;;11085:72;;10970:193;10687:486;;;;;;11180:621;;;;11340:2;11328:9;11319:7;11315:23;11311:32;11308:2;;;11356:1;11353;11346:12;11308:2;11391:1;11408:53;11453:7;11433:9;11408:53;;;11398:63;;11370:97;11498:2;11516:53;11561:7;11552:6;11541:9;11537:22;11516:53;;;11506:63;;11477:98;11634:2;11623:9;11619:18;11606:32;-1:-1;;;;;11650:6;11647:30;11644:2;;;11690:1;11687;11680:12;11644:2;11710:75;11777:7;11768:6;11757:9;11753:22;11710:75;;11808:239;;11911:2;11899:9;11890:7;11886:23;11882:32;11879:2;;;11927:1;11924;11917:12;11879:2;11962:1;11979:52;12023:7;12003:9;11979:52;;12054:261;;12168:2;12156:9;12147:7;12143:23;12139:32;12136:2;;;12184:1;12181;12174:12;12136:2;12219:1;12236:63;12291:7;12271:9;12236:63;;12322:371;;12448:2;12436:9;12427:7;12423:23;12419:32;12416:2;;;12464:1;12461;12454:12;12416:2;12499:31;;-1:-1;;;;;12539:30;;12536:2;;;12582:1;12579;12572:12;12536:2;12602:75;12669:7;12660:6;12649:9;12645:22;12602:75;;12700:1085;;;;;12917:3;12905:9;12896:7;12892:23;12888:33;12885:2;;;12934:1;12931;12924:12;12885:2;12969:31;;-1:-1;;;;;13009:30;;13006:2;;;13052:1;13049;13042:12;13006:2;13072:75;13139:7;13130:6;13119:9;13115:22;13072:75;;;13062:85;;12948:205;13212:2;13201:9;13197:18;13184:32;-1:-1;;;;;13228:6;13225:30;13222:2;;;13268:1;13265;13258:12;13222:2;13288:75;13355:7;13346:6;13335:9;13331:22;13288:75;;;13278:85;;13163:206;13428:2;13417:9;13413:18;13400:32;-1:-1;;;;;13444:6;13441:30;13438:2;;;13484:1;13481;13474:12;13438:2;13504:62;13558:7;13549:6;13538:9;13534:22;13504:62;;;13494:72;;13379:193;13631:2;13620:9;13616:18;13603:32;-1:-1;;;;;13647:6;13644:30;13641:2;;;13687:1;13684;13677:12;13641:2;13707:62;13761:7;13752:6;13741:9;13737:22;13707:62;;;13697:72;;13582:193;12879:906;;;;;;;;13792:725;;;;13961:2;13949:9;13940:7;13936:23;13932:32;13929:2;;;13977:1;13974;13967:12;13929:2;14012:31;;-1:-1;;;;;14052:30;;14049:2;;;14095:1;14092;14085:12;14049:2;14115:75;14182:7;14173:6;14162:9;14158:22;14115:75;;;14105:85;;13991:205;14227:2;14245:53;14290:7;14281:6;14270:9;14266:22;14245:53;;14772:881;;;;;;;14973:3;14961:9;14952:7;14948:23;14944:33;14941:2;;;14990:1;14987;14980:12;14941:2;15025:1;15042:53;15087:7;15067:9;15042:53;;;15032:63;;15004:97;15132:2;15150:61;15203:7;15194:6;15183:9;15179:22;15150:61;;;15140:71;;15111:106;15276:2;15265:9;15261:18;15248:32;-1:-1;;;;;15292:6;15289:30;15286:2;;;15332:1;15329;15322:12;15286:2;15360:64;15416:7;15407:6;15396:9;15392:22;15360:64;;;15350:74;;;;15227:203;15489:2;15478:9;15474:18;15461:32;-1:-1;;;;;15505:6;15502:30;15499:2;;;15545:1;15542;15535:12;15499:2;15573:64;15629:7;15620:6;15609:9;15605:22;15573:64;;;15563:74;;;;15440:203;14935:718;;;;;;;;;15661:265;;15792:94;15882:3;15874:6;15792:94;;;-1:-1;;15915:4;15906:14;;15785:141;15934:142;16025:45;16064:5;16025:45;;;16020:3;16013:58;16007:69;;;16083:137;16182:32;16208:5;16182:32;;16414:866;;16603:76;16673:5;16603:76;;;16692:108;16793:6;16788:3;16692:108;;;16685:115;;16821:78;16893:5;16821:78;;;16919:7;16947:1;16932:326;16957:6;16954:1;16951:13;16932:326;;;17024:6;17018:13;17045:107;17148:3;17133:13;17045:107;;;17038:114;;17169:82;17244:6;17169:82;;;17159:92;-1:-1;;16979:1;16972:9;16932:326;;;-1:-1;17271:3;;16582:698;-1:-1;;;;;16582:698;17288:104;17365:21;17380:5;17365:21;;17399:103;17472:24;17490:5;17472:24;;17629:152;17730:45;17750:24;17768:5;17750:24;;;17730:45;;17788:110;17869:23;17886:5;17869:23;;17928:310;;18060:88;18141:6;18136:3;18060:88;;;18053:95;;18160:43;18196:6;18191:3;18184:5;18160:43;;;-1:-1;;18216:16;;18046:192;18246:343;;18356:38;18388:5;18356:38;;;18406:70;18469:6;18464:3;18406:70;;;18399:77;;18481:52;18526:6;18521:3;18514:4;18507:5;18503:16;18481:52;;;18554:29;18576:6;18554:29;;;18545:39;;;;18336:253;-1:-1;;;18336:253;18938:348;;19062:34;19090:5;19062:34;;;19108:88;19189:6;19184:3;19108:88;;;19101:95;;19201:52;19246:6;19241:3;19234:4;19227:5;19223:16;19201:52;;;19265:16;;;;;19042:244;-1:-1;;19042:244;19293:158;19392:53;19439:5;19392:53;;19458:192;19574:70;19638:5;19574:70;;20004:318;;20164:67;20228:2;20223:3;20164:67;;;-1:-1;;;20244:41;;20313:2;20304:12;;20150:172;-1:-1;;20150:172;20331:313;;20491:67;20555:2;20550:3;20491:67;;;-1:-1;;;20571:36;;20635:2;20626:12;;20477:167;-1:-1;;20477:167;20653:314;;20813:67;20877:2;20872:3;20813:67;;;-1:-1;;;20893:37;;20958:2;20949:12;;20799:168;-1:-1;;20799:168;20976:367;;21154:85;21236:2;21231:3;21154:85;;;21272:33;21252:54;;21334:2;21325:12;;21140:203;-1:-1;;21140:203;21352:400;;21530:85;21612:2;21607:3;21530:85;;;21648:66;21628:87;;21743:2;21734:12;;21516:236;-1:-1;;21516:236;21761:361;;21939:85;22021:2;22016:3;21939:85;;;22057:27;22037:48;;22113:2;22104:12;;21925:197;-1:-1;;21925:197;22131:365;;22309:85;22391:2;22386:3;22309:85;;;22427:31;22407:52;;22487:2;22478:12;;22295:201;-1:-1;;22295:201;22505:358;;22683:85;22765:2;22760:3;22683:85;;;-1:-1;;;22781:45;;22854:2;22845:12;;22669:194;-1:-1;;22669:194;22872:354;;23050:85;23132:2;23127:3;23050:85;;;-1:-1;;;23148:41;;23217:2;23208:12;;23036:190;-1:-1;;23036:190;23235:340;;23413:84;23495:1;23490:3;23413:84;;;-1:-1;;;23510:29;;23567:1;23558:11;;23399:176;-1:-1;;23399:176;23584:326;;23744:67;23808:2;23803:3;23744:67;;;23844:28;23824:49;;23901:2;23892:12;;23730:180;-1:-1;;23730:180;23919:321;;24079:67;24143:2;24138:3;24079:67;;;-1:-1;;;24159:44;;24231:2;24222:12;;24065:175;-1:-1;;24065:175;24249:429;;24427:85;24509:2;24504:3;24427:85;;;24545:34;24525:55;;24614:26;24609:2;24600:12;;24593:48;24669:2;24660:12;;24413:265;-1:-1;;24413:265;24687:357;;24865:85;24947:2;24942:3;24865:85;;;-1:-1;;;24963:44;;25035:2;25026:12;;24851:193;-1:-1;;24851:193;25053:371;;25213:67;25277:2;25272:3;25213:67;;;25313:34;25293:55;;-1:-1;;;25377:2;25368:12;;25361:26;25415:2;25406:12;;25199:225;-1:-1;;25199:225;25433:357;;25611:85;25693:2;25688:3;25611:85;;;-1:-1;;;25709:44;;25781:2;25772:12;;25597:193;-1:-1;;25597:193;25799:330;;25959:67;26023:2;26018:3;25959:67;;;26059:32;26039:53;;26120:2;26111:12;;25945:184;-1:-1;;25945:184;26138:316;;26298:67;26362:2;26357:3;26298:67;;;-1:-1;;;26378:39;;26445:2;26436:12;;26284:170;-1:-1;;26284:170;26463:323;;26623:67;26687:2;26682:3;26623:67;;;26723:25;26703:46;;26777:2;26768:12;;26609:177;-1:-1;;26609:177;26795:313;;26955:67;27019:2;27014:3;26955:67;;;-1:-1;;;27035:36;;27099:2;27090:12;;26941:167;-1:-1;;26941:167;27117:372;;27277:67;27341:2;27336:3;27277:67;;;27377:34;27357:55;;-1:-1;;;27441:2;27432:12;;27425:27;27480:2;27471:12;;27263:226;-1:-1;;27263:226;27498:356;;27676:85;27758:2;27753:3;27676:85;;;-1:-1;;;27774:43;;27845:2;27836:12;;27662:192;-1:-1;;27662:192;27863:330;;28023:67;28087:2;28082:3;28023:67;;;28123:32;28103:53;;28184:2;28175:12;;28009:184;-1:-1;;28009:184;28202:315;;28362:67;28426:2;28421:3;28362:67;;;-1:-1;;;28442:38;;28508:2;28499:12;;28348:169;-1:-1;;28348:169;28526:335;;28704:84;28786:1;28781:3;28704:84;;;-1:-1;;;28801:24;;28853:1;28844:11;;28690:171;-1:-1;;28690:171;28870:353;;29048:85;29130:2;29125:3;29048:85;;;-1:-1;;;29146:40;;29214:2;29205:12;;29034:189;-1:-1;;29034:189;29232:317;;29392:67;29456:2;29451:3;29392:67;;;-1:-1;;;29472:40;;29540:2;29531:12;;29378:171;-1:-1;;29378:171;29558:314;;29718:67;29782:2;29777:3;29718:67;;;-1:-1;;;29798:37;;29863:2;29854:12;;29704:168;-1:-1;;29704:168;29881:316;;30041:67;30105:2;30100:3;30041:67;;;-1:-1;;;30121:39;;30188:2;30179:12;;30027:170;-1:-1;;30027:170;30206:313;;30366:67;30430:2;30425:3;30366:67;;;-1:-1;;;30446:36;;30510:2;30501:12;;30352:167;-1:-1;;30352:167;30528:349;;30706:85;30788:2;30783:3;30706:85;;;-1:-1;;;30804:36;;30868:2;30859:12;;30692:185;-1:-1;;30692:185;30886:330;;31046:67;31110:2;31105:3;31046:67;;;31146:32;31126:53;;31207:2;31198:12;;31032:184;-1:-1;;31032:184;31225:320;;31385:67;31449:2;31444:3;31385:67;;;-1:-1;;;31465:43;;31536:2;31527:12;;31371:174;-1:-1;;31371:174;31554:346;;31732:85;31814:2;31809:3;31732:85;;;-1:-1;;;31830:33;;31891:2;31882:12;;31718:182;-1:-1;;31718:182;31909:326;;32069:67;32133:2;32128:3;32069:67;;;32169:28;32149:49;;32226:2;32217:12;;32055:180;-1:-1;;32055:180;32244:317;;32404:67;32468:2;32463:3;32404:67;;;-1:-1;;;32484:40;;32552:2;32543:12;;32390:171;-1:-1;;32390:171;32570:330;;32730:67;32794:2;32789:3;32730:67;;;32830:32;32810:53;;32891:2;32882:12;;32716:184;-1:-1;;32716:184;32909:323;;33069:67;33133:2;33128:3;33069:67;;;33169:25;33149:46;;33223:2;33214:12;;33055:177;-1:-1;;33055:177;33241:313;;33401:67;33465:2;33460:3;33401:67;;;-1:-1;;;33481:36;;33545:2;33536:12;;33387:167;-1:-1;;33387:167;33563:330;;33723:67;33787:2;33782:3;33723:67;;;33823:32;33803:53;;33884:2;33875:12;;33709:184;-1:-1;;33709:184;33902:353;;34080:85;34162:2;34157:3;34080:85;;;-1:-1;;;34178:40;;34246:2;34237:12;;34066:189;-1:-1;;34066:189;34264:318;;34424:67;34488:2;34483:3;34424:67;;;-1:-1;;;34504:41;;34573:2;34564:12;;34410:172;-1:-1;;34410:172;34591:318;;34751:67;34815:2;34810:3;34751:67;;;-1:-1;;;34831:41;;34900:2;34891:12;;34737:172;-1:-1;;34737:172;34918:319;;35078:67;35142:2;35137:3;35078:67;;;-1:-1;;;35158:42;;35228:2;35219:12;;35064:173;-1:-1;;35064:173;35246:418;;35424:85;35506:2;35501:3;35424:85;;;35542:34;35522:55;;-1:-1;;;35606:2;35597:12;;35590:37;35655:2;35646:12;;35410:254;-1:-1;;35410:254;35673:364;;35851:85;35933:2;35928:3;35851:85;;;35969:30;35949:51;;36028:2;36019:12;;35837:200;-1:-1;;35837:200;36046:296;;36223:83;36304:1;36299:3;36223:83;;36351:316;;36511:67;36575:2;36570:3;36511:67;;;-1:-1;;;36591:39;;36658:2;36649:12;;36497:170;-1:-1;;36497:170;36676:331;;36836:67;36900:2;36895:3;36836:67;;;36936:33;36916:54;;36998:2;36989:12;;36822:185;-1:-1;;36822:185;37016:314;;37176:67;37240:2;37235:3;37176:67;;;-1:-1;;;37256:37;;37321:2;37312:12;;37162:168;-1:-1;;37162:168;37339:358;;37517:85;37599:2;37594:3;37517:85;;;-1:-1;;;37615:45;;37688:2;37679:12;;37503:194;-1:-1;;37503:194;37706:324;;37866:67;37930:2;37925:3;37866:67;;;37966:26;37946:47;;38021:2;38012:12;;37852:178;-1:-1;;37852:178;38039:320;;38199:67;38263:2;38258:3;38199:67;;;-1:-1;;;38279:43;;38350:2;38341:12;;38185:174;-1:-1;;38185:174;38368:318;;38528:67;38592:2;38587:3;38528:67;;;-1:-1;;;38608:41;;38677:2;38668:12;;38514:172;-1:-1;;38514:172;38695:357;;38873:85;38955:2;38950:3;38873:85;;;-1:-1;;;38971:44;;39043:2;39034:12;;38859:193;-1:-1;;38859:193;39061:366;;39239:85;39321:2;39316:3;39239:85;;;39357:32;39337:53;;39418:2;39409:12;;39225:202;-1:-1;;39225:202;39436:326;;39596:67;39660:2;39655:3;39596:67;;;39696:28;39676:49;;39753:2;39744:12;;39582:180;-1:-1;;39582:180;39771:361;;39949:85;40031:2;40026:3;39949:85;;;40067:27;40047:48;;40123:2;40114:12;;39935:197;-1:-1;;39935:197;40141:317;;40301:67;40365:2;40360:3;40301:67;;;-1:-1;;;40381:40;;40449:2;40440:12;;40287:171;-1:-1;;40287:171;40543:842;40776:23;;40692:4;40683:14;;;40805:63;40687:3;40776:23;40805:63;;;40712:162;40965:4;40958:5;40954:16;40948:23;40977:63;41034:4;41029:3;41025:14;41011:12;40977:63;;;40884:162;41127:4;41120:5;41116:16;41110:23;41139:63;41196:4;41191:3;41187:14;41173:12;41139:63;;;41056:152;41289:4;41282:5;41278:16;41272:23;41301:63;41358:4;41353:3;41349:14;41335:12;41301:63;;42395:781;42626:23;;42558:6;42549:16;;;42655:115;42553:3;42626:23;42655:115;;;42580:196;42850:4;42843:5;42839:16;42833:23;42862:115;42971:4;42966:3;42962:14;42948:12;42862:115;;;42786:197;43078:4;43071:5;43067:16;43061:23;43090:65;43147:6;43142:3;43138:16;43124:12;43090:65;;43244:663;43462:23;;43389:4;43380:14;;;43491:59;43384:3;43462:23;43491:59;;;43409:147;43634:4;43627:5;43623:16;43617:23;43646:63;43703:4;43698:3;43694:14;43680:12;43646:63;;;43566:149;43811:4;43804:5;43800:16;43794:23;43823:63;43880:4;43875:3;43871:14;43857:12;43823:63;;44861:97;44930:22;44946:5;44930:22;;45079:282;;45233:103;45332:3;45323:6;45315;45233:103;;45368:254;;45508:89;45593:3;45584:6;45508:89;;45629:372;;45828:148;45972:3;45828:148;;46008:511;;46235:148;46379:3;46235:148;;;46228:155;;46394:75;46465:3;46456:6;46394:75;;;-1:-1;46491:2;46482:12;;46216:303;-1:-1;46216:303;46526:372;;46725:148;46869:3;46725:148;;46905:1440;;47508:148;47652:3;47508:148;;;47501:155;;47674:148;47818:3;47674:148;;;47667:155;;47840:148;47984:3;47840:148;;;47833:155;;48006:148;48150:3;48006:148;;;47999:155;;48172:148;48316:3;48172:148;;48352:3843;;49864:148;50008:3;49864:148;;;49857:155;;50030:148;50174:3;50030:148;;;50023:155;;50196:148;50340:3;50196:148;;;50189:155;;50362:148;50506:3;50362:148;;;50355:155;;50528:148;50672:3;50528:148;;;50521:155;;50694:148;50838:3;50694:148;;;50687:155;;50860:148;51004:3;50860:148;;;50853:155;;51026:148;51170:3;51026:148;;;51019:155;;51192:148;51336:3;51192:148;;;51185:155;;51358:148;51502:3;51358:148;;;51351:155;;51524:148;51668:3;51524:148;;;51517:155;;51690:148;51834:3;51690:148;;;51683:155;;51856:148;52000:3;51856:148;;52202:372;;52401:148;52545:3;52401:148;;52581:372;;52780:148;52924:3;52780:148;;52960:370;;53158:147;53301:3;53158:147;;53337:213;53455:2;53440:18;;53469:71;53444:9;53513:6;53469:71;;53809:603;54019:2;54004:18;;54033:79;54008:9;54085:6;54033:79;;;54160:9;54154:4;54150:20;54145:2;54134:9;54130:18;54123:48;54185:72;54252:4;54243:6;54185:72;;;54177:80;;54305:9;54299:4;54295:20;54290:2;54279:9;54275:18;54268:48;54330:72;54397:4;54388:6;54330:72;;;54322:80;53990:422;-1:-1;;;;;53990:422;54419:1163;54769:3;54754:19;;54784:71;54758:9;54828:6;54784:71;;;54866:80;54942:2;54931:9;54927:18;54918:6;54866:80;;;54957:72;55025:2;55014:9;55010:18;55001:6;54957:72;;;55040;55108:2;55097:9;55093:18;55084:6;55040:72;;;55123:73;55191:3;55180:9;55176:19;55167:6;55123:73;;;55207;55275:3;55264:9;55260:19;55251:6;55207:73;;;55329:9;55323:4;55319:20;55313:3;55302:9;55298:19;55291:49;55354:72;55421:4;55412:6;55354:72;;;55346:80;;55475:9;55469:4;55465:20;55459:3;55448:9;55444:19;55437:49;55500:72;55567:4;55558:6;55500:72;;;55492:80;54740:842;-1:-1;;;;;;;;;;54740:842;55589:449;55801:2;55815:47;;;55786:18;;55876:152;55786:18;56014:6;55876:152;;56045:201;56157:2;56142:18;;56171:65;56146:9;56209:6;56171:65;;56253:213;56371:2;56356:18;;56385:71;56360:9;56429:6;56385:71;;56473:519;56665:2;56650:18;;56679:71;56654:9;56723:6;56679:71;;;56761:72;56829:2;56818:9;56814:18;56805:6;56761:72;;;56881:9;56875:4;56871:20;56866:2;56855:9;56851:18;56844:48;56906:76;56977:4;56968:6;56906:76;;56999:408;57163:2;57148:18;;57177:71;57152:9;57221:6;57177:71;;;57296:9;57290:4;57286:20;57281:2;57270:9;57266:18;57259:48;57321:76;57392:4;57383:6;57321:76;;57414:539;57612:3;57597:19;;57627:71;57601:9;57671:6;57627:71;;;57709:68;57773:2;57762:9;57758:18;57749:6;57709:68;;;57788:72;57856:2;57845:9;57841:18;57832:6;57788:72;;;57871;57939:2;57928:9;57924:18;57915:6;57871:72;;57960:320;58104:2;58089:18;;58118:69;58093:9;58160:6;58118:69;;;58198:72;58266:2;58255:9;58251:18;58242:6;58198:72;;58287:289;58419:2;58433:47;;;58404:18;;58494:72;58404:18;58552:6;58494:72;;58583:467;58773:2;58758:18;;58787:87;58762:9;58847:6;58787:87;;;58885:72;58953:2;58942:9;58938:18;58929:6;58885:72;;;58968;59036:2;59025:9;59021:18;59012:6;58968:72;;59057:501;59264:2;59249:18;;59278:104;59253:9;59355:6;59278:104;;59865:407;60056:2;60070:47;;;60041:18;;60131:131;60041:18;60131:131;;60279:407;60470:2;60484:47;;;60455:18;;60545:131;60455:18;60545:131;;60693:407;60884:2;60898:47;;;60869:18;;60959:131;60869:18;60959:131;;61107:407;61298:2;61312:47;;;61283:18;;61373:131;61283:18;61373:131;;61521:407;61712:2;61726:47;;;61697:18;;61787:131;61697:18;61787:131;;61935:407;62126:2;62140:47;;;62111:18;;62201:131;62111:18;62201:131;;62349:407;62540:2;62554:47;;;62525:18;;62615:131;62525:18;62615:131;;62763:407;62954:2;62968:47;;;62939:18;;63029:131;62939:18;63029:131;;63177:407;63368:2;63382:47;;;63353:18;;63443:131;63353:18;63443:131;;63591:407;63782:2;63796:47;;;63767:18;;63857:131;63767:18;63857:131;;64005:407;64196:2;64210:47;;;64181:18;;64271:131;64181:18;64271:131;;64419:407;64610:2;64624:47;;;64595:18;;64685:131;64595:18;64685:131;;64833:407;65024:2;65038:47;;;65009:18;;65099:131;65009:18;65099:131;;65247:407;65438:2;65452:47;;;65423:18;;65513:131;65423:18;65513:131;;65661:407;65852:2;65866:47;;;65837:18;;65927:131;65837:18;65927:131;;66075:407;66266:2;66280:47;;;66251:18;;66341:131;66251:18;66341:131;;66489:407;66680:2;66694:47;;;66665:18;;66755:131;66665:18;66755:131;;66903:407;67094:2;67108:47;;;67079:18;;67169:131;67079:18;67169:131;;67317:407;67508:2;67522:47;;;67493:18;;67583:131;67493:18;67583:131;;67731:407;67922:2;67936:47;;;67907:18;;67997:131;67907:18;67997:131;;68145:407;68336:2;68350:47;;;68321:18;;68411:131;68321:18;68411:131;;68559:407;68750:2;68764:47;;;68735:18;;68825:131;68735:18;68825:131;;68973:407;69164:2;69178:47;;;69149:18;;69239:131;69149:18;69239:131;;69387:407;69578:2;69592:47;;;69563:18;;69653:131;69563:18;69653:131;;69801:407;69992:2;70006:47;;;69977:18;;70067:131;69977:18;70067:131;;70215:407;70406:2;70420:47;;;70391:18;;70481:131;70391:18;70481:131;;70629:407;70820:2;70834:47;;;70805:18;;70895:131;70805:18;70895:131;;71043:407;71234:2;71248:47;;;71219:18;;71309:131;71219:18;71309:131;;71457:407;71648:2;71662:47;;;71633:18;;71723:131;71633:18;71723:131;;71871:407;72062:2;72076:47;;;72047:18;;72137:131;72047:18;72137:131;;72285:407;72476:2;72490:47;;;72461:18;;72551:131;72461:18;72551:131;;72699:407;72890:2;72904:47;;;72875:18;;72965:131;72875:18;72965:131;;73113:407;73304:2;73318:47;;;73289:18;;73379:131;73289:18;73379:131;;73527:407;73718:2;73732:47;;;73703:18;;73793:131;73703:18;73793:131;;73941:407;74132:2;74146:47;;;74117:18;;74207:131;74117:18;74207:131;;74355:407;74546:2;74560:47;;;74531:18;;74621:131;74531:18;74621:131;;74769:326;74943:3;74928:19;;74958:127;74932:9;75058:6;74958:127;;75102:354;75290:3;75275:19;;75305:141;75279:9;75419:6;75305:141;;75463:317;75633:2;75618:18;;75647:123;75622:9;75743:6;75647:123;;76007:324;76153:2;76138:18;;76167:71;76142:9;76211:6;76167:71;;;76249:72;76317:2;76306:9;76302:18;76293:6;76249:72;;76338:256;76400:2;76394:9;76426:17;;;-1:-1;;;;;76486:34;;76522:22;;;76483:62;76480:2;;;76558:1;76555;76548:12;76480:2;76574;76567:22;76378:216;;-1:-1;76378:216;76601:322;;-1:-1;;;;;76770:6;76767:30;76764:2;;;76810:1;76807;76800:12;76764:2;-1:-1;76845:4;76833:17;;;76898:15;;76701:222;76930:317;;-1:-1;;;;;77061:6;77058:30;77055:2;;;77101:1;77098;77091:12;77055:2;-1:-1;77232:4;77168;77145:17;;;;-1:-1;;77141:33;77222:15;;76992:255;77582:173;77728:4;77719:14;;77676:79;77762:159;77887:12;;77858:63;78443:200;78583:19;;;78632:4;78623:14;;78576:67;79301:91;;79363:24;79381:5;79363:24;;79505:85;79571:13;79564:21;;79547:43;79676:144;-1:-1;;;;;;79737:78;;79720:100;79827:142;79907:5;79913:51;79907:5;79913:51;;79976:176;80073:5;80079:68;80073:5;80079:68;;80159:121;-1:-1;;;;;80221:54;;80204:76;80366:81;80437:4;80426:16;;80409:38;80454:129;;80541:37;80572:5;80541:37;;80590:142;;80685:42;80721:5;80685:42;;80739:176;;80851:59;80904:5;80851:59;;80922:121;;81001:37;81032:5;81001:37;;81166:145;81247:6;81242:3;81237;81224:30;-1:-1;81303:1;81285:16;;81278:27;81217:94;81320:268;81385:1;81392:101;81406:6;81403:1;81400:13;81392:101;;;81473:11;;;81467:18;81454:11;;;81447:39;81428:2;81421:10;81392:101;;;81508:6;81505:1;81502:13;81499:2;;;-1:-1;;81573:1;81555:16;;81548:27;81369:219;81677:97;81765:2;81745:14;-1:-1;;81741:28;;81725:49;81782:109;81869:1;81862:5;81859:12;81849:2;;81875:9;81898:126;82002:1;81995:5;81992:12;81982:2;;82008:9;82031:117;82100:24;82118:5;82100:24;;;82093:5;82090:35;82080:2;;82139:1;82136;82129:12;82295:111;82361:21;82376:5;82361:21;;82413:117;82482:24;82500:5;82482:24;;82537:115;82605:23;82622:5;82605:23;

Swarm Source

bzzr://b53bc6df196a4770dea96b0a47e540c106600ce51886e42222292d6b86d548d8

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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