ETH Price: $3,503.51 (+2.61%)
Gas: 5 Gwei

Contract

0x679780Ea3133C388E3c7efeb22e98a68Ccf99aFf
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Open Position201771122024-06-26 16:39:3523 days ago1719419975IN
0x679780Ea...8Ccf99aFf
1.26514569 ETH0.006871818.93972658
Open Position201770722024-06-26 16:31:2323 days ago1719419483IN
0x679780Ea...8Ccf99aFf
1.26514569 ETH0.0072544110.53876057
Activate Setup201680532024-06-25 10:18:4724 days ago1719310727IN
0x679780Ea...8Ccf99aFf
0 ETH0.000652384.34934766
Withdraw Liquidi...201605352024-06-24 9:05:3525 days ago1719219935IN
0x679780Ea...8Ccf99aFf
0 ETH0.004925117
Withdraw Liquidi...199426792024-05-24 22:19:5955 days ago1716589199IN
0x679780Ea...8Ccf99aFf
0 ETH0.004421846.41102829
Open Position195254972024-03-27 11:55:59114 days ago1711540559IN
0x679780Ea...8Ccf99aFf
9 ETH0.018705629.72682163
Withdraw Liquidi...194936032024-03-23 0:02:35118 days ago1711152155IN
0x679780Ea...8Ccf99aFf
0 ETH0.0135331819.84675475
Open Position194855262024-03-21 20:52:23119 days ago1711054343IN
0x679780Ea...8Ccf99aFf
5.85681603 ETH0.0251344239.41640881
Open Position194781562024-03-20 20:01:47121 days ago1710964907IN
0x679780Ea...8Ccf99aFf
6.1523964 ETH0.0335439442.07229865
Withdraw Liquidi...194747052024-03-20 8:23:59121 days ago1710923039IN
0x679780Ea...8Ccf99aFf
0 ETH0.0212768439
Withdraw Reward194746842024-03-20 8:19:47121 days ago1710922787IN
0x679780Ea...8Ccf99aFf
0 ETH0.0204578236
Withdraw Liquidi...191959382024-02-10 6:30:11160 days ago1707546611IN
0x679780Ea...8Ccf99aFf
0 ETH0.0200458530
Withdraw Reward191334272024-02-01 11:56:23169 days ago1706788583IN
0x679780Ea...8Ccf99aFf
0 ETH0.0130702723
Withdraw Liquidi...189943112024-01-13 0:11:59188 days ago1705104719IN
0x679780Ea...8Ccf99aFf
0 ETH0.013576120.14803633
Open Position189930172024-01-12 19:51:11189 days ago1705089071IN
0x679780Ea...8Ccf99aFf
5 ETH0.0120498719.14958815
Withdraw Reward189745232024-01-10 5:40:35191 days ago1704865235IN
0x679780Ea...8Ccf99aFf
0 ETH0.0144593524
Open Position189123512024-01-01 11:40:47200 days ago1704109247IN
0x679780Ea...8Ccf99aFf
3.47272813 ETH0.0067261110.17705332
Open Position189037702023-12-31 6:46:47201 days ago1704005207IN
0x679780Ea...8Ccf99aFf
5.75 ETH0.008005210.04380744
Withdraw Liquidi...188912272023-12-29 12:26:23203 days ago1703852783IN
0x679780Ea...8Ccf99aFf
0 ETH0.0089288122
Withdraw Reward188911052023-12-29 12:01:47203 days ago1703851307IN
0x679780Ea...8Ccf99aFf
0 ETH0.0113654620
Withdraw Liquidi...188227032023-12-19 21:35:47212 days ago1703021747IN
0x679780Ea...8Ccf99aFf
0 ETH0.0362123554.19429196
Withdraw Liquidi...188225192023-12-19 20:58:47212 days ago1703019527IN
0x679780Ea...8Ccf99aFf
0 ETH0.0087488246.90531665
Withdraw Liquidi...187379232023-12-08 0:19:11224 days ago1701994751IN
0x679780Ea...8Ccf99aFf
0 ETH0.0286432939.81935397
Open Position187262222023-12-06 8:54:35226 days ago1701852875IN
0x679780Ea...8Ccf99aFf
5.15041823 ETH0.0268774941.74755129
Withdraw Liquidi...185003552023-11-04 18:08:11258 days ago1699121291IN
0x679780Ea...8Ccf99aFf
0 ETH0.0135004119.59382362
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
201771122024-06-26 16:39:3523 days ago1719419975
0x679780Ea...8Ccf99aFf
0.00598788 ETH
201771122024-06-26 16:39:3523 days ago1719419975
0x679780Ea...8Ccf99aFf
0.00598788 ETH
201771122024-06-26 16:39:3523 days ago1719419975
0x679780Ea...8Ccf99aFf
1.26514569 ETH
201771122024-06-26 16:39:3523 days ago1719419975
0x679780Ea...8Ccf99aFf
2.46164386 ETH
201770722024-06-26 16:31:2323 days ago1719419483
0x679780Ea...8Ccf99aFf
0.00598788 ETH
201770722024-06-26 16:31:2323 days ago1719419483
0x679780Ea...8Ccf99aFf
0.00598788 ETH
201770722024-06-26 16:31:2323 days ago1719419483
0x679780Ea...8Ccf99aFf
1.26514569 ETH
201680532024-06-25 10:18:4724 days ago1719310727
0x679780Ea...8Ccf99aFf
0.55010088 ETH
201605352024-06-24 9:05:3525 days ago1719219935
0x679780Ea...8Ccf99aFf
4.20449685 ETH
201605352024-06-24 9:05:3525 days ago1719219935
0x679780Ea...8Ccf99aFf
0.30747457 ETH
201605352024-06-24 9:05:3525 days ago1719219935
0x679780Ea...8Ccf99aFf
0.30772075 ETH
201605352024-06-24 9:05:3525 days ago1719219935
0x679780Ea...8Ccf99aFf
4.20474303 ETH
201605352024-06-24 9:05:3525 days ago1719219935
0x679780Ea...8Ccf99aFf
2.97411866 ETH
199426792024-05-24 22:19:5955 days ago1716589199
0x679780Ea...8Ccf99aFf
3.79083508 ETH
199426792024-05-24 22:19:5955 days ago1716589199
0x679780Ea...8Ccf99aFf
0.25274932 ETH
199426792024-05-24 22:19:5955 days ago1716589199
0x679780Ea...8Ccf99aFf
0.25295168 ETH
199426792024-05-24 22:19:5955 days ago1716589199
0x679780Ea...8Ccf99aFf
3.79103744 ETH
199426792024-05-24 22:19:5955 days ago1716589199
0x679780Ea...8Ccf99aFf
1.70167088 ETH
195254972024-03-27 11:55:59114 days ago1711540559
0x679780Ea...8Ccf99aFf
9 ETH
194936032024-03-23 0:02:35118 days ago1711152155
0x679780Ea...8Ccf99aFf
5.92676844 ETH
194936032024-03-23 0:02:35118 days ago1711152155
0x679780Ea...8Ccf99aFf
0.02163436 ETH
194936032024-03-23 0:02:35118 days ago1711152155
0x679780Ea...8Ccf99aFf
0.02165169 ETH
194936032024-03-23 0:02:35118 days ago1711152155
0x679780Ea...8Ccf99aFf
5.92678576 ETH
194936032024-03-23 0:02:35118 days ago1711152155
0x679780Ea...8Ccf99aFf
0.03260877 ETH
194855262024-03-21 20:52:23119 days ago1711054343
0x679780Ea...8Ccf99aFf
5.85681603 ETH
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x672647dD...d7bA25D30
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
FarmMainRegularMinStake

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-05-19
*/

// File: contracts\farming\FarmDataRegular.sol

//SPDX-License-Identifier: MIT
pragma solidity >=0.7.0;

struct FarmingPositionRequest {
    uint256 setupIndex; // index of the chosen setup.
    uint256 amount0; // amount of main token or liquidity pool token.
    uint256 amount1; // amount of other token or liquidity pool token. Needed for gen2
    address positionOwner; // position extension or address(0) [msg.sender].
    uint256 amount0Min;
    uint256 amount1Min;
}

struct FarmingSetupConfiguration {
    bool add; // true if we're adding a new setup, false we're updating it.
    bool disable;
    uint256 index; // index of the setup we're updating.
    FarmingSetupInfo info; // data of the new or updated setup
}

struct FarmingSetupInfo {
    uint256 blockDuration; // duration of setup
    uint256 startBlock; // optional start block used for the delayed activation of the first setup
    uint256 originalRewardPerBlock;
    uint256 minStakeable; // minimum amount of staking tokens.
    uint256 renewTimes; // if the setup is renewable or if it's one time.
    address liquidityPoolTokenAddress; // address of the liquidity pool token
    address mainTokenAddress; // eg. buidl address.
    bool involvingETH; // if the setup involves ETH or not.
    uint256 setupsCount; // number of setups created by this info.
    uint256 lastSetupIndex; // index of last setup;
    int24 tickLower; // Gen2 Only - tickLower of the UniswapV3 pool
    int24 tickUpper; // Gen 2 Only - tickUpper of the UniswapV3 pool
}

struct FarmingSetup {
    uint256 infoIndex; // setup info
    bool active; // if the setup is active or not.
    uint256 startBlock; // farming setup start block.
    uint256 endBlock; // farming setup end block.
    uint256 lastUpdateBlock; // number of the block where an update was triggered.
    uint256 deprecatedObjectId; // need for gen2. uniswapV3 NFT position Id
    uint256 rewardPerBlock; // farming setup reward per single block.
    uint128 totalSupply; // Total LP token liquidity of all the positions of this setup
}

struct FarmingPosition {
    address uniqueOwner; // address representing the owner of the position.
    uint256 setupIndex; // the setup index related to this position.
    uint256 creationBlock; // block when this position was created.
    uint256 tokenId; // amount of liquidity pool token in the position.
    uint256 reward; // position reward.
}

// File: contracts\farming\IFarmMainRegular.sol

//SPDX_License_Identifier: MIT
pragma solidity >=0.7.0;
pragma abicoder v2;


interface IFarmMainRegular {

    function ONE_HUNDRED() external view returns(uint256);
    function _rewardTokenAddress() external view returns(address);
    function position(uint256 positionId) external view returns (FarmingPosition memory);
    function setups() external view returns (FarmingSetup[] memory);
    function setup(uint256 setupIndex) external view returns (FarmingSetup memory, FarmingSetupInfo memory);
    function setFarmingSetups(FarmingSetupConfiguration[] memory farmingSetups) external;
    function openPosition(FarmingPositionRequest calldata request) external payable returns(uint256 positionId);
    function addLiquidity(uint256 positionId, FarmingPositionRequest calldata request) external payable;
}

// File: contracts\farming\IFarmExtensionRegular.sol

//SPDX_License_Identifier: MIT
pragma solidity >=0.7.0;
//pragma abicoder v2;


interface IFarmExtensionRegular {

    function init(bool byMint, address host, address treasury) external;

    function setHost(address host) external;
    function setTreasury(address treasury) external;

    function data() external view returns(address farmMainContract, bool byMint, address host, address treasury, address rewardTokenAddress);

    function transferTo(uint256 amount) external;
    function backToYou(uint256 amount) external payable;

    function setFarmingSetups(FarmingSetupConfiguration[] memory farmingSetups) external;
}

// File: contracts\farming\util\IERC20.sol

// SPDX_License_Identifier: MIT

pragma solidity >=0.7.0;

interface IERC20 {

    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function transfer(address recipient, uint256 amount) external returns (bool);

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 amount) external returns (bool);

    function safeApprove(address spender, uint256 amount) external;

    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    function decimals() external view returns (uint8);
}

// File: node_modules\@uniswap\v3-core\contracts\interfaces\pool\IUniswapV3PoolImmutables.sol

// SPDX_License_Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Pool state that never changes
/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values
interface IUniswapV3PoolImmutables {
    /// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface
    /// @return The contract address
    function factory() external view returns (address);

    /// @notice The first of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token0() external view returns (address);

    /// @notice The second of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token1() external view returns (address);

    /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6
    /// @return The fee
    function fee() external view returns (uint24);

    /// @notice The pool tick spacing
    /// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive
    /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ...
    /// This value is an int24 to avoid casting even though it is always positive.
    /// @return The tick spacing
    function tickSpacing() external view returns (int24);

    /// @notice The maximum amount of position liquidity that can use any tick in the range
    /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and
    /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool
    /// @return The max amount of liquidity per tick
    function maxLiquidityPerTick() external view returns (uint128);
}

// File: node_modules\@uniswap\v3-core\contracts\interfaces\pool\IUniswapV3PoolState.sol

// SPDX_License_Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction
interface IUniswapV3PoolState {
    /// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
    /// when accessed externally.
    /// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
    /// tick The current tick of the pool, i.e. according to the last tick transition that was run.
    /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick
    /// boundary.
    /// observationIndex The index of the last oracle observation that was written,
    /// observationCardinality The current maximum number of observations stored in the pool,
    /// observationCardinalityNext The next maximum number of observations, to be updated when the observation.
    /// feeProtocol The protocol fee for both tokens of the pool.
    /// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0
    /// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee.
    /// unlocked Whether the pool is currently locked to reentrancy
    function slot0()
        external
        view
        returns (
            uint160 sqrtPriceX96,
            int24 tick,
            uint16 observationIndex,
            uint16 observationCardinality,
            uint16 observationCardinalityNext,
            uint8 feeProtocol,
            bool unlocked
        );

    /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool
    /// @dev This value can overflow the uint256
    function feeGrowthGlobal0X128() external view returns (uint256);

    /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool
    /// @dev This value can overflow the uint256
    function feeGrowthGlobal1X128() external view returns (uint256);

    /// @notice The amounts of token0 and token1 that are owed to the protocol
    /// @dev Protocol fees will never exceed uint128 max in either token
    function protocolFees() external view returns (uint128 token0, uint128 token1);

    /// @notice The currently in range liquidity available to the pool
    /// @dev This value has no relationship to the total liquidity across all ticks
    function liquidity() external view returns (uint128);

    /// @notice Look up information about a specific tick in the pool
    /// @param tick The tick to look up
    /// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or
    /// tick upper,
    /// liquidityNet how much liquidity changes when the pool price crosses the tick,
    /// feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0,
    /// feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1,
    /// tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick
    /// secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick,
    /// secondsOutside the seconds spent on the other side of the tick from the current tick,
    /// initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false.
    /// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0.
    /// In addition, these values are only relative and must be used only in comparison to previous snapshots for
    /// a specific position.
    function ticks(int24 tick)
        external
        view
        returns (
            uint128 liquidityGross,
            int128 liquidityNet,
            uint256 feeGrowthOutside0X128,
            uint256 feeGrowthOutside1X128,
            int56 tickCumulativeOutside,
            uint160 secondsPerLiquidityOutsideX128,
            uint32 secondsOutside,
            bool initialized
        );

    /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information
    function tickBitmap(int16 wordPosition) external view returns (uint256);

    /// @notice Returns the information about a position by the position's key
    /// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper
    /// @return _liquidity The amount of liquidity in the position,
    /// Returns feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke,
    /// Returns feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke,
    /// Returns tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke,
    /// Returns tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke
    function positions(bytes32 key)
        external
        view
        returns (
            uint128 _liquidity,
            uint256 feeGrowthInside0LastX128,
            uint256 feeGrowthInside1LastX128,
            uint128 tokensOwed0,
            uint128 tokensOwed1
        );

    /// @notice Returns data about a specific observation index
    /// @param index The element of the observations array to fetch
    /// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time
    /// ago, rather than at a specific index in the array.
    /// @return blockTimestamp The timestamp of the observation,
    /// Returns tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp,
    /// Returns secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp,
    /// Returns initialized whether the observation has been initialized and the values are safe to use
    function observations(uint256 index)
        external
        view
        returns (
            uint32 blockTimestamp,
            int56 tickCumulative,
            uint160 secondsPerLiquidityCumulativeX128,
            bool initialized
        );
}

// File: node_modules\@uniswap\v3-core\contracts\interfaces\pool\IUniswapV3PoolDerivedState.sol

// SPDX_License_Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Pool state that is not stored
/// @notice Contains view functions to provide information about the pool that is computed rather than stored on the
/// blockchain. The functions here may have variable gas costs.
interface IUniswapV3PoolDerivedState {
    /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp
    /// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing
    /// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick,
    /// you must call it with secondsAgos = [3600, 0].
    /// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in
    /// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio.
    /// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned
    /// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp
    /// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block
    /// timestamp
    function observe(uint32[] calldata secondsAgos)
        external
        view
        returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s);

    /// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range
    /// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed.
    /// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first
    /// snapshot is taken and the second snapshot is taken.
    /// @param tickLower The lower tick of the range
    /// @param tickUpper The upper tick of the range
    /// @return tickCumulativeInside The snapshot of the tick accumulator for the range
    /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range
    /// @return secondsInside The snapshot of seconds per liquidity for the range
    function snapshotCumulativesInside(int24 tickLower, int24 tickUpper)
        external
        view
        returns (
            int56 tickCumulativeInside,
            uint160 secondsPerLiquidityInsideX128,
            uint32 secondsInside
        );
}

// File: node_modules\@uniswap\v3-core\contracts\interfaces\pool\IUniswapV3PoolActions.sol

// SPDX_License_Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Permissionless pool actions
/// @notice Contains pool methods that can be called by anyone
interface IUniswapV3PoolActions {
    /// @notice Sets the initial price for the pool
    /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value
    /// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96
    function initialize(uint160 sqrtPriceX96) external;

    /// @notice Adds liquidity for the given recipient/tickLower/tickUpper position
    /// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback
    /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends
    /// on tickLower, tickUpper, the amount of liquidity, and the current price.
    /// @param recipient The address for which the liquidity will be created
    /// @param tickLower The lower tick of the position in which to add liquidity
    /// @param tickUpper The upper tick of the position in which to add liquidity
    /// @param amount The amount of liquidity to mint
    /// @param data Any data that should be passed through to the callback
    /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback
    /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback
    function mint(
        address recipient,
        int24 tickLower,
        int24 tickUpper,
        uint128 amount,
        bytes calldata data
    ) external returns (uint256 amount0, uint256 amount1);

    /// @notice Collects tokens owed to a position
    /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity.
    /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or
    /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the
    /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.
    /// @param recipient The address which should receive the fees collected
    /// @param tickLower The lower tick of the position for which to collect fees
    /// @param tickUpper The upper tick of the position for which to collect fees
    /// @param amount0Requested How much token0 should be withdrawn from the fees owed
    /// @param amount1Requested How much token1 should be withdrawn from the fees owed
    /// @return amount0 The amount of fees collected in token0
    /// @return amount1 The amount of fees collected in token1
    function collect(
        address recipient,
        int24 tickLower,
        int24 tickUpper,
        uint128 amount0Requested,
        uint128 amount1Requested
    ) external returns (uint128 amount0, uint128 amount1);

    /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position
    /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0
    /// @dev Fees must be collected separately via a call to #collect
    /// @param tickLower The lower tick of the position for which to burn liquidity
    /// @param tickUpper The upper tick of the position for which to burn liquidity
    /// @param amount How much liquidity to burn
    /// @return amount0 The amount of token0 sent to the recipient
    /// @return amount1 The amount of token1 sent to the recipient
    function burn(
        int24 tickLower,
        int24 tickUpper,
        uint128 amount
    ) external returns (uint256 amount0, uint256 amount1);

    /// @notice Swap token0 for token1, or token1 for token0
    /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback
    /// @param recipient The address to receive the output of the swap
    /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0
    /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)
    /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this
    /// value after the swap. If one for zero, the price cannot be greater than this value after the swap
    /// @param data Any data to be passed through to the callback
    /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive
    /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive
    function swap(
        address recipient,
        bool zeroForOne,
        int256 amountSpecified,
        uint160 sqrtPriceLimitX96,
        bytes calldata data
    ) external returns (int256 amount0, int256 amount1);

    /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback
    /// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback
    /// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling
    /// with 0 amount{0,1} and sending the donation amount(s) from the callback
    /// @param recipient The address which will receive the token0 and token1 amounts
    /// @param amount0 The amount of token0 to send
    /// @param amount1 The amount of token1 to send
    /// @param data Any data to be passed through to the callback
    function flash(
        address recipient,
        uint256 amount0,
        uint256 amount1,
        bytes calldata data
    ) external;

    /// @notice Increase the maximum number of price and liquidity observations that this pool will store
    /// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to
    /// the input observationCardinalityNext.
    /// @param observationCardinalityNext The desired minimum number of observations for the pool to store
    function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external;
}

// File: node_modules\@uniswap\v3-core\contracts\interfaces\pool\IUniswapV3PoolOwnerActions.sol

// SPDX_License_Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Permissioned pool actions
/// @notice Contains pool methods that may only be called by the factory owner
interface IUniswapV3PoolOwnerActions {
    /// @notice Set the denominator of the protocol's % share of the fees
    /// @param feeProtocol0 new protocol fee for token0 of the pool
    /// @param feeProtocol1 new protocol fee for token1 of the pool
    function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external;

    /// @notice Collect the protocol fee accrued to the pool
    /// @param recipient The address to which collected protocol fees should be sent
    /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1
    /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0
    /// @return amount0 The protocol fee collected in token0
    /// @return amount1 The protocol fee collected in token1
    function collectProtocol(
        address recipient,
        uint128 amount0Requested,
        uint128 amount1Requested
    ) external returns (uint128 amount0, uint128 amount1);
}

// File: node_modules\@uniswap\v3-core\contracts\interfaces\pool\IUniswapV3PoolEvents.sol

// SPDX_License_Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Events emitted by a pool
/// @notice Contains all events emitted by the pool
interface IUniswapV3PoolEvents {
    /// @notice Emitted exactly once by a pool when #initialize is first called on the pool
    /// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize
    /// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96
    /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool
    event Initialize(uint160 sqrtPriceX96, int24 tick);

    /// @notice Emitted when liquidity is minted for a given position
    /// @param sender The address that minted the liquidity
    /// @param owner The owner of the position and recipient of any minted liquidity
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount The amount of liquidity minted to the position range
    /// @param amount0 How much token0 was required for the minted liquidity
    /// @param amount1 How much token1 was required for the minted liquidity
    event Mint(
        address sender,
        address indexed owner,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount,
        uint256 amount0,
        uint256 amount1
    );

    /// @notice Emitted when fees are collected by the owner of a position
    /// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees
    /// @param owner The owner of the position for which fees are collected
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount0 The amount of token0 fees collected
    /// @param amount1 The amount of token1 fees collected
    event Collect(
        address indexed owner,
        address recipient,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount0,
        uint128 amount1
    );

    /// @notice Emitted when a position's liquidity is removed
    /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect
    /// @param owner The owner of the position for which liquidity is removed
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount The amount of liquidity to remove
    /// @param amount0 The amount of token0 withdrawn
    /// @param amount1 The amount of token1 withdrawn
    event Burn(
        address indexed owner,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount,
        uint256 amount0,
        uint256 amount1
    );

    /// @notice Emitted by the pool for any swaps between token0 and token1
    /// @param sender The address that initiated the swap call, and that received the callback
    /// @param recipient The address that received the output of the swap
    /// @param amount0 The delta of the token0 balance of the pool
    /// @param amount1 The delta of the token1 balance of the pool
    /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96
    /// @param liquidity The liquidity of the pool after the swap
    /// @param tick The log base 1.0001 of price of the pool after the swap
    event Swap(
        address indexed sender,
        address indexed recipient,
        int256 amount0,
        int256 amount1,
        uint160 sqrtPriceX96,
        uint128 liquidity,
        int24 tick
    );

    /// @notice Emitted by the pool for any flashes of token0/token1
    /// @param sender The address that initiated the swap call, and that received the callback
    /// @param recipient The address that received the tokens from flash
    /// @param amount0 The amount of token0 that was flashed
    /// @param amount1 The amount of token1 that was flashed
    /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee
    /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee
    event Flash(
        address indexed sender,
        address indexed recipient,
        uint256 amount0,
        uint256 amount1,
        uint256 paid0,
        uint256 paid1
    );

    /// @notice Emitted by the pool for increases to the number of observations that can be stored
    /// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index
    /// just before a mint/swap/burn.
    /// @param observationCardinalityNextOld The previous value of the next observation cardinality
    /// @param observationCardinalityNextNew The updated value of the next observation cardinality
    event IncreaseObservationCardinalityNext(
        uint16 observationCardinalityNextOld,
        uint16 observationCardinalityNextNew
    );

    /// @notice Emitted when the protocol fee is changed by the pool
    /// @param feeProtocol0Old The previous value of the token0 protocol fee
    /// @param feeProtocol1Old The previous value of the token1 protocol fee
    /// @param feeProtocol0New The updated value of the token0 protocol fee
    /// @param feeProtocol1New The updated value of the token1 protocol fee
    event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New);

    /// @notice Emitted when the collected protocol fees are withdrawn by the factory owner
    /// @param sender The address that collects the protocol fees
    /// @param recipient The address that receives the collected protocol fees
    /// @param amount0 The amount of token0 protocol fees that is withdrawn
    /// @param amount0 The amount of token1 protocol fees that is withdrawn
    event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1);
}

// File: @uniswap\v3-core\contracts\interfaces\IUniswapV3Pool.sol

// SPDX_License_Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;







/// @title The interface for a Uniswap V3 Pool
/// @notice A Uniswap pool facilitates swapping and automated market making between any two assets that strictly conform
/// to the ERC20 specification
/// @dev The pool interface is broken up into many smaller pieces
interface IUniswapV3Pool is
    IUniswapV3PoolImmutables,
    IUniswapV3PoolState,
    IUniswapV3PoolDerivedState,
    IUniswapV3PoolActions,
    IUniswapV3PoolOwnerActions,
    IUniswapV3PoolEvents
{

}

// File: @uniswap\v3-core\contracts\libraries\TickMath.sol

// SPDX_License_Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Math library for computing sqrt prices from ticks and vice versa
/// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports
/// prices between 2**-128 and 2**128
library TickMath {
    /// @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128
    int24 internal constant MIN_TICK = -887272;
    /// @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128
    int24 internal constant MAX_TICK = -MIN_TICK;

    /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)
    uint160 internal constant MIN_SQRT_RATIO = 4295128739;
    /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)
    uint160 internal constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;

    /// @notice Calculates sqrt(1.0001^tick) * 2^96
    /// @dev Throws if |tick| > max tick
    /// @param tick The input tick for the above formula
    /// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0)
    /// at the given tick
    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;

        // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96.
        // we then downcast because we know the result always fits within 160 bits due to our tick input constraint
        // we round up in the division so getTickAtSqrtRatio of the output price is always consistent
        sqrtPriceX96 = uint160((ratio >> 32) + (ratio % (1 << 32) == 0 ? 0 : 1));
    }

    /// @notice Calculates the greatest tick value such that getRatioAtTick(tick) <= ratio
    /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_RATIO, as MIN_SQRT_RATIO is the lowest value getRatioAtTick may
    /// ever return.
    /// @param sqrtPriceX96 The sqrt ratio for which to compute the tick as a Q64.96
    /// @return tick The greatest tick for which the ratio is less than or equal to the input ratio
    function getTickAtSqrtRatio(uint160 sqrtPriceX96) internal pure returns (int24 tick) {
        // second inequality must be < because the price can never reach the price at the max 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; // 128.128 number

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

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

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

// SPDX_License_Identifier: MIT

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: node_modules\@openzeppelin\contracts\token\ERC721\IERC721.sol

// SPDX_License_Identifier: MIT

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

// SPDX_License_Identifier: MIT

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

// SPDX_License_Identifier: MIT

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: node_modules\@uniswap\v3-periphery\contracts\interfaces\IPoolInitializer.sol

// SPDX_License_Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
//pragma abicoder v2;

/// @title Creates and initializes V3 Pools
/// @notice Provides a method for creating and initializing a pool, if necessary, for bundling with other methods that
/// require the pool to exist.
interface IPoolInitializer {
    /// @notice Creates a new pool if it does not exist, then initializes if not initialized
    /// @dev This method can be bundled with others via IMulticall for the first action (e.g. mint) performed against a pool
    /// @param token0 The contract address of token0 of the pool
    /// @param token1 The contract address of token1 of the pool
    /// @param fee The fee amount of the v3 pool for the specified token pair
    /// @param sqrtPriceX96 The initial square root price of the pool as a Q64.96 value
    /// @return pool Returns the pool address based on the pair of tokens and fee, will return the newly created pool address if necessary
    function createAndInitializePoolIfNecessary(
        address token0,
        address token1,
        uint24 fee,
        uint160 sqrtPriceX96
    ) external payable returns (address pool);
}

// File: node_modules\@uniswap\v3-periphery\contracts\interfaces\IERC721Permit.sol

// SPDX_License_Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;


/// @title ERC721 with permit
/// @notice Extension to ERC721 that includes a permit function for signature based approvals
interface IERC721Permit is IERC721 {
    /// @notice The permit typehash used in the permit signature
    /// @return The typehash for the permit
    function PERMIT_TYPEHASH() external pure returns (bytes32);

    /// @notice The domain separator used in the permit signature
    /// @return The domain seperator used in encoding of permit signature
    function DOMAIN_SEPARATOR() external view returns (bytes32);

    /// @notice Approve of a specific token ID for spending by spender via signature
    /// @param spender The account that is being approved
    /// @param tokenId The ID of the token that is being approved for spending
    /// @param deadline The deadline timestamp by which the call must be mined for the approve to work
    /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s`
    /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s`
    /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v`
    function permit(
        address spender,
        uint256 tokenId,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable;
}

// File: node_modules\@uniswap\v3-periphery\contracts\interfaces\IPeripheryPayments.sol

// SPDX_License_Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;

/// @title Periphery Payments
/// @notice Functions to ease deposits and withdrawals of ETH
interface IPeripheryPayments {
    /// @notice Unwraps the contract's WETH9 balance and sends it to recipient as ETH.
    /// @dev The amountMinimum parameter prevents malicious contracts from stealing WETH9 from users.
    /// @param amountMinimum The minimum amount of WETH9 to unwrap
    /// @param recipient The address receiving ETH
    function unwrapWETH9(uint256 amountMinimum, address recipient) external payable;

    /// @notice Refunds any ETH balance held by this contract to the `msg.sender`
    /// @dev Useful for bundling with mint or increase liquidity that uses ether, or exact output swaps
    /// that use ether for the input amount
    function refundETH() external payable;

    /// @notice Transfers the full amount of a token held by this contract to recipient
    /// @dev The amountMinimum parameter prevents malicious contracts from stealing the token from users
    /// @param token The contract address of the token which will be transferred to `recipient`
    /// @param amountMinimum The minimum amount of token required for a transfer
    /// @param recipient The destination address of the token
    function sweepToken(
        address token,
        uint256 amountMinimum,
        address recipient
    ) external payable;
}

// File: node_modules\@uniswap\v3-periphery\contracts\interfaces\IPeripheryImmutableState.sol

// SPDX_License_Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Immutable state
/// @notice Functions that return immutable state of the router
interface IPeripheryImmutableState {
    /// @return Returns the address of the Uniswap V3 factory
    function factory() external view returns (address);

    /// @return Returns the address of WETH9
    function WETH9() external view returns (address);
}

// File: node_modules\@uniswap\v3-periphery\contracts\libraries\PoolAddress.sol

// SPDX_License_Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Provides functions for deriving a pool address from the factory, tokens, and the fee
library PoolAddress {
    bytes32 internal constant POOL_INIT_CODE_HASH = 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54;

    /// @notice The identifying key of the pool
    struct PoolKey {
        address token0;
        address token1;
        uint24 fee;
    }

    /// @notice Returns PoolKey: the ordered tokens with the matched fee levels
    /// @param tokenA The first token of a pool, unsorted
    /// @param tokenB The second token of a pool, unsorted
    /// @param fee The fee level of the pool
    /// @return Poolkey The pool details with ordered token0 and token1 assignments
    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});
    }

    /// @notice Deterministically computes the pool address given the factory and PoolKey
    /// @param factory The Uniswap V3 factory contract address
    /// @param key The PoolKey
    /// @return pool The contract address of the V3 pool
    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: @uniswap\v3-periphery\contracts\interfaces\INonfungiblePositionManager.sol

// SPDX_License_Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
//pragma abicoder v2;








/// @title Non-fungible token for positions
/// @notice Wraps Uniswap V3 positions in a non-fungible token interface which allows for them to be transferred
/// and authorized.
interface INonfungiblePositionManager is
    IPoolInitializer,
    IPeripheryPayments,
    IPeripheryImmutableState,
    IERC721Metadata,
    IERC721Enumerable,
    IERC721Permit
{
    /// @notice Emitted when liquidity is increased for a position NFT
    /// @dev Also emitted when a token is minted
    /// @param tokenId The ID of the token for which liquidity was increased
    /// @param liquidity The amount by which liquidity for the NFT position was increased
    /// @param amount0 The amount of token0 that was paid for the increase in liquidity
    /// @param amount1 The amount of token1 that was paid for the increase in liquidity
    event IncreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1);
    /// @notice Emitted when liquidity is decreased for a position NFT
    /// @param tokenId The ID of the token for which liquidity was decreased
    /// @param liquidity The amount by which liquidity for the NFT position was decreased
    /// @param amount0 The amount of token0 that was accounted for the decrease in liquidity
    /// @param amount1 The amount of token1 that was accounted for the decrease in liquidity
    event DecreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1);
    /// @notice Emitted when tokens are collected for a position NFT
    /// @dev The amounts reported may not be exactly equivalent to the amounts transferred, due to rounding behavior
    /// @param tokenId The ID of the token for which underlying tokens were collected
    /// @param recipient The address of the account that received the collected tokens
    /// @param amount0 The amount of token0 owed to the position that was collected
    /// @param amount1 The amount of token1 owed to the position that was collected
    event Collect(uint256 indexed tokenId, address recipient, uint256 amount0, uint256 amount1);

    /// @notice Returns the position information associated with a given token ID.
    /// @dev Throws if the token ID is not valid.
    /// @param tokenId The ID of the token that represents the position
    /// @return nonce The nonce for permits
    /// @return operator The address that is approved for spending
    /// @return token0 The address of the token0 for a specific pool
    /// @return token1 The address of the token1 for a specific pool
    /// @return fee The fee associated with the pool
    /// @return tickLower The lower end of the tick range for the position
    /// @return tickUpper The higher end of the tick range for the position
    /// @return liquidity The liquidity of the position
    /// @return feeGrowthInside0LastX128 The fee growth of token0 as of the last action on the individual position
    /// @return feeGrowthInside1LastX128 The fee growth of token1 as of the last action on the individual position
    /// @return tokensOwed0 The uncollected amount of token0 owed to the position as of the last computation
    /// @return tokensOwed1 The uncollected amount of token1 owed to the position as of the last computation
    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;
    }

    /// @notice Creates a new position wrapped in a NFT
    /// @dev Call this when the pool does exist and is initialized. Note that if the pool is created but not initialized
    /// a method does not exist, i.e. the pool is assumed to be initialized.
    /// @param params The params necessary to mint a position, encoded as `MintParams` in calldata
    /// @return tokenId The ID of the token that represents the minted position
    /// @return liquidity The amount of liquidity for this position
    /// @return amount0 The amount of token0
    /// @return amount1 The amount of token1
    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;
    }

    /// @notice Increases the amount of liquidity in a position, with tokens paid by the `msg.sender`
    /// @param params tokenId The ID of the token for which liquidity is being increased,
    /// amount0Desired The desired amount of token0 to be spent,
    /// amount1Desired The desired amount of token1 to be spent,
    /// amount0Min The minimum amount of token0 to spend, which serves as a slippage check,
    /// amount1Min The minimum amount of token1 to spend, which serves as a slippage check,
    /// deadline The time by which the transaction must be included to effect the change
    /// @return liquidity The new liquidity amount as a result of the increase
    /// @return amount0 The amount of token0 to acheive resulting liquidity
    /// @return amount1 The amount of token1 to acheive resulting liquidity
    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;
    }

    /// @notice Decreases the amount of liquidity in a position and accounts it to the position
    /// @param params tokenId The ID of the token for which liquidity is being decreased,
    /// amount The amount by which liquidity will be decreased,
    /// amount0Min The minimum amount of token0 that should be accounted for the burned liquidity,
    /// amount1Min The minimum amount of token1 that should be accounted for the burned liquidity,
    /// deadline The time by which the transaction must be included to effect the change
    /// @return amount0 The amount of token0 accounted to the position's tokens owed
    /// @return amount1 The amount of token1 accounted to the position's tokens owed
    function decreaseLiquidity(DecreaseLiquidityParams calldata params)
        external
        payable
        returns (uint256 amount0, uint256 amount1);

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

    /// @notice Collects up to a maximum amount of fees owed to a specific position to the recipient
    /// @param params tokenId The ID of the NFT for which tokens are being collected,
    /// recipient The account that should receive the tokens,
    /// amount0Max The maximum amount of token0 to collect,
    /// amount1Max The maximum amount of token1 to collect
    /// @return amount0 The amount of fees collected in token0
    /// @return amount1 The amount of fees collected in token1
    function collect(CollectParams calldata params) external payable returns (uint256 amount0, uint256 amount1);

    /// @notice Burns a token ID, which deletes it from the NFT contract. The token must have 0 liquidity and all tokens
    /// must be collected first.
    /// @param tokenId The ID of the token that is being burned
    function burn(uint256 tokenId) external payable;
}

// File: @uniswap\v3-periphery\contracts\interfaces\IMulticall.sol

// SPDX_License_Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
//pragma abicoder v2;

/// @title Multicall interface
/// @notice Enables calling multiple methods in a single call to the contract
interface IMulticall {
    /// @notice Call multiple functions in the current contract and return the data from all of them if they all succeed
    /// @dev The `msg.value` should not be trusted for any method callable from multicall.
    /// @param data The encoded function data for each of the calls to make to this contract
    /// @return results The results from each of the calls passed in via data
    function multicall(bytes[] calldata data) external payable returns (bytes[] memory results);
}

// File: contracts\farming\FarmMainRegularMinStake.sol

//SPDX_License_Identifier: MIT
pragma solidity ^0.7.6;
//pragma abicoder v2;








contract FarmMainRegularMinStake is IFarmMainRegular {

    // percentage
    uint256 public override constant ONE_HUNDRED = 1e18;
    // event that tracks contracts deployed for the given reward token
    event RewardToken(address indexed rewardTokenAddress);
    // new or transferred farming position event
    event Transfer(uint256 indexed positionId, address indexed from, address indexed to);
    // event that tracks involved tokens for this contract
    event SetupToken(address indexed mainToken, address indexed involvedToken);
    // factory address that will create clones of this contract
    address public initializer;
    // address of the extension of this contract
    address public host;
    // address of the reward token
    address public override _rewardTokenAddress;
    // address of the NonfungblePositionManager used for gen2
    INonfungiblePositionManager public nonfungiblePositionManager;
    // mapping containing all the currently available farming setups info
    mapping(uint256 => FarmingSetupInfo) private _setupsInfo;
    // counter for the farming setup info
    uint256 public _farmingSetupsInfoCount;
    // mapping containing all the currently available farming setups
    mapping(uint256 => FarmingSetup) private _setups;
    // counter for the farming setups
    uint256 public _farmingSetupsCount;
    // mapping containing all the positions
    mapping(uint256 => FarmingPosition) private _positions;
    // mapping containing the reward per token per setup per block
    mapping(uint256 => uint256) private _rewardPerTokenPerSetup;
    // mapping containing the reward per token paid per position
    mapping(uint256 => uint256) private _rewardPerTokenPaid;
    // mapping containing all the number of opened positions for each setups
    mapping(uint256 => uint256) private _setupPositionsCount;
    // mapping containing all the reward received/paid per setup
    mapping(uint256 => uint256) public _rewardReceived;
    mapping(uint256 => uint256) public _rewardPaid;

    address private _WETH;

    /** Modifiers. */

    /** @dev byExtension modifier used to check for unauthorized changes. */
    modifier byExtension() {
        require(msg.sender == host, "Unauthorized");
        _;
    }

    /** @dev byPositionOwner modifier used to check for unauthorized accesses. */
    modifier byPositionOwner(uint256 positionId) {
        require(_positions[positionId].uniqueOwner == msg.sender && _positions[positionId].creationBlock != 0, "Not owned");
        _;
    }

    /** @dev activeSetupOnly modifier used to check for function calls only if the setup is active. */
    modifier activeSetupOnly(uint256 setupIndex) {
        require(_setups[setupIndex].active, "Setup not active");
        require(_setups[setupIndex].startBlock <= block.number && _setups[setupIndex].endBlock > block.number, "Invalid setup");
        _;
    }

    receive() external payable {}

    /** Extension methods */

    /** dev initializes the farming contract.
      * param extension extension address.
      * param extensionInitData lm extension init payload.
      * param uniswapV3NonfungiblePositionManager Uniswap V3 Nonfungible Position Manager address.
      * param rewardTokenAddress address of the reward token.
      * param farmingSetupInfosBytes optional initial farming Setup Info
      * return extensionReturnCall result of the extension initialization function, if it was called.
     */
    function lazyInit(bytes memory lazyInitData) public returns(bytes memory extensionReturnCall) {
        require(initializer == address(0), "Already initialized");
        initializer = msg.sender;
        address uniswapV3NonfungiblePositionManager;
        (uniswapV3NonfungiblePositionManager, lazyInitData) = abi.decode(lazyInitData, (address, bytes));
        (address extension, bytes memory extensionInitData, address rewardTokenAddress, bytes memory farmingSetupInfosBytes) = abi.decode(lazyInitData, (address, bytes, address, bytes));
        require((host = extension) != address(0), "extension");
        emit RewardToken(_rewardTokenAddress = rewardTokenAddress);
        if (keccak256(extensionInitData) != keccak256("")) {
            extensionReturnCall = _call(host, extensionInitData);
        }
        _WETH = (nonfungiblePositionManager = INonfungiblePositionManager(uniswapV3NonfungiblePositionManager)).WETH9();
        if(farmingSetupInfosBytes.length > 0) {
            FarmingSetupInfo[] memory farmingSetupInfos = abi.decode(farmingSetupInfosBytes, (FarmingSetupInfo[]));
            for(uint256 i = 0; i < farmingSetupInfos.length; i++) {
                _setOrAddFarmingSetupInfo(farmingSetupInfos[i], true, false, 0);
            }
        }
    }

    function setFarmingSetups(FarmingSetupConfiguration[] memory farmingSetups) public override byExtension {
        for (uint256 i = 0; i < farmingSetups.length; i++) {
            _setOrAddFarmingSetupInfo(farmingSetups[i].info, farmingSetups[i].add, farmingSetups[i].disable, farmingSetups[i].index);
        }
    }

    function finalFlush(address[] calldata tokens, uint256[] calldata amounts) public {
        for(uint256 i = 0; i < _farmingSetupsCount; i++) {
            require(_setupPositionsCount[i] == 0 && !_setups[i].active && _setups[i].totalSupply == 0, "Not Empty");
        }
        (,,, address receiver,) = IFarmExtensionRegular(host).data();
        require(tokens.length == amounts.length, "length");
        for(uint256 i = 0; i < tokens.length; i++) {
            address token = tokens[i];
            uint256 amount = amounts[i];
            require(receiver != address(0));
            if(token == address(0)) {
                (bool result,) = receiver.call{value : amount}("");
                require(result, "ETH");
            } else {
                _safeTransfer(token, receiver, amount);
            }
        }
    }

    /** Public methods */

    /** @dev returns the position with the given id.
      * @param positionId id of the position.
      * @return farming position with the given id.
     */
    function position(uint256 positionId) public override view returns (FarmingPosition memory) {
        return _positions[positionId];
    }

    function setup(uint256 setupIndex) public override view returns (FarmingSetup memory, FarmingSetupInfo memory) {
        return (_setups[setupIndex], _setupsInfo[_setups[setupIndex].infoIndex]);
    }

    function setups() public override view returns (FarmingSetup[] memory) {
        FarmingSetup[] memory farmingSetups = new FarmingSetup[](_farmingSetupsCount);
        for (uint256 i = 0; i < _farmingSetupsCount; i++) {
            farmingSetups[i] = _setups[i];
        }
        return farmingSetups;
    }

    function activateSetup(uint256 setupInfoIndex) public {
        require(_setupsInfo[setupInfoIndex].renewTimes > 0 && !_setups[_setupsInfo[setupInfoIndex].lastSetupIndex].active, "Invalid toggle.");
        _toggleSetup(_setupsInfo[setupInfoIndex].lastSetupIndex);
    }

    function toggleSetup(uint256 setupInfoIndex) public {
        uint256 setupIndex = _setupsInfo[setupInfoIndex].lastSetupIndex;
        require(_setups[setupIndex].active && block.number > _setups[setupIndex].endBlock, "Invalid toggle.");
        _toggleSetup(setupIndex);
        _tryClearSetup(setupIndex);
    }

    function openPosition(FarmingPositionRequest memory request) public override payable returns(uint256 positionId) {
        if(!_setups[request.setupIndex].active) {
            activateSetup(_setups[request.setupIndex].infoIndex);
        }
        require(_setups[request.setupIndex].active, "Setup not active");
        require(_setups[request.setupIndex].startBlock <= block.number && _setups[request.setupIndex].endBlock > block.number, "Invalid setup");
        // retrieve the unique owner
        address uniqueOwner = (request.positionOwner != address(0)) ? request.positionOwner : msg.sender;
        // create the position id
        positionId = uint256(keccak256(abi.encode(uniqueOwner, request.setupIndex)));
        require(_positions[positionId].creationBlock == 0, "Invalid open");
        (uint256 tokenId, uint128 liquidityAmount) = _addLiquidity(request.setupIndex, request, 0);
        _updateFreeSetup(request.setupIndex, liquidityAmount, positionId, false);
        _positions[positionId] = FarmingPosition({
            uniqueOwner: uniqueOwner,
            setupIndex : request.setupIndex,
            tokenId: tokenId,
            reward: 0,
            creationBlock: block.number
        });
        _setupPositionsCount[request.setupIndex] += 1;
        emit Transfer(positionId, address(0), uniqueOwner);
    }

    function addLiquidity(uint256 positionId, FarmingPositionRequest memory request) public override payable activeSetupOnly(request.setupIndex) byPositionOwner(positionId) {
        // retrieve farming position
        FarmingPosition storage farmingPosition = _positions[positionId];
        FarmingSetup storage chosenSetup = _setups[farmingPosition.setupIndex];
        // rebalance the reward per token
        _rewardPerTokenPerSetup[farmingPosition.setupIndex] += (((block.number - chosenSetup.lastUpdateBlock) * chosenSetup.rewardPerBlock) * 1e18) / chosenSetup.totalSupply;
        farmingPosition.reward = calculateFreeFarmingReward(positionId, false);
        (, uint128 liquidityAmount) = _addLiquidity(farmingPosition.setupIndex, request, farmingPosition.tokenId);
        _rewardPerTokenPaid[positionId] = _rewardPerTokenPerSetup[farmingPosition.setupIndex];
        // update the last block update variablex
        chosenSetup.lastUpdateBlock = block.number;
        chosenSetup.totalSupply += liquidityAmount;
    }


    /** @dev this function allows a user to withdraw the reward.
      * @param positionId farming position id.
     */
    function withdrawReward(uint256 positionId) external byPositionOwner(positionId) {
        _withdrawReward(positionId, 0, 0, 0, "");
    }

    function _withdrawReward(uint256 positionId, uint128 liquidityToRemove, uint256 amount0Min, uint256 amount1Min, bytes memory burnData) private {
        // retrieve farming position
        FarmingPosition storage farmingPosition = _positions[positionId];
        FarmingSetup storage farmingSetup = _setups[farmingPosition.setupIndex];
        uint256 reward = farmingPosition.reward;
        uint256 currentBlock = block.number;
        // rebalance setup
        currentBlock = currentBlock > farmingSetup.endBlock ? farmingSetup.endBlock : currentBlock;
        _rewardPerTokenPerSetup[farmingPosition.setupIndex] += (((currentBlock - farmingSetup.lastUpdateBlock) * farmingSetup.rewardPerBlock) * 1e18) / farmingSetup.totalSupply;
        reward = calculateFreeFarmingReward(positionId, false);
        _rewardPerTokenPaid[positionId] = _rewardPerTokenPerSetup[farmingPosition.setupIndex];
        farmingPosition.reward = 0;
        // update the last block update variable
        farmingSetup.lastUpdateBlock = currentBlock;
        _safeTransfer(_rewardTokenAddress, farmingPosition.uniqueOwner, reward);

        _retrieveGen2LiquidityAndFees(positionId, farmingPosition.tokenId, farmingPosition.uniqueOwner, liquidityToRemove, amount0Min, amount1Min, burnData);

        _rewardPaid[farmingPosition.setupIndex] += reward;
        if (farmingSetup.endBlock <= block.number && farmingSetup.active) {
            _toggleSetup(farmingPosition.setupIndex);
        }
    }

    function withdrawLiquidity(uint256 positionId, uint128 removedLiquidity, bytes memory burnData) byPositionOwner(positionId) public {
        _withdrawLiquidity(positionId, removedLiquidity, 0, 0, burnData);
    }

    function withdrawLiquidity(uint256 positionId, uint128 removedLiquidity, uint256 amount0Min, uint256 amount1Min, bytes memory burnData) byPositionOwner(positionId) public {
        _withdrawLiquidity(positionId, removedLiquidity, amount0Min, amount1Min, burnData);
    }

    function _withdrawLiquidity(uint256 positionId, uint128 removedLiquidity, uint256 amount0Min, uint256 amount1Min, bytes memory burnData) public {
        // retrieve farming position
        FarmingPosition storage farmingPosition = _positions[positionId];
        uint128 liquidityPoolTokenAmount = _getLiquidityPoolTokenAmount(farmingPosition.tokenId);
        // current owned liquidity
        require(
            farmingPosition.creationBlock != 0 &&
            removedLiquidity <= liquidityPoolTokenAmount &&
            farmingPosition.uniqueOwner == msg.sender,
            "Invalid withdraw"
        );
        _withdrawReward(positionId, removedLiquidity, amount0Min, amount1Min, burnData);
        _setups[farmingPosition.setupIndex].totalSupply -= removedLiquidity;
        liquidityPoolTokenAmount -= removedLiquidity;
        // delete the farming position after the withdraw
        if (liquidityPoolTokenAmount == 0) {
            _setupPositionsCount[farmingPosition.setupIndex] -= 1;
            address(nonfungiblePositionManager).call(abi.encodeWithSelector(nonfungiblePositionManager.collect.selector, INonfungiblePositionManager.CollectParams({
                tokenId: farmingPosition.tokenId,
                recipient: farmingPosition.uniqueOwner,
                amount0Max: 0xffffffffffffffffffffffffffffffff,
                amount1Max: 0xffffffffffffffffffffffffffffffff
            })));
            nonfungiblePositionManager.burn(farmingPosition.tokenId);
            _tryClearSetup(farmingPosition.setupIndex);
            delete _positions[positionId];
        } else {
            require(_setupsInfo[_setups[farmingPosition.setupIndex].infoIndex].minStakeable == 0, "Min stake: cannot remove partial liquidity");
        }
    }

    function _tryClearSetup(uint256 setupIndex) private {
        if (_setupPositionsCount[setupIndex] == 0 && !_setups[setupIndex].active) {
            delete _setups[setupIndex];
        }
    }

    function calculateFreeFarmingReward(uint256 positionId, bool isExt) public view returns(uint256 reward) {
        FarmingPosition memory farmingPosition = _positions[positionId];
        uint128 liquidityPoolTokenAmount = _getLiquidityPoolTokenAmount(farmingPosition.tokenId);
        reward = ((_rewardPerTokenPerSetup[farmingPosition.setupIndex] - _rewardPerTokenPaid[positionId]) * liquidityPoolTokenAmount) / 1e18;
        if (isExt) {
            uint256 currentBlock = block.number < _setups[farmingPosition.setupIndex].endBlock ? block.number : _setups[farmingPosition.setupIndex].endBlock;
            uint256 lastUpdateBlock = _setups[farmingPosition.setupIndex].lastUpdateBlock < _setups[farmingPosition.setupIndex].startBlock ? _setups[farmingPosition.setupIndex].startBlock : _setups[farmingPosition.setupIndex].lastUpdateBlock;
            uint256 rpt = (((currentBlock - lastUpdateBlock) * _setups[farmingPosition.setupIndex].rewardPerBlock) * 1e18) / _setups[farmingPosition.setupIndex].totalSupply;
            reward += (rpt * liquidityPoolTokenAmount) / 1e18;
        }
        reward += farmingPosition.reward;
    }

    /** Private methods */

    function _getLiquidityPoolTokenAmount(uint256 tokenId) private view returns (uint128 liquidityAmount){
        (,,,,,,,liquidityAmount,,,,) = nonfungiblePositionManager.positions(tokenId);
    }

    function _setOrAddFarmingSetupInfo(FarmingSetupInfo memory info, bool add, bool disable, uint256 setupIndex) private {
        FarmingSetupInfo memory farmingSetupInfo = info;

        if(add || !disable) {
            farmingSetupInfo.renewTimes = farmingSetupInfo.renewTimes + 1;
            if(farmingSetupInfo.renewTimes == 0) {
                farmingSetupInfo.renewTimes = farmingSetupInfo.renewTimes - 1;
            }
        }

        if (add) {
            require(
                farmingSetupInfo.liquidityPoolTokenAddress != address(0) &&
                farmingSetupInfo.originalRewardPerBlock > 0,
                "Invalid setup configuration"
            );
            _checkTicks(farmingSetupInfo.tickLower, farmingSetupInfo.tickUpper);
            address[] memory tokenAddresses = new address[](2);
            tokenAddresses[0] = IUniswapV3Pool(info.liquidityPoolTokenAddress).token0();
            tokenAddresses[1] = IUniswapV3Pool(info.liquidityPoolTokenAddress).token1();
            bool mainTokenFound = false;
            bool ethTokenFound = false;
            for(uint256 z = 0; z < tokenAddresses.length; z++) {
                if(tokenAddresses[z] == _WETH) {
                    ethTokenFound = true;
                }
                if(tokenAddresses[z] == farmingSetupInfo.mainTokenAddress) {
                    mainTokenFound = true;
                } else {
                    emit SetupToken(farmingSetupInfo.mainTokenAddress, tokenAddresses[z]);
                }
            }
            require(mainTokenFound, "No main token");
            require(!farmingSetupInfo.involvingETH || ethTokenFound, "No ETH token");
            farmingSetupInfo.setupsCount = 0;
            _setupsInfo[_farmingSetupsInfoCount] = farmingSetupInfo;
            _setups[_farmingSetupsCount] = FarmingSetup(_farmingSetupsInfoCount, false, 0, 0, 0, 0, farmingSetupInfo.originalRewardPerBlock, 0);
            _setupsInfo[_farmingSetupsInfoCount].lastSetupIndex = _farmingSetupsCount;
            _farmingSetupsInfoCount += 1;
            _farmingSetupsCount += 1;
            return;
        }

        FarmingSetup storage setup = _setups[setupIndex];
        farmingSetupInfo = _setupsInfo[_setups[setupIndex].infoIndex];

        if(disable) {
            require(setup.active, "Not possible");
            _toggleSetup(setupIndex);
            return;
        }

        info.renewTimes -= 1;

        if (setup.active) {
            setup = _setups[setupIndex];
            if(block.number < setup.endBlock) {
                uint256 difference = info.originalRewardPerBlock < farmingSetupInfo.originalRewardPerBlock ? farmingSetupInfo.originalRewardPerBlock - info.originalRewardPerBlock : info.originalRewardPerBlock - farmingSetupInfo.originalRewardPerBlock;
                uint256 duration = setup.endBlock - block.number;
                uint256 amount = difference * duration;
                if (amount > 0) {
                    if (info.originalRewardPerBlock > farmingSetupInfo.originalRewardPerBlock) {
                        require(_ensureTransfer(amount), "Insufficient reward in extension.");
                        _rewardReceived[setupIndex] += amount;
                    }
                    _updateFreeSetup(setupIndex, 0, 0, false);
                    setup.rewardPerBlock = info.originalRewardPerBlock;
                }
            }
            _setupsInfo[_setups[setupIndex].infoIndex].originalRewardPerBlock = info.originalRewardPerBlock;
        }
        if(_setupsInfo[_setups[setupIndex].infoIndex].renewTimes > 0) {
            _setupsInfo[_setups[setupIndex].infoIndex].renewTimes = info.renewTimes;
        }
    }

    function _transferToMeAndCheckAllowance(FarmingSetup memory setup, FarmingPositionRequest memory request) private returns(uint256 mainTokenPosition) {
        address[] memory tokens = new address[](2);
        tokens[0] = IUniswapV3Pool(_setupsInfo[setup.infoIndex].liquidityPoolTokenAddress).token0();
        tokens[1] = IUniswapV3Pool(_setupsInfo[setup.infoIndex].liquidityPoolTokenAddress).token1();
        mainTokenPosition = _setupsInfo[setup.infoIndex].mainTokenAddress == tokens[0] ? 0 : 1;
        uint256[] memory tokenAmounts = new uint256[](2);
        tokenAmounts[0] = request.amount0;
        tokenAmounts[1] = request.amount1;
        require((_setupsInfo[setup.infoIndex].mainTokenAddress == tokens[0] ? tokenAmounts[0] : tokenAmounts[1]) >= _setupsInfo[setup.infoIndex].minStakeable, "Invalid liquidity.");
        // iterate the tokens and perform the transferFrom and the approve
        for(uint256 i = 0; i < tokens.length; i++) {
            if(_setupsInfo[setup.infoIndex].involvingETH && _WETH == tokens[i]) {
                require(msg.value == tokenAmounts[i], "Incorrect eth value");
            } else {
                _safeTransferFrom(tokens[i], msg.sender, address(this), tokenAmounts[i]);
                _safeApprove(tokens[i], address(nonfungiblePositionManager), tokenAmounts[i]);
            }
        }
    }

    /// @dev addliquidity only for gen2
    function _addLiquidity(uint256 setupIndex, FarmingPositionRequest memory request, uint256 tokenIdInput) private returns(uint256 tokenId, uint128 liquidityAmount) {
        tokenId = tokenIdInput;
        uint256 mainTokenPosition = _transferToMeAndCheckAllowance(_setups[setupIndex], request);

        FarmingSetupInfo memory setupInfo = _setupsInfo[_setups[setupIndex].infoIndex];
        bytes[] memory data = new bytes[](setupInfo.involvingETH ? 2 : 1);

        address token0 = IUniswapV3Pool(setupInfo.liquidityPoolTokenAddress).token0();
        address token1 = IUniswapV3Pool(setupInfo.liquidityPoolTokenAddress).token1();
        uint256 ethValue = setupInfo.involvingETH ? token0 == _WETH ? request.amount0 : request.amount1 : 0;
        uint256 amount0;
        uint256 amount1;

        if(setupInfo.involvingETH) {
            data[1] = abi.encodeWithSelector(nonfungiblePositionManager.refundETH.selector);
        }
        if(tokenId == 0) {
            data[0] = abi.encodeWithSelector(nonfungiblePositionManager.mint.selector, INonfungiblePositionManager.MintParams({
                token0: token0,
                token1: token1,
                fee: IUniswapV3Pool(setupInfo.liquidityPoolTokenAddress).fee(),
                tickLower: setupInfo.tickLower,
                tickUpper: setupInfo.tickUpper,
                amount0Desired: request.amount0,
                amount1Desired: request.amount1,
                amount0Min: request.amount0Min,
                amount1Min: request.amount1Min,
                recipient: address(this),
                deadline: block.timestamp + 10000
            }));
            (tokenId, liquidityAmount, amount0, amount1) = abi.decode(IMulticall(address(nonfungiblePositionManager)).multicall{ value: ethValue }(data)[0], (uint256, uint128, uint256, uint256));
        } else {
            data[0] = abi.encodeWithSelector(nonfungiblePositionManager.increaseLiquidity.selector, INonfungiblePositionManager.IncreaseLiquidityParams({
                tokenId: tokenId,
                amount0Desired: request.amount0,
                amount1Desired: request.amount1,
                amount0Min: request.amount0Min,
                amount1Min: request.amount1Min,
                deadline: block.timestamp + 10000
            }));
            (liquidityAmount, amount0, amount1) = abi.decode(IMulticall(address(nonfungiblePositionManager)).multicall{ value : ethValue }(data)[0], (uint128, uint256, uint256));
        }

        require((mainTokenPosition == 0 ? amount0 : amount1) >= setupInfo.minStakeable, "Min stakeable unreached");

        if(amount0 < request.amount0){
            _safeTransfer(setupInfo.involvingETH && token0 == _WETH ? address(0) : token0, msg.sender, request.amount0 - amount0);
        }

        if(amount1 < request.amount1){
            _safeTransfer(setupInfo.involvingETH && token1 == _WETH ? address(0) : token1, msg.sender, request.amount1 - amount1);
        }
    }

    /** @dev updates the free setup with the given index.
      * @param setupIndex index of the setup that we're updating.
      * @param amount amount of liquidity that we're adding/removeing.
      * @param positionId position id.
      * @param fromExit if it's from an exit or not.
     */
    function _updateFreeSetup(uint256 setupIndex, uint128 amount, uint256 positionId, bool fromExit) private {
        uint256 currentBlock = block.number < _setups[setupIndex].endBlock ? block.number : _setups[setupIndex].endBlock;
        if (_setups[setupIndex].totalSupply != 0) {
            uint256 lastUpdateBlock = _setups[setupIndex].lastUpdateBlock < _setups[setupIndex].startBlock ? _setups[setupIndex].startBlock : _setups[setupIndex].lastUpdateBlock;
            _rewardPerTokenPerSetup[setupIndex] += (((currentBlock - lastUpdateBlock) * _setups[setupIndex].rewardPerBlock) * 1e18) / _setups[setupIndex].totalSupply;
        }
        // update the last block update variable
        _setups[setupIndex].lastUpdateBlock = currentBlock;
        if (positionId != 0) {
            _rewardPerTokenPaid[positionId] = _rewardPerTokenPerSetup[setupIndex];
        }
        if (amount > 0) {
            fromExit ? _setups[setupIndex].totalSupply -= amount : _setups[setupIndex].totalSupply += amount;
        }
    }

    function _toggleSetup(uint256 setupIndex) private {
        FarmingSetup storage setup = _setups[setupIndex];
        // require(!setup.active || block.number >= setup.endBlock, "Not valid activation");

        require(block.number > _setupsInfo[setup.infoIndex].startBlock, "Too early for this setup");

        if (setup.active && block.number >= setup.endBlock && _setupsInfo[setup.infoIndex].renewTimes == 0) {
            setup.active = false;
            return;
        } else if (block.number >= setup.startBlock && block.number < setup.endBlock && setup.active) {
            setup.active = false;
            _setupsInfo[setup.infoIndex].renewTimes = 0;
            uint256 amount = (setup.endBlock - block.number) * setup.rewardPerBlock;
            setup.endBlock = block.number;
            _updateFreeSetup(setupIndex, 0, 0, false);
            _rewardReceived[setupIndex] -= amount;
            _giveBack(amount);
            return;
        }

        bool wasActive = setup.active;
        setup.active = _ensureTransfer(setup.rewardPerBlock * _setupsInfo[setup.infoIndex].blockDuration);

        if (setup.active && wasActive) {
            _rewardReceived[_farmingSetupsCount] = setup.rewardPerBlock * _setupsInfo[setup.infoIndex].blockDuration;
            // set new setup
            _setups[_farmingSetupsCount] = abi.decode(abi.encode(setup), (FarmingSetup));
            // update old setup
            _setups[setupIndex].active = false;
            // update new setup
            _setupsInfo[setup.infoIndex].renewTimes -= 1;
            _setupsInfo[setup.infoIndex].setupsCount += 1;
            _setupsInfo[setup.infoIndex].lastSetupIndex = _farmingSetupsCount;
            _setups[_farmingSetupsCount].startBlock = block.number;
            _setups[_farmingSetupsCount].endBlock = block.number + _setupsInfo[_setups[_farmingSetupsCount].infoIndex].blockDuration;
            _setups[_farmingSetupsCount].deprecatedObjectId = 0;
            _setups[_farmingSetupsCount].totalSupply = 0;
            _farmingSetupsCount += 1;
        } else if (setup.active && !wasActive) {
            _rewardReceived[setupIndex] = setup.rewardPerBlock * _setupsInfo[_setups[setupIndex].infoIndex].blockDuration;
            // update new setup
            _setups[setupIndex].startBlock = block.number;
            _setups[setupIndex].endBlock = block.number + _setupsInfo[_setups[setupIndex].infoIndex].blockDuration;
            _setups[setupIndex].totalSupply = 0;
            _setupsInfo[_setups[setupIndex].infoIndex].renewTimes -= 1;
        } else {
            _setupsInfo[_setups[setupIndex].infoIndex].renewTimes = 0;
        }
    }

    /** @dev function used to safely approve ERC20 transfers.
      * @param erc20TokenAddress address of the token to approve.
      * @param to receiver of the approval.
      * @param value amount to approve for.
     */
    function _safeApprove(address erc20TokenAddress, address to, uint256 value) internal virtual {
        if(value == 0) {
            return;
        }
        bytes memory returnData = _call(erc20TokenAddress, abi.encodeWithSelector(IERC20(erc20TokenAddress).approve.selector, to, value));
        require(returnData.length == 0 || abi.decode(returnData, (bool)), 'APPROVE_FAILED');
    }

    /** @dev function used to safe transfer ERC20 tokens.
      * @param erc20TokenAddress address of the token to transfer.
      * @param to receiver of the tokens.
      * @param value amount of tokens to transfer.
     */
    function _safeTransfer(address erc20TokenAddress, address to, uint256 value) internal virtual {
        if(value == 0) {
            return;
        }
        if(erc20TokenAddress == address(0)) {
            (bool result,) = to.call{value : value}("");
            require(result, "TRANSFER_FAILED");
            return;
        }
        bytes memory returnData = _call(erc20TokenAddress, abi.encodeWithSelector(IERC20(erc20TokenAddress).transfer.selector, to, value));
        require(returnData.length == 0 || abi.decode(returnData, (bool)), 'TRANSFER_FAILED');
    }

    /** @dev this function safely transfers the given ERC20 value from an address to another.
      * @param erc20TokenAddress erc20 token address.
      * @param from address from.
      * @param to address to.
      * @param value amount to transfer.
     */
    function _safeTransferFrom(address erc20TokenAddress, address from, address to, uint256 value) private {
        if(value == 0) {
            return;
        }
        bytes memory returnData = _call(erc20TokenAddress, abi.encodeWithSelector(IERC20(erc20TokenAddress).transferFrom.selector, from, to, value));
        require(returnData.length == 0 || abi.decode(returnData, (bool)), 'TRANSFERFROM_FAILED');
    }

    /** @dev calls the contract at the given location using the given payload and returns the returnData.
      * @param location location to call.
      * @param payload call payload.
      * @return returnData call return data.
     */
    function _call(address location, bytes memory payload) private returns(bytes memory returnData) {
        assembly {
            let result := call(gas(), location, 0, add(payload, 0x20), mload(payload), 0, 0)
            let size := returndatasize()
            returnData := mload(0x40)
            mstore(returnData, size)
            let returnDataPayloadStart := add(returnData, 0x20)
            returndatacopy(returnDataPayloadStart, 0, size)
            mstore(0x40, add(returnDataPayloadStart, size))
            switch result case 0 {revert(returnDataPayloadStart, size)}
        }
    }

    /** @dev gives back the reward to the extension.
      * @param amount to give back.
     */
    function _giveBack(uint256 amount) private {
        if(amount == 0) {
            return;
        }
        if (_rewardTokenAddress == address(0)) {
            IFarmExtensionRegular(host).backToYou{value : amount}(amount);
        } else {
            _safeApprove(_rewardTokenAddress, host, amount);
            IFarmExtensionRegular(host).backToYou(amount);
        }
    }

    /** @dev ensures the transfer from the contract to the extension.
      * @param amount amount to transfer.
     */
    function _ensureTransfer(uint256 amount) private returns(bool) {
        uint256 initialBalance = _rewardTokenAddress == address(0) ? address(this).balance : IERC20(_rewardTokenAddress).balanceOf(address(this));
        uint256 expectedBalance = initialBalance + amount;
        try IFarmExtensionRegular(host).transferTo(amount) {} catch {}
        uint256 actualBalance = _rewardTokenAddress == address(0) ? address(this).balance : IERC20(_rewardTokenAddress).balanceOf(address(this));
        if(actualBalance == expectedBalance) {
            return true;
        }
        _giveBack(actualBalance - initialBalance);
        return false;
    }

    /// @dev Common checks for valid tick inputs.
    function _checkTicks(int24 tickLower, int24 tickUpper) private pure {
        require(tickLower < tickUpper, 'TLU');
        require(tickLower >= TickMath.MIN_TICK, 'TLM');
        require(tickUpper <= TickMath.MAX_TICK, 'TUM');
    }

    // only called from gen2 code
    function _retrieveGen2LiquidityAndFees(uint256 positionId, uint256 tokenId, address recipient, uint128 liquidityToRemove, uint256 amount0Min, uint256 amount1Min, bytes memory burnData) private {
        uint256 decreasedAmount0 = 0;
        uint256 decreasedAmount1 = 0;

        if(liquidityToRemove > 0) {
            (decreasedAmount0, decreasedAmount1) = nonfungiblePositionManager.decreaseLiquidity(INonfungiblePositionManager.DecreaseLiquidityParams(
                tokenId,
                liquidityToRemove,
                amount0Min,
                amount1Min,
                block.timestamp + 10000
            ));
        }

        address token0;
        address token1;
        uint256 collectedAmount0;
        uint256 collectedAmount1;
        (token0, token1, collectedAmount0, collectedAmount1) = _collect(positionId, tokenId);
        uint256 feeAmount0 = collectedAmount0 - decreasedAmount0;
        uint256 feeAmount1 = collectedAmount1 - decreasedAmount1;
        if(feeAmount0 > 0 || feeAmount1 > 0) {
            if(burnData.length == 0) {
                feeAmount0 = feeAmount0 == 0 ? 0 : _payFee(token0, feeAmount0);
                feeAmount1 = feeAmount1 == 0 ? 0 : _payFee(token1, feeAmount1);
            } else {
                feeAmount0 = 0;
                feeAmount1 = 0;
                _burnFee(burnData);
            }
        }
        _safeTransfer(token0, recipient, collectedAmount0 - feeAmount0);
        _safeTransfer(token1, recipient, collectedAmount1 - feeAmount1);
    }

    function _payFee(address tokenAddress, uint256 feeAmount) private returns (uint256) {
        if(tokenAddress != address(0)) {
            _safeApprove(tokenAddress, IFarmFactory(initializer).initializer(), feeAmount);
        }
        return IFarmFactory(initializer).payFee{value : tokenAddress != address(0) ? 0 : feeAmount}(address(this), tokenAddress, feeAmount, "");
    }

    function _burnFee(bytes memory burnData) private returns (uint256) {
        (, burnData) = abi.decode(burnData, (bool, bytes));
        return IFarmFactory(initializer).burnOrTransferToken(msg.sender, burnData);
    }

    function _collect(uint256 positionId, uint256 tokenId) private returns (address token0, address token1, uint256 amount0, uint256 amount1) {
        bool involvingETH = _setupsInfo[_setups[_positions[positionId].setupIndex].infoIndex].involvingETH;
        bytes[] memory data = new bytes[](involvingETH ? 3 : 1);
        data[0] = abi.encodeWithSelector(nonfungiblePositionManager.collect.selector, INonfungiblePositionManager.CollectParams({
            tokenId: tokenId,
            recipient: involvingETH ? address(0) : address(this),
            amount0Max: 0xffffffffffffffffffffffffffffffff,
            amount1Max: 0xffffffffffffffffffffffffffffffff
        }));
        (,, token0, token1, , , , , , , , ) = nonfungiblePositionManager.positions(tokenId);
        if(involvingETH) {
            data[1] = abi.encodeWithSelector(nonfungiblePositionManager.unwrapWETH9.selector, 0, address(this));
            data[2] = abi.encodeWithSelector(nonfungiblePositionManager.sweepToken.selector, token0 == _WETH ? token1 : token0, 0, address(this));
            token0 = token0 == _WETH ? address(0) : token0;
            token1 = token1 == _WETH ? address(0) : token1;
        }
        (amount0, amount1) = abi.decode(IMulticall(address(nonfungiblePositionManager)).multicall(data)[0], (uint256, uint256));
    }
}

interface IFarmFactory {
    function initializer() external view returns (address);
    function payFee(address sender, address tokenAddress, uint256 value, bytes calldata permitSignature) external payable returns (uint256 feePaid);
    function burnOrTransferToken(address sender, bytes calldata permitSignature) external payable returns(uint256 amountTransferedOrBurnt);
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"rewardTokenAddress","type":"address"}],"name":"RewardToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"mainToken","type":"address"},{"indexed":true,"internalType":"address","name":"involvedToken","type":"address"}],"name":"SetupToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"positionId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ONE_HUNDRED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_farmingSetupsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_farmingSetupsInfoCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_rewardPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_rewardReceived","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"positionId","type":"uint256"},{"internalType":"uint128","name":"removedLiquidity","type":"uint128"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"bytes","name":"burnData","type":"bytes"}],"name":"_withdrawLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"setupInfoIndex","type":"uint256"}],"name":"activateSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"positionId","type":"uint256"},{"components":[{"internalType":"uint256","name":"setupIndex","type":"uint256"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"address","name":"positionOwner","type":"address"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"}],"internalType":"struct FarmingPositionRequest","name":"request","type":"tuple"}],"name":"addLiquidity","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"positionId","type":"uint256"},{"internalType":"bool","name":"isExt","type":"bool"}],"name":"calculateFreeFarmingReward","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"finalFlush","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"host","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initializer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"lazyInitData","type":"bytes"}],"name":"lazyInit","outputs":[{"internalType":"bytes","name":"extensionReturnCall","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nonfungiblePositionManager","outputs":[{"internalType":"contract INonfungiblePositionManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"setupIndex","type":"uint256"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"address","name":"positionOwner","type":"address"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"}],"internalType":"struct FarmingPositionRequest","name":"request","type":"tuple"}],"name":"openPosition","outputs":[{"internalType":"uint256","name":"positionId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"positionId","type":"uint256"}],"name":"position","outputs":[{"components":[{"internalType":"address","name":"uniqueOwner","type":"address"},{"internalType":"uint256","name":"setupIndex","type":"uint256"},{"internalType":"uint256","name":"creationBlock","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"reward","type":"uint256"}],"internalType":"struct FarmingPosition","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"add","type":"bool"},{"internalType":"bool","name":"disable","type":"bool"},{"internalType":"uint256","name":"index","type":"uint256"},{"components":[{"internalType":"uint256","name":"blockDuration","type":"uint256"},{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"originalRewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"minStakeable","type":"uint256"},{"internalType":"uint256","name":"renewTimes","type":"uint256"},{"internalType":"address","name":"liquidityPoolTokenAddress","type":"address"},{"internalType":"address","name":"mainTokenAddress","type":"address"},{"internalType":"bool","name":"involvingETH","type":"bool"},{"internalType":"uint256","name":"setupsCount","type":"uint256"},{"internalType":"uint256","name":"lastSetupIndex","type":"uint256"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"}],"internalType":"struct FarmingSetupInfo","name":"info","type":"tuple"}],"internalType":"struct FarmingSetupConfiguration[]","name":"farmingSetups","type":"tuple[]"}],"name":"setFarmingSetups","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"setupIndex","type":"uint256"}],"name":"setup","outputs":[{"components":[{"internalType":"uint256","name":"infoIndex","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"},{"internalType":"uint256","name":"lastUpdateBlock","type":"uint256"},{"internalType":"uint256","name":"deprecatedObjectId","type":"uint256"},{"internalType":"uint256","name":"rewardPerBlock","type":"uint256"},{"internalType":"uint128","name":"totalSupply","type":"uint128"}],"internalType":"struct FarmingSetup","name":"","type":"tuple"},{"components":[{"internalType":"uint256","name":"blockDuration","type":"uint256"},{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"originalRewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"minStakeable","type":"uint256"},{"internalType":"uint256","name":"renewTimes","type":"uint256"},{"internalType":"address","name":"liquidityPoolTokenAddress","type":"address"},{"internalType":"address","name":"mainTokenAddress","type":"address"},{"internalType":"bool","name":"involvingETH","type":"bool"},{"internalType":"uint256","name":"setupsCount","type":"uint256"},{"internalType":"uint256","name":"lastSetupIndex","type":"uint256"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"}],"internalType":"struct FarmingSetupInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"setups","outputs":[{"components":[{"internalType":"uint256","name":"infoIndex","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"},{"internalType":"uint256","name":"lastUpdateBlock","type":"uint256"},{"internalType":"uint256","name":"deprecatedObjectId","type":"uint256"},{"internalType":"uint256","name":"rewardPerBlock","type":"uint256"},{"internalType":"uint128","name":"totalSupply","type":"uint128"}],"internalType":"struct FarmingSetup[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"setupInfoIndex","type":"uint256"}],"name":"toggleSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"positionId","type":"uint256"},{"internalType":"uint128","name":"removedLiquidity","type":"uint128"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"bytes","name":"burnData","type":"bytes"}],"name":"withdrawLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"positionId","type":"uint256"},{"internalType":"uint128","name":"removedLiquidity","type":"uint128"},{"internalType":"bytes","name":"burnData","type":"bytes"}],"name":"withdrawLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"positionId","type":"uint256"}],"name":"withdrawReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x60806040526004361061014f5760003560e01c806365d99b17116100b6578063cea265871161006f578063cea2658714610381578063d5d3a927146103a1578063d8ff139a146103c1578063de859680146103e1578063f437bc5914610401578063f7a95a9e1461041657610156565b806365d99b17146102ef57806379fe40081461030f5780639ce110d714610322578063ab2c3f1514610337578063b44a272214610357578063bfaa8cca1461036c57610156565b8063457f4bcc11610108578063457f4bcc1461022b57806349fd034a14610258578063523a3f081461026d57806354c1fc321461028d5780635843c0d4146102af5780635c4b4064146102cf57610156565b806305c85b401461015b57806310ba98561461018657806314629d56146101a8578063207c6efa146101bb57806340f1f4af146101e85780634313b9e5146101fd57610156565b3661015657005b600080fd5b34801561016757600080fd5b50610170610443565b60405161017d9190614c4a565b60405180910390f35b34801561019257600080fd5b506101a66101a13660046148ec565b610452565b005b6101a66101b636600461494b565b6104d0565b3480156101c757600080fd5b506101db6101d63660046148ec565b610691565b60405161017d919061558c565b3480156101f457600080fd5b506101db6106a3565b34801561020957600080fd5b5061021d6102183660046148ec565b6106a9565b60405161017d92919061534e565b34801561023757600080fd5b5061024b6102463660046147bc565b61089b565b60405161017d9190614dc7565b34801561026457600080fd5b506101db610aee565b34801561027957600080fd5b506101a66102883660046148ec565b610af4565b34801561029957600080fd5b506102a2610b66565b60405161017d9190614d78565b3480156102bb57600080fd5b506101a66102ca366004614a0a565b610c6a565b3480156102db57600080fd5b506101db6102ea36600461491c565b610cd3565b3480156102fb57600080fd5b506101a661030a366004614a0a565b610e8f565b6101db61031d3660046147ee565b611146565b34801561032e57600080fd5b50610170611368565b34801561034357600080fd5b506101db6103523660046148ec565b611377565b34801561036357600080fd5b50610170611389565b34801561037857600080fd5b506101db611398565b34801561038d57600080fd5b506101a661039c3660046143af565b6113a4565b3480156103ad57600080fd5b506101a66103bc366004614977565b6115cc565b3480156103cd57600080fd5b506101a66103dc3660046148ec565b611634565b3480156103ed57600080fd5b506101a66103fc36600461449f565b6116b1565b34801561040d57600080fd5b50610170611757565b34801561042257600080fd5b506104366104313660046148ec565b611766565b60405161017d9190615310565b6002546001600160a01b031681565b60008181526004602090815260408083206008015480845260069092529091206001015460ff168015610495575060008181526006602052604090206003015443115b6104ba5760405162461bcd60e51b81526004016104b190615051565b60405180910390fd5b6104c3816117c9565b6104cc81611b6b565b5050565b805160008181526006602052604090206001015460ff166105035760405162461bcd60e51b81526004016104b190615211565b6000818152600660205260409020600201544310801590610534575060008181526006602052604090206003015443105b6105505760405162461bcd60e51b81526004016104b190614ed7565b60008381526008602052604090205483906001600160a01b031633148015610588575060008181526008602052604090206002015415155b6105a45760405162461bcd60e51b81526004016104b190614f4e565b6000848152600860209081526040808320600181015484526006928390529220600781015491810154600482015491926001600160801b031691430302670de0b6b3a764000002816105f257fe5b60018401546000908152600960205260408120805493909204909201905561061b908790610cd3565b826004018190555060006106388360010154878560030154611bf3565b600194909401546000908152600960209081526040808320549a8352600a9091529020979097555043600482015560070180546001600160801b031981166001600160801b039182169093011691909117905550505050565b600c6020526000908152604090205481565b60055481565b6106b1613f6a565b6106b9613fba565b6006600084815260200190815260200160002060046000600660008781526020019081526020016000206000015481526020019081526020016000208160405180610100016040529081600082015481526020016001820160009054906101000a900460ff1615151515815260200160028201548152602001600382015481526020016004820154815260200160058201548152602001600682015481526020016007820160009054906101000a90046001600160801b03166001600160801b03166001600160801b0316815250509150806040518061018001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016006820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016006820160149054906101000a900460ff1615151515815260200160078201548152602001600882015481526020016009820160009054906101000a900460020b60020b60020b81526020016009820160039054906101000a900460020b60020b60020b81525050905091509150915091565b6000546060906001600160a01b0316156108c75760405162461bcd60e51b81526004016104b1906151ad565b600080546001600160a01b0319163317815582516108ee9084016020908101908501614266565b80945081925050506000806000808680602001905181019061091091906142b4565b600180546001600160a01b0319166001600160a01b038616908117909155939750919550935091506109545760405162461bcd60e51b81526004016104b190615162565b600280546001600160a01b0319166001600160a01b0384169081179091556040517fd9078653fc0ab56789d31bc2c38fcaecf28034549baf737c02b719513837563b90600090a2825160208401207fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470146109e1576001546109de906001600160a01b03168461236e565b95505b600380546001600160a01b0319166001600160a01b038716908117909155604080516312a9293f60e21b81529051634aa4a4fc91600480820192602092909190829003018186803b158015610a3557600080fd5b505afa158015610a49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6d919061424a565b600e80546001600160a01b0319166001600160a01b0392909216919091179055805115610ae457600081806020019051810190610aaa919061464f565b905060005b8151811015610ae157610ad9828281518110610ac757fe5b602002602001015160016000806123b0565b600101610aaf565b50505b5050505050919050565b60075481565b60008181526008602052604090205481906001600160a01b031633148015610b2c575060008181526008602052604090206002015415155b610b485760405162461bcd60e51b81526004016104b190614f4e565b6104cc82600080600060405180602001604052806000815250612b8b565b606060006007546001600160401b0381118015610b8257600080fd5b50604051908082528060200260200182016040528015610bbc57816020015b610ba9613f6a565b815260200190600190039081610ba15790505b50905060005b600754811015610c645760008181526006602081815260409283902083516101008101855281548152600182015460ff161515928101929092526002810154938201939093526003830154606082015260048301546080820152600583015460a08201529082015460c08201526007909101546001600160801b031660e08201528251839083908110610c5157fe5b6020908102919091010152600101610bc2565b50905090565b60008581526008602052604090205485906001600160a01b031633148015610ca2575060008181526008602052604090206002015415155b610cbe5760405162461bcd60e51b81526004016104b190614f4e565b610ccb8686868686610e8f565b505050505050565b6000828152600860209081526040808320815160a08101835281546001600160a01b0316815260018201549381019390935260028101549183019190915260038101546060830181905260049091015460808301528290610d3390612ce0565b6000868152600a6020908152604080832054868301518452600990925290912054919250670de0b6b3a764000091036001600160801b038316020492508315610e83576020808301516000908152600690915260408120600301544310610db157602080840151600090815260069091526040902060030154610db3565b435b602080850180516000908152600690925260408083206002015491518352822060040154929350909110610dfe57602080850151600090815260069091526040902060040154610e17565b6020808501516000908152600690915260409020600201545b6020858101805160009081526006928390526040808220600701549251825281209092015492935090916001600160801b039091169083850302670de0b6b3a76400000281610e6257fe5b049050670de0b6b3a76400006001600160801b038516820204860195505050505b50608001510192915050565b60008581526008602052604081206003810154909190610eae90612ce0565b90508160020154600014158015610ed75750806001600160801b0316866001600160801b031611155b8015610eec575081546001600160a01b031633145b610f085760405162461bcd60e51b81526004016104b190614f24565b610f158787878787612b8b565b6001820154600090815260066020526040902060070180546001600160801b031981166001600160801b03918216899003821617909155908690039081166110fc5760018201546000908152600b6020908152604091829020805460001901905560038054835160808101855291860154825285546001600160a01b03908116938301939093526001600160801b0382850181905260608301529251919092169163fc6f786560e01b91610fcc919060240161528a565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b031990941693909317909252905161100a9190614c2b565b6000604051808303816000865af19150503d8060008114611047576040519150601f19603f3d011682016040523d82523d6000602084013e61104c565b606091505b50506003805490840154604051630852cd8d60e31b81526001600160a01b0390921692506342966c6891611083919060040161558c565b600060405180830381600087803b15801561109d57600080fd5b505af11580156110b1573d6000803e3d6000fd5b505050506110c28260010154611b6b565b600087815260086020526040812080546001600160a01b03191681556001810182905560028101829055600381018290556004015561113d565b6001820154600090815260066020908152604080832054835260049091529020600301541561113d5760405162461bcd60e51b81526004016104b1906150b4565b50505050505050565b805160009081526006602052604081206001015460ff1661117b57815160009081526006602052604090205461117b90611634565b815160009081526006602052604090206001015460ff166111ae5760405162461bcd60e51b81526004016104b190615211565b815160009081526006602052604090206002015443108015906111e35750815160009081526006602052604090206003015443105b6111ff5760405162461bcd60e51b81526004016104b190614ed7565b60608201516000906001600160a01b031661121a5733611220565b82606001515b835160405191925061123791839190602001614cff565b60408051601f198184030181529181528151602092830120600081815260089093529120600201549092501561127f5760405162461bcd60e51b81526004016104b190614fbe565b6000806112928560000151866000611bf3565b915091506112a7856000015182866000612d74565b6040805160a0810182526001600160a01b038581168083528851602080850191825243858701908152606086018981526000608088018181528d825260088552898220985189546001600160a01b0319169816979097178855935160018089019190915591516002880155516003870155935160049095019490945589518152600b9093528383208054909201909155915186907f0a429aba3d89849a2db0153e4534d95c46a1d83c8109d73893f55ebc44010ff4908390a4505050919050565b6000546001600160a01b031681565b600d6020526000908152604090205481565b6003546001600160a01b031681565b670de0b6b3a764000081565b60005b600754811015611427576000818152600b60205260409020541580156113df575060008181526006602052604090206001015460ff16155b801561140357506000818152600660205260409020600701546001600160801b0316155b61141f5760405162461bcd60e51b81526004016104b19061523b565b6001016113a7565b50600154604080516339ea509d60e11b815290516000926001600160a01b0316916373d4a13a9160048083019260a0929190829003018186803b15801561146d57600080fd5b505afa158015611481573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a5919061433b565b509350505084831490506114cb5760405162461bcd60e51b81526004016104b190614f9e565b60005b84811015610ccb5760008686838181106114e457fe5b90506020020160208101906114f9919061422e565b9050600085858481811061150957fe5b60200291909101359150506001600160a01b03841661152757600080fd5b6001600160a01b0382166115b7576000846001600160a01b03168260405161154e90614c47565b60006040518083038185875af1925050503d806000811461158b576040519150601f19603f3d011682016040523d82523d6000602084013e611590565b606091505b50509050806115b15760405162461bcd60e51b81526004016104b190615097565b506115c2565b6115c2828583612f23565b50506001016114ce565b60008381526008602052604090205483906001600160a01b031633148015611604575060008181526008602052604090206002015415155b6116205760405162461bcd60e51b81526004016104b190614f4e565b61162e848460008086610e8f565b50505050565b600081815260046020819052604090912001541580159061167757506000818152600460209081526040808320600801548352600690915290206001015460ff16155b6116935760405162461bcd60e51b81526004016104b190615051565b6000818152600460205260409020600801546116ae906117c9565b50565b6001546001600160a01b031633146116db5760405162461bcd60e51b81526004016104b190614eb1565b60005b81518110156104cc5761174f8282815181106116f657fe5b60200260200101516060015183838151811061170e57fe5b60200260200101516000015184848151811061172657fe5b60200260200101516020015185858151811061173e57fe5b6020026020010151604001516123b0565b6001016116de565b6001546001600160a01b031681565b61176e614035565b50600081815260086020908152604091829020825160a08101845281546001600160a01b031681526001820154928101929092526002810154928201929092526003820154606082015260049091015460808201525b919050565b60008181526006602090815260408083208054845260049092529091206001015443116118085760405162461bcd60e51b81526004016104b1906151da565b600181015460ff168015611820575080600301544310155b801561183e5750805460009081526004602081905260409091200154155b1561185357600101805460ff191690556116ae565b8060020154431015801561186a5750806003015443105b801561187a5750600181015460ff165b156118e65760018101805460ff1916905580546000908152600460208190526040822001819055600682015460038301805443918290550302906118c19084908080612d74565b6000838152600c60205260409020805482900390556118df81613052565b50506116ae565b60018101548154600090815260046020526040902054600683015460ff909216916119119102613150565b60018301805460ff1916911515919091179081905560ff1680156119325750805b15611ac257815460009081526004602090815260408083205460068601546007548552600c8452938290209302909255905161197091849101615421565b6040516020818303038152906040528060200190518101906119929190614809565b60078054600090815260066020818152604080842086518155868301516001808301805492151560ff199384161790558884015160028085019190915560608a015160038086019190915560808b015160048087019190915560a08c015160058088019190915560c08d0151878b015560e0909c0151958b0180546001600160801b039097166001600160801b03199788161790558e8a52868a20840180549095169094558c548952838752858920840180546000190190558c5489528589208a0180548401905589548d548a52868a2060080181905589528787528589204392018290558954895285892080548a529387528589205497909652959095019301929092558454845280842090950183905583548352939091208201805490931690925580549091019055611b66565b600182015460ff168015611ad4575080155b15611b475760008381526006602081815260408084208054855260048084528286205494880154898752600c8552838720950290945543600282018190558154865292849052932080549091016003840155600790920180546001600160801b0319169055018054600019019055611b66565b6000838152600660209081526040808320548352600491829052822001555b505050565b6000818152600b6020526040902054158015611b99575060008181526006602052604090206001015460ff16155b156116ae576000908152600660208190526040822082815560018101805460ff19169055600281018390556003810183905560048101839055600581018390559081019190915560070180546001600160801b0319169055565b600083815260066020818152604080842081516101008101835281548152600182015460ff161515938101939093526002810154918301919091526003810154606083015260048101546080830152600581015460a08301529182015460c08201526007909101546001600160801b031660e08201528291908190611c789086613317565b6000878152600660208181526040808420548452600480835281852082516101808101845281548152600182015494810194909452600280820154938501939093526003810154606085015290810154608084015260058101546001600160a01b0390811660a08501529381015493841660c0840152600160a01b90930460ff16151560e083018190526007840154610100840152600884015461012084015260099093015480820b820b820b61014084015263010000009004810b810b900b610160820152929350611d4c576001611d4f565b60025b60ff166001600160401b0381118015611d6757600080fd5b50604051908082528060200260200182016040528015611d9b57816020015b6060815260200190600190039081611d865790505b50905060008260a001516001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015611ddd57600080fd5b505afa158015611df1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e15919061424a565b905060008360a001516001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015611e5657600080fd5b505afa158015611e6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e8e919061424a565b905060008460e00151611ea2576000611ec7565b600e546001600160a01b03848116911614611ec1578960400151611ec7565b89602001515b90506000808660e0015115611f1a576040805160048152602481019091526020810180516001600160e01b0316630910874560e11b179052865187906001908110611f0e57fe5b60200260200101819052505b8961214457638831645660e01b604051806101600160405280876001600160a01b03168152602001866001600160a01b031681526020018960a001516001600160a01b031663ddca3f436040518163ffffffff1660e01b815260040160206040518083038186803b158015611f8e57600080fd5b505afa158015611fa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc691906148d2565b62ffffff16815260200189610140015160020b815260200189610160015160020b81526020018e6020015181526020018e6040015181526020018e6080015181526020018e60a001518152602001306001600160a01b03168152602001426127100181525060405160240161203b91906154de565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050508660008151811061207b57fe5b6020908102919091010152600354604051631592ca1b60e31b81526001600160a01b039091169063ac9650d89085906120b8908a90600401614d18565b6000604051808303818588803b1580156120d157600080fd5b505af11580156120e5573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f1916820160405261210e9190810190614417565b60008151811061211a57fe5b602002602001015180602001905181019061213591906149cd565b929c50909a509250905061229f565b63219f5d1760e01b6040518060c001604052808c81526020018e6020015181526020018e6040015181526020018e6080015181526020018e60a001518152602001426127100181525060405160240161219d919061549a565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050866000815181106121dd57fe5b6020908102919091010152600354604051631592ca1b60e31b81526001600160a01b039091169063ac9650d890859061221a908a90600401614d18565b6000604051808303818588803b15801561223357600080fd5b505af1158015612247573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f191682016040526122709190810190614417565b60008151811061227c57fe5b6020026020010151806020019051810190612297919061489c565b919a50925090505b606087015188156122b057816122b2565b825b10156122d05760405162461bcd60e51b81526004016104b190614e7a565b8b60200151821015612317576123178760e0015180156122fd5750600e546001600160a01b038781169116145b612307578561230a565b60005b33848f6020015103612f23565b8b6040015181101561235e5761235e8760e0015180156123445750600e546001600160a01b038681169116145b61234e5784612351565b60005b33838f6040015103612f23565b5050505050505050935093915050565b60606000808351602085016000875af13d604051925080835260208301816000823e8082016040528280156123a2576123a6565b8282fd5b5050505092915050565b8383806123bb575082155b156123de57608081018051600101908190526123de576080810180516000190190525b83156129385760a08101516001600160a01b031615801590612404575060008160400151115b6124205760405162461bcd60e51b81526004016104b1906150fe565b612434816101400151826101600151613711565b6040805160028082526060820183526000926020830190803683370190505090508560a001516001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561249257600080fd5b505afa1580156124a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ca919061424a565b816000815181106124d757fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508560a001516001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561253457600080fd5b505afa158015612548573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061256c919061424a565b8160018151811061257957fe5b60200260200101906001600160a01b031690816001600160a01b03168152505060008060005b835181101561267b57600e5484516001600160a01b03909116908590839081106125c557fe5b60200260200101516001600160a01b031614156125e157600191505b8460c001516001600160a01b03168482815181106125fb57fe5b60200260200101516001600160a01b0316141561261b5760019250612673565b83818151811061262757fe5b60200260200101516001600160a01b03168560c001516001600160a01b03167fceb0f4ddf364ffb007b08eed9029e1e7e711b894ed4ae9309f30527d3611668960405160405180910390a35b60010161259f565b50816126995760405162461bcd60e51b81526004016104b19061500d565b8360e0015115806126a75750805b6126c35760405162461bcd60e51b81526004016104b190614e54565b60008461010001818152505083600460006005548152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a08201518160050160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060c08201518160060160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060e08201518160060160146101000a81548160ff021916908315150217905550610100820151816007015561012082015181600801556101408201518160090160006101000a81548162ffffff021916908360020b62ffffff1602179055506101608201518160090160036101000a81548162ffffff021916908360020b62ffffff1602179055509050506040518061010001604052806005548152602001600015158152602001600081526020016000815260200160008152602001600081526020018560400151815260200160006001600160801b03168152506006600060075481526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff02191690831515021790555060408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070160006101000a8154816001600160801b0302191690836001600160801b0316021790555090505060075460046000600554815260200190815260200160002060080181905550600160056000828254019250508190555060016007600082825401925050819055505050505061162e565b5060008181526006602081815260408084208054855260048084529482902082516101808101845281548152600182015494810194909452600280820154938501939093526003810154606085015294850154608084015260058501546001600160a01b0390811660a08501529385015493841660c0840152600160a01b90930460ff16151560e08301526007840154610100830152600884015461012083015260099093015480840b840b840b61014083015263010000009004830b830b90920b6101608301528315612a3a57600181015460ff16612a2a5760405162461bcd60e51b81526004016104b190614efe565b612a33836117c9565b505061162e565b608086018051600019019052600181015460ff1615612b3b575060008281526006602052604090206003810154431015612b165760008260400151876040015110612a8f578260400151876040015103612a9b565b86604001518360400151035b60038301549091504390038082028015612b1257846040015189604001511115612af957612ac881613150565b612ae45760405162461bcd60e51b81526004016104b190614df6565b6000868152600c602052604090208054820190555b612b07866000806000612d74565b604089015160068501555b5050505b6040808701516000858152600660209081528382205482526004905291909120600201555b6000838152600660209081526040808320548352600491829052909120015415610ccb57608086015160008481526006602090815260408083205483526004918290529091200155505050505050565b60008581526008602090815260408083206001810154845260069092529091206004820154600382015443908111612bc35780612bc9565b82600301545b6007840154600685015460048601549293506001600160801b0390911691830302670de0b6b3a76400000281612bfb57fe5b600186015460009081526009602052604081208054939092049092019055612c24908a90610cd3565b60018501546000908152600960209081526040808320548d8452600a90925282205560048087019190915584018290556002548554919350612c73916001600160a01b03918216911684612f23565b60038401548454612c92918b916001600160a01b03168b8b8b8b613785565b60018401546000908152600d6020526040902080548301905560038301544310801590612cc35750600183015460ff165b15612cd557612cd584600101546117c9565b505050505050505050565b60035460405163133f757160e31b81526000916001600160a01b0316906399fbab8890612d1190859060040161558c565b6101806040518083038186803b158015612d2a57600080fd5b505afa158015612d3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d629190614a97565b50929c9b505050505050505050505050565b6000848152600660205260408120600301544310612da357600085815260066020526040902060030154612da5565b435b6000868152600660205260409020600701549091506001600160801b031615612e66576000858152600660205260408120600281015460049091015410612dfd57600086815260066020526040902060040154612e10565b6000868152600660205260409020600201545b600087815260066020819052604090912060078101549101549192506001600160801b03169082840302670de0b6b3a76400000281612e4b57fe5b60008881526009602052604090208054929091049091019055505b60008581526006602052604090206004018190558215612e9f57600085815260096020908152604080832054868452600a909252909120555b6001600160801b03841615612f1c5781612eea57600085815260066020526040902060070180546001600160801b031981166001600160801b03918216870191821617909155610ccb565b600085815260066020526040902060070180546001600160801b03808216879003166001600160801b03199091161790555b5050505050565b80612f2d57611b66565b6001600160a01b038316612fbd576000826001600160a01b031682604051612f5490614c47565b60006040518083038185875af1925050503d8060008114612f91576040519150601f19603f3d011682016040523d82523d6000602084013e612f96565b606091505b5050905080612fb75760405162461bcd60e51b81526004016104b190614fe4565b50611b66565b60006130158463a9059cbb60e01b8585604051602401612fde929190614cff565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261236e565b90508051600014806130365750808060200190518101906130369190614783565b61162e5760405162461bcd60e51b81526004016104b190614fe4565b8061305c576116ae565b6002546001600160a01b03166130d5576001546040516302b492b560e11b81526001600160a01b0390911690630569256a90839061309e90829060040161558c565b6000604051808303818588803b1580156130b757600080fd5b505af11580156130cb573d6000803e3d6000fd5b50505050506116ae565b6002546001546130f2916001600160a01b039081169116836138fc565b6001546040516302b492b560e11b81526001600160a01b0390911690630569256a9061312290849060040161558c565b600060405180830381600087803b15801561313c57600080fd5b505af1158015612f1c573d6000803e3d6000fd5b60025460009081906001600160a01b0316156131eb576002546040516370a0823160e01b81526001600160a01b03909116906370a0823190613196903090600401614c4a565b60206040518083038186803b1580156131ae57600080fd5b505afa1580156131c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131e69190614904565b6131ed565b475b60015460405163ba0f49b760e01b8152919250848301916001600160a01b039091169063ba0f49b79061322490879060040161558c565b600060405180830381600087803b15801561323e57600080fd5b505af192505050801561324f575060015b506002546000906001600160a01b0316156132e9576002546040516370a0823160e01b81526001600160a01b03909116906370a0823190613294903090600401614c4a565b60206040518083038186803b1580156132ac57600080fd5b505afa1580156132c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132e49190614904565b6132eb565b475b90508181141561330157600193505050506117c4565b61330c838203613052565b506000949350505050565b60408051600280825260608201835260009283929190602083019080368337019050508451600090815260046020818152604092839020600501548351630dfe168160e01b815293519495506001600160a01b031693630dfe1681938084019390829003018186803b15801561338c57600080fd5b505afa1580156133a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133c4919061424a565b816000815181106133d157fe5b6001600160a01b0392831660209182029290920181019190915285516000908152600480835260409182902060050154825163d21220a760e01b8152925194169363d21220a79383830193909290829003018186803b15801561343357600080fd5b505afa158015613447573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061346b919061424a565b8160018151811061347857fe5b60200260200101906001600160a01b031690816001600160a01b031681525050806000815181106134a557fe5b6020908102919091018101518551600090815260049092526040909120600601546001600160a01b039081169116146134df5760016134e2565b60005b60408051600280825260608201835260ff939093169450600092909160208301908036833701905050905083602001518160008151811061351f57fe5b60200260200101818152505083604001518160018151811061353d57fe5b6020026020010181815250506004600086600001518152602001908152602001600020600301548260008151811061357157fe5b6020908102919091018101518751600090815260049092526040909120600601546001600160a01b039081169116146135be57816001815181106135b157fe5b60200260200101516135d4565b816000815181106135cb57fe5b60200260200101515b10156135f25760405162461bcd60e51b81526004016104b19061525e565b60005b8251811015613708578551600090815260046020526040902060060154600160a01b900460ff16801561364c575082818151811061362f57fe5b6020908102919091010151600e546001600160a01b039081169116145b156136885781818151811061365d57fe5b602002602001015134146136835760405162461bcd60e51b81526004016104b190615135565b613700565b6136ba83828151811061369757fe5b602002602001015133308585815181106136ad57fe5b6020026020010151613964565b6137008382815181106136c957fe5b6020026020010151600360009054906101000a90046001600160a01b03168484815181106136f357fe5b60200260200101516138fc565b6001016135f5565b50505092915050565b8060020b8260020b126137365760405162461bcd60e51b81526004016104b190614e37565b620d89e719600283900b121561375e5760405162461bcd60e51b81526004016104b19061507a565b620d89e8600282900b13156104cc5760405162461bcd60e51b81526004016104b190615034565b6000806001600160801b0386161561384e576003546040805160a0810182528a81526001600160801b038916602082015280820188905260608101879052612710420160808201529051630624e65f60e11b81526001600160a01b0390921691630c49ccbe916137f7916004016152cd565b6040805180830381600087803b15801561381057600080fd5b505af1158015613824573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138489190614a74565b90925090505b60008060008061385e8d8d6139ce565b929650909450925090508582038582038115158061387c5750600081115b156138d15788516138c057811561389c576138978683613d8b565b61389f565b60005b915080156138b6576138b18582613d8b565b6138b9565b60005b90506138d1565b5060009050806138cf89613ec8565b505b6138de868e848703612f23565b6138eb858e838603612f23565b505050505050505050505050505050565b8061390657611b66565b60006139278463095ea7b360e01b8585604051602401612fde929190614cff565b90508051600014806139485750808060200190518101906139489190614783565b61162e5760405162461bcd60e51b81526004016104b190615185565b8061396e5761162e565b6000613991856323b872dd60e01b868686604051602401612fde93929190614cb5565b90508051600014806139b25750808060200190518101906139b29190614783565b612f1c5760405162461bcd60e51b81526004016104b190614f71565b60008281526008602090815260408083206001015483526006808352818420548452600490925282200154819081908190600160a01b900460ff168181613a16576001613a19565b60035b60ff166001600160401b0381118015613a3157600080fd5b50604051908082528060200260200182016040528015613a6557816020015b6060815260200190600190039081613a505790505b50905063fc6f786560e01b604051806080016040528089815260200184613a8c5730613a8f565b60005b6001600160a01b031681526001600160801b036020820181905260409182015251613abd919060240161528a565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505081600081518110613afd57fe5b602090810291909101015260035460405163133f757160e31b81526001600160a01b03909116906399fbab8890613b38908a9060040161558c565b6101806040518083038186803b158015613b5157600080fd5b505afa158015613b65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b899190614a97565b50979f50959d505089159750613cd196505050505050505760405163125012df60e21b90613bbe906000903090602401614dda565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505081600181518110613bfe57fe5b6020908102919091010152600e5463df2ab5bb60e01b906001600160a01b03888116911614613c2d5786613c2f565b855b600030604051602401613c4493929190614cd9565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505081600281518110613c8457fe5b6020908102919091010152600e546001600160a01b03878116911614613caa5785613cad565b60005b600e549096506001600160a01b03868116911614613ccb5784613cce565b60005b94505b600354604051631592ca1b60e31b81526001600160a01b039091169063ac9650d890613d01908490600401614d18565b600060405180830381600087803b158015613d1b57600080fd5b505af1158015613d2f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613d579190810190614417565b600081518110613d6357fe5b6020026020010151806020019051810190613d7e9190614a74565b9699959850965050505050565b60006001600160a01b03831615613e2a57613e2a8360008054906101000a90046001600160a01b03166001600160a01b0316639ce110d76040518163ffffffff1660e01b815260040160206040518083038186803b158015613dec57600080fd5b505afa158015613e00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e24919061424a565b846138fc565b6000546001600160a01b039081169063b6914458908516613e4b5783613e4e565b60005b3086866040518563ffffffff1660e01b8152600401613e6f93929190614c5e565b6020604051808303818588803b158015613e8857600080fd5b505af1158015613e9c573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190613ec19190614904565b9392505050565b600081806020019051810190613ede919061479f565b600054604051630c12648f60e41b81529194506001600160a01b0316915063c12648f090613f129033908690600401614c91565b602060405180830381600087803b158015613f2c57600080fd5b505af1158015613f40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f649190614904565b92915050565b60405180610100016040528060008152602001600015158152602001600081526020016000815260200160008152602001600081526020016000815260200160006001600160801b031681525090565b604051806101800160405280600081526020016000815260200160008152602001600081526020016000815260200160006001600160a01b0316815260200160006001600160a01b031681526020016000151581526020016000815260200160008152602001600060020b8152602001600060020b81525090565b6040518060a0016040528060006001600160a01b03168152602001600081526020016000815260200160008152602001600081525090565b80356117c481615634565b80516117c481615634565b60008083601f840112614094578182fd5b5081356001600160401b038111156140aa578182fd5b60208301915083602080830285010111156140c457600080fd5b9250929050565b80356117c481615649565b80516117c481615649565b600082601f8301126140f1578081fd5b81356141046140ff826155d5565b615595565b818152846020838601011115614118578283fd5b816020850160208301379081016020019190915292915050565b600082601f830112614142578081fd5b81516141506140ff826155d5565b818152846020838601011115614164578283fd5b6141758260208301602087016155fc565b949350505050565b80356117c481615657565b80516117c481615657565b600060c082840312156141a4578081fd5b60405160c081018181106001600160401b03821117156141c057fe5b806040525080915082358152602083013560208201526040830135604082015260608301356141ee81615634565b806060830152506080830135608082015260a083013560a08201525092915050565b80516117c481615666565b805162ffffff811681146117c457600080fd5b60006020828403121561423f578081fd5b8135613ec181615634565b60006020828403121561425b578081fd5b8151613ec181615634565b60008060408385031215614278578081fd5b825161428381615634565b60208401519092506001600160401b0381111561429e578182fd5b6142aa85828601614132565b9150509250929050565b600080600080608085870312156142c9578182fd5b84516142d481615634565b60208601519094506001600160401b03808211156142f0578384fd5b6142fc88838901614132565b94506040870151915061430e82615634565b606087015191935080821115614322578283fd5b5061432f87828801614132565b91505092959194509250565b600080600080600060a08688031215614352578283fd5b855161435d81615634565b602087015190955061436e81615649565b604087015190945061437f81615634565b606087015190935061439081615634565b60808701519092506143a181615634565b809150509295509295909350565b600080600080604085870312156143c4578182fd5b84356001600160401b03808211156143da578384fd5b6143e688838901614083565b909650945060208701359150808211156143fe578384fd5b5061440b87828801614083565b95989497509550505050565b60006020808385031215614429578182fd5b82516001600160401b0381111561443e578283fd5b8301601f8101851361444e578283fd5b805161445c6140ff826155b8565b81815283810190838501865b848110156144915761447f8a888451890101614132565b84529286019290860190600101614468565b509098975050505050505050565b600060208083850312156144b1578182fd5b82356001600160401b03808211156144c7578384fd5b818501915085601f8301126144da578384fd5b81356144e86140ff826155b8565b818152848101908486016101e0808502870188018b1015614507578889fd5b8896505b8487101561464057818b038181121561452257898afd5b6040805160808082018281108b8211171561453957fe5b8352853561454681615649565b8252858c013561455581615649565b828d015285830135838301526060610180605f198601811315614576578e8ffd5b61457f81615595565b9550818801358652828801358e87015260a0808901358688015260c09550858901358388015260e0808a01358589015261010094506145bf858b0161406d565b8289015261012091506145d3828b0161406d565b8789015261014096506145e7878b016140cb565b908801526101608981013585890152828a01358289015261460b6101a08b0161417d565b8789015261461c6101c08b0161417d565b9088015250508201939093528652505060019690960195928701929081019061450b565b50909998505050505050505050565b60006020808385031215614661578182fd5b82516001600160401b03811115614676578283fd5b8301601f81018513614686578283fd5b80516146946140ff826155b8565b81815283810190838501610180808502860187018a10156146b3578788fd5b8795505b848610156144915780828b0312156146cd578788fd5b6146d681615595565b82518152878301518882015260408084015190820152606080840151908201526080808401519082015260a061470d818501614078565b9082015260c061471e848201614078565b9082015260e061472f8482016140d6565b9082015261010083810151908201526101208084015190820152610140614757818501614188565b90820152610160614769848201614188565b9082015284526001959095019492860192908101906146b7565b600060208284031215614794578081fd5b8151613ec181615649565b600080604083850312156147b1578182fd5b825161428381615649565b6000602082840312156147cd578081fd5b81356001600160401b038111156147e2578182fd5b614175848285016140e1565b600060c082840312156147ff578081fd5b613ec18383614193565b600061010080838503121561481c578182fd5b604051908101906001600160401b038211818310171561483857fe5b816040528351815261484c602085016140d6565b602082015260408401516040820152606084015160608201526080840151608082015260a084015160a082015260c084015160c082015261488f60e08501614210565b60e0820152949350505050565b6000806000606084860312156148b0578081fd5b83516148bb81615666565b602085015160409095015190969495509392505050565b6000602082840312156148e3578081fd5b613ec18261421b565b6000602082840312156148fd578081fd5b5035919050565b600060208284031215614915578081fd5b5051919050565b6000806040838503121561492e578182fd5b82359150602083013561494081615649565b809150509250929050565b60008060e0838503121561495d578182fd5b8235915061496e8460208501614193565b90509250929050565b60008060006060848603121561498b578081fd5b83359250602084013561499d81615666565b915060408401356001600160401b038111156149b7578182fd5b6149c3868287016140e1565b9150509250925092565b600080600080608085870312156149e2578182fd5b8451935060208501516149f481615666565b6040860151606090960151949790965092505050565b600080600080600060a08688031215614a21578283fd5b853594506020860135614a3381615666565b9350604086013592506060860135915060808601356001600160401b03811115614a5b578182fd5b614a67888289016140e1565b9150509295509295909350565b60008060408385031215614a86578182fd5b505080516020909101519092909150565b6000806000806000806000806000806000806101808d8f031215614ab957898afd5b8c516bffffffffffffffffffffffff81168114614ad4578a8bfd5b9b50614ae260208e01614078565b9a50614af060408e01614078565b9950614afe60608e01614078565b9850614b0c60808e0161421b565b9750614b1a60a08e01614188565b9650614b2860c08e01614188565b9550614b3660e08e01614210565b94506101008d015193506101208d01519250614b556101408e01614210565b9150614b646101608e01614210565b90509295989b509295989b509295989b565b6001600160a01b03169052565b15159052565b60008151808452614ba18160208601602086016155fc565b601f01601f19169290920160200192915050565b60020b9052565b8051825260208101511515602083015260408101516040830152606081015160608301526080810151608083015260a081015160a083015260c081015160c08301526001600160801b0360e08201511660e08301525050565b6001600160801b03169052565b62ffffff169052565b60008251614c3d8184602087016155fc565b9190910192915050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260806060820181905260009082015260a00190565b6001600160a01b038316815260406020820181905260009061417590830184614b89565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03938416815260ff929092166020830152909116604082015260600190565b6001600160a01b03929092168252602082015260400190565b6000602080830181845280855180835260408601915060408482028701019250838701855b82811015614d6b57603f19888603018452614d59858351614b89565b94509285019290850190600101614d3d565b5092979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614dbb57614da7838551614bbc565b928401926101009290920191600101614d94565b50909695505050505050565b600060208252613ec16020830184614b89565b60ff9290921682526001600160a01b0316602082015260400190565b60208082526021908201527f496e73756666696369656e742072657761726420696e20657874656e73696f6e6040820152601760f91b606082015260800190565b602080825260039082015262544c5560e81b604082015260600190565b6020808252600c908201526b27379022aa24103a37b5b2b760a11b604082015260600190565b60208082526017908201527f4d696e207374616b6561626c6520756e72656163686564000000000000000000604082015260600190565b6020808252600c908201526b155b985d5d1a1bdc9a5e995960a21b604082015260600190565b6020808252600d908201526c0496e76616c696420736574757609c1b604082015260600190565b6020808252600c908201526b4e6f7420706f737369626c6560a01b604082015260600190565b60208082526010908201526f496e76616c696420776974686472617760801b604082015260600190565b602080825260099082015268139bdd081bdddb995960ba1b604082015260600190565b6020808252601390820152721514905394d19154919493d357d19052531151606a1b604082015260600190565b6020808252600690820152650d8cadccee8d60d31b604082015260600190565b6020808252600c908201526b24b73b30b634b21037b832b760a11b604082015260600190565b6020808252600f908201526e1514905394d1915497d19052531151608a1b604082015260600190565b6020808252600d908201526c27379036b0b4b7103a37b5b2b760991b604082015260600190565b60208082526003908201526254554d60e81b604082015260600190565b6020808252600f908201526e24b73b30b634b2103a37b3b3b6329760891b604082015260600190565b602080825260039082015262544c4d60e81b604082015260600190565b60208082526003908201526208aa8960eb1b604082015260600190565b6020808252602a908201527f4d696e207374616b653a2063616e6e6f742072656d6f7665207061727469616c604082015269206c697175696469747960b01b606082015260800190565b6020808252601b908201527f496e76616c696420736574757020636f6e66696775726174696f6e0000000000604082015260600190565b602080825260139082015272496e636f7272656374206574682076616c756560681b604082015260600190565b60208082526009908201526832bc3a32b739b4b7b760b91b604082015260600190565b6020808252600e908201526d1054141493d59157d1905253115160921b604082015260600190565b602080825260139082015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604082015260600190565b60208082526018908201527f546f6f206561726c7920666f7220746869732073657475700000000000000000604082015260600190565b60208082526010908201526f5365747570206e6f742061637469766560801b604082015260600190565b6020808252600990820152684e6f7420456d70747960b81b604082015260600190565b60208082526012908201527124b73b30b634b2103634b8bab4b234ba3c9760711b604082015260600190565b815181526020808301516001600160a01b0316908201526040808301516001600160801b0390811691830191909152606092830151169181019190915260800190565b600060a082019050825182526001600160801b03602084015116602083015260408301516040830152606083015160608301526080830151608083015292915050565b81516001600160a01b031681526020808301519082015260408083015190820152606080830151908201526080918201519181019190915260a00190565b610280810161535d8285614bbc565b61010083518184015260208401516101208181860152604086015191506101408281870152606087015192506101608381880152608088015161018088015260a088015193506153b16101a0880185614b76565b60c088015193506153c66101c0880185614b76565b60e088015193506153db6101e0880185614b83565b93870151610200870152818701516102208701528087015193615402610240880186614bb5565b870151935061541992505050610260840182614bb5565b509392505050565b815481526001820154610100820190615439906155f6565b6154466020840182614b83565b50600283015460408301526003830154606083015260048301546080830152600583015460a0830152600683015460c08301526154866007840154615628565b61549360e0840182614c15565b5092915050565b600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b6000610160820190506154f2828451614b76565b60208301516155046020840182614b76565b5060408301516155176040840182614c22565b50606083015161552a6060840182614bb5565b50608083015161553d6080840182614bb5565b5060a083015160a083015260c083015160c083015260e083015160e08301526101008084015181840152506101208084015161557b82850182614b76565b505061014092830151919092015290565b90815260200190565b6040518181016001600160401b03811182821017156155b057fe5b604052919050565b60006001600160401b038211156155cb57fe5b5060209081020190565b60006001600160401b038211156155e857fe5b50601f01601f191660200190565b60ff1690565b60005b838110156156175781810151838201526020016155ff565b8381111561162e5750506000910152565b6001600160801b031690565b6001600160a01b03811681146116ae57600080fd5b80151581146116ae57600080fd5b8060020b81146116ae57600080fd5b6001600160801b03811681146116ae57600080fdfea264697066735822122048c012e1776b3aa6e1743d3736e202b1e7f6ee91053d9ce65fa416fd346377a064736f6c63430007060033

Deployed Bytecode Sourcemap

63504:35991:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64267:43;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;70665:318;;;;;;;;;;-1:-1:-1;70665:318:0;;;;;:::i;:::-;;:::i;:::-;;72360:1040;;;;;;:::i;:::-;;:::i;65454:50::-;;;;;;;;;;-1:-1:-1;65454:50:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;64629:38::-;;;;;;;;;;;;;:::i;69852:202::-;;;;;;;;;;-1:-1:-1;69852:202:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;67028:1293::-;;;;;;;;;;-1:-1:-1;67028:1293:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;64838:34::-;;;;;;;;;;;;;:::i;73533:140::-;;;;;;;;;;-1:-1:-1;73533:140:0;;;;;:::i;:::-;;:::i;70062:314::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;75411:272::-;;;;;;;;;;-1:-1:-1;75411:272:0;;;;;:::i;:::-;;:::i;77699:1146::-;;;;;;;;;;-1:-1:-1;77699:1146:0;;;;;:::i;:::-;;:::i;75691:1795::-;;;;;;;;;;-1:-1:-1;75691:1795:0;;;;;:::i;:::-;;:::i;70991:1361::-;;;;;;:::i;:::-;;:::i;64122:26::-;;;;;;;;;;;;;:::i;65511:46::-;;;;;;;;;;-1:-1:-1;65511:46:0;;;;;:::i;:::-;;:::i;64380:61::-;;;;;;;;;;;;;:::i;63585:51::-;;;;;;;;;;;;;:::i;68657:847::-;;;;;;;;;;-1:-1:-1;68657:847:0;;;;;:::i;:::-;;:::i;75189:214::-;;;;;;;;;;-1:-1:-1;75189:214:0;;;;;:::i;:::-;;:::i;70384:273::-;;;;;;;;;;-1:-1:-1;70384:273:0;;;;;:::i;:::-;;:::i;68329:320::-;;;;;;;;;;-1:-1:-1;68329:320:0;;;;;:::i;:::-;;:::i;64205:19::-;;;;;;;;;;;;;:::i;69704:140::-;;;;;;;;;;-1:-1:-1;69704:140:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;64267:43::-;;;-1:-1:-1;;;;;64267:43:0;;:::o;70665:318::-;70728:18;70749:27;;;:11;:27;;;;;;;;:42;;;70810:19;;;:7;:19;;;;;;:26;;;;;:73;;;;-1:-1:-1;70855:19:0;;;;:7;:19;;;;;:28;;;70840:12;:43;70810:73;70802:101;;;;-1:-1:-1;;;70802:101:0;;;;;;;:::i;:::-;;;;;;;;;70914:24;70927:10;70914:12;:24::i;:::-;70949:26;70964:10;70949:14;:26::i;:::-;70665:318;;:::o;72360:1040::-;72481:18;;;66254:19;;;:7;:19;;;;;:26;;;;;66246:55;;;;-1:-1:-1;;;66246:55:0;;;;;;;:::i;:::-;66320:19;;;;:7;:19;;;;;:30;;;66354:12;-1:-1:-1;66320:46:0;;;:93;;-1:-1:-1;66370:19:0;;;;:7;:19;;;;;:28;;;66401:12;-1:-1:-1;66320:93:0;66312:119;;;;-1:-1:-1;;;66312:119:0;;;;;;;:::i;:::-;65951:22:::1;::::0;;;:10:::1;:22;::::0;;;;:34;72517:10;;-1:-1:-1;;;;;65951:34:0::1;65989:10;65951:48;:93:::0;::::1;;;-1:-1:-1::0;66003:22:0::1;::::0;;;:10:::1;:22;::::0;;;;:36:::1;;::::0;:41;::::1;65951:93;65943:115;;;;-1:-1:-1::0;;;65943:115:0::1;;;;;;;:::i;:::-;72578:39:::2;72620:22:::0;;;:10:::2;:22;::::0;;;;;;;72696:26:::2;::::0;::::2;::::0;72688:35;;:7:::2;:35:::0;;;;;;72919:23:::2;::::0;::::2;::::0;72881:26;;::::2;::::0;72850:27:::2;::::0;::::2;::::0;72688:35;;-1:-1:-1;;;;;72919:23:0::2;::::0;72835:12:::2;:42;72834:73;72911:4;72833:82;72919:23:::0;72832:110:::2;;;;72801:26;::::0;::::2;::::0;72777:51:::2;::::0;;;:23:::2;:51;::::0;;;;:165;;72832:110;;;::::2;72777:165:::0;;::::2;::::0;;72978:45:::2;::::0;73005:10;;72978:26:::2;:45::i;:::-;72953:15;:22;;:70;;;;73037:23;73064:75;73078:15;:26;;;73106:7;73115:15;:23;;;73064:13;:75::i;:::-;73208:26;::::0;;;::::2;::::0;73184:51:::2;::::0;;;:23:::2;:51;::::0;;;;;;;;73150:31;;;:19:::2;:31:::0;;;;;:85;;;;-1:-1:-1;73327:12:0::2;73297:27;::::0;::::2;:42:::0;73350:23:::2;;:42:::0;;-1:-1:-1;;;;;;73350:42:0;::::2;-1:-1:-1::0;;;;;73350:42:0;;::::2;::::0;;::::2;;::::0;;;::::2;::::0;;-1:-1:-1;;;;72360:1040:0:o;65454:50::-;;;;;;;;;;;;;:::o;64629:38::-;;;;:::o;69852:202::-;69917:19;;:::i;:::-;69938:23;;:::i;:::-;69982:7;:19;69990:10;69982:19;;;;;;;;;;;70003:11;:42;70015:7;:19;70023:10;70015:19;;;;;;;;;;;:29;;;70003:42;;;;;;;;;;;69974:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;69974:72:0;-1:-1:-1;;;;;69974:72:0;-1:-1:-1;;;;;69974:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;69974:72:0;-1:-1:-1;;;;;69974:72:0;-1:-1:-1;;;;;69974:72:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;69974:72:0;-1:-1:-1;;;;;69974:72:0;-1:-1:-1;;;;;69974:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69852:202;;;:::o;67028:1293::-;67164:1;67141:11;67088:32;;-1:-1:-1;;;;;67141:11:0;:25;67133:57;;;;-1:-1:-1;;;67133:57:0;;;;;;;:::i;:::-;67201:11;:24;;-1:-1:-1;;;;;;67201:24:0;67215:10;67201:24;;;67344:42;;;;;;;;;;;;;;:::i;:::-;67290:96;;;;;;;;67398:17;67417:30;67449:26;67477:35;67527:12;67516:58;;;;;;;;;;;;:::i;:::-;67594:4;:16;;-1:-1:-1;;;;;;67594:16:0;-1:-1:-1;;;;;67594:16:0;;;;;;;;;;-1:-1:-1;67397:177:0;;-1:-1:-1;67397:177:0;-1:-1:-1;67397:177:0;-1:-1:-1;67585:54:0;;;;-1:-1:-1;;;67585:54:0;;;;;;;:::i;:::-;67667:19;:40;;-1:-1:-1;;;;;;67667:40:0;-1:-1:-1;;;;;67667:40:0;;;;;;;;67655:53;;;;-1:-1:-1;;67655:53:0;67723:28;;;;;;67755:13;67723:45;67719:130;;67813:4;;67807:30;;-1:-1:-1;;;;;67813:4:0;67819:17;67807:5;:30::i;:::-;67785:52;;67719:130;67868:26;:93;;-1:-1:-1;;;;;;67868:93:0;-1:-1:-1;;;;;67868:93:0;;;;;;;;67867:103;;;-1:-1:-1;;;67867:103:0;;;;:101;;:103;;;;;;;;;;;;;;;67868:93;67867:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;67859:5;:111;;-1:-1:-1;;;;;;67859:111:0;-1:-1:-1;;;;;67859:111:0;;;;;;;;;;67984:29;;:33;67981:333;;68034:43;68091:22;68080:56;;;;;;;;;;;;:::i;:::-;68034:102;;68155:9;68151:152;68174:17;:24;68170:1;:28;68151:152;;;68224:63;68250:17;68268:1;68250:20;;;;;;;;;;;;;;68272:4;68278:5;68285:1;68224:25;:63::i;:::-;68200:3;;68151:152;;;;67981:333;;67028:1293;;;;;;;;:::o;64838:34::-;;;;:::o;73533:140::-;65951:22;;;;:10;:22;;;;;:34;73602:10;;-1:-1:-1;;;;;65951:34:0;65989:10;65951:48;:93;;;;-1:-1:-1;66003:22:0;;;;:10;:22;;;;;:36;;;:41;;65951:93;65943:115;;;;-1:-1:-1;;;65943:115:0;;;;;;;:::i;:::-;73625:40:::1;73641:10;73653:1;73656::::0;73659::::1;73625:40;;;;;;;;;;;::::0;:15:::1;:40::i;70062:314::-:0;70110:21;70144:35;70201:19;;-1:-1:-1;;;;;70182:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;70144:77;;70237:9;70232:106;70256:19;;70252:1;:23;70232:106;;;70316:10;;;;:7;:10;;;;;;;;;70297:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;70297:29:0;;;;;:16;;:13;;70324:1;;70297:16;;;;;;;;;;;;;;;:29;70277:3;;70232:106;;;-1:-1:-1;70355:13:0;-1:-1:-1;70062:314:0;:::o;75411:272::-;65951:22;;;;:10;:22;;;;;:34;75563:10;;-1:-1:-1;;;;;65951:34:0;65989:10;65951:48;:93;;;;-1:-1:-1;66003:22:0;;;;:10;:22;;;;;:36;;;:41;;65951:93;65943:115;;;;-1:-1:-1;;;65943:115:0;;;;;;;:::i;:::-;75593:82:::1;75612:10;75624:16;75642:10;75654;75666:8;75593:18;:82::i;:::-;75411:272:::0;;;;;;:::o;77699:1146::-;77787:14;77855:22;;;:10;:22;;;;;;;;77814:63;;;;;;;;;-1:-1:-1;;;;;77814:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77787:14;;77923:53;;:28;:53::i;:::-;78052:31;;;;:19;:31;;;;;;;;;78022:26;;;;77998:51;;:23;:51;;;;;;;77888:88;;-1:-1:-1;78115:4:0;;77998:85;-1:-1:-1;;;;;77997:114:0;;;77996:123;77987:132;;78134:5;78130:665;;;78202:26;;;;;78156:20;78194:35;;;:7;:35;;;;;;:44;;;78179:12;:59;:121;;78264:26;;;;;78256:35;;;;:7;:35;;;;;;:44;;;78179:121;;;78241:12;78179:121;78403:26;;;;;;78315:23;78395:35;;;:7;:35;;;;;;;:46;;;78349:26;;78341:35;;;;:51;;;78156:144;;-1:-1:-1;78315:23:0;;78341:100;:203;;78501:26;;;;;78493:35;;;;:7;:35;;;;;;:51;;;78341:203;;;78452:26;;;;;78444:35;;;;:7;:35;;;;;;:46;;;78341:203;78680:26;;;;;;78559:11;78672:35;;;:7;:35;;;;;;;;:47;;;78618:26;;78610:35;;;;:50;;;;78315:229;;-1:-1:-1;78559:11:0;;-1:-1:-1;;;;;78672:47:0;;;;78576:30;;;78575:85;78664:4;78574:94;78672:47;78573:146;;;;;;-1:-1:-1;78779:4:0;-1:-1:-1;;;;;78745:30:0;;;;78744:39;78734:49;;;;78130:665;;;;-1:-1:-1;78815:22:0;;;78805:32;;77699:1146;-1:-1:-1;;77699:1146:0:o;75691:1795::-;75884:39;75926:22;;;:10;:22;;;;;76023:23;;;;75926:22;;75884:39;75994:53;;:28;:53::i;:::-;75959:88;;76116:15;:29;;;76149:1;76116:34;;:95;;;;;76187:24;-1:-1:-1;;;;;76167:44:0;:16;-1:-1:-1;;;;;76167:44:0;;;76116:95;:153;;;;-1:-1:-1;76228:27:0;;-1:-1:-1;;;;;76228:27:0;76259:10;76228:41;76116:153;76094:219;;;;-1:-1:-1;;;76094:219:0;;;;;;;:::i;:::-;76324:79;76340:10;76352:16;76370:10;76382;76394:8;76324:15;:79::i;:::-;76422:26;;;;76414:35;;;;:7;:35;;;;;:47;;:67;;-1:-1:-1;;;;;;76414:67:0;;-1:-1:-1;;;;;76414:67:0;;;;;;;;;;;;76492:44;;;;;76610:29;;76606:873;;76708:1;76677:26;;;76656:48;;;;:20;:48;;;;;;;;;:53;;-1:-1:-1;;76656:53:0;;;76732:26;;;76833:296;;;;;;;76903:23;;;;76833:296;;76956:27;;-1:-1:-1;;;;;76956:27:0;;;76833:296;;;;;;;-1:-1:-1;;;;;76833:296:0;;;;;;;;;;76765:365;;76732:26;;;;;-1:-1:-1;;;76788:43:0;76765:365;;76833:296;76765:365;;;:::i;:::-;;;;-1:-1:-1;;76765:365:0;;;;;;;;;;;;;;-1:-1:-1;;;;;76765:365:0;-1:-1:-1;;;;;;76765:365:0;;;;;;;;;;76724:407;;;;76765:365;76724:407;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;77146:26:0;;;77178:23;;;;77146:56;;-1:-1:-1;;;77146:56:0;;-1:-1:-1;;;;;77146:26:0;;;;-1:-1:-1;77146:31:0;;:56;;77178:23;77146:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77217:42;77232:15;:26;;;77217:14;:42::i;:::-;77281:22;;;;:10;:22;;;;;77274:29;;-1:-1:-1;;;;;;77274:29:0;;;;;;;;;;;;;;;;;;;;;;;;76606:873;;;77364:26;;;;77344:58;77356:35;;;:7;:35;;;;;;;;:45;77344:58;;:11;:58;;;;;:71;;;:76;77336:131;;;;-1:-1:-1;;;77336:131:0;;;;;;;:::i;:::-;75691:1795;;;;;;;:::o;70991:1361::-;71127:18;;71084;71119:27;;;:7;:27;;;;;:34;;;;;71115:119;;71192:18;;71184:27;;;;:7;:27;;;;;:37;71170:52;;:13;:52::i;:::-;71260:18;;71252:27;;;;:7;:27;;;;;:34;;;;;71244:63;;;;-1:-1:-1;;;71244:63:0;;;;;;;:::i;:::-;71334:18;;71326:27;;;;:7;:27;;;;;:38;;;71368:12;-1:-1:-1;71326:54:0;;;:109;;-1:-1:-1;71392:18:0;;71384:27;;;;:7;:27;;;;;:36;;;71423:12;-1:-1:-1;71326:109:0;71318:135;;;;-1:-1:-1;;;71318:135:0;;;;;;;:::i;:::-;71525:21;;;;71502:19;;-1:-1:-1;;;;;71525:35:0;71524:74;;71588:10;71524:74;;;71564:7;:21;;;71524:74;71699:18;;71675:43;;71502:96;;-1:-1:-1;71675:43:0;;71502:96;;71699:18;71675:43;;;:::i;:::-;;;;-1:-1:-1;;71675:43:0;;;;;;;;;71665:54;;71675:43;71665:54;;;;71657:63;71739:22;;;:10;:22;;;;;:36;;;71665:54;;-1:-1:-1;71739:41:0;71731:66;;;;-1:-1:-1;;;71731:66:0;;;;;;;:::i;:::-;71809:15;71826:23;71853:45;71867:7;:18;;;71887:7;71896:1;71853:13;:45::i;:::-;71808:90;;;;71909:72;71926:7;:18;;;71946:15;71963:10;71975:5;71909:16;:72::i;:::-;72017:210;;;;;;;;-1:-1:-1;;;;;72017:210:0;;;;;;72100:18;;72017:210;;;;;;;72203:12;72017:210;;;;;;;;;;;;-1:-1:-1;72017:210:0;;;;;;71992:22;;;:10;:22;;;;;:235;;;;-1:-1:-1;;;;;;71992:235:0;;;;;;;;;;;-1:-1:-1;71992:235:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;72259:18;;72238:40;;:20;:40;;;;;;:45;;;;;;;;72299;;71992:22;;72299:45;;-1:-1:-1;;72299:45:0;70991:1361;;;;;;:::o;64122:26::-;;;-1:-1:-1;;;;;64122:26:0;;:::o;65511:46::-;;;;;;;;;;;;;:::o;64380:61::-;;;-1:-1:-1;;;;;64380:61:0;;:::o;63585:51::-;63632:4;63585:51;:::o;68657:847::-;68754:9;68750:179;68773:19;;68769:1;:23;68750:179;;;68822:23;;;;:20;:23;;;;;;:28;:50;;;;-1:-1:-1;68855:10:0;;;;:7;:10;;;;;:17;;;;;68854:18;68822:50;:81;;;;-1:-1:-1;68876:10:0;;;;:7;:10;;;;;:22;;;-1:-1:-1;;;;;68876:22:0;:27;68822:81;68814:103;;;;-1:-1:-1;;;68814:103:0;;;;;;;:::i;:::-;68794:3;;68750:179;;;-1:-1:-1;68987:4:0;;68965:34;;;-1:-1:-1;;;68965:34:0;;;;68944:16;;-1:-1:-1;;;;;68987:4:0;;68965:32;;:34;;;;;;;;;;;;;;68987:4;68965:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;68939:60:0;-1:-1:-1;;;69018:31:0;;;;-1:-1:-1;69010:50:0;;;;-1:-1:-1;;;69010:50:0;;;;;;;:::i;:::-;69075:9;69071:426;69090:17;;;69071:426;;;69129:13;69145:6;;69152:1;69145:9;;;;;;;;;;;;;;;;;;;;:::i;:::-;69129:25;;69169:14;69186:7;;69194:1;69186:10;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;69219:22:0;;69211:31;;;;;;-1:-1:-1;;;;;69260:19:0;;69257:229;;69301:11;69317:8;-1:-1:-1;;;;;69317:13:0;69339:6;69317:33;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69300:50;;;69377:6;69369:22;;;;-1:-1:-1;;;69369:22:0;;;;;;;:::i;:::-;69257:229;;;;69432:38;69446:5;69453:8;69463:6;69432:13;:38::i;:::-;-1:-1:-1;;69109:3:0;;69071:426;;75189:214;65951:22;;;;:10;:22;;;;;:34;75301:10;;-1:-1:-1;;;;;65951:34:0;65989:10;65951:48;:93;;;;-1:-1:-1;66003:22:0;;;;:10;:22;;;;;:36;;;:41;;65951:93;65943:115;;;;-1:-1:-1;;;65943:115:0;;;;;;;:::i;:::-;75331:64:::1;75350:10;75362:16;75380:1;75383::::0;75386:8:::1;75331:18;:64::i;:::-;75189:214:::0;;;;:::o;70384:273::-;70498:1;70457:27;;;:11;:27;;;;;;;;:38;;:42;;;;:105;;-1:-1:-1;70504:51:0;70512:27;;;:11;:27;;;;;;;;:42;;;70504:51;;:7;:51;;;;;:58;;;;;70503:59;70457:105;70449:133;;;;-1:-1:-1;;;70449:133:0;;;;;;;:::i;:::-;70606:27;;;;:11;:27;;;;;:42;;;70593:56;;:12;:56::i;:::-;70384:273;:::o;68329:320::-;65755:4;;-1:-1:-1;;;;;65755:4:0;65741:10;:18;65733:43;;;;-1:-1:-1;;;65733:43:0;;;;;;;:::i;:::-;68449:9:::1;68444:198;68468:13;:20;68464:1;:24;68444:198;;;68510:120;68536:13;68550:1;68536:16;;;;;;;;;;;;;;:21;;;68559:13;68573:1;68559:16;;;;;;;;;;;;;;:20;;;68581:13;68595:1;68581:16;;;;;;;;;;;;;;:24;;;68607:13;68621:1;68607:16;;;;;;;;;;;;;;:22;;;68510:25;:120::i;:::-;68490:3;;68444:198;;64205:19:::0;;;-1:-1:-1;;;;;64205:19:0;;:::o;69704:140::-;69772:22;;:::i;:::-;-1:-1:-1;69814:22:0;;;;:10;:22;;;;;;;;;69807:29;;;;;;;;;-1:-1:-1;;;;;69807:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69704:140;;;;:::o;88638:2708::-;88699:26;88728:19;;;:7;:19;;;;;;;;88889:15;;88877:28;;:11;:28;;;;;;:39;;;88862:12;:54;88854:91;;;;-1:-1:-1;;;88854:91:0;;;;;;;:::i;:::-;88962:12;;;;;;:46;;;;;88994:5;:14;;;88978:12;:30;;88962:46;:94;;;;-1:-1:-1;89024:15:0;;89012:28;;;;:11;:28;;;;;;;;:39;;:44;88962:94;88958:657;;;89073:12;;:20;;-1:-1:-1;;89073:20:0;;;89108:7;;88958:657;89152:5;:16;;;89136:12;:32;;:65;;;;;89187:5;:14;;;89172:12;:29;89136:65;:81;;;;-1:-1:-1;89205:12:0;;;;;;89136:81;89132:483;;;89234:12;;;:20;;-1:-1:-1;;89234:20:0;;;89281:15;;89249:5;89269:28;;;:11;:28;;;;;;;:39;:43;;;89378:20;;;;89345:14;;;;;89362:12;89413:29;;;;89345;89344:54;;89457:41;;89474:10;;89249:5;;89457:16;:41::i;:::-;89513:27;;;;:15;:27;;;;;:37;;;;;;;89565:17;89544:6;89565:9;:17::i;:::-;89597:7;;;;89132:483;89644:12;;;;89733:15;;89627:14;89721:28;;;:11;:28;;;;;:42;89698:20;;;;89644:12;;;;;89682:82;;89698:65;89682:15;:82::i;:::-;89667:12;;;:97;;-1:-1:-1;;89667:97:0;;;;;;;;;;;;;89781:12;:25;;;;;89797:9;89781:25;89777:1562;;;89897:15;;89885:28;;;;:11;:28;;;;;;;;:42;89862:20;;;;89839:19;;89823:36;;:15;:36;;;;;;89862:65;;89823:104;;;90014:17;;;;89897:5;;90014:17;;:::i;:::-;;;;;;;;;;;;;90003:45;;;;;;;;;;;;:::i;:::-;89980:19;;;89972:28;;;;:7;:28;;;;;;;;:76;;;;;;;;;;;;;;;;;-1:-1:-1;;89972:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;89972:76:0;;;-1:-1:-1;;;;;;89972:76:0;;;;;;90096:19;;;;;;:26;;:34;;;;;;;;90190:15;;90178:28;;;;;;;;:39;;:44;;-1:-1:-1;;90178:44:0;;;90249:15;;90237:28;;;;;:40;;:45;;;;;;90343:19;;90309:15;;90297:28;;;;;:43;;:65;;;90377:28;;;;;;;;90419:12;90377:39;;:54;;;90521:19;;90513:28;;;;;:38;;90501:51;;;;;;;;:65;90446:28;;;;90486:80;;;;90446:37;;:120;;;;90589:19;;90581:28;;;;;:47;;;:51;;;90655:19;;90647:28;;;;;;:40;;:44;;;;;;;;90706:24;;;;;;;89777:1562;;;90752:12;;;;;;:26;;;;;90769:9;90768:10;90752:26;90748:591;;;90848:42;90860:19;;;:7;:19;;;;;;;;:29;;90848:42;;:11;:42;;;;;;:56;90825:20;;;;90795:27;;;:15;:27;;;;;90825:79;;90795:109;;;90985:12;90952:30;;;:45;;;91070:29;;91058:42;;;;;;;;:56;;91043:71;;;91012:28;;;:102;91129:31;;;;:35;;-1:-1:-1;;;;;;91129:35:0;;;91179:53;:58;;-1:-1:-1;;91179:58:0;;;90748:591;;;91326:1;91282:19;;;:7;:19;;;;;;;;:29;91270:42;;:11;:42;;;;;;:53;:57;90748:591;88638:2708;;;:::o;77494:197::-;77561:32;;;;:20;:32;;;;;;:37;:68;;;;-1:-1:-1;77603:19:0;;;;:7;:19;;;;;:26;;;;;77602:27;77561:68;77557:127;;;77653:19;;;;:7;:19;;;;;;;77646:26;;;;;;;;-1:-1:-1;;77646:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;77646:26:0;;;77494:197::o;84268:3018::-;84388:15;84533:19;;;:7;:19;;;;;;;;84502:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;84502:60:0;;;;;84451:12;;84388:15;;;84502:60;;84554:7;84502:30;:60::i;:::-;84575:33;84623:19;;;:7;:19;;;;;;;;:29;84611:42;;:11;:42;;;;;;84575:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;84575:78:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;84575:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84474:88;;-1:-1:-1;84698:30:0;;84727:1;84698:30;;;84723:1;84698:30;84686:43;;-1:-1:-1;;;;;84686:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84664:65;;84742:14;84774:9;:35;;;-1:-1:-1;;;;;84759:58:0;;:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;84742:77;;84830:14;84862:9;:35;;;-1:-1:-1;;;;;84847:58:0;;:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;84830:77;;84918:16;84937:9;:22;;;:80;;85016:1;84937:80;;;84972:5;;-1:-1:-1;;;;;84962:15:0;;;84972:5;;84962:15;:51;;84998:7;:15;;;84962:51;;;84980:7;:15;;;84962:51;84918:99;;85028:15;85054;85085:9;:22;;;85082:133;;;85134:69;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;85134:69:0;-1:-1:-1;;;85134:69:0;;;85124:7;;:4;;85129:1;;85124:7;;;;;;;;;;;:79;;;;85082:133;85228:12;85225:1565;;85290:40;;;85332:593;;;;;;;;85398:6;-1:-1:-1;;;;;85332:593:0;;;;;85431:6;-1:-1:-1;;;;;85332:593:0;;;;;85476:9;:35;;;-1:-1:-1;;;;;85461:55:0;;:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;85332:593;;;;;;85548:9;:19;;;85332:593;;;;;;85597:9;:19;;;85332:593;;;;;;85651:7;:15;;;85332:593;;;;85701:7;:15;;;85332:593;;;;85747:7;:18;;;85332:593;;;;85796:7;:18;;;85332:593;;;;85852:4;-1:-1:-1;;;;;85332:593:0;;;;;85886:15;85904:5;85886:23;85332:593;;;85267:659;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;85267:659:0;;;;;;;-1:-1:-1;;;;;85267:659:0;;;;;;;;;;;85257:4;85262:1;85257:7;;;;;;;;;;;;;;;;;:669;86018:26;;85999:82;;-1:-1:-1;;;85999:82:0;;-1:-1:-1;;;;;86018:26:0;;;;85999:57;;86065:8;;85999:82;;86076:4;;85999:82;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;85999:82:0;;;;;;;;;;;;:::i;:::-;86082:1;85999:85;;;;;;;;;;;;;;85988:135;;;;;;;;;;;;:::i;:::-;85941:182;;-1:-1:-1;85941:182:0;;-1:-1:-1;85941:182:0;-1:-1:-1;85941:182:0;-1:-1:-1;85225:1565:0;;;86189:53;;;86244:353;;;;;;;;86324:7;86244:353;;;;86366:7;:15;;;86244:353;;;;86416:7;:15;;;86244:353;;;;86462:7;:18;;;86244:353;;;;86511:7;:18;;;86244:353;;;;86558:15;86576:5;86558:23;86244:353;;;86166:432;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;86166:432:0;;;;;;;-1:-1:-1;;;;;86166:432:0;;;;;;;;;;;86156:4;86161:1;86156:7;;;;;;;;;;;;;;;;;:442;86681:26;;86662:83;;-1:-1:-1;;;86662:83:0;;-1:-1:-1;;;;;86681:26:0;;;;86662:57;;86729:8;;86662:83;;86740:4;;86662:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;86662:83:0;;;;;;;;;;;;:::i;:::-;86746:1;86662:86;;;;;;;;;;;;;;86651:127;;;;;;;;;;;;:::i;:::-;86613:165;;-1:-1:-1;86613:165:0;-1:-1:-1;86613:165:0;-1:-1:-1;85225:1565:0;86858:22;;;;86811;;:42;;86846:7;86811:42;;;86836:7;86811:42;86810:70;;86802:106;;;;-1:-1:-1;;;86802:106:0;;;;;;;:::i;:::-;86934:7;:15;;;86924:7;:25;86921:173;;;86965:117;86979:9;:22;;;:41;;;;-1:-1:-1;87015:5:0;;-1:-1:-1;;;;;87005:15:0;;;87015:5;;87005:15;86979:41;:63;;87036:6;86979:63;;;87031:1;86979:63;87044:10;87074:7;87056;:15;;;:25;86965:13;:117::i;:::-;87119:7;:15;;;87109:7;:25;87106:173;;;87150:117;87164:9;:22;;;:41;;;;-1:-1:-1;87200:5:0;;-1:-1:-1;;;;;87190:15:0;;;87200:5;;87190:15;87164:41;:63;;87221:6;87164:63;;;87216:1;87164:63;87229:10;87259:7;87241;:15;;;:25;87150:13;:117::i;:::-;84268:3018;;;;;;;;;;;;;;:::o;93742:608::-;93813:23;93951:1;93948;93938:7;93932:14;93925:4;93916:7;93912:18;93909:1;93899:8;93892:5;93887:66;93979:16;94029:4;94023:11;94009:25;;94067:4;94055:10;94048:24;94132:4;94120:10;94116:21;94193:4;94190:1;94166:22;94151:47;94225:33;;;94219:4;94212:47;94280:6;94287:45;;;;94273:59;;94287:45;94326:4;94302:22;94295:36;94273:59;;;;;93858:485;;;;:::o;79087:3756::-;79258:4;79278:3;;:15;;;79286:7;79285:8;79278:15;79275:255;;;79340:27;;;;;79370:1;79340:31;79310:61;;;;79386:133;;79472:27;;;;;-1:-1:-1;;79472:31:0;79442:61;;79386:133;79546:3;79542:1703;;;79592:42;;;;-1:-1:-1;;;;;79592:56:0;;;;;:120;;;79711:1;79669:16;:39;;;:43;79592:120;79566:209;;;;-1:-1:-1;;;79566:209:0;;;;;;;:::i;:::-;79790:67;79802:16;:26;;;79830:16;:26;;;79790:11;:67::i;:::-;79906:16;;;79920:1;79906:16;;;;;;;;79872:31;;79906:16;;;;;;;;;;-1:-1:-1;79906:16:0;79872:50;;79972:4;:30;;;-1:-1:-1;;;;;79957:53:0;;:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;79937:14;79952:1;79937:17;;;;;;;;;;;;;:75;-1:-1:-1;;;;;79937:75:0;;;-1:-1:-1;;;;;79937:75:0;;;;;80062:4;:30;;;-1:-1:-1;;;;;80047:53:0;;:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;80027:14;80042:1;80027:17;;;;;;;;;;;;;:75;-1:-1:-1;;;;;80027:75:0;;;-1:-1:-1;;;;;80027:75:0;;;;;80117:19;80159:18;80204:9;80200:438;80223:14;:21;80219:1;:25;80200:438;;;80294:5;;80273:17;;-1:-1:-1;;;;;80294:5:0;;;;80273:14;;80288:1;;80273:17;;;;;;;;;;;;-1:-1:-1;;;;;80273:26:0;;80270:94;;;80340:4;80324:20;;80270:94;80406:16;:33;;;-1:-1:-1;;;;;80385:54:0;:14;80400:1;80385:17;;;;;;;;;;;;;;-1:-1:-1;;;;;80385:54:0;;80382:241;;;80481:4;80464:21;;80382:241;;;80585:14;80600:1;80585:17;;;;;;;;;;;;;;-1:-1:-1;;;;;80539:64:0;80550:16;:33;;;-1:-1:-1;;;;;80539:64:0;;;;;;;;;;;80382:241;80246:3;;80200:438;;;;80660:14;80652:40;;;;-1:-1:-1;;;80652:40:0;;;;;;;:::i;:::-;80716:16;:29;;;80715:30;:47;;;;80749:13;80715:47;80707:72;;;;-1:-1:-1;;;80707:72:0;;;;;;;:::i;:::-;80825:1;80794:16;:28;;:32;;;;;80880:16;80841:11;:36;80853:23;;80841:36;;;;;;;;;;;:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;80841:55:0;;;;;-1:-1:-1;;;;;80841:55:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;80841:55:0;;;;;-1:-1:-1;;;;;80841:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80942:100;;;;;;;;80955:23;;80942:100;;;;80980:5;80942:100;;;;;;80987:1;80942:100;;;;80990:1;80942:100;;;;80993:1;80942:100;;;;80996:1;80942:100;;;;80999:16;:39;;;80942:100;;;;81040:1;-1:-1:-1;;;;;80942:100:0;;;;80911:7;:28;80919:19;;80911:28;;;;;;;;;;;:131;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;80911:131:0;;;;;-1:-1:-1;;;;;80911:131:0;;;;;;;;;81111:19;;81057:11;:36;81069:23;;81057:36;;;;;;;;;;;:51;;:73;;;;81172:1;81145:23;;:28;;;;;;;;;;;81211:1;81188:19;;:24;;;;;;;;;;;81227:7;;;;;;79542:1703;-1:-1:-1;81257:26:0;81286:19;;;:7;:19;;;;;;;;81347:29;;81335:42;;:11;:42;;;;;;;81316:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;81316:61:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;81316:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81390:136;;;;81425:12;;;;;;81417:37;;;;-1:-1:-1;;;81417:37:0;;;;;;;:::i;:::-;81469:24;81482:10;81469:12;:24::i;:::-;81508:7;;;;81390:136;81538:15;;;:20;;-1:-1:-1;;81538:20:0;;;81557:1;81575:12;;;;;81571:1095;;;-1:-1:-1;81612:19:0;;;;:7;:19;;;;;81664:14;;;;81649:12;:29;81646:899;;;81699:18;81750:16;:39;;;81720:4;:27;;;:69;:213;;81894:16;:39;;;81864:4;:27;;;:69;81720:213;;;81834:4;:27;;;81792:16;:39;;;:69;81720:213;81971:14;;;;81699:234;;-1:-1:-1;81988:12:0;81971:29;;82036:21;;;82080:10;;82076:454;;82149:16;:39;;;82119:4;:27;;;:69;82115:259;;;82225:23;82241:6;82225:15;:23::i;:::-;82217:69;;;;-1:-1:-1;;;82217:69:0;;;;;;;:::i;:::-;82313:27;;;;:15;:27;;;;;:37;;;;;;82115:259;82396:41;82413:10;82425:1;82428;82431:5;82396:16;:41::i;:::-;82483:27;;;;82460:20;;;:50;82076:454;81646:899;;;;82627:27;;;;;82559:42;82571:19;;;:7;:19;;;;;;;:29;82559:42;;:11;:42;;;;;;:65;;:95;81571:1095;82735:1;82691:19;;;:7;:19;;;;;;;;:29;82679:42;;:11;:42;;;;;;;:53;;:57;82676:160;;82809:15;;;;82753:42;82765:19;;;:7;:19;;;;;;;;:29;82753:42;;:11;:42;;;;;;;:53;:71;79087:3756;;;;;;:::o;73681:1500::-;73873:39;73915:22;;;:10;:22;;;;;;;;73992:26;;;;73984:35;;:7;:35;;;;;;74047:22;;;;74184:21;;;;74103:12;;74169:36;;:75;;74232:12;74169:75;;;74208:12;:21;;;74169:75;74399:24;;;;74360:27;;;;74328:28;;;;74154:90;;-1:-1:-1;;;;;;74399:24:0;;;;74313:43;;74312:75;74391:4;74311:84;74399:24;74310:113;;;;74279:26;;;;74255:51;;;;:23;:51;;;;;:168;;74310:113;;;;74255:168;;;;;74443:45;;74470:10;;74443:26;:45::i;:::-;74557:26;;;;74533:51;;;;:23;:51;;;;;;;;;74499:31;;;:19;:31;;;;;:85;74595:22;;;;:26;;;;74682:28;;:43;;;74750:19;;74771:27;;74434:54;;-1:-1:-1;74736:71:0;;-1:-1:-1;;;;;74750:19:0;;;;74771:27;74434:54;74736:13;:71::i;:::-;74862:23;;;;74887:27;;74820:148;;74850:10;;-1:-1:-1;;;;;74887:27:0;74916:17;74935:10;74947;74959:8;74820:29;:148::i;:::-;74993:26;;;;74981:39;;;;:11;:39;;;;;:49;;;;;;75045:21;;;;75070:12;-1:-1:-1;75045:37:0;;;:60;;-1:-1:-1;75086:19:0;;;;;;75045:60;75041:133;;;75122:40;75135:15;:26;;;75122:12;:40::i;:::-;73681:1500;;;;;;;;;:::o;78883:196::-;79026:26;;:45;;-1:-1:-1;;;79026:45:0;;78960:23;;-1:-1:-1;;;;;79026:26:0;;:36;;:45;;79063:7;;79026:45;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;78995:76:0;;78883:196;-1:-1:-1;;;;;;;;;;;;78883:196:0:o;87595:1035::-;87711:20;87749:19;;;:7;:19;;;;;:28;;;87734:12;:43;:89;;87795:19;;;;:7;:19;;;;;:28;;;87734:89;;;87780:12;87734:89;87838:19;;;;:7;:19;;;;;:31;;;87711:112;;-1:-1:-1;;;;;;87838:31:0;:36;87834:402;;87891:23;87955:19;;;:7;:19;;;;;:30;;;;87917:35;;;;;:68;:139;;88021:19;;;;:7;:19;;;;;:35;;;87917:139;;;87988:19;;;;:7;:19;;;;;:30;;;87917:139;88193:19;;;;:7;:19;;;;;;;;:31;;;;88147:34;;;87891:165;;-1:-1:-1;;;;;;88193:31:0;;88113:30;;;88112:69;88185:4;88111:78;88193:31;88110:114;;;;88071:35;;;;:23;:35;;;;;:153;;88110:114;;;;88071:153;;;;;-1:-1:-1;87834:402:0;88296:19;;;;:7;:19;;;;;:35;;:50;;;88361:15;;88357:117;;88427:35;;;;:23;:35;;;;;;;;;88393:31;;;:19;:31;;;;;;:69;88357:117;-1:-1:-1;;;;;88488:10:0;;;88484:139;;88515:8;:96;;88570:19;;;;:7;:19;;;;;:31;;:41;;-1:-1:-1;;;;;;88570:41:0;;-1:-1:-1;;;;;88570:41:0;;;;;;;;;;;;88515:96;;;88526:19;;;;:7;:19;;;;;:31;;:41;;-1:-1:-1;;;;;88526:41:0;;;;;;;-1:-1:-1;;;;;;88526:41:0;;;;;;88484:139;87595:1035;;;;;:::o;92215:582::-;92323:10;92320:48;;92350:7;;92320:48;-1:-1:-1;;;;;92381:31:0;;92378:176;;92430:11;92446:2;-1:-1:-1;;;;;92446:7:0;92462:5;92446:26;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92429:43;;;92495:6;92487:34;;;;-1:-1:-1;;;92487:34:0;;;;;;;:::i;:::-;92536:7;;;92378:176;92564:23;92590:104;92596:17;92638:43;;;92683:2;92687:5;92615:78;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;92615:78:0;;;;;;;;;;;;;;-1:-1:-1;;;;;92615:78:0;-1:-1:-1;;;;;;92615:78:0;;;;;;;;;;92590:5;:104::i;:::-;92564:130;;92713:10;:17;92734:1;92713:22;:56;;;;92750:10;92739:30;;;;;;;;;;;;:::i;:::-;92705:84;;;;-1:-1:-1;;;92705:84:0;;;;;;;:::i;94458:387::-;94515:11;94512:49;;94543:7;;94512:49;94575:19;;-1:-1:-1;;;;;94575:19:0;94571:267;;94647:4;;94625:61;;-1:-1:-1;;;94625:61:0;;-1:-1:-1;;;;;94647:4:0;;;;94625:37;;94671:6;;94625:61;;94671:6;;94625:61;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94571:267;;;94732:19;;;94753:4;94719:47;;-1:-1:-1;;;;;94732:19:0;;;;94753:4;94759:6;94719:12;:47::i;:::-;94803:4;;94781:45;;-1:-1:-1;;;94781:45:0;;-1:-1:-1;;;;;94803:4:0;;;;94781:37;;:45;;94819:6;;94781:45;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94976:658;95075:19;;95033:4;;;;-1:-1:-1;;;;;95075:19:0;:33;:112;;95142:19;;95135:52;;-1:-1:-1;;;95135:52:0;;-1:-1:-1;;;;;95142:19:0;;;;95135:37;;:52;;95181:4;;95135:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;95075:112;;;95111:21;95075:112;95284:4;;95262:46;;-1:-1:-1;;;95262:46:0;;95050:137;;-1:-1:-1;95224:23:0;;;;-1:-1:-1;;;;;95284:4:0;;;;95262:38;;:46;;95241:6;;95262:46;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;95258:62;95354:19;;95330:21;;-1:-1:-1;;;;;95354:19:0;:33;:112;;95421:19;;95414:52;;-1:-1:-1;;;95414:52:0;;-1:-1:-1;;;;;95421:19:0;;;;95414:37;;:52;;95460:4;;95414:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;95354:112;;;95390:21;95354:112;95330:136;;95497:15;95480:13;:32;95477:75;;;95536:4;95529:11;;;;;;;95477:75;95562:41;95588:14;95572:13;:30;95562:9;:41::i;:::-;-1:-1:-1;95621:5:0;;94976:658;-1:-1:-1;;;;94976:658:0:o;82851:1368::-;83037:16;;;83051:1;83037:16;;;;;;;;82973:25;;;;83037:16;83051:1;83037:16;;;;;;;;;;-1:-1:-1;;83103:15:0;;83091:28;;;;:11;:28;;;;;;;;;:54;;;83076:79;;-1:-1:-1;;;83076:79:0;;;;83011:42;;-1:-1:-1;;;;;;83091:54:0;;83076:77;;:79;;;;;;;;;;83091:54;83076:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;83064:6;83071:1;83064:9;;;;;;;;-1:-1:-1;;;;;83064:91:0;;;:9;;;;;;;;;;:91;;;;83205:15;;83193:28;;;;:11;:28;;;;;;;;:54;;;83178:79;;-1:-1:-1;;;83178:79:0;;;;83193:54;;;83178:77;;:79;;;;83064:9;;83178:79;;;;;;83193:54;83178:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;83166:6;83173:1;83166:9;;;;;;;;;;;;;:91;-1:-1:-1;;;;;83166:91:0;;;-1:-1:-1;;;;;83166:91:0;;;;;83337:6;83344:1;83337:9;;;;;;;;;;;;;;;;;;;83300:15;;83288:28;;;;:11;:28;;;;;;;:45;;;-1:-1:-1;;;;;83288:45:0;;;:58;;;:66;;83353:1;83288:66;;;83349:1;83288:66;83397:16;;;83411:1;83397:16;;;;;;;;83268:86;;;;;;-1:-1:-1;83365:29:0;;83397:16;;;;;;;;;;;;-1:-1:-1;83397:16:0;83365:48;;83442:7;:15;;;83424:12;83437:1;83424:15;;;;;;;;;;;;;:33;;;;;83486:7;:15;;;83468:12;83481:1;83468:15;;;;;;;;;;;;;:33;;;;;83620:11;:28;83632:5;:15;;;83620:28;;;;;;;;;;;:41;;;83570:6;83577:1;83570:9;;;;;;;;;;;;;;;;;;;83533:15;;83521:28;;;;:11;:28;;;;;;;:45;;;-1:-1:-1;;;;;83521:45:0;;;:58;;;:94;;83600:12;83613:1;83600:15;;;;;;;;;;;;;;83521:94;;;83582:12;83595:1;83582:15;;;;;;;;;;;;;;83521:94;83520:141;;83512:172;;;;-1:-1:-1;;;83512:172:0;;;;;;;:::i;:::-;83775:9;83771:441;83794:6;:13;83790:1;:17;83771:441;;;83844:15;;83832:28;;;;:11;:28;;;;;:41;;;-1:-1:-1;;;83832:41:0;;;;:63;;;;;83886:6;83893:1;83886:9;;;;;;;;;;;;;;;;;;83877:5;;-1:-1:-1;;;;;83877:5:0;;;:18;;;83832:63;83829:372;;;83937:12;83950:1;83937:15;;;;;;;;;;;;;;83924:9;:28;83916:60;;;;-1:-1:-1;;;83916:60:0;;;;;;;:::i;:::-;83829:372;;;84017:72;84035:6;84042:1;84035:9;;;;;;;;;;;;;;84046:10;84066:4;84073:12;84086:1;84073:15;;;;;;;;;;;;;;84017:17;:72::i;:::-;84108:77;84121:6;84128:1;84121:9;;;;;;;;;;;;;;84140:26;;;;;;;;;-1:-1:-1;;;;;84140:26:0;84169:12;84182:1;84169:15;;;;;;;;;;;;;;84108:12;:77::i;:::-;83809:3;;83771:441;;;;82851:1368;;;;;;:::o;95693:238::-;95792:9;95780:21;;:9;:21;;;95772:37;;;;-1:-1:-1;;;95772:37:0;;;;;;;:::i;:::-;-1:-1:-1;;95828:30:0;;;;;;95820:46;;;;-1:-1:-1;;;95820:46:0;;;;;;;:::i;:::-;31571:9;95885:30;;;;;;95877:46;;;;-1:-1:-1;;;95877:46:0;;;;;;;:::i;95974:1557::-;96178:24;;-1:-1:-1;;;;;96261:21:0;;;96258:366;;96338:26;;96383:228;;;;;;;;;;;-1:-1:-1;;;;;96383:228:0;;;;;;;;;;;;;;;;;;96591:5;96573:15;:23;96383:228;;;;96338:274;;-1:-1:-1;;;96338:274:0;;-1:-1:-1;;;;;96338:26:0;;;;:44;;:274;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;96299:313;;-1:-1:-1;96299:313:0;-1:-1:-1;96258:366:0;96636:14;96661;96686:24;96721;96811:29;96820:10;96832:7;96811:8;:29::i;:::-;96756:84;;-1:-1:-1;96756:84:0;;-1:-1:-1;96756:84:0;-1:-1:-1;96756:84:0;-1:-1:-1;96872:35:0;;;96939;;;96988:14;;;;:32;;;97019:1;97006:10;:14;96988:32;96985:391;;;97040:15;;97037:328;;97094:15;;:49;;97116:27;97124:6;97132:10;97116:7;:27::i;:::-;97094:49;;;97112:1;97094:49;97081:62;-1:-1:-1;97175:15:0;;:49;;97197:27;97205:6;97213:10;97197:7;:27::i;:::-;97175:49;;;97193:1;97175:49;97162:62;;97037:328;;;-1:-1:-1;97278:1:0;;-1:-1:-1;97278:1:0;97331:18;97340:8;97331;:18::i;:::-;;97037:328;97386:63;97400:6;97408:9;97438:10;97419:16;:29;97386:13;:63::i;:::-;97460;97474:6;97482:9;97512:10;97493:16;:29;97460:13;:63::i;:::-;95974:1557;;;;;;;;;;;;;;;:::o;91583:393::-;91690:10;91687:48;;91717:7;;91687:48;91745:23;91771:103;91777:17;91819:42;;;91863:2;91867:5;91796:77;;;;;;;;;:::i;91771:103::-;91745:129;;91893:10;:17;91914:1;91893:22;:56;;;;91930:10;91919:30;;;;;;;;;;;;:::i;:::-;91885:83;;;;-1:-1:-1;;;91885:83:0;;;;;;;:::i;93072:419::-;93189:10;93186:48;;93216:7;;93186:48;93244:23;93270:114;93276:17;93318:47;;;93367:4;93373:2;93377:5;93295:88;;;;;;;;;;:::i;93270:114::-;93244:140;;93403:10;:17;93424:1;93403:22;:56;;;;93440:10;93429:30;;;;;;;;;;;;:::i;:::-;93395:88;;;;-1:-1:-1;;;93395:88:0;;;;;;;:::i;98160:1332::-;98232:14;98349:22;;;:10;:22;;;;;;;;:33;;;98341:42;;:7;:42;;;;;;:52;98329:65;;:11;:65;;;;;:78;;98232:14;;;;;;-1:-1:-1;;;98329:78:0;;;;98232:14;98329:78;98452:20;;98471:1;98452:20;;;98467:1;98452:20;98440:33;;-1:-1:-1;;;;;98440:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98418:55;;98517:43;;;98562:274;;;;;;;;98628:7;98562:274;;;;98661:12;:41;;98697:4;98661:41;;;98684:1;98661:41;-1:-1:-1;;;;;98562:274:0;;;-1:-1:-1;;;;;98562:274:0;;;;;;;;;;;98494:343;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;98494:343:0;;;;;;;-1:-1:-1;;;;;98494:343:0;;;;;;;;;;;98484:4;98489:1;98484:7;;;;;;;;;;;;;;;;;:353;98886:26;;:45;;-1:-1:-1;;;98886:45:0;;-1:-1:-1;;;;;98886:26:0;;;;:36;;:45;;98923:7;;98886:45;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;98848:83:0;;-1:-1:-1;98848:83:0;;-1:-1:-1;;98942:413:0;;;-1:-1:-1;98942:413:0;;-1:-1:-1;;;;;;;98942:413:0;98984:89;;-1:-1:-1;;;99007:47:0;98984:89;;99056:1;;99067:4;;98984:89;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;98984:89:0;;;;;;;-1:-1:-1;;;;;98984:89:0;;;;;;;;;;;98974:4;98979:1;98974:7;;;;;;;;;;;;;;;;;:99;99179:5;;-1:-1:-1;;;99121:46:0;-1:-1:-1;;;;;99169:15:0;;;99179:5;;99169:15;:33;;99196:6;99169:33;;;99187:6;99169:33;99204:1;99215:4;99098:123;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;99098:123:0;;;;;;;-1:-1:-1;;;;;99098:123:0;;;;;;;;;;;99088:4;99093:1;99088:7;;;;;;;;;;;;;;;;;:133;99255:5;;-1:-1:-1;;;;;99245:15:0;;;99255:5;;99245:15;:37;;99276:6;99245:37;;;99271:1;99245:37;99316:5;;99236:46;;-1:-1:-1;;;;;;99306:15:0;;;99316:5;;99306:15;:37;;99337:6;99306:37;;;99332:1;99306:37;99297:46;;98942:413;99416:26;;99397:63;;-1:-1:-1;;;99397:63:0;;-1:-1:-1;;;;;99416:26:0;;;;99397:57;;:63;;99455:4;;99397:63;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;99397:63:0;;;;;;;;;;;;:::i;:::-;99461:1;99397:66;;;;;;;;;;;;;;99386:98;;;;;;;;;;;;:::i;:::-;98160:1332;;;;-1:-1:-1;99365:119:0;-1:-1:-1;;;;;98160:1332:0:o;97539:384::-;97614:7;-1:-1:-1;;;;;97637:26:0;;;97634:136;;97680:78;97693:12;97720:11;;;;;;;;-1:-1:-1;;;;;97720:11:0;-1:-1:-1;;;;;97707:37:0;;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;97748:9;97680:12;:78::i;:::-;97800:11;;-1:-1:-1;;;;;97800:11:0;;;;97787:32;;97828:26;;:42;;97861:9;97828:42;;;97857:1;97828:42;97880:4;97887:12;97901:9;97787:128;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;97780:135;97539:384;-1:-1:-1;;;97539:384:0:o;97931:221::-;97989:7;98035:8;98024:35;;;;;;;;;;;;:::i;:::-;98090:11;;98077:67;;-1:-1:-1;;;98077:67:0;;98009:50;;-1:-1:-1;;;;;;98090:11:0;;-1:-1:-1;98077:45:0;;:67;;98123:10;;98009:50;;98077:67;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;98070:74;97931:221;-1:-1:-1;;97931:221:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::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:404::-;;;437:3;430:4;422:6;418:17;414:27;404:2;;462:8;452;445:26;404:2;-1:-1:-1;492:20:1;;-1:-1:-1;;;;;524:30:1;;521:2;;;574:8;564;557:26;521:2;618:4;610:6;606:17;594:29;;681:3;674:4;666;658:6;654:17;646:6;642:30;638:41;635:50;632:2;;;698:1;695;688:12;632:2;394:314;;;;;:::o;713:132::-;780:20;;809:30;780:20;809:30;:::i;850:136::-;928:13;;950:30;928:13;950:30;:::i;991:485::-;;1088:3;1081:4;1073:6;1069:17;1065:27;1055:2;;1110:5;1103;1096:20;1055:2;1150:6;1137:20;1181:49;1196:33;1226:2;1196:33;:::i;:::-;1181:49;:::i;:::-;1255:2;1246:7;1239:19;1301:3;1294:4;1289:2;1281:6;1277:15;1273:26;1270:35;1267:2;;;1322:5;1315;1308:20;1267:2;1391;1384:4;1376:6;1372:17;1365:4;1356:7;1352:18;1339:55;1414:16;;;1432:4;1410:27;1403:42;;;;1418:7;1045:431;-1:-1:-1;;1045:431:1:o;1481:447::-;;1589:3;1582:4;1574:6;1570:17;1566:27;1556:2;;1611:5;1604;1597:20;1556:2;1644:6;1638:13;1675:49;1690:33;1720:2;1690:33;:::i;1675:49::-;1749:2;1740:7;1733:19;1795:3;1788:4;1783:2;1775:6;1771:15;1767:26;1764:35;1761:2;;;1816:5;1809;1802:20;1761:2;1833:64;1894:2;1887:4;1878:7;1874:18;1867:4;1859:6;1855:17;1833:64;:::i;:::-;1915:7;1546:382;-1:-1:-1;;;;1546:382:1:o;1933:134::-;2001:20;;2030:31;2001:20;2030:31;:::i;2072:138::-;2151:13;;2173:31;2151:13;2173:31;:::i;2215:832::-;;2335:4;2323:9;2318:3;2314:19;2310:30;2307:2;;;2357:5;2350;2343:20;2307:2;2394;2388:9;2436:4;2428:6;2424:17;2507:6;2495:10;2492:22;-1:-1:-1;;;;;2459:10:1;2456:34;2453:62;2450:2;;;2518:9;2450:2;2549:10;2545:2;2538:22;;2578:6;2569:15;;2621:9;2608:23;2600:6;2593:39;2693:2;2682:9;2678:18;2665:32;2660:2;2652:6;2648:15;2641:57;2759:2;2748:9;2744:18;2731:32;2726:2;2718:6;2714:15;2707:57;2816:2;2805:9;2801:18;2788:32;2829:35;2856:7;2829:35;:::i;:::-;2897:7;2892:2;2884:6;2880:15;2873:32;;2967:3;2956:9;2952:19;2939:33;2933:3;2925:6;2921:16;2914:59;3035:3;3024:9;3020:19;3007:33;3001:3;2993:6;2989:16;2982:59;;2297:750;;;;:::o;3052:142::-;3133:13;;3155:33;3133:13;3155:33;:::i;3199:167::-;3279:13;;3332:8;3321:20;;3311:31;;3301:2;;3356:1;3353;3346:12;3371:259;;3483:2;3471:9;3462:7;3458:23;3454:32;3451:2;;;3504:6;3496;3489:22;3451:2;3548:9;3535:23;3567:33;3594:5;3567:33;:::i;3635:263::-;;3758:2;3746:9;3737:7;3733:23;3729:32;3726:2;;;3779:6;3771;3764:22;3726:2;3816:9;3810:16;3835:33;3862:5;3835:33;:::i;3903:495::-;;;4060:2;4048:9;4039:7;4035:23;4031:32;4028:2;;;4081:6;4073;4066:22;4028:2;4118:9;4112:16;4137:33;4164:5;4137:33;:::i;:::-;4238:2;4223:18;;4217:25;4189:5;;-1:-1:-1;;;;;;4254:30:1;;4251:2;;;4302:6;4294;4287:22;4251:2;4330:62;4384:7;4375:6;4364:9;4360:22;4330:62;:::i;:::-;4320:72;;;4018:380;;;;;:::o;4403:875::-;;;;;4611:3;4599:9;4590:7;4586:23;4582:33;4579:2;;;4633:6;4625;4618:22;4579:2;4670:9;4664:16;4689:33;4716:5;4689:33;:::i;:::-;4790:2;4775:18;;4769:25;4741:5;;-1:-1:-1;;;;;;4843:14:1;;;4840:2;;;4875:6;4867;4860:22;4840:2;4903:62;4957:7;4948:6;4937:9;4933:22;4903:62;:::i;:::-;4893:72;;5010:2;4999:9;4995:18;4989:25;4974:40;;5023:35;5050:7;5023:35;:::i;:::-;5130:2;5115:18;;5109:25;5077:7;;-1:-1:-1;5146:16:1;;;5143:2;;;5180:6;5172;5165:22;5143:2;;5208:64;5264:7;5253:8;5242:9;5238:24;5208:64;:::i;:::-;5198:74;;;4569:709;;;;;;;:::o;5283:803::-;;;;;;5471:3;5459:9;5450:7;5446:23;5442:33;5439:2;;;5493:6;5485;5478:22;5439:2;5530:9;5524:16;5549:33;5576:5;5549:33;:::i;:::-;5651:2;5636:18;;5630:25;5601:5;;-1:-1:-1;5664:32:1;5630:25;5664:32;:::i;:::-;5767:2;5752:18;;5746:25;5715:7;;-1:-1:-1;5780:35:1;5746:25;5780:35;:::i;:::-;5886:2;5871:18;;5865:25;5834:7;;-1:-1:-1;5899:35:1;5865:25;5899:35;:::i;:::-;6005:3;5990:19;;5984:26;5953:7;;-1:-1:-1;6019:35:1;5984:26;6019:35;:::i;:::-;6073:7;6063:17;;;5429:657;;;;;;;;:::o;6091:815::-;;;;;6290:2;6278:9;6269:7;6265:23;6261:32;6258:2;;;6311:6;6303;6296:22;6258:2;6356:9;6343:23;-1:-1:-1;;;;;6426:2:1;6418:6;6415:14;6412:2;;;6447:6;6439;6432:22;6412:2;6491:76;6559:7;6550:6;6539:9;6535:22;6491:76;:::i;:::-;6586:8;;-1:-1:-1;6465:102:1;-1:-1:-1;6674:2:1;6659:18;;6646:32;;-1:-1:-1;6690:16:1;;;6687:2;;;6724:6;6716;6709:22;6687:2;;6768:78;6838:7;6827:8;6816:9;6812:24;6768:78;:::i;:::-;6248:658;;;;-1:-1:-1;6865:8:1;-1:-1:-1;;;;6248:658:1:o;6911:927::-;;7046:2;7089;7077:9;7068:7;7064:23;7060:32;7057:2;;;7110:6;7102;7095:22;7057:2;7148:9;7142:16;-1:-1:-1;;;;;7173:6:1;7170:30;7167:2;;;7218:6;7210;7203:22;7167:2;7246:22;;7299:4;7291:13;;7287:27;-1:-1:-1;7277:2:1;;7333:6;7325;7318:22;7277:2;7367;7361:9;7390:63;7405:47;7449:2;7405:47;:::i;7390:63::-;7487:15;;;7518:12;;;;7550:11;;;7579:6;7594:214;7608:2;7605:1;7602:9;7594:214;;;7665:68;7725:7;7720:2;7713:3;7707:10;7703:2;7699:19;7695:28;7665:68;:::i;:::-;7653:81;;7754:12;;;;7786;;;;7626:1;7619:9;7594:214;;;-1:-1:-1;7827:5:1;;7026:812;-1:-1:-1;;;;;;;;7026:812:1:o;7843:2920::-;;7999:2;8042;8030:9;8021:7;8017:23;8013:32;8010:2;;;8063:6;8055;8048:22;8010:2;8108:9;8095:23;-1:-1:-1;;;;;8178:2:1;8170:6;8167:14;8164:2;;;8199:6;8191;8184:22;8164:2;8242:6;8231:9;8227:22;8217:32;;8287:7;8280:4;8276:2;8272:13;8268:27;8258:2;;8314:6;8306;8299:22;8258:2;8355;8342:16;8378:63;8393:47;8437:2;8393:47;:::i;8378:63::-;8475:15;;;8506:12;;;;8538:11;;;8568:6;8601:11;;;8593:20;;8589:29;;8586:42;-1:-1:-1;8583:2:1;;;8646:6;8638;8631:22;8583:2;8673:6;8664:15;;8688:2045;8702:2;8699:1;8696:9;8688:2045;;;8770:3;8761:7;8757:17;8798:2;8794;8790:11;8787:2;;;8819:6;8811;8804:22;8787:2;8851;8886;8880:9;8912:4;8959:2;8951:6;8947:15;9016:6;9004:10;9001:22;8996:2;8984:10;8981:18;8978:46;8975:2;;;9027:9;8975:2;9051:22;;9099:17;;9129:30;9099:17;9129:30;:::i;:::-;9172:21;;9234:12;;;9221:26;9260:32;9221:26;9260:32;:::i;:::-;9312:15;;;9305:32;9387:12;;;9374:26;9357:15;;;9350:51;9424:2;9450:6;-1:-1:-1;;9476:16:1;;9472:26;-1:-1:-1;9469:2:1;;;9516:6;9508;9501:22;9469:2;9553:19;9568:3;9553:19;:::i;:::-;9538:34;;9623:2;9618:3;9614:12;9601:26;9592:7;9585:43;9688:2;9683:3;9679:12;9666:26;9661:2;9652:7;9648:16;9641:52;9717:3;9780;9775;9771:13;9758:27;9753:2;9744:7;9740:16;9733:53;9810:3;9799:14;;9873:3;9868;9864:13;9851:27;9846:2;9837:7;9833:16;9826:53;9903:3;9966;9961;9957:13;9944:27;9939:2;9930:7;9926:16;9919:53;9996:3;9985:14;;10038:35;10068:3;10063;10059:13;10038:35;:::i;:::-;10032:3;10023:7;10019:17;10012:62;10098:3;10087:14;;10140:35;10170:3;10165;10161:13;10140:35;:::i;:::-;10134:3;10125:7;10121:17;10114:62;10200:3;10189:14;;10242:32;10269:3;10264;10260:13;10242:32;:::i;:::-;10223:17;;;10216:59;10299:3;10354:13;;;10341:27;10322:17;;;10315:54;10421:13;;;10408:27;10389:17;;;10382:54;10475:33;10503:3;10494:13;;10475:33;:::i;:::-;10469:3;10460:7;10456:17;10449:60;10548:33;10576:3;10571;10567:13;10548:33;:::i;:::-;10529:17;;;10522:60;-1:-1:-1;;10602:15:1;;10595:32;;;;10640:19;;-1:-1:-1;;8720:1:1;8713:9;;;;;10679:12;;;;10711;;;;8688:2045;;;-1:-1:-1;10752:5:1;;7979:2784;-1:-1:-1;;;;;;;;;7979:2784:1:o;10768:2156::-;;10926:2;10969;10957:9;10948:7;10944:23;10940:32;10937:2;;;10990:6;10982;10975:22;10937:2;11028:9;11022:16;-1:-1:-1;;;;;11053:6:1;11050:30;11047:2;;;11098:6;11090;11083:22;11047:2;11126:22;;11179:4;11171:13;;11167:27;-1:-1:-1;11157:2:1;;11213:6;11205;11198:22;11157:2;11247;11241:9;11270:63;11285:47;11329:2;11285:47;:::i;11270:63::-;11367:15;;;11398:12;;;;11430:11;;;11460:6;11493:11;;;11485:20;;11481:29;;11478:42;-1:-1:-1;11475:2:1;;;11538:6;11530;11523:22;11475:2;11565:6;11556:15;;11580:1314;11594:2;11591:1;11588:9;11580:1314;;;11665:2;11659:3;11650:7;11646:17;11642:26;11639:2;;;11686:6;11678;11671:22;11639:2;11721:18;11736:2;11721:18;:::i;:::-;11766:10;;11752:25;;11819:12;;;11813:19;11797:14;;;11790:43;11856:2;11900:12;;;11894:19;11878:14;;;11871:43;11937:2;11981:12;;;11975:19;11959:14;;;11952:43;12018:3;12063:12;;;12057:19;12041:14;;;12034:43;12100:3;12139:45;12171:12;;;12139:45;:::i;:::-;12123:14;;;12116:69;12208:3;12247:45;12279:12;;;12247:45;:::i;:::-;12231:14;;;12224:69;12317:3;12357:43;12386:13;;;12357:43;:::i;:::-;12340:15;;;12333:68;12425:3;12471:13;;;12465:20;12448:15;;;12441:45;12510:3;12556:13;;;12550:20;12533:15;;;12526:45;12595:3;12635:44;12665:13;;;12635:44;:::i;:::-;12618:15;;;12611:69;12704:3;12744:44;12774:13;;;12744:44;:::i;:::-;12727:15;;;12720:69;12802:18;;11612:1;11605:9;;;;;12840:12;;;;12872;;;;11580:1314;;12929:257;;13049:2;13037:9;13028:7;13024:23;13020:32;13017:2;;;13070:6;13062;13055:22;13017:2;13107:9;13101:16;13126:30;13150:5;13126:30;:::i;13191:481::-;;;13337:2;13325:9;13316:7;13312:23;13308:32;13305:2;;;13358:6;13350;13343:22;13305:2;13395:9;13389:16;13414:30;13438:5;13414:30;:::i;13677:342::-;;13798:2;13786:9;13777:7;13773:23;13769:32;13766:2;;;13819:6;13811;13804:22;13766:2;13864:9;13851:23;-1:-1:-1;;;;;13889:6:1;13886:30;13883:2;;;13934:6;13926;13919:22;13883:2;13962:51;14005:7;13996:6;13985:9;13981:22;13962:51;:::i;14024:269::-;;14174:3;14162:9;14153:7;14149:23;14145:33;14142:2;;;14196:6;14188;14181:22;14142:2;14224:63;14279:7;14268:9;14224:63;:::i;14298:938::-;;14427:3;14471:2;14459:9;14450:7;14446:23;14442:32;14439:2;;;14492:6;14484;14477:22;14439:2;14530;14524:9;14560:15;;;;-1:-1:-1;;;;;14590:34:1;;14626:22;;;14587:62;14584:2;;;14652:9;14584:2;14683:10;14679:2;14672:22;14724:9;14718:16;14710:6;14703:32;14768:48;14812:2;14801:9;14797:18;14768:48;:::i;:::-;14763:2;14755:6;14751:15;14744:73;14871:2;14860:9;14856:18;14850:25;14845:2;14837:6;14833:15;14826:50;14930:2;14919:9;14915:18;14909:25;14904:2;14896:6;14892:15;14885:50;14990:3;14979:9;14975:19;14969:26;14963:3;14955:6;14951:16;14944:52;15051:3;15040:9;15036:19;15030:26;15024:3;15016:6;15012:16;15005:52;15112:3;15101:9;15097:19;15091:26;15085:3;15077:6;15073:16;15066:52;15152;15199:3;15188:9;15184:19;15152:52;:::i;:::-;15146:3;15134:16;;15127:78;15138:6;14407:829;-1:-1:-1;;;;14407:829:1:o;15241:385::-;;;;15398:2;15386:9;15377:7;15373:23;15369:32;15366:2;;;15419:6;15411;15404:22;15366:2;15456:9;15450:16;15475:33;15502:5;15475:33;:::i;:::-;15572:2;15557:18;;15551:25;15616:2;15601:18;;;15595:25;15527:5;;15551:25;;-1:-1:-1;15595:25:1;15356:270;-1:-1:-1;;;15356:270:1:o;15631:218::-;;15753:2;15741:9;15732:7;15728:23;15724:32;15721:2;;;15774:6;15766;15759:22;15721:2;15802:41;15833:9;15802:41;:::i;15854:190::-;;15966:2;15954:9;15945:7;15941:23;15937:32;15934:2;;;15987:6;15979;15972:22;15934:2;-1:-1:-1;16015:23:1;;15924:120;-1:-1:-1;15924:120:1:o;16049:194::-;;16172:2;16160:9;16151:7;16147:23;16143:32;16140:2;;;16193:6;16185;16178:22;16140:2;-1:-1:-1;16221:16:1;;16130:113;-1:-1:-1;16130:113:1:o;16248:321::-;;;16374:2;16362:9;16353:7;16349:23;16345:32;16342:2;;;16395:6;16387;16380:22;16342:2;16436:9;16423:23;16413:33;;16496:2;16485:9;16481:18;16468:32;16509:30;16533:5;16509:30;:::i;:::-;16558:5;16548:15;;;16332:237;;;;;:::o;16574:337::-;;;16741:3;16729:9;16720:7;16716:23;16712:33;16709:2;;;16763:6;16755;16748:22;16709:2;16804:9;16791:23;16781:33;;16833:72;16897:7;16892:2;16881:9;16877:18;16833:72;:::i;:::-;16823:82;;16699:212;;;;;:::o;16916:547::-;;;;17071:2;17059:9;17050:7;17046:23;17042:32;17039:2;;;17092:6;17084;17077:22;17039:2;17133:9;17120:23;17110:33;;17193:2;17182:9;17178:18;17165:32;17206:33;17233:5;17206:33;:::i;:::-;17258:5;-1:-1:-1;17314:2:1;17299:18;;17286:32;-1:-1:-1;;;;;17330:30:1;;17327:2;;;17378:6;17370;17363:22;17327:2;17406:51;17449:7;17440:6;17429:9;17425:22;17406:51;:::i;:::-;17396:61;;;17029:434;;;;;:::o;17468:447::-;;;;;17642:3;17630:9;17621:7;17617:23;17613:33;17610:2;;;17664:6;17656;17649:22;17610:2;17698:9;17692:16;17682:26;;17751:2;17740:9;17736:18;17730:25;17764:33;17791:5;17764:33;:::i;:::-;17861:2;17846:18;;17840:25;17905:2;17890:18;;;17884:25;17600:315;;17816:5;;-1:-1:-1;17600:315:1;-1:-1:-1;;;17600:315:1:o;17920:685::-;;;;;;18109:3;18097:9;18088:7;18084:23;18080:33;18077:2;;;18131:6;18123;18116:22;18077:2;18172:9;18159:23;18149:33;;18232:2;18221:9;18217:18;18204:32;18245:33;18272:5;18245:33;:::i;:::-;18297:5;-1:-1:-1;18349:2:1;18334:18;;18321:32;;-1:-1:-1;18400:2:1;18385:18;;18372:32;;-1:-1:-1;18455:3:1;18440:19;;18427:33;-1:-1:-1;;;;;18472:30:1;;18469:2;;;18520:6;18512;18505:22;18469:2;18548:51;18591:7;18582:6;18571:9;18567:22;18548:51;:::i;:::-;18538:61;;;18067:538;;;;;;;;:::o;18610:255::-;;;18750:2;18738:9;18729:7;18725:23;18721:32;18718:2;;;18771:6;18763;18756:22;18718:2;-1:-1:-1;;18799:16:1;;18855:2;18840:18;;;18834:25;18799:16;;18834:25;;-1:-1:-1;18708:157:1:o;18870:1224::-;;;;;;;;;;;;;19176:3;19164:9;19155:7;19151:23;19147:33;19144:2;;;19198:6;19190;19183:22;19144:2;19235:9;19229:16;19285:26;19278:5;19274:38;19267:5;19264:49;19254:2;;19332:6;19324;19317:22;19254:2;19360:5;-1:-1:-1;19384:51:1;19431:2;19416:18;;19384:51;:::i;:::-;19374:61;;19454:51;19501:2;19490:9;19486:18;19454:51;:::i;:::-;19444:61;;19524:51;19571:2;19560:9;19556:18;19524:51;:::i;:::-;19514:61;;19594:51;19640:3;19629:9;19625:19;19594:51;:::i;:::-;19584:61;;19664:50;19709:3;19698:9;19694:19;19664:50;:::i;:::-;19654:60;;19733:50;19778:3;19767:9;19763:19;19733:50;:::i;:::-;19723:60;;19802:52;19849:3;19838:9;19834:19;19802:52;:::i;:::-;19792:62;;19894:3;19883:9;19879:19;19873:26;19863:36;;19939:3;19928:9;19924:19;19918:26;19908:36;;19964:52;20011:3;20000:9;19996:19;19964:52;:::i;:::-;19953:63;;20036:52;20083:3;20072:9;20068:19;20036:52;:::i;:::-;20025:63;;19134:960;;;;;;;;;;;;;;:::o;20099:114::-;-1:-1:-1;;;;;20175:31:1;20163:44;;20153:60::o;20218:93::-;20290:13;20283:21;20271:34;;20261:50::o;20316:259::-;;20397:5;20391:12;20424:6;20419:3;20412:19;20440:63;20496:6;20489:4;20484:3;20480:14;20473:4;20466:5;20462:16;20440:63;:::i;:::-;20557:2;20536:15;-1:-1:-1;;20532:29:1;20523:39;;;;20564:4;20519:50;;20367:208;-1:-1:-1;;20367:208:1:o;20580:93::-;20657:1;20646:20;20634:33;;20624:49::o;20678:549::-;20765:5;20759:12;20754:3;20747:25;20835:4;20828:5;20824:16;20818:23;20811:31;20804:39;20797:4;20792:3;20788:14;20781:63;20893:4;20886:5;20882:16;20876:23;20869:4;20864:3;20860:14;20853:47;20949:4;20942:5;20938:16;20932:23;20925:4;20920:3;20916:14;20909:47;21005:4;20998:5;20994:16;20988:23;20981:4;20976:3;20972:14;20965:47;21061:4;21054:5;21050:16;21044:23;21037:4;21032:3;21028:14;21021:47;21117:4;21110:5;21106:16;21100:23;21093:4;21088:3;21084:14;21077:47;-1:-1:-1;;;;;21177:4:1;21170:5;21166:16;21160:23;21156:64;21149:4;21144:3;21140:14;21133:88;20737:490;;:::o;21232:121::-;-1:-1:-1;;;;;21300:46:1;21288:59;;21278:75::o;21358:94::-;21436:8;21425:20;21413:33;;21403:49::o;21457:274::-;;21624:6;21618:13;21640:53;21686:6;21681:3;21674:4;21666:6;21662:17;21640:53;:::i;:::-;21709:16;;;;;21594:137;-1:-1:-1;;21594:137:1:o;21736:205::-;21936:3;21927:14::o;21946:203::-;-1:-1:-1;;;;;22110:32:1;;;;22092:51;;22080:2;22065:18;;22047:102::o;22370:566::-;-1:-1:-1;;;;;22701:15:1;;;22683:34;;22753:15;;;;22748:2;22733:18;;22726:43;22800:2;22785:18;;22778:34;;;;22848:3;22843:2;22828:18;;22821:31;;;22370:566;22868:19;;;22861:33;22663:3;22911:19;;22635:301::o;22941:324::-;-1:-1:-1;;;;;23124:32:1;;23106:51;;23193:2;23188;23173:18;;23166:30;;;22941:324;;23213:46;;23240:18;;23232:6;23213:46;:::i;23270:375::-;-1:-1:-1;;;;;23528:15:1;;;23510:34;;23580:15;;;;23575:2;23560:18;;23553:43;23627:2;23612:18;;23605:34;;;;23460:2;23445:18;;23427:218::o;23650:408::-;-1:-1:-1;;;;;23930:15:1;;;23912:34;;23994:4;23982:17;;;;23977:2;23962:18;;23955:45;24036:15;;;24031:2;24016:18;;24009:43;23862:2;23847:18;;23829:229::o;24063:274::-;-1:-1:-1;;;;;24255:32:1;;;;24237:51;;24319:2;24304:18;;24297:34;24225:2;24210:18;;24192:145::o;24342:806::-;;24531:2;24571;24560:9;24556:18;24601:2;24590:9;24583:21;24624:6;24659;24653:13;24690:6;24682;24675:22;24728:2;24717:9;24713:18;24706:25;;24791:2;24785;24777:6;24773:15;24762:9;24758:31;24754:40;24740:54;;24829:2;24821:6;24817:15;24850:4;24863:256;24877:6;24874:1;24871:13;24863:256;;;24970:2;24966:7;24954:9;24946:6;24942:22;24938:36;24933:3;24926:49;24998:41;25032:6;25023;25017:13;24998:41;:::i;:::-;24988:51;-1:-1:-1;25097:12:1;;;;25062:15;;;;24899:1;24892:9;24863:256;;;-1:-1:-1;25136:6:1;;24511:637;-1:-1:-1;;;;;;;24511:637:1:o;25153:722::-;25380:2;25432:21;;;25502:13;;25405:18;;;25524:22;;;25153:722;;25380:2;25603:15;;;;25577:2;25562:18;;;25153:722;25649:200;25663:6;25660:1;25657:13;25649:200;;;25712:53;25761:3;25752:6;25746:13;25712:53;:::i;:::-;25824:15;;;;25794:6;25785:16;;;;;25685:1;25678:9;25649:200;;;-1:-1:-1;25866:3:1;;25360:515;-1:-1:-1;;;;;;25360:515:1:o;25880:219::-;;26027:2;26016:9;26009:21;26047:46;26089:2;26078:9;26074:18;26066:6;26047:46;:::i;26348:307::-;26574:4;26562:17;;;;26544:36;;-1:-1:-1;;;;;26616:32:1;26611:2;26596:18;;26589:60;26532:2;26517:18;;26499:156::o;26660:397::-;26862:2;26844:21;;;26901:2;26881:18;;;26874:30;26940:34;26935:2;26920:18;;26913:62;-1:-1:-1;;;27006:2:1;26991:18;;26984:31;27047:3;27032:19;;26834:223::o;27062:326::-;27264:2;27246:21;;;27303:1;27283:18;;;27276:29;-1:-1:-1;;;27336:2:1;27321:18;;27314:33;27379:2;27364:18;;27236:152::o;27393:336::-;27595:2;27577:21;;;27634:2;27614:18;;;27607:30;-1:-1:-1;;;27668:2:1;27653:18;;27646:42;27720:2;27705:18;;27567:162::o;27734:347::-;27936:2;27918:21;;;27975:2;27955:18;;;27948:30;28014:25;28009:2;27994:18;;27987:53;28072:2;28057:18;;27908:173::o;28086:336::-;28288:2;28270:21;;;28327:2;28307:18;;;28300:30;-1:-1:-1;;;28361:2:1;28346:18;;28339:42;28413:2;28398:18;;28260:162::o;28427:337::-;28629:2;28611:21;;;28668:2;28648:18;;;28641:30;-1:-1:-1;;;28702:2:1;28687:18;;28680:43;28755:2;28740:18;;28601:163::o;28769:336::-;28971:2;28953:21;;;29010:2;28990:18;;;28983:30;-1:-1:-1;;;29044:2:1;29029:18;;29022:42;29096:2;29081:18;;28943:162::o;29110:340::-;29312:2;29294:21;;;29351:2;29331:18;;;29324:30;-1:-1:-1;;;29385:2:1;29370:18;;29363:46;29441:2;29426:18;;29284:166::o;29455:332::-;29657:2;29639:21;;;29696:1;29676:18;;;29669:29;-1:-1:-1;;;29729:2:1;29714:18;;29707:39;29778:2;29763:18;;29629:158::o;29792:343::-;29994:2;29976:21;;;30033:2;30013:18;;;30006:30;-1:-1:-1;;;30067:2:1;30052:18;;30045:49;30126:2;30111:18;;29966:169::o;30140:329::-;30342:2;30324:21;;;30381:1;30361:18;;;30354:29;-1:-1:-1;;;30414:2:1;30399:18;;30392:36;30460:2;30445:18;;30314:155::o;30474:336::-;30676:2;30658:21;;;30715:2;30695:18;;;30688:30;-1:-1:-1;;;30749:2:1;30734:18;;30727:42;30801:2;30786:18;;30648:162::o;30815:339::-;31017:2;30999:21;;;31056:2;31036:18;;;31029:30;-1:-1:-1;;;31090:2:1;31075:18;;31068:45;31145:2;31130:18;;30989:165::o;31159:337::-;31361:2;31343:21;;;31400:2;31380:18;;;31373:30;-1:-1:-1;;;31434:2:1;31419:18;;31412:43;31487:2;31472:18;;31333:163::o;31501:326::-;31703:2;31685:21;;;31742:1;31722:18;;;31715:29;-1:-1:-1;;;31775:2:1;31760:18;;31753:33;31818:2;31803:18;;31675:152::o;31832:339::-;32034:2;32016:21;;;32073:2;32053:18;;;32046:30;-1:-1:-1;;;32107:2:1;32092:18;;32085:45;32162:2;32147:18;;32006:165::o;32176:326::-;32378:2;32360:21;;;32417:1;32397:18;;;32390:29;-1:-1:-1;;;32450:2:1;32435:18;;32428:33;32493:2;32478:18;;32350:152::o;32507:326::-;32709:2;32691:21;;;32748:1;32728:18;;;32721:29;-1:-1:-1;;;32781:2:1;32766:18;;32759:33;32824:2;32809:18;;32681:152::o;32838:406::-;33040:2;33022:21;;;33079:2;33059:18;;;33052:30;33118:34;33113:2;33098:18;;33091:62;-1:-1:-1;;;33184:2:1;33169:18;;33162:40;33234:3;33219:19;;33012:232::o;33249:351::-;33451:2;33433:21;;;33490:2;33470:18;;;33463:30;33529:29;33524:2;33509:18;;33502:57;33591:2;33576:18;;33423:177::o;33605:343::-;33807:2;33789:21;;;33846:2;33826:18;;;33819:30;-1:-1:-1;;;33880:2:1;33865:18;;33858:49;33939:2;33924:18;;33779:169::o;33953:332::-;34155:2;34137:21;;;34194:1;34174:18;;;34167:29;-1:-1:-1;;;34227:2:1;34212:18;;34205:39;34276:2;34261:18;;34127:158::o;34290:338::-;34492:2;34474:21;;;34531:2;34511:18;;;34504:30;-1:-1:-1;;;34565:2:1;34550:18;;34543:44;34619:2;34604:18;;34464:164::o;34633:343::-;34835:2;34817:21;;;34874:2;34854:18;;;34847:30;-1:-1:-1;;;34908:2:1;34893:18;;34886:49;34967:2;34952:18;;34807:169::o;34981:348::-;35183:2;35165:21;;;35222:2;35202:18;;;35195:30;35261:26;35256:2;35241:18;;35234:54;35320:2;35305:18;;35155:174::o;35334:340::-;35536:2;35518:21;;;35575:2;35555:18;;;35548:30;-1:-1:-1;;;35609:2:1;35594:18;;35587:46;35665:2;35650:18;;35508:166::o;35679:332::-;35881:2;35863:21;;;35920:1;35900:18;;;35893:29;-1:-1:-1;;;35953:2:1;35938:18;;35931:39;36002:2;35987:18;;35853:158::o;36016:342::-;36218:2;36200:21;;;36257:2;36237:18;;;36230:30;-1:-1:-1;;;36291:2:1;36276:18;;36269:48;36349:2;36334:18;;36190:168::o;36363:574::-;36590:13;;36572:32;;36664:4;36652:17;;;36646:24;-1:-1:-1;;;;;36642:50:1;36620:20;;;36613:80;36740:4;36728:17;;;36722:24;-1:-1:-1;;;;;36837:21:1;;;36815:20;;;36808:51;;;;36919:4;36907:17;;;36901:24;36897:33;36875:20;;;36868:63;;;;36559:3;36544:19;;36526:411::o;36942:560::-;;37158:3;37147:9;37143:19;37135:27;;37195:6;37189:13;37178:9;37171:32;-1:-1:-1;;;;;37263:4:1;37255:6;37251:17;37245:24;37241:65;37234:4;37223:9;37219:20;37212:95;37363:4;37355:6;37351:17;37345:24;37338:4;37327:9;37323:20;37316:54;37426:4;37418:6;37414:17;37408:24;37401:4;37390:9;37386:20;37379:54;37489:4;37481:6;37477:17;37471:24;37464:4;37453:9;37449:20;37442:54;37125:377;;;;:::o;37507:525::-;37738:13;;-1:-1:-1;;;;;37734:39:1;37716:58;;37830:4;37818:17;;;37812:24;37790:20;;;37783:54;37893:4;37881:17;;;37875:24;37853:20;;;37846:54;37956:4;37944:17;;;37938:24;37916:20;;;37909:54;38019:4;38007:17;;;38001:24;37979:20;;;37972:54;;;;37703:3;37688:19;;37670:362::o;38037:1525::-;38319:3;38304:19;;38332:52;38308:9;38366:6;38332:52;:::i;:::-;38403:3;38448:6;38442:13;38437:2;38426:9;38422:18;38415:41;38493:4;38485:6;38481:17;38475:24;38518:3;38557:2;38552;38541:9;38537:18;38530:30;38597:4;38589:6;38585:17;38579:24;38569:34;;38622:3;38661:2;38656;38645:9;38641:18;38634:30;38701:4;38693:6;38689:17;38683:24;38673:34;;38726:3;38765:2;38760;38749:9;38745:18;38738:30;38823:4;38815:6;38811:17;38805:24;38799:3;38788:9;38784:19;38777:53;38877:4;38869:6;38865:17;38859:24;38839:44;;38892:63;38950:3;38939:9;38935:19;38921:12;38892:63;:::i;:::-;39004:4;38996:6;38992:17;38986:24;38964:46;;39019:65;39079:3;39068:9;39064:19;39048:14;39019:65;:::i;:::-;39133:4;39125:6;39121:17;39115:24;39093:46;;39148:54;39197:3;39186:9;39182:19;39166:14;39148:54;:::i;:::-;39245:15;;;39239:22;39233:3;39218:19;;39211:51;39305:15;;;39299:22;39293:3;39278:19;;39271:51;39359:15;;;39353:22;;39384:55;39434:3;39419:19;;39353:22;39384:55;:::i;:::-;39476:15;;39470:22;;-1:-1:-1;39501:55:1;;-1:-1:-1;;;39551:3:1;39536:19;;39470:22;39501:55;:::i;:::-;;38286:1276;;;;;:::o;39567:869::-;39789:13;;39771:32;;39878:4;39866:17;;39860:24;39758:3;39743:19;;;39832:53;;;:::i;:::-;39894;39941:4;39930:9;39926:20;39912:12;39894:53;:::i;:::-;;40003:4;39995:6;39991:17;39985:24;39978:4;39967:9;39963:20;39956:54;40066:4;40058:6;40054:17;40048:24;40041:4;40030:9;40026:20;40019:54;40129:4;40121:6;40117:17;40111:24;40104:4;40093:9;40089:20;40082:54;40192:4;40184:6;40180:17;40174:24;40167:4;40156:9;40152:20;40145:54;40255:4;40247:6;40243:17;40237:24;40230:4;40219:9;40215:20;40208:54;40293:70;40356:4;40348:6;40344:17;40338:24;40293:70;:::i;:::-;40372:58;40424:4;40413:9;40409:20;40393:14;40372:58;:::i;:::-;;39725:711;;;;:::o;40441:582::-;;40657:3;40646:9;40642:19;40634:27;;40694:6;40688:13;40677:9;40670:32;40758:4;40750:6;40746:17;40740:24;40733:4;40722:9;40718:20;40711:54;40821:4;40813:6;40809:17;40803:24;40796:4;40785:9;40781:20;40774:54;40884:4;40876:6;40872:17;40866:24;40859:4;40848:9;40844:20;40837:54;40947:4;40939:6;40935:17;40929:24;40922:4;40911:9;40907:20;40900:54;41010:4;41002:6;40998:17;40992:24;40985:4;40974:9;40970:20;40963:54;40624:399;;;;:::o;41028:1258::-;;41218:3;41207:9;41203:19;41195:27;;41231:54;41275:9;41266:6;41260:13;41231:54;:::i;:::-;41332:4;41324:6;41320:17;41314:24;41347:64;41405:4;41394:9;41390:20;41376:12;41347:64;:::i;:::-;;41460:4;41452:6;41448:17;41442:24;41475:57;41526:4;41515:9;41511:20;41495:14;41475:57;:::i;:::-;;41581:4;41573:6;41569:17;41563:24;41596:56;41646:4;41635:9;41631:20;41615:14;41596:56;:::i;:::-;;41701:4;41693:6;41689:17;41683:24;41716:56;41766:4;41755:9;41751:20;41735:14;41716:56;:::i;:::-;;41828:4;41820:6;41816:17;41810:24;41803:4;41792:9;41788:20;41781:54;41891:4;41883:6;41879:17;41873:24;41866:4;41855:9;41851:20;41844:54;41954:4;41946:6;41942:17;41936:24;41929:4;41918:9;41914:20;41907:54;41980:6;42040:2;42032:6;42028:15;42022:22;42017:2;42006:9;42002:18;41995:50;;42064:6;42119:2;42111:6;42107:15;42101:22;42132:64;42192:2;42181:9;42177:18;42161:14;42132:64;:::i;:::-;-1:-1:-1;;42215:6:1;42263:15;;;42257:22;42237:18;;;;42230:50;41185:1101;:::o;42291:177::-;42437:25;;;42425:2;42410:18;;42392:76::o;42473:242::-;42543:2;42537:9;42573:17;;;-1:-1:-1;;;;;42605:34:1;;42641:22;;;42602:62;42599:2;;;42667:9;42599:2;42694;42687:22;42517:198;;-1:-1:-1;42517:198:1:o;42720:181::-;;-1:-1:-1;;;;;42809:6:1;42806:30;42803:2;;;42839:9;42803:2;-1:-1:-1;42890:4:1;42871:17;;;42867:28;;42793:108::o;42906:181::-;;-1:-1:-1;;;;;42981:6:1;42978:30;42975:2;;;43011:9;42975:2;-1:-1:-1;43070:2:1;43047:17;-1:-1:-1;;43043:31:1;43076:4;43039:42;;42965:122::o;43092:90::-;43175:4;43164:16;;43151:31::o;43187:258::-;43259:1;43269:113;43283:6;43280:1;43277:13;43269:113;;;43359:11;;;43353:18;43340:11;;;43333:39;43305:2;43298:10;43269:113;;;43400:6;43397:1;43394:13;43391:2;;;-1:-1:-1;;43435:1:1;43417:16;;43410:27;43240:205::o;43450:155::-;-1:-1:-1;;;;;43548:51:1;;43529:76::o;43610:133::-;-1:-1:-1;;;;;43687:31:1;;43677:42;;43667:2;;43733:1;43730;43723:12;43748:120;43836:5;43829:13;43822:21;43815:5;43812:32;43802:2;;43858:1;43855;43848:12;43873:120;43962:5;43959:1;43948:20;43941:5;43938:31;43928:2;;43983:1;43980;43973:12;43998:148;-1:-1:-1;;;;;44079:5:1;44075:46;44068:5;44065:57;44055:2;;44136:1;44133;44126:12

Swarm Source

ipfs://48c012e1776b3aa6e1743d3736e202b1e7f6ee91053d9ce65fa416fd346377a0

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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