Contract 0x754ca67efd5951960c43dd78063277ec50a86628 1

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x72b9b3ec2408efbe6362f69c7e233fef11feafe800216036e6854e9b8a625b1eSafe Transfer Fr...131385592021-12-02 19:16:373 mins ago0xd8eaf7f31d6a112a429c0e5ddb86cc05b7738da8 IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.00126614
0xc9aa5f0f9834e02b82aca179d5952ed25e580394d8975c16a7bca2a99f1b2217Multicall131385262021-12-02 19:14:585 mins ago0xd8eaf7f31d6a112a429c0e5ddb86cc05b7738da8 IN  0x754ca67efd5951960c43dd78063277ec50a8662825 BNB0.002357685
0x1747f8581e94d2674bfbe77abb91107bea24aa0802b2356449ec533dc4cbba6fSafe Transfer Fr...131378302021-12-02 18:40:0939 mins ago0x9f7efd33a1edcfe4b1e0f8cad27a71cdb0d0dd6a IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.00143629668
0x76bd20bc3a09a708de97728bc3393e5078ea25178a244abe1ed1e98c2483fe56Multicall131378222021-12-02 18:39:4540 mins ago0x9f7efd33a1edcfe4b1e0f8cad27a71cdb0d0dd6a IN  0x754ca67efd5951960c43dd78063277ec50a866285 BNB0.00231080184
0xab0a500b094a327632c27878240d86c3eac59f304b0c8e4e640872b8c17f4c11Multicall131377972021-12-02 18:38:3041 mins ago0xd8eaf7f31d6a112a429c0e5ddb86cc05b7738da8 IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.000754095
0xeda8c94f6e5b6c703c1d3486a8056bdc7f6ca59e8ef85806ed52905da3bda49fMulticall131377942021-12-02 18:38:2141 mins ago0xd8eaf7f31d6a112a429c0e5ddb86cc05b7738da8 IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.000897285
0x8026f1442a9e4a9099935ad453f4dd20ba5d2efdf0140f57cdf2c4354bf7345cSafe Transfer Fr...131377422021-12-02 18:35:4544 mins ago0xbfce65828e648afdfa4e6b77c2134dff8abdf8b6 IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.00164148192
0x629ea2b1fce961f51c0ea5e064053096a3c5a451adfe983505022a4056815227Multicall131377332021-12-02 18:35:1844 mins ago0xbfce65828e648afdfa4e6b77c2134dff8abdf8b6 IN  0x754ca67efd5951960c43dd78063277ec50a866281.5 BNB0.00138333573
0x0e71448f9542dfc210e4e28427abb77f1072efab5a8c47e9527129be1c78c7d8Multicall131377272021-12-02 18:35:0045 mins ago0x9f7efd33a1edcfe4b1e0f8cad27a71cdb0d0dd6a IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.001026719505
0xca8f39081bc3c428972e22ef02d1b3d233deb38fca698578d2af6a2efa36308cSafe Transfer Fr...131377122021-12-02 18:34:1545 mins ago0xe75ed5b7ae4ec9c4d05602b98815147df9cef9bc IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.001877512
0x5b72371c4e784fea7129e04eb8c5341f4ec0e6b421452881b02b2548c22dee3cMulticall131376962021-12-02 18:33:2746 mins ago0xe75ed5b7ae4ec9c4d05602b98815147df9cef9bc IN  0x754ca67efd5951960c43dd78063277ec50a866281.996829492831369 BNB0.0013701
0xe74f7fc5147ce13e93d13a7b40c5ad8c170fd46aaa539a703d866f186cba9c29Multicall131376882021-12-02 18:33:0347 mins ago0xe75ed5b7ae4ec9c4d05602b98815147df9cef9bc IN  0x754ca67efd5951960c43dd78063277ec50a866281.996829492831369 BNB0.001413348
0x148d0af567737dcd7d1e836134029a53883387823c637811f73ede5f6f2d252cMulticall131376702021-12-02 18:32:0947 mins ago0xe75ed5b7ae4ec9c4d05602b98815147df9cef9bc IN  0x754ca67efd5951960c43dd78063277ec50a866286.370216447924913 BNB0.002445504
0x4277cd21c5cef0db5840bc16c225e41a22c0da54682244613ad79fc0e094bf4aMulticall131376572021-12-02 18:31:3048 mins ago0xcef0ff77fc1aff5c603457ee9124b4a7eb1bf044 IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.00108177
0x32ef8e4957643962347671623799fd9dbccfa5c21e3d1c3562b244d6b11c0bd8Multicall131375602021-12-02 18:26:3953 mins ago0xe75ed5b7ae4ec9c4d05602b98815147df9cef9bc IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.00088530696
0x919fc11d5b405a329c6f3b3c585ffecfefae3c8de1b6513be0ee500b84a51a24Multicall131375292021-12-02 18:25:0654 mins ago0xd8eaf7f31d6a112a429c0e5ddb86cc05b7738da8 IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.000915565
0x2fd2f032675f208794c75bdc0ed31d8b84f22cc14a15bdd8d408132a394d1ecf0xfc6f7865131375232021-12-02 18:24:4855 mins ago0xd8eaf7f31d6a112a429c0e5ddb86cc05b7738da8 IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.000697415
0xa330c36615f7d4d12942487099d28617778c63747c1f786ea099664187021482Safe Transfer Fr...131373622021-12-02 18:16:451 hr 3 mins ago0x90c422a44a0a4fee43bcbec887c307e18934068d IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.001341261495
0xea8ba2495451e1a5a095dc5d429794d4d3fdaf4e06f70c8622d3fb6516949d73Safe Transfer Fr...131371992021-12-02 18:08:361 hr 11 mins ago0xbfce65828e648afdfa4e6b77c2134dff8abdf8b6 IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.00164148192
0x49e6b168392d34488f70cb347d1bb36ff2d7177a04c2f257ea323946bb2292abMulticall131371922021-12-02 18:08:151 hr 11 mins ago0xd8eaf7f31d6a112a429c0e5ddb86cc05b7738da8 IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.00072581
0x5cfeb0791cd11b900608e9a2c61c28f9ba433c7b3b85be84f4eaab0e1fedb4920xfc6f7865131371902021-12-02 18:08:091 hr 11 mins ago0xd8eaf7f31d6a112a429c0e5ddb86cc05b7738da8 IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.000772415
0xd57d19133d93659ae166786a2324cbc1074442feb6c87ae2ae693aadd8482553Multicall131371862021-12-02 18:07:571 hr 12 mins ago0xbfce65828e648afdfa4e6b77c2134dff8abdf8b6 IN  0x754ca67efd5951960c43dd78063277ec50a866282.5 BNB0.00248103576
0x8dec855f2d3de1536083414bee2c9a92d5e413b9eaf2d822aa084b604123683fMulticall131371212021-12-02 18:04:401 hr 15 mins ago0xe75ed5b7ae4ec9c4d05602b98815147df9cef9bc IN  0x754ca67efd5951960c43dd78063277ec50a866282.108840947924983 BNB0.002320985
0x7d2efce6c7ef55030629764504876a30d0ff10c7c72f2df1066fd50a44e910b5Multicall131370922021-12-02 18:03:131 hr 16 mins ago0xbfce65828e648afdfa4e6b77c2134dff8abdf8b6 IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.00105852285
0xd00799e2f31e2138d5f73aaf5cddf04b1da37a80a74262f902ee6ec9ba553878Multicall131370602021-12-02 18:01:371 hr 18 mins ago0xe75ed5b7ae4ec9c4d05602b98815147df9cef9bc IN  0x754ca67efd5951960c43dd78063277ec50a866280 BNB0.00077282
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xc9aa5f0f9834e02b82aca179d5952ed25e580394d8975c16a7bca2a99f1b2217131385262021-12-02 19:14:585 mins ago 0x754ca67efd5951960c43dd78063277ec50a86628 Binance: WBNB Token25 BNB
0x76bd20bc3a09a708de97728bc3393e5078ea25178a244abe1ed1e98c2483fe56131378222021-12-02 18:39:4540 mins ago 0x754ca67efd5951960c43dd78063277ec50a86628 Binance: WBNB Token5 BNB
0xab0a500b094a327632c27878240d86c3eac59f304b0c8e4e640872b8c17f4c11131377972021-12-02 18:38:3041 mins ago 0x754ca67efd5951960c43dd78063277ec50a866280xd8eaf7f31d6a112a429c0e5ddb86cc05b7738da822.394384373433398968 BNB
0xab0a500b094a327632c27878240d86c3eac59f304b0c8e4e640872b8c17f4c11131377972021-12-02 18:38:3041 mins ago Binance: WBNB Token 0x754ca67efd5951960c43dd78063277ec50a8662822.394384373433398968 BNB
0xeda8c94f6e5b6c703c1d3486a8056bdc7f6ca59e8ef85806ed52905da3bda49f131377942021-12-02 18:38:2141 mins ago 0x754ca67efd5951960c43dd78063277ec50a866280xd8eaf7f31d6a112a429c0e5ddb86cc05b7738da80.002399182738911221 BNB
0xeda8c94f6e5b6c703c1d3486a8056bdc7f6ca59e8ef85806ed52905da3bda49f131377942021-12-02 18:38:2141 mins ago Binance: WBNB Token 0x754ca67efd5951960c43dd78063277ec50a866280.002399182738911221 BNB
0x629ea2b1fce961f51c0ea5e064053096a3c5a451adfe983505022a4056815227131377332021-12-02 18:35:1844 mins ago 0x754ca67efd5951960c43dd78063277ec50a866280xbfce65828e648afdfa4e6b77c2134dff8abdf8b60.005300307593553431 BNB
0x629ea2b1fce961f51c0ea5e064053096a3c5a451adfe983505022a4056815227131377332021-12-02 18:35:1844 mins ago 0x754ca67efd5951960c43dd78063277ec50a86628 Binance: WBNB Token1.494699692406446569 BNB
0x5b72371c4e784fea7129e04eb8c5341f4ec0e6b421452881b02b2548c22dee3c131376962021-12-02 18:33:2746 mins ago 0x754ca67efd5951960c43dd78063277ec50a866280xe75ed5b7ae4ec9c4d05602b98815147df9cef9bc0.002653249157627633 BNB
0x5b72371c4e784fea7129e04eb8c5341f4ec0e6b421452881b02b2548c22dee3c131376962021-12-02 18:33:2746 mins ago 0x754ca67efd5951960c43dd78063277ec50a86628 Binance: WBNB Token1.994176243673741591 BNB
0xe74f7fc5147ce13e93d13a7b40c5ad8c170fd46aaa539a703d866f186cba9c29131376882021-12-02 18:33:0347 mins ago 0x754ca67efd5951960c43dd78063277ec50a86628 Binance: WBNB Token1.996829492831369224 BNB
0x148d0af567737dcd7d1e836134029a53883387823c637811f73ede5f6f2d252c131376702021-12-02 18:32:0947 mins ago 0x754ca67efd5951960c43dd78063277ec50a86628 Binance: WBNB Token6.370216447924913072 BNB
0x4277cd21c5cef0db5840bc16c225e41a22c0da54682244613ad79fc0e094bf4a131376572021-12-02 18:31:3048 mins ago 0x754ca67efd5951960c43dd78063277ec50a866280xcef0ff77fc1aff5c603457ee9124b4a7eb1bf0444.186214587900402174 BNB
0x4277cd21c5cef0db5840bc16c225e41a22c0da54682244613ad79fc0e094bf4a131376572021-12-02 18:31:3048 mins ago Binance: WBNB Token 0x754ca67efd5951960c43dd78063277ec50a866284.186214587900402174 BNB
0xd57d19133d93659ae166786a2324cbc1074442feb6c87ae2ae693aadd8482553131371862021-12-02 18:07:571 hr 12 mins ago 0x754ca67efd5951960c43dd78063277ec50a86628 Binance: WBNB Token2.5 BNB
0x8dec855f2d3de1536083414bee2c9a92d5e413b9eaf2d822aa084b604123683f131371212021-12-02 18:04:401 hr 15 mins ago 0x754ca67efd5951960c43dd78063277ec50a866280xe75ed5b7ae4ec9c4d05602b98815147df9cef9bc2.108840947924983062 BNB
0xd00799e2f31e2138d5f73aaf5cddf04b1da37a80a74262f902ee6ec9ba553878131370602021-12-02 18:01:371 hr 18 mins ago 0x754ca67efd5951960c43dd78063277ec50a866280xe75ed5b7ae4ec9c4d05602b98815147df9cef9bc0.003851898259364855 BNB
0xd00799e2f31e2138d5f73aaf5cddf04b1da37a80a74262f902ee6ec9ba553878131370602021-12-02 18:01:371 hr 18 mins ago Binance: WBNB Token 0x754ca67efd5951960c43dd78063277ec50a866280.003851898259364855 BNB
0x22f912f217bacaec6a7ff830b1ea77ab3327d2f8d308d5fd998e0fc2ac9773d2131369052021-12-02 17:53:521 hr 26 mins ago 0x754ca67efd5951960c43dd78063277ec50a86628 Binance: WBNB Token25 BNB
0x9e734991282a53294ddf11031cec0611eaf8099dda67c588eb21fa8576950f9d131364402021-12-02 17:30:371 hr 49 mins ago 0x754ca67efd5951960c43dd78063277ec50a866280xbfb46bd54a98974e70248904621d7c1087bbd7860.041229615256030407 BNB
0x9e734991282a53294ddf11031cec0611eaf8099dda67c588eb21fa8576950f9d131364402021-12-02 17:30:371 hr 49 mins ago Binance: WBNB Token 0x754ca67efd5951960c43dd78063277ec50a866280.041229615256030407 BNB
0x714de47abfbbac9fd3bb80c2f8dc6f9f466658690f829de18db3f2f5422b1bec131364272021-12-02 17:29:581 hr 50 mins ago 0x754ca67efd5951960c43dd78063277ec50a866280xbfb46bd54a98974e70248904621d7c1087bbd7860.002133411805423876 BNB
0x714de47abfbbac9fd3bb80c2f8dc6f9f466658690f829de18db3f2f5422b1bec131364272021-12-02 17:29:581 hr 50 mins ago Binance: WBNB Token 0x754ca67efd5951960c43dd78063277ec50a866280.002133411805423876 BNB
0xe0d4a4af5d7b2cb231b5a8b40e54253f38d3c72952bddc9fee7df732b100de28131363162021-12-02 17:24:251 hr 55 mins ago 0x754ca67efd5951960c43dd78063277ec50a86628 Binance: WBNB Token20 BNB
0x2c27ea682d679f88be9b9fb8ede55ebcfe915a98b6583ae301a79b282349fb21131361042021-12-02 17:13:492 hrs 6 mins ago 0x754ca67efd5951960c43dd78063277ec50a866280xbfce65828e648afdfa4e6b77c2134dff8abdf8b60.42434683792685076 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NFTPositionManager

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-10-10
*/

// File: @sheepdex/core/contracts/lib/Const.sol

pragma solidity >=0.4.0;

library Const {
    uint8 internal constant RESOLUTION = 96;
    uint256 internal constant Q96 = 0x1000000000000000000000000;
    uint256 internal constant Q128 = 0x100000000000000000000000000000000;
}

// File: @openzeppelin/contracts/math/SafeMath.sol



pragma solidity ^0.7.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

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

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

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

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

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

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

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

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

// File: @sheepdex/core/contracts/lib/SafeCast.sol

pragma solidity =0.7.6;

library SafeCast {
    function add(int256 x, int256 y) internal pure returns (int256 z) {
        require((z = x + y) >= x == (y >= 0));
    }

    function sub(int256 x, int256 y) internal pure returns (int256 z) {
        require((z = x - y) <= x == (y >= 0));
    }

    function toUint160(uint256 y) internal pure returns (uint160 z) {
        require((z = uint160(y)) == y);
    }

    function toInt128(int256 y) internal pure returns (int128 z) {
        require((z = int128(y)) == y);
    }

    function toInt256(uint256 y) internal pure returns (int256 z) {
        require(y < 2**255);
        z = int256(y);
    }
}

// File: @sheepdex/core/contracts/lib/SwapMath.sol

pragma solidity =0.7.6;




library SwapMath {
    using SafeMath for uint256;
    using SafeCast for uint256;

    function getNextSqrtPriceFromAmount0RoundingUp(
        uint160 sqrtPX96,
        uint128 liquidity,
        uint256 amount,
        bool add
    ) internal pure returns (uint160) {
        // we short circuit amount == 0 because the result is otherwise not guaranteed to equal the input price
        if (amount == 0) return sqrtPX96;
        uint256 numerator1 = uint256(liquidity) << Const.RESOLUTION;

        if (add) {
            uint256 product;
            if ((product = amount * sqrtPX96) / amount == sqrtPX96) {
                uint256 denominator = numerator1 + product;
                if (denominator >= numerator1)
                // always fits in 160 bits
                    return uint160(mulDivRoundingUp(numerator1, sqrtPX96, denominator));
            }

            return uint160(divRoundingUp(numerator1, (numerator1 / sqrtPX96).add(amount)));
        } else {
            uint256 product;
            // if the product overflows, we know the denominator underflows
            // in addition, we must check that the denominator does not underflow
            require((product = amount * sqrtPX96) / amount == sqrtPX96 && numerator1 > product);
            uint256 denominator = numerator1 - product;
            return mulDivRoundingUp(numerator1, sqrtPX96, denominator).toUint160();
        }
    }

    function getNextSqrtPriceFromAmount1RoundingDown(
        uint160 sqrtPX96,
        uint128 liquidity,
        uint256 amount,
        bool add
    ) internal pure returns (uint160) {
        // if we're adding (subtracting), rounding down requires rounding the quotient down (up)
        // in both cases, avoid a mulDiv for most inputs
        if (add) {
            uint256 quotient =
            (
            amount <= type(uint160).max
            ? (amount << Const.RESOLUTION) / liquidity
            : mulDiv(amount, Const.Q96, liquidity)
            );

            return uint256(sqrtPX96).add(quotient).toUint160();
        } else {
            uint256 quotient =
            (
            amount <= type(uint160).max
            ? divRoundingUp(amount << Const.RESOLUTION, liquidity)
            : mulDivRoundingUp(amount, Const.Q96, liquidity)
            );

            require(sqrtPX96 > quotient);
            // always fits 160 bits
            return uint160(sqrtPX96 - quotient);
        }
    }

    /// @notice Gets the next sqrt price given an input amount of token0 or token1
    /// @dev Throws if price or liquidity are 0, or if the next price is out of bounds
    /// @param sqrtPX96 The starting price, i.e., before accounting for the input amount
    /// @param liquidity The amount of usable liquidity
    /// @param amountIn How much of token0, or token1, is being swapped in
    /// @param zeroForOne Whether the amount in is token0 or token1
    /// @return sqrtQX96 The price after adding the input amount to token0 or token1
    function getNextSqrtPriceFromInput(
        uint160 sqrtPX96,
        uint128 liquidity,
        uint256 amountIn,
        bool zeroForOne
    ) internal pure returns (uint160 sqrtQX96) {
        require(sqrtPX96 > 0);
        require(liquidity > 0);

        // round to make sure that we don't pass the target price
        return
        zeroForOne
        ? getNextSqrtPriceFromAmount0RoundingUp(sqrtPX96, liquidity, amountIn, true)
        : getNextSqrtPriceFromAmount1RoundingDown(sqrtPX96, liquidity, amountIn, true);
    }

    function getNextSqrtPriceFromOutput(
        uint160 sqrtPX96,
        uint128 liquidity,
        uint256 amountOut,
        bool zeroForOne
    ) internal pure returns (uint160 sqrtQX96) {
        require(sqrtPX96 > 0);
        require(liquidity > 0);

        // round to make sure that we pass the target price
        return
        zeroForOne
        ? getNextSqrtPriceFromAmount1RoundingDown(sqrtPX96, liquidity, amountOut, false)
        : getNextSqrtPriceFromAmount0RoundingUp(sqrtPX96, liquidity, amountOut, false);
    }

    function getAmount0Delta(
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint128 liquidity,
        bool roundUp
    ) internal pure returns (uint256 amount0) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);

        uint256 numerator1 = uint256(liquidity) << Const.RESOLUTION;
        uint256 numerator2 = sqrtRatioBX96 - sqrtRatioAX96;

        require(sqrtRatioAX96 > 0);

        return
        roundUp
        ? divRoundingUp(
            mulDivRoundingUp(numerator1, numerator2, sqrtRatioBX96),
            sqrtRatioAX96
        )
        : mulDiv(numerator1, numerator2, sqrtRatioBX96) / sqrtRatioAX96;
    }

    function getAmount1Delta(
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint128 liquidity,
        bool roundUp
    ) internal pure returns (uint256 amount1) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);

        return
        roundUp
        ? mulDivRoundingUp(liquidity, sqrtRatioBX96 - sqrtRatioAX96, Const.Q96)
        : mulDiv(liquidity, sqrtRatioBX96 - sqrtRatioAX96, Const.Q96);
    }

    function getAmount0Delta(
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        int128 liquidity
    ) internal pure returns (int256 amount0) {
        return
        liquidity < 0
        ? -getAmount0Delta(sqrtRatioAX96, sqrtRatioBX96, uint128(-liquidity), false).toInt256()
        : getAmount0Delta(sqrtRatioAX96, sqrtRatioBX96, uint128(liquidity), true).toInt256();
    }

    function getAmount1Delta(
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        int128 liquidity
    ) internal pure returns (int256 amount1) {
        return
        liquidity < 0
        ? -getAmount1Delta(sqrtRatioAX96, sqrtRatioBX96, uint128(-liquidity), false).toInt256()
        : getAmount1Delta(sqrtRatioAX96, sqrtRatioBX96, uint128(liquidity), true).toInt256();
    }

    function mostSignificantBit(uint256 x) internal pure returns (uint8 r) {
        require(x > 0);

        if (x >= 0x100000000000000000000000000000000) {
            x >>= 128;
            r += 128;
        }
        if (x >= 0x10000000000000000) {
            x >>= 64;
            r += 64;
        }
        if (x >= 0x100000000) {
            x >>= 32;
            r += 32;
        }
        if (x >= 0x10000) {
            x >>= 16;
            r += 16;
        }
        if (x >= 0x100) {
            x >>= 8;
            r += 8;
        }
        if (x >= 0x10) {
            x >>= 4;
            r += 4;
        }
        if (x >= 0x4) {
            x >>= 2;
            r += 2;
        }
        if (x >= 0x2) r += 1;
    }

    function mulDiv(
        uint256 a,
        uint256 b,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        uint256 prod0;
        uint256 prod1;
        assembly {
            let mm := mulmod(a, b, not(0))
            prod0 := mul(a, b)
            prod1 := sub(sub(mm, prod0), lt(mm, prod0))
        }

        if (prod1 == 0) {
            require(denominator > 0);
            assembly {
                result := div(prod0, denominator)
            }
            return result;
        }

        require(denominator > prod1);

        uint256 remainder;
        assembly {
            remainder := mulmod(a, b, denominator)
        }

        assembly {
            prod1 := sub(prod1, gt(remainder, prod0))
            prod0 := sub(prod0, remainder)
        }

        uint256 twos = -denominator & denominator;
        assembly {
            denominator := div(denominator, twos)
        }
        assembly {
            prod0 := div(prod0, twos)
        }

        assembly {
            twos := add(div(sub(0, twos), twos), 1)
        }
        prod0 |= prod1 * twos;
        uint256 inv = (3 * denominator) ^ 2;
        inv *= 2 - denominator * inv;
        inv *= 2 - denominator * inv;
        inv *= 2 - denominator * inv;
        inv *= 2 - denominator * inv;
        inv *= 2 - denominator * inv;
        inv *= 2 - denominator * inv;
        result = prod0 * inv;
        return result;
    }

    function mulDivRoundingUp(
        uint256 a,
        uint256 b,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        result = mulDiv(a, b, denominator);
        if (mulmod(a, b, denominator) > 0) {
            require(result < type(uint256).max);
            result++;
        }
    }

    function leastSignificantBit(uint256 x) internal pure returns (uint8 r) {
        require(x > 0);

        r = 255;
        if (x & type(uint128).max > 0) {
            r -= 128;
        } else {
            x >>= 128;
        }
        if (x & type(uint64).max > 0) {
            r -= 64;
        } else {
            x >>= 64;
        }
        if (x & type(uint32).max > 0) {
            r -= 32;
        } else {
            x >>= 32;
        }
        if (x & type(uint16).max > 0) {
            r -= 16;
        } else {
            x >>= 16;
        }
        if (x & type(uint8).max > 0) {
            r -= 8;
        } else {
            x >>= 8;
        }
        if (x & 0xf > 0) {
            r -= 4;
        } else {
            x >>= 4;
        }
        if (x & 0x3 > 0) {
            r -= 2;
        } else {
            x >>= 2;
        }
        if (x & 0x1 > 0) r -= 1;
    }

    function computeSwapStep(
        uint160 sqrtRatioCurrentX96,
        uint160 sqrtRatioTargetX96,
        uint128 liquidity,
        int256 amountRemaining,
        uint24 feePips
    )
        internal
        pure
        returns (
            uint160 sqrtRatioNextX96,
            uint256 amountIn,
            uint256 amountOut,
            uint256 feeAmount
        )
    {
        bool zeroForOne = sqrtRatioCurrentX96 >= sqrtRatioTargetX96;
        bool exactIn = amountRemaining >= 0;

        if (exactIn) {
            uint256 amountRemainingLessFee = mulDiv(uint256(amountRemaining), 1e6 - feePips, 1e6);
            amountIn = zeroForOne
                ? getAmount0Delta(sqrtRatioTargetX96, sqrtRatioCurrentX96, liquidity, true)
                : getAmount1Delta(sqrtRatioCurrentX96, sqrtRatioTargetX96, liquidity, true);
            if (amountRemainingLessFee >= amountIn) sqrtRatioNextX96 = sqrtRatioTargetX96;
            else
                sqrtRatioNextX96 = getNextSqrtPriceFromInput(
                    sqrtRatioCurrentX96,
                    liquidity,
                    amountRemainingLessFee,
                    zeroForOne
                );
        } else {
            amountOut = zeroForOne
                ? getAmount1Delta(sqrtRatioTargetX96, sqrtRatioCurrentX96, liquidity, false)
                : getAmount0Delta(sqrtRatioCurrentX96, sqrtRatioTargetX96, liquidity, false);
            if (uint256(-amountRemaining) >= amountOut) sqrtRatioNextX96 = sqrtRatioTargetX96;
            else
                sqrtRatioNextX96 = getNextSqrtPriceFromOutput(
                    sqrtRatioCurrentX96,
                    liquidity,
                    uint256(-amountRemaining),
                    zeroForOne
                );
        }

        bool max = sqrtRatioTargetX96 == sqrtRatioNextX96;
        if (zeroForOne) {
            amountIn = max && exactIn
                ? amountIn
                : getAmount0Delta(sqrtRatioNextX96, sqrtRatioCurrentX96, liquidity, true);
            amountOut = max && !exactIn
                ? amountOut
                : getAmount1Delta(sqrtRatioNextX96, sqrtRatioCurrentX96, liquidity, false);
        } else {
            amountIn = max && exactIn
                ? amountIn
                : getAmount1Delta(sqrtRatioCurrentX96, sqrtRatioNextX96, liquidity, true);
            amountOut = max && !exactIn
                ? amountOut
                : getAmount0Delta(sqrtRatioCurrentX96, sqrtRatioNextX96, liquidity, false);
        }

        if (!exactIn && amountOut > uint256(-amountRemaining)) {
            amountOut = uint256(-amountRemaining);
        }

        if (exactIn && sqrtRatioNextX96 != sqrtRatioTargetX96) {
            feeAmount = uint256(amountRemaining) - amountIn;
        } else {
            feeAmount = mulDivRoundingUp(amountIn, feePips, 1e6 - feePips);
        }
    }

    function addDelta(uint128 x, int128 y) internal pure returns (uint128 z) {
        if (y < 0) {
            require((z = x - uint128(-y)) < x, 'LS');
        } else {
            require((z = x + uint128(y)) >= x, 'LA');
        }
    }

    int24 internal constant MIN_TICK = -887272;

    int24 internal constant MAX_TICK = -MIN_TICK;

    uint160 internal constant MIN_SQRT_RATIO = 4295128739;

    uint160 internal constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;

    function getSqrtRatioAtTick(int24 tick) internal pure returns (uint160 sqrtPriceX96) {
        uint256 absTick = tick < 0 ? uint256(-int256(tick)) : uint256(int256(tick));
        require(absTick <= uint256(MAX_TICK), 'T');

        uint256 ratio = absTick & 0x1 != 0 ? 0xfffcb933bd6fad37aa2d162d1a594001 : 0x100000000000000000000000000000000;
        if (absTick & 0x2 != 0) ratio = (ratio * 0xfff97272373d413259a46990580e213a) >> 128;
        if (absTick & 0x4 != 0) ratio = (ratio * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128;
        if (absTick & 0x8 != 0) ratio = (ratio * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128;
        if (absTick & 0x10 != 0) ratio = (ratio * 0xffcb9843d60f6159c9db58835c926644) >> 128;
        if (absTick & 0x20 != 0) ratio = (ratio * 0xff973b41fa98c081472e6896dfb254c0) >> 128;
        if (absTick & 0x40 != 0) ratio = (ratio * 0xff2ea16466c96a3843ec78b326b52861) >> 128;
        if (absTick & 0x80 != 0) ratio = (ratio * 0xfe5dee046a99a2a811c461f1969c3053) >> 128;
        if (absTick & 0x100 != 0) ratio = (ratio * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128;
        if (absTick & 0x200 != 0) ratio = (ratio * 0xf987a7253ac413176f2b074cf7815e54) >> 128;
        if (absTick & 0x400 != 0) ratio = (ratio * 0xf3392b0822b70005940c7a398e4b70f3) >> 128;
        if (absTick & 0x800 != 0) ratio = (ratio * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128;
        if (absTick & 0x1000 != 0) ratio = (ratio * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128;
        if (absTick & 0x2000 != 0) ratio = (ratio * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128;
        if (absTick & 0x4000 != 0) ratio = (ratio * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128;
        if (absTick & 0x8000 != 0) ratio = (ratio * 0x31be135f97d08fd981231505542fcfa6) >> 128;
        if (absTick & 0x10000 != 0) ratio = (ratio * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128;
        if (absTick & 0x20000 != 0) ratio = (ratio * 0x5d6af8dedb81196699c329225ee604) >> 128;
        if (absTick & 0x40000 != 0) ratio = (ratio * 0x2216e584f5fa1ea926041bedfe98) >> 128;
        if (absTick & 0x80000 != 0) ratio = (ratio * 0x48a170391f7dc42444e8fa2) >> 128;

        if (tick > 0) ratio = type(uint256).max / ratio;

        sqrtPriceX96 = uint160((ratio >> 32) + (ratio % (1 << 32) == 0 ? 0 : 1));
    }

    function getTickAtSqrtRatio(uint160 sqrtPriceX96) internal pure returns (int24 tick) {
        require(sqrtPriceX96 >= MIN_SQRT_RATIO && sqrtPriceX96 < MAX_SQRT_RATIO, 'R');
        uint256 ratio = uint256(sqrtPriceX96) << 32;

        uint256 r = ratio;
        uint256 msb = 0;

        assembly {
            let f := shl(7, gt(r, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(6, gt(r, 0xFFFFFFFFFFFFFFFF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(5, gt(r, 0xFFFFFFFF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(4, gt(r, 0xFFFF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(3, gt(r, 0xFF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(2, gt(r, 0xF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(1, gt(r, 0x3))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := gt(r, 0x1)
            msb := or(msb, f)
        }

        if (msb >= 128) r = ratio >> (msb - 127);
        else r = ratio << (127 - msb);

        int256 log_2 = (int256(msb) - 128) << 64;

        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(63, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(62, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(61, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(60, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(59, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(58, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(57, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(56, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(55, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(54, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(53, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(52, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(51, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(50, f))
        }

        int256 log_sqrt10001 = log_2 * 255738958999603826347141;

        int24 tickLow = int24((log_sqrt10001 - 3402992956809132418596140100660247210) >> 128);
        int24 tickHi = int24((log_sqrt10001 + 291339464771989622907027621153398088495) >> 128);

        tick = tickLow == tickHi ? tickLow : getSqrtRatioAtTick(tickHi) <= sqrtPriceX96 ? tickHi : tickLow;
    }

    function divRoundingUp(uint256 x, uint256 y) internal pure returns (uint256 z) {
        assembly {
            z := add(div(x, y), gt(mod(x, y), 0))
        }
    }
}

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



pragma solidity ^0.7.0;

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

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol



pragma solidity ^0.7.0;


/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

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

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

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
      * @dev Safely transfers `tokenId` token from `from` to `to`.
      *
      * Requirements:
      *
      * - `from` cannot be the zero address.
      * - `to` cannot be the zero address.
      * - `tokenId` token must exist and be owned by `from`.
      * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
      * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
      *
      * Emits a {Transfer} event.
      */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}

// File: @openzeppelin/contracts/token/ERC721/IERC721Metadata.sol



pragma solidity ^0.7.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

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

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

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



pragma solidity ^0.7.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

// File: contracts/interfaces/IPoolInitializer.sol

pragma solidity >=0.7.5;


interface IPoolInitializer {
    function createAndInitializePoolIfNecessary(
        address token0,
        address token1,
        uint24 fee,
        uint160 sqrtPriceX96
    ) external payable returns (address pool);
}

// File: contracts/interfaces/IERC721Permit.sol

pragma solidity >=0.7.5;


interface IERC721Permit is IERC721 {
    function PERMIT_TYPEHASH() external pure returns (bytes32);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function permit(
        address spender,
        uint256 tokenId,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable;
}

// File: contracts/interfaces/IPeripheryPayments.sol

pragma solidity >=0.7.5;

interface IPeripheryPayments {
    function unwrapWBNB(uint256 amountMinimum, address recipient) external payable;

    function refundETH() external payable;

    function sweepToken(
        address token,
        uint256 amountMinimum,
        address recipient
    ) external payable;
}

// File: contracts/interfaces/IPeripheryImmutableState.sol

pragma solidity >=0.5.0;

interface IPeripheryImmutableState {
    function factory() external view returns (address);

    function WBNB() external view returns (address);
}

// File: contracts/lib/PoolAddress.sol

pragma solidity >=0.5.0;

library PoolAddress {

    bytes32 internal constant POOL_INIT_CODE_HASH = 0x8648e6a9f0852d84a8a9787d749989a398cbb000270e4cd106f3dc2bc94e99ff;

    struct PoolKey {
        address token0;
        address token1;
        uint24 fee;
    }

    function getPoolKey(
        address tokenA,
        address tokenB,
        uint24 fee
    ) internal pure returns (PoolKey memory) {
        if (tokenA > tokenB) (tokenA, tokenB) = (tokenB, tokenA);
        return PoolKey({token0: tokenA, token1: tokenB, fee: fee});
    }

    function computeAddress(address factory, PoolKey memory key) internal pure returns (address pool) {
        require(key.token0 < key.token1);
        pool = address(
            uint256(
                keccak256(
                    abi.encodePacked(
                        hex'ff',
                        factory,
                        keccak256(abi.encode(key.token0, key.token1, key.fee)),
                        POOL_INIT_CODE_HASH
                    )
                )
            )
        );
    }
}

// File: contracts/interfaces/INFTPositionManager.sol

pragma solidity >=0.7.5;









interface INFTPositionManager is
    IPoolInitializer,
    IPeripheryPayments,
    IPeripheryImmutableState,
    IERC721Metadata,
    IERC721Enumerable,
    IERC721Permit
{
    event IncreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1);
    event DecreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1);
    event Collect(uint256 indexed tokenId, address recipient, uint256 amount0, uint256 amount1);

    function positions(uint256 tokenId)
        external
        view
        returns (
            uint96 nonce,
            address operator,
            address token0,
            address token1,
            uint24 fee,
            int24 tickLower,
            int24 tickUpper,
            uint128 liquidity,
            uint256 feeGrowthInside0LastX128,
            uint256 feeGrowthInside1LastX128,
            uint128 tokensOwed0,
            uint128 tokensOwed1
        );

    struct MintParams {
        address token0;
        address token1;
        uint24 fee;
        int24 tickLower;
        int24 tickUpper;
        uint256 amount0Desired;
        uint256 amount1Desired;
        uint256 amount0Min;
        uint256 amount1Min;
        address recipient;
        uint256 deadline;
    }

    function mint(MintParams calldata params)
        external
        payable
        returns (
            uint256 tokenId,
            uint128 liquidity,
            uint256 amount0,
            uint256 amount1
        );

    struct IncreaseLiquidityParams {
        uint256 tokenId;
        uint256 amount0Desired;
        uint256 amount1Desired;
        uint256 amount0Min;
        uint256 amount1Min;
        uint256 deadline;
    }

    function increaseLiquidity(IncreaseLiquidityParams calldata params)
        external
        payable
        returns (
            uint128 liquidity,
            uint256 amount0,
            uint256 amount1
        );

    struct DecreaseLiquidityParams {
        uint256 tokenId;
        uint128 liquidity;
        uint256 amount0Min;
        uint256 amount1Min;
        uint256 deadline;
    }

    function decreaseLiquidity(DecreaseLiquidityParams calldata params)
        external
        payable
        returns (uint256 amount0, uint256 amount1);

    struct CollectParams {
        uint256 tokenId;
        address recipient;
        uint128 amount0Max;
        uint128 amount1Max;
    }

    function collect(CollectParams calldata params) external payable returns (uint256 amount0, uint256 amount1);

    function burn(uint256 tokenId) external payable;
}

// File: contracts/interfaces/INFTPositionDescriptor.sol

pragma solidity >=0.5.0;


interface INFTPositionDescriptor {
    function tokenURI(INFTPositionManager positionManager, uint256 tokenId) external view returns (string memory);
}

// File: contracts/lib/PositionKey.sol

pragma solidity >=0.5.0;

library PositionKey {
    function compute(
        address owner,
        int24 tickLower,
        int24 tickUpper
    ) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(owner, tickLower, tickUpper));
    }
}

// File: @sheepdex/core/contracts/interfaces/ISpePool.sol

pragma solidity =0.7.6;

interface ISpePool {
    event Initialize(uint160 sqrtPriceX96, int24 tick);

    event Mint(
        address sender,
        address indexed owner,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount,
        uint256 amount0,
        uint256 amount1
    );
    event Collect(
        address indexed owner,
        address recipient,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount0,
        uint128 amount1
    );
    event Burn(
        address indexed owner,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount,
        uint256 amount0,
        uint256 amount1
    );

    event Swap(
        address indexed sender,
        address indexed recipient,
        int256 amount0,
        int256 amount1,
        uint160 sqrtPriceX96,
        uint128 liquidity,
        int24 tick
    );

    event Flash(
        address indexed sender,
        address indexed recipient,
        uint256 amount0,
        uint256 amount1,
        uint256 paid0,
        uint256 paid1
    );

    event IncreaseObservationCardinalityNext(
        uint16 observationCardinalityNextOld,
        uint16 observationCardinalityNextNew
    );

    function slot0()
    external
    view
    returns (
        uint160 sqrtPriceX96,
        int24 tick,
        uint16 observationIndex,
        uint16 observationCardinality,
        uint16 observationCardinalityNext,
        uint8 feeProtocol,
        bool unlocked
    );

    function feeGrowthGlobal0X128() external view returns (uint256);

    function feeGrowthGlobal1X128() external view returns (uint256);

    function protocolFees() external view returns (uint128 token0Amount, uint128 token1Amount);

    function liquidity() external view returns (uint128);

    function ticks(int24 tick)
    external
    view
    returns (
        uint128 liquidityGross,
        int128 liquidityNet,
        uint256 feeGrowthOutside0X128,
        uint256 feeGrowthOutside1X128,
        int56 tickCumulativeOutside,
        uint160 secondsPerLiquidityOutsideX128,
        uint32 secondsOutside,
        bool initialized
    );

    function tickBitmap(int16 wordPosition) external view returns (uint256);

    function positions(bytes32 key)
    external
    view
    returns (
        uint128 _liquidity,
        uint256 feeGrowthInside0LastX128,
        uint256 feeGrowthInside1LastX128,
        uint128 tokensOwed0,
        uint128 tokensOwed1
    );

    function observations(uint256 index)
    external
    view
    returns (
        uint32 blockTimestamp,
        int56 tickCumulative,
        uint160 secondsPerLiquidityCumulativeX128,
        bool initialized
    );

    function initialize(uint160 sqrtPriceX96) external;

    function mint(
        address recipient,
        int24 tickLower,
        int24 tickUpper,
        uint128 amount,
        bytes calldata data
    ) external returns (uint256 amount0, uint256 amount1);

    function collect(
        address recipient,
        int24 tickLower,
        int24 tickUpper,
        uint128 amount0Requested,
        uint128 amount1Requested
    ) external returns (uint128 amount0, uint128 amount1);

    function burn(
        int24 tickLower,
        int24 tickUpper,
        uint128 amount
    ) external returns (uint256 amount0, uint256 amount1);

    function swap(
        address recipient,
        bool zeroForOne,
        int256 amountSpecified,
        uint160 sqrtPriceLimitX96,
        bytes calldata data
    ) external returns (int256 amount0, int256 amount1);

    function flash(
        address recipient,
        uint256 amount0,
        uint256 amount1,
        bytes calldata data
    ) external;

    function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external;

    function observe(uint32[] calldata secondsAgos)
    external
    view
    returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s);

    function snapshotCumulativesInside(int24 tickLower, int24 tickUpper)
    external
    view
    returns (
        int56 tickCumulativeInside,
        uint160 secondsPerLiquidityInsideX128,
        uint32 secondsInside
    );

    function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external;

    function collectProtocol(address token) external returns (uint128 amount0, uint128 amount1);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function fee() external view returns (uint24);

    function tickSpacing() external view returns (int24);

    function maxLiquidityPerTick() external view returns (uint128);
}

// File: @sheepdex/core/contracts/interfaces/ISpeFactory.sol

pragma solidity =0.7.6;

interface ISpeFactory {
    event PoolCreated(
        address indexed token0,
        address indexed token1,
        uint24 indexed fee,
        int24 tickSpacing,
        address pool
    );

    function operator() external view returns (address);

    function swapFee(address addr, uint24 originalFee) external view returns (uint24 fee);

    function getPool(
        address tokenA,
        address tokenB,
        uint24 fee
    ) external view returns (address pool);

    function createPool(
        address tokenA,
        address tokenB,
        uint24 fee
    ) external returns (address pool);

    function parameters()
        external
        view
        returns (
            address factory,
            address token0,
            address token1,
            uint24 fee,
            int24 tickSpacing
        );
}

// File: contracts/lib/NFTPositionInfo.sol

pragma solidity =0.7.6;





library NFTPositionInfo {
    function getPositionInfo(
        ISpeFactory factory,
        INFTPositionManager nonfungiblePositionManager,
        uint256 tokenId
    )
        internal
        view
        returns (
            ISpePool pool,
            int24 tickLower,
            int24 tickUpper,
            uint128 liquidity
        )
    {
        address token0;
        address token1;
        uint24 fee;
        (, , token0, token1, fee, tickLower, tickUpper, liquidity, , , , ) = nonfungiblePositionManager.positions(
            tokenId
        );

        pool = ISpePool(
            PoolAddress.computeAddress(
                address(factory),
                PoolAddress.PoolKey({token0: token0, token1: token1, fee: fee})
            )
        );
    }
}

// File: @sheepdex/core/contracts/interfaces/ISpeMintCallback.sol

pragma solidity =0.7.6;

interface ISpeMintCallback {
    function mintCallback(
        uint256 amount0Owed,
        uint256 amount1Owed,
        bytes calldata data
    ) external;
}

// File: contracts/lib/CallbackValidation.sol

pragma solidity =0.7.6;



library CallbackValidation {
    function verifyCallback(
        address factory,
        address tokenA,
        address tokenB,
        uint24 fee
    ) internal view returns (ISpePool pool) {
        return verifyCallback(factory, PoolAddress.getPoolKey(tokenA, tokenB, fee));
    }

    function verifyCallback(address factory, PoolAddress.PoolKey memory poolKey) internal view returns (ISpePool pool) {
        pool = ISpePool(PoolAddress.computeAddress(factory, poolKey));
        require(msg.sender == address(pool));
    }
}

// File: contracts/lib/LiquidityAmounts.sol

pragma solidity >=0.5.0;



library LiquidityAmounts {
    function toUint128(uint256 x) private pure returns (uint128 y) {
        require((y = uint128(x)) == x);
    }

    function getLiquidityForAmount0(
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint256 amount0
    ) internal pure returns (uint128 liquidity) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);
        uint256 intermediate = SwapMath.mulDiv(sqrtRatioAX96, sqrtRatioBX96, Const.Q96);
        return toUint128(SwapMath.mulDiv(amount0, intermediate, sqrtRatioBX96 - sqrtRatioAX96));
    }

    function getLiquidityForAmount1(
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint256 amount1
    ) internal pure returns (uint128 liquidity) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);
        return toUint128(SwapMath.mulDiv(amount1, Const.Q96, sqrtRatioBX96 - sqrtRatioAX96));
    }

    function getLiquidityForAmounts(
        uint160 sqrtRatioX96,
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint256 amount0,
        uint256 amount1
    ) internal pure returns (uint128 liquidity) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);

        if (sqrtRatioX96 <= sqrtRatioAX96) {
            liquidity = getLiquidityForAmount0(sqrtRatioAX96, sqrtRatioBX96, amount0);
        } else if (sqrtRatioX96 < sqrtRatioBX96) {
            uint128 liquidity0 = getLiquidityForAmount0(sqrtRatioX96, sqrtRatioBX96, amount0);
            uint128 liquidity1 = getLiquidityForAmount1(sqrtRatioAX96, sqrtRatioX96, amount1);

            liquidity = liquidity0 < liquidity1 ? liquidity0 : liquidity1;
        } else {
            liquidity = getLiquidityForAmount1(sqrtRatioAX96, sqrtRatioBX96, amount1);
        }
    }

    function getAmount0ForLiquidity(
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint128 liquidity
    ) internal pure returns (uint256 amount0) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);

        return
            SwapMath.mulDiv(
                uint256(liquidity) << Const.RESOLUTION,
                sqrtRatioBX96 - sqrtRatioAX96,
                sqrtRatioBX96
            ) / sqrtRatioAX96;
    }

    function getAmount1ForLiquidity(
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint128 liquidity
    ) internal pure returns (uint256 amount1) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);

        return SwapMath.mulDiv(liquidity, sqrtRatioBX96 - sqrtRatioAX96, Const.Q96);
    }

    function getAmountsForLiquidity(
        uint160 sqrtRatioX96,
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint128 liquidity
    ) internal pure returns (uint256 amount0, uint256 amount1) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);

        if (sqrtRatioX96 <= sqrtRatioAX96) {
            amount0 = getAmount0ForLiquidity(sqrtRatioAX96, sqrtRatioBX96, liquidity);
        } else if (sqrtRatioX96 < sqrtRatioBX96) {
            amount0 = getAmount0ForLiquidity(sqrtRatioX96, sqrtRatioBX96, liquidity);
            amount1 = getAmount1ForLiquidity(sqrtRatioAX96, sqrtRatioX96, liquidity);
        } else {
            amount1 = getAmount1ForLiquidity(sqrtRatioAX96, sqrtRatioBX96, liquidity);
        }
    }
}

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



pragma solidity ^0.7.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

// File: contracts/interfaces/IWBNB.sol

pragma solidity =0.7.6;


interface IWBNB is IERC20 {
    function deposit() external payable;

    function withdraw(uint256) external;
}

// File: @sheepdex/core/contracts/lib/TransferHelper.sol

pragma solidity >=0.6.0;


library TransferHelper {
    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) =
            token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'err-transfer-from');
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'err-transfer');
    }

    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'err-approve');
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'err-transfer-eth');
    }
}

// File: contracts/lib/PeripheryImmutableState.sol

pragma solidity =0.7.6;


/// @title Immutable state
/// @notice Immutable state used by periphery contracts
abstract contract PeripheryImmutableState is IPeripheryImmutableState {
    /// @inheritdoc IPeripheryImmutableState
    address public immutable override factory;
    /// @inheritdoc IPeripheryImmutableState
    address public immutable override WBNB;

    constructor(address _factory, address _WBNB) {
        require(_factory != address(0), "!0");
        require(_WBNB != address(0), "!0");
        factory = _factory;
        WBNB = _WBNB;
    }
}

// File: contracts/lib/PeripheryPayments.sol

pragma solidity >=0.7.5;






abstract contract PeripheryPayments is IPeripheryPayments, PeripheryImmutableState {
    receive() external payable {
        require(msg.sender == WBNB, 'Not WBNB');
    }

    function unwrapWBNB(uint256 amountMinimum, address recipient) external payable override {
        uint256 balanceWETH9 = IWBNB(WBNB).balanceOf(address(this));
        require(balanceWETH9 >= amountMinimum, 'Insufficient WBNB');

        if (balanceWETH9 > 0) {
            IWBNB(WBNB).withdraw(balanceWETH9);
            TransferHelper.safeTransferETH(recipient, balanceWETH9);
        }
    }

    function sweepToken(
        address token,
        uint256 amountMinimum,
        address recipient
    ) external payable override {
        uint256 balanceToken = IERC20(token).balanceOf(address(this));
        require(balanceToken >= amountMinimum, 'Insufficient token');

        if (balanceToken > 0) {
            TransferHelper.safeTransfer(token, recipient, balanceToken);
        }
    }

    function refundETH() external payable override {
        if (address(this).balance > 0) TransferHelper.safeTransferETH(msg.sender, address(this).balance);
    }

    function pay(
        address token,
        address payer,
        address recipient,
        uint256 value
    ) internal {
        if (token == WBNB && address(this).balance >= value) {
            IWBNB(WBNB).deposit{value: value}(); // wrap only what is needed to pay
            IWBNB(WBNB).transfer(recipient, value);
        } else if (payer == address(this)) {
            // pay with tokens already in the contract (for the exact input multihop case)
            TransferHelper.safeTransfer(token, recipient, value);
        } else {
            // pull payment
            TransferHelper.safeTransferFrom(token, payer, recipient, value);
        }
    }
}

// File: contracts/lib/LiquidityManagement.sol

pragma solidity =0.7.6;










abstract contract LiquidityManagement is ISpeMintCallback, PeripheryImmutableState, PeripheryPayments {
    struct MintCallbackData {
        PoolAddress.PoolKey poolKey;
        address payer;
    }

    function mintCallback(
        uint256 amount0Owed,
        uint256 amount1Owed,
        bytes calldata data
    ) external override {
        MintCallbackData memory decoded = abi.decode(data, (MintCallbackData));
        CallbackValidation.verifyCallback(factory, decoded.poolKey);

        if (amount0Owed > 0) pay(decoded.poolKey.token0, decoded.payer, msg.sender, amount0Owed);
        if (amount1Owed > 0) pay(decoded.poolKey.token1, decoded.payer, msg.sender, amount1Owed);
    }

    struct AddLiquidityParams {
        address token0;
        address token1;
        uint24 fee;
        address recipient;
        int24 tickLower;
        int24 tickUpper;
        uint256 amount0Desired;
        uint256 amount1Desired;
        uint256 amount0Min;
        uint256 amount1Min;
    }

    function addLiquidity(AddLiquidityParams memory params)
        internal
        returns (
            uint128 liquidity,
            uint256 amount0,
            uint256 amount1,
            ISpePool pool
        )
    {
        PoolAddress.PoolKey memory poolKey =
            PoolAddress.PoolKey({token0: params.token0, token1: params.token1, fee: params.fee});

        pool = ISpePool(PoolAddress.computeAddress(factory, poolKey));

        // compute the liquidity amount
        {
            (uint160 sqrtPriceX96, , , , , , ) = pool.slot0();
            uint160 sqrtRatioAX96 = SwapMath.getSqrtRatioAtTick(params.tickLower);
            uint160 sqrtRatioBX96 = SwapMath.getSqrtRatioAtTick(params.tickUpper);

            liquidity = LiquidityAmounts.getLiquidityForAmounts(
                sqrtPriceX96,
                sqrtRatioAX96,
                sqrtRatioBX96,
                params.amount0Desired,
                params.amount1Desired
            );
        }

        (amount0, amount1) = pool.mint(
            params.recipient,
            params.tickLower,
            params.tickUpper,
            liquidity,
            abi.encode(MintCallbackData({poolKey: poolKey, payer: msg.sender}))
        );

        require(amount0 >= params.amount0Min && amount1 >= params.amount1Min, 'Price slippage check');
    }
}

// File: contracts/interfaces/IMulticall.sol

pragma solidity >=0.7.5;


interface IMulticall {
    function multicall(bytes[] calldata data) external payable returns (bytes[] memory results);
}

// File: contracts/lib/Multicall.sol

pragma solidity =0.7.6;



abstract contract Multicall is IMulticall {
    function multicall(bytes[] calldata data) external payable override returns (bytes[] memory results) {
        results = new bytes[](data.length);
        for (uint256 i = 0; i < data.length; i++) {
            (bool success, bytes memory result) = address(this).delegatecall(data[i]);
            if (!success) {
                if (result.length < 68) revert();
                assembly {
                    result := add(result, 0x04)
                }
                revert(abi.decode(result, (string)));
            }

            results[i] = result;
        }
    }
}

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



pragma solidity >=0.6.0 <0.8.0;

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

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol



pragma solidity ^0.7.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);
}

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



pragma solidity ^0.7.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

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



pragma solidity ^0.7.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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



pragma solidity ^0.7.0;

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

    struct Set {
        // Storage of set values
        bytes32[] _values;

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

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

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

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

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

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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



pragma solidity ^0.7.0;

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;

        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) { // Equivalent to !contains(map, key)
            map._entries.push(MapEntry({ _key: key, _value: value }));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

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

        if (keyIndex != 0) { // Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

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

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

   /**
    * @dev Returns the key-value pair stored at position `index` in the map. O(1).
    *
    * Note that there are no guarantees on the ordering of entries inside the
    * array, and it may change when more entries are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        require(map._entries.length > index, "EnumerableMap: index out of bounds");

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     */
    function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) {
        uint256 keyIndex = map._indexes[key];
        if (keyIndex == 0) return (false, 0); // Equivalent to contains(map, key)
        return (true, map._entries[keyIndex - 1]._value); // All indexes are 1-based
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, "EnumerableMap: nonexistent key"); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {_tryGet}.
     */
    function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
    }

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

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

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

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

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     *
     * _Available since v3.4._
     */
    function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {
        (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));
        return (success, address(uint160(uint256(value))));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key)))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage))));
    }
}

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



pragma solidity ^0.7.0;

/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

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



pragma solidity ^0.7.0;












/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using SafeMath for uint256;
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using Strings for uint256;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from holder address to their (enumerable) set of owned tokens
    mapping (address => EnumerableSet.UintSet) private _holderTokens;

    // Enumerable mapping from token ids to their owners
    EnumerableMap.UintToAddressMap private _tokenOwners;

    // Mapping from token ID to approved address
    mapping (uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping (address => mapping (address => bool)) private _operatorApprovals;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Optional mapping for token URIs
    mapping (uint256 => string) private _tokenURIs;

    // Base URI
    string private _baseURI;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _holderTokens[owner].length();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }
        // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
        return string(abi.encodePacked(base, tokenId.toString()));
    }

    /**
    * @dev Returns the base URI set via {_setBaseURI}. This will be
    * automatically added as a prefix in {tokenURI} to each token's URI, or
    * to the token ID if no specific URI is set for that token ID.
    */
    function baseURI() public view virtual returns (string memory) {
        return _baseURI;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.length();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(_msgSender() == owner || ERC721.isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _tokenOwners.contains(tokenId);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     d*
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {
        _mint(to, tokenId);
        require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

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

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

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

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

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

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

        // Clear metadata (if any)
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(tokenId);

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(address from, address to, uint256 tokenId) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); // internal owner
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _holderTokens[from].remove(tokenId);
        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI},
     * or to the token ID if {tokenURI} is empty.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        _baseURI = baseURI_;
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
        private returns (bool)
    {
        if (!to.isContract()) {
            return true;
        }
        bytes memory returndata = to.functionCall(abi.encodeWithSelector(
            IERC721Receiver(to).onERC721Received.selector,
            _msgSender(),
            from,
            tokenId,
            _data
        ), "ERC721: transfer to non ERC721Receiver implementer");
        bytes4 retval = abi.decode(returndata, (bytes4));
        return (retval == _ERC721_RECEIVED);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner
    }

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

// File: contracts/lib/ChainId.sol

pragma solidity >=0.7.0;

library ChainId {
    function get() internal pure returns (uint256 chainId) {
        assembly {
            chainId := chainid()
        }
    }
}

// File: contracts/interfaces/IERC1271.sol

pragma solidity >=0.5.0;

interface IERC1271 {
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

// File: contracts/lib/BlockTimestamp.sol

pragma solidity =0.7.6;

abstract contract BlockTimestamp {
    function _blockTimestamp() internal view virtual returns (uint256) {
        return block.timestamp;
    }
}

// File: contracts/lib/ERC721Permit.sol

pragma solidity =0.7.6;







abstract contract ERC721Permit is BlockTimestamp, ERC721, IERC721Permit {
    function _getAndIncrementNonce(uint256 tokenId) internal virtual returns (uint256);

    bytes32 private immutable nameHash;
    bytes32 private immutable versionHash;

    constructor(
        string memory name_,
        string memory symbol_,
        string memory version_
    ) ERC721(name_, symbol_) {
        nameHash = keccak256(bytes(name_));
        versionHash = keccak256(bytes(version_));
    }

    function DOMAIN_SEPARATOR() public view override returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    // keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)')
                    0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f,
                    nameHash,
                    versionHash,
                    ChainId.get(),
                    address(this)
                )
            );
    }

    bytes32 public constant override PERMIT_TYPEHASH =
        0x49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad;

    function permit(
        address spender,
        uint256 tokenId,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable override {
        require(_blockTimestamp() <= deadline, 'Permit expired');

        bytes32 digest =
            keccak256(
                abi.encodePacked(
                    '\x19\x01',
                    DOMAIN_SEPARATOR(),
                    keccak256(abi.encode(PERMIT_TYPEHASH, spender, tokenId, _getAndIncrementNonce(tokenId), deadline))
                )
            );
        address owner = ownerOf(tokenId);
        require(spender != owner, 'ERC721Permit: approval to current owner');

        if (Address.isContract(owner)) {
            require(IERC1271(owner).isValidSignature(digest, abi.encodePacked(r, s, v)) == 0x1626ba7e, 'Unauthorized');
        } else {
            address recoveredAddress = ecrecover(digest, v, r, s);
            require(recoveredAddress != address(0), 'Invalid signature');
            require(recoveredAddress == owner, 'Unauthorized');
        }

        _approve(spender, tokenId);
    }
}

// File: contracts/lib/PeripheryValidation.sol

pragma solidity =0.7.6;


abstract contract PeripheryValidation is BlockTimestamp {
    modifier checkDeadline(uint256 deadline) {
        require(_blockTimestamp() <= deadline, 'Transaction too old');
        _;
    }
}

// File: @openzeppelin/contracts/drafts/IERC20Permit.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over `owner`'s tokens,
     * given `owner`'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external;

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

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

// File: contracts/interfaces/ISelfPermit.sol

pragma solidity >=0.7.5;

interface ISelfPermit {
    function selfPermit(
        address token,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable;

    function selfPermitIfNecessary(
        address token,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable;

    function selfPermitAllowed(
        address token,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable;

    function selfPermitAllowedIfNecessary(
        address token,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable;
}

// File: contracts/interfaces/IERC20PermitAllowed.sol

pragma solidity >=0.5.0;

interface IERC20PermitAllowed {
    function permit(
        address holder,
        address spender,
        uint256 nonce,
        uint256 expiry,
        bool allowed,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;
}

// File: contracts/lib/SelfPermit.sol

pragma solidity >=0.5.0;





abstract contract SelfPermit is ISelfPermit {
    function selfPermit(
        address token,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public payable override {
        IERC20Permit(token).permit(msg.sender, address(this), value, deadline, v, r, s);
    }

    function selfPermitIfNecessary(
        address token,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable override {
        if (IERC20(token).allowance(msg.sender, address(this)) < value) selfPermit(token, value, deadline, v, r, s);
    }

    function selfPermitAllowed(
        address token,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public payable override {
        IERC20PermitAllowed(token).permit(msg.sender, address(this), nonce, expiry, true, v, r, s);
    }

    function selfPermitAllowedIfNecessary(
        address token,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable override {
        if (IERC20(token).allowance(msg.sender, address(this)) < type(uint256).max)
            selfPermitAllowed(token, nonce, expiry, v, r, s);
    }
}

// File: contracts/lib/PoolInitializer.sol

pragma solidity =0.7.6;





abstract contract PoolInitializer is IPoolInitializer, PeripheryImmutableState {
    function createAndInitializePoolIfNecessary(
        address token0,
        address token1,
        uint24 fee,
        uint160 sqrtPriceX96
    ) external payable override returns (address pool) {
        require(token0 < token1, "!sort");
        require(sqrtPriceX96 != 0, "!0");
        pool = ISpeFactory(factory).getPool(token0, token1, fee);

        if (pool == address(0)) {
            pool = ISpeFactory(factory).createPool(token0, token1, fee);
            ISpePool(pool).initialize(sqrtPriceX96);
        } else {
            (uint160 sqrtPriceX96Existing, , , , , ,) = ISpePool(pool).slot0();
            if (sqrtPriceX96Existing == 0) {
                ISpePool(pool).initialize(sqrtPriceX96);
            }
        }
    }
}

// File: contracts/NFTPositionManager.sol

pragma solidity =0.7.6;
pragma abicoder v2;















contract NFTPositionManager is
INFTPositionManager,
Multicall,
ERC721Permit,
PeripheryImmutableState,
PoolInitializer,
LiquidityManagement,
PeripheryValidation,
SelfPermit
{
    struct Position {
        uint96 nonce;
        address operator;
        uint80 poolId;
        int24 tickLower;
        int24 tickUpper;
        uint128 liquidity;
        uint256 feeGrowthInside0LastX128;
        uint256 feeGrowthInside1LastX128;
        uint128 tokensOwed0;
        uint128 tokensOwed1;
    }

    mapping(address => uint80) private _poolIds;

    mapping(uint80 => PoolAddress.PoolKey) private _poolIdToPoolKey;

    mapping(uint256 => Position) private _positions;

    uint176 private _nextId = 1;

    uint80 private _nextPoolId = 1;

    address private immutable _tokenDescriptor;

    constructor(
        address _factory,
        address _WBNB,
        address _tokenDescriptor_
    ) ERC721Permit('Sheep Dex Positions NFT', 'SPC-POS', '1') PeripheryImmutableState(_factory, _WBNB) {
        _tokenDescriptor = _tokenDescriptor_;
    }

    function getPositionInfo(
        ISpeFactory factory,
        uint256 tokenId
    ) external
    view
    returns (
        ISpePool pool,
        int24 tickLower,
        int24 tickUpper,
        uint128 liquidity
    ){
        return NFTPositionInfo.getPositionInfo(factory, INFTPositionManager(address(this)), tokenId);
    }

    function computeAddress(
        address factory,
        address token0,
        address token1,
        uint24 fee
    ) external pure returns (address) {
        return PoolAddress.computeAddress(factory, PoolAddress.PoolKey({token0 : token0, token1 : token1, fee : fee}));
    }

    function getGasCostOfComputeAddress(
        address factory,
        address token0,
        address token1,
        uint24 fee
    ) external view returns (uint256) {
        uint256 gasBefore = gasleft();
        PoolAddress.computeAddress(factory, PoolAddress.PoolKey({token0 : token0, token1 : token1, fee : fee}));
        return gasBefore - gasleft();
    }


    function positions(uint256 tokenId)
    external
    view
    override
    returns (
        uint96 nonce,
        address operator,
        address token0,
        address token1,
        uint24 fee,
        int24 tickLower,
        int24 tickUpper,
        uint128 liquidity,
        uint256 feeGrowthInside0LastX128,
        uint256 feeGrowthInside1LastX128,
        uint128 tokensOwed0,
        uint128 tokensOwed1
    )
    {
        Position memory position = _positions[tokenId];
        require(position.poolId != 0, 'Invalid token ID');
        PoolAddress.PoolKey memory poolKey = _poolIdToPoolKey[position.poolId];
        return (
        position.nonce,
        position.operator,
        poolKey.token0,
        poolKey.token1,
        poolKey.fee,
        position.tickLower,
        position.tickUpper,
        position.liquidity,
        position.feeGrowthInside0LastX128,
        position.feeGrowthInside1LastX128,
        position.tokensOwed0,
        position.tokensOwed1
        );
    }

    function cachePoolKey(address pool, PoolAddress.PoolKey memory poolKey) private returns (uint80 poolId) {
        poolId = _poolIds[pool];
        if (poolId == 0) {
            _poolIds[pool] = (poolId = _nextPoolId++);
            _poolIdToPoolKey[poolId] = poolKey;
        }
    }

    function mint(MintParams calldata params)
    external
    payable
    override
    checkDeadline(params.deadline)
    returns (
        uint256 tokenId,
        uint128 liquidity,
        uint256 amount0,
        uint256 amount1
    )
    {
        ISpePool pool;
        (liquidity, amount0, amount1, pool) = addLiquidity(
            AddLiquidityParams({
        token0 : params.token0,
        token1 : params.token1,
        fee : params.fee,
        recipient : address(this),
        tickLower : params.tickLower,
        tickUpper : params.tickUpper,
        amount0Desired : params.amount0Desired,
        amount1Desired : params.amount1Desired,
        amount0Min : params.amount0Min,
        amount1Min : params.amount1Min
        })
        );

        _mint(params.recipient, (tokenId = _nextId++));

        bytes32 positionKey = PositionKey.compute(address(this), params.tickLower, params.tickUpper);
        (, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, ,) = pool.positions(positionKey);

        // idempotent set
        uint80 poolId =
        cachePoolKey(
            address(pool),
            PoolAddress.PoolKey({token0 : params.token0, token1 : params.token1, fee : params.fee})
        );

        _positions[tokenId] = Position({
        nonce : 0,
        operator : address(0),
        poolId : poolId,
        tickLower : params.tickLower,
        tickUpper : params.tickUpper,
        liquidity : liquidity,
        feeGrowthInside0LastX128 : feeGrowthInside0LastX128,
        feeGrowthInside1LastX128 : feeGrowthInside1LastX128,
        tokensOwed0 : 0,
        tokensOwed1 : 0
        });

        emit IncreaseLiquidity(tokenId, liquidity, amount0, amount1);
    }

    modifier isAuthorizedForToken(uint256 tokenId) {
        require(_isApprovedOrOwner(msg.sender, tokenId), 'Not approved');
        _;
    }

    function tokenURI(uint256 tokenId) public view override(ERC721, IERC721Metadata) returns (string memory) {
        require(_exists(tokenId));
        return INFTPositionDescriptor(_tokenDescriptor).tokenURI(this, tokenId);
    }

    function baseURI() public pure override returns (string memory) {}

    function increaseLiquidity(IncreaseLiquidityParams calldata params)
    external
    payable
    override
    checkDeadline(params.deadline)
    returns (
        uint128 liquidity,
        uint256 amount0,
        uint256 amount1
    )
    {
        Position storage position = _positions[params.tokenId];

        PoolAddress.PoolKey memory poolKey = _poolIdToPoolKey[position.poolId];

        ISpePool pool;
        (liquidity, amount0, amount1, pool) = addLiquidity(
            AddLiquidityParams({
        token0 : poolKey.token0,
        token1 : poolKey.token1,
        fee : poolKey.fee,
        tickLower : position.tickLower,
        tickUpper : position.tickUpper,
        amount0Desired : params.amount0Desired,
        amount1Desired : params.amount1Desired,
        amount0Min : params.amount0Min,
        amount1Min : params.amount1Min,
        recipient : address(this)
        })
        );

        bytes32 positionKey = PositionKey.compute(address(this), position.tickLower, position.tickUpper);

        (, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, ,) = pool.positions(positionKey);

        position.tokensOwed0 += uint128(
            SwapMath.mulDiv(
                feeGrowthInside0LastX128 - position.feeGrowthInside0LastX128,
                position.liquidity,
                Const.Q128
            )
        );
        position.tokensOwed1 += uint128(
            SwapMath.mulDiv(
                feeGrowthInside1LastX128 - position.feeGrowthInside1LastX128,
                position.liquidity,
                Const.Q128
            )
        );

        position.feeGrowthInside0LastX128 = feeGrowthInside0LastX128;
        position.feeGrowthInside1LastX128 = feeGrowthInside1LastX128;
        position.liquidity += liquidity;

        emit IncreaseLiquidity(params.tokenId, liquidity, amount0, amount1);
    }

    function decreaseLiquidity(DecreaseLiquidityParams calldata params)
    external
    payable
    override
    isAuthorizedForToken(params.tokenId)
    checkDeadline(params.deadline)
    returns (uint256 amount0, uint256 amount1)
    {
        require(params.liquidity > 0);
        Position storage position = _positions[params.tokenId];

        uint128 positionLiquidity = position.liquidity;
        require(positionLiquidity >= params.liquidity);

        PoolAddress.PoolKey memory poolKey = _poolIdToPoolKey[position.poolId];
        ISpePool pool = ISpePool(PoolAddress.computeAddress(factory, poolKey));
        (amount0, amount1) = pool.burn(position.tickLower, position.tickUpper, params.liquidity);

        require(amount0 >= params.amount0Min && amount1 >= params.amount1Min, 'Price slippage check');

        bytes32 positionKey = PositionKey.compute(address(this), position.tickLower, position.tickUpper);
        // this is now updated to the current transaction
        (, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, ,) = pool.positions(positionKey);

        position.tokensOwed0 +=
        uint128(amount0) +
        uint128(
            SwapMath.mulDiv(
                feeGrowthInside0LastX128 - position.feeGrowthInside0LastX128,
                positionLiquidity,
                Const.Q128
            )
        );
        position.tokensOwed1 +=
        uint128(amount1) +
        uint128(
            SwapMath.mulDiv(
                feeGrowthInside1LastX128 - position.feeGrowthInside1LastX128,
                positionLiquidity,
                Const.Q128
            )
        );

        position.feeGrowthInside0LastX128 = feeGrowthInside0LastX128;
        position.feeGrowthInside1LastX128 = feeGrowthInside1LastX128;

        position.liquidity = positionLiquidity - params.liquidity;

        emit DecreaseLiquidity(params.tokenId, params.liquidity, amount0, amount1);
    }

    function collect(CollectParams calldata params)
    external
    payable
    override
    isAuthorizedForToken(params.tokenId)
    returns (uint256 amount0, uint256 amount1)
    {
        require(params.amount0Max > 0 || params.amount1Max > 0);
        address recipient = params.recipient == address(0) ? address(this) : params.recipient;

        Position storage position = _positions[params.tokenId];

        PoolAddress.PoolKey memory poolKey = _poolIdToPoolKey[position.poolId];

        ISpePool pool = ISpePool(PoolAddress.computeAddress(factory, poolKey));

        (uint128 tokensOwed0, uint128 tokensOwed1) = (position.tokensOwed0, position.tokensOwed1);

        if (position.liquidity > 0) {
            pool.burn(position.tickLower, position.tickUpper, 0);
            (, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, ,) =
            pool.positions(PositionKey.compute(address(this), position.tickLower, position.tickUpper));

            tokensOwed0 += uint128(
                SwapMath.mulDiv(
                    feeGrowthInside0LastX128 - position.feeGrowthInside0LastX128,
                    position.liquidity,
                    Const.Q128
                )
            );
            tokensOwed1 += uint128(
                SwapMath.mulDiv(
                    feeGrowthInside1LastX128 - position.feeGrowthInside1LastX128,
                    position.liquidity,
                    Const.Q128
                )
            );

            position.feeGrowthInside0LastX128 = feeGrowthInside0LastX128;
            position.feeGrowthInside1LastX128 = feeGrowthInside1LastX128;
        }

        (uint128 amount0Collect, uint128 amount1Collect) =
        (
        params.amount0Max > tokensOwed0 ? tokensOwed0 : params.amount0Max,
        params.amount1Max > tokensOwed1 ? tokensOwed1 : params.amount1Max
        );

        // the actual amounts collected are returned
        (amount0, amount1) = pool.collect(
            recipient,
            position.tickLower,
            position.tickUpper,
            amount0Collect,
            amount1Collect
        );

        (position.tokensOwed0, position.tokensOwed1) = (tokensOwed0 - amount0Collect, tokensOwed1 - amount1Collect);

        emit Collect(params.tokenId, recipient, amount0Collect, amount1Collect);
    }

    function burn(uint256 tokenId) external payable override isAuthorizedForToken(tokenId) {
        Position storage position = _positions[tokenId];
        require(position.liquidity == 0 && position.tokensOwed0 == 0 && position.tokensOwed1 == 0, 'Not cleared');
        delete _positions[tokenId];
        _burn(tokenId);
    }

    function _getAndIncrementNonce(uint256 tokenId) internal override returns (uint256) {
        return uint256(_positions[tokenId].nonce++);
    }

    function getApproved(uint256 tokenId) public view override(ERC721, IERC721) returns (address) {
        require(_exists(tokenId), 'ERC721: approved query for nonexistent token');

        return _positions[tokenId].operator;
    }

    function _approve(address to, uint256 tokenId) internal override(ERC721) {
        _positions[tokenId].operator = to;
        emit Approval(ownerOf(tokenId), to, tokenId);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_WBNB","type":"address"},{"internalType":"address","name":"_tokenDescriptor_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Collect","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"DecreaseLiquidity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"IncreaseLiquidity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WBNB","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"amount0Max","type":"uint128"},{"internalType":"uint128","name":"amount1Max","type":"uint128"}],"internalType":"struct INFTPositionManager.CollectParams","name":"params","type":"tuple"}],"name":"collect","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"factory","type":"address"},{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"}],"name":"computeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"}],"name":"createAndInitializePoolIfNecessary","outputs":[{"internalType":"address","name":"pool","type":"address"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct INFTPositionManager.DecreaseLiquidityParams","name":"params","type":"tuple"}],"name":"decreaseLiquidity","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"factory","type":"address"},{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"}],"name":"getGasCostOfComputeAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ISpeFactory","name":"factory","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPositionInfo","outputs":[{"internalType":"contract ISpePool","name":"pool","type":"address"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint128","name":"liquidity","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount0Desired","type":"uint256"},{"internalType":"uint256","name":"amount1Desired","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct INFTPositionManager.IncreaseLiquidityParams","name":"params","type":"tuple"}],"name":"increaseLiquidity","outputs":[{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint256","name":"amount0Desired","type":"uint256"},{"internalType":"uint256","name":"amount1Desired","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct INFTPositionManager.MintParams","name":"params","type":"tuple"}],"name":"mint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount0Owed","type":"uint256"},{"internalType":"uint256","name":"amount1Owed","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"positions","outputs":[{"internalType":"uint96","name":"nonce","type":"uint96"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"feeGrowthInside0LastX128","type":"uint256"},{"internalType":"uint256","name":"feeGrowthInside1LastX128","type":"uint256"},{"internalType":"uint128","name":"tokensOwed0","type":"uint128"},{"internalType":"uint128","name":"tokensOwed1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowed","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowedIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"sweepToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"unwrapWBNB","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

610120604052600d80546001600160b01b0319166001176001600160b01b0316600160b01b1790553480156200003457600080fd5b506040516200611338038062006113833981016040819052620000579162000300565b82826040518060400160405280601781526020017f53686565702044657820506f736974696f6e73204e4654000000000000000000815250604051806040016040528060078152602001665350432d504f5360c81b815250604051806040016040528060018152602001603160f81b8152508282620000e36301ffc9a760e01b620001e560201b60201c565b8151620000f890600690602085019062000237565b5080516200010e90600790602084019062000237565b50620001216380ac58cd60e01b620001e5565b62000133635b5e139f60e01b620001e5565b6200014563780e9d6360e01b620001e5565b50508251602093840120608052805192019190912060a052506001600160a01b038216620001905760405162461bcd60e51b8152600401620001879062000380565b60405180910390fd5b6001600160a01b038116620001b95760405162461bcd60e51b8152600401620001879062000380565b6001600160601b0319606092831b811660c05290821b811660e05291901b1661010052506200039c9050565b6001600160e01b03198082161415620002125760405162461bcd60e51b8152600401620001879062000349565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200026f5760008555620002ba565b82601f106200028a57805160ff1916838001178555620002ba565b82800160010185558215620002ba579182015b82811115620002ba5782518255916020019190600101906200029d565b50620002c8929150620002cc565b5090565b5b80821115620002c85760008155600101620002cd565b80516001600160a01b0381168114620002fb57600080fd5b919050565b60008060006060848603121562000315578283fd5b6200032084620002e3565b92506200033060208501620002e3565b91506200034060408501620002e3565b90509250925092565b6020808252601c908201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604082015260600190565b602080825260029082015261021360f41b604082015260600190565b60805160a05160c05160601c60e05160601c6101005160601c615cf2620004216000398061263452508061025a5280611e0552806120b35280612177528061376452806137aa5280613830525080610a0c5280610d9b5280610e4b52806121fd52806125e7528061293e528061315a5250806113fa5250806113d95250615cf26000f3fe60806040526004361061024a5760003560e01c806370a0823111610139578063a4a78f0c116100b6578063c87b56dd1161007a578063c87b56dd146106a7578063cce34ec6146106c7578063df2ab5bb146106e7578063e985e9c5146106fa578063f3995c671461071a578063fc6f78651461072d576102a2565b8063a4a78f0c1461062c578063ac9650d81461063f578063b88d4fde1461065f578063c2e3140a1461067f578063c45a015514610692576102a2565b806395d89b41116100fd57806395d89b411461058c57806399fbab88146105a15780639d110e71146105d95780639f382e9b146105ec578063a22cb4651461060c576102a2565b806370a08231146105015780637ac2ff7b146105215780638716c5ff1461053457806388316456146105545780638dd9500214610577576102a2565b806323b872dd116101c757806342966c681161018b57806342966c68146104865780634659a494146104995780634f6ccce7146104ac5780636352211e146104cc5780636c0360eb146104ec576102a2565b806323b872dd146103fc5780632f745c591461041c57806330adf81f1461043c5780633644e5151461045157806342842e0e14610466576102a2565b806312210e8a1161020e57806312210e8a1461036d5780631327d7fb1461037557806313ead562146103a557806318160ddd146103b8578063219f5d17146103da576102a2565b806301ffc9a7146102a757806306fdde03146102dd578063081812fc146102ff578063095ea7b31461032c5780630c49ccbe1461034c576102a2565b366102a257336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146102a05760405162461bcd60e51b8152600401610297906159b9565b60405180910390fd5b005b600080fd5b3480156102b357600080fd5b506102c76102c236600461497f565b610740565b6040516102d491906151c3565b60405180910390f35b3480156102e957600080fd5b506102f2610763565b6040516102d491906152bf565b34801561030b57600080fd5b5061031f61031a366004614c91565b6107f9565b6040516102d49190614f6a565b34801561033857600080fd5b506102a061034736600461482d565b610843565b61035f61035a366004614a54565b6108db565b6040516102d4929190615a85565b6102a0610cf8565b34801561038157600080fd5b5061039561039036600461482d565b610d0a565b6040516102d4949392919061523a565b61031f6103b33660046146c9565b610d2b565b3480156103c457600080fd5b506103cd611032565b6040516102d491906151ce565b6103ed6103e8366004614a65565b611043565b6040516102d493929190615a40565b34801561040857600080fd5b506102a0610417366004614719565b61132d565b34801561042857600080fd5b506103cd61043736600461482d565b611365565b34801561044857600080fd5b506103cd611390565b34801561045d57600080fd5b506103cd6113b4565b34801561047257600080fd5b506102a0610481366004614719565b611451565b6102a0610494366004614c91565b61146c565b6102a06104a7366004614899565b61153b565b3480156104b857600080fd5b506103cd6104c7366004614c91565b6115b0565b3480156104d857600080fd5b5061031f6104e7366004614c91565b6115c6565b3480156104f857600080fd5b506102f26115ee565b34801561050d57600080fd5b506103cd61051c3660046145fe565b6115f3565b6102a061052f366004614899565b61163c565b34801561054057600080fd5b5061031f61054f36600461466e565b6118d0565b610567610562366004614b27565b611916565b6040516102d49493929190615a61565b34801561058357600080fd5b5061031f611e03565b34801561059857600080fd5b506102f2611e27565b3480156105ad57600080fd5b506105c16105bc366004614c91565b611e88565b6040516102d49c9b9a99989796959493929190615a93565b6102a06105e7366004614cc1565b612099565b3480156105f857600080fd5b506102a0610607366004614d08565b6121e8565b34801561061857600080fd5b506102a0610627366004614800565b612266565b6102a061063a366004614899565b612334565b61065261064d3660046148f4565b6123d2565b6040516102d49190615163565b34801561066b57600080fd5b506102a061067a366004614759565b612512565b6102a061068d366004614899565b612551565b34801561069e57600080fd5b5061031f6125e5565b3480156106b357600080fd5b506102f26106c2366004614c91565b612609565b3480156106d357600080fd5b506103cd6106e236600461466e565b6126bf565b6102a06106f5366004614858565b61270d565b34801561070657600080fd5b506102c7610715366004614636565b6127bf565b6102a0610728366004614899565b6127ed565b61035f61073b366004614a3d565b612825565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107ef5780601f106107c4576101008083540402835291602001916107ef565b820191906000526020600020905b8154815290600101906020018083116107d257829003601f168201915b5050505050905090565b600061080482612cf0565b6108205760405162461bcd60e51b815260040161029790615794565b506000908152600c6020526040902054600160601b90046001600160a01b031690565b600061084e826115c6565b9050806001600160a01b0316836001600160a01b031614156108825760405162461bcd60e51b8152600401610297906158a7565b806001600160a01b0316610894612cfd565b6001600160a01b031614806108b057506108b081610715612cfd565b6108cc5760405162461bcd60e51b81526004016102979061560a565b6108d68383612d01565b505050565b60008082356108ea3382612d77565b6109065760405162461bcd60e51b815260040161029790615667565b836080013580610914612df4565b11156109325760405162461bcd60e51b8152600401610297906158e8565b60006109446040870160208801614b39565b6001600160801b03161161095757600080fd5b84356000908152600c602090815260409182902060018101549092600160801b9091046001600160801b031691610992918901908901614b39565b6001600160801b0316816001600160801b031610156109b057600080fd5b6001828101546001600160501b03166000908152600b60209081526040808320815160608101835281546001600160a01b039081168252919095015490811692850192909252600160a01b90910462ffffff1690830152610a317f000000000000000000000000000000000000000000000000000000000000000083612df8565b60018501549091506001600160a01b0382169063a34123a790600160501b8104600290810b91600160681b9004900b610a7060408e0160208f01614b39565b6040518463ffffffff1660e01b8152600401610a8e9392919061526d565b6040805180830381600087803b158015610aa757600080fd5b505af1158015610abb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610adf9190614ce5565b909850965060408901358810801590610afc575088606001358710155b610b185760405162461bcd60e51b81526004016102979061584f565b6001840154600090610b41903090600160501b8104600290810b91600160681b9004900b612ea9565b9050600080836001600160a01b031663514ea4bf846040518263ffffffff1660e01b8152600401610b7291906151ce565b60a06040518083038186803b158015610b8a57600080fd5b505afa158015610b9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc29190614b83565b50509250925050610be787600201548303876001600160801b0316600160801b612ee0565b6004880180546001600160801b03198116928e016001600160801b039182160181169290921790556003880154610c2891908303908816600160801b612ee0565b6004880180546001600160801b03808216938e01600160801b9283900482160116029190911790556002870182905560038701819055610c6e60408d0160208e01614b39565b86038760010160106101000a8154816001600160801b0302191690836001600160801b031602179055508b600001357f26f6a048ee9138f2c0ce266f322cb99228e8d619ae2bff30c67f8dcf9d2377b48d6020016020810190610cd19190614b39565b8d8d604051610ce293929190615a40565b60405180910390a2505050505050505050915091565b4715610d0857610d083347612f8f565b565b600080600080610d1b86308761301c565b9299919850965090945092505050565b6000836001600160a01b0316856001600160a01b031610610d5e5760405162461bcd60e51b815260040161029790615444565b6001600160a01b038216610d845760405162461bcd60e51b81526004016102979061599d565b604051630b4c774160e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631698ee8290610dd490889088908890600401615055565b60206040518083038186803b158015610dec57600080fd5b505afa158015610e00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e24919061461a565b90506001600160a01b038116610f3c5760405163a167129560e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a167129590610e8490889088908890600401615055565b602060405180830381600087803b158015610e9e57600080fd5b505af1158015610eb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed6919061461a565b60405163f637731d60e01b81529091506001600160a01b0382169063f637731d90610f05908590600401614f6a565b600060405180830381600087803b158015610f1f57600080fd5b505af1158015610f33573d6000803e3d6000fd5b5050505061102a565b6000816001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e06040518083038186803b158015610f7757600080fd5b505afa158015610f8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610faf9190614be4565b5050505050509050806001600160a01b0316600014156110285760405163f637731d60e01b81526001600160a01b0383169063f637731d90610ff5908690600401614f6a565b600060405180830381600087803b15801561100f57600080fd5b505af1158015611023573d6000803e3d6000fd5b505050505b505b949350505050565b600061103e6002613102565b905090565b60008060008360a0013580611056612df4565b11156110745760405162461bcd60e51b8152600401610297906158e8565b84356000908152600c602090815260408083206001808201546001600160501b0381168652600b855283862084516060808201875282546001600160a01b039081168352929094015480831682890190815262ffffff600160a01b9092048216838901908152885161014081018a528451861681529151909416818a0152925116828701523082850152600160501b8304600290810b810b608080850191909152600160681b909404810b900b60a0830152958c013560c0820152938b013560e0850152908a013561010084015289013561012083015292906111569061310d565b6001870154939a5091985096509150600090611189903090600160501b8104600290810b91600160681b9004900b612ea9565b9050600080836001600160a01b031663514ea4bf846040518263ffffffff1660e01b81526004016111ba91906151ce565b60a06040518083038186803b1580156111d257600080fd5b505afa1580156111e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120a9190614b83565b50509250925050611246866002015483038760010160109054906101000a90046001600160801b03166001600160801b0316600160801b612ee0565b6004870180546001600160801b0380821690930183166001600160801b03199091161790556003870154600188015461128d9291840391600160801b918290041690612ee0565b6004870180546001600160801b03600160801b80830482169094018116840291811691909117909155600288018490556003880183905560018801805483810483168e018316909302929091169190911790556040518b35907f3067048beee31b25b2f1681f88dac838c8bba36af25bfb2b7cf7473a5847e35f90611317908d908d908d90615a40565b60405180910390a2505050505050509193909250565b61133e611338612cfd565b82612d77565b61135a5760405162461bcd60e51b815260040161029790615915565b6108d6838383613348565b6001600160a01b03821660009081526001602052604081206113879083613456565b90505b92915050565b7f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad81565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000611421613462565b30604051602001611436959493929190615293565b60405160208183030381529060405280519060200120905090565b6108d683838360405180602001604052806000815250612512565b806114773382612d77565b6114935760405162461bcd60e51b815260040161029790615667565b6000828152600c602052604090206001810154600160801b90046001600160801b03161580156114ce575060048101546001600160801b0316155b80156114ec57506004810154600160801b90046001600160801b0316155b6115085760405162461bcd60e51b8152600401610297906159db565b6000838152600c60205260408120818155600181018290556002810182905560038101829055600401556108d683613466565b6040516323f2ebc360e21b81526001600160a01b03871690638fcbaf0c9061157690339030908a908a906001908b908b908b90600401614fcb565b600060405180830381600087803b15801561159057600080fd5b505af11580156115a4573d6000803e3d6000fd5b50505050505050505050565b6000806115be600284613533565b509392505050565b600061138a82604051806060016040528060298152602001615c946029913960029190613551565b606090565b60006001600160a01b03821661161b5760405162461bcd60e51b81526004016102979061568d565b6001600160a01b038216600090815260016020526040902061138a90613102565b83611645612df4565b11156116635760405162461bcd60e51b815260040161029790615550565b600061166d6113b4565b7f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad88886116998161355e565b896040516020016116ae9594939291906151d7565b604051602081830303815290604052805190602001206040516020016116d5929190614f1c565b60405160208183030381529060405280519060200120905060006116f8876115c6565b9050806001600160a01b0316886001600160a01b0316141561172c5760405162461bcd60e51b815260040161029790615463565b61173581613593565b1561180f57806001600160a01b0316631626ba7e8386868960405160200161175f93929190614ecd565b6040516020818303038152906040526040518363ffffffff1660e01b815260040161178b929190615203565b60206040518083038186803b1580156117a357600080fd5b505afa1580156117b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117db919061499b565b6001600160e01b031916631626ba7e60e01b1461180a5760405162461bcd60e51b815260040161029790615314565b6118bc565b600060018387878760405160008152602001604052604051611834949392919061521c565b6020604051602081039080840390855afa158015611856573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166118895760405162461bcd60e51b815260040161029790615525565b816001600160a01b0316816001600160a01b0316146118ba5760405162461bcd60e51b815260040161029790615314565b505b6118c68888612d01565b5050505050505050565b600061190d856040518060600160405280876001600160a01b03168152602001866001600160a01b031681526020018562ffffff16815250612df8565b95945050505050565b6000806000808461014001358061192b612df4565b11156119495760405162461bcd60e51b8152600401610297906158e8565b604080516101408101909152600090611a15908061196a60208b018b6145fe565b6001600160a01b0316815260200189602001602081019061198b91906145fe565b6001600160a01b031681526020016119a960608b0160408c01614c75565b62ffffff1681523060208201526040016119c960808b0160608c016149b7565b60020b81526020016119e160a08b0160808c016149b7565b60020b81526020018960a0013581526020018960c0013581526020018960e00135815260200189610100013581525061310d565b92975090955093509050611a62611a3461014089016101208a016145fe565b600d80546001600160b01b0319811660016001600160b01b0392831690810190921617909155975087613599565b6000611a8d30611a7860808b0160608c016149b7565b611a8860a08c0160808d016149b7565b612ea9565b9050600080836001600160a01b031663514ea4bf846040518263ffffffff1660e01b8152600401611abe91906151ce565b60a06040518083038186803b158015611ad657600080fd5b505afa158015611aea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0e9190614b83565b505092509250506000611b878560405180606001604052808e6000016020810190611b3991906145fe565b6001600160a01b031681526020018e6020016020810190611b5a91906145fe565b6001600160a01b031681526020018e6040016020810190611b7b9190614c75565b62ffffff16905261365d565b905060405180610140016040528060006001600160601b0316815260200160006001600160a01b03168152602001826001600160501b031681526020018c6060016020810190611bd791906149b7565b60020b8152602001611bef60a08e0160808f016149b7565b60020b81526020018a6001600160801b0316815260200184815260200183815260200160006001600160801b0316815260200160006001600160801b0316815250600c60008c815260200190815260200160002060008201518160000160006101000a8154816001600160601b0302191690836001600160601b03160217905550602082015181600001600c6101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160010160006101000a8154816001600160501b0302191690836001600160501b03160217905550606082015181600101600a6101000a81548162ffffff021916908360020b62ffffff160217905550608082015181600101600d6101000a81548162ffffff021916908360020b62ffffff16021790555060a08201518160010160106101000a8154816001600160801b0302191690836001600160801b0316021790555060c0820151816002015560e082015181600301556101008201518160040160006101000a8154816001600160801b0302191690836001600160801b031602179055506101208201518160040160106101000a8154816001600160801b0302191690836001600160801b03160217905550905050897f3067048beee31b25b2f1681f88dac838c8bba36af25bfb2b7cf7473a5847e35f8a8a8a604051611dee93929190615a40565b60405180910390a25050505050509193509193565b7f000000000000000000000000000000000000000000000000000000000000000081565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107ef5780601f106107c4576101008083540402835291602001916107ef565b6000818152600c6020908152604080832081516101408101835281546001600160601b03811682526001600160a01b03600160601b909104169381019390935260018101546001600160501b038116928401839052600160501b8104600290810b810b810b6060860152600160681b8204810b810b810b60808601526001600160801b03600160801b92839004811660a08701529083015460c0860152600383015460e086015260049092015480831661010086015204166101208301528291829182918291829182918291829182918291829190611f795760405162461bcd60e51b81526004016102979061587d565b6000600b600083604001516001600160501b03166001600160501b031681526020019081526020016000206040518060600160405290816000820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016001820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016001820160149054906101000a900462ffffff1662ffffff1662ffffff1681525050905081600001518260200151826000015183602001518460400151866060015187608001518860a001518960c001518a60e001518b61010001518c61012001519d509d509d509d509d509d509d509d509d509d509d509d50505091939597999b5091939597999b565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906120e8903090600401614f6a565b60206040518083038186803b15801561210057600080fd5b505afa158015612114573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121389190614ca9565b90508281101561215a5760405162461bcd60e51b815260040161029790615769565b80156108d657604051632e1a7d4d60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632e1a7d4d906121ac9084906004016151ce565b600060405180830381600087803b1580156121c657600080fd5b505af11580156121da573d6000803e3d6000fd5b505050506108d68282612f8f565b60006121f682840184614a76565b90506122267f0000000000000000000000000000000000000000000000000000000000000000826000015161373f565b50841561224157805151602082015161224191903388613762565b831561225f5761225f81600001516020015182602001513387613762565b5050505050565b61226e612cfd565b6001600160a01b0316826001600160a01b0316141561229f5760405162461bcd60e51b8152600401610297906154ee565b80600560006122ac612cfd565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556122f0612cfd565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161232891906151c3565b60405180910390a35050565b604051636eb1769f60e11b8152600019906001600160a01b0388169063dd62ed3e906123669033903090600401614f7e565b60206040518083038186803b15801561237e57600080fd5b505afa158015612392573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123b69190614ca9565b10156123ca576123ca86868686868661153b565b505050505050565b60608167ffffffffffffffff811180156123eb57600080fd5b5060405190808252806020026020018201604052801561241f57816020015b606081526020019060019003908161240a5790505b50905060005b8281101561250b576000803086868581811061243d57fe5b905060200281019061244f9190615b2d565b60405161245d929190614ef0565b600060405180830381855af49150503d8060008114612498576040519150601f19603f3d011682016040523d82523d6000602084013e61249d565b606091505b5091509150816124e9576044815110156124b657600080fd5b600481019050808060200190518101906124d091906149d3565b60405162461bcd60e51b815260040161029791906152bf565b808484815181106124f657fe5b60209081029190910101525050600101612425565b5092915050565b61252361251d612cfd565b83612d77565b61253f5760405162461bcd60e51b815260040161029790615915565b61254b848484846138ef565b50505050565b604051636eb1769f60e11b815285906001600160a01b0388169063dd62ed3e906125819033903090600401614f7e565b60206040518083038186803b15801561259957600080fd5b505afa1580156125ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125d19190614ca9565b10156123ca576123ca8686868686866127ed565b7f000000000000000000000000000000000000000000000000000000000000000081565b606061261482612cf0565b61261d57600080fd5b60405163e9dc637560e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063e9dc63759061266b903090869060040161514a565b60006040518083038186803b15801561268357600080fd5b505afa158015612697573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261138a91908101906149d3565b6000805a9050612700866040518060600160405280886001600160a01b03168152602001876001600160a01b031681526020018662ffffff16815250612df8565b505a900395945050505050565b6040516370a0823160e01b81526000906001600160a01b038516906370a082319061273c903090600401614f6a565b60206040518083038186803b15801561275457600080fd5b505afa158015612768573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061278c9190614ca9565b9050828110156127ae5760405162461bcd60e51b8152600401610297906153c3565b801561254b5761254b848383613922565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60405163d505accf60e01b81526001600160a01b0387169063d505accf9061157690339030908a908a908a908a908a90600401615014565b60008082356128343382612d77565b6128505760405162461bcd60e51b815260040161029790615667565b60006128626060860160408701614b39565b6001600160801b0316118061288f575060006128846080860160608701614b39565b6001600160801b0316115b61289857600080fd5b6000806128ab60408701602088016145fe565b6001600160a01b0316146128ce576128c960408601602087016145fe565b6128d0565b305b85356000908152600c602090815260408083206001808201546001600160501b03168552600b8452828520835160608101855281546001600160a01b039081168252919092015490811694820194909452600160a01b90930462ffffff1691830191909152929350906129637f000000000000000000000000000000000000000000000000000000000000000083612df8565b600484015460018501549192506001600160801b0380821692600160801b9283900482169290041615612b5957600185015460405163a34123a760e01b81526001600160a01b0385169163a34123a7916129da91600160501b8104600290810b92600160681b909204900b9060009060040161526d565b6040805180830381600087803b1580156129f357600080fd5b505af1158015612a07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a2b9190614ce5565b5050600185015460009081906001600160a01b0386169063514ea4bf90612a69903090600160501b8104600290810b91600160681b9004900b612ea9565b6040518263ffffffff1660e01b8152600401612a8591906151ce565b60a06040518083038186803b158015612a9d57600080fd5b505afa158015612ab1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ad59190614b83565b50509250925050612b11876002015483038860010160109054906101000a90046001600160801b03166001600160801b0316600160801b612ee0565b84019350612b4a876003015482038860010160109054906101000a90046001600160801b03166001600160801b0316600160801b612ee0565b60028801929092556003870155015b6000806001600160801b038416612b7660608e0160408f01614b39565b6001600160801b031611612b9957612b9460608d0160408e01614b39565b612b9b565b835b836001600160801b03168d6060016020810190612bb89190614b39565b6001600160801b031611612bdb57612bd660808e0160608f01614b39565b612bdd565b835b60018901546040516309e3d67b60e31b81529294509092506001600160a01b03871691634f1eb3d891612c30918c91600160501b8104600290810b92600160681b909204900b90889088906004016150e3565b6040805180830381600087803b158015612c4957600080fd5b505af1158015612c5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c819190614b55565b6004890180546001600160801b03196001600160801b03918216600160801b878a0384160217168689038216179091556040519281169d50169a508c35907f40d0efd1a53d60ecbf40971b9daf7dc90178c3aadc7aab1765632738fa8b8f0190610ce2908b9086908690615120565b600061138a600283613a10565b3390565b6000818152600c6020526040902080546001600160601b0316600160601b6001600160a01b038516908102919091179091558190612d3e826115c6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612d8282612cf0565b612d9e5760405162461bcd60e51b8152600401610297906155be565b6000612da9836115c6565b9050806001600160a01b0316846001600160a01b03161480612de45750836001600160a01b0316612dd9846107f9565b6001600160a01b0316145b8061102a575061102a81856127bf565b4290565b600081602001516001600160a01b031682600001516001600160a01b031610612e2057600080fd5b82826000015183602001518460400151604051602001612e4293929190615055565b60408051601f19818403018152908290528051602091820120612e8a939290917f8648e6a9f0852d84a8a9787d749989a398cbb000270e4cd106f3dc2bc94e99ff9101614f37565b60408051601f1981840301815291905280516020909101209392505050565b6000838383604051602001612ec093929190614e9d565b6040516020818303038152906040528051906020012090505b9392505050565b6000808060001985870986860292508281109083900303905080612f165760008411612f0b57600080fd5b508290049050612ed9565b808411612f2257600080fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b604080516000808252602082019092526001600160a01b038416908390604051612fb99190614f00565b60006040518083038185875af1925050503d8060008114612ff6576040519150601f19603f3d011682016040523d82523d6000602084013e612ffb565b606091505b50509050806108d65760405162461bcd60e51b81526004016102979061541a565b6000806000806000806000886001600160a01b03166399fbab88896040518263ffffffff1660e01b815260040161305391906151ce565b6101806040518083038186803b15801561306c57600080fd5b505afa158015613080573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130a49190614d83565b5050604080516060810182526001600160a01b03808b1682528916602082015262ffffff881691810191909152949f50929d50909b509499509297509095506130f494508e93509150612df89050565b965050505093509350935093565b600061138a82613a1c565b6000806000806000604051806060016040528087600001516001600160a01b0316815260200187602001516001600160a01b03168152602001876040015162ffffff16815250905061317f7f000000000000000000000000000000000000000000000000000000000000000082612df8565b91506000826001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e06040518083038186803b1580156131bc57600080fd5b505afa1580156131d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131f49190614be4565b5050505050509050600061320b8860800151613a20565b9050600061321c8960a00151613a20565b90506132338383838c60c001518d60e00151613d39565b9750505050816001600160a01b0316633c8a7d8d876060015188608001518960a00151896040518060400160405280888152602001336001600160a01b03168152506040516020016132859190615a00565b6040516020818303038152906040526040518663ffffffff1660e01b81526004016132b49594939291906150a1565b6040805180830381600087803b1580156132cd57600080fd5b505af11580156132e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133059190614ce5565b6101008801519195509350841080159061332457508561012001518310155b6133405760405162461bcd60e51b81526004016102979061584f565b509193509193565b826001600160a01b031661335b826115c6565b6001600160a01b0316146133815760405162461bcd60e51b815260040161029790615806565b6001600160a01b0382166133a75760405162461bcd60e51b8152600401610297906154aa565b6133b28383836108d6565b6133bd600082612d01565b6001600160a01b03831660009081526001602052604090206133df9082613dfb565b506001600160a01b03821660009081526001602052604090206134029082613e07565b5061340f60028284613e13565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006113878383613e29565b4690565b6000613471826115c6565b905061347f816000846108d6565b61348a600083612d01565b60008281526008602052604090205460026000196101006001841615020190911604156134c85760008281526008602052604081206134c891614555565b6001600160a01b03811660009081526001602052604090206134ea9083613dfb565b506134f6600283613e6e565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806135428686613e7a565b909450925050505b9250929050565b600061102a848484613ed6565b6000908152600c6020526040902080546001600160601b0319811660016001600160601b039283169081019092161790915590565b3b151590565b6001600160a01b0382166135bf5760405162461bcd60e51b815260040161029790615734565b6135c881612cf0565b156135e55760405162461bcd60e51b81526004016102979061538c565b6135f1600083836108d6565b6001600160a01b03821660009081526001602052604090206136139082613e07565b5061362060028284613e13565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0382166000908152600a60205260409020546001600160501b03168061138a5750600d805460016001600160501b03600160b01b8084048216838101909216026001600160b01b03909316929092179092556001600160a01b038085166000908152600a60209081526040808320805469ffffffffffffffffffff191686179055848352600b825291829020865181549085166001600160a01b031991821617825591870151950180549287015162ffffff16600160a01b0262ffffff60a01b19969094169290911691909117939093161790915592915050565b600061374b8383612df8565b9050336001600160a01b0382161461138a57600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b03161480156137a35750804710155b156138c2577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561380357600080fd5b505af1158015613817573d6000803e3d6000fd5b505060405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016935063a9059cbb925061386a91508590859060040161514a565b602060405180830381600087803b15801561388457600080fd5b505af1158015613898573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138bc9190614963565b5061254b565b6001600160a01b0383163014156138e3576138de848383613922565b61254b565b61254b84848484613f35565b6138fa848484613348565b61390684848484614025565b61254b5760405162461bcd60e51b81526004016102979061533a565b600080846001600160a01b031663a9059cbb60e01b858560405160240161394a92919061514a565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516139889190614f00565b6000604051808303816000865af19150503d80600081146139c5576040519150601f19603f3d011682016040523d82523d6000602084013e6139ca565b606091505b50915091508180156139f45750805115806139f45750808060200190518101906139f49190614963565b61225f5760405162461bcd60e51b8152600401610297906157e0565b60006113878383614104565b5490565b60008060008360020b12613a37578260020b613a3f565b8260020b6000035b9050620d89e8811115613a645760405162461bcd60e51b8152600401610297906156d7565b600060018216613a7857600160801b613a8a565b6ffffcb933bd6fad37aa2d162d1a5940015b70ffffffffffffffffffffffffffffffffff1690506002821615613abe576ffff97272373d413259a46990580e213a0260801c5b6004821615613add576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615613afc576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615613b1b576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615613b3a576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615613b59576fff2ea16466c96a3843ec78b326b528610260801c5b6080821615613b78576ffe5dee046a99a2a811c461f1969c30530260801c5b610100821615613b98576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b610200821615613bb8576ff987a7253ac413176f2b074cf7815e540260801c5b610400821615613bd8576ff3392b0822b70005940c7a398e4b70f30260801c5b610800821615613bf8576fe7159475a2c29b7443b29c7fa6e889d90260801c5b611000821615613c18576fd097f3bdfd2022b8845ad8f792aa58250260801c5b612000821615613c38576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615613c58576f70d869a156d2a1b890bb3df62baf32f70260801c5b618000821615613c78576f31be135f97d08fd981231505542fcfa60260801c5b62010000821615613c99576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615613cb9576e5d6af8dedb81196699c329225ee6040260801c5b62040000821615613cd8576d2216e584f5fa1ea926041bedfe980260801c5b62080000821615613cf5576b048a170391f7dc42444e8fa20260801c5b60008460020b1315613d10578060001981613d0c57fe5b0490505b640100000000810615613d24576001613d27565b60005b60ff16602082901c0192505050919050565b6000836001600160a01b0316856001600160a01b03161115613d59579293925b846001600160a01b0316866001600160a01b031611613d8457613d7d85858561411c565b905061190d565b836001600160a01b0316866001600160a01b03161015613de6576000613dab87868661411c565b90506000613dba87898661417f565b9050806001600160801b0316826001600160801b031610613ddb5780613ddd565b815b9250505061190d565b613df185858461417f565b9695505050505050565b600061138783836141bc565b60006113878383614282565b600061102a84846001600160a01b0385166142cc565b81546000908210613e4c5760405162461bcd60e51b8152600401610297906152d2565b826000018281548110613e5b57fe5b9060005260206000200154905092915050565b60006113878383614363565b815460009081908310613e9f5760405162461bcd60e51b8152600401610297906156f2565b6000846000018481548110613eb057fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281613f065760405162461bcd60e51b815260040161029791906152bf565b50846000016001820381548110613f1957fe5b9060005260206000209060020201600101549150509392505050565b600080856001600160a01b03166323b872dd60e01b868686604051602401613f5f9392919061507d565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051613f9d9190614f00565b6000604051808303816000865af19150503d8060008114613fda576040519150601f19603f3d011682016040523d82523d6000602084013e613fdf565b606091505b50915091508180156140095750805115806140095750808060200190518101906140099190614963565b6123ca5760405162461bcd60e51b8152600401610297906153ef565b6000614039846001600160a01b0316613593565b6140455750600161102a565b60006140cd630a85bd0160e11b61405a612cfd565b8887876040516024016140709493929190614f98565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001615c62603291396001600160a01b0388169190614437565b90506000818060200190518101906140e5919061499b565b6001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b6000826001600160a01b0316846001600160a01b0316111561413c579192915b600061415f856001600160a01b0316856001600160a01b0316600160601b612ee0565b905061190d61417a84838888036001600160a01b0316612ee0565b614446565b6000826001600160a01b0316846001600160a01b0316111561419f579192915b61102a61417a83600160601b8787036001600160a01b0316612ee0565b6000818152600183016020526040812054801561427857835460001980830191908101906000908790839081106141ef57fe5b906000526020600020015490508087600001848154811061420c57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061423c57fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061138a565b600091505061138a565b600061428e8383614104565b6142c45750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561138a565b50600061138a565b600082815260018401602052604081205480614331575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055612ed9565b8285600001600183038154811061434457fe5b9060005260206000209060020201600101819055506000915050612ed9565b60008181526001830160205260408120548015614278578354600019808301919081019060009087908390811061439657fe5b90600052602060002090600202019050808760000184815481106143b657fe5b6000918252602080832084546002909302019182556001938401549184019190915583548252898301905260409020908401905586548790806143f557fe5b600082815260208082206002600019909401938402018281556001908101839055929093558881528982019092526040822091909155945061138a9350505050565b606061102a848460008561445c565b806001600160801b038116811461075e57600080fd5b60608247101561447e5760405162461bcd60e51b815260040161029790615578565b61448785613593565b6144a35760405162461bcd60e51b815260040161029790615966565b600080866001600160a01b031685876040516144bf9190614f00565b60006040518083038185875af1925050503d80600081146144fc576040519150601f19603f3d011682016040523d82523d6000602084013e614501565b606091505b509150915061451182828661451c565b979650505050505050565b6060831561452b575081612ed9565b82511561453b5782518084602001fd5b8160405162461bcd60e51b815260040161029791906152bf565b50805460018160011615610100020316600290046000825580601f1061457b5750614599565b601f016020900490600052602060002090810190614599919061459c565b50565b5b808211156145b1576000815560010161459d565b5090565b803561075e81615be4565b805161075e81615be4565b805161075e81615c1d565b805161075e81615c2c565b805161ffff8116811461075e57600080fd5b805161075e81615c41565b60006020828403121561460f578081fd5b8135612ed981615be4565b60006020828403121561462b578081fd5b8151612ed981615be4565b60008060408385031215614648578081fd5b823561465381615be4565b9150602083013561466381615be4565b809150509250929050565b60008060008060808587031215614683578182fd5b843561468e81615be4565b9350602085013561469e81615be4565b925060408501356146ae81615be4565b915060608501356146be81615c41565b939692955090935050565b600080600080608085870312156146de578182fd5b84356146e981615be4565b935060208501356146f981615be4565b9250604085013561470981615c41565b915060608501356146be81615be4565b60008060006060848603121561472d578081fd5b833561473881615be4565b9250602084013561474881615be4565b929592945050506040919091013590565b6000806000806080858703121561476e578182fd5b843561477981615be4565b9350602085013561478981615be4565b925060408501359150606085013567ffffffffffffffff8111156147ab578182fd5b8501601f810187136147bb578182fd5b80356147ce6147c982615b96565b615b72565b8181528860208385010111156147e2578384fd5b81602084016020830137908101602001929092525092959194509250565b60008060408385031215614812578182fd5b823561481d81615be4565b9150602083013561466381615bf9565b6000806040838503121561483f578182fd5b823561484a81615be4565b946020939093013593505050565b60008060006060848603121561486c578081fd5b833561487781615be4565b925060208401359150604084013561488e81615be4565b809150509250925092565b60008060008060008060c087890312156148b1578384fd5b86356148bc81615be4565b9550602087013594506040870135935060608701356148da81615c52565b9598949750929560808101359460a0909101359350915050565b60008060208385031215614906578182fd5b823567ffffffffffffffff8082111561491d578384fd5b818501915085601f830112614930578384fd5b81358181111561493e578485fd5b8660208083028501011115614951578485fd5b60209290920196919550909350505050565b600060208284031215614974578081fd5b8151612ed981615bf9565b600060208284031215614990578081fd5b8135612ed981615c07565b6000602082840312156149ac578081fd5b8151612ed981615c07565b6000602082840312156149c8578081fd5b8135612ed981615c1d565b6000602082840312156149e4578081fd5b815167ffffffffffffffff8111156149fa578182fd5b8201601f81018413614a0a578182fd5b8051614a186147c982615b96565b818152856020838501011115614a2c578384fd5b61190d826020830160208601615bb8565b600060808284031215614a4e578081fd5b50919050565b600060a08284031215614a4e578081fd5b600060c08284031215614a4e578081fd5b60008183036080811215614a88578182fd5b6040516040810167ffffffffffffffff8282108183111715614aa657fe5b816040526060841215614ab7578485fd5b60a0830193508184108185111715614acb57fe5b508260405284359250614add83615be4565b918252602084013591614aef83615be4565b82606083015260408501359250614b0583615c41565b608082018390528152614b1a606085016145b5565b6020820152949350505050565b60006101608284031215614a4e578081fd5b600060208284031215614b4a578081fd5b8135612ed981615c2c565b60008060408385031215614b67578182fd5b8251614b7281615c2c565b602084015190925061466381615c2c565b600080600080600060a08688031215614b9a578283fd5b8551614ba581615c2c565b8095505060208601519350604086015192506060860151614bc581615c2c565b6080870151909250614bd681615c2c565b809150509295509295909350565b600080600080600080600060e0888a031215614bfe578485fd5b8751614c0981615be4565b6020890151909750614c1a81615c1d565b9550614c28604089016145e1565b9450614c36606089016145e1565b9350614c44608089016145e1565b925060a0880151614c5481615c52565b60c0890151909250614c6581615bf9565b8091505092959891949750929550565b600060208284031215614c86578081fd5b8135612ed981615c41565b600060208284031215614ca2578081fd5b5035919050565b600060208284031215614cba578081fd5b5051919050565b60008060408385031215614cd3578182fd5b82359150602083013561466381615be4565b60008060408385031215614cf7578182fd5b505080516020909101519092909150565b60008060008060608587031215614d1d578182fd5b8435935060208501359250604085013567ffffffffffffffff80821115614d42578384fd5b818701915087601f830112614d55578384fd5b813581811115614d63578485fd5b886020828501011115614d74578485fd5b95989497505060200194505050565b6000806000806000806000806000806000806101808d8f031215614da5578586fd5b8c516001600160601b0381168114614dbb578687fd5b9b50614dc960208e016145c0565b9a50614dd760408e016145c0565b9950614de560608e016145c0565b9850614df360808e016145f3565b9750614e0160a08e016145cb565b9650614e0f60c08e016145cb565b9550614e1d60e08e016145d6565b94506101008d015193506101208d01519250614e3c6101408e016145d6565b9150614e4b6101608e016145d6565b90509295989b509295989b509295989b565b60008151808452614e75816020860160208601615bb8565b601f01601f19169290920160200192915050565b60020b9052565b6001600160801b03169052565b60609390931b6001600160601b0319168352600291820b60e890811b6014850152910b901b6017820152601a0190565b928352602083019190915260f81b6001600160f81b031916604082015260410190565b6000828483379101908152919050565b60008251614f12818460208701615bb8565b9190910192915050565b61190160f01b81526002810192909252602282015260420190565b6001600160f81b0319815260609390931b6001600160601b03191660018401526015830191909152603582015260550190565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613df190830184614e5d565b6001600160a01b039889168152969097166020870152604086019490945260608501929092521515608084015260ff1660a083015260c082015260e08101919091526101000190565b6001600160a01b0397881681529590961660208601526040850193909352606084019190915260ff16608083015260a082015260c081019190915260e00190565b6001600160a01b03938416815291909216602082015262ffffff909116604082015260600190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600060018060a01b03871682528560020b60208301528460020b60408301526001600160801b038416606083015260a0608083015261451160a0830184614e5d565b6001600160a01b03959095168552600293840b60208601529190920b60408401526001600160801b03918216606084015216608082015260a00190565b6001600160a01b039390931683526001600160801b03918216602084015216604082015260600190565b6001600160a01b03929092168252602082015260400190565b6000602080830181845280855180835260408601915060408482028701019250838701855b828110156151b657603f198886030184526151a4858351614e5d565b94509285019290850190600101615188565b5092979650505050505050565b901515815260200190565b90815260200190565b9485526001600160a01b0393909316602085015260408401919091526060830152608082015260a00190565b60008382526040602083015261102a6040830184614e5d565b93845260ff9290921660208401526040830152606082015260800190565b6001600160a01b03949094168452600292830b6020850152910b60408301526001600160801b0316606082015260800190565b600293840b81529190920b60208201526001600160801b03909116604082015260600190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b6000602082526113876020830184614e5d565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252600c908201526b155b985d5d1a1bdc9a5e995960a21b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526012908201527124b739bab33334b1b4b2b73a103a37b5b2b760711b604082015260600190565b6020808252601190820152706572722d7472616e736665722d66726f6d60781b604082015260600190565b60208082526010908201526f0cae4e45ae8e4c2dce6cccae45acae8d60831b604082015260600190565b602080825260059082015264085cdbdc9d60da1b604082015260600190565b60208082526027908201527f4552433732315065726d69743a20617070726f76616c20746f2063757272656e6040820152663a1037bbb732b960c91b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b602080825260119082015270496e76616c6964207369676e617475726560781b604082015260600190565b6020808252600e908201526d14195c9b5a5d08195e1c1a5c995960921b604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252600c908201526b139bdd08185c1c1c9bdd995960a21b604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b6020808252600190820152601560fa1b604082015260600190565b60208082526022908201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526011908201527024b739bab33334b1b4b2b73a102ba1272160791b604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252600c908201526b32b93916ba3930b739b332b960a11b604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b602080825260149082015273507269636520736c69707061676520636865636b60601b604082015260600190565b60208082526010908201526f125b9d985b1a59081d1bdad95b88125160821b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b602080825260139082015272151c985b9cd858dd1a5bdb881d1bdbc81bdb19606a1b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b602080825260029082015261021360f41b604082015260600190565b6020808252600890820152672737ba102ba1272160c11b604082015260600190565b6020808252600b908201526a139bdd0818db19585c995960aa1b604082015260600190565b815180516001600160a01b03908116835260208083015182168185015260409283015162ffffff1692840192909252920151909116606082015260800190565b6001600160801b039390931683526020830191909152604082015260600190565b9384526001600160801b039290921660208401526040830152606082015260800190565b918252602082015260400190565b6001600160601b038d1681526001600160a01b038c811660208301528b811660408301528a16606082015262ffffff89166080820152600288900b60a08201526101808101615ae560c0830189614e89565b615af260e0830188614e90565b8561010083015284610120830152615b0e610140830185614e90565b615b1c610160830184614e90565b9d9c50505050505050505050505050565b6000808335601e19843603018112615b43578283fd5b83018035915067ffffffffffffffff821115615b5d578283fd5b60200191503681900382131561354a57600080fd5b60405181810167ffffffffffffffff81118282101715615b8e57fe5b604052919050565b600067ffffffffffffffff821115615baa57fe5b50601f01601f191660200190565b60005b83811015615bd3578181015183820152602001615bbb565b8381111561254b5750506000910152565b6001600160a01b038116811461459957600080fd5b801515811461459957600080fd5b6001600160e01b03198116811461459957600080fd5b8060020b811461459957600080fd5b6001600160801b038116811461459957600080fd5b62ffffff8116811461459957600080fd5b60ff8116811461459957600080fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea26469706673582212203eb86b31045e7a3530f16e8daf37b597917243d29ca627024224c33ee77f655b64736f6c63430007060033000000000000000000000000571521f8c16f3c4ed5f2490f19187ba7a5a3cbdf000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c0000000000000000000000009746db2cd555936856c3c55f950db766d6ceecbc

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

000000000000000000000000571521f8c16f3c4ed5f2490f19187ba7a5a3cbdf000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c0000000000000000000000009746db2cd555936856c3c55f950db766d6ceecbc

-----Decoded View---------------
Arg [0] : _factory (address): 0x571521f8c16f3c4ed5f2490f19187ba7a5a3cbdf
Arg [1] : _WBNB (address): 0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c
Arg [2] : _tokenDescriptor_ (address): 0x9746db2cd555936856c3c55f950db766d6ceecbc

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000571521f8c16f3c4ed5f2490f19187ba7a5a3cbdf
Arg [1] : 000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c
Arg [2] : 0000000000000000000000009746db2cd555936856c3c55f950db766d6ceecbc


Deployed ByteCode Sourcemap

122516:12946:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58489:10;-1:-1:-1;;;;;58503:4:0;58489:18;;58481:39;;;;-1:-1:-1;;;58481:39:0;;;;;;;:::i;:::-;;;;;;;;;122516:12946;;;;;66537:150;;;;;;;;;;-1:-1:-1;66537:150:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;100330:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;135037:234::-;;;;;;;;;;-1:-1:-1;135037:234:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;102646:404::-;;;;;;;;;;-1:-1:-1;102646:404:0;;;;;:::i;:::-;;:::i;130168:1981::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;59361:162::-;;;:::i;123608:342::-;;;;;;;;;;-1:-1:-1;123608:342:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;:::i;121630:758::-;;;;;;:::i;:::-;;:::i;102124:211::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;128236:1924::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;104006:305::-;;;;;;;;;;-1:-1:-1;104006:305:0;;;;;:::i;:::-;;:::i;101886:162::-;;;;;;;;;;-1:-1:-1;101886:162:0;;;;;:::i;:::-;;:::i;115063:126::-;;;;;;;;;;;;;:::i;114531:524::-;;;;;;;;;;;;;:::i;104382:151::-;;;;;;;;;;-1:-1:-1;104382:151:0;;;;;:::i;:::-;;:::i;134544:331::-;;;;;;:::i;:::-;;:::i;120792:298::-;;;;;;:::i;:::-;;:::i;102412:172::-;;;;;;;;;;-1:-1:-1;102412:172:0;;;;;:::i;:::-;;:::i;100086:177::-;;;;;;;;;;-1:-1:-1;100086:177:0;;;;;:::i;:::-;;:::i;128162:66::-;;;;;;;;;;;;;:::i;99803:221::-;;;;;;;;;;-1:-1:-1;99803:221:0;;;;;:::i;:::-;;:::i;115198:1140::-;;;;;;:::i;:::-;;:::i;123958:289::-;;;;;;;;;;-1:-1:-1;123958:289:0;;;;;:::i;:::-;;:::i;125988:1777::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;:::i;58015:38::-;;;;;;;;;;;;;:::i;100499:104::-;;;;;;;;;;;;;:::i;124638:1044::-;;;;;;;;;;-1:-1:-1;124638:1044:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;;;;;:::i;58536:401::-;;;;;;:::i;:::-;;:::i;60524:496::-;;;;;;;;;;-1:-1:-1;60524:496:0;;;;;:::i;:::-;;:::i;103409:295::-;;;;;;;;;;-1:-1:-1;103409:295:0;;;;;:::i;:::-;;:::i;121098:358::-;;;;;;:::i;:::-;;:::i;63046:588::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;104604:285::-;;;;;;;;;;-1:-1:-1;104604:285:0;;;;;:::i;:::-;;:::i;120461:323::-;;;;;;:::i;:::-;;:::i;57921:41::-;;;;;;;;;;;;;:::i;127923:231::-;;;;;;;;;;-1:-1:-1;127923:231:0;;;;;:::i;:::-;;:::i;124255:373::-;;;;;;;;;;-1:-1:-1;124255:373:0;;;;;:::i;:::-;;:::i;58945:408::-;;;;;;:::i;:::-;;:::i;103775:164::-;;;;;;;;;;-1:-1:-1;103775:164:0;;;;;:::i;:::-;;:::i;120171:282::-;;;;;;:::i;:::-;;:::i;132157:2379::-;;;;;;:::i;:::-;;:::i;66537:150::-;-1:-1:-1;;;;;;66646:33:0;;66622:4;66646:33;;;;;;;;;;;;;66537:150;;;;:::o;100330:100::-;100417:5;100410:12;;;;;;;;-1:-1:-1;;100410:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;100384:13;;100410:12;;100417:5;;100410:12;;100417:5;100410:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;100330:100;:::o;135037:234::-;135122:7;135150:16;135158:7;135150;:16::i;:::-;135142:73;;;;-1:-1:-1;;;135142:73:0;;;;;;;:::i;:::-;-1:-1:-1;135235:19:0;;;;:10;:19;;;;;:28;-1:-1:-1;;;135235:28:0;;-1:-1:-1;;;;;135235:28:0;;135037:234::o;102646:404::-;102727:13;102743:23;102758:7;102743:14;:23::i;:::-;102727:39;;102791:5;-1:-1:-1;;;;;102785:11:0;:2;-1:-1:-1;;;;;102785:11:0;;;102777:57;;;;-1:-1:-1;;;102777:57:0;;;;;;;:::i;:::-;102871:5;-1:-1:-1;;;;;102855:21:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;102855:21:0;;:69;;;;102880:44;102904:5;102911:12;:10;:12::i;102880:44::-;102847:161;;;;-1:-1:-1;;;102847:161:0;;;;;;;:::i;:::-;103021:21;103030:2;103034:7;103021:8;:21::i;:::-;102646:404;;;:::o;130168:1981::-;130369:15;;130303:14;;127839:39;127858:10;130303:14;127839:18;:39::i;:::-;127831:64;;;;-1:-1:-1;;;127831:64:0;;;;;;;:::i;:::-;130338:6:::1;:15;;;116568:8;116547:17;:15;:17::i;:::-;:29;;116539:61;;;;-1:-1:-1::0;;;116539:61:0::1;;;;;;;:::i;:::-;130446:1:::2;130427:16;::::0;;;::::2;::::0;::::2;;:::i;:::-;-1:-1:-1::0;;;;;130427:20:0::2;;130419:29;;;::::0;::::2;;130498:14:::0;::::2;130459:25;130487:26:::0;;;:10:::2;:26;::::0;;;;;;;;130554:18:::2;::::0;::::2;::::0;130487:26;;-1:-1:-1;;;130554:18:0;;::::2;-1:-1:-1::0;;;;;130554:18:0::2;::::0;130612:16:::2;::::0;;;;;::::2;;:::i;:::-;-1:-1:-1::0;;;;;130591:37:0::2;:17;-1:-1:-1::0;;;;;130591:37:0::2;;;130583:46;;;::::0;::::2;;130696:15;::::0;;::::2;::::0;-1:-1:-1;;;;;130696:15:0::2;130642:34;130679:33:::0;;;:16:::2;:33;::::0;;;;;;;130642:70;;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;;;130642:70:0;;::::2;::::0;;;;;::::2;::::0;;;::::2;::::0;;::::2;::::0;;;;-1:-1:-1;;;130642:70:0;;::::2;;;::::0;;;;130748:44:::2;130775:7;130642:70:::0;130748:26:::2;:44::i;:::-;130835:18;::::0;::::2;::::0;130723:70;;-1:-1:-1;;;;;;130825:9:0;::::2;::::0;::::2;::::0;-1:-1:-1;;;130835:18:0;::::2;;::::0;;::::2;::::0;-1:-1:-1;;;130855:18:0;::::2;::::0;::::2;130875:16;::::0;;;::::2;::::0;::::2;;:::i;:::-;130825:67;;;;;;;;;;;;;;;;;:::i;:::-;;::::0;::::2;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;130804:88:::0;;-1:-1:-1;130804:88:0;-1:-1:-1;130924:17:0::2;::::0;::::2;;130913:28:::0;::::2;::::0;::::2;::::0;:60:::2;;;130956:6;:17;;;130945:7;:28;;130913:60;130905:93;;;;-1:-1:-1::0;;;130905:93:0::2;;;;;;;:::i;:::-;131068:18;::::0;::::2;::::0;131011:19:::2;::::0;131033:74:::2;::::0;131061:4:::2;::::0;-1:-1:-1;;;131068:18:0;::::2;;::::0;;::::2;::::0;-1:-1:-1;;;131088:18:0;::::2;::::0;::::2;131033:19;:74::i;:::-;131011:96;;131180:32;131214::::0;131253:4:::2;-1:-1:-1::0;;;;;131253:14:0::2;;131268:11;131253:27;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;131177:103;;;;;;;131376:174;131437:8;:33;;;131410:24;:60;131489:17;-1:-1:-1::0;;;;;131376:174:0::2;-1:-1:-1::0;;;131376:15:0::2;:174::i;:::-;131293:20;::::0;::::2;:268:::0;;-1:-1:-1;;;;;;131293:268:0;::::2;131326:235:::0;;::::2;-1:-1:-1::0;;;;;131293:268:0;;::::2;;::::0;::::2;::::0;;;::::2;::::0;;131716:33:::2;::::0;::::2;::::0;131655:174:::2;::::0;131689:60;;::::2;::::0;131655:174;::::2;-1:-1:-1::0;;;131655:15:0::2;:174::i;:::-;131572:20;::::0;::::2;:268:::0;;-1:-1:-1;;;;;131572:268:0;;::::2;131605:235:::0;;::::2;-1:-1:-1::0;;;131572:268:0;;;::::2;::::0;::::2;;;;::::0;;;::::2;::::0;;131853:33:::2;::::0;::::2;:60:::0;;;131924:33:::2;::::0;::::2;:60:::0;;;132038:16:::2;::::0;;;::::2;::::0;::::2;;:::i;:::-;132018:17;:36;131997:8;:18;;;:57;;;;;-1:-1:-1::0;;;;;131997:57:0::2;;;;;-1:-1:-1::0;;;;;131997:57:0::2;;;;;;132090:6;:14;;;132072:69;132106:6;:16;;;;;;;;;;:::i;:::-;132124:7;132133;132072:69;;;;;;;;:::i;:::-;;;;;;;;116611:1;;;;;;;127906::::1;130168:1981:::0;;;;:::o;59361:162::-;59423:21;:25;59419:96;;59450:65;59481:10;59493:21;59450:30;:65::i;:::-;59361:162::o;123608:342::-;123739:13;123763:15;123789;123815:17;123857:85;123889:7;123926:4;123934:7;123857:31;:85::i;:::-;123850:92;;;;-1:-1:-1;123850:92:0;-1:-1:-1;123850:92:0;;-1:-1:-1;123608:342:0;-1:-1:-1;;;123608:342:0:o;121630:758::-;121818:12;121860:6;-1:-1:-1;;;;;121851:15:0;:6;-1:-1:-1;;;;;121851:15:0;;121843:33;;;;-1:-1:-1;;;121843:33:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;121895:17:0;;121887:32;;;;-1:-1:-1;;;121887:32:0;;;;;;;:::i;:::-;121937:49;;-1:-1:-1;;;121937:49:0;;-1:-1:-1;;;;;121949:7:0;121937:28;;;;:49;;121966:6;;121974;;121982:3;;121937:49;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;121930:56;-1:-1:-1;;;;;;122003:18:0;;121999:382;;122045:52;;-1:-1:-1;;;122045:52:0;;-1:-1:-1;;;;;122057:7:0;122045:31;;;;:52;;122077:6;;122085;;122093:3;;122045:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;122112:39;;-1:-1:-1;;;122112:39:0;;122038:59;;-1:-1:-1;;;;;;122112:25:0;;;;;:39;;122138:12;;122112:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;121999:382;;;122185:28;122237:4;-1:-1:-1;;;;;122228:20:0;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;122184:66;;;;;;;;122269:20;-1:-1:-1;;;;;122269:25:0;122293:1;122269:25;122265:105;;;122315:39;;-1:-1:-1;;;122315:39:0;;-1:-1:-1;;;;;122315:25:0;;;;;:39;;122341:12;;122315:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;122265:105;121999:382;;121630:758;;;;;;:::o;102124:211::-;102185:7;102306:21;:12;:19;:21::i;:::-;102299:28;;102124:211;:::o;128236:1924::-;128405:17;128433:15;128459;128364:6;:15;;;116568:8;116547:17;:15;:17::i;:::-;:29;;116539:61;;;;-1:-1:-1;;;116539:61:0;;;;;;;:::i;:::-;128537:14;::::1;128498:25;128526:26:::0;;;:10:::1;:26;::::0;;;;;;;128619:15:::1;::::0;;::::1;::::0;-1:-1:-1;;;;;128619:15:0;::::1;128602:33:::0;;:16:::1;:33:::0;;;;;128565:70;;::::1;::::0;;::::1;::::0;;;;-1:-1:-1;;;;;128565:70:0;;::::1;::::0;;;;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;;::::1;-1:-1:-1::0;;;128565:70:0;;::::1;::::0;::::1;::::0;;;;;;128737:425;;::::1;::::0;::::1;::::0;;128776:14;;128737:425;::::1;::::0;;128810:14;;128737:425;;::::1;::::0;;::::1;::::0;128841:11;;128737:425:::1;::::0;;;;129145:4:::1;128737:425:::0;;;;-1:-1:-1;;;128875:18:0;::::1;;::::0;;::::1;128737:425:::0;::::1;::::0;;;;;;;;-1:-1:-1;;;128916:18:0;;::::1;::::0;::::1;128737:425:::0;::::1;::::0;;;;128962:21;;::::1;;128737:425:::0;;;;129011:21;;::::1;;128737:425:::0;;;;129056:17;;::::1;;128619:15;128737:425:::0;;;129097:17;::::1;;128737:425:::0;;;;128526:26;128498:25;128710:463:::1;::::0;:12:::1;:463::i;:::-;129243:18;::::0;::::1;::::0;128672:501;;-1:-1:-1;128672:501:0;;-1:-1:-1;128672:501:0;-1:-1:-1;128672:501:0;-1:-1:-1;129186:19:0::1;::::0;129208:74:::1;::::0;129236:4:::1;::::0;-1:-1:-1;;;129243:18:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;129263:18:0;::::1;::::0;::::1;129208:19;:74::i;:::-;129186:96;;129298:32;129332::::0;129371:4:::1;-1:-1:-1::0;;;;;129371:14:0::1;;129386:11;129371:27;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;129295:103;;;;;;;129457:175;129518:8;:33;;;129491:24;:60;129570:8;:18;;;;;;;;;;-1:-1:-1::0;;;;;129570:18:0::1;-1:-1:-1::0;;;;;129457:175:0::1;-1:-1:-1::0;;;129457:15:0::1;:175::i;:::-;129411:20;::::0;::::1;:232:::0;;-1:-1:-1;;;;;129411:232:0;;::::1;::::0;;::::1;::::0;::::1;-1:-1:-1::0;;;;;;129411:232:0;;::::1;;::::0;;129761:33:::1;::::0;::::1;::::0;129411:232;129813:18;::::1;::::0;129700:175:::1;::::0;129734:60;;::::1;::::0;-1:-1:-1;;;129813:18:0;;;::::1;;::::0;129700:15:::1;:175::i;:::-;129654:20;::::0;::::1;:232:::0;;-1:-1:-1;;;;;;;;129654:232:0;;::::1;::::0;::::1;::::0;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;129899:33:::1;::::0;::::1;:60:::0;;;129970:33:::1;::::0;::::1;:60:::0;;;-1:-1:-1;130041:18:0;::::1;:31:::0;;;;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;130090:62:::1;::::0;130108:14;::::1;::::0;130090:62:::1;::::0;::::1;::::0;130063:9;;130135:7;;130144;;130090:62:::1;:::i;:::-;;;;;;;;116611:1;;;;;;128236:1924:::0;;;;;;:::o;104006:305::-;104167:41;104186:12;:10;:12::i;:::-;104200:7;104167:18;:41::i;:::-;104159:103;;;;-1:-1:-1;;;104159:103:0;;;;;;;:::i;:::-;104275:28;104285:4;104291:2;104295:7;104275:9;:28::i;101886:162::-;-1:-1:-1;;;;;102010:20:0;;101983:7;102010:20;;;:13;:20;;;;;:30;;102034:5;102010:23;:30::i;:::-;102003:37;;101886:162;;;;;:::o;115063:126::-;115123:66;115063:126;:::o;114531:524::-;114589:7;114810:66;114899:8;114930:11;114964:13;:11;:13::i;:::-;115008:4;114657:375;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;114629:418;;;;;;114609:438;;114531:524;:::o;104382:151::-;104486:39;104503:4;104509:2;104513:7;104486:39;;;;;;;;;;;;:16;:39::i;134544:331::-;134622:7;127839:39;127858:10;127870:7;127839:18;:39::i;:::-;127831:64;;;;-1:-1:-1;;;127831:64:0;;;;;;;:::i;:::-;134642:25:::1;134670:19:::0;;;:10:::1;:19;::::0;;;;134708:18:::1;::::0;::::1;::::0;-1:-1:-1;;;134708:18:0;::::1;-1:-1:-1::0;;;;;134708:18:0::1;:23:::0;:52;::::1;;;-1:-1:-1::0;134735:20:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;134735:20:0::1;:25:::0;134708:52:::1;:81;;;;-1:-1:-1::0;134764:20:0::1;::::0;::::1;::::0;-1:-1:-1;;;134764:20:0;::::1;-1:-1:-1::0;;;;;134764:20:0::1;:25:::0;134708:81:::1;134700:105;;;;-1:-1:-1::0;;;134700:105:0::1;;;;;;;:::i;:::-;134823:19;::::0;;;:10:::1;:19;::::0;;;;134816:26;;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;;::::0;134853:14:::1;134834:7:::0;134853:5:::1;:14::i;120792:298::-:0;120992:90;;-1:-1:-1;;;120992:90:0;;-1:-1:-1;;;;;120992:33:0;;;;;:90;;121026:10;;121046:4;;121053:5;;121060:6;;121068:4;;121074:1;;121077;;121080;;120992:90;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;120792:298;;;;;;:::o;102412:172::-;102487:7;;102529:22;:12;102545:5;102529:15;:22::i;:::-;-1:-1:-1;102507:44:0;102412:172;-1:-1:-1;;;102412:172:0:o;100086:177::-;100158:7;100185:70;100202:7;100185:70;;;;;;;;;;;;;;;;;:12;;:70;:16;:70::i;128162:66::-;128211:13;128162:66;:::o;99803:221::-;99875:7;-1:-1:-1;;;;;99903:19:0;;99895:74;;;;-1:-1:-1;;;99895:74:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;99987:20:0;;;;;;:13;:20;;;;;:29;;:27;:29::i;115198:1140::-;115424:8;115403:17;:15;:17::i;:::-;:29;;115395:56;;;;-1:-1:-1;;;115395:56:0;;;;;;;:::i;:::-;115464:14;115594:18;:16;:18::i;:::-;115123:66;115673:7;115682;115691:30;115682:7;115691:21;:30::i;:::-;115723:8;115645:87;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;115635:98;;;;;;115522:230;;;;;;;;;:::i;:::-;;;;;;;;;;;;;115494:273;;;;;;115464:303;;115778:13;115794:16;115802:7;115794;:16::i;:::-;115778:32;;115840:5;-1:-1:-1;;;;;115829:16:0;:7;-1:-1:-1;;;;;115829:16:0;;;115821:68;;;;-1:-1:-1;;;115821:68:0;;;;;;;:::i;:::-;115906:25;115925:5;115906:18;:25::i;:::-;115902:390;;;115965:5;-1:-1:-1;;;;;115956:32:0;;115989:6;116014:1;116017;116020;115997:25;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;115956:67;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;115956:81:0;;116027:10;115956:81;;;115948:106;;;;-1:-1:-1;;;115948:106:0;;;;;;;:::i;:::-;115902:390;;;116087:24;116114:26;116124:6;116132:1;116135;116138;116114:26;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;116114:26:0;;-1:-1:-1;;116114:26:0;;;-1:-1:-1;;;;;;;116163:30:0;;116155:60;;;;-1:-1:-1;;;116155:60:0;;;;;;;:::i;:::-;116258:5;-1:-1:-1;;;;;116238:25:0;:16;-1:-1:-1;;;;;116238:25:0;;116230:50;;;;-1:-1:-1;;;116230:50:0;;;;;;;:::i;:::-;115902:390;;116304:26;116313:7;116322;116304:8;:26::i;:::-;115198:1140;;;;;;;;:::o;123958:289::-;124109:7;124136:103;124163:7;124172:66;;;;;;;;124202:6;-1:-1:-1;;;;;124172:66:0;;;;;124219:6;-1:-1:-1;;;;;124172:66:0;;;;;124233:3;124172:66;;;;;124136:26;:103::i;:::-;124129:110;123958:289;-1:-1:-1;;;;;123958:289:0:o;125988:1777::-;126131:15;126157:17;126185:15;126211;126090:6;:15;;;116568:8;116547:17;:15;:17::i;:::-;:29;;116539:61;;;;-1:-1:-1;;;116539:61:0;;;;;;;:::i;:::-;126339:418:::1;::::0;;::::1;::::0;::::1;::::0;;;126250:13:::1;::::0;126312:456:::1;::::0;126339:418;126378:13:::1;;::::0;::::1;:6:::0;:13:::1;:::i;:::-;-1:-1:-1::0;;;;;126339:418:0::1;;;;;126411:6;:13;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;126339:418:0::1;::::0;;::::1;;126441:10;::::0;;;::::1;::::0;::::1;;:::i;:::-;126339:418;;::::0;;126482:4:::1;126339:418;::::0;::::1;::::0;;;126510:16:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;126339:418;;::::0;;::::1;;126549:16;::::0;;;::::1;::::0;::::1;;:::i;:::-;126339:418;;;;;;126593:6;:21;;;126339:418;;;;126642:6;:21;;;126339:418;;;;126687:6;:17;;;126339:418;;;;126728:6;:17;;;126339:418;;::::0;126312:12:::1;:456::i;:::-;126274:494:::0;;-1:-1:-1;126274:494:0;;-1:-1:-1;126274:494:0;-1:-1:-1;126274:494:0;-1:-1:-1;126781:46:0::1;126787:16;::::0;;;::::1;::::0;::::1;;:::i;:::-;126816:7;:9:::0;;-1:-1:-1;;;;;;126816:9:0;::::1;::::0;-1:-1:-1;;;;;126816:9:0;;::::1;::::0;;::::1;::::0;;::::1;;::::0;;;;-1:-1:-1;126816:9:0;126781:5:::1;:46::i;:::-;126840:19;126862:70;126890:4;126897:16;::::0;;;::::1;::::0;::::1;;:::i;:::-;126915;::::0;;;::::1;::::0;::::1;;:::i;:::-;126862:19;:70::i;:::-;126840:92;;126946:32;126980::::0;127019:4:::1;-1:-1:-1::0;;;;;127019:14:0::1;;127034:11;127019:27;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;126943:103;;;;;;;127086:13;127111:153;127146:4;127166:87;;;;;;;;127196:6;:13;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;127166:87:0::1;;;;;127220:6;:13;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;127166:87:0::1;;;;;127241:6;:10;;;;;;;;;;:::i;:::-;127166:87;;::::0;;127111:12:::1;:153::i;:::-;127086:178;;127299:385;;;;;;;;127327:1;-1:-1:-1::0;;;;;127299:385:0::1;;;;;127358:1;-1:-1:-1::0;;;;;127299:385:0::1;;;;;127380:6;-1:-1:-1::0;;;;;127299:385:0::1;;;;;127409:6;:16;;;;;;;;;;:::i;:::-;127299:385;;::::0;;::::1;;127448:16;::::0;;;::::1;::::0;::::1;;:::i;:::-;127299:385;;;;;;127487:9;-1:-1:-1::0;;;;;127299:385:0::1;;;;;127534:24;127299:385;;;;127596:24;127299:385;;;;127645:1;-1:-1:-1::0;;;;;127299:385:0::1;;;;;127671:1;-1:-1:-1::0;;;;;127299:385:0::1;;;::::0;127277:10:::1;:19;127288:7;127277:19;;;;;;;;;;;:407;;;;;;;;;;;;;-1:-1:-1::0;;;;;127277:407:0::1;;;;;-1:-1:-1::0;;;;;127277:407:0::1;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;127277:407:0::1;;;;;-1:-1:-1::0;;;;;127277:407:0::1;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;127277:407:0::1;;;;;-1:-1:-1::0;;;;;127277:407:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;127277:407:0::1;;;;;-1:-1:-1::0;;;;;127277:407:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;127277:407:0::1;;;;;-1:-1:-1::0;;;;;127277:407:0::1;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;127277:407:0::1;;;;;-1:-1:-1::0;;;;;127277:407:0::1;;;;;;;;;127720:7;127702:55;127729:9;127740:7;127749;127702:55;;;;;;;;:::i;:::-;;;;;;;;116611:1;;;;;125988:1777:::0;;;;;;:::o;58015:38::-;;;:::o;100499:104::-;100588:7;100581:14;;;;;;;;-1:-1:-1;;100581:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;100555:13;;100581:14;;100588:7;;100581:14;;100588:7;100581:14;;;;;;;;;;;;;;;;;;;;;;;;124638:1044;124736:12;125123:19;;;:10;:19;;;;;;;;125096:46;;;;;;;;;-1:-1:-1;;;;;125096:46:0;;;;-1:-1:-1;;;;;;;;125096:46:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;125096:46:0;;;;;;;;-1:-1:-1;;;125096:46:0;;;;;;;;;;;;;;-1:-1:-1;;;125096:46:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;125096:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;124736:12;;;;;;;;;;;;;;;;;;;;;;125096:46;125153:49;;;;-1:-1:-1;;;125153:49:0;;;;;;;:::i;:::-;125213:34;125250:16;:33;125267:8;:15;;;-1:-1:-1;;;;;125250:33:0;-1:-1:-1;;;;;125250:33:0;;;;;;;;;;;;125213:70;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;125213:70:0;-1:-1:-1;;;;;125213:70:0;-1:-1:-1;;;;;125213:70:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;125213:70:0;-1:-1:-1;;;;;125213:70:0;-1:-1:-1;;;;;125213:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;125312:8;:14;;;125337:8;:17;;;125365:7;:14;;;125390:7;:14;;;125415:7;:11;;;125437:8;:18;;;125466:8;:18;;;125495:8;:18;;;125524:8;:33;;;125568:8;:33;;;125612:8;:20;;;125643:8;:20;;;125294:380;;;;;;;;;;;;;;;;;;;;;;;;;;124638:1044;;;;;;;;;;;;;:::o;58536:401::-;58658:36;;-1:-1:-1;;;58658:36:0;;58635:20;;-1:-1:-1;;;;;58664:4:0;58658:21;;;;:36;;58688:4;;58658:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;58635:59;;58729:13;58713:12;:29;;58705:59;;;;-1:-1:-1;;;58705:59:0;;;;;;;:::i;:::-;58781:16;;58777:153;;58814:34;;-1:-1:-1;;;58814:34:0;;-1:-1:-1;;;;;58820:4:0;58814:20;;;;:34;;58835:12;;58814:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58863:55;58894:9;58905:12;58863:30;:55::i;60524:496::-;60672:31;60706:36;;;;60717:4;60706:36;:::i;:::-;60672:70;;60753:59;60787:7;60796;:15;;;60753:33;:59::i;:::-;-1:-1:-1;60829:15:0;;60825:88;;60850:15;;:22;60874:13;;;;60846:67;;60850:22;60889:10;60901:11;60846:3;:67::i;:::-;60928:15;;60924:88;;60945:67;60949:7;:15;;;:22;;;60973:7;:13;;;60988:10;61000:11;60945:3;:67::i;:::-;60524:496;;;;;:::o;103409:295::-;103524:12;:10;:12::i;:::-;-1:-1:-1;;;;;103512:24:0;:8;-1:-1:-1;;;;;103512:24:0;;;103504:62;;;;-1:-1:-1;;;103504:62:0;;;;;;;:::i;:::-;103624:8;103579:18;:32;103598:12;:10;:12::i;:::-;-1:-1:-1;;;;;103579:32:0;;;;;;;;;;;;;;;;;-1:-1:-1;103579:32:0;;;:42;;;;;;;;;;;;:53;;-1:-1:-1;;103579:53:0;;;;;;;;;;;103663:12;:10;:12::i;:::-;-1:-1:-1;;;;;103648:48:0;;103687:8;103648:48;;;;;;:::i;:::-;;;;;;;;103409:295;;:::o;121098:358::-;121315:50;;-1:-1:-1;;;121315:50:0;;-1:-1:-1;;121368:17:0;-1:-1:-1;;;;;121315:23:0;;;;;:50;;121339:10;;121359:4;;121315:50;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:70;121311:137;;;121400:48;121418:5;121425;121432:6;121440:1;121443;121446;121400:17;:48::i;:::-;121098:358;;;;;;:::o;63046:588::-;63123:22;63180:4;63168:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63158:34;;63208:9;63203:424;63223:15;;;63203:424;;;63261:12;;63306:4;63325;;63330:1;63325:7;;;;;;;;;;;;;;;;;;:::i;:::-;63298:35;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63260:73;;;;63353:7;63348:232;;63401:2;63385:6;:13;:18;63381:32;;;63405:8;;;63381:32;63486:4;63478:6;63474:17;63464:27;;63546:6;63535:28;;;;;;;;;;;;:::i;:::-;63528:36;;-1:-1:-1;;;63528:36:0;;;;;;;;:::i;63348:232::-;63609:6;63596:7;63604:1;63596:10;;;;;;;;;;;;;;;;;:19;-1:-1:-1;;63240:3:0;;63203:424;;;;63046:588;;;;:::o;104604:285::-;104736:41;104755:12;:10;:12::i;:::-;104769:7;104736:18;:41::i;:::-;104728:103;;;;-1:-1:-1;;;104728:103:0;;;;;;;:::i;:::-;104842:39;104856:4;104862:2;104866:7;104875:5;104842:13;:39::i;:::-;104604:285;;;;:::o;120461:323::-;120673:50;;-1:-1:-1;;;120673:50:0;;120726:5;;-1:-1:-1;;;;;120673:23:0;;;;;:50;;120697:10;;120717:4;;120673:50;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:58;120669:107;;;120733:43;120744:5;120751;120758:8;120768:1;120771;120774;120733:10;:43::i;57921:41::-;;;:::o;127923:231::-;128013:13;128047:16;128055:7;128047;:16::i;:::-;128039:25;;;;;;128082:64;;-1:-1:-1;;;128082:64:0;;-1:-1:-1;;;;;128105:16:0;128082:49;;;;:64;;128132:4;;128138:7;;128082:64;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;128082:64:0;;;;;;;;;;;;:::i;124255:373::-;124418:7;124438:17;124458:9;124438:29;;124478:103;124505:7;124514:66;;;;;;;;124544:6;-1:-1:-1;;;;;124514:66:0;;;;;124561:6;-1:-1:-1;;;;;124514:66:0;;;;;124575:3;124514:66;;;;;124478:26;:103::i;:::-;;124611:9;124599:21;;;124255:373;-1:-1:-1;;;;;124255:373:0:o;58945:408::-;59116:38;;-1:-1:-1;;;59116:38:0;;59093:20;;-1:-1:-1;;;;;59116:23:0;;;;;:38;;59148:4;;59116:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;59093:61;;59189:13;59173:12;:29;;59165:60;;;;-1:-1:-1;;;59165:60:0;;;;;;;:::i;:::-;59242:16;;59238:108;;59275:59;59303:5;59310:9;59321:12;59275:27;:59::i;103775:164::-;-1:-1:-1;;;;;103896:25:0;;;103872:4;103896:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;103775:164::o;120171:282::-;120366:79;;-1:-1:-1;;;120366:79:0;;-1:-1:-1;;;;;120366:26:0;;;;;:79;;120393:10;;120413:4;;120420:5;;120427:8;;120437:1;;120440;;120443;;120366:79;;;:::i;132157:2379::-;132302:15;;132272:14;;127839:39;127858:10;132272:14;127839:18;:39::i;:::-;127831:64;;;;-1:-1:-1;;;127831:64:0;;;;;;;:::i;:::-;132380:1:::1;132360:17;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;132360:21:0::1;;:46;;;-1:-1:-1::0;132405:1:0::1;132385:17;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;132385:21:0::1;;132360:46;132352:55;;;::::0;::::1;;132418:17;::::0;132438:16:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;132438:30:0::1;;:65;;132487:16;::::0;;;::::1;::::0;::::1;;:::i;:::-;132438:65;;;132479:4;132438:65;132555:14:::0;::::1;132516:25;132544:26:::0;;;:10:::1;:26;::::0;;;;;;;132637:15:::1;::::0;;::::1;::::0;-1:-1:-1;;;;;132637:15:0::1;132620:33:::0;;:16:::1;:33:::0;;;;;132583:70;;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;132583:70:0;;::::1;::::0;;;;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;;;-1:-1:-1;;;132583:70:0;;::::1;;;::::0;;;;;;;132418:85;;-1:-1:-1;132583:70:0;132691:44:::1;132718:7;132583:70:::0;132691:26:::1;:44::i;:::-;132795:20;::::0;::::1;::::0;;132855:18;::::1;::::0;132666:70;;-1:-1:-1;;;;;;132795:20:0;;::::1;::::0;-1:-1:-1;;;132817:20:0;;;::::1;::::0;::::1;::::0;132855:18;::::1;;:22:::0;132851:979:::1;;132904:18;::::0;::::1;::::0;132894:52:::1;::::0;-1:-1:-1;;;132894:52:0;;-1:-1:-1;;;;;132894:9:0;::::1;::::0;::::1;::::0;:52:::1;::::0;-1:-1:-1;;;132904:18:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;132924:18:0;;::::1;::::0;::::1;::::0;132944:1:::1;::::0;132894:52:::1;;;:::i;:::-;;::::0;::::1;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;133100:18:0::1;::::0;::::1;::::0;132964:32:::1;::::0;;;-1:-1:-1;;;;;133050:14:0;::::1;::::0;::::1;::::0;133065:74:::1;::::0;133093:4:::1;::::0;-1:-1:-1;;;133100:18:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;133120:18:0;::::1;::::0;::::1;133065:19;:74::i;:::-;133050:90;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;132961:179;;;;;;;133198:191;133263:8;:33;;;133236:24;:60;133319:8;:18;;;;;;;;;;-1:-1:-1::0;;;;;133319:18:0::1;-1:-1:-1::0;;;;;133198:191:0::1;-1:-1:-1::0;;;133198:15:0::1;:191::i;:::-;133157:247;;;;133460:191;133525:8;:33;;;133498:24;:60;133581:8;:18;;;;;;;;;;-1:-1:-1::0;;;;;133581:18:0::1;-1:-1:-1::0;;;;;133460:191:0::1;-1:-1:-1::0;;;133460:15:0::1;:191::i;:::-;133683:33;::::0;::::1;:60:::0;;;;133758:33:::1;::::0;::::1;:60:::0;133419:247:::1;132851:979;133843:22;::::0;-1:-1:-1;;;;;133913:31:0;::::1;:17;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;133913:31:0::1;;:65;;133961:17;::::0;;;::::1;::::0;::::1;;:::i;:::-;133913:65;;;133947:11;133913:65;134009:11;-1:-1:-1::0;;;;;133989:31:0::1;:6;:17;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;133989:31:0::1;;:65;;134037:17;::::0;;;::::1;::::0;::::1;;:::i;:::-;133989:65;;;134023:11;133989:65;134204:18;::::0;::::1;::::0;134153:171:::1;::::0;-1:-1:-1;;;134153:171:0;;133842:223;;-1:-1:-1;133842:223:0;;-1:-1:-1;;;;;;134153:12:0;::::1;::::0;::::1;::::0;:171:::1;::::0;134180:9;;-1:-1:-1;;;134204:18:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;134237:18:0;;::::1;::::0;::::1;::::0;133842:223;;;;134153:171:::1;;;:::i;:::-;;::::0;::::1;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;134338:20;::::0;::::1;134337:107:::0;;-1:-1:-1;;;;;;;;;;;134337:107:0;;::::1;-1:-1:-1::0;;;134415:28:0;;::::1;134337:107:::0;::::1;;;;134385:28:::0;;::::1;134337:107:::0;::::1;;::::0;;;134462:66:::1;::::0;134132:192;;::::1;::::0;-1:-1:-1;134132:192:0::1;::::0;-1:-1:-1;134470:14:0;::::1;::::0;134462:66:::1;::::0;::::1;::::0;134486:9;;134385:28;;134415;;134462:66:::1;:::i;106356:127::-:0;106421:4;106445:30;:12;106467:7;106445:21;:30::i;64277:106::-;64365:10;64277:106;:::o;135279:180::-;135363:19;;;;:10;:19;;;;;:33;;-1:-1:-1;;;;;135363:33:0;-1:-1:-1;;;;;;;;135363:33:0;;;;;;;;;;;;:19;;135421:16;135363:19;135421:7;:16::i;:::-;-1:-1:-1;;;;;135412:39:0;;;;;;;;;;;135279:180;;:::o;106650:355::-;106743:4;106768:16;106776:7;106768;:16::i;:::-;106760:73;;;;-1:-1:-1;;;106760:73:0;;;;;;;:::i;:::-;106844:13;106860:23;106875:7;106860:14;:23::i;:::-;106844:39;;106913:5;-1:-1:-1;;;;;106902:16:0;:7;-1:-1:-1;;;;;106902:16:0;;:51;;;;106946:7;-1:-1:-1;;;;;106922:31:0;:20;106934:7;106922:11;:20::i;:::-;-1:-1:-1;;;;;106922:31:0;;106902:51;:94;;;;106957:39;106981:5;106988:7;106957:23;:39::i;113828:108::-;113913:15;113828:108;:::o;37853:526::-;37937:12;37983:3;:10;;;-1:-1:-1;;;;;37970:23:0;:3;:10;;;-1:-1:-1;;;;;37970:23:0;;37962:32;;;;;;38169:7;38224:3;:10;;;38236:3;:10;;;38248:3;:7;;;38213:43;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;38213:43:0;;;;;;;;;;38203:54;;38213:43;38203:54;;;;38092:234;;;38203:54;;37387:66;;38092:234;;:::i;:::-;;;;-1:-1:-1;;38092:234:0;;;;;;;;;38060:285;;38092:234;38060:285;;;;;37853:526;-1:-1:-1;;;37853:526:0:o;41529:214::-;41652:7;41706:5;41713:9;41724;41689:45;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;41679:56;;;;;;41672:63;;41529:214;;;;;;:::o;15542:1494::-;15658:14;;;-1:-1:-1;;15777:1:0;15774;15767:20;15810:9;;;;-1:-1:-1;15862:13:0;;;15846:14;;;;15842:34;;-1:-1:-1;15903:10:0;15899:185;;15952:1;15938:11;:15;15930:24;;;;;;-1:-1:-1;16007:23:0;;;;-1:-1:-1;16059:13:0;;15899:185;16118:5;16104:11;:19;16096:28;;;;;;16137:17;16215:11;16212:1;16209;16202:25;16382:12;16397;;;:26;;16473:22;;;;;16738:1;16719;:15;;16718:21;;16761:17;;;16757:21;;16750:28;16800:17;;;16796:21;;16789:28;16839:17;;;16835:21;;16828:28;16878:17;;;16874:21;;16867:28;16917:17;;;16913:21;;16906:28;16956:17;;;16952:21;;;16945:28;16628:12;;;;16624:23;;;16649:1;16620:31;16294:20;;;16283:32;;;16681:12;;;;16338:21;;;;16549:16;;;;16672:21;;;;16993:11;;;;;-1:-1:-1;;15542:1494:0;;;;;:::o;57442:181::-;57555:12;;;57515;57555;;;;;;;;;-1:-1:-1;;;;;57533:7:0;;;57548:5;;57533:35;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57514:54;;;57587:7;57579:36;;;;-1:-1:-1;;;57579:36:0;;;;;;;:::i;47847:771::-;48056:13;48084:15;48114;48144:17;48189:14;48214;48239:10;48329:26;-1:-1:-1;;;;;48329:36:0;;48380:7;48329:69;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;48521:63:0;;;;;;;;-1:-1:-1;;;;;48521:63:0;;;;;;;;;;;;;;;;;;;;;48260:138;;-1:-1:-1;48260:138:0;;-1:-1:-1;48260:138:0;;-1:-1:-1;48260:138:0;;-1:-1:-1;48260:138:0;;-1:-1:-1;48260:138:0;;-1:-1:-1;48441:158:0;;-1:-1:-1;48494:7:0;;-1:-1:-1;48521:63:0;-1:-1:-1;48441:26:0;;-1:-1:-1;48441:158:0:i;:::-;48411:199;;47847:771;;;;;;;;;;:::o;93092:123::-;93161:7;93188:19;93196:3;93188:7;:19::i;61345:1369::-;61451:17;61483:15;61513;61543:13;61584:34;61634:84;;;;;;;;61663:6;:13;;;-1:-1:-1;;;;;61634:84:0;;;;;61686:6;:13;;;-1:-1:-1;;;;;61634:84:0;;;;;61706:6;:10;;;61634:84;;;;;61584:134;;61747:44;61774:7;61783;61747:26;:44::i;:::-;61731:61;;61862:20;61898:4;-1:-1:-1;;;;;61898:10:0;;:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61861:49;;;;;;;;61925:21;61949:45;61977:6;:16;;;61949:27;:45::i;:::-;61925:69;;62009:21;62033:45;62061:6;:16;;;62033:27;:45::i;:::-;62009:69;;62107:229;62165:12;62196:13;62228;62260:6;:21;;;62300:6;:21;;;62107:39;:229::i;:::-;62095:241;;61345:1369;;;62381:4;-1:-1:-1;;;;;62381:9:0;;62405:6;:16;;;62436:6;:16;;;62467:6;:16;;;62498:9;62533:55;;;;;;;;62560:7;62533:55;;;;62576:10;-1:-1:-1;;;;;62533:55:0;;;;62522:67;;;;;;;;:::i;:::-;;;;;;;;;;;;;62381:219;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;62632:17;;;;62360:240;;-1:-1:-1;62360:240:0;-1:-1:-1;62621:28:0;;;;;:60;;;62664:6;:17;;;62653:7;:28;;62621:60;62613:93;;;;-1:-1:-1;;;62613:93:0;;;;;;;:::i;:::-;61345:1369;;;;;;:::o;109786:599::-;109911:4;-1:-1:-1;;;;;109884:31:0;:23;109899:7;109884:14;:23::i;:::-;-1:-1:-1;;;;;109884:31:0;;109876:85;;;;-1:-1:-1;;;109876:85:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;109998:16:0;;109990:65;;;;-1:-1:-1;;;109990:65:0;;;;;;;:::i;:::-;110068:39;110089:4;110095:2;110099:7;110068:20;:39::i;:::-;110172:29;110189:1;110193:7;110172:8;:29::i;:::-;-1:-1:-1;;;;;110214:19:0;;;;;;:13;:19;;;;;:35;;110241:7;110214:26;:35::i;:::-;-1:-1:-1;;;;;;110260:17:0;;;;;;:13;:17;;;;;:30;;110282:7;110260:21;:30::i;:::-;-1:-1:-1;110303:29:0;:12;110320:7;110329:2;110303:16;:29::i;:::-;;110369:7;110365:2;-1:-1:-1;;;;;110350:27:0;110359:4;-1:-1:-1;;;;;110350:27:0;;;;;;;;;;;109786:599;;;:::o;84891:137::-;84962:7;84997:22;85001:3;85013:5;84997:3;:22::i;113368:128::-;113469:9;;113443:46::o;108904:545::-;108964:13;108980:23;108995:7;108980:14;:23::i;:::-;108964:39;;109034:48;109055:5;109070:1;109074:7;109034:20;:48::i;:::-;109123:29;109140:1;109144:7;109123:8;:29::i;:::-;109211:19;;;;:10;:19;;;;;109205:33;;-1:-1:-1;;109205:33:0;;;;;;;;;;;:38;109201:97;;109267:19;;;;:10;:19;;;;;109260:26;;;:::i;:::-;-1:-1:-1;;;;;109310:20:0;;;;;;:13;:20;;;;;:36;;109338:7;109310:27;:36::i;:::-;-1:-1:-1;109359:28:0;:12;109379:7;109359:19;:28::i;:::-;-1:-1:-1;109405:36:0;;109433:7;;109429:1;;-1:-1:-1;;;;;109405:36:0;;;;;109429:1;;109405:36;108904:545;;:::o;93554:236::-;93634:7;;;;93694:22;93698:3;93710:5;93694:3;:22::i;:::-;93663:53;;-1:-1:-1;93663:53:0;-1:-1:-1;;;93554:236:0;;;;;;:::o;94840:213::-;94947:7;94998:44;95003:3;95023;95029:12;94998:4;:44::i;134883:146::-;134958:7;134993:19;;;:10;:19;;;;;:27;;-1:-1:-1;;;;;;134993:27:0;;;-1:-1:-1;;;;;134993:27:0;;;;;;;;;;;;;;134883:146::o;68068:422::-;68435:20;68474:8;;;68068:422::o;108271:404::-;-1:-1:-1;;;;;108351:16:0;;108343:61;;;;-1:-1:-1;;;108343:61:0;;;;;;;:::i;:::-;108424:16;108432:7;108424;:16::i;:::-;108423:17;108415:58;;;;-1:-1:-1;;;108415:58:0;;;;;;;:::i;:::-;108486:45;108515:1;108519:2;108523:7;108486:20;:45::i;:::-;-1:-1:-1;;;;;108544:17:0;;;;;;:13;:17;;;;;:30;;108566:7;108544:21;:30::i;:::-;-1:-1:-1;108587:29:0;:12;108604:7;108613:2;108587:16;:29::i;:::-;-1:-1:-1;108634:33:0;;108659:7;;-1:-1:-1;;;;;108634:33:0;;;108651:1;;108634:33;;108651:1;;108634:33;108271:404;;:::o;125690:290::-;-1:-1:-1;;;;;125814:14:0;;125779:13;125814:14;;;:8;:14;;;;;;-1:-1:-1;;;;;125814:14:0;125843:11;125839:134;;-1:-1:-1;125898:11:0;:13;;;-1:-1:-1;;;;;;;;125898:13:0;;;;;;;;;;;;-1:-1:-1;;;;;125898:13:0;;;;;;;;;;-1:-1:-1;;;;;125871:14:0;;;-1:-1:-1;125871:14:0;;;:8;:14;;;;;;;;:41;;-1:-1:-1;;125871:41:0;;;;;125927:24;;;:16;:24;;;;;;:34;;;;;;;-1:-1:-1;;;;;;125927:34:0;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;125927:34:0;-1:-1:-1;;;;125927:34:0;;;;;;;;;;;;;;;;;;;;125690:290;;;;:::o;49272:242::-;49372:13;49414:44;49441:7;49450;49414:26;:44::i;:::-;49398:61;-1:-1:-1;49478:10:0;-1:-1:-1;;;;;49478:27:0;;;49470:36;;;;;59531:680;59684:4;-1:-1:-1;;;;;59675:13:0;:5;-1:-1:-1;;;;;59675:13:0;;:47;;;;;59717:5;59692:21;:30;;59675:47;59671:533;;;59745:4;-1:-1:-1;;;;;59739:19:0;;59766:5;59739:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;59824:38:0;;-1:-1:-1;;;59824:38:0;;-1:-1:-1;;;;;59830:4:0;59824:20;;-1:-1:-1;59824:20:0;;-1:-1:-1;59824:38:0;;-1:-1:-1;59845:9:0;;59856:5;;59824:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;59671:533;;;-1:-1:-1;;;;;59884:22:0;;59901:4;59884:22;59880:324;;;60015:52;60043:5;60050:9;60061:5;60015:27;:52::i;:::-;59880:324;;;60129:63;60161:5;60168;60175:9;60186:5;60129:31;:63::i;105771:272::-;105885:28;105895:4;105901:2;105905:7;105885:9;:28::i;:::-;105932:48;105955:4;105961:2;105965:7;105974:5;105932:22;:48::i;:::-;105924:111;;;;-1:-1:-1;;;105924:111:0;;;;;;;:::i;56777:326::-;56896:12;56910:17;56931:5;-1:-1:-1;;;;;56931:10:0;56965:24;;;56991:2;56995:5;56942:59;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;56942:59:0;;;;;;;;;;;;;;-1:-1:-1;;;;;56942:59:0;-1:-1:-1;;;;;;56942:59:0;;;;;;;;;;56931:71;;;;56942:59;56931:71;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56895:107;;;;57021:7;:57;;;;-1:-1:-1;57033:11:0;;:16;;:44;;;57064:4;57053:24;;;;;;;;;;;;:::i;:::-;57013:82;;;;-1:-1:-1;;;57013:82:0;;;;;;;:::i;92853:151::-;92937:4;92961:35;92971:3;92991;92961:9;:35::i;89671:110::-;89754:19;;89671:110::o;21788:2309::-;21851:20;21884:15;21909:1;21902:4;:8;;;:57;;21953:4;21946:12;;21902:57;;;21929:4;21922:12;;21921:13;;21902:57;21884:75;-1:-1:-1;21607:9:0;21978:28;;;21970:42;;;;-1:-1:-1;;;21970:42:0;;;;;;;:::i;:::-;22025:13;22051:3;22041:13;;:93;;-1:-1:-1;;;22041:93:0;;;22062:34;22041:93;22025:109;;;-1:-1:-1;22159:3:0;22149:13;;:18;22145:83;;22186:34;22178:42;22225:3;22177:51;22145:83;22253:3;22243:13;;:18;22239:83;;22280:34;22272:42;22319:3;22271:51;22239:83;22347:3;22337:13;;:18;22333:83;;22374:34;22366:42;22413:3;22365:51;22333:83;22441:4;22431:14;;:19;22427:84;;22469:34;22461:42;22508:3;22460:51;22427:84;22536:4;22526:14;;:19;22522:84;;22564:34;22556:42;22603:3;22555:51;22522:84;22631:4;22621:14;;:19;22617:84;;22659:34;22651:42;22698:3;22650:51;22617:84;22726:4;22716:14;;:19;22712:84;;22754:34;22746:42;22793:3;22745:51;22712:84;22821:5;22811:15;;:20;22807:85;;22850:34;22842:42;22889:3;22841:51;22807:85;22917:5;22907:15;;:20;22903:85;;22946:34;22938:42;22985:3;22937:51;22903:85;23013:5;23003:15;;:20;22999:85;;23042:34;23034:42;23081:3;23033:51;22999:85;23109:5;23099:15;;:20;23095:85;;23138:34;23130:42;23177:3;23129:51;23095:85;23205:6;23195:16;;:21;23191:86;;23235:34;23227:42;23274:3;23226:51;23191:86;23302:6;23292:16;;:21;23288:86;;23332:34;23324:42;23371:3;23323:51;23288:86;23399:6;23389:16;;:21;23385:86;;23429:34;23421:42;23468:3;23420:51;23385:86;23496:6;23486:16;;:21;23482:86;;23526:34;23518:42;23565:3;23517:51;23482:86;23593:7;23583:17;;:22;23579:86;;23624:33;23616:41;23662:3;23615:50;23579:86;23690:7;23680:17;;:22;23676:85;;23721:32;23713:40;23758:3;23712:49;23676:85;23786:7;23776:17;;:22;23772:83;;23817:30;23809:38;23852:3;23808:47;23772:83;23880:7;23870:17;;:22;23866:78;;23911:25;23903:33;23941:3;23902:42;23866:78;23968:1;23961:4;:8;;;23957:47;;;23999:5;-1:-1:-1;;23979:25:0;;;;;;23971:33;;23957:47;24066:7;24057:5;:17;:22;:30;;24086:1;24057:30;;;24082:1;24057:30;24040:48;;24050:2;24041:5;:11;;24040:48;24017:72;;21788:2309;;;;;:::o;50627:920::-;50836:17;50886:13;-1:-1:-1;;;;;50870:29:0;:13;-1:-1:-1;;;;;50870:29:0;;50866:98;;;50935:13;;50950;50866:98;50997:13;-1:-1:-1;;;;;50981:29:0;:12;-1:-1:-1;;;;;50981:29:0;;50977:563;;51039:61;51062:13;51077;51092:7;51039:22;:61::i;:::-;51027:73;;50977:563;;;51137:13;-1:-1:-1;;;;;51122:28:0;:12;-1:-1:-1;;;;;51122:28:0;;51118:422;;;51167:18;51188:60;51211:12;51225:13;51240:7;51188:22;:60::i;:::-;51167:81;;51263:18;51284:60;51307:13;51322:12;51336:7;51284:22;:60::i;:::-;51263:81;;51386:10;-1:-1:-1;;;;;51373:23:0;:10;-1:-1:-1;;;;;51373:23:0;;:49;;51412:10;51373:49;;;51399:10;51373:49;51361:61;;51118:422;;;;;51467:61;51490:13;51505;51520:7;51467:22;:61::i;:::-;51455:73;50627:920;-1:-1:-1;;;;;;50627:920:0:o;83978:137::-;84048:4;84072:35;84080:3;84100:5;84072:7;:35::i;83671:131::-;83738:4;83762:32;83767:3;83787:5;83762:4;:32::i;92276:185::-;92365:4;92389:64;92394:3;92414;-1:-1:-1;;;;;92428:23:0;;92389:4;:64::i;79929:204::-;80024:18;;79996:7;;80024:26;-1:-1:-1;80016:73:0;;;;-1:-1:-1;;;80016:73:0;;;;;;;:::i;:::-;80107:3;:11;;80119:5;80107:18;;;;;;;;;;;;;;;;80100:25;;79929:204;;;;:::o;92627:142::-;92704:4;92728:33;92736:3;92756;92728:7;:33::i;90136:279::-;90240:19;;90203:7;;;;90240:27;-1:-1:-1;90232:74:0;;;;-1:-1:-1;;;90232:74:0;;;;;;;:::i;:::-;90319:22;90344:3;:12;;90357:5;90344:19;;;;;;;;;;;;;;;;;;90319:44;;90382:5;:10;;;90394:5;:12;;;90374:33;;;;;90136:279;;;;;:::o;91633:319::-;91727:7;91766:17;;;:12;;;:17;;;;;;91817:12;91802:13;91794:36;;;;-1:-1:-1;;;91794:36:0;;;;;;;;:::i;:::-;;91884:3;:12;;91908:1;91897:8;:12;91884:26;;;;;;;;;;;;;;;;;;:33;;;91877:40;;;91633:319;;;;;:::o;56388:381::-;56534:12;56548:17;56582:5;-1:-1:-1;;;;;56582:10:0;56616:28;;;56646:4;56652:2;56656:5;56593:69;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;56593:69:0;;;;;;;;;;;;;;-1:-1:-1;;;;;56593:69:0;-1:-1:-1;;;;;;56593:69:0;;;;;;;;;;56582:81;;;;56593:69;56582:81;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56533:130;;;;56682:7;:57;;;;-1:-1:-1;56694:11:0;;:16;;:44;;;56725:4;56714:24;;;;;;;;;;;;:::i;:::-;56674:87;;;;-1:-1:-1;;;56674:87:0;;;;;;;:::i;111651:604::-;111772:4;111799:15;:2;-1:-1:-1;;;;;111799:13:0;;:15::i;:::-;111794:60;;-1:-1:-1;111838:4:0;111831:11;;111794:60;111864:23;111890:252;-1:-1:-1;;;112003:12:0;:10;:12::i;:::-;112030:4;112049:7;112071:5;111906:181;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;111906:181:0;;;;;;;-1:-1:-1;;;;;111906:181:0;;;;;;;;;;;111890:252;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;111890:15:0;;;:252;:15;:252::i;:::-;111864:278;;112153:13;112180:10;112169:32;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;112220:26:0;-1:-1:-1;;;112220:26:0;;-1:-1:-1;;;111651:604:0;;;;;;:::o;89451:125::-;89522:4;89546:17;;;:12;;;;;:17;;;;;;:22;;;89451:125::o;49752:476::-;49904:17;49954:13;-1:-1:-1;;;;;49938:29:0;:13;-1:-1:-1;;;;;49938:29:0;;49934:98;;;50003:13;;50018;49934:98;50043:20;50066:56;50082:13;-1:-1:-1;;;;;50066:56:0;50097:13;-1:-1:-1;;;;;50066:56:0;-1:-1:-1;;;50066:15:0;:56::i;:::-;50043:79;;50140:80;50150:69;50166:7;50175:12;50205:13;50189;:29;-1:-1:-1;;;;;50150:69:0;:15;:69::i;:::-;50140:9;:80::i;50236:383::-;50388:17;50438:13;-1:-1:-1;;;;;50422:29:0;:13;-1:-1:-1;;;;;50422:29:0;;50418:98;;;50487:13;;50502;50418:98;50534:77;50544:66;50560:7;-1:-1:-1;;;50596:13:0;50580;:29;-1:-1:-1;;;;;50544:66:0;:15;:66::i;77631:1544::-;77697:4;77836:19;;;:12;;;:19;;;;;;77872:15;;77868:1300;;78307:18;;-1:-1:-1;;78258:14:0;;;;78307:22;;;;78234:21;;78307:3;;:22;;78594;;;;;;;;;;;;;;78574:42;;78740:9;78711:3;:11;;78723:13;78711:26;;;;;;;;;;;;;;;;;;;:38;;;;78817:23;;;78859:1;78817:12;;;:23;;;;;;78843:17;;;78817:43;;78969:17;;78817:3;;78969:17;;;;;;;;;;;;;;;;;;;;;;79064:3;:12;;:19;79077:5;79064:19;;;;;;;;;;;79057:26;;;79107:4;79100:11;;;;;;;;77868:1300;79151:5;79144:12;;;;;77041:414;77104:4;77126:21;77136:3;77141:5;77126:9;:21::i;:::-;77121:327;;-1:-1:-1;77164:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;77347:18;;77325:19;;;:12;;;:19;;;;;;:40;;;;77380:11;;77121:327;-1:-1:-1;77431:5:0;77424:12;;86951:692;87027:4;87162:17;;;:12;;;:17;;;;;;87196:13;87192:444;;-1:-1:-1;;87281:38:0;;;;;;;;;;;;;;;;;;87263:57;;;;;;;;:12;:57;;;;;;;;;;;;;;;;;;;;;;;;87478:19;;87458:17;;;:12;;;:17;;;;;;;:39;87512:11;;87192:444;87592:5;87556:3;:12;;87580:1;87569:8;:12;87556:26;;;;;;;;;;;;;;;;;;:33;;:41;;;;87619:5;87612:12;;;;;87818:1549;87882:4;88017:17;;;:12;;;:17;;;;;;88051:13;;88047:1313;;88483:19;;-1:-1:-1;;88436:12:0;;;;88483:23;;;;88412:21;;88483:3;;:23;;88780;;;;;;;;;;;;;;;;88751:52;;88928:9;88898:3;:12;;88911:13;88898:27;;;;;;;;;;;;;;;;:39;;:27;;;;;:39;;;;;;;;;;;;;;;89018:14;;89005:28;;:12;;;:28;;;;;89036:17;;;89005:48;;89162:18;;89005:3;;89162:18;;;;;;;;;;;;;;-1:-1:-1;;89162:18:0;;;;;;;;;;;;;;;;;;;;;89258:17;;;:12;;;:17;;;;;;89251:24;;;;89162:18;-1:-1:-1;89292:11:0;;-1:-1:-1;;;;89292:11:0;70986:195;71089:12;71121:52;71143:6;71151:4;71157:1;71160:12;71121:21;:52::i;49632:112::-;49734:1;-1:-1:-1;;;;;49714:21:0;;;;49706:30;;;;;72038:530;72165:12;72223:5;72198:21;:30;;72190:81;;;;-1:-1:-1;;;72190:81:0;;;;;;;:::i;:::-;72290:18;72301:6;72290:10;:18::i;:::-;72282:60;;;;-1:-1:-1;;;72282:60:0;;;;;;;:::i;:::-;72416:12;72430:23;72457:6;-1:-1:-1;;;;;72457:11:0;72477:5;72485:4;72457:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72415:75;;;;72508:52;72526:7;72535:10;72547:12;72508:17;:52::i;:::-;72501:59;72038:530;-1:-1:-1;;;;;;;72038:530:0:o;74578:742::-;74693:12;74722:7;74718:595;;;-1:-1:-1;74753:10:0;74746:17;;74718:595;74867:17;;:21;74863:439;;75130:10;75124:17;75191:15;75178:10;75174:2;75170:19;75163:44;75078:148;75273:12;75266:20;;-1:-1:-1;;;75266:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::o;:::-;;;;;;;;;;;;;;;;;;:::o;14:138:1:-;84:20;;113:33;84:20;113:33;:::i;157:142::-;238:13;;260:33;238:13;260:33;:::i;304:138::-;383:13;;405:31;383:13;405:31;:::i;447:142::-;528:13;;550:33;528:13;550:33;:::i;594:165::-;674:13;;727:6;716:18;;706:29;;696:2;;749:1;746;739:12;764:140;844:13;;866:32;844:13;866:32;:::i;909:259::-;;1021:2;1009:9;1000:7;996:23;992:32;989:2;;;1042:6;1034;1027:22;989:2;1086:9;1073:23;1105:33;1132:5;1105:33;:::i;1173:263::-;;1296:2;1284:9;1275:7;1271:23;1267:32;1264:2;;;1317:6;1309;1302:22;1264:2;1354:9;1348:16;1373:33;1400:5;1373:33;:::i;1441:402::-;;;1570:2;1558:9;1549:7;1545:23;1541:32;1538:2;;;1591:6;1583;1576:22;1538:2;1635:9;1622:23;1654:33;1681:5;1654:33;:::i;:::-;1706:5;-1:-1:-1;1763:2:1;1748:18;;1735:32;1776:35;1735:32;1776:35;:::i;:::-;1830:7;1820:17;;;1528:315;;;;;:::o;1848:687::-;;;;;2010:3;1998:9;1989:7;1985:23;1981:33;1978:2;;;2032:6;2024;2017:22;1978:2;2076:9;2063:23;2095:33;2122:5;2095:33;:::i;:::-;2147:5;-1:-1:-1;2204:2:1;2189:18;;2176:32;2217:35;2176:32;2217:35;:::i;:::-;2271:7;-1:-1:-1;2330:2:1;2315:18;;2302:32;2343:35;2302:32;2343:35;:::i;:::-;2397:7;-1:-1:-1;2456:2:1;2441:18;;2428:32;2469:34;2428:32;2469:34;:::i;:::-;1968:567;;;;-1:-1:-1;1968:567:1;;-1:-1:-1;;1968:567:1:o;2540:687::-;;;;;2702:3;2690:9;2681:7;2677:23;2673:33;2670:2;;;2724:6;2716;2709:22;2670:2;2768:9;2755:23;2787:33;2814:5;2787:33;:::i;:::-;2839:5;-1:-1:-1;2896:2:1;2881:18;;2868:32;2909:35;2868:32;2909:35;:::i;:::-;2963:7;-1:-1:-1;3022:2:1;3007:18;;2994:32;3035:34;2994:32;3035:34;:::i;:::-;3088:7;-1:-1:-1;3147:2:1;3132:18;;3119:32;3160:35;3119:32;3160:35;:::i;3232:470::-;;;;3378:2;3366:9;3357:7;3353:23;3349:32;3346:2;;;3399:6;3391;3384:22;3346:2;3443:9;3430:23;3462:33;3489:5;3462:33;:::i;:::-;3514:5;-1:-1:-1;3571:2:1;3556:18;;3543:32;3584:35;3543:32;3584:35;:::i;:::-;3336:366;;3638:7;;-1:-1:-1;;;3692:2:1;3677:18;;;;3664:32;;3336:366::o;3707:1066::-;;;;;3879:3;3867:9;3858:7;3854:23;3850:33;3847:2;;;3901:6;3893;3886:22;3847:2;3945:9;3932:23;3964:33;3991:5;3964:33;:::i;:::-;4016:5;-1:-1:-1;4073:2:1;4058:18;;4045:32;4086:35;4045:32;4086:35;:::i;:::-;4140:7;-1:-1:-1;4194:2:1;4179:18;;4166:32;;-1:-1:-1;4249:2:1;4234:18;;4221:32;4276:18;4265:30;;4262:2;;;4313:6;4305;4298:22;4262:2;4341:22;;4394:4;4386:13;;4382:27;-1:-1:-1;4372:2:1;;4428:6;4420;4413:22;4372:2;4469;4456:16;4494:49;4509:33;4539:2;4509:33;:::i;:::-;4494:49;:::i;:::-;4566:2;4559:5;4552:17;4606:7;4601:2;4596;4592;4588:11;4584:20;4581:33;4578:2;;;4632:6;4624;4617:22;4578:2;4692;4687;4683;4679:11;4674:2;4667:5;4663:14;4650:45;4715:14;;;4731:2;4711:23;4704:39;;;;-1:-1:-1;3837:936:1;;;;-1:-1:-1;3837:936:1;-1:-1:-1;3837:936:1:o;4778:396::-;;;4904:2;4892:9;4883:7;4879:23;4875:32;4872:2;;;4925:6;4917;4910:22;4872:2;4969:9;4956:23;4988:33;5015:5;4988:33;:::i;:::-;5040:5;-1:-1:-1;5097:2:1;5082:18;;5069:32;5110;5069;5110;:::i;5179:327::-;;;5308:2;5296:9;5287:7;5283:23;5279:32;5276:2;;;5329:6;5321;5314:22;5276:2;5373:9;5360:23;5392:33;5419:5;5392:33;:::i;:::-;5444:5;5496:2;5481:18;;;;5468:32;;-1:-1:-1;;;5266:240:1:o;5511:470::-;;;;5657:2;5645:9;5636:7;5632:23;5628:32;5625:2;;;5678:6;5670;5663:22;5625:2;5722:9;5709:23;5741:33;5768:5;5741:33;:::i;:::-;5793:5;-1:-1:-1;5845:2:1;5830:18;;5817:32;;-1:-1:-1;5901:2:1;5886:18;;5873:32;5914:35;5873:32;5914:35;:::i;:::-;5968:7;5958:17;;;5615:366;;;;;:::o;5986:673::-;;;;;;;6181:3;6169:9;6160:7;6156:23;6152:33;6149:2;;;6203:6;6195;6188:22;6149:2;6247:9;6234:23;6266:33;6293:5;6266:33;:::i;:::-;6318:5;-1:-1:-1;6370:2:1;6355:18;;6342:32;;-1:-1:-1;6421:2:1;6406:18;;6393:32;;-1:-1:-1;6477:2:1;6462:18;;6449:32;6490:33;6449:32;6490:33;:::i;:::-;6139:520;;;;-1:-1:-1;6139:520:1;;6596:3;6581:19;;6568:33;;6648:3;6633:19;;;6620:33;;-1:-1:-1;6139:520:1;-1:-1:-1;;6139:520:1:o;6664:677::-;;;6822:2;6810:9;6801:7;6797:23;6793:32;6790:2;;;6843:6;6835;6828:22;6790:2;6888:9;6875:23;6917:18;6958:2;6950:6;6947:14;6944:2;;;6979:6;6971;6964:22;6944:2;7022:6;7011:9;7007:22;6997:32;;7067:7;7060:4;7056:2;7052:13;7048:27;7038:2;;7094:6;7086;7079:22;7038:2;7139;7126:16;7165:2;7157:6;7154:14;7151:2;;;7186:6;7178;7171:22;7151:2;7245:7;7240:2;7234;7226:6;7222:15;7218:2;7214:24;7210:33;7207:46;7204:2;;;7271:6;7263;7256:22;7204:2;7307;7299:11;;;;;7329:6;;-1:-1:-1;6780:561:1;;-1:-1:-1;;;;6780:561:1:o;7346:257::-;;7466:2;7454:9;7445:7;7441:23;7437:32;7434:2;;;7487:6;7479;7472:22;7434:2;7524:9;7518:16;7543:30;7567:5;7543:30;:::i;7608:257::-;;7719:2;7707:9;7698:7;7694:23;7690:32;7687:2;;;7740:6;7732;7725:22;7687:2;7784:9;7771:23;7803:32;7829:5;7803:32;:::i;7870:261::-;;7992:2;7980:9;7971:7;7967:23;7963:32;7960:2;;;8013:6;8005;7998:22;7960:2;8050:9;8044:16;8069:32;8095:5;8069:32;:::i;8488:255::-;;8598:2;8586:9;8577:7;8573:23;8569:32;8566:2;;;8619:6;8611;8604:22;8566:2;8663:9;8650:23;8682:31;8707:5;8682:31;:::i;8748:676::-;;8881:2;8869:9;8860:7;8856:23;8852:32;8849:2;;;8902:6;8894;8887:22;8849:2;8940:9;8934:16;8973:18;8965:6;8962:30;8959:2;;;9010:6;9002;8995:22;8959:2;9038:22;;9091:4;9083:13;;9079:27;-1:-1:-1;9069:2:1;;9125:6;9117;9110:22;9069:2;9159;9153:9;9184:49;9199:33;9229:2;9199:33;:::i;9184:49::-;9256:2;9249:5;9242:17;9296:7;9291:2;9286;9282;9278:11;9274:20;9271:33;9268:2;;;9322:6;9314;9307:22;9268:2;9340:54;9391:2;9386;9379:5;9375:14;9370:2;9366;9362:11;9340:54;:::i;9429:210::-;;9574:3;9562:9;9553:7;9549:23;9545:33;9542:2;;;9596:6;9588;9581:22;9542:2;-1:-1:-1;9624:9:1;9532:107;-1:-1:-1;9532:107:1:o;9644:220::-;;9799:3;9787:9;9778:7;9774:23;9770:33;9767:2;;;9821:6;9813;9806:22;9869:220;;10024:3;10012:9;10003:7;9999:23;9995:33;9992:2;;;10046:6;10038;10031:22;10094:1179;;10231:9;10222:7;10218:23;10261:3;10257:2;10253:12;10250:2;;;10283:6;10275;10268:22;10250:2;10321:4;10315:11;10365:4;10357:6;10353:17;10389:18;10457:6;10445:10;10442:22;10437:2;10425:10;10422:18;10419:46;10416:2;;;10468:9;10416:2;10501:10;10495:4;10488:24;10532:4;10528:2;10524:13;10521:2;;;10555:6;10547;10540:22;10521:2;10605:3;10597:6;10593:16;10573:36;;10663:10;10649:12;10646:28;10641:2;10627:12;10624:20;10621:54;10618:2;;;10678:9;10618:2;;10711:12;10705:4;10698:26;10759:9;10746:23;10733:36;;10778:33;10805:5;10778:33;:::i;:::-;10820:25;;;10897:2;10882:18;;10869:32;;10910:35;10869:32;10910:35;:::i;:::-;10980:7;10973:4;10965:6;10961:17;10954:34;11040:4;11029:9;11025:20;11012:34;10997:49;;11055:34;11081:7;11055:34;:::i;:::-;11117:3;11105:16;;11098:33;;;11140:26;;11199:42;11235:4;11220:20;;11199:42;:::i;:::-;11194:2;11182:15;;11175:67;11186:6;10198:1075;-1:-1:-1;;;;10198:1075:1:o;11278:207::-;;11420:3;11408:9;11399:7;11395:23;11391:33;11388:2;;;11442:6;11434;11427:22;11490:259;;11602:2;11590:9;11581:7;11577:23;11573:32;11570:2;;;11623:6;11615;11608:22;11570:2;11667:9;11654:23;11686:33;11713:5;11686:33;:::i;11754:399::-;;;11894:2;11882:9;11873:7;11869:23;11865:32;11862:2;;;11915:6;11907;11900:22;11862:2;11952:9;11946:16;11971:33;11998:5;11971:33;:::i;:::-;12073:2;12058:18;;12052:25;12023:5;;-1:-1:-1;12086:35:1;12052:25;12086:35;:::i;12158:659::-;;;;;;12349:3;12337:9;12328:7;12324:23;12320:33;12317:2;;;12371:6;12363;12356:22;12317:2;12408:9;12402:16;12427:33;12454:5;12427:33;:::i;:::-;12479:5;12469:15;;;12524:2;12513:9;12509:18;12503:25;12493:35;;12568:2;12557:9;12553:18;12547:25;12537:35;;12617:2;12606:9;12602:18;12596:25;12630:35;12657:7;12630:35;:::i;:::-;12736:3;12721:19;;12715:26;12684:7;;-1:-1:-1;12750:35:1;12715:26;12750:35;:::i;:::-;12804:7;12794:17;;;12307:510;;;;;;;;:::o;12822:916::-;;;;;;;;13037:3;13025:9;13016:7;13012:23;13008:33;13005:2;;;13059:6;13051;13044:22;13005:2;13096:9;13090:16;13115:33;13142:5;13115:33;:::i;:::-;13217:2;13202:18;;13196:25;13167:5;;-1:-1:-1;13230:33:1;13196:25;13230:33;:::i;:::-;13282:7;-1:-1:-1;13308:50:1;13354:2;13339:18;;13308:50;:::i;:::-;13298:60;;13377:50;13423:2;13412:9;13408:18;13377:50;:::i;:::-;13367:60;;13446:51;13492:3;13481:9;13477:19;13446:51;:::i;:::-;13436:61;;13542:3;13531:9;13527:19;13521:26;13556:33;13581:7;13556:33;:::i;:::-;13660:3;13645:19;;13639:26;13608:7;;-1:-1:-1;13674:32:1;13639:26;13674:32;:::i;:::-;13725:7;13715:17;;;12995:743;;;;;;;;;;:::o;13743:257::-;;13854:2;13842:9;13833:7;13829:23;13825:32;13822:2;;;13875:6;13867;13860:22;13822:2;13919:9;13906:23;13938:32;13964:5;13938:32;:::i;14005:190::-;;14117:2;14105:9;14096:7;14092:23;14088:32;14085:2;;;14138:6;14130;14123:22;14085:2;-1:-1:-1;14166:23:1;;14075:120;-1:-1:-1;14075:120:1:o;14200:194::-;;14323:2;14311:9;14302:7;14298:23;14294:32;14291:2;;;14344:6;14336;14329:22;14291:2;-1:-1:-1;14372:16:1;;14281:113;-1:-1:-1;14281:113:1:o;14399:327::-;;;14528:2;14516:9;14507:7;14503:23;14499:32;14496:2;;;14549:6;14541;14534:22;14496:2;14590:9;14577:23;14567:33;;14650:2;14639:9;14635:18;14622:32;14663:33;14690:5;14663:33;:::i;14731:255::-;;;14871:2;14859:9;14850:7;14846:23;14842:32;14839:2;;;14892:6;14884;14877:22;14839:2;-1:-1:-1;;14920:16:1;;14976:2;14961:18;;;14955:25;14920:16;;14955:25;;-1:-1:-1;14829:157:1:o;14991:777::-;;;;;15156:2;15144:9;15135:7;15131:23;15127:32;15124:2;;;15177:6;15169;15162:22;15124:2;15218:9;15205:23;15195:33;;15275:2;15264:9;15260:18;15247:32;15237:42;;15330:2;15319:9;15315:18;15302:32;15353:18;15394:2;15386:6;15383:14;15380:2;;;15415:6;15407;15400:22;15380:2;15458:6;15447:9;15443:22;15433:32;;15503:7;15496:4;15492:2;15488:13;15484:27;15474:2;;15530:6;15522;15515:22;15474:2;15575;15562:16;15601:2;15593:6;15590:14;15587:2;;;15622:6;15614;15607:22;15587:2;15672:7;15667:2;15658:6;15654:2;15650:15;15646:24;15643:37;15640:2;;;15698:6;15690;15683:22;15640:2;15114:654;;;;-1:-1:-1;;15734:2:1;15726:11;;-1:-1:-1;;;15114:654:1:o;15773:1224::-;;;;;;;;;;;;;16079:3;16067:9;16058:7;16054:23;16050:33;16047:2;;;16101:6;16093;16086:22;16047:2;16138:9;16132:16;-1:-1:-1;;;;;16181:5:1;16177:38;16170:5;16167:49;16157:2;;16235:6;16227;16220:22;16157:2;16263:5;-1:-1:-1;16287:51:1;16334:2;16319:18;;16287:51;:::i;:::-;16277:61;;16357:51;16404:2;16393:9;16389:18;16357:51;:::i;:::-;16347:61;;16427:51;16474:2;16463:9;16459:18;16427:51;:::i;:::-;16417:61;;16497:51;16543:3;16532:9;16528:19;16497:51;:::i;:::-;16487:61;;16567:50;16612:3;16601:9;16597:19;16567:50;:::i;:::-;16557:60;;16636:50;16681:3;16670:9;16666:19;16636:50;:::i;:::-;16626:60;;16705:52;16752:3;16741:9;16737:19;16705:52;:::i;:::-;16695:62;;16797:3;16786:9;16782:19;16776:26;16766:36;;16842:3;16831:9;16827:19;16821:26;16811:36;;16867:52;16914:3;16903:9;16899:19;16867:52;:::i;:::-;16856:63;;16939:52;16986:3;16975:9;16971:19;16939:52;:::i;:::-;16928:63;;16037:960;;;;;;;;;;;;;;:::o;17002:259::-;;17083:5;17077:12;17110:6;17105:3;17098:19;17126:63;17182:6;17175:4;17170:3;17166:14;17159:4;17152:5;17148:16;17126:63;:::i;:::-;17243:2;17222:15;-1:-1:-1;;17218:29:1;17209:39;;;;17250:4;17205:50;;17053:208;-1:-1:-1;;17053:208:1:o;17266:93::-;17343:1;17332:20;17320:33;;17310:49::o;17364:121::-;-1:-1:-1;;;;;17432:46:1;17420:59;;17410:75::o;17490:401::-;17687:2;17683:15;;;;-1:-1:-1;;;;;;17679:53:1;17667:66;;17783:1;17772:21;;;17767:3;17763:31;;;17758:2;17749:12;;17742:53;17834:21;;17825:31;;17820:2;17811:12;;17804:53;17882:2;17873:12;;17657:234::o;17896:338::-;18077:19;;;18121:2;18112:12;;18105:28;;;;18189:3;18167:16;-1:-1:-1;;;;;;18163:36:1;18158:2;18149:12;;18142:58;18225:2;18216:12;;18067:167::o;18239:273::-;;18422:6;18414;18409:3;18396:33;18448:16;;18473:15;;;18448:16;18386:126;-1:-1:-1;18386:126:1:o;18517:274::-;;18684:6;18678:13;18700:53;18746:6;18741:3;18734:4;18726:6;18722:17;18700:53;:::i;:::-;18769:16;;;;;18654:137;-1:-1:-1;;18654:137:1:o;18796:392::-;-1:-1:-1;;;19054:27:1;;19106:1;19097:11;;19090:27;;;;19142:2;19133:12;;19126:28;19179:2;19170:12;;19044:144::o;19193:503::-;-1:-1:-1;;;;;;19479:26:1;;19542:2;19538:15;;;;-1:-1:-1;;;;;;19534:53:1;19530:1;19521:11;;19514:74;19613:2;19604:12;;19597:28;;;;19650:2;19641:12;;19634:28;19687:2;19678:12;;19469:227::o;19701:203::-;-1:-1:-1;;;;;19865:32:1;;;;19847:51;;19835:2;19820:18;;19802:102::o;20125:312::-;-1:-1:-1;;;;;20363:15:1;;;20345:34;;20415:15;;20410:2;20395:18;;20388:43;20295:2;20280:18;;20262:175::o;20442:506::-;-1:-1:-1;;;;;20727:15:1;;;20709:34;;20779:15;;20774:2;20759:18;;20752:43;20826:2;20811:18;;20804:34;;;20874:3;20869:2;20854:18;;20847:31;;;20442:506;;20895:47;;20922:19;;20914:6;20895:47;:::i;20953:760::-;-1:-1:-1;;;;;21350:15:1;;;21332:34;;21402:15;;;;21397:2;21382:18;;21375:43;21449:2;21434:18;;21427:34;;;;21492:2;21477:18;;21470:34;;;;21548:14;21541:22;21535:3;21520:19;;21513:51;21613:4;21601:17;21312:3;21580:19;;21573:46;21650:3;21635:19;;21628:35;21694:3;21679:19;;21672:35;;;;21281:3;21266:19;;21248:465::o;21718:678::-;-1:-1:-1;;;;;22093:15:1;;;22075:34;;22145:15;;;;22140:2;22125:18;;22118:43;22192:2;22177:18;;22170:34;;;;22235:2;22220:18;;22213:34;;;;22296:4;22284:17;22278:3;22263:19;;22256:46;22055:3;22318:19;;22311:35;22377:3;22362:19;;22355:35;;;;22024:3;22009:19;;21991:405::o;22401:388::-;-1:-1:-1;;;;;22657:15:1;;;22639:34;;22709:15;;;;22704:2;22689:18;;22682:43;22773:8;22761:21;;;22756:2;22741:18;;22734:49;22589:2;22574:18;;22556:233::o;22794:375::-;-1:-1:-1;;;;;23052:15:1;;;23034:34;;23104:15;;;;23099:2;23084:18;;23077:43;23151:2;23136:18;;23129:34;;;;22984:2;22969:18;;22951:218::o;23174:595::-;;23454:1;23450;23445:3;23441:11;23437:19;23429:6;23425:32;23414:9;23407:51;23508:6;23505:1;23494:21;23489:2;23478:9;23474:18;23467:49;23566:6;23563:1;23552:21;23547:2;23536:9;23532:18;23525:49;-1:-1:-1;;;;;23614:6:1;23610:47;23605:2;23594:9;23590:18;23583:75;23695:3;23689;23678:9;23674:19;23667:32;23716:47;23758:3;23747:9;23743:19;23735:6;23716:47;:::i;23774:582::-;-1:-1:-1;;;;;24043:32:1;;;;24025:51;;24123:1;24112:21;;;24107:2;24092:18;;24085:49;24170:21;;;;24165:2;24150:18;;24143:49;-1:-1:-1;;;;;24281:15:1;;;24276:2;24261:18;;24254:43;24334:15;24328:3;24313:19;;24306:44;24012:3;23997:19;;23979:377::o;24361:416::-;-1:-1:-1;;;;;24581:32:1;;;;24563:51;;-1:-1:-1;;;;;24703:15:1;;;24698:2;24683:18;;24676:43;24755:15;24750:2;24735:18;;24728:43;24551:2;24536:18;;24518:259::o;24782:274::-;-1:-1:-1;;;;;24974:32:1;;;;24956:51;;25038:2;25023:18;;25016:34;24944:2;24929:18;;24911:145::o;25061:806::-;;25250:2;25290;25279:9;25275:18;25320:2;25309:9;25302:21;25343:6;25378;25372:13;25409:6;25401;25394:22;25447:2;25436:9;25432:18;25425:25;;25510:2;25504;25496:6;25492:15;25481:9;25477:31;25473:40;25459:54;;25548:2;25540:6;25536:15;25569:4;25582:256;25596:6;25593:1;25590:13;25582:256;;;25689:2;25685:7;25673:9;25665:6;25661:22;25657:36;25652:3;25645:49;25717:41;25751:6;25742;25736:13;25717:41;:::i;:::-;25707:51;-1:-1:-1;25816:12:1;;;;25781:15;;;;25618:1;25611:9;25582:256;;;-1:-1:-1;25855:6:1;;25230:637;-1:-1:-1;;;;;;;25230:637:1:o;25872:187::-;26037:14;;26030:22;26012:41;;26000:2;25985:18;;25967:92::o;26064:177::-;26210:25;;;26198:2;26183:18;;26165:76::o;26246:489::-;26505:25;;;-1:-1:-1;;;;;26566:32:1;;;;26561:2;26546:18;;26539:60;26630:2;26615:18;;26608:34;;;;26673:2;26658:18;;26651:34;26716:3;26701:19;;26694:35;26492:3;26477:19;;26459:276::o;26740:290::-;;26915:6;26904:9;26897:25;26958:2;26953;26942:9;26938:18;26931:30;26978:46;27020:2;27009:9;27005:18;26997:6;26978:46;:::i;27035:398::-;27262:25;;;27335:4;27323:17;;;;27318:2;27303:18;;27296:45;27372:2;27357:18;;27350:34;27415:2;27400:18;;27393:34;27249:3;27234:19;;27216:217::o;27438:497::-;-1:-1:-1;;;;;27696:32:1;;;;27678:51;;27776:1;27765:21;;;27760:2;27745:18;;27738:49;27823:21;;27818:2;27803:18;;27796:49;-1:-1:-1;;;;;27881:47:1;27876:2;27861:18;;27854:75;27665:3;27650:19;;27632:303::o;28246:390::-;28477:1;28466:21;;;28448:40;;28524:21;;;;28519:2;28504:18;;28497:49;-1:-1:-1;;;;;28582:47:1;;;28577:2;28562:18;;28555:75;28436:2;28421:18;;28403:233::o;29028:573::-;29371:25;;;29427:2;29412:18;;29405:34;;;;29470:2;29455:18;;29448:34;;;;29513:2;29498:18;;29491:34;-1:-1:-1;;;;;29562:32:1;29556:3;29541:19;;29534:61;29358:3;29343:19;;29325:276::o;29606:221::-;;29755:2;29744:9;29737:21;29775:46;29817:2;29806:9;29802:18;29794:6;29775:46;:::i;29832:398::-;30034:2;30016:21;;;30073:2;30053:18;;;30046:30;30112:34;30107:2;30092:18;;30085:62;-1:-1:-1;;;30178:2:1;30163:18;;30156:32;30220:3;30205:19;;30006:224::o;30235:336::-;30437:2;30419:21;;;30476:2;30456:18;;;30449:30;-1:-1:-1;;;30510:2:1;30495:18;;30488:42;30562:2;30547:18;;30409:162::o;30576:414::-;30778:2;30760:21;;;30817:2;30797:18;;;30790:30;30856:34;30851:2;30836:18;;30829:62;-1:-1:-1;;;30922:2:1;30907:18;;30900:48;30980:3;30965:19;;30750:240::o;30995:352::-;31197:2;31179:21;;;31236:2;31216:18;;;31209:30;31275;31270:2;31255:18;;31248:58;31338:2;31323:18;;31169:178::o;31352:342::-;31554:2;31536:21;;;31593:2;31573:18;;;31566:30;-1:-1:-1;;;31627:2:1;31612:18;;31605:48;31685:2;31670:18;;31526:168::o;31699:341::-;31901:2;31883:21;;;31940:2;31920:18;;;31913:30;-1:-1:-1;;;31974:2:1;31959:18;;31952:47;32031:2;32016:18;;31873:167::o;32045:340::-;32247:2;32229:21;;;32286:2;32266:18;;;32259:30;-1:-1:-1;;;32320:2:1;32305:18;;32298:46;32376:2;32361:18;;32219:166::o;32390:328::-;32592:2;32574:21;;;32631:1;32611:18;;;32604:29;-1:-1:-1;;;32664:2:1;32649:18;;32642:35;32709:2;32694:18;;32564:154::o;32723:403::-;32925:2;32907:21;;;32964:2;32944:18;;;32937:30;33003:34;32998:2;32983:18;;32976:62;-1:-1:-1;;;33069:2:1;33054:18;;33047:37;33116:3;33101:19;;32897:229::o;33131:400::-;33333:2;33315:21;;;33372:2;33352:18;;;33345:30;33411:34;33406:2;33391:18;;33384:62;-1:-1:-1;;;33477:2:1;33462:18;;33455:34;33521:3;33506:19;;33305:226::o;33536:349::-;33738:2;33720:21;;;33777:2;33757:18;;;33750:30;33816:27;33811:2;33796:18;;33789:55;33876:2;33861:18;;33710:175::o;33890:341::-;34092:2;34074:21;;;34131:2;34111:18;;;34104:30;-1:-1:-1;;;34165:2:1;34150:18;;34143:47;34222:2;34207:18;;34064:167::o;34236:338::-;34438:2;34420:21;;;34477:2;34457:18;;;34450:30;-1:-1:-1;;;34511:2:1;34496:18;;34489:44;34565:2;34550:18;;34410:164::o;34579:402::-;34781:2;34763:21;;;34820:2;34800:18;;;34793:30;34859:34;34854:2;34839:18;;34832:62;-1:-1:-1;;;34925:2:1;34910:18;;34903:36;34971:3;34956:19;;34753:228::o;34986:408::-;35188:2;35170:21;;;35227:2;35207:18;;;35200:30;35266:34;35261:2;35246:18;;35239:62;-1:-1:-1;;;35332:2:1;35317:18;;35310:42;35384:3;35369:19;;35160:234::o;35399:420::-;35601:2;35583:21;;;35640:2;35620:18;;;35613:30;35679:34;35674:2;35659:18;;35652:62;35750:26;35745:2;35730:18;;35723:54;35809:3;35794:19;;35573:246::o;35824:336::-;36026:2;36008:21;;;36065:2;36045:18;;;36038:30;-1:-1:-1;;;36099:2:1;36084:18;;36077:42;36151:2;36136:18;;35998:162::o;36165:406::-;36367:2;36349:21;;;36406:2;36386:18;;;36379:30;36445:34;36440:2;36425:18;;36418:62;-1:-1:-1;;;36511:2:1;36496:18;;36489:40;36561:3;36546:19;;36339:232::o;36576:324::-;36778:2;36760:21;;;36817:1;36797:18;;;36790:29;-1:-1:-1;;;36850:2:1;36835:18;;36828:31;36891:2;36876:18;;36750:150::o;36905:398::-;37107:2;37089:21;;;37146:2;37126:18;;;37119:30;37185:34;37180:2;37165:18;;37158:62;-1:-1:-1;;;37251:2:1;37236:18;;37229:32;37293:3;37278:19;;37079:224::o;37308:356::-;37510:2;37492:21;;;37529:18;;;37522:30;37588:34;37583:2;37568:18;;37561:62;37655:2;37640:18;;37482:182::o;37669:341::-;37871:2;37853:21;;;37910:2;37890:18;;;37883:30;-1:-1:-1;;;37944:2:1;37929:18;;37922:47;38001:2;37986:18;;37843:167::o;38015:408::-;38217:2;38199:21;;;38256:2;38236:18;;;38229:30;38295:34;38290:2;38275:18;;38268:62;-1:-1:-1;;;38361:2:1;38346:18;;38339:42;38413:3;38398:19;;38189:234::o;38428:336::-;38630:2;38612:21;;;38669:2;38649:18;;;38642:30;-1:-1:-1;;;38703:2:1;38688:18;;38681:42;38755:2;38740:18;;38602:162::o;38769:405::-;38971:2;38953:21;;;39010:2;38990:18;;;38983:30;39049:34;39044:2;39029:18;;39022:62;-1:-1:-1;;;39115:2:1;39100:18;;39093:39;39164:3;39149:19;;38943:231::o;39179:344::-;39381:2;39363:21;;;39420:2;39400:18;;;39393:30;-1:-1:-1;;;39454:2:1;39439:18;;39432:50;39514:2;39499:18;;39353:170::o;39528:340::-;39730:2;39712:21;;;39769:2;39749:18;;;39742:30;-1:-1:-1;;;39803:2:1;39788:18;;39781:46;39859:2;39844:18;;39702:166::o;39873:397::-;40075:2;40057:21;;;40114:2;40094:18;;;40087:30;40153:34;40148:2;40133:18;;40126:62;-1:-1:-1;;;40219:2:1;40204:18;;40197:31;40260:3;40245:19;;40047:223::o;40275:343::-;40477:2;40459:21;;;40516:2;40496:18;;;40489:30;-1:-1:-1;;;40550:2:1;40535:18;;40528:49;40609:2;40594:18;;40449:169::o;40623:413::-;40825:2;40807:21;;;40864:2;40844:18;;;40837:30;40903:34;40898:2;40883:18;;40876:62;-1:-1:-1;;;40969:2:1;40954:18;;40947:47;41026:3;41011:19;;40797:239::o;41041:353::-;41243:2;41225:21;;;41282:2;41262:18;;;41255:30;41321:31;41316:2;41301:18;;41294:59;41385:2;41370:18;;41215:179::o;41399:325::-;41601:2;41583:21;;;41640:1;41620:18;;;41613:29;-1:-1:-1;;;41673:2:1;41658:18;;41651:32;41715:2;41700:18;;41573:151::o;41729:331::-;41931:2;41913:21;;;41970:1;41950:18;;;41943:29;-1:-1:-1;;;42003:2:1;41988:18;;41981:38;42051:2;42036:18;;41903:157::o;42065:335::-;42267:2;42249:21;;;42306:2;42286:18;;;42279:30;-1:-1:-1;;;42340:2:1;42325:18;;42318:41;42391:2;42376:18;;42239:161::o;42405:542::-;42630:13;;42712:9;;-1:-1:-1;;;;;42708:18:1;;;42690:37;;42783:4;42775:13;;;42769:20;42765:29;;42743:20;;;42736:59;42851:4;42843:13;;;42837:20;42859:8;42833:35;42811:20;;;42804:65;;;;42917:17;;42911:24;42907:33;;;42900:4;42885:20;;42878:63;42607:3;42592:19;;42574:373::o;42952:360::-;-1:-1:-1;;;;;43172:47:1;;;;43154:66;;43251:2;43236:18;;43229:34;;;;43294:2;43279:18;;43272:34;43142:2;43127:18;;43109:203::o;43707:432::-;43938:25;;;-1:-1:-1;;;;;43999:47:1;;;;43994:2;43979:18;;43972:75;44078:2;44063:18;;44056:34;44121:2;44106:18;;44099:34;43925:3;43910:19;;43892:247::o;44144:248::-;44318:25;;;44374:2;44359:18;;44352:34;44306:2;44291:18;;44273:119::o;44397:1141::-;-1:-1:-1;;;;;44860:39:1;;44842:58;;-1:-1:-1;;;;;44974:15:1;;;44969:2;44954:18;;44947:43;45026:15;;;45021:2;45006:18;;44999:43;45078:15;;45073:2;45058:18;;45051:43;45143:8;45131:21;;45125:3;45110:19;;45103:50;45201:1;45190:21;;;44927:3;45169:19;;45162:50;44829:3;44814:19;;45221:47;45263:3;45248:19;;45240:6;45221:47;:::i;:::-;45277:49;45321:3;45310:9;45306:19;45298:6;45277:49;:::i;:::-;45363:6;45357:3;45346:9;45342:19;45335:35;45407:6;45401:3;45390:9;45386:19;45379:35;45423:50;45468:3;45457:9;45453:19;45444:7;45423:50;:::i;:::-;45482;45527:3;45516:9;45512:19;45503:7;45482:50;:::i;:::-;44796:742;;;;;;;;;;;;;;;:::o;45543:533::-;;;45686:11;45673:25;45780:2;45776:7;45765:8;45749:14;45745:29;45741:43;45721:18;45717:68;45707:2;;45802:4;45796;45789:18;45707:2;45832:33;;45884:20;;;-1:-1:-1;45927:18:1;45916:30;;45913:2;;;45962:4;45956;45949:18;45913:2;45998:4;45986:17;;-1:-1:-1;46029:14:1;46025:27;;;46015:38;;46012:2;;;46066:1;46063;46056:12;46081:242;46151:2;46145:9;46181:17;;;46228:18;46213:34;;46249:22;;;46210:62;46207:2;;;46275:9;46207:2;46302;46295:22;46125:198;;-1:-1:-1;46125:198:1:o;46328:181::-;;46411:18;46403:6;46400:30;46397:2;;;46433:9;46397:2;-1:-1:-1;46492:2:1;46469:17;-1:-1:-1;;46465:31:1;46498:4;46461:42;;46387:122::o;46514:258::-;46586:1;46596:113;46610:6;46607:1;46604:13;46596:113;;;46686:11;;;46680:18;46667:11;;;46660:39;46632:2;46625:10;46596:113;;;46727:6;46724:1;46721:13;46718:2;;;-1:-1:-1;;46762:1:1;46744:16;;46737:27;46567:205::o;46777:133::-;-1:-1:-1;;;;;46854:31:1;;46844:42;;46834:2;;46900:1;46897;46890:12;46915:120;47003:5;46996:13;46989:21;46982:5;46979:32;46969:2;;47025:1;47022;47015:12;47040:133;-1:-1:-1;;;;;;47116:32:1;;47106:43;;47096:2;;47163:1;47160;47153:12;47178:120;47267:5;47264:1;47253:20;47246:5;47243:31;47233:2;;47288:1;47285;47278:12;47303:148;-1:-1:-1;;;;;47384:5:1;47380:46;47373:5;47370:57;47360:2;;47441:1;47438;47431:12;47456:121;47543:8;47536:5;47532:20;47525:5;47522:31;47512:2;;47567:1;47564;47557:12;47582:116;47668:4;47661:5;47657:16;47650:5;47647:27;47637:2;;47688:1;47685;47678:12

Swarm Source

ipfs://3eb86b31045e7a3530f16e8daf37b597917243d29ca627024224c33ee77f655b
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.