Contract

0x1546ec8B238dCA09Bb39196a18268CbB51A40853

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

-

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Vault Utils6373432024-12-19 0:08:286 hrs ago1734566908IN
0x1546ec8B...B51A40853
0 S0.000033081.1
Set Error Contro...6370892024-12-19 0:06:196 hrs ago1734566779IN
0x1546ec8B...B51A40853
0 S0.00005231.1
Set Fees6369012024-12-19 0:05:126 hrs ago1734566712IN
0x1546ec8B...B51A40853
0 S0.000129061.1

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Vault

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at SonicScan.org on 2024-12-18
*/

// Sources flattened with hardhat v2.12.0 https://hardhat.org

// File contracts/libraries/token/IERC20.sol

//  

pragma solidity 0.6.12;

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

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

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

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

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

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

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

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


// File contracts/libraries/math/SafeMath.sol

//  

pragma solidity 0.6.12;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

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

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

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

        return c;
    }

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

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


// File contracts/libraries/utils/ReentrancyGuard.sol

//  

pragma solidity 0.6.12;

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

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

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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


// File contracts/libraries/utils/Address.sol

//  

pragma solidity ^0.6.2;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// File contracts/libraries/token/SafeERC20.sol

//  

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

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

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

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

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

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// File contracts/tokens/interfaces/IUSDG.sol

//  

pragma solidity 0.6.12;

interface IUSDG {
    function addVault(address _vault) external;
    function removeVault(address _vault) external;
    function mint(address _account, uint256 _amount) external;
    function burn(address _account, uint256 _amount) external;
}


// File contracts/core/interfaces/IVaultUtils.sol

//  

pragma solidity 0.6.12;

interface IVaultUtils {
    function updateCumulativeFundingRate(address _collateralToken, address _indexToken) external returns (bool);
    function validateIncreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) external view;
    function validateDecreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) external view;
    function validateLiquidation(address _account, address _collateralToken, address _indexToken, bool _isLong, bool _raise) external view returns (uint256, uint256);
    function getEntryFundingRate(address _collateralToken, address _indexToken, bool _isLong) external view returns (uint256);
    function getPositionFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _sizeDelta) external view returns (uint256);
    function getFundingFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _size, uint256 _entryFundingRate) external view returns (uint256);
    function getBuyUsdgFeeBasisPoints(address _token, uint256 _usdgAmount) external view returns (uint256);
    function getSellUsdgFeeBasisPoints(address _token, uint256 _usdgAmount) external view returns (uint256);
    function getSwapFeeBasisPoints(address _tokenIn, address _tokenOut, uint256 _usdgAmount) external view returns (uint256);
    function getFeeBasisPoints(address _token, uint256 _usdgDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) external view returns (uint256);
}


// File contracts/core/interfaces/IVault.sol

//  

pragma solidity 0.6.12;
interface IVault {
    function isInitialized() external view returns (bool);
    function isSwapEnabled() external view returns (bool);
    function isLeverageEnabled() external view returns (bool);

    function setVaultUtils(IVaultUtils _vaultUtils) external;
    function setError(uint256 _errorCode, string calldata _error) external;

    function router() external view returns (address);
    function usdg() external view returns (address);
    function gov() external view returns (address);

    function whitelistedTokenCount() external view returns (uint256);
    function maxLeverage() external view returns (uint256);

    function minProfitTime() external view returns (uint256);
    function hasDynamicFees() external view returns (bool);
    function fundingInterval() external view returns (uint256);
    function totalTokenWeights() external view returns (uint256);
    function getTargetUsdgAmount(address _token) external view returns (uint256);

    function inManagerMode() external view returns (bool);
    function inPrivateLiquidationMode() external view returns (bool);

    function maxGasPrice() external view returns (uint256);

    function approvedRouters(address _account, address _router) external view returns (bool);
    function isLiquidator(address _account) external view returns (bool);
    function isManager(address _account) external view returns (bool);

    function minProfitBasisPoints(address _token) external view returns (uint256);
    function tokenBalances(address _token) external view returns (uint256);
    function lastFundingTimes(address _token) external view returns (uint256);

    function setMaxLeverage(uint256 _maxLeverage) external;
    function setInManagerMode(bool _inManagerMode) external;
    function setManager(address _manager, bool _isManager) external;
    function setIsSwapEnabled(bool _isSwapEnabled) external;
    function setIsLeverageEnabled(bool _isLeverageEnabled) external;
    function setMaxGasPrice(uint256 _maxGasPrice) external;
    function setUsdgAmount(address _token, uint256 _amount) external;
    function setBufferAmount(address _token, uint256 _amount) external;
    function setMaxGlobalShortSize(address _token, uint256 _amount) external;
    function setInPrivateLiquidationMode(bool _inPrivateLiquidationMode) external;
    function setLiquidator(address _liquidator, bool _isActive) external;

    function setFundingRate(uint256 _fundingInterval, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) external;

    function setFees(
        uint256 _taxBasisPoints,
        uint256 _stableTaxBasisPoints,
        uint256 _mintBurnFeeBasisPoints,
        uint256 _swapFeeBasisPoints,
        uint256 _stableSwapFeeBasisPoints,
        uint256 _marginFeeBasisPoints,
        uint256 _liquidationFeeUsd,
        uint256 _minProfitTime,
        bool _hasDynamicFees
    ) external;

    function setTokenConfig(
        address _token,
        uint256 _tokenDecimals,
        uint256 _redemptionBps,
        uint256 _minProfitBps,
        uint256 _maxUsdgAmount,
        bool _isStable,
        bool _isShortable
    ) external;

    function setPriceFeed(address _priceFeed) external;
    function withdrawFees(address _token, address _receiver) external returns (uint256);

    function directPoolDeposit(address _token) external;
    function buyUSDG(address _token, address _receiver) external returns (uint256);
    function sellUSDG(address _token, address _receiver) external returns (uint256);
    function swap(address _tokenIn, address _tokenOut, address _receiver) external returns (uint256);
    function increasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) external;
    function decreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) external returns (uint256);
    function validateLiquidation(address _account, address _collateralToken, address _indexToken, bool _isLong, bool _raise) external view returns (uint256, uint256);
    function liquidatePosition(address _account, address _collateralToken, address _indexToken, bool _isLong, address _feeReceiver) external;
    function tokenToUsdMin(address _token, uint256 _tokenAmount) external view returns (uint256);

    function priceFeed() external view returns (address);
    function fundingRateFactor() external view returns (uint256);
    function stableFundingRateFactor() external view returns (uint256);
    function cumulativeFundingRates(address _token) external view returns (uint256);
    function getNextFundingRate(address _token) external view returns (uint256);
    function getFeeBasisPoints(address _token, uint256 _usdgDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) external view returns (uint256);

    function liquidationFeeUsd() external view returns (uint256);
    function taxBasisPoints() external view returns (uint256);
    function stableTaxBasisPoints() external view returns (uint256);
    function mintBurnFeeBasisPoints() external view returns (uint256);
    function swapFeeBasisPoints() external view returns (uint256);
    function stableSwapFeeBasisPoints() external view returns (uint256);
    function marginFeeBasisPoints() external view returns (uint256);

    function allWhitelistedTokensLength() external view returns (uint256);
    function allWhitelistedTokens(uint256) external view returns (address);
    function whitelistedTokens(address _token) external view returns (bool);
    function stableTokens(address _token) external view returns (bool);
    function shortableTokens(address _token) external view returns (bool);
    function feeReserves(address _token) external view returns (uint256);
    function globalShortSizes(address _token) external view returns (uint256);
    function globalShortAveragePrices(address _token) external view returns (uint256);
    function maxGlobalShortSizes(address _token) external view returns (uint256);
    function tokenDecimals(address _token) external view returns (uint256);
    function tokenWeights(address _token) external view returns (uint256);
    function guaranteedUsd(address _token) external view returns (uint256);
    function poolAmounts(address _token) external view returns (uint256);
    function bufferAmounts(address _token) external view returns (uint256);
    function reservedAmounts(address _token) external view returns (uint256);
    function usdgAmounts(address _token) external view returns (uint256);
    function maxUsdgAmounts(address _token) external view returns (uint256);
    function getRedemptionAmount(address _token, uint256 _usdgAmount) external view returns (uint256);
    function getMaxPrice(address _token) external view returns (uint256);
    function getMinPrice(address _token) external view returns (uint256);

    function getDelta(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _lastIncreasedTime) external view returns (bool, uint256);
    function getPosition(address _account, address _collateralToken, address _indexToken, bool _isLong) external view returns (uint256, uint256, uint256, uint256, uint256, uint256, bool, uint256);
}


// File contracts/core/interfaces/IVaultPriceFeed.sol

//  

pragma solidity 0.6.12;

interface IVaultPriceFeed {
    function adjustmentBasisPoints(address _token) external view returns (uint256);
    function isAdjustmentAdditive(address _token) external view returns (bool);
    function setAdjustment(address _token, bool _isAdditive, uint256 _adjustmentBps) external;
    function setUseV2Pricing(bool _useV2Pricing) external;
    function setIsAmmEnabled(bool _isEnabled) external;
    function setIsSecondaryPriceEnabled(bool _isEnabled) external;
    function setSpreadBasisPoints(address _token, uint256 _spreadBasisPoints) external;
    function setSpreadThresholdBasisPoints(uint256 _spreadThresholdBasisPoints) external;
    function setFavorPrimaryPrice(bool _favorPrimaryPrice) external;
    function setPriceSampleSpace(uint256 _priceSampleSpace) external;
    function setMaxStrictPriceDeviation(uint256 _maxStrictPriceDeviation) external;
    function getPrice(address _token, bool _maximise, bool _includeAmmPrice, bool _useSwapPricing) external view returns (uint256);
    function getAmmPrice(address _token) external view returns (uint256);
    function getLatestPrimaryPrice(address _token) external view returns (uint256);
    function getPrimaryPrice(address _token, bool _maximise) external view returns (uint256);
    function setTokenConfig(
        address _token,
        address _priceFeed,
        uint256 _priceDecimals,
        bool _isStrictStable
    ) external;
}


// File contracts/core/Vault.sol

//  

pragma solidity 0.6.12;
contract Vault is ReentrancyGuard, IVault {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    struct Position {
        uint256 size;
        uint256 collateral;
        uint256 averagePrice;
        uint256 entryFundingRate;
        uint256 reserveAmount;
        int256 realisedPnl;
        uint256 lastIncreasedTime;
    }

    uint256 public constant BASIS_POINTS_DIVISOR = 10000;
    uint256 public constant FUNDING_RATE_PRECISION = 1000000;
    uint256 public constant PRICE_PRECISION = 10 ** 30;
    uint256 public constant MIN_LEVERAGE = 10000; // 1x
    uint256 public constant USDG_DECIMALS = 18;
    uint256 public constant MAX_FEE_BASIS_POINTS = 500; // 5%
    uint256 public constant MAX_LIQUIDATION_FEE_USD = 100 * PRICE_PRECISION; // 100 USD
    uint256 public constant MIN_FUNDING_RATE_INTERVAL = 1 hours;
    uint256 public constant MAX_FUNDING_RATE_FACTOR = 10000; // 1%

    bool public override isInitialized;
    bool public override isSwapEnabled = true;
    bool public override isLeverageEnabled = true;

    IVaultUtils public vaultUtils;

    address public errorController;

    address public override router;
    address public override priceFeed;

    address public override usdg;
    address public override gov;

    uint256 public override whitelistedTokenCount;

    uint256 public override maxLeverage = 50 * 10000; // 50x

    uint256 public override liquidationFeeUsd;
    uint256 public override taxBasisPoints = 50; // 0.5%
    uint256 public override stableTaxBasisPoints = 20; // 0.2%
    uint256 public override mintBurnFeeBasisPoints = 30; // 0.3%
    uint256 public override swapFeeBasisPoints = 30; // 0.3%
    uint256 public override stableSwapFeeBasisPoints = 4; // 0.04%
    uint256 public override marginFeeBasisPoints = 10; // 0.1%

    uint256 public override minProfitTime;
    bool public override hasDynamicFees = false;

    uint256 public override fundingInterval = 8 hours;
    uint256 public override fundingRateFactor;
    uint256 public override stableFundingRateFactor;
    uint256 public override totalTokenWeights;

    bool public includeAmmPrice = false;
    bool public useSwapPricing = false;

    bool public override inManagerMode = true;
    bool public override inPrivateLiquidationMode = true;

    uint256 public override maxGasPrice;

    mapping (address => mapping (address => bool)) public override approvedRouters;
    mapping (address => bool) public override isLiquidator;
    mapping (address => bool) public override isManager;

    address[] public override allWhitelistedTokens;

    mapping (address => bool) public override whitelistedTokens;
    mapping (address => uint256) public override tokenDecimals;
    mapping (address => uint256) public override minProfitBasisPoints;
    mapping (address => bool) public override stableTokens;
    mapping (address => bool) public override shortableTokens;

    // tokenBalances is used only to determine _transferIn values
    mapping (address => uint256) public override tokenBalances;

    // tokenWeights allows customisation of index composition
    mapping (address => uint256) public override tokenWeights;

    // usdgAmounts tracks the amount of USDG debt for each whitelisted token
    mapping (address => uint256) public override usdgAmounts;

    // maxUsdgAmounts allows setting a max amount of USDG debt for a token
    mapping (address => uint256) public override maxUsdgAmounts;

    // poolAmounts tracks the number of received tokens that can be used for leverage
    // this is tracked separately from tokenBalances to exclude funds that are deposited as margin collateral
    mapping (address => uint256) public override poolAmounts;

    // reservedAmounts tracks the number of tokens reserved for open leverage positions
    mapping (address => uint256) public override reservedAmounts;

    // bufferAmounts allows specification of an amount to exclude from swaps
    // this can be used to ensure a certain amount of liquidity is available for leverage positions
    mapping (address => uint256) public override bufferAmounts;

    // guaranteedUsd tracks the amount of USD that is "guaranteed" by opened leverage positions
    // this value is used to calculate the redemption values for selling of USDG
    // this is an estimated amount, it is possible for the actual guaranteed value to be lower
    // in the case of sudden price decreases, the guaranteed value should be corrected
    // after liquidations are carried out
    mapping (address => uint256) public override guaranteedUsd;

    // cumulativeFundingRates tracks the funding rates based on utilization
    mapping (address => uint256) public override cumulativeFundingRates;
    // lastFundingTimes tracks the last time funding was updated for a token
    mapping (address => uint256) public override lastFundingTimes;

    // positions tracks all open positions
    mapping (bytes32 => Position) public positions;

    // feeReserves tracks the amount of fees per token
    mapping (address => uint256) public override feeReserves;

    mapping (address => uint256) public override globalShortSizes;
    mapping (address => uint256) public override globalShortAveragePrices;
    mapping (address => uint256) public override maxGlobalShortSizes;

    mapping (uint256 => string) public errors;

    event BuyUSDG(address account, address token, uint256 tokenAmount, uint256 usdgAmount, uint256 feeBasisPoints);
    event SellUSDG(address account, address token, uint256 usdgAmount, uint256 tokenAmount, uint256 feeBasisPoints);
    event Swap(address account, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut, uint256 amountOutAfterFees, uint256 feeBasisPoints);

    event IncreasePosition(
        bytes32 key,
        address account,
        address collateralToken,
        address indexToken,
        uint256 collateralDelta,
        uint256 sizeDelta,
        bool isLong,
        uint256 price,
        uint256 fee
    );
    event DecreasePosition(
        bytes32 key,
        address account,
        address collateralToken,
        address indexToken,
        uint256 collateralDelta,
        uint256 sizeDelta,
        bool isLong,
        uint256 price,
        uint256 fee
    );
    event LiquidatePosition(
        bytes32 key,
        address account,
        address collateralToken,
        address indexToken,
        bool isLong,
        uint256 size,
        uint256 collateral,
        uint256 reserveAmount,
        int256 realisedPnl,
        uint256 markPrice
    );
    event UpdatePosition(
        bytes32 key,
        uint256 size,
        uint256 collateral,
        uint256 averagePrice,
        uint256 entryFundingRate,
        uint256 reserveAmount,
        int256 realisedPnl,
        uint256 markPrice
    );
    event ClosePosition(
        bytes32 key,
        uint256 size,
        uint256 collateral,
        uint256 averagePrice,
        uint256 entryFundingRate,
        uint256 reserveAmount,
        int256 realisedPnl
    );

    event UpdateFundingRate(address token, uint256 fundingRate);
    event UpdatePnl(bytes32 key, bool hasProfit, uint256 delta);

    event CollectSwapFees(address token, uint256 feeUsd, uint256 feeTokens);
    event CollectMarginFees(address token, uint256 feeUsd, uint256 feeTokens);

    event DirectPoolDeposit(address token, uint256 amount);
    event IncreasePoolAmount(address token, uint256 amount);
    event DecreasePoolAmount(address token, uint256 amount);
    event IncreaseUsdgAmount(address token, uint256 amount);
    event DecreaseUsdgAmount(address token, uint256 amount);
    event IncreaseReservedAmount(address token, uint256 amount);
    event DecreaseReservedAmount(address token, uint256 amount);
    event IncreaseGuaranteedUsd(address token, uint256 amount);
    event DecreaseGuaranteedUsd(address token, uint256 amount);

    // once the parameters are verified to be working correctly,
    // gov should be set to a timelock contract or a governance contract
    constructor() public {
        gov = msg.sender;
    }

    function initialize(
        address _router,
        address _usdg,
        address _priceFeed,
        uint256 _liquidationFeeUsd,
        uint256 _fundingRateFactor,
        uint256 _stableFundingRateFactor
    ) external {
        _onlyGov();
        _validate(!isInitialized, 1);
        isInitialized = true;

        router = _router;
        usdg = _usdg;
        priceFeed = _priceFeed;
        liquidationFeeUsd = _liquidationFeeUsd;
        fundingRateFactor = _fundingRateFactor;
        stableFundingRateFactor = _stableFundingRateFactor;
    }

    function setVaultUtils(IVaultUtils _vaultUtils) external override {
        _onlyGov();
        vaultUtils = _vaultUtils;
    }

    function setErrorController(address _errorController) external {
        _onlyGov();
        errorController = _errorController;
    }

    function setError(uint256 _errorCode, string calldata _error) external override {
        require(msg.sender == errorController, "Vault: invalid errorController");
        errors[_errorCode] = _error;
    }

    function allWhitelistedTokensLength() external override view returns (uint256) {
        return allWhitelistedTokens.length;
    }

    function setInManagerMode(bool _inManagerMode) external override {
        _onlyGov();
        inManagerMode = _inManagerMode;
    }

    function setManager(address _manager, bool _isManager) external override {
        _onlyGov();
        isManager[_manager] = _isManager;
    }

    function setInPrivateLiquidationMode(bool _inPrivateLiquidationMode) external override {
        _onlyGov();
        inPrivateLiquidationMode = _inPrivateLiquidationMode;
    }

    function setLiquidator(address _liquidator, bool _isActive) external override {
        _onlyGov();
        isLiquidator[_liquidator] = _isActive;
    }

    function setIsSwapEnabled(bool _isSwapEnabled) external override {
        _onlyGov();
        isSwapEnabled = _isSwapEnabled;
    }

    function setIsLeverageEnabled(bool _isLeverageEnabled) external override {
        _onlyGov();
        isLeverageEnabled = _isLeverageEnabled;
    }

    function setMaxGasPrice(uint256 _maxGasPrice) external override {
        _onlyGov();
        maxGasPrice = _maxGasPrice;
    }

    function setGov(address _gov) external {
        _onlyGov();
        gov = _gov;
    }

    function setPriceFeed(address _priceFeed) external override {
        _onlyGov();
        priceFeed = _priceFeed;
    }

    function setMaxLeverage(uint256 _maxLeverage) external override {
        _onlyGov();
        _validate(_maxLeverage > MIN_LEVERAGE, 2);
        maxLeverage = _maxLeverage;
    }

    function setBufferAmount(address _token, uint256 _amount) external override {
        _onlyGov();
        bufferAmounts[_token] = _amount;
    }

    function setMaxGlobalShortSize(address _token, uint256 _amount) external override {
        _onlyGov();
        maxGlobalShortSizes[_token] = _amount;
    }

    function setFees(
        uint256 _taxBasisPoints,
        uint256 _stableTaxBasisPoints,
        uint256 _mintBurnFeeBasisPoints,
        uint256 _swapFeeBasisPoints,
        uint256 _stableSwapFeeBasisPoints,
        uint256 _marginFeeBasisPoints,
        uint256 _liquidationFeeUsd,
        uint256 _minProfitTime,
        bool _hasDynamicFees
    ) external override {
        _onlyGov();
        _validate(_taxBasisPoints <= MAX_FEE_BASIS_POINTS, 3);
        _validate(_stableTaxBasisPoints <= MAX_FEE_BASIS_POINTS, 4);
        _validate(_mintBurnFeeBasisPoints <= MAX_FEE_BASIS_POINTS, 5);
        _validate(_swapFeeBasisPoints <= MAX_FEE_BASIS_POINTS, 6);
        _validate(_stableSwapFeeBasisPoints <= MAX_FEE_BASIS_POINTS, 7);
        _validate(_marginFeeBasisPoints <= MAX_FEE_BASIS_POINTS, 8);
        _validate(_liquidationFeeUsd <= MAX_LIQUIDATION_FEE_USD, 9);
        taxBasisPoints = _taxBasisPoints;
        stableTaxBasisPoints = _stableTaxBasisPoints;
        mintBurnFeeBasisPoints = _mintBurnFeeBasisPoints;
        swapFeeBasisPoints = _swapFeeBasisPoints;
        stableSwapFeeBasisPoints = _stableSwapFeeBasisPoints;
        marginFeeBasisPoints = _marginFeeBasisPoints;
        liquidationFeeUsd = _liquidationFeeUsd;
        minProfitTime = _minProfitTime;
        hasDynamicFees = _hasDynamicFees;
    }

    function setFundingRate(uint256 _fundingInterval, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) external override {
        _onlyGov();
        _validate(_fundingInterval >= MIN_FUNDING_RATE_INTERVAL, 10);
        _validate(_fundingRateFactor <= MAX_FUNDING_RATE_FACTOR, 11);
        _validate(_stableFundingRateFactor <= MAX_FUNDING_RATE_FACTOR, 12);
        fundingInterval = _fundingInterval;
        fundingRateFactor = _fundingRateFactor;
        stableFundingRateFactor = _stableFundingRateFactor;
    }

    function setTokenConfig(
        address _token,
        uint256 _tokenDecimals,
        uint256 _tokenWeight,
        uint256 _minProfitBps,
        uint256 _maxUsdgAmount,
        bool _isStable,
        bool _isShortable
    ) external override {
        _onlyGov();
        // increment token count for the first time
        if (!whitelistedTokens[_token]) {
            whitelistedTokenCount = whitelistedTokenCount.add(1);
            allWhitelistedTokens.push(_token);
        }

        uint256 _totalTokenWeights = totalTokenWeights;
        _totalTokenWeights = _totalTokenWeights.sub(tokenWeights[_token]);

        whitelistedTokens[_token] = true;
        tokenDecimals[_token] = _tokenDecimals;
        tokenWeights[_token] = _tokenWeight;
        minProfitBasisPoints[_token] = _minProfitBps;
        maxUsdgAmounts[_token] = _maxUsdgAmount;
        stableTokens[_token] = _isStable;
        shortableTokens[_token] = _isShortable;

        totalTokenWeights = _totalTokenWeights.add(_tokenWeight);

        // validate price feed
        getMaxPrice(_token);
    }

    function clearTokenConfig(address _token) external {
        _onlyGov();
        _validate(whitelistedTokens[_token], 13);
        totalTokenWeights = totalTokenWeights.sub(tokenWeights[_token]);
        delete whitelistedTokens[_token];
        delete tokenDecimals[_token];
        delete tokenWeights[_token];
        delete minProfitBasisPoints[_token];
        delete maxUsdgAmounts[_token];
        delete stableTokens[_token];
        delete shortableTokens[_token];
        whitelistedTokenCount = whitelistedTokenCount.sub(1);
    }

    function withdrawFees(address _token, address _receiver) external override returns (uint256) {
        _onlyGov();
        uint256 amount = feeReserves[_token];
        if(amount == 0) { return 0; }
        feeReserves[_token] = 0;
        _transferOut(_token, amount, _receiver);
        return amount;
    }

    function addRouter(address _router) external {
        approvedRouters[msg.sender][_router] = true;
    }

    function removeRouter(address _router) external {
        approvedRouters[msg.sender][_router] = false;
    }

    function setUsdgAmount(address _token, uint256 _amount) external override {
        _onlyGov();

        uint256 usdgAmount = usdgAmounts[_token];
        if (_amount > usdgAmount) {
            _increaseUsdgAmount(_token, _amount.sub(usdgAmount));
            return;
        }

        _decreaseUsdgAmount(_token, usdgAmount.sub(_amount));
    }

    // the governance controlling this function should have a timelock
    function upgradeVault(address _newVault, address _token, uint256 _amount) external {
        _onlyGov();
        IERC20(_token).safeTransfer(_newVault, _amount);
    }

    // deposit into the pool without minting USDG tokens
    // useful in allowing the pool to become over-collaterised
    function directPoolDeposit(address _token) external override nonReentrant {
        _validate(whitelistedTokens[_token], 14);
        uint256 tokenAmount = _transferIn(_token);
        _validate(tokenAmount > 0, 15);
        _increasePoolAmount(_token, tokenAmount);
        emit DirectPoolDeposit(_token, tokenAmount);
    }

    function buyUSDG(address _token, address _receiver) external override nonReentrant returns (uint256) {
        _validateManager();
        _validate(whitelistedTokens[_token], 16);
        useSwapPricing = true;

        uint256 tokenAmount = _transferIn(_token);
        _validate(tokenAmount > 0, 17);

        updateCumulativeFundingRate(_token, _token);

        uint256 price = getMinPrice(_token);

        uint256 usdgAmount = tokenAmount.mul(price).div(PRICE_PRECISION);
        usdgAmount = adjustForDecimals(usdgAmount, _token, usdg);
        _validate(usdgAmount > 0, 18);

        uint256 feeBasisPoints = vaultUtils.getBuyUsdgFeeBasisPoints(_token, usdgAmount);
        uint256 amountAfterFees = _collectSwapFees(_token, tokenAmount, feeBasisPoints);
        uint256 mintAmount = amountAfterFees.mul(price).div(PRICE_PRECISION);
        mintAmount = adjustForDecimals(mintAmount, _token, usdg);

        _increaseUsdgAmount(_token, mintAmount);
        _increasePoolAmount(_token, amountAfterFees);

        IUSDG(usdg).mint(_receiver, mintAmount);

        emit BuyUSDG(_receiver, _token, tokenAmount, mintAmount, feeBasisPoints);

        useSwapPricing = false;
        return mintAmount;
    }

    function sellUSDG(address _token, address _receiver) external override nonReentrant returns (uint256) {
        _validateManager();
        _validate(whitelistedTokens[_token], 19);
        useSwapPricing = true;

        uint256 usdgAmount = _transferIn(usdg);
        _validate(usdgAmount > 0, 20);

        updateCumulativeFundingRate(_token, _token);

        uint256 redemptionAmount = getRedemptionAmount(_token, usdgAmount);
        _validate(redemptionAmount > 0, 21);

        _decreaseUsdgAmount(_token, usdgAmount);
        _decreasePoolAmount(_token, redemptionAmount);

        IUSDG(usdg).burn(address(this), usdgAmount);

        // the _transferIn call increased the value of tokenBalances[usdg]
        // usually decreases in token balances are synced by calling _transferOut
        // however, for usdg, the tokens are burnt, so _updateTokenBalance should
        // be manually called to record the decrease in tokens
        _updateTokenBalance(usdg);

        uint256 feeBasisPoints = vaultUtils.getSellUsdgFeeBasisPoints(_token, usdgAmount);
        uint256 amountOut = _collectSwapFees(_token, redemptionAmount, feeBasisPoints);
        _validate(amountOut > 0, 22);

        _transferOut(_token, amountOut, _receiver);

        emit SellUSDG(_receiver, _token, usdgAmount, amountOut, feeBasisPoints);

        useSwapPricing = false;
        return amountOut;
    }

    function swap(address _tokenIn, address _tokenOut, address _receiver) external override nonReentrant returns (uint256) {
        _validate(isSwapEnabled, 23);
        _validate(whitelistedTokens[_tokenIn], 24);
        _validate(whitelistedTokens[_tokenOut], 25);
        _validate(_tokenIn != _tokenOut, 26);

        useSwapPricing = true;

        updateCumulativeFundingRate(_tokenIn, _tokenIn);
        updateCumulativeFundingRate(_tokenOut, _tokenOut);

        uint256 amountIn = _transferIn(_tokenIn);
        _validate(amountIn > 0, 27);

        uint256 priceIn = getMinPrice(_tokenIn);
        uint256 priceOut = getMaxPrice(_tokenOut);

        uint256 amountOut = amountIn.mul(priceIn).div(priceOut);
        amountOut = adjustForDecimals(amountOut, _tokenIn, _tokenOut);

        // adjust usdgAmounts by the same usdgAmount as debt is shifted between the assets
        uint256 usdgAmount = amountIn.mul(priceIn).div(PRICE_PRECISION);
        usdgAmount = adjustForDecimals(usdgAmount, _tokenIn, usdg);

        uint256 feeBasisPoints = vaultUtils.getSwapFeeBasisPoints(_tokenIn, _tokenOut, usdgAmount);
        uint256 amountOutAfterFees = _collectSwapFees(_tokenOut, amountOut, feeBasisPoints);

        _increaseUsdgAmount(_tokenIn, usdgAmount);
        _decreaseUsdgAmount(_tokenOut, usdgAmount);

        _increasePoolAmount(_tokenIn, amountIn);
        _decreasePoolAmount(_tokenOut, amountOut);

        _validateBufferAmount(_tokenOut);

        _transferOut(_tokenOut, amountOutAfterFees, _receiver);

        emit Swap(_receiver, _tokenIn, _tokenOut, amountIn, amountOut, amountOutAfterFees, feeBasisPoints);

        useSwapPricing = false;
        return amountOutAfterFees;
    }

    function increasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) external override nonReentrant {
        _validate(isLeverageEnabled, 28);
        _validateGasPrice();
        _validateRouter(_account);
        _validateTokens(_collateralToken, _indexToken, _isLong);
        vaultUtils.validateIncreasePosition(_account, _collateralToken, _indexToken, _sizeDelta, _isLong);

        updateCumulativeFundingRate(_collateralToken, _indexToken);

        bytes32 key = getPositionKey(_account, _collateralToken, _indexToken, _isLong);
        Position storage position = positions[key];

        uint256 price = _isLong ? getMaxPrice(_indexToken) : getMinPrice(_indexToken);

        if (position.size == 0) {
            position.averagePrice = price;
        }

        if (position.size > 0 && _sizeDelta > 0) {
            position.averagePrice = getNextAveragePrice(_indexToken, position.size, position.averagePrice, _isLong, price, _sizeDelta, position.lastIncreasedTime);
        }

        uint256 fee = _collectMarginFees(_account, _collateralToken, _indexToken, _isLong, _sizeDelta, position.size, position.entryFundingRate);
        uint256 collateralDelta = _transferIn(_collateralToken);
        uint256 collateralDeltaUsd = tokenToUsdMin(_collateralToken, collateralDelta);

        position.collateral = position.collateral.add(collateralDeltaUsd);
        _validate(position.collateral >= fee, 29);

        position.collateral = position.collateral.sub(fee);
        position.entryFundingRate = getEntryFundingRate(_collateralToken, _indexToken, _isLong);
        position.size = position.size.add(_sizeDelta);
        position.lastIncreasedTime = block.timestamp;

        _validate(position.size > 0, 30);
        _validatePosition(position.size, position.collateral);
        validateLiquidation(_account, _collateralToken, _indexToken, _isLong, true);

        // reserve tokens to pay profits on the position
        uint256 reserveDelta = usdToTokenMax(_collateralToken, _sizeDelta);
        position.reserveAmount = position.reserveAmount.add(reserveDelta);
        _increaseReservedAmount(_collateralToken, reserveDelta);

        if (_isLong) {
            // guaranteedUsd stores the sum of (position.size - position.collateral) for all positions
            // if a fee is charged on the collateral then guaranteedUsd should be increased by that fee amount
            // since (position.size - position.collateral) would have increased by `fee`
            _increaseGuaranteedUsd(_collateralToken, _sizeDelta.add(fee));
            _decreaseGuaranteedUsd(_collateralToken, collateralDeltaUsd);
            // treat the deposited collateral as part of the pool
            _increasePoolAmount(_collateralToken, collateralDelta);
            // fees need to be deducted from the pool since fees are deducted from position.collateral
            // and collateral is treated as part of the pool
            _decreasePoolAmount(_collateralToken, usdToTokenMin(_collateralToken, fee));
        } else {
            if (globalShortSizes[_indexToken] == 0) {
                globalShortAveragePrices[_indexToken] = price;
            } else {
                globalShortAveragePrices[_indexToken] = getNextGlobalShortAveragePrice(_indexToken, price, _sizeDelta);
            }

            _increaseGlobalShortSize(_indexToken, _sizeDelta);
        }

        emit IncreasePosition(key, _account, _collateralToken, _indexToken, collateralDeltaUsd, _sizeDelta, _isLong, price, fee);
        emit UpdatePosition(key, position.size, position.collateral, position.averagePrice, position.entryFundingRate, position.reserveAmount, position.realisedPnl, price);
    }

    function decreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) external override nonReentrant returns (uint256) {
        _validateGasPrice();
        _validateRouter(_account);
        return _decreasePosition(_account, _collateralToken, _indexToken, _collateralDelta, _sizeDelta, _isLong, _receiver);
    }

    function _decreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) private returns (uint256) {
        vaultUtils.validateDecreasePosition(_account, _collateralToken, _indexToken, _collateralDelta, _sizeDelta, _isLong, _receiver);
        updateCumulativeFundingRate(_collateralToken, _indexToken);

        bytes32 key = getPositionKey(_account, _collateralToken, _indexToken, _isLong);
        Position storage position = positions[key];
        _validate(position.size > 0, 31);
        _validate(position.size >= _sizeDelta, 32);
        _validate(position.collateral >= _collateralDelta, 33);

        uint256 collateral = position.collateral;
        // scrop variables to avoid stack too deep errors
        {
        uint256 reserveDelta = position.reserveAmount.mul(_sizeDelta).div(position.size);
        position.reserveAmount = position.reserveAmount.sub(reserveDelta);
        _decreaseReservedAmount(_collateralToken, reserveDelta);
        }

        (uint256 usdOut, uint256 usdOutAfterFee) = _reduceCollateral(_account, _collateralToken, _indexToken, _collateralDelta, _sizeDelta, _isLong);

        if (position.size != _sizeDelta) {
            position.entryFundingRate = getEntryFundingRate(_collateralToken, _indexToken, _isLong);
            position.size = position.size.sub(_sizeDelta);

            _validatePosition(position.size, position.collateral);
            validateLiquidation(_account, _collateralToken, _indexToken, _isLong, true);

            if (_isLong) {
                _increaseGuaranteedUsd(_collateralToken, collateral.sub(position.collateral));
                _decreaseGuaranteedUsd(_collateralToken, _sizeDelta);
            }

            uint256 price = _isLong ? getMinPrice(_indexToken) : getMaxPrice(_indexToken);
            emit DecreasePosition(key, _account, _collateralToken, _indexToken, _collateralDelta, _sizeDelta, _isLong, price, usdOut.sub(usdOutAfterFee));
            emit UpdatePosition(key, position.size, position.collateral, position.averagePrice, position.entryFundingRate, position.reserveAmount, position.realisedPnl, price);
        } else {
            if (_isLong) {
                _increaseGuaranteedUsd(_collateralToken, collateral);
                _decreaseGuaranteedUsd(_collateralToken, _sizeDelta);
            }

            uint256 price = _isLong ? getMinPrice(_indexToken) : getMaxPrice(_indexToken);
            emit DecreasePosition(key, _account, _collateralToken, _indexToken, _collateralDelta, _sizeDelta, _isLong, price, usdOut.sub(usdOutAfterFee));
            emit ClosePosition(key, position.size, position.collateral, position.averagePrice, position.entryFundingRate, position.reserveAmount, position.realisedPnl);

            delete positions[key];
        }

        if (!_isLong) {
            _decreaseGlobalShortSize(_indexToken, _sizeDelta);
        }

        if (usdOut > 0) {
            if (_isLong) {
                _decreasePoolAmount(_collateralToken, usdToTokenMin(_collateralToken, usdOut));
            }
            uint256 amountOutAfterFees = usdToTokenMin(_collateralToken, usdOutAfterFee);
            _transferOut(_collateralToken, amountOutAfterFees, _receiver);
            return amountOutAfterFees;
        }

        return 0;
    }

    function liquidatePosition(address _account, address _collateralToken, address _indexToken, bool _isLong, address _feeReceiver) external override nonReentrant {
        if (inPrivateLiquidationMode) {
            _validate(isLiquidator[msg.sender], 34);
        }

        // set includeAmmPrice to false to prevent manipulated liquidations
        includeAmmPrice = false;

        updateCumulativeFundingRate(_collateralToken, _indexToken);

        bytes32 key = getPositionKey(_account, _collateralToken, _indexToken, _isLong);
        Position memory position = positions[key];
        _validate(position.size > 0, 35);

        (uint256 liquidationState, uint256 marginFees) = validateLiquidation(_account, _collateralToken, _indexToken, _isLong, false);
        _validate(liquidationState != 0, 36);
        if (liquidationState == 2) {
            // max leverage exceeded but there is collateral remaining after deducting losses so decreasePosition instead
            _decreasePosition(_account, _collateralToken, _indexToken, 0, position.size, _isLong, _account);
            includeAmmPrice = true;
            return;
        }

        uint256 feeTokens = usdToTokenMin(_collateralToken, marginFees);
        feeReserves[_collateralToken] = feeReserves[_collateralToken].add(feeTokens);
        emit CollectMarginFees(_collateralToken, marginFees, feeTokens);

        _decreaseReservedAmount(_collateralToken, position.reserveAmount);
        if (_isLong) {
            _decreaseGuaranteedUsd(_collateralToken, position.size.sub(position.collateral));
            _decreasePoolAmount(_collateralToken, usdToTokenMin(_collateralToken, marginFees));
        }

        uint256 markPrice = _isLong ? getMinPrice(_indexToken) : getMaxPrice(_indexToken);
        emit LiquidatePosition(key, _account, _collateralToken, _indexToken, _isLong, position.size, position.collateral, position.reserveAmount, position.realisedPnl, markPrice);

        if (!_isLong && marginFees < position.collateral) {
            uint256 remainingCollateral = position.collateral.sub(marginFees);
            _increasePoolAmount(_collateralToken, usdToTokenMin(_collateralToken, remainingCollateral));
        }

        if (!_isLong) {
            _decreaseGlobalShortSize(_indexToken, position.size);
        }

        delete positions[key];

        // pay the fee receiver using the pool, we assume that in general the liquidated amount should be sufficient to cover
        // the liquidation fees
        _decreasePoolAmount(_collateralToken, usdToTokenMin(_collateralToken, liquidationFeeUsd));
        _transferOut(_collateralToken, usdToTokenMin(_collateralToken, liquidationFeeUsd), _feeReceiver);

        includeAmmPrice = true;
    }

    // validateLiquidation returns (state, fees)
    function validateLiquidation(address _account, address _collateralToken, address _indexToken, bool _isLong, bool _raise) override public view returns (uint256, uint256) {
        return vaultUtils.validateLiquidation(_account, _collateralToken, _indexToken, _isLong, _raise);
    }

    function getMaxPrice(address _token) public override view returns (uint256) {
        return IVaultPriceFeed(priceFeed).getPrice(_token, true, includeAmmPrice, useSwapPricing);
    }

    function getMinPrice(address _token) public override view returns (uint256) {
        return IVaultPriceFeed(priceFeed).getPrice(_token, false, includeAmmPrice, useSwapPricing);
    }

    function getRedemptionAmount(address _token, uint256 _usdgAmount) public override view returns (uint256) {
        uint256 price = getMaxPrice(_token);
        uint256 redemptionAmount = _usdgAmount.mul(PRICE_PRECISION).div(price);
        return adjustForDecimals(redemptionAmount, usdg, _token);
    }

    function getRedemptionCollateral(address _token) public view returns (uint256) {
        if (stableTokens[_token]) {
            return poolAmounts[_token];
        }
        uint256 collateral = usdToTokenMin(_token, guaranteedUsd[_token]);
        return collateral.add(poolAmounts[_token]).sub(reservedAmounts[_token]);
    }

    function getRedemptionCollateralUsd(address _token) public view returns (uint256) {
        return tokenToUsdMin(_token, getRedemptionCollateral(_token));
    }

    function adjustForDecimals(uint256 _amount, address _tokenDiv, address _tokenMul) public view returns (uint256) {
        uint256 decimalsDiv = _tokenDiv == usdg ? USDG_DECIMALS : tokenDecimals[_tokenDiv];
        uint256 decimalsMul = _tokenMul == usdg ? USDG_DECIMALS : tokenDecimals[_tokenMul];
        return _amount.mul(10 ** decimalsMul).div(10 ** decimalsDiv);
    }

    function tokenToUsdMin(address _token, uint256 _tokenAmount) public override view returns (uint256) {
        if (_tokenAmount == 0) { return 0; }
        uint256 price = getMinPrice(_token);
        uint256 decimals = tokenDecimals[_token];
        return _tokenAmount.mul(price).div(10 ** decimals);
    }

    function usdToTokenMax(address _token, uint256 _usdAmount) public view returns (uint256) {
        if (_usdAmount == 0) { return 0; }
        return usdToToken(_token, _usdAmount, getMinPrice(_token));
    }

    function usdToTokenMin(address _token, uint256 _usdAmount) public view returns (uint256) {
        if (_usdAmount == 0) { return 0; }
        return usdToToken(_token, _usdAmount, getMaxPrice(_token));
    }

    function usdToToken(address _token, uint256 _usdAmount, uint256 _price) public view returns (uint256) {
        if (_usdAmount == 0) { return 0; }
        uint256 decimals = tokenDecimals[_token];
        return _usdAmount.mul(10 ** decimals).div(_price);
    }

    function getPosition(address _account, address _collateralToken, address _indexToken, bool _isLong) public override view returns (uint256, uint256, uint256, uint256, uint256, uint256, bool, uint256) {
        bytes32 key = getPositionKey(_account, _collateralToken, _indexToken, _isLong);
        Position memory position = positions[key];
        uint256 realisedPnl = position.realisedPnl > 0 ? uint256(position.realisedPnl) : uint256(-position.realisedPnl);
        return (
            position.size, // 0
            position.collateral, // 1
            position.averagePrice, // 2
            position.entryFundingRate, // 3
            position.reserveAmount, // 4
            realisedPnl, // 5
            position.realisedPnl >= 0, // 6
            position.lastIncreasedTime // 7
        );
    }

    function getPositionKey(address _account, address _collateralToken, address _indexToken, bool _isLong) public pure returns (bytes32) {
        return keccak256(abi.encodePacked(
            _account,
            _collateralToken,
            _indexToken,
            _isLong
        ));
    }

    function updateCumulativeFundingRate(address _collateralToken, address _indexToken) public {
        bool shouldUpdate = vaultUtils.updateCumulativeFundingRate(_collateralToken, _indexToken);
        if (!shouldUpdate) {
            return;
        }

        if (lastFundingTimes[_collateralToken] == 0) {
            lastFundingTimes[_collateralToken] = block.timestamp.div(fundingInterval).mul(fundingInterval);
            return;
        }

        if (lastFundingTimes[_collateralToken].add(fundingInterval) > block.timestamp) {
            return;
        }

        uint256 fundingRate = getNextFundingRate(_collateralToken);
        cumulativeFundingRates[_collateralToken] = cumulativeFundingRates[_collateralToken].add(fundingRate);
        lastFundingTimes[_collateralToken] = block.timestamp.div(fundingInterval).mul(fundingInterval);

        emit UpdateFundingRate(_collateralToken, cumulativeFundingRates[_collateralToken]);
    }

    function getNextFundingRate(address _token) public override view returns (uint256) {
        if (lastFundingTimes[_token].add(fundingInterval) > block.timestamp) { return 0; }

        uint256 intervals = block.timestamp.sub(lastFundingTimes[_token]).div(fundingInterval);
        uint256 poolAmount = poolAmounts[_token];
        if (poolAmount == 0) { return 0; }

        uint256 _fundingRateFactor = stableTokens[_token] ? stableFundingRateFactor : fundingRateFactor;
        return _fundingRateFactor.mul(reservedAmounts[_token]).mul(intervals).div(poolAmount);
    }

    function getUtilisation(address _token) public view returns (uint256) {
        uint256 poolAmount = poolAmounts[_token];
        if (poolAmount == 0) { return 0; }

        return reservedAmounts[_token].mul(FUNDING_RATE_PRECISION).div(poolAmount);
    }

    function getPositionLeverage(address _account, address _collateralToken, address _indexToken, bool _isLong) public view returns (uint256) {
        bytes32 key = getPositionKey(_account, _collateralToken, _indexToken, _isLong);
        Position memory position = positions[key];
        _validate(position.collateral > 0, 37);
        return position.size.mul(BASIS_POINTS_DIVISOR).div(position.collateral);
    }

    // for longs: nextAveragePrice = (nextPrice * nextSize)/ (nextSize + delta)
    // for shorts: nextAveragePrice = (nextPrice * nextSize) / (nextSize - delta)
    function getNextAveragePrice(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _nextPrice, uint256 _sizeDelta, uint256 _lastIncreasedTime) public view returns (uint256) {
        (bool hasProfit, uint256 delta) = getDelta(_indexToken, _size, _averagePrice, _isLong, _lastIncreasedTime);
        uint256 nextSize = _size.add(_sizeDelta);
        uint256 divisor;
        if (_isLong) {
            divisor = hasProfit ? nextSize.add(delta) : nextSize.sub(delta);
        } else {
            divisor = hasProfit ? nextSize.sub(delta) : nextSize.add(delta);
        }
        return _nextPrice.mul(nextSize).div(divisor);
    }

    // for longs: nextAveragePrice = (nextPrice * nextSize)/ (nextSize + delta)
    // for shorts: nextAveragePrice = (nextPrice * nextSize) / (nextSize - delta)
    function getNextGlobalShortAveragePrice(address _indexToken, uint256 _nextPrice, uint256 _sizeDelta) public view returns (uint256) {
        uint256 size = globalShortSizes[_indexToken];
        uint256 averagePrice = globalShortAveragePrices[_indexToken];
        uint256 priceDelta = averagePrice > _nextPrice ? averagePrice.sub(_nextPrice) : _nextPrice.sub(averagePrice);
        uint256 delta = size.mul(priceDelta).div(averagePrice);
        bool hasProfit = averagePrice > _nextPrice;

        uint256 nextSize = size.add(_sizeDelta);
        uint256 divisor = hasProfit ? nextSize.sub(delta) : nextSize.add(delta);

        return _nextPrice.mul(nextSize).div(divisor);
    }

    function getGlobalShortDelta(address _token) public view returns (bool, uint256) {
        uint256 size = globalShortSizes[_token];
        if (size == 0) { return (false, 0); }

        uint256 nextPrice = getMaxPrice(_token);
        uint256 averagePrice = globalShortAveragePrices[_token];
        uint256 priceDelta = averagePrice > nextPrice ? averagePrice.sub(nextPrice) : nextPrice.sub(averagePrice);
        uint256 delta = size.mul(priceDelta).div(averagePrice);
        bool hasProfit = averagePrice > nextPrice;

        return (hasProfit, delta);
    }

    function getPositionDelta(address _account, address _collateralToken, address _indexToken, bool _isLong) public view returns (bool, uint256) {
        bytes32 key = getPositionKey(_account, _collateralToken, _indexToken, _isLong);
        Position memory position = positions[key];
        return getDelta(_indexToken, position.size, position.averagePrice, _isLong, position.lastIncreasedTime);
    }

    function getDelta(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _lastIncreasedTime) public override view returns (bool, uint256) {
        _validate(_averagePrice > 0, 38);
        uint256 price = _isLong ? getMinPrice(_indexToken) : getMaxPrice(_indexToken);
        uint256 priceDelta = _averagePrice > price ? _averagePrice.sub(price) : price.sub(_averagePrice);
        uint256 delta = _size.mul(priceDelta).div(_averagePrice);

        bool hasProfit;

        if (_isLong) {
            hasProfit = price > _averagePrice;
        } else {
            hasProfit = _averagePrice > price;
        }

        // if the minProfitTime has passed then there will be no min profit threshold
        // the min profit threshold helps to prevent front-running issues
        uint256 minBps = block.timestamp > _lastIncreasedTime.add(minProfitTime) ? 0 : minProfitBasisPoints[_indexToken];
        if (hasProfit && delta.mul(BASIS_POINTS_DIVISOR) <= _size.mul(minBps)) {
            delta = 0;
        }

        return (hasProfit, delta);
    }

    function getEntryFundingRate(address _collateralToken, address _indexToken, bool _isLong) public view returns (uint256) {
        return vaultUtils.getEntryFundingRate(_collateralToken, _indexToken, _isLong);
    }

    function getFundingFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _size, uint256 _entryFundingRate) public view returns (uint256) {
        return vaultUtils.getFundingFee(_account, _collateralToken, _indexToken, _isLong, _size, _entryFundingRate);
    }

    function getPositionFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _sizeDelta) public view returns (uint256) {
        return vaultUtils.getPositionFee(_account, _collateralToken, _indexToken, _isLong, _sizeDelta);
    }

    // cases to consider
    // 1. initialAmount is far from targetAmount, action increases balance slightly => high rebate
    // 2. initialAmount is far from targetAmount, action increases balance largely => high rebate
    // 3. initialAmount is close to targetAmount, action increases balance slightly => low rebate
    // 4. initialAmount is far from targetAmount, action reduces balance slightly => high tax
    // 5. initialAmount is far from targetAmount, action reduces balance largely => high tax
    // 6. initialAmount is close to targetAmount, action reduces balance largely => low tax
    // 7. initialAmount is above targetAmount, nextAmount is below targetAmount and vice versa
    // 8. a large swap should have similar fees as the same trade split into multiple smaller swaps
    function getFeeBasisPoints(address _token, uint256 _usdgDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) public override view returns (uint256) {
        return vaultUtils.getFeeBasisPoints(_token, _usdgDelta, _feeBasisPoints, _taxBasisPoints, _increment);
    }

    function getTargetUsdgAmount(address _token) public override view returns (uint256) {
        uint256 supply = IERC20(usdg).totalSupply();
        if (supply == 0) { return 0; }
        uint256 weight = tokenWeights[_token];
        return weight.mul(supply).div(totalTokenWeights);
    }

    function _reduceCollateral(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong) private returns (uint256, uint256) {
        bytes32 key = getPositionKey(_account, _collateralToken, _indexToken, _isLong);
        Position storage position = positions[key];

        uint256 fee = _collectMarginFees(_account, _collateralToken, _indexToken, _isLong, _sizeDelta, position.size, position.entryFundingRate);
        bool hasProfit;
        uint256 adjustedDelta;

        // scope variables to avoid stack too deep errors
        {
        (bool _hasProfit, uint256 delta) = getDelta(_indexToken, position.size, position.averagePrice, _isLong, position.lastIncreasedTime);
        hasProfit = _hasProfit;
        // get the proportional change in pnl
        adjustedDelta = _sizeDelta.mul(delta).div(position.size);
        }

        uint256 usdOut;
        // transfer profits out
        if (hasProfit && adjustedDelta > 0) {
            usdOut = adjustedDelta;
            position.realisedPnl = position.realisedPnl + int256(adjustedDelta);

            // pay out realised profits from the pool amount for short positions
            if (!_isLong) {
                uint256 tokenAmount = usdToTokenMin(_collateralToken, adjustedDelta);
                _decreasePoolAmount(_collateralToken, tokenAmount);
            }
        }

        if (!hasProfit && adjustedDelta > 0) {
            position.collateral = position.collateral.sub(adjustedDelta);

            // transfer realised losses to the pool for short positions
            // realised losses for long positions are not transferred here as
            // _increasePoolAmount was already called in increasePosition for longs
            if (!_isLong) {
                uint256 tokenAmount = usdToTokenMin(_collateralToken, adjustedDelta);
                _increasePoolAmount(_collateralToken, tokenAmount);
            }

            position.realisedPnl = position.realisedPnl - int256(adjustedDelta);
        }

        // reduce the position's collateral by _collateralDelta
        // transfer _collateralDelta out
        if (_collateralDelta > 0) {
            usdOut = usdOut.add(_collateralDelta);
            position.collateral = position.collateral.sub(_collateralDelta);
        }

        // if the position will be closed, then transfer the remaining collateral out
        if (position.size == _sizeDelta) {
            usdOut = usdOut.add(position.collateral);
            position.collateral = 0;
        }

        // if the usdOut is more than the fee then deduct the fee from the usdOut directly
        // else deduct the fee from the position's collateral
        uint256 usdOutAfterFee = usdOut;
        if (usdOut > fee) {
            usdOutAfterFee = usdOut.sub(fee);
        } else {
            position.collateral = position.collateral.sub(fee);
            if (_isLong) {
                uint256 feeTokens = usdToTokenMin(_collateralToken, fee);
                _decreasePoolAmount(_collateralToken, feeTokens);
            }
        }

        emit UpdatePnl(key, hasProfit, adjustedDelta);

        return (usdOut, usdOutAfterFee);
    }

    function _validatePosition(uint256 _size, uint256 _collateral) private view {
        if (_size == 0) {
            _validate(_collateral == 0, 39);
            return;
        }
        _validate(_size >= _collateral, 40);
    }

    function _validateRouter(address _account) private view {
        if (msg.sender == _account) { return; }
        if (msg.sender == router) { return; }
        _validate(approvedRouters[_account][msg.sender], 41);
    }

    function _validateTokens(address _collateralToken, address _indexToken, bool _isLong) private view {
        if (_isLong) {
            _validate(_collateralToken == _indexToken, 42);
            _validate(whitelistedTokens[_collateralToken], 43);
            _validate(!stableTokens[_collateralToken], 44);
            return;
        }

        _validate(whitelistedTokens[_collateralToken], 45);
        _validate(stableTokens[_collateralToken], 46);
        _validate(!stableTokens[_indexToken], 47);
        _validate(shortableTokens[_indexToken], 48);
    }

    function _collectSwapFees(address _token, uint256 _amount, uint256 _feeBasisPoints) private returns (uint256) {
        uint256 afterFeeAmount = _amount.mul(BASIS_POINTS_DIVISOR.sub(_feeBasisPoints)).div(BASIS_POINTS_DIVISOR);
        uint256 feeAmount = _amount.sub(afterFeeAmount);
        feeReserves[_token] = feeReserves[_token].add(feeAmount);
        emit CollectSwapFees(_token, tokenToUsdMin(_token, feeAmount), feeAmount);
        return afterFeeAmount;
    }

    function _collectMarginFees(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _sizeDelta, uint256 _size, uint256 _entryFundingRate) private returns (uint256) {
        uint256 feeUsd = getPositionFee(_account, _collateralToken, _indexToken, _isLong, _sizeDelta);

        uint256 fundingFee = getFundingFee(_account, _collateralToken, _indexToken, _isLong, _size, _entryFundingRate);
        feeUsd = feeUsd.add(fundingFee);

        uint256 feeTokens = usdToTokenMin(_collateralToken, feeUsd);
        feeReserves[_collateralToken] = feeReserves[_collateralToken].add(feeTokens);

        emit CollectMarginFees(_collateralToken, feeUsd, feeTokens);
        return feeUsd;
    }

    function _transferIn(address _token) private returns (uint256) {
        uint256 prevBalance = tokenBalances[_token];
        uint256 nextBalance = IERC20(_token).balanceOf(address(this));
        tokenBalances[_token] = nextBalance;

        return nextBalance.sub(prevBalance);
    }

    function _transferOut(address _token, uint256 _amount, address _receiver) private {
        IERC20(_token).safeTransfer(_receiver, _amount);
        tokenBalances[_token] = IERC20(_token).balanceOf(address(this));
    }

    function _updateTokenBalance(address _token) private {
        uint256 nextBalance = IERC20(_token).balanceOf(address(this));
        tokenBalances[_token] = nextBalance;
    }

    function _increasePoolAmount(address _token, uint256 _amount) private {
        poolAmounts[_token] = poolAmounts[_token].add(_amount);
        uint256 balance = IERC20(_token).balanceOf(address(this));
        _validate(poolAmounts[_token] <= balance, 49);
        emit IncreasePoolAmount(_token, _amount);
    }

    function _decreasePoolAmount(address _token, uint256 _amount) private {
        poolAmounts[_token] = poolAmounts[_token].sub(_amount, "Vault: poolAmount exceeded");
        _validate(reservedAmounts[_token] <= poolAmounts[_token], 50);
        emit DecreasePoolAmount(_token, _amount);
    }

    function _validateBufferAmount(address _token) private view {
        if (poolAmounts[_token] < bufferAmounts[_token]) {
            revert("Vault: poolAmount < buffer");
        }
    }

    function _increaseUsdgAmount(address _token, uint256 _amount) private {
        usdgAmounts[_token] = usdgAmounts[_token].add(_amount);
        uint256 maxUsdgAmount = maxUsdgAmounts[_token];
        if (maxUsdgAmount != 0) {
            _validate(usdgAmounts[_token] <= maxUsdgAmount, 51);
        }
        emit IncreaseUsdgAmount(_token, _amount);
    }

    function _decreaseUsdgAmount(address _token, uint256 _amount) private {
        uint256 value = usdgAmounts[_token];
        // since USDG can be minted using multiple assets
        // it is possible for the USDG debt for a single asset to be less than zero
        // the USDG debt is capped to zero for this case
        if (value <= _amount) {
            usdgAmounts[_token] = 0;
            emit DecreaseUsdgAmount(_token, value);
            return;
        }
        usdgAmounts[_token] = value.sub(_amount);
        emit DecreaseUsdgAmount(_token, _amount);
    }

    function _increaseReservedAmount(address _token, uint256 _amount) private {
        reservedAmounts[_token] = reservedAmounts[_token].add(_amount);
        _validate(reservedAmounts[_token] <= poolAmounts[_token], 52);
        emit IncreaseReservedAmount(_token, _amount);
    }

    function _decreaseReservedAmount(address _token, uint256 _amount) private {
        reservedAmounts[_token] = reservedAmounts[_token].sub(_amount, "Vault: insufficient reserve");
        emit DecreaseReservedAmount(_token, _amount);
    }

    function _increaseGuaranteedUsd(address _token, uint256 _usdAmount) private {
        guaranteedUsd[_token] = guaranteedUsd[_token].add(_usdAmount);
        emit IncreaseGuaranteedUsd(_token, _usdAmount);
    }

    function _decreaseGuaranteedUsd(address _token, uint256 _usdAmount) private {
        guaranteedUsd[_token] = guaranteedUsd[_token].sub(_usdAmount);
        emit DecreaseGuaranteedUsd(_token, _usdAmount);
    }

    function _increaseGlobalShortSize(address _token, uint256 _amount) internal {
        globalShortSizes[_token] = globalShortSizes[_token].add(_amount);

        uint256 maxSize = maxGlobalShortSizes[_token];
        if (maxSize != 0) {
            require(globalShortSizes[_token] <= maxSize, "Vault: max shorts exceeded");
        }
    }

    function _decreaseGlobalShortSize(address _token, uint256 _amount) private {
        uint256 size = globalShortSizes[_token];
        if (_amount > size) {
          globalShortSizes[_token] = 0;
          return;
        }

        globalShortSizes[_token] = size.sub(_amount);
    }

    // we have this validation as a function instead of a modifier to reduce contract size
    function _onlyGov() private view {
        _validate(msg.sender == gov, 53);
    }

    // we have this validation as a function instead of a modifier to reduce contract size
    function _validateManager() private view {
        if (inManagerMode) {
            _validate(isManager[msg.sender], 54);
        }
    }

    // we have this validation as a function instead of a modifier to reduce contract size
    function _validateGasPrice() private view {
        if (maxGasPrice == 0) { return; }
        _validate(tx.gasprice <= maxGasPrice, 55);
    }

    function _validate(bool _condition, uint256 _errorCode) private view {
        require(_condition, errors[_errorCode]);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usdgAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feeBasisPoints","type":"uint256"}],"name":"BuyUSDG","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"size","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"collateral","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"averagePrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"entryFundingRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reserveAmount","type":"uint256"},{"indexed":false,"internalType":"int256","name":"realisedPnl","type":"int256"}],"name":"ClosePosition","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"feeUsd","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feeTokens","type":"uint256"}],"name":"CollectMarginFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"feeUsd","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feeTokens","type":"uint256"}],"name":"CollectSwapFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DecreaseGuaranteedUsd","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DecreasePoolAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"collateralToken","type":"address"},{"indexed":false,"internalType":"address","name":"indexToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"collateralDelta","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sizeDelta","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isLong","type":"bool"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"DecreasePosition","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DecreaseReservedAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DecreaseUsdgAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DirectPoolDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"IncreaseGuaranteedUsd","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"IncreasePoolAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"collateralToken","type":"address"},{"indexed":false,"internalType":"address","name":"indexToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"collateralDelta","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sizeDelta","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isLong","type":"bool"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"IncreasePosition","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"IncreaseReservedAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"IncreaseUsdgAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"collateralToken","type":"address"},{"indexed":false,"internalType":"address","name":"indexToken","type":"address"},{"indexed":false,"internalType":"bool","name":"isLong","type":"bool"},{"indexed":false,"internalType":"uint256","name":"size","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"collateral","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reserveAmount","type":"uint256"},{"indexed":false,"internalType":"int256","name":"realisedPnl","type":"int256"},{"indexed":false,"internalType":"uint256","name":"markPrice","type":"uint256"}],"name":"LiquidatePosition","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"usdgAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feeBasisPoints","type":"uint256"}],"name":"SellUSDG","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"address","name":"tokenOut","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOutAfterFees","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feeBasisPoints","type":"uint256"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"fundingRate","type":"uint256"}],"name":"UpdateFundingRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"bool","name":"hasProfit","type":"bool"},{"indexed":false,"internalType":"uint256","name":"delta","type":"uint256"}],"name":"UpdatePnl","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"size","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"collateral","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"averagePrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"entryFundingRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reserveAmount","type":"uint256"},{"indexed":false,"internalType":"int256","name":"realisedPnl","type":"int256"},{"indexed":false,"internalType":"uint256","name":"markPrice","type":"uint256"}],"name":"UpdatePosition","type":"event"},{"inputs":[],"name":"BASIS_POINTS_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FUNDING_RATE_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE_BASIS_POINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FUNDING_RATE_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_LIQUIDATION_FEE_USD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_FUNDING_RATE_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_LEVERAGE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDG_DECIMALS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"addRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_tokenDiv","type":"address"},{"internalType":"address","name":"_tokenMul","type":"address"}],"name":"adjustForDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allWhitelistedTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allWhitelistedTokensLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"approvedRouters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bufferAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"buyUSDG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"clearTokenConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"cumulativeFundingRates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_collateralDelta","type":"uint256"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"decreasePosition","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"directPoolDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"errorController","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"errors","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"feeReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundingInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundingRateFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_size","type":"uint256"},{"internalType":"uint256","name":"_averagePrice","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"uint256","name":"_lastIncreasedTime","type":"uint256"}],"name":"getDelta","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"bool","name":"_isLong","type":"bool"}],"name":"getEntryFundingRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_usdgDelta","type":"uint256"},{"internalType":"uint256","name":"_feeBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_taxBasisPoints","type":"uint256"},{"internalType":"bool","name":"_increment","type":"bool"}],"name":"getFeeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"uint256","name":"_size","type":"uint256"},{"internalType":"uint256","name":"_entryFundingRate","type":"uint256"}],"name":"getFundingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getGlobalShortDelta","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getMaxPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getMinPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_size","type":"uint256"},{"internalType":"uint256","name":"_averagePrice","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"uint256","name":"_nextPrice","type":"uint256"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"uint256","name":"_lastIncreasedTime","type":"uint256"}],"name":"getNextAveragePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getNextFundingRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_nextPrice","type":"uint256"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"}],"name":"getNextGlobalShortAveragePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"bool","name":"_isLong","type":"bool"}],"name":"getPosition","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"bool","name":"_isLong","type":"bool"}],"name":"getPositionDelta","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"}],"name":"getPositionFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"bool","name":"_isLong","type":"bool"}],"name":"getPositionKey","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"bool","name":"_isLong","type":"bool"}],"name":"getPositionLeverage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_usdgAmount","type":"uint256"}],"name":"getRedemptionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getRedemptionCollateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getRedemptionCollateralUsd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getTargetUsdgAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getUtilisation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"globalShortAveragePrices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"globalShortSizes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"guaranteedUsd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasDynamicFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inManagerMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inPrivateLiquidationMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"includeAmmPrice","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"}],"name":"increasePosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_usdg","type":"address"},{"internalType":"address","name":"_priceFeed","type":"address"},{"internalType":"uint256","name":"_liquidationFeeUsd","type":"uint256"},{"internalType":"uint256","name":"_fundingRateFactor","type":"uint256"},{"internalType":"uint256","name":"_stableFundingRateFactor","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLeverageEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isLiquidator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSwapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastFundingTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"address","name":"_feeReceiver","type":"address"}],"name":"liquidatePosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"liquidationFeeUsd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marginFeeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxGasPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxGlobalShortSizes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxLeverage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxUsdgAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minProfitBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minProfitTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintBurnFeeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"poolAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"positions","outputs":[{"internalType":"uint256","name":"size","type":"uint256"},{"internalType":"uint256","name":"collateral","type":"uint256"},{"internalType":"uint256","name":"averagePrice","type":"uint256"},{"internalType":"uint256","name":"entryFundingRate","type":"uint256"},{"internalType":"uint256","name":"reserveAmount","type":"uint256"},{"internalType":"int256","name":"realisedPnl","type":"int256"},{"internalType":"uint256","name":"lastIncreasedTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceFeed","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"removeRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"reservedAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"sellUSDG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setBufferAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_errorCode","type":"uint256"},{"internalType":"string","name":"_error","type":"string"}],"name":"setError","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_errorController","type":"address"}],"name":"setErrorController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_taxBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_stableTaxBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_mintBurnFeeBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_swapFeeBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_stableSwapFeeBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_marginFeeBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_liquidationFeeUsd","type":"uint256"},{"internalType":"uint256","name":"_minProfitTime","type":"uint256"},{"internalType":"bool","name":"_hasDynamicFees","type":"bool"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fundingInterval","type":"uint256"},{"internalType":"uint256","name":"_fundingRateFactor","type":"uint256"},{"internalType":"uint256","name":"_stableFundingRateFactor","type":"uint256"}],"name":"setFundingRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_inManagerMode","type":"bool"}],"name":"setInManagerMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_inPrivateLiquidationMode","type":"bool"}],"name":"setInPrivateLiquidationMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isLeverageEnabled","type":"bool"}],"name":"setIsLeverageEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isSwapEnabled","type":"bool"}],"name":"setIsSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_liquidator","type":"address"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setLiquidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_manager","type":"address"},{"internalType":"bool","name":"_isManager","type":"bool"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxGasPrice","type":"uint256"}],"name":"setMaxGasPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMaxGlobalShortSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxLeverage","type":"uint256"}],"name":"setMaxLeverage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_priceFeed","type":"address"}],"name":"setPriceFeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_tokenDecimals","type":"uint256"},{"internalType":"uint256","name":"_tokenWeight","type":"uint256"},{"internalType":"uint256","name":"_minProfitBps","type":"uint256"},{"internalType":"uint256","name":"_maxUsdgAmount","type":"uint256"},{"internalType":"bool","name":"_isStable","type":"bool"},{"internalType":"bool","name":"_isShortable","type":"bool"}],"name":"setTokenConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setUsdgAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IVaultUtils","name":"_vaultUtils","type":"address"}],"name":"setVaultUtils","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"shortableTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stableFundingRateFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stableSwapFeeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stableTaxBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stableTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenIn","type":"address"},{"internalType":"address","name":"_tokenOut","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"swap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapFeeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"tokenToUsdMin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenWeights","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokenWeights","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"}],"name":"updateCumulativeFundingRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newVault","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"upgradeVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_usdAmount","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"usdToToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_usdAmount","type":"uint256"}],"name":"usdToTokenMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_usdAmount","type":"uint256"}],"name":"usdToTokenMin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdg","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"usdgAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"useSwapPricing","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"bool","name":"_raise","type":"bool"}],"name":"validateLiquidation","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultUtils","outputs":[{"internalType":"contract IVaultUtils","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistedTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"withdrawFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

60806040526001805462ff00001961ff00199091166101001716620100009081179091556207a1206008556032600a9081556014600b55601e600c819055600d556004600e55600f556011805460ff191690556170806012556016805463ff0000001962ffffff1990911690921791909116630100000017905534801561008557600080fd5b506001600055600680546001600160a01b03191633179055615edd80620000ad6000396000f3fe608060405234801561001057600080fd5b50600436106105695760003560e01c806304fef1db1461056e57806307c58752146105a65780630842b076146105ae5780630a48d5a9146105b657806310eb56c2146105e2578063126082cf146105ea57806312d43a51146105f2578063134ca63b14610616578063174d26941461061e578063181e210e146106265780631aa4ace5146106425780631ce9cb8f1461066857806324b0c04d1461068e57806324ca984e146106af57806328e67be5146106d557806329ff96151461074a5780632c668ec1146107705780632d4b05761461079c57806330455ede146107da578063318bc689146107f957806334c1557d146105ea578063351a964d14610801578063392e53cd146108095780633a05dcc1146108115780633c5a6e35146108375780633de39c11146108855780633e72a2621461088d57806340eb38021461089557806342152873146108e657806342b60b031461091a5780634453a3741461094057806345a6f3701461096e57806348d91abf146109c757806348f35cbb14610a0b5780634a3f088d14610a135780634a993ee914610a945780634befe2ca14610aba5780634d47b30414610ac2578063514ea4bf14610aca57806351723e8214610b1f578063523fba7f14610b5d578063529a356f14610b8357806352f55eed14610ba95780635c07eaab14610bcf5780635f7bc11914610c0f5780636092219914610c3557806362287a3214610c635780636274980314610c6b5780636abbe0c814610c915780636ae0b15414610c995780636be6026b14610cbf57806371089f4d14610cc7578063711e619014610ced578063724e78da14610d1b578063728cdbca14610d41578063741bef1a14610d895780637a210a2b14610d915780637c2eb9f714610d99578063817bb85714610db857806381a612d614610de657806382a0849014610e0c5780638585f4d214610e60578063870d917c14610e8c57806388b1fbdf14610e945780638a27d46814610eba5780638a39735a146105ea5780638a78daa814610ee35780638ee573ac14610f095780638f7b840414610f2f5780639060b1ca14610f555780639331621214610f5d57806395082d2514610f955780639698d25a14610f9d5780639849e41214610fc35780639899cd0214610fcb5780639d7432ca14610ff75780639f392eb314611029578063a22f239214611031578063a42ab3d214611039578063a5e90eee14611065578063a93acac214611093578063ab08c1c6146110b9578063ab2f3ad4146110c1578063ad1e4f8d146110e7578063ae3302c21461110d578063b06423f314611115578063b136ca491461111d578063b1cc53ab14611143578063b364accb1461117b578063c3c7b9e9146111a1578063c4f718bf146111c7578063c65bc7b1146111cf578063c7e074c3146111f5578063cea0c32814611235578063cfad57a21461126b578063d2fa635e14611291578063d3127e63146112ae578063d54d5a9f146112cb578063d66b000d1461132a578063d8f897c314611356578063d9ac42251461137c578063da76524c14611384578063daf9c210146113ce578063db3555fb146113f4578063db97495f1461141a578063dc8f5fac14611466578063de2ea9481461146e578063df73a267146114b6578063e124e6d2146114be578063e468baf0146114e4578063e67f59a714611501578063efa10a6e14611527578063f07456ce14611553578063f07bbf7714611579578063f255527814611598578063f3ae2415146115c6578063f5b91b7b146115ec578063f887ea40146115f4578063fa12dbc0146115fc578063fbfded6d1461162e578063fce28c101461165c578063fdaf6ac314611664578063fed1a606146116a8575b600080fd5b6105946004803603602081101561058457600080fd5b50356001600160a01b031661173a565b60408051918252519081900360200190f35b61059461179d565b6105946117ae565b610594600480360360408110156105cc57600080fd5b506001600160a01b0381351690602001356117b4565b610594611807565b61059461180d565b6105fa611813565b604080516001600160a01b039092168252519081900360200190f35b610594611822565b610594611828565b61062e61182e565b604080519115158252519081900360200190f35b6105946004803603602081101561065857600080fd5b50356001600160a01b031661183e565b6105946004803603602081101561067e57600080fd5b50356001600160a01b0316611850565b6106ad600480360360208110156106a457600080fd5b50351515611862565b005b6106ad600480360360208110156106c557600080fd5b50356001600160a01b0316611886565b6106ad600480360360408110156106eb57600080fd5b81359190810190604081016020820135600160201b81111561070c57600080fd5b82018360208201111561071e57600080fd5b803590602001918460018302840111600160201b8311171561073f57600080fd5b5090925090506118b7565b6105946004803603602081101561076057600080fd5b50356001600160a01b0316611935565b6105946004803603604081101561078657600080fd5b506001600160a01b038135169060200135611949565b610594600480360360808110156107b257600080fd5b506001600160a01b03813581169160208101358216916040820135169060600135151561198e565b6106ad600480360360208110156107f057600080fd5b503515156119e4565b610594611a06565b61062e611a0c565b61062e611a1a565b6105946004803603602081101561082757600080fd5b50356001600160a01b0316611a23565b6106ad600480360360e081101561084d57600080fd5b506001600160a01b038135169060208101359060408101359060608101359060808101359060a081013515159060c001351515611ae3565b610594611c25565b61062e611c2b565b6106ad60048036036101208110156108ac57600080fd5b5080359060208101359060408101359060608101359060808101359060a08101359060c08101359060e08101359061010001351515611c3a565b610594600480360360608110156108fc57600080fd5b508035906001600160a01b0360208201358116916040013516611cf4565b61062e6004803603602081101561093057600080fd5b50356001600160a01b0316611d96565b6106ad6004803603604081101561095657600080fd5b506001600160a01b0381351690602001351515611dab565b6109ac6004803603608081101561098457600080fd5b506001600160a01b038135811691602081013582169160408201351690606001351515611dde565b60408051921515835260208301919091528051918290030190f35b6106ad600480360360a08110156109dd57600080fd5b506001600160a01b038135811691602081013582169160408201351690606081013590608001351515611e7c565b6105fa6122a9565b610a5160048036036080811015610a2957600080fd5b506001600160a01b0381358116916020810135821691604082013516906060013515156122b8565b604080519889526020890197909752878701959095526060870193909352608086019190915260a0850152151560c084015260e083015251908190036101000190f35b61059460048036036020811015610aaa57600080fd5b50356001600160a01b03166123ae565b6105946123c0565b6105946123c6565b610ae760048036036020811015610ae057600080fd5b50356123cc565b604080519788526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b61059460048036036080811015610b3557600080fd5b506001600160a01b038135811691602081013582169160408201351690606001351515612409565b61059460048036036020811015610b7357600080fd5b50356001600160a01b03166124af565b61062e60048036036020811015610b9957600080fd5b50356001600160a01b03166124c1565b61059460048036036020811015610bbf57600080fd5b50356001600160a01b03166124d6565b6109ac600480360360a0811015610be557600080fd5b506001600160a01b03813516906020810135906040810135906060810135151590608001356124e8565b6106ad60048036036020811015610c2557600080fd5b50356001600160a01b03166125e0565b61062e60048036036040811015610c4b57600080fd5b506001600160a01b03813581169160200135166126c3565b6105946126e3565b61059460048036036020811015610c8157600080fd5b50356001600160a01b03166126e9565b6105fa6126fb565b6106ad60048036036020811015610caf57600080fd5b50356001600160a01b0316612711565b61059461273f565b6106ad60048036036020811015610cdd57600080fd5b50356001600160a01b0316612746565b61059460048036036040811015610d0357600080fd5b506001600160a01b038135811691602001351661277a565b6106ad60048036036020811015610d3157600080fd5b50356001600160a01b0316612a0e565b6106ad600480360360c0811015610d5757600080fd5b506001600160a01b03813581169160208101358216916040820135169060608101359060808101359060a00135612a38565b6105fa612aaf565b610594612abe565b6106ad60048036036020811015610daf57600080fd5b50351515612ac4565b61059460048036036040811015610dce57600080fd5b506001600160a01b0381358116916020013516612ae8565b61059460048036036020811015610dfc57600080fd5b50356001600160a01b0316612db8565b610594600480360360e0811015610e2257600080fd5b506001600160a01b0381358116916020810135821691604082013581169160608101359160808201359160a081013515159160c09091013516612e63565b6106ad60048036036040811015610e7657600080fd5b506001600160a01b038135169060200135612ee1565b610594612f05565b61059460048036036020811015610eaa57600080fd5b50356001600160a01b0316612f0a565b6106ad60048036036060811015610ed057600080fd5b5080359060208101359060400135612f1c565b61059460048036036020811015610ef957600080fd5b50356001600160a01b0316612f62565b61059460048036036020811015610f1f57600080fd5b50356001600160a01b0316612f74565b6106ad60048036036020811015610f4557600080fd5b50356001600160a01b0316612f86565b61062e612fb0565b61059460048036036060811015610f7357600080fd5b506001600160a01b038135811691602081013582169160409091013516612fbf565b6105946132a7565b61059460048036036020811015610fb357600080fd5b50356001600160a01b03166132b7565b6105946132c9565b61059460048036036040811015610fe157600080fd5b506001600160a01b0381351690602001356132cf565b6105946004803603606081101561100d57600080fd5b506001600160a01b0381351690602081013590604001356132f1565b61062e61339a565b6105946133a3565b6105946004803603604081101561104f57600080fd5b506001600160a01b0381351690602001356133a9565b6106ad6004803603604081101561107b57600080fd5b506001600160a01b03813516906020013515156133c6565b610594600480360360208110156110a957600080fd5b50356001600160a01b03166133f9565b61062e6134f7565b610594600480360360208110156110d757600080fd5b50356001600160a01b0316613500565b610594600480360360208110156110fd57600080fd5b50356001600160a01b0316613512565b610594613524565b61062e61352a565b6105946004803603602081101561113357600080fd5b50356001600160a01b0316613538565b6105946004803603606081101561115957600080fd5b506001600160a01b0381358116916020810135909116906040013515156135d9565b6109ac6004803603602081101561119157600080fd5b50356001600160a01b0316613674565b610594600480360360208110156111b757600080fd5b50356001600160a01b031661370c565b61059461371e565b610594600480360360208110156111e557600080fd5b50356001600160a01b0316613724565b610594600480360360a081101561120b57600080fd5b506001600160a01b0381351690602081013590604081013590606081013590608001351515613736565b6106ad6004803603606081101561124b57600080fd5b506001600160a01b038135811691602081013590911690604001356137e0565b6106ad6004803603602081101561128157600080fd5b50356001600160a01b0316613801565b6106ad600480360360208110156112a757600080fd5b503561382b565b6106ad600480360360208110156112c457600080fd5b5035613838565b611311600480360360a08110156112e157600080fd5b506001600160a01b0381358116916020810135821691604082013516906060810135151590608001351515613854565b6040805192835260208301919091528051918290030190f35b6106ad6004803603604081101561134057600080fd5b506001600160a01b03813516906020013561390b565b6105946004803603602081101561136c57600080fd5b50356001600160a01b0316613964565b610594613976565b610594600480360360c081101561139a57600080fd5b506001600160a01b038135811691602081013582169160408201351690606081013515159060808101359060a0013561397c565b61062e600480360360208110156113e457600080fd5b50356001600160a01b0316613a30565b61062e6004803603602081101561140a57600080fd5b50356001600160a01b0316613a45565b610594600480360360e081101561143057600080fd5b506001600160a01b0381351690602081013590604081013590606081013515159060808101359060a08101359060c00135613a59565b610594613aea565b6106ad600480360360a081101561148457600080fd5b506001600160a01b03813581169160208101358216916040820135811691606081013515159160809091013516613af0565b610594613eb6565b610594600480360360208110156114d457600080fd5b50356001600160a01b0316613ebc565b6105fa600480360360208110156114fa57600080fd5b5035613f34565b6106ad6004803603602081101561151757600080fd5b50356001600160a01b0316613f5b565b6106ad6004803603604081101561153d57600080fd5b506001600160a01b03813516906020013561402e565b6105946004803603602081101561156957600080fd5b50356001600160a01b0316614052565b6106ad6004803603602081101561158f57600080fd5b50351515614064565b610594600480360360408110156115ae57600080fd5b506001600160a01b038135811691602001351661408a565b61062e600480360360208110156115dc57600080fd5b50356001600160a01b03166140e0565b6105fa6140f5565b6105fa614104565b6105946004803603606081101561161257600080fd5b506001600160a01b038135169060208101359060400135614113565b6106ad6004803603604081101561164457600080fd5b506001600160a01b038135811691602001351661414d565b610594614326565b610594600480360360a081101561167a57600080fd5b506001600160a01b03813581169160208101358216916040820135169060608101351515906080013561432c565b6116c5600480360360208110156116be57600080fd5b50356143a2565b6040805160208082528351818301528351919283929083019185019080838360005b838110156116ff5781810151838201526020016116e7565b50505050905090810190601f16801561172c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6001600160a01b03811660009081526025602052604081205480611762576000915050611798565b6001600160a01b03831660009081526026602052604090205461179490829061178e90620f424061443d565b90614496565b9150505b919050565b6904ee2d6d415b85acef8160201b81565b601b5490565b6000816117c357506000611801565b60006117ce84612db8565b6001600160a01b0385166000908152601d60205260409020549091506117fc600a82900a61178e868561443d565b925050505b92915050565b600b5481565b61271081565b6006546001600160a01b031681565b60145481565b60095481565b6016546301000000900460ff1681565b60236020526000908152604090205481565b602c6020526000908152604090205481565b61186a6144d5565b60168054911515620100000262ff000019909216919091179055565b3360009081526018602090815260408083206001600160a01b0394909416835292905220805460ff19166001179055565b6002546001600160a01b03163314611916576040805162461bcd60e51b815260206004820152601e60248201527f5661756c743a20696e76616c6964206572726f72436f6e74726f6c6c65720000604482015290519081900360640190fd5b600083815260306020526040902061192f908383615cec565b50505050565b60006118018261194484613538565b6117b4565b60008061195584613ebc565b905060006119738261178e8668327cb2734119d3b7a9601e1b61443d565b6005549091506117fc9082906001600160a01b031687611cf4565b604080516001600160601b0319606096871b811660208084019190915295871b811660348301529390951b9092166048850152151560f81b605c8401528051603d818503018152605d9093019052815191012090565b6119ec6144d5565b600180549115156101000261ff0019909216919091179055565b600f5481565b600154610100900460ff1681565b60015460ff1681565b600080600560009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611a7457600080fd5b505afa158015611a88573d6000803e3d6000fd5b505050506040513d6020811015611a9e57600080fd5b5051905080611ab1576000915050611798565b6001600160a01b038316600090815260226020526040902054601554611adb9061178e838561443d565b949350505050565b611aeb6144d5565b6001600160a01b0387166000908152601c602052604090205460ff16611b6857600754611b199060016144f0565b600755601b80546001810182556000919091527f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc10180546001600160a01b0319166001600160a01b0389161790555b6015546001600160a01b038816600090815260226020526040902054611b8f908290614548565b6001600160a01b0389166000908152601c602090815260408083208054600160ff1991821617909155601d83528184208c9055602283528184208b9055601e83528184208a905560248352818420899055601f83528184208054821689151517905591805290912080549091168415151790559050611c0e81876144f0565b601555611c1a88613ebc565b505050505050505050565b60175481565b60015462010000900460ff1681565b611c426144d5565b611c526101f48a1115600361458a565b611c626101f4891115600461458a565b611c726101f4881115600561458a565b611c826101f4871115600661458a565b611c926101f4861115600761458a565b611ca26101f4851115600861458a565b611cbd6904ee2d6d415b85acef8160201b841115600961458a565b600a98909855600b96909655600c94909455600d92909255600e55600f556009556010556011805460ff1916911515919091179055565b60055460009081906001600160a01b03858116911614611d2c576001600160a01b0384166000908152601d6020526040902054611d2f565b60125b6005549091506000906001600160a01b03858116911614611d68576001600160a01b0384166000908152601d6020526040902054611d6b565b60125b9050611d8a82600a0a61178e83600a0a8961443d90919063ffffffff16565b925050505b9392505050565b601f6020526000908152604090205460ff1681565b611db36144d5565b6001600160a01b03919091166000908152601960205260409020805460ff1916911515919091179055565b6000806000611def8787878761198e565b9050611df9615d6a565b506000818152602b6020908152604091829020825160e081018452815480825260018301549382019390935260028201549381018490526003820154606082015260048201546080820152600582015460a082015260069091015460c082018190529092611e6d92899290919089906124e8565b93509350505094509492505050565b60026000541415611ec2576040805162461bcd60e51b815260206004820152601f6024820152600080516020615dbd833981519152604482015290519081900360640190fd5b6002600055600154611ede9062010000900460ff16601c61458a565b611ee6614636565b611eef85614652565b611efa8484836146b5565b60015460408051634eae147d60e11b81526001600160a01b038881166004830152878116602483015286811660448301526064820186905284151560848301529151630100000090930490911691639d5c28fa9160a480820192600092909190829003018186803b158015611f6e57600080fd5b505afa158015611f82573d6000803e3d6000fd5b50505050611f90848461414d565b6000611f9e8686868561198e565b6000818152602b6020526040812091925083611fc257611fbd86612db8565b611fcb565b611fcb86613ebc565b8254909150611fdc57600282018190555b815415801590611fec5750600085115b156120125761200c868360000154846002015487858a8860060154613a59565b60028301555b600061202b898989888a886000015489600301546147ca565b9050600061203889614886565b905060006120468a836117b4565b600186015490915061205890826144f0565b6001860181905561206d90841115601d61458a565b600185015461207c9084614548565b600186015561208c8a8a896135d9565b6003860155845461209d90896144f0565b8086554260068701556120b3901515601e61458a565b6120c585600001548660010154614933565b6120d38b8b8b8a6001613854565b505060006120e18b8a6133a9565b60048701549091506120f390826144f0565b60048701556121028b82614957565b87156121475761211b8b6121168b876144f0565b6149f7565b6121258b83614a76565b61212f8b84614af5565b6121428b61213d8d876132cf565b614c0d565b6121b3565b6001600160a01b038a166000908152602d6020526040902054612184576001600160a01b038a166000908152602e602052604090208590556121a9565b61218f8a868b6132f1565b6001600160a01b038b166000908152602e60205260409020555b6121b38a8a614ce0565b604080518881526001600160a01b03808f166020830152808e16828401528c1660608201526080810184905260a081018b905289151560c082015260e08101879052610100810186905290517f2fe68525253654c21998f35787a8d0f361905ef647c854092430ab65f2f15022918190036101200190a1855460018701546002880154600389015460048a015460058b0154604080518e81526020810197909752868101959095526060860193909352608085019190915260a084015260c083015260e0820187905251600080516020615ddd833981519152918190036101000190a15050600160005550505050505050505050565b6002546001600160a01b031681565b60008060008060008060008060006122d28d8d8d8d61198e565b90506122dc615d6a565b602b60008381526020019081526020016000206040518060e001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152505090506000808260a001511361235c578160a00151600003612362565b8160a001515b9050816000015182602001518360400151846060015185608001518560008860a0015112158860c001519a509a509a509a509a509a509a509a5050505094995094995094999196509450565b60276020526000908152604090205481565b6101f481565b600c5481565b602b602052600090815260409020805460018201546002830154600384015460048501546005860154600690960154949593949293919290919087565b6000806124188686868661198e565b9050612422615d6a565b506000818152602b6020908152604091829020825160e0810184528154815260018201549281018390526002820154938101939093526003810154606084015260048101546080840152600581015460a08401526006015460c083015261248c901515602561458a565b602081015181516124a4919061178e9061271061443d565b979650505050505050565b60216020526000908152604090205481565b60196020526000908152604090205460ff1681565b60256020526000908152604090205481565b6000806124f960008611602661458a565b60008461250e5761250988613ebc565b612517565b61251788612db8565b905060008187116125315761252c8288614548565b61253b565b61253b8783614548565b9050600061254d8861178e8b8561443d565b9050600087156125605750878311612565565b508288115b600061257c601054896144f090919063ffffffff16565b42116125a0576001600160a01b038c166000908152601e60205260409020546125a3565b60005b90508180156125c657506125b78b8261443d565b6125c38461271061443d565b11155b156125d057600092505b509a909950975050505050505050565b60026000541415612626576040805162461bcd60e51b815260206004820152601f6024820152600080516020615dbd833981519152604482015290519081900360640190fd5b600260009081556001600160a01b0382168152601c60205260409020546126519060ff16600e61458a565b600061265c82614886565b905061266c60008211600f61458a565b6126768282614af5565b604080516001600160a01b03841681526020810183905281517fa5a389190ebf6170a133bda5c769b77f4d6715b8aa172ec0ddf8473d0b4944bd929181900390910190a150506001600055565b601860209081526000928352604080842090915290825290205460ff1681565b60075481565b602e6020526000908152604090205481565b600154630100000090046001600160a01b031681565b3360009081526018602090815260408083206001600160a01b0394909416835292905220805460ff19169055565b620f424081565b61274e6144d5565b600180546001600160a01b039092166301000000026301000000600160b81b0319909216919091179055565b6000600260005414156127c2576040805162461bcd60e51b815260206004820152601f6024820152600080516020615dbd833981519152604482015290519081900360640190fd5b60026000556127cf614d98565b6001600160a01b0383166000908152601c60205260409020546127f69060ff16601361458a565b6016805461ff00191661010017905560055460009061281d906001600160a01b0316614886565b905061282d60008211601461458a565b612837848561414d565b60006128438583611949565b905061285360008211601561458a565b61285d8583614dc7565b6128678582614c0d565b60055460408051632770a7eb60e21b81523060048201526024810185905290516001600160a01b0390921691639dc29fac9160448082019260009290919082900301818387803b1580156128ba57600080fd5b505af11580156128ce573d6000803e3d6000fd5b50506005546128e892506001600160a01b03169050614e85565b6001546040805163eb0835bf60e01b81526001600160a01b038881166004830152602482018690529151600093630100000090049092169163eb0835bf91604480820192602092909190829003018186803b15801561294657600080fd5b505afa15801561295a573d6000803e3d6000fd5b505050506040513d602081101561297057600080fd5b505190506000612981878484614f20565b905061299160008211601661458a565b61299c878288614fe8565b604080516001600160a01b03808916825289166020820152808201869052606081018390526080810184905290517fd732b7828fa6cee72c285eac756fc66a7477e3dc22e22e7c432f1c265d40b4839181900360a00190a16016805461ff001916905560016000559695505050505050565b612a166144d5565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b612a406144d5565b60018054612a549160ff909116159061458a565b6001805460ff191681179055600380546001600160a01b03199081166001600160a01b039889161790915560058054821696881696909617909555600480549095169390951692909217909255600991909155601355601455565b6004546001600160a01b031681565b600a5481565b612acc6144d5565b60018054911515620100000262ff000019909216919091179055565b600060026000541415612b30576040805162461bcd60e51b815260206004820152601f6024820152600080516020615dbd833981519152604482015290519081900360640190fd5b6002600055612b3d614d98565b6001600160a01b0383166000908152601c6020526040902054612b649060ff16601061458a565b6016805461ff0019166101001790556000612b7e84614886565b9050612b8e60008211601161458a565b612b98848561414d565b6000612ba385612db8565b90506000612bc168327cb2734119d3b7a9601e1b61178e858561443d565b600554909150612bdd90829088906001600160a01b0316611cf4565b9050612bed60008211601261458a565b6001546040805163256f6ee360e11b81526001600160a01b0389811660048301526024820185905291516000936301000000900490921691634adeddc691604480820192602092909190829003018186803b158015612c4b57600080fd5b505afa158015612c5f573d6000803e3d6000fd5b505050506040513d6020811015612c7557600080fd5b505190506000612c86888684614f20565b90506000612ca468327cb2734119d3b7a9601e1b61178e848861443d565b600554909150612cc09082908b906001600160a01b0316611cf4565b9050612ccc898261508f565b612cd68983614af5565b600554604080516340c10f1960e01b81526001600160a01b038b8116600483015260248201859052915191909216916340c10f1991604480830192600092919082900301818387803b158015612d2b57600080fd5b505af1158015612d3f573d6000803e3d6000fd5b5050604080516001600160a01b03808d1682528d1660208201528082018a9052606081018590526080810187905290517fab4c77c74cd32c85f35416cf03e7ce9e2d4387f7b7f2c1f4bf53daaecf8ea72d93509081900360a0019150a16016805461ff0019169055600160005598975050505050505050565b60048054601654604080516317e1d38560e11b81526001600160a01b038681169582019590955260006024820181905260ff80851615156044840152610100909404909316151560648201529051919390921691632fc3a70a916084808301926020929190829003018186803b158015612e3157600080fd5b505afa158015612e45573d6000803e3d6000fd5b505050506040513d6020811015612e5b57600080fd5b505192915050565b600060026000541415612eab576040805162461bcd60e51b815260206004820152601f6024820152600080516020615dbd833981519152604482015290519081900360640190fd5b6002600055612eb8614636565b612ec188614652565b612ed08888888888888861514d565b600160005598975050505050505050565b612ee96144d5565b6001600160a01b03909116600090815260276020526040902055565b601281565b601e6020526000908152604090205481565b612f246144d5565b612f34610e10841015600a61458a565b612f44612710831115600b61458a565b612f54612710821115600c61458a565b601292909255601355601455565b602d6020526000908152604090205481565b601d6020526000908152604090205481565b612f8e6144d5565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60165462010000900460ff1681565b600060026000541415613007576040805162461bcd60e51b815260206004820152601f6024820152600080516020615dbd833981519152604482015290519081900360640190fd5b600260005560015461302290610100900460ff16601761458a565b6001600160a01b0384166000908152601c60205260409020546130499060ff16601861458a565b6001600160a01b0383166000908152601c60205260409020546130709060ff16601961458a565b613090836001600160a01b0316856001600160a01b03161415601a61458a565b6016805461ff0019166101001790556130a9848061414d565b6130b3838461414d565b60006130be85614886565b90506130ce60008211601b61458a565b60006130d986612db8565b905060006130e686613ebc565b905060006130f88261178e868661443d565b9050613105818989611cf4565b9050600061312368327cb2734119d3b7a9601e1b61178e878761443d565b60055490915061313f9082908b906001600160a01b0316611cf4565b60015460408051636d099c0b60e11b81526001600160a01b038d811660048301528c8116602483015260448201859052915193945060009363010000009093049091169163da13381691606480820192602092909190829003018186803b1580156131a957600080fd5b505afa1580156131bd573d6000803e3d6000fd5b505050506040513d60208110156131d357600080fd5b5051905060006131e48a8584614f20565b90506131f08b8461508f565b6131fa8a84614dc7565b6132048b88614af5565b61320e8a85614c0d565b6132178a6155da565b6132228a828b614fe8565b604080516001600160a01b03808c168252808e1660208301528c1681830152606081018990526080810186905260a0810183905260c0810184905290517f0874b2d545cb271cdbda4e093020c452328b24af12382ed62c4d00f5c26709db9181900360e00190a16016805461ff001916905560016000559a9950505050505050505050565b68327cb2734119d3b7a9601e1b81565b602f6020526000908152604090205481565b60125481565b6000816132de57506000611801565b611d8f83836132ec86613ebc565b614113565b6001600160a01b0383166000908152602d6020908152604080832054602e9092528220548285821161332c576133278683614548565b613336565b6133368287614548565b905060006133488361178e868561443d565b9050868311600061335986896144f0565b90506000826133715761336c82856144f0565b61337b565b61337b8285614548565b905061338b8161178e8c8561443d565b9b9a5050505050505050505050565b60115460ff1681565b600d5481565b6000816133b857506000611801565b611d8f83836132ec86612db8565b6133ce6144d5565b6001600160a01b03919091166000908152601a60205260409020805460ff1916911515919091179055565b6012546001600160a01b0382166000908152602a602052604081205490914291613422916144f0565b111561343057506000611798565b6012546001600160a01b0383166000908152602a6020526040812054909161345d9161178e904290614548565b6001600160a01b0384166000908152602560205260409020549091508061348957600092505050611798565b6001600160a01b0384166000908152601f602052604081205460ff166134b1576013546134b5565b6014545b6001600160a01b0386166000908152602660205260409020549091506134ee90839061178e9086906134e890869061443d565b9061443d565b95945050505050565b60165460ff1681565b60226020526000908152604090205481565b60246020526000908152604090205481565b60085481565b601654610100900460ff1681565b6001600160a01b0381166000908152601f602052604081205460ff161561357857506001600160a01b038116600090815260256020526040902054611798565b6001600160a01b03821660009081526028602052604081205461359c9084906132cf565b6001600160a01b038416600090815260266020908152604080832054602590925290912054919250611794916135d39084906144f0565b90614548565b6001546040805163b1cc53ab60e01b81526001600160a01b038681166004830152858116602483015284151560448301529151600093630100000090049092169163b1cc53ab91606480820192602092909190829003018186803b15801561364057600080fd5b505afa158015613654573d6000803e3d6000fd5b505050506040513d602081101561366a57600080fd5b5051949350505050565b6001600160a01b0381166000908152602d60205260408120548190806136a1576000809250925050613707565b60006136ac85613ebc565b6001600160a01b0386166000908152602e60205260408120549192508282116136de576136d98383614548565b6136e8565b6136e88284614548565b905060006136fa8361178e878561443d565b9390921195509193505050505b915091565b60266020526000908152604090205481565b60135481565b60296020526000908152604090205481565b6001546040805163c7e074c360e01b81526001600160a01b03888116600483015260248201889052604482018790526064820186905284151560848301529151600093630100000090049092169163c7e074c39160a480820192602092909190829003018186803b1580156137aa57600080fd5b505afa1580156137be573d6000803e3d6000fd5b505050506040513d60208110156137d457600080fd5b50519695505050505050565b6137e86144d5565b6137fc6001600160a01b038316848361564f565b505050565b6138096144d5565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6138336144d5565b601755565b6138406144d5565b61384f6127108211600261458a565b600855565b6001546040805163d54d5a9f60e01b81526001600160a01b03888116600483015287811660248301528681166044830152851515606483015284151560848301528251600094859463010000009091049092169263d54d5a9f9260a4808301939192829003018186803b1580156138ca57600080fd5b505afa1580156138de573d6000803e3d6000fd5b505050506040513d60408110156138f457600080fd5b508051602090910151909890975095505050505050565b6139136144d5565b6001600160a01b0382166000908152602360205260409020548082111561394d57613947836139428484614548565b61508f565b50613960565b6137fc8361395b8385614548565b614dc7565b5050565b602a6020526000908152604090205481565b60105481565b6001546040805163369d949360e21b81526001600160a01b0389811660048301528881166024830152878116604483015286151560648301526084820186905260a482018590529151600093630100000090049092169163da76524c9160c480820192602092909190829003018186803b1580156139f957600080fd5b505afa158015613a0d573d6000803e3d6000fd5b505050506040513d6020811015613a2357600080fd5b5051979650505050505050565b601c6020526000908152604090205460ff1681565b602080526000908152604090205460ff1681565b6000806000613a6b8a8a8a8a886124e8565b90925090506000613a7c8a876144f0565b905060008815613aab5783613a9a57613a958284614548565b613aa4565b613aa482846144f0565b9050613acc565b83613abf57613aba82846144f0565b613ac9565b613ac98284614548565b90505b613ada8161178e8a8561443d565b9c9b505050505050505050505050565b60155481565b60026000541415613b36576040805162461bcd60e51b815260206004820152601f6024820152600080516020615dbd833981519152604482015290519081900360640190fd5b60026000556016546301000000900460ff1615613b6b5733600090815260196020526040902054613b6b9060ff16602261458a565b6016805460ff19169055613b7f848461414d565b6000613b8d8686868661198e565b9050613b97615d6a565b506000818152602b6020908152604091829020825160e08101845281548082526001830154938201939093526002820154938101939093526003810154606084015260048101546080840152600581015460a08401526006015460c0830152613c03901515602361458a565b600080613c14898989896000613854565b91509150613c278260001415602461458a565b8160021415613c5c57613c44898989600087600001518b8f61514d565b50506016805460ff1916600117905550613eaa915050565b6000613c6889836132cf565b6001600160a01b038a166000908152602c6020526040902054909150613c8e90826144f0565b6001600160a01b038a166000818152602c60209081526040918290209390935580519182529181018490528082018390529051600080516020615e888339815191529181900360600190a1613ce78985608001516156a1565b8615613d165760208401518451613d08918b91613d0391614548565b614a76565b613d168961213d8b856132cf565b600087613d2b57613d2689613ebc565b613d34565b613d3489612db8565b90507f2e1f85a64a2f22cf2f0c42584e7c919ed4abe8d53675cff0f62bf1e95a1c676f868c8c8c8c8a600001518b602001518c608001518d60a001518a604051808b81526020018a6001600160a01b03168152602001896001600160a01b03168152602001886001600160a01b0316815260200187151581526020018681526020018581526020018481526020018381526020018281526020019a505050505050505050505060405180910390a187158015613df35750846020015183105b15613e21576020850151600090613e0a9085614548565b9050613e1f8b613e1a8d846132cf565b614af5565b505b87613e3457613e34898660000151615756565b6000868152602b60205260408120818155600181018290556002810182905560038101829055600481018290556005810182905560060155600954613e80908b9061213d9082906132cf565b613e968a613e908c6009546132cf565b89614fe8565b50506016805460ff19166001179055505050505b50506001600055505050565b600e5481565b60048054601654604080516317e1d38560e11b81526001600160a01b03868116958201959095526001602482015260ff80841615156044830152610100909304909216151560648301525160009390921691632fc3a70a91608480820192602092909190829003018186803b158015612e3157600080fd5b601b8181548110613f4157fe5b6000918252602090912001546001600160a01b0316905081565b613f636144d5565b6001600160a01b0381166000908152601c6020526040902054613f8a9060ff16600d61458a565b6001600160a01b038116600090815260226020526040902054601554613faf91614548565b6015556001600160a01b0381166000908152601c60209081526040808320805460ff19908116909155601d835281842084905560228352818420849055601e835281842084905560248352818420849055601f835281842080548216905591805290912080549091169055600754614028906001614548565b60075550565b6140366144d5565b6001600160a01b039091166000908152602f6020526040902055565b60286020526000908152604090205481565b61406c6144d5565b6016805491151563010000000263ff00000019909216919091179055565b60006140946144d5565b6001600160a01b0383166000908152602c6020526040902054806140bc576000915050611801565b6001600160a01b0384166000908152602c6020526040812055611d8f848285614fe8565b601a6020526000908152604090205460ff1681565b6005546001600160a01b031681565b6003546001600160a01b031681565b60008261412257506000611d8f565b6001600160a01b0384166000908152601d60205260409020546134ee8361178e86600a85900a61443d565b6001546040805163fbfded6d60e01b81526001600160a01b03858116600483015284811660248301529151600093630100000090049092169163fbfded6d9160448082019260209290919082900301818787803b1580156141ad57600080fd5b505af11580156141c1573d6000803e3d6000fd5b505050506040513d60208110156141d757600080fd5b50519050806141e65750613960565b6001600160a01b0383166000908152602a602052604090205461423357601254614214906134e84282614496565b6001600160a01b0384166000908152602a602052604090205550613960565b6012546001600160a01b0384166000908152602a6020526040902054429161425b91906144f0565b11156142675750613960565b6000614272846133f9565b6001600160a01b03851660009081526029602052604090205490915061429890826144f0565b6001600160a01b0385166000908152602960205260409020556012546142c2906134e84282614496565b6001600160a01b0385166000818152602a602090815260408083209490945560298152908390205483519283529082015281517fa146fc154e1913322e9817d49f0d5c37466c24326e15de10e739a948be815eab929181900390910190a150505050565b610e1081565b6001546040805163fdaf6ac360e01b81526001600160a01b038881166004830152878116602483015286811660448301528515156064830152608482018590529151600093630100000090049092169163fdaf6ac39160a480820192602092909190829003018186803b1580156137aa57600080fd5b60306020908152600091825260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156144355780601f1061440a57610100808354040283529160200191614435565b820191906000526020600020905b81548152906001019060200180831161441857829003601f168201915b505050505081565b60008261444c57506000611801565b8282028284828161445957fe5b0414611d8f5760405162461bcd60e51b8152600401808060200182810382526021815260200180615e1d6021913960400191505060405180910390fd5b6000611d8f83836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b8152506157be565b6006546144ee906001600160a01b03163314603561458a565b565b600082820183811015611d8f576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b6000611d8f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250615860565b6000818152603060205260409020826137fc5760405162461bcd60e51b81526020600482019081528254600260001961010060018416150201909116046024830181905290918291604490910190849080156146275780601f106145fc57610100808354040283529160200191614627565b820191906000526020600020905b81548152906001019060200180831161460a57829003601f168201915b50509250505060405180910390fd5b601754614642576144ee565b6144ee6017543a1115603761458a565b336001600160a01b0382161415614668576146b2565b6003546001600160a01b0316331415614680576146b2565b6001600160a01b03811660009081526018602090815260408083203384529091529020546146b29060ff16602961458a565b50565b801561472e576146da826001600160a01b0316846001600160a01b031614602a61458a565b6001600160a01b0383166000908152601c60205260409020546147019060ff16602b61458a565b6001600160a01b0383166000908152601f60205260409020546147299060ff1615602c61458a565b6137fc565b6001600160a01b0383166000908152601c60205260409020546147559060ff16602d61458a565b6001600160a01b0383166000908152601f602052604090205461477c9060ff16602e61458a565b6001600160a01b0382166000908152601f60205260409020546147a49060ff1615602f61458a565b6001600160a01b03821660009081526020805260409020546137fc9060ff16603061458a565b6000806147da898989898961432c565b905060006147ec8a8a8a8a898961397c565b90506147f882826144f0565b915060006148068a846132cf565b6001600160a01b038b166000908152602c602052604090205490915061482c90826144f0565b6001600160a01b038b166000818152602c60209081526040918290209390935580519182529181018590528082018390529051600080516020615e888339815191529181900360600190a150909998505050505050505050565b6001600160a01b03811660008181526021602090815260408083205481516370a0823160e01b8152306004820152915193949093859391926370a08231926024808301939192829003018186803b1580156148e057600080fd5b505afa1580156148f4573d6000803e3d6000fd5b505050506040513d602081101561490a57600080fd5b50516001600160a01b03851660009081526021602052604090208190559050611adb8183614548565b81614949576149448115602761458a565b613960565b61396081831015602861458a565b6001600160a01b03821660009081526026602052604090205461497a90826144f0565b6001600160a01b0383166000908152602660208181526040808420859055602582529092205491526149af911115603461458a565b604080516001600160a01b03841681526020810183905281517faa5649d82f5462be9d19b0f2b31a59b2259950a6076550bac9f3a1c07db9f66d929181900390910190a15050565b6001600160a01b038216600090815260286020526040902054614a1a90826144f0565b6001600160a01b03831660008181526028602090815260409182902093909355805191825291810183905281517fd9d4761f75e0d0103b5cbeab941eeb443d7a56a35b5baf2a0787c03f03f4e474929181900390910190a15050565b6001600160a01b038216600090815260286020526040902054614a999082614548565b6001600160a01b03831660008181526028602090815260409182902093909355805191825291810183905281517f34e07158b9db50df5613e591c44ea2ebc82834eff4a4dc3a46e000e608261d68929181900390910190a15050565b6001600160a01b038216600090815260256020526040902054614b1890826144f0565b6001600160a01b03831660008181526025602090815260408083209490945583516370a0823160e01b8152306004820152935191936370a082319260248083019392829003018186803b158015614b6e57600080fd5b505afa158015614b82573d6000803e3d6000fd5b505050506040513d6020811015614b9857600080fd5b50516001600160a01b038416600090815260256020526040902054909150614bc490821015603161458a565b604080516001600160a01b03851681526020810184905281517f976177fbe09a15e5e43f848844963a42b41ef919ef17ff21a17a5421de8f4737929181900390910190a1505050565b604080518082018252601a81527915985d5b1d0e881c1bdbdb105b5bdd5b9d08195e18d95959195960321b6020808301919091526001600160a01b038516600090815260259091529190912054614c65918390615860565b6001600160a01b03831660009081526025602090815260408083208490556026909152902054614c98911015603261458a565b604080516001600160a01b03841681526020810183905281517f112726233fbeaeed0f5b1dba5cb0b2b81883dee49fb35ff99fd98ed9f6d31eb0929181900390910190a15050565b6001600160a01b0382166000908152602d6020526040902054614d0390826144f0565b6001600160a01b0383166000908152602d6020908152604080832093909355602f9052205480156137fc576001600160a01b0383166000908152602d60205260409020548110156137fc576040805162461bcd60e51b815260206004820152601a60248201527915985d5b1d0e881b585e081cda1bdc9d1cc8195e18d95959195960321b604482015290519081900360640190fd5b60165462010000900460ff16156144ee57336000908152601a60205260409020546144ee9060ff16603661458a565b6001600160a01b038216600090815260236020526040902054818111614e30576001600160a01b038316600081815260236020908152604080832092909255815192835282018390528051600080516020615e3e8339815191529281900390910190a150613960565b614e3a8183614548565b6001600160a01b0384166000818152602360209081526040918290209390935580519182529181018490528151600080516020615e3e833981519152929181900390910190a1505050565b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015614ed457600080fd5b505afa158015614ee8573d6000803e3d6000fd5b505050506040513d6020811015614efe57600080fd5b50516001600160a01b0390921660009081526021602052604090209190915550565b600080614f3d61271061178e614f368287614548565b879061443d565b90506000614f4b8583614548565b6001600160a01b0387166000908152602c6020526040902054909150614f7190826144f0565b6001600160a01b0387166000908152602c60205260409020557f47cd9dda0e50ce30bcaaacd0488452b596221c07ac402a581cfae4d3933cac2b86614fb681846117b4565b604080516001600160a01b0390931683526020830191909152818101849052519081900360600190a150949350505050565b614ffc6001600160a01b038416828461564f565b604080516370a0823160e01b815230600482015290516001600160a01b038516916370a08231916024808301926020929190829003018186803b15801561504257600080fd5b505afa158015615056573d6000803e3d6000fd5b505050506040513d602081101561506c57600080fd5b50516001600160a01b039093166000908152602160205260409020929092555050565b6001600160a01b0382166000908152602360205260409020546150b290826144f0565b6001600160a01b0383166000908152602360209081526040808320939093556024905220548015615104576001600160a01b03831660009081526023602052604090205461510490821015603361458a565b604080516001600160a01b03851681526020810184905281517f64243679a443432e2293343b77d411ff6144370404618f00ca0d2025d9ca9882929181900390910190a1505050565b600154604080516381d11a2360e01b81526001600160a01b038a8116600483015289811660248301528881166044830152606482018890526084820187905285151560a483015284811660c4830152915160009363010000009004909216916381d11a239160e4808201928692909190829003018186803b1580156151d157600080fd5b505afa1580156151e5573d6000803e3d6000fd5b505050506151f3878761414d565b60006152018989898761198e565b6000818152602b60205260409020805491925090615222901515601f61458a565b6152348682600001541015602061458a565b6152468782600101541015602161458a565b6001810154815460048301546000916152639161178e908b61443d565b60048401549091506152759082614548565b60048401556152848b826156a1565b506000806152968d8d8d8d8d8d6158ba565b855491935091508914615416576152ae8c8c8a6135d9565b600385015583546152bf908a614548565b80855560018501546152d19190614933565b6152df8d8d8d8b6001613854565b5050871561530c576153028c61211686600101548661454890919063ffffffff16565b61530c8c8a614a76565b6000886153215761531c8c613ebc565b61532a565b61532a8c612db8565b9050600080516020615dfd833981519152868f8f8f8f8f8f8861534d8c8c614548565b60408051998a526001600160a01b0398891660208b015296881689880152949096166060880152608087019290925260a0860152151560c085015260e084019290925261010083019190915251908190036101200190a18454600186015460028701546003880154600489015460058a0154604080518d81526020810197909752868101959095526060860193909352608085019190915260a084015260c083015260e0820183905251600080516020615ddd833981519152918190036101000190a150615578565b8715615430576154268c846149f7565b6154308c8a614a76565b600088615445576154408c613ebc565b61544e565b61544e8c612db8565b9050600080516020615dfd833981519152868f8f8f8f8f8f886154718c8c614548565b60408051998a526001600160a01b0398891660208b015296881689880152949096166060880152608087019290925260a0860152151560c085015260e084019290925261010083019190915251908190036101200190a18454600186015460028701546003880154600489015460058a0154604080518d81526020810197909752868101959095526060860193909352608085019190915260a084015260c0830152517f73af1d417d82c240fdb6d319b34ad884487c6bf2845d98980cc52ad9171cb4559181900360e00190a1506000858152602b602052604081208181556001810182905560028101829055600381018290556004810182905560058101829055600601555b87615587576155878b8a615756565b81156155c75787156155a1576155a18c61213d8e856132cf565b60006155ad8d836132cf565b90506155ba8d828a614fe8565b95506124a4945050505050565b5060009c9b505050505050505050505050565b6001600160a01b03811660009081526027602090815260408083205460259092529091205410156146b2576040805162461bcd60e51b815260206004820152601a6024820152792b30bab63a1d103837b7b620b6b7bab73a101e10313ab33332b960311b604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526137fc908490615ab4565b604080518082018252601b81527a5661756c743a20696e73756666696369656e74207265736572766560281b6020808301919091526001600160a01b0385166000908152602690915291909120546156fa918390615860565b6001600160a01b03831660008181526026602090815260409182902093909355805191825291810183905281517f533cb5ed32be6a90284e96b5747a1bfc2d38fdb5768a6b5f67ff7d62144ed67b929181900390910190a15050565b6001600160a01b0382166000908152602d60205260409020548082111561579657506001600160a01b0382166000908152602d6020526040812055613960565b6157a08183614548565b6001600160a01b0384166000908152602d6020526040902055505050565b6000818361584a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561580f5781810151838201526020016157f7565b50505050905090810190601f16801561583c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161585657fe5b0495945050505050565b600081848411156158b25760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561580f5781810151838201526020016157f7565b505050900390565b60008060006158cb8989898761198e565b6000818152602b602052604081208054600382015493945090926158f8918d918d918d918b918d916147ca565b90506000806000806159198d876000015488600201548d8a600601546124e8565b875491955085935091506159319061178e8d8461443d565b9250505060008280156159445750600082115b1561597457506005840180548201905580886159745760006159668e846132cf565b90506159728e82614c0d565b505b821580156159825750600082115b156159c65760018501546159969083614548565b6001860155886159ba5760006159ac8e846132cf565b90506159b88e82614af5565b505b60058501805483900390555b8a156159ee576159d6818c6144f0565b60018601549091506159e8908c614548565b60018601555b84548a1415615a11576001850154615a079082906144f0565b6000600187015590505b8084811115615a2b57615a248286614548565b9050615a5f565b6001860154615a3a9086614548565b60018701558915615a5f576000615a518f876132cf565b9050615a5d8f82614c0d565b505b60408051888152851515602082015280820185905290517f3ff41bdde87755b687ae83d0221a232b6be51a803330ed9661c1b5d0105e0d8a9181900360600190a1909e909d509b505050505050505050505050565b6060615b09826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316615b659092919063ffffffff16565b8051909150156137fc57808060200190516020811015615b2857600080fd5b50516137fc5760405162461bcd60e51b815260040180806020018281038252602a815260200180615e5e602a913960400191505060405180910390fd5b6060611adb848460008585615b7985615c80565b615bca576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310615c095780518252601f199092019160209182019101615bea565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114615c6b576040519150601f19603f3d011682016040523d82523d6000602084013e615c70565b606091505b50915091506124a4828286615c86565b3b151590565b60608315615c95575081611d8f565b825115615ca55782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561580f5781810151838201526020016157f7565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10615d2d5782800160ff19823516178555615d5a565b82800160010185558215615d5a579182015b82811115615d5a578235825591602001919060010190615d3f565b50615d66929150615da7565b5090565b6040518060e00160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b5b80821115615d665760008155600101615da856fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c0020853733b590dce729d9f4628682ebd9a34d2354e72679e66f43a008fc03b77393d75d64d1f84fc6f430a64fc578bdd4c1e090e90ea2d51773e626d19de56d30536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77e1e812596aac93a06ecc4ca627014d18e30f5c33b825160cc9d5c0ba61e452275361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645d0c0019d3d45fadeb74eff9d2c9924d146d000ac6bcf3c28bf0ac3c9baa011aa2646970667358221220f11b15d932f21b2bd1223d0c4ac18bb1522091c3d4fbbff086b4e6288318f66864736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106105695760003560e01c806304fef1db1461056e57806307c58752146105a65780630842b076146105ae5780630a48d5a9146105b657806310eb56c2146105e2578063126082cf146105ea57806312d43a51146105f2578063134ca63b14610616578063174d26941461061e578063181e210e146106265780631aa4ace5146106425780631ce9cb8f1461066857806324b0c04d1461068e57806324ca984e146106af57806328e67be5146106d557806329ff96151461074a5780632c668ec1146107705780632d4b05761461079c57806330455ede146107da578063318bc689146107f957806334c1557d146105ea578063351a964d14610801578063392e53cd146108095780633a05dcc1146108115780633c5a6e35146108375780633de39c11146108855780633e72a2621461088d57806340eb38021461089557806342152873146108e657806342b60b031461091a5780634453a3741461094057806345a6f3701461096e57806348d91abf146109c757806348f35cbb14610a0b5780634a3f088d14610a135780634a993ee914610a945780634befe2ca14610aba5780634d47b30414610ac2578063514ea4bf14610aca57806351723e8214610b1f578063523fba7f14610b5d578063529a356f14610b8357806352f55eed14610ba95780635c07eaab14610bcf5780635f7bc11914610c0f5780636092219914610c3557806362287a3214610c635780636274980314610c6b5780636abbe0c814610c915780636ae0b15414610c995780636be6026b14610cbf57806371089f4d14610cc7578063711e619014610ced578063724e78da14610d1b578063728cdbca14610d41578063741bef1a14610d895780637a210a2b14610d915780637c2eb9f714610d99578063817bb85714610db857806381a612d614610de657806382a0849014610e0c5780638585f4d214610e60578063870d917c14610e8c57806388b1fbdf14610e945780638a27d46814610eba5780638a39735a146105ea5780638a78daa814610ee35780638ee573ac14610f095780638f7b840414610f2f5780639060b1ca14610f555780639331621214610f5d57806395082d2514610f955780639698d25a14610f9d5780639849e41214610fc35780639899cd0214610fcb5780639d7432ca14610ff75780639f392eb314611029578063a22f239214611031578063a42ab3d214611039578063a5e90eee14611065578063a93acac214611093578063ab08c1c6146110b9578063ab2f3ad4146110c1578063ad1e4f8d146110e7578063ae3302c21461110d578063b06423f314611115578063b136ca491461111d578063b1cc53ab14611143578063b364accb1461117b578063c3c7b9e9146111a1578063c4f718bf146111c7578063c65bc7b1146111cf578063c7e074c3146111f5578063cea0c32814611235578063cfad57a21461126b578063d2fa635e14611291578063d3127e63146112ae578063d54d5a9f146112cb578063d66b000d1461132a578063d8f897c314611356578063d9ac42251461137c578063da76524c14611384578063daf9c210146113ce578063db3555fb146113f4578063db97495f1461141a578063dc8f5fac14611466578063de2ea9481461146e578063df73a267146114b6578063e124e6d2146114be578063e468baf0146114e4578063e67f59a714611501578063efa10a6e14611527578063f07456ce14611553578063f07bbf7714611579578063f255527814611598578063f3ae2415146115c6578063f5b91b7b146115ec578063f887ea40146115f4578063fa12dbc0146115fc578063fbfded6d1461162e578063fce28c101461165c578063fdaf6ac314611664578063fed1a606146116a8575b600080fd5b6105946004803603602081101561058457600080fd5b50356001600160a01b031661173a565b60408051918252519081900360200190f35b61059461179d565b6105946117ae565b610594600480360360408110156105cc57600080fd5b506001600160a01b0381351690602001356117b4565b610594611807565b61059461180d565b6105fa611813565b604080516001600160a01b039092168252519081900360200190f35b610594611822565b610594611828565b61062e61182e565b604080519115158252519081900360200190f35b6105946004803603602081101561065857600080fd5b50356001600160a01b031661183e565b6105946004803603602081101561067e57600080fd5b50356001600160a01b0316611850565b6106ad600480360360208110156106a457600080fd5b50351515611862565b005b6106ad600480360360208110156106c557600080fd5b50356001600160a01b0316611886565b6106ad600480360360408110156106eb57600080fd5b81359190810190604081016020820135600160201b81111561070c57600080fd5b82018360208201111561071e57600080fd5b803590602001918460018302840111600160201b8311171561073f57600080fd5b5090925090506118b7565b6105946004803603602081101561076057600080fd5b50356001600160a01b0316611935565b6105946004803603604081101561078657600080fd5b506001600160a01b038135169060200135611949565b610594600480360360808110156107b257600080fd5b506001600160a01b03813581169160208101358216916040820135169060600135151561198e565b6106ad600480360360208110156107f057600080fd5b503515156119e4565b610594611a06565b61062e611a0c565b61062e611a1a565b6105946004803603602081101561082757600080fd5b50356001600160a01b0316611a23565b6106ad600480360360e081101561084d57600080fd5b506001600160a01b038135169060208101359060408101359060608101359060808101359060a081013515159060c001351515611ae3565b610594611c25565b61062e611c2b565b6106ad60048036036101208110156108ac57600080fd5b5080359060208101359060408101359060608101359060808101359060a08101359060c08101359060e08101359061010001351515611c3a565b610594600480360360608110156108fc57600080fd5b508035906001600160a01b0360208201358116916040013516611cf4565b61062e6004803603602081101561093057600080fd5b50356001600160a01b0316611d96565b6106ad6004803603604081101561095657600080fd5b506001600160a01b0381351690602001351515611dab565b6109ac6004803603608081101561098457600080fd5b506001600160a01b038135811691602081013582169160408201351690606001351515611dde565b60408051921515835260208301919091528051918290030190f35b6106ad600480360360a08110156109dd57600080fd5b506001600160a01b038135811691602081013582169160408201351690606081013590608001351515611e7c565b6105fa6122a9565b610a5160048036036080811015610a2957600080fd5b506001600160a01b0381358116916020810135821691604082013516906060013515156122b8565b604080519889526020890197909752878701959095526060870193909352608086019190915260a0850152151560c084015260e083015251908190036101000190f35b61059460048036036020811015610aaa57600080fd5b50356001600160a01b03166123ae565b6105946123c0565b6105946123c6565b610ae760048036036020811015610ae057600080fd5b50356123cc565b604080519788526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b61059460048036036080811015610b3557600080fd5b506001600160a01b038135811691602081013582169160408201351690606001351515612409565b61059460048036036020811015610b7357600080fd5b50356001600160a01b03166124af565b61062e60048036036020811015610b9957600080fd5b50356001600160a01b03166124c1565b61059460048036036020811015610bbf57600080fd5b50356001600160a01b03166124d6565b6109ac600480360360a0811015610be557600080fd5b506001600160a01b03813516906020810135906040810135906060810135151590608001356124e8565b6106ad60048036036020811015610c2557600080fd5b50356001600160a01b03166125e0565b61062e60048036036040811015610c4b57600080fd5b506001600160a01b03813581169160200135166126c3565b6105946126e3565b61059460048036036020811015610c8157600080fd5b50356001600160a01b03166126e9565b6105fa6126fb565b6106ad60048036036020811015610caf57600080fd5b50356001600160a01b0316612711565b61059461273f565b6106ad60048036036020811015610cdd57600080fd5b50356001600160a01b0316612746565b61059460048036036040811015610d0357600080fd5b506001600160a01b038135811691602001351661277a565b6106ad60048036036020811015610d3157600080fd5b50356001600160a01b0316612a0e565b6106ad600480360360c0811015610d5757600080fd5b506001600160a01b03813581169160208101358216916040820135169060608101359060808101359060a00135612a38565b6105fa612aaf565b610594612abe565b6106ad60048036036020811015610daf57600080fd5b50351515612ac4565b61059460048036036040811015610dce57600080fd5b506001600160a01b0381358116916020013516612ae8565b61059460048036036020811015610dfc57600080fd5b50356001600160a01b0316612db8565b610594600480360360e0811015610e2257600080fd5b506001600160a01b0381358116916020810135821691604082013581169160608101359160808201359160a081013515159160c09091013516612e63565b6106ad60048036036040811015610e7657600080fd5b506001600160a01b038135169060200135612ee1565b610594612f05565b61059460048036036020811015610eaa57600080fd5b50356001600160a01b0316612f0a565b6106ad60048036036060811015610ed057600080fd5b5080359060208101359060400135612f1c565b61059460048036036020811015610ef957600080fd5b50356001600160a01b0316612f62565b61059460048036036020811015610f1f57600080fd5b50356001600160a01b0316612f74565b6106ad60048036036020811015610f4557600080fd5b50356001600160a01b0316612f86565b61062e612fb0565b61059460048036036060811015610f7357600080fd5b506001600160a01b038135811691602081013582169160409091013516612fbf565b6105946132a7565b61059460048036036020811015610fb357600080fd5b50356001600160a01b03166132b7565b6105946132c9565b61059460048036036040811015610fe157600080fd5b506001600160a01b0381351690602001356132cf565b6105946004803603606081101561100d57600080fd5b506001600160a01b0381351690602081013590604001356132f1565b61062e61339a565b6105946133a3565b6105946004803603604081101561104f57600080fd5b506001600160a01b0381351690602001356133a9565b6106ad6004803603604081101561107b57600080fd5b506001600160a01b03813516906020013515156133c6565b610594600480360360208110156110a957600080fd5b50356001600160a01b03166133f9565b61062e6134f7565b610594600480360360208110156110d757600080fd5b50356001600160a01b0316613500565b610594600480360360208110156110fd57600080fd5b50356001600160a01b0316613512565b610594613524565b61062e61352a565b6105946004803603602081101561113357600080fd5b50356001600160a01b0316613538565b6105946004803603606081101561115957600080fd5b506001600160a01b0381358116916020810135909116906040013515156135d9565b6109ac6004803603602081101561119157600080fd5b50356001600160a01b0316613674565b610594600480360360208110156111b757600080fd5b50356001600160a01b031661370c565b61059461371e565b610594600480360360208110156111e557600080fd5b50356001600160a01b0316613724565b610594600480360360a081101561120b57600080fd5b506001600160a01b0381351690602081013590604081013590606081013590608001351515613736565b6106ad6004803603606081101561124b57600080fd5b506001600160a01b038135811691602081013590911690604001356137e0565b6106ad6004803603602081101561128157600080fd5b50356001600160a01b0316613801565b6106ad600480360360208110156112a757600080fd5b503561382b565b6106ad600480360360208110156112c457600080fd5b5035613838565b611311600480360360a08110156112e157600080fd5b506001600160a01b0381358116916020810135821691604082013516906060810135151590608001351515613854565b6040805192835260208301919091528051918290030190f35b6106ad6004803603604081101561134057600080fd5b506001600160a01b03813516906020013561390b565b6105946004803603602081101561136c57600080fd5b50356001600160a01b0316613964565b610594613976565b610594600480360360c081101561139a57600080fd5b506001600160a01b038135811691602081013582169160408201351690606081013515159060808101359060a0013561397c565b61062e600480360360208110156113e457600080fd5b50356001600160a01b0316613a30565b61062e6004803603602081101561140a57600080fd5b50356001600160a01b0316613a45565b610594600480360360e081101561143057600080fd5b506001600160a01b0381351690602081013590604081013590606081013515159060808101359060a08101359060c00135613a59565b610594613aea565b6106ad600480360360a081101561148457600080fd5b506001600160a01b03813581169160208101358216916040820135811691606081013515159160809091013516613af0565b610594613eb6565b610594600480360360208110156114d457600080fd5b50356001600160a01b0316613ebc565b6105fa600480360360208110156114fa57600080fd5b5035613f34565b6106ad6004803603602081101561151757600080fd5b50356001600160a01b0316613f5b565b6106ad6004803603604081101561153d57600080fd5b506001600160a01b03813516906020013561402e565b6105946004803603602081101561156957600080fd5b50356001600160a01b0316614052565b6106ad6004803603602081101561158f57600080fd5b50351515614064565b610594600480360360408110156115ae57600080fd5b506001600160a01b038135811691602001351661408a565b61062e600480360360208110156115dc57600080fd5b50356001600160a01b03166140e0565b6105fa6140f5565b6105fa614104565b6105946004803603606081101561161257600080fd5b506001600160a01b038135169060208101359060400135614113565b6106ad6004803603604081101561164457600080fd5b506001600160a01b038135811691602001351661414d565b610594614326565b610594600480360360a081101561167a57600080fd5b506001600160a01b03813581169160208101358216916040820135169060608101351515906080013561432c565b6116c5600480360360208110156116be57600080fd5b50356143a2565b6040805160208082528351818301528351919283929083019185019080838360005b838110156116ff5781810151838201526020016116e7565b50505050905090810190601f16801561172c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6001600160a01b03811660009081526025602052604081205480611762576000915050611798565b6001600160a01b03831660009081526026602052604090205461179490829061178e90620f424061443d565b90614496565b9150505b919050565b6904ee2d6d415b85acef8160201b81565b601b5490565b6000816117c357506000611801565b60006117ce84612db8565b6001600160a01b0385166000908152601d60205260409020549091506117fc600a82900a61178e868561443d565b925050505b92915050565b600b5481565b61271081565b6006546001600160a01b031681565b60145481565b60095481565b6016546301000000900460ff1681565b60236020526000908152604090205481565b602c6020526000908152604090205481565b61186a6144d5565b60168054911515620100000262ff000019909216919091179055565b3360009081526018602090815260408083206001600160a01b0394909416835292905220805460ff19166001179055565b6002546001600160a01b03163314611916576040805162461bcd60e51b815260206004820152601e60248201527f5661756c743a20696e76616c6964206572726f72436f6e74726f6c6c65720000604482015290519081900360640190fd5b600083815260306020526040902061192f908383615cec565b50505050565b60006118018261194484613538565b6117b4565b60008061195584613ebc565b905060006119738261178e8668327cb2734119d3b7a9601e1b61443d565b6005549091506117fc9082906001600160a01b031687611cf4565b604080516001600160601b0319606096871b811660208084019190915295871b811660348301529390951b9092166048850152151560f81b605c8401528051603d818503018152605d9093019052815191012090565b6119ec6144d5565b600180549115156101000261ff0019909216919091179055565b600f5481565b600154610100900460ff1681565b60015460ff1681565b600080600560009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611a7457600080fd5b505afa158015611a88573d6000803e3d6000fd5b505050506040513d6020811015611a9e57600080fd5b5051905080611ab1576000915050611798565b6001600160a01b038316600090815260226020526040902054601554611adb9061178e838561443d565b949350505050565b611aeb6144d5565b6001600160a01b0387166000908152601c602052604090205460ff16611b6857600754611b199060016144f0565b600755601b80546001810182556000919091527f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc10180546001600160a01b0319166001600160a01b0389161790555b6015546001600160a01b038816600090815260226020526040902054611b8f908290614548565b6001600160a01b0389166000908152601c602090815260408083208054600160ff1991821617909155601d83528184208c9055602283528184208b9055601e83528184208a905560248352818420899055601f83528184208054821689151517905591805290912080549091168415151790559050611c0e81876144f0565b601555611c1a88613ebc565b505050505050505050565b60175481565b60015462010000900460ff1681565b611c426144d5565b611c526101f48a1115600361458a565b611c626101f4891115600461458a565b611c726101f4881115600561458a565b611c826101f4871115600661458a565b611c926101f4861115600761458a565b611ca26101f4851115600861458a565b611cbd6904ee2d6d415b85acef8160201b841115600961458a565b600a98909855600b96909655600c94909455600d92909255600e55600f556009556010556011805460ff1916911515919091179055565b60055460009081906001600160a01b03858116911614611d2c576001600160a01b0384166000908152601d6020526040902054611d2f565b60125b6005549091506000906001600160a01b03858116911614611d68576001600160a01b0384166000908152601d6020526040902054611d6b565b60125b9050611d8a82600a0a61178e83600a0a8961443d90919063ffffffff16565b925050505b9392505050565b601f6020526000908152604090205460ff1681565b611db36144d5565b6001600160a01b03919091166000908152601960205260409020805460ff1916911515919091179055565b6000806000611def8787878761198e565b9050611df9615d6a565b506000818152602b6020908152604091829020825160e081018452815480825260018301549382019390935260028201549381018490526003820154606082015260048201546080820152600582015460a082015260069091015460c082018190529092611e6d92899290919089906124e8565b93509350505094509492505050565b60026000541415611ec2576040805162461bcd60e51b815260206004820152601f6024820152600080516020615dbd833981519152604482015290519081900360640190fd5b6002600055600154611ede9062010000900460ff16601c61458a565b611ee6614636565b611eef85614652565b611efa8484836146b5565b60015460408051634eae147d60e11b81526001600160a01b038881166004830152878116602483015286811660448301526064820186905284151560848301529151630100000090930490911691639d5c28fa9160a480820192600092909190829003018186803b158015611f6e57600080fd5b505afa158015611f82573d6000803e3d6000fd5b50505050611f90848461414d565b6000611f9e8686868561198e565b6000818152602b6020526040812091925083611fc257611fbd86612db8565b611fcb565b611fcb86613ebc565b8254909150611fdc57600282018190555b815415801590611fec5750600085115b156120125761200c868360000154846002015487858a8860060154613a59565b60028301555b600061202b898989888a886000015489600301546147ca565b9050600061203889614886565b905060006120468a836117b4565b600186015490915061205890826144f0565b6001860181905561206d90841115601d61458a565b600185015461207c9084614548565b600186015561208c8a8a896135d9565b6003860155845461209d90896144f0565b8086554260068701556120b3901515601e61458a565b6120c585600001548660010154614933565b6120d38b8b8b8a6001613854565b505060006120e18b8a6133a9565b60048701549091506120f390826144f0565b60048701556121028b82614957565b87156121475761211b8b6121168b876144f0565b6149f7565b6121258b83614a76565b61212f8b84614af5565b6121428b61213d8d876132cf565b614c0d565b6121b3565b6001600160a01b038a166000908152602d6020526040902054612184576001600160a01b038a166000908152602e602052604090208590556121a9565b61218f8a868b6132f1565b6001600160a01b038b166000908152602e60205260409020555b6121b38a8a614ce0565b604080518881526001600160a01b03808f166020830152808e16828401528c1660608201526080810184905260a081018b905289151560c082015260e08101879052610100810186905290517f2fe68525253654c21998f35787a8d0f361905ef647c854092430ab65f2f15022918190036101200190a1855460018701546002880154600389015460048a015460058b0154604080518e81526020810197909752868101959095526060860193909352608085019190915260a084015260c083015260e0820187905251600080516020615ddd833981519152918190036101000190a15050600160005550505050505050505050565b6002546001600160a01b031681565b60008060008060008060008060006122d28d8d8d8d61198e565b90506122dc615d6a565b602b60008381526020019081526020016000206040518060e001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152505090506000808260a001511361235c578160a00151600003612362565b8160a001515b9050816000015182602001518360400151846060015185608001518560008860a0015112158860c001519a509a509a509a509a509a509a509a5050505094995094995094999196509450565b60276020526000908152604090205481565b6101f481565b600c5481565b602b602052600090815260409020805460018201546002830154600384015460048501546005860154600690960154949593949293919290919087565b6000806124188686868661198e565b9050612422615d6a565b506000818152602b6020908152604091829020825160e0810184528154815260018201549281018390526002820154938101939093526003810154606084015260048101546080840152600581015460a08401526006015460c083015261248c901515602561458a565b602081015181516124a4919061178e9061271061443d565b979650505050505050565b60216020526000908152604090205481565b60196020526000908152604090205460ff1681565b60256020526000908152604090205481565b6000806124f960008611602661458a565b60008461250e5761250988613ebc565b612517565b61251788612db8565b905060008187116125315761252c8288614548565b61253b565b61253b8783614548565b9050600061254d8861178e8b8561443d565b9050600087156125605750878311612565565b508288115b600061257c601054896144f090919063ffffffff16565b42116125a0576001600160a01b038c166000908152601e60205260409020546125a3565b60005b90508180156125c657506125b78b8261443d565b6125c38461271061443d565b11155b156125d057600092505b509a909950975050505050505050565b60026000541415612626576040805162461bcd60e51b815260206004820152601f6024820152600080516020615dbd833981519152604482015290519081900360640190fd5b600260009081556001600160a01b0382168152601c60205260409020546126519060ff16600e61458a565b600061265c82614886565b905061266c60008211600f61458a565b6126768282614af5565b604080516001600160a01b03841681526020810183905281517fa5a389190ebf6170a133bda5c769b77f4d6715b8aa172ec0ddf8473d0b4944bd929181900390910190a150506001600055565b601860209081526000928352604080842090915290825290205460ff1681565b60075481565b602e6020526000908152604090205481565b600154630100000090046001600160a01b031681565b3360009081526018602090815260408083206001600160a01b0394909416835292905220805460ff19169055565b620f424081565b61274e6144d5565b600180546001600160a01b039092166301000000026301000000600160b81b0319909216919091179055565b6000600260005414156127c2576040805162461bcd60e51b815260206004820152601f6024820152600080516020615dbd833981519152604482015290519081900360640190fd5b60026000556127cf614d98565b6001600160a01b0383166000908152601c60205260409020546127f69060ff16601361458a565b6016805461ff00191661010017905560055460009061281d906001600160a01b0316614886565b905061282d60008211601461458a565b612837848561414d565b60006128438583611949565b905061285360008211601561458a565b61285d8583614dc7565b6128678582614c0d565b60055460408051632770a7eb60e21b81523060048201526024810185905290516001600160a01b0390921691639dc29fac9160448082019260009290919082900301818387803b1580156128ba57600080fd5b505af11580156128ce573d6000803e3d6000fd5b50506005546128e892506001600160a01b03169050614e85565b6001546040805163eb0835bf60e01b81526001600160a01b038881166004830152602482018690529151600093630100000090049092169163eb0835bf91604480820192602092909190829003018186803b15801561294657600080fd5b505afa15801561295a573d6000803e3d6000fd5b505050506040513d602081101561297057600080fd5b505190506000612981878484614f20565b905061299160008211601661458a565b61299c878288614fe8565b604080516001600160a01b03808916825289166020820152808201869052606081018390526080810184905290517fd732b7828fa6cee72c285eac756fc66a7477e3dc22e22e7c432f1c265d40b4839181900360a00190a16016805461ff001916905560016000559695505050505050565b612a166144d5565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b612a406144d5565b60018054612a549160ff909116159061458a565b6001805460ff191681179055600380546001600160a01b03199081166001600160a01b039889161790915560058054821696881696909617909555600480549095169390951692909217909255600991909155601355601455565b6004546001600160a01b031681565b600a5481565b612acc6144d5565b60018054911515620100000262ff000019909216919091179055565b600060026000541415612b30576040805162461bcd60e51b815260206004820152601f6024820152600080516020615dbd833981519152604482015290519081900360640190fd5b6002600055612b3d614d98565b6001600160a01b0383166000908152601c6020526040902054612b649060ff16601061458a565b6016805461ff0019166101001790556000612b7e84614886565b9050612b8e60008211601161458a565b612b98848561414d565b6000612ba385612db8565b90506000612bc168327cb2734119d3b7a9601e1b61178e858561443d565b600554909150612bdd90829088906001600160a01b0316611cf4565b9050612bed60008211601261458a565b6001546040805163256f6ee360e11b81526001600160a01b0389811660048301526024820185905291516000936301000000900490921691634adeddc691604480820192602092909190829003018186803b158015612c4b57600080fd5b505afa158015612c5f573d6000803e3d6000fd5b505050506040513d6020811015612c7557600080fd5b505190506000612c86888684614f20565b90506000612ca468327cb2734119d3b7a9601e1b61178e848861443d565b600554909150612cc09082908b906001600160a01b0316611cf4565b9050612ccc898261508f565b612cd68983614af5565b600554604080516340c10f1960e01b81526001600160a01b038b8116600483015260248201859052915191909216916340c10f1991604480830192600092919082900301818387803b158015612d2b57600080fd5b505af1158015612d3f573d6000803e3d6000fd5b5050604080516001600160a01b03808d1682528d1660208201528082018a9052606081018590526080810187905290517fab4c77c74cd32c85f35416cf03e7ce9e2d4387f7b7f2c1f4bf53daaecf8ea72d93509081900360a0019150a16016805461ff0019169055600160005598975050505050505050565b60048054601654604080516317e1d38560e11b81526001600160a01b038681169582019590955260006024820181905260ff80851615156044840152610100909404909316151560648201529051919390921691632fc3a70a916084808301926020929190829003018186803b158015612e3157600080fd5b505afa158015612e45573d6000803e3d6000fd5b505050506040513d6020811015612e5b57600080fd5b505192915050565b600060026000541415612eab576040805162461bcd60e51b815260206004820152601f6024820152600080516020615dbd833981519152604482015290519081900360640190fd5b6002600055612eb8614636565b612ec188614652565b612ed08888888888888861514d565b600160005598975050505050505050565b612ee96144d5565b6001600160a01b03909116600090815260276020526040902055565b601281565b601e6020526000908152604090205481565b612f246144d5565b612f34610e10841015600a61458a565b612f44612710831115600b61458a565b612f54612710821115600c61458a565b601292909255601355601455565b602d6020526000908152604090205481565b601d6020526000908152604090205481565b612f8e6144d5565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60165462010000900460ff1681565b600060026000541415613007576040805162461bcd60e51b815260206004820152601f6024820152600080516020615dbd833981519152604482015290519081900360640190fd5b600260005560015461302290610100900460ff16601761458a565b6001600160a01b0384166000908152601c60205260409020546130499060ff16601861458a565b6001600160a01b0383166000908152601c60205260409020546130709060ff16601961458a565b613090836001600160a01b0316856001600160a01b03161415601a61458a565b6016805461ff0019166101001790556130a9848061414d565b6130b3838461414d565b60006130be85614886565b90506130ce60008211601b61458a565b60006130d986612db8565b905060006130e686613ebc565b905060006130f88261178e868661443d565b9050613105818989611cf4565b9050600061312368327cb2734119d3b7a9601e1b61178e878761443d565b60055490915061313f9082908b906001600160a01b0316611cf4565b60015460408051636d099c0b60e11b81526001600160a01b038d811660048301528c8116602483015260448201859052915193945060009363010000009093049091169163da13381691606480820192602092909190829003018186803b1580156131a957600080fd5b505afa1580156131bd573d6000803e3d6000fd5b505050506040513d60208110156131d357600080fd5b5051905060006131e48a8584614f20565b90506131f08b8461508f565b6131fa8a84614dc7565b6132048b88614af5565b61320e8a85614c0d565b6132178a6155da565b6132228a828b614fe8565b604080516001600160a01b03808c168252808e1660208301528c1681830152606081018990526080810186905260a0810183905260c0810184905290517f0874b2d545cb271cdbda4e093020c452328b24af12382ed62c4d00f5c26709db9181900360e00190a16016805461ff001916905560016000559a9950505050505050505050565b68327cb2734119d3b7a9601e1b81565b602f6020526000908152604090205481565b60125481565b6000816132de57506000611801565b611d8f83836132ec86613ebc565b614113565b6001600160a01b0383166000908152602d6020908152604080832054602e9092528220548285821161332c576133278683614548565b613336565b6133368287614548565b905060006133488361178e868561443d565b9050868311600061335986896144f0565b90506000826133715761336c82856144f0565b61337b565b61337b8285614548565b905061338b8161178e8c8561443d565b9b9a5050505050505050505050565b60115460ff1681565b600d5481565b6000816133b857506000611801565b611d8f83836132ec86612db8565b6133ce6144d5565b6001600160a01b03919091166000908152601a60205260409020805460ff1916911515919091179055565b6012546001600160a01b0382166000908152602a602052604081205490914291613422916144f0565b111561343057506000611798565b6012546001600160a01b0383166000908152602a6020526040812054909161345d9161178e904290614548565b6001600160a01b0384166000908152602560205260409020549091508061348957600092505050611798565b6001600160a01b0384166000908152601f602052604081205460ff166134b1576013546134b5565b6014545b6001600160a01b0386166000908152602660205260409020549091506134ee90839061178e9086906134e890869061443d565b9061443d565b95945050505050565b60165460ff1681565b60226020526000908152604090205481565b60246020526000908152604090205481565b60085481565b601654610100900460ff1681565b6001600160a01b0381166000908152601f602052604081205460ff161561357857506001600160a01b038116600090815260256020526040902054611798565b6001600160a01b03821660009081526028602052604081205461359c9084906132cf565b6001600160a01b038416600090815260266020908152604080832054602590925290912054919250611794916135d39084906144f0565b90614548565b6001546040805163b1cc53ab60e01b81526001600160a01b038681166004830152858116602483015284151560448301529151600093630100000090049092169163b1cc53ab91606480820192602092909190829003018186803b15801561364057600080fd5b505afa158015613654573d6000803e3d6000fd5b505050506040513d602081101561366a57600080fd5b5051949350505050565b6001600160a01b0381166000908152602d60205260408120548190806136a1576000809250925050613707565b60006136ac85613ebc565b6001600160a01b0386166000908152602e60205260408120549192508282116136de576136d98383614548565b6136e8565b6136e88284614548565b905060006136fa8361178e878561443d565b9390921195509193505050505b915091565b60266020526000908152604090205481565b60135481565b60296020526000908152604090205481565b6001546040805163c7e074c360e01b81526001600160a01b03888116600483015260248201889052604482018790526064820186905284151560848301529151600093630100000090049092169163c7e074c39160a480820192602092909190829003018186803b1580156137aa57600080fd5b505afa1580156137be573d6000803e3d6000fd5b505050506040513d60208110156137d457600080fd5b50519695505050505050565b6137e86144d5565b6137fc6001600160a01b038316848361564f565b505050565b6138096144d5565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6138336144d5565b601755565b6138406144d5565b61384f6127108211600261458a565b600855565b6001546040805163d54d5a9f60e01b81526001600160a01b03888116600483015287811660248301528681166044830152851515606483015284151560848301528251600094859463010000009091049092169263d54d5a9f9260a4808301939192829003018186803b1580156138ca57600080fd5b505afa1580156138de573d6000803e3d6000fd5b505050506040513d60408110156138f457600080fd5b508051602090910151909890975095505050505050565b6139136144d5565b6001600160a01b0382166000908152602360205260409020548082111561394d57613947836139428484614548565b61508f565b50613960565b6137fc8361395b8385614548565b614dc7565b5050565b602a6020526000908152604090205481565b60105481565b6001546040805163369d949360e21b81526001600160a01b0389811660048301528881166024830152878116604483015286151560648301526084820186905260a482018590529151600093630100000090049092169163da76524c9160c480820192602092909190829003018186803b1580156139f957600080fd5b505afa158015613a0d573d6000803e3d6000fd5b505050506040513d6020811015613a2357600080fd5b5051979650505050505050565b601c6020526000908152604090205460ff1681565b602080526000908152604090205460ff1681565b6000806000613a6b8a8a8a8a886124e8565b90925090506000613a7c8a876144f0565b905060008815613aab5783613a9a57613a958284614548565b613aa4565b613aa482846144f0565b9050613acc565b83613abf57613aba82846144f0565b613ac9565b613ac98284614548565b90505b613ada8161178e8a8561443d565b9c9b505050505050505050505050565b60155481565b60026000541415613b36576040805162461bcd60e51b815260206004820152601f6024820152600080516020615dbd833981519152604482015290519081900360640190fd5b60026000556016546301000000900460ff1615613b6b5733600090815260196020526040902054613b6b9060ff16602261458a565b6016805460ff19169055613b7f848461414d565b6000613b8d8686868661198e565b9050613b97615d6a565b506000818152602b6020908152604091829020825160e08101845281548082526001830154938201939093526002820154938101939093526003810154606084015260048101546080840152600581015460a08401526006015460c0830152613c03901515602361458a565b600080613c14898989896000613854565b91509150613c278260001415602461458a565b8160021415613c5c57613c44898989600087600001518b8f61514d565b50506016805460ff1916600117905550613eaa915050565b6000613c6889836132cf565b6001600160a01b038a166000908152602c6020526040902054909150613c8e90826144f0565b6001600160a01b038a166000818152602c60209081526040918290209390935580519182529181018490528082018390529051600080516020615e888339815191529181900360600190a1613ce78985608001516156a1565b8615613d165760208401518451613d08918b91613d0391614548565b614a76565b613d168961213d8b856132cf565b600087613d2b57613d2689613ebc565b613d34565b613d3489612db8565b90507f2e1f85a64a2f22cf2f0c42584e7c919ed4abe8d53675cff0f62bf1e95a1c676f868c8c8c8c8a600001518b602001518c608001518d60a001518a604051808b81526020018a6001600160a01b03168152602001896001600160a01b03168152602001886001600160a01b0316815260200187151581526020018681526020018581526020018481526020018381526020018281526020019a505050505050505050505060405180910390a187158015613df35750846020015183105b15613e21576020850151600090613e0a9085614548565b9050613e1f8b613e1a8d846132cf565b614af5565b505b87613e3457613e34898660000151615756565b6000868152602b60205260408120818155600181018290556002810182905560038101829055600481018290556005810182905560060155600954613e80908b9061213d9082906132cf565b613e968a613e908c6009546132cf565b89614fe8565b50506016805460ff19166001179055505050505b50506001600055505050565b600e5481565b60048054601654604080516317e1d38560e11b81526001600160a01b03868116958201959095526001602482015260ff80841615156044830152610100909304909216151560648301525160009390921691632fc3a70a91608480820192602092909190829003018186803b158015612e3157600080fd5b601b8181548110613f4157fe5b6000918252602090912001546001600160a01b0316905081565b613f636144d5565b6001600160a01b0381166000908152601c6020526040902054613f8a9060ff16600d61458a565b6001600160a01b038116600090815260226020526040902054601554613faf91614548565b6015556001600160a01b0381166000908152601c60209081526040808320805460ff19908116909155601d835281842084905560228352818420849055601e835281842084905560248352818420849055601f835281842080548216905591805290912080549091169055600754614028906001614548565b60075550565b6140366144d5565b6001600160a01b039091166000908152602f6020526040902055565b60286020526000908152604090205481565b61406c6144d5565b6016805491151563010000000263ff00000019909216919091179055565b60006140946144d5565b6001600160a01b0383166000908152602c6020526040902054806140bc576000915050611801565b6001600160a01b0384166000908152602c6020526040812055611d8f848285614fe8565b601a6020526000908152604090205460ff1681565b6005546001600160a01b031681565b6003546001600160a01b031681565b60008261412257506000611d8f565b6001600160a01b0384166000908152601d60205260409020546134ee8361178e86600a85900a61443d565b6001546040805163fbfded6d60e01b81526001600160a01b03858116600483015284811660248301529151600093630100000090049092169163fbfded6d9160448082019260209290919082900301818787803b1580156141ad57600080fd5b505af11580156141c1573d6000803e3d6000fd5b505050506040513d60208110156141d757600080fd5b50519050806141e65750613960565b6001600160a01b0383166000908152602a602052604090205461423357601254614214906134e84282614496565b6001600160a01b0384166000908152602a602052604090205550613960565b6012546001600160a01b0384166000908152602a6020526040902054429161425b91906144f0565b11156142675750613960565b6000614272846133f9565b6001600160a01b03851660009081526029602052604090205490915061429890826144f0565b6001600160a01b0385166000908152602960205260409020556012546142c2906134e84282614496565b6001600160a01b0385166000818152602a602090815260408083209490945560298152908390205483519283529082015281517fa146fc154e1913322e9817d49f0d5c37466c24326e15de10e739a948be815eab929181900390910190a150505050565b610e1081565b6001546040805163fdaf6ac360e01b81526001600160a01b038881166004830152878116602483015286811660448301528515156064830152608482018590529151600093630100000090049092169163fdaf6ac39160a480820192602092909190829003018186803b1580156137aa57600080fd5b60306020908152600091825260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156144355780601f1061440a57610100808354040283529160200191614435565b820191906000526020600020905b81548152906001019060200180831161441857829003601f168201915b505050505081565b60008261444c57506000611801565b8282028284828161445957fe5b0414611d8f5760405162461bcd60e51b8152600401808060200182810382526021815260200180615e1d6021913960400191505060405180910390fd5b6000611d8f83836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b8152506157be565b6006546144ee906001600160a01b03163314603561458a565b565b600082820183811015611d8f576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b6000611d8f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250615860565b6000818152603060205260409020826137fc5760405162461bcd60e51b81526020600482019081528254600260001961010060018416150201909116046024830181905290918291604490910190849080156146275780601f106145fc57610100808354040283529160200191614627565b820191906000526020600020905b81548152906001019060200180831161460a57829003601f168201915b50509250505060405180910390fd5b601754614642576144ee565b6144ee6017543a1115603761458a565b336001600160a01b0382161415614668576146b2565b6003546001600160a01b0316331415614680576146b2565b6001600160a01b03811660009081526018602090815260408083203384529091529020546146b29060ff16602961458a565b50565b801561472e576146da826001600160a01b0316846001600160a01b031614602a61458a565b6001600160a01b0383166000908152601c60205260409020546147019060ff16602b61458a565b6001600160a01b0383166000908152601f60205260409020546147299060ff1615602c61458a565b6137fc565b6001600160a01b0383166000908152601c60205260409020546147559060ff16602d61458a565b6001600160a01b0383166000908152601f602052604090205461477c9060ff16602e61458a565b6001600160a01b0382166000908152601f60205260409020546147a49060ff1615602f61458a565b6001600160a01b03821660009081526020805260409020546137fc9060ff16603061458a565b6000806147da898989898961432c565b905060006147ec8a8a8a8a898961397c565b90506147f882826144f0565b915060006148068a846132cf565b6001600160a01b038b166000908152602c602052604090205490915061482c90826144f0565b6001600160a01b038b166000818152602c60209081526040918290209390935580519182529181018590528082018390529051600080516020615e888339815191529181900360600190a150909998505050505050505050565b6001600160a01b03811660008181526021602090815260408083205481516370a0823160e01b8152306004820152915193949093859391926370a08231926024808301939192829003018186803b1580156148e057600080fd5b505afa1580156148f4573d6000803e3d6000fd5b505050506040513d602081101561490a57600080fd5b50516001600160a01b03851660009081526021602052604090208190559050611adb8183614548565b81614949576149448115602761458a565b613960565b61396081831015602861458a565b6001600160a01b03821660009081526026602052604090205461497a90826144f0565b6001600160a01b0383166000908152602660208181526040808420859055602582529092205491526149af911115603461458a565b604080516001600160a01b03841681526020810183905281517faa5649d82f5462be9d19b0f2b31a59b2259950a6076550bac9f3a1c07db9f66d929181900390910190a15050565b6001600160a01b038216600090815260286020526040902054614a1a90826144f0565b6001600160a01b03831660008181526028602090815260409182902093909355805191825291810183905281517fd9d4761f75e0d0103b5cbeab941eeb443d7a56a35b5baf2a0787c03f03f4e474929181900390910190a15050565b6001600160a01b038216600090815260286020526040902054614a999082614548565b6001600160a01b03831660008181526028602090815260409182902093909355805191825291810183905281517f34e07158b9db50df5613e591c44ea2ebc82834eff4a4dc3a46e000e608261d68929181900390910190a15050565b6001600160a01b038216600090815260256020526040902054614b1890826144f0565b6001600160a01b03831660008181526025602090815260408083209490945583516370a0823160e01b8152306004820152935191936370a082319260248083019392829003018186803b158015614b6e57600080fd5b505afa158015614b82573d6000803e3d6000fd5b505050506040513d6020811015614b9857600080fd5b50516001600160a01b038416600090815260256020526040902054909150614bc490821015603161458a565b604080516001600160a01b03851681526020810184905281517f976177fbe09a15e5e43f848844963a42b41ef919ef17ff21a17a5421de8f4737929181900390910190a1505050565b604080518082018252601a81527915985d5b1d0e881c1bdbdb105b5bdd5b9d08195e18d95959195960321b6020808301919091526001600160a01b038516600090815260259091529190912054614c65918390615860565b6001600160a01b03831660009081526025602090815260408083208490556026909152902054614c98911015603261458a565b604080516001600160a01b03841681526020810183905281517f112726233fbeaeed0f5b1dba5cb0b2b81883dee49fb35ff99fd98ed9f6d31eb0929181900390910190a15050565b6001600160a01b0382166000908152602d6020526040902054614d0390826144f0565b6001600160a01b0383166000908152602d6020908152604080832093909355602f9052205480156137fc576001600160a01b0383166000908152602d60205260409020548110156137fc576040805162461bcd60e51b815260206004820152601a60248201527915985d5b1d0e881b585e081cda1bdc9d1cc8195e18d95959195960321b604482015290519081900360640190fd5b60165462010000900460ff16156144ee57336000908152601a60205260409020546144ee9060ff16603661458a565b6001600160a01b038216600090815260236020526040902054818111614e30576001600160a01b038316600081815260236020908152604080832092909255815192835282018390528051600080516020615e3e8339815191529281900390910190a150613960565b614e3a8183614548565b6001600160a01b0384166000818152602360209081526040918290209390935580519182529181018490528151600080516020615e3e833981519152929181900390910190a1505050565b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015614ed457600080fd5b505afa158015614ee8573d6000803e3d6000fd5b505050506040513d6020811015614efe57600080fd5b50516001600160a01b0390921660009081526021602052604090209190915550565b600080614f3d61271061178e614f368287614548565b879061443d565b90506000614f4b8583614548565b6001600160a01b0387166000908152602c6020526040902054909150614f7190826144f0565b6001600160a01b0387166000908152602c60205260409020557f47cd9dda0e50ce30bcaaacd0488452b596221c07ac402a581cfae4d3933cac2b86614fb681846117b4565b604080516001600160a01b0390931683526020830191909152818101849052519081900360600190a150949350505050565b614ffc6001600160a01b038416828461564f565b604080516370a0823160e01b815230600482015290516001600160a01b038516916370a08231916024808301926020929190829003018186803b15801561504257600080fd5b505afa158015615056573d6000803e3d6000fd5b505050506040513d602081101561506c57600080fd5b50516001600160a01b039093166000908152602160205260409020929092555050565b6001600160a01b0382166000908152602360205260409020546150b290826144f0565b6001600160a01b0383166000908152602360209081526040808320939093556024905220548015615104576001600160a01b03831660009081526023602052604090205461510490821015603361458a565b604080516001600160a01b03851681526020810184905281517f64243679a443432e2293343b77d411ff6144370404618f00ca0d2025d9ca9882929181900390910190a1505050565b600154604080516381d11a2360e01b81526001600160a01b038a8116600483015289811660248301528881166044830152606482018890526084820187905285151560a483015284811660c4830152915160009363010000009004909216916381d11a239160e4808201928692909190829003018186803b1580156151d157600080fd5b505afa1580156151e5573d6000803e3d6000fd5b505050506151f3878761414d565b60006152018989898761198e565b6000818152602b60205260409020805491925090615222901515601f61458a565b6152348682600001541015602061458a565b6152468782600101541015602161458a565b6001810154815460048301546000916152639161178e908b61443d565b60048401549091506152759082614548565b60048401556152848b826156a1565b506000806152968d8d8d8d8d8d6158ba565b855491935091508914615416576152ae8c8c8a6135d9565b600385015583546152bf908a614548565b80855560018501546152d19190614933565b6152df8d8d8d8b6001613854565b5050871561530c576153028c61211686600101548661454890919063ffffffff16565b61530c8c8a614a76565b6000886153215761531c8c613ebc565b61532a565b61532a8c612db8565b9050600080516020615dfd833981519152868f8f8f8f8f8f8861534d8c8c614548565b60408051998a526001600160a01b0398891660208b015296881689880152949096166060880152608087019290925260a0860152151560c085015260e084019290925261010083019190915251908190036101200190a18454600186015460028701546003880154600489015460058a0154604080518d81526020810197909752868101959095526060860193909352608085019190915260a084015260c083015260e0820183905251600080516020615ddd833981519152918190036101000190a150615578565b8715615430576154268c846149f7565b6154308c8a614a76565b600088615445576154408c613ebc565b61544e565b61544e8c612db8565b9050600080516020615dfd833981519152868f8f8f8f8f8f886154718c8c614548565b60408051998a526001600160a01b0398891660208b015296881689880152949096166060880152608087019290925260a0860152151560c085015260e084019290925261010083019190915251908190036101200190a18454600186015460028701546003880154600489015460058a0154604080518d81526020810197909752868101959095526060860193909352608085019190915260a084015260c0830152517f73af1d417d82c240fdb6d319b34ad884487c6bf2845d98980cc52ad9171cb4559181900360e00190a1506000858152602b602052604081208181556001810182905560028101829055600381018290556004810182905560058101829055600601555b87615587576155878b8a615756565b81156155c75787156155a1576155a18c61213d8e856132cf565b60006155ad8d836132cf565b90506155ba8d828a614fe8565b95506124a4945050505050565b5060009c9b505050505050505050505050565b6001600160a01b03811660009081526027602090815260408083205460259092529091205410156146b2576040805162461bcd60e51b815260206004820152601a6024820152792b30bab63a1d103837b7b620b6b7bab73a101e10313ab33332b960311b604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526137fc908490615ab4565b604080518082018252601b81527a5661756c743a20696e73756666696369656e74207265736572766560281b6020808301919091526001600160a01b0385166000908152602690915291909120546156fa918390615860565b6001600160a01b03831660008181526026602090815260409182902093909355805191825291810183905281517f533cb5ed32be6a90284e96b5747a1bfc2d38fdb5768a6b5f67ff7d62144ed67b929181900390910190a15050565b6001600160a01b0382166000908152602d60205260409020548082111561579657506001600160a01b0382166000908152602d6020526040812055613960565b6157a08183614548565b6001600160a01b0384166000908152602d6020526040902055505050565b6000818361584a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561580f5781810151838201526020016157f7565b50505050905090810190601f16801561583c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161585657fe5b0495945050505050565b600081848411156158b25760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561580f5781810151838201526020016157f7565b505050900390565b60008060006158cb8989898761198e565b6000818152602b602052604081208054600382015493945090926158f8918d918d918d918b918d916147ca565b90506000806000806159198d876000015488600201548d8a600601546124e8565b875491955085935091506159319061178e8d8461443d565b9250505060008280156159445750600082115b1561597457506005840180548201905580886159745760006159668e846132cf565b90506159728e82614c0d565b505b821580156159825750600082115b156159c65760018501546159969083614548565b6001860155886159ba5760006159ac8e846132cf565b90506159b88e82614af5565b505b60058501805483900390555b8a156159ee576159d6818c6144f0565b60018601549091506159e8908c614548565b60018601555b84548a1415615a11576001850154615a079082906144f0565b6000600187015590505b8084811115615a2b57615a248286614548565b9050615a5f565b6001860154615a3a9086614548565b60018701558915615a5f576000615a518f876132cf565b9050615a5d8f82614c0d565b505b60408051888152851515602082015280820185905290517f3ff41bdde87755b687ae83d0221a232b6be51a803330ed9661c1b5d0105e0d8a9181900360600190a1909e909d509b505050505050505050505050565b6060615b09826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316615b659092919063ffffffff16565b8051909150156137fc57808060200190516020811015615b2857600080fd5b50516137fc5760405162461bcd60e51b815260040180806020018281038252602a815260200180615e5e602a913960400191505060405180910390fd5b6060611adb848460008585615b7985615c80565b615bca576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310615c095780518252601f199092019160209182019101615bea565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114615c6b576040519150601f19603f3d011682016040523d82523d6000602084013e615c70565b606091505b50915091506124a4828286615c86565b3b151590565b60608315615c95575081611d8f565b825115615ca55782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561580f5781810151838201526020016157f7565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10615d2d5782800160ff19823516178555615d5a565b82800160010185558215615d5a579182015b82811115615d5a578235825591602001919060010190615d3f565b50615d66929150615da7565b5090565b6040518060e00160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b5b80821115615d665760008155600101615da856fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c0020853733b590dce729d9f4628682ebd9a34d2354e72679e66f43a008fc03b77393d75d64d1f84fc6f430a64fc578bdd4c1e090e90ea2d51773e626d19de56d30536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77e1e812596aac93a06ecc4ca627014d18e30f5c33b825160cc9d5c0ba61e452275361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645d0c0019d3d45fadeb74eff9d2c9924d146d000ac6bcf3c28bf0ac3c9baa011aa2646970667358221220f11b15d932f21b2bd1223d0c4ac18bb1522091c3d4fbbff086b4e6288318f66864736f6c634300060c0033

Deployed Bytecode Sourcemap

33855:54344:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70995:260;;;;;;;;;;;;;;;;-1:-1:-1;70995:260:0;-1:-1:-1;;;;;70995:260:0;;:::i;:::-;;;;;;;;;;;;;;;;34567:71;;;:::i;43234:132::-;;;:::i;67267:312::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;67267:312:0;;;;;;;;:::i;35386:49::-;;;:::i;34219:52::-;;;:::i;35126:27::-;;;:::i;:::-;;;;-1:-1:-1;;;;;35126:27:0;;;;;;;;;;;;;;35912:47;;;:::i;35280:41::-;;;:::i;36149:52::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;37186:56;;;;;;;;;;;;;;;;-1:-1:-1;37186:56:0;-1:-1:-1;;;;;37186:56:0;;:::i;38989:::-;;;;;;;;;;;;;;;;-1:-1:-1;38989:56:0;-1:-1:-1;;;;;38989:56:0;;:::i;43374:135::-;;;;;;;;;;;;;;;;-1:-1:-1;43374:135:0;;;;:::i;:::-;;49110:107;;;;;;;;;;;;;;;;-1:-1:-1;49110:107:0;-1:-1:-1;;;;;49110:107:0;;:::i;43017:209::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;43017:209:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;43017:209:0;;;;;;;;;;-1:-1:-1;43017:209:0;;-1:-1:-1;43017:209:0;-1:-1:-1;43017:209:0;:::i;66712:162::-;;;;;;;;;;;;;;;;-1:-1:-1;66712:162:0;-1:-1:-1;;;;;66712:162:0;;:::i;66055:307::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;66055:307:0;;;;;;;;:::i;69125:299::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;69125:299:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;44020:135::-;;;;;;;;;;;;;;;;-1:-1:-1;44020:135:0;;;;:::i;35646:49::-;;;:::i;34833:41::-;;;:::i;34792:34::-;;;:::i;77398:293::-;;;;;;;;;;;;;;;;-1:-1:-1;77398:293:0;-1:-1:-1;;;;;77398:293:0;;:::i;47105:1112::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;47105:1112:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;36210:35::-;;;:::i;34881:45::-;;;:::i;45199:1357::-;;;;;;;;;;;;;;;;-1:-1:-1;45199:1357:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;66882:377::-;;;;;;;;;;;;;;;;-1:-1:-1;66882:377:0;;;-1:-1:-1;;;;;66882:377:0;;;;;;;;;;;;:::i;36718:54::-;;;;;;;;;;;;;;;;-1:-1:-1;36718:54:0;-1:-1:-1;;;;;36718:54:0;;:::i;43857:155::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;43857:155:0;;;;;;;;;;:::i;73975:404::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;73975:404:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;54857:3807;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;54857:3807:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;34973:30::-;;;:::i;68296:821::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;68296:821:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37995:58;;;;;;;;;;;;;;;;-1:-1:-1;37995:58:0;-1:-1:-1;;;;;37995:58:0;;:::i;34504:50::-;;;:::i;35450:51::-;;;:::i;38878:46::-;;;;;;;;;;;;;;;;-1:-1:-1;38878:46:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71263:418;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;71263:418:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;36912:58::-;;;;;;;;;;;;;;;;-1:-1:-1;36912:58:0;-1:-1:-1;;;;;36912:58:0;;:::i;36339:54::-;;;;;;;;;;;;;;;;-1:-1:-1;36339:54:0;-1:-1:-1;;;;;36339:54:0;;:::i;37593:56::-;;;;;;;;;;;;;;;;-1:-1:-1;37593:56:0;-1:-1:-1;;;;;37593:56:0;;:::i;74387:1097::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;74387:1097:0;;;;;;;;;;;;;;;;;;;;;;;;;:::i;50081:331::-;;;;;;;;;;;;;;;;-1:-1:-1;50081:331:0;-1:-1:-1;;;;;50081:331:0;;:::i;36254:78::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;36254:78:0;;;;;;;;;;:::i;35162:45::-;;;:::i;39122:69::-;;;;;;;;;;;;;;;;-1:-1:-1;39122:69:0;-1:-1:-1;;;;;39122:69:0;;:::i;34935:29::-;;;:::i;49225:111::-;;;;;;;;;;;;;;;;-1:-1:-1;49225:111:0;-1:-1:-1;;;;;49225:111:0;;:::i;34278:56::-;;;:::i;42734:130::-;;;;;;;;;;;;;;;;-1:-1:-1;42734:130:0;-1:-1:-1;;;;;42734:130:0;;:::i;51668:1425::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;51668:1425:0;;;;;;;;;;:::i;44557:122::-;;;;;;;;;;;;;;;;-1:-1:-1;44557:122:0;-1:-1:-1;;;;;44557:122:0;;:::i;42151:575::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;42151:575:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;35049:33::-;;;:::i;35328:43::-;;;:::i;44163:151::-;;;;;;;;;;;;;;;;-1:-1:-1;44163:151:0;;;;:::i;50420:1240::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;50420:1240:0;;;;;;;;;;:::i;65862:185::-;;;;;;;;;;;;;;;;-1:-1:-1;65862:185:0;-1:-1:-1;;;;;65862:185:0;;:::i;58672:419::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;58672:419:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;44877:147::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;44877:147:0;;;;;;;;:::i;34455:42::-;;;:::i;36646:65::-;;;;;;;;;;;;;;;;-1:-1:-1;36646:65:0;-1:-1:-1;;;;;36646:65:0;;:::i;46564:533::-;;;;;;;;;;;;;;;;-1:-1:-1;46564:533:0;;;;;;;;;;;;:::i;39054:61::-;;;;;;;;;;;;;;;;-1:-1:-1;39054:61:0;-1:-1:-1;;;;;39054:61:0;;:::i;36581:58::-;;;;;;;;;;;;;;;;-1:-1:-1;36581:58:0;-1:-1:-1;;;;;36581:58:0;;:::i;42872:137::-;;;;;;;;;;;;;;;;-1:-1:-1;42872:137:0;-1:-1:-1;;;;;42872:137:0;;:::i;36101:41::-;;;:::i;53101:1748::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;53101:1748:0;;;;;;;;;;;;;;;;;;;:::i;34341:50::-;;;:::i;39198:64::-;;;;;;;;;;;;;;;;-1:-1:-1;39198:64:0;-1:-1:-1;;;;;39198:64:0;;:::i;35808:49::-;;;:::i;67805:210::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;67805:210:0;;;;;;;;:::i;72691:693::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;72691:693:0;;;;;;;;;;;;;:::i;35756:43::-;;;:::i;35516:47::-;;;:::i;67587:210::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;67587:210:0;;;;;;;;:::i;43517:145::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;43517:145:0;;;;;;;;;;:::i;70406:581::-;;;;;;;;;;;;;;;;-1:-1:-1;70406:581:0;-1:-1:-1;;;;;70406:581:0;;:::i;36016:35::-;;;:::i;37042:57::-;;;;;;;;;;;;;;;;-1:-1:-1;37042:57:0;-1:-1:-1;;;;;37042:57:0;;:::i;37327:59::-;;;;;;;;;;;;;;;;-1:-1:-1;37327:59:0;-1:-1:-1;;;;;37327:59:0;;:::i;35216:48::-;;;:::i;36058:34::-;;;:::i;66370:334::-;;;;;;;;;;;;;;;;-1:-1:-1;66370:334:0;-1:-1:-1;;;;;66370:334:0;;:::i;75492:216::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;75492:216:0;;;;;;;;;;;;;;;;;;;:::i;73392:575::-;;;;;;;;;;;;;;;;-1:-1:-1;73392:575:0;-1:-1:-1;;;;;73392:575:0;;:::i;37747:60::-;;;;;;;;;;;;;;;;-1:-1:-1;37747:60:0;-1:-1:-1;;;;;37747:60:0;;:::i;35864:41::-;;;:::i;38612:67::-;;;;;;;;;;;;;;;;-1:-1:-1;38612:67:0;-1:-1:-1;;;;;38612:67:0;;:::i;77101:289::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;77101:289:0;;;;;;;;;;;;;;;;;;;;;;;;;:::i;49781:170::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;49781:170:0;;;;;;;;;;;;;;;;;:::i;44460:89::-;;;;;;;;;;;;;;;;-1:-1:-1;44460:89:0;-1:-1:-1;;;;;44460:89:0;;:::i;44322:130::-;;;;;;;;;;;;;;;;-1:-1:-1;44322:130:0;;:::i;44687:182::-;;;;;;;;;;;;;;;;-1:-1:-1;44687:182:0;;:::i;65379:283::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;65379:283:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;49344:357;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;49344:357:0;;;;;;;;:::i;38764:61::-;;;;;;;;;;;;;;;;-1:-1:-1;38764:61:0;-1:-1:-1;;;;;38764:61:0;;:::i;35712:37::-;;;:::i;75716:300::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;75716:300:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;36515:59::-;;;;;;;;;;;;;;;;-1:-1:-1;36515:59:0;-1:-1:-1;;;;;36515:59:0;;:::i;36779:57::-;;;;;;;;;;;;;;;;-1:-1:-1;36779:57:0;-1:-1:-1;;;;;36779:57:0;;:::i;71853:666::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;71853:666:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;35966:41::-;;;:::i;62533:2788::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;62533:2788:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;35578:52::-;;;:::i;65670:184::-;;;;;;;;;;;;;;;;-1:-1:-1;65670:184:0;-1:-1:-1;;;;;65670:184:0;;:::i;36460:46::-;;;;;;;;;;;;;;;;-1:-1:-1;36460:46:0;;:::i;48225:553::-;;;;;;;;;;;;;;;;-1:-1:-1;48225:553:0;-1:-1:-1;;;;;48225:553:0;;:::i;45032:159::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;45032:159:0;;;;;;;;:::i;38468:58::-;;;;;;;;;;;;;;;;-1:-1:-1;38468:58:0;-1:-1:-1;;;;;38468:58:0;;:::i;43670:179::-;;;;;;;;;;;;;;;;-1:-1:-1;43670:179:0;;;;:::i;48786:316::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;48786:316:0;;;;;;;;;;:::i;36400:51::-;;;;;;;;;;;;;;;;-1:-1:-1;36400:51:0;-1:-1:-1;;;;;36400:51:0;;:::i;35091:28::-;;;:::i;35012:30::-;;;:::i;68023:265::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;68023:265:0;;;;;;;;;;;;;:::i;69432:966::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;69432:966:0;;;;;;;;;;:::i;34656:59::-;;;:::i;76024:266::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;76024:266:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;39271:41::-;;;;;;;;;;;;;;;;-1:-1:-1;39271:41:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70995:260;-1:-1:-1;;;;;71097:19:0;;71056:7;71097:19;;;:11;:19;;;;;;71131:15;71127:34;;71157:1;71150:8;;;;;71127:34;-1:-1:-1;;;;;71180:23:0;;;;;;:15;:23;;;;;;:67;;71236:10;;71180:51;;34327:7;71180:27;:51::i;:::-;:55;;:67::i;:::-;71173:74;;;70995:260;;;;:::o;34567:71::-;-1:-1:-1;;;34567:71:0;:::o;43234:132::-;43331:20;:27;43234:132;:::o;67267:312::-;67358:7;67382:17;67378:36;;-1:-1:-1;67410:1:0;67403:8;;67378:36;67424:13;67440:19;67452:6;67440:11;:19::i;:::-;-1:-1:-1;;;;;67489:21:0;;67470:16;67489:21;;;:13;:21;;;;;;67424:35;;-1:-1:-1;67528:43:0;67556:2;:14;;;67528:23;:12;67424:35;67528:16;:23::i;:43::-;67521:50;;;;67267:312;;;;;:::o;35386:49::-;;;;:::o;34219:52::-;34266:5;34219:52;:::o;35126:27::-;;;-1:-1:-1;;;;;35126:27:0;;:::o;35912:47::-;;;;:::o;35280:41::-;;;;:::o;36149:52::-;;;;;;;;;:::o;37186:56::-;;;;;;;;;;;;;:::o;38989:::-;;;;;;;;;;;;;:::o;43374:135::-;43450:10;:8;:10::i;:::-;43471:13;:30;;;;;;;-1:-1:-1;;43471:30:0;;;;;;;;;43374:135::o;49110:107::-;49182:10;49166:27;;;;:15;:27;;;;;;;;-1:-1:-1;;;;;49166:36:0;;;;;;;;;;:43;;-1:-1:-1;;49166:43:0;49205:4;49166:43;;;49110:107::o;43017:209::-;43130:15;;-1:-1:-1;;;;;43130:15:0;43116:10;:29;43108:72;;;;;-1:-1:-1;;;43108:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;43191:18;;;;:6;:18;;;;;:27;;43212:6;;43191:27;:::i;:::-;;43017:209;;;:::o;66712:162::-;66785:7;66812:54;66826:6;66834:31;66858:6;66834:23;:31::i;:::-;66812:13;:54::i;66055:307::-;66151:7;66171:13;66187:19;66199:6;66187:11;:19::i;:::-;66171:35;-1:-1:-1;66217:24:0;66244:43;66171:35;66244:32;:11;-1:-1:-1;;;66244:15:0;:32::i;:43::-;66341:4;;66217:70;;-1:-1:-1;66305:49:0;;66217:70;;-1:-1:-1;;;;;66341:4:0;66347:6;66305:17;:49::i;69125:299::-;69286:129;;;-1:-1:-1;;;;;;69286:129:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69276:140;;;;;;69125:299::o;44020:135::-;44096:10;:8;:10::i;:::-;44117:13;:30;;;;;;;-1:-1:-1;;44117:30:0;;;;;;;;;44020:135::o;35646:49::-;;;;:::o;34833:41::-;;;;;;;;;:::o;34792:34::-;;;;;;:::o;77398:293::-;77473:7;77493:14;77517:4;;;;;;;;;-1:-1:-1;;;;;77517:4:0;-1:-1:-1;;;;;77510:24:0;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77510:26:0;;-1:-1:-1;77551:11:0;77547:30;;77573:1;77566:8;;;;;77547:30;-1:-1:-1;;;;;77604:20:0;;77587:14;77604:20;;;:12;:20;;;;;;77665:17;;77642:41;;:18;77604:20;77653:6;77642:10;:18::i;:41::-;77635:48;77398:293;-1:-1:-1;;;;77398:293:0:o;47105:1112::-;47372:10;:8;:10::i;:::-;-1:-1:-1;;;;;47451:25:0;;;;;;:17;:25;;;;;;;;47446:159;;47517:21;;:28;;47543:1;47517:25;:28::i;:::-;47493:21;:52;47560:20;:33;;;;;;;-1:-1:-1;47560:33:0;;;;;;;;-1:-1:-1;;;;;;47560:33:0;-1:-1:-1;;;;;47560:33:0;;;;;47446:159;47646:17;;-1:-1:-1;;;;;47718:20:0;;47617:26;47718:20;;;:12;:20;;;;;;47695:44;;47646:17;;47695:22;:44::i;:::-;-1:-1:-1;;;;;47752:25:0;;;;;;:17;:25;;;;;;;;:32;;47780:4;-1:-1:-1;;47752:32:0;;;;;;;47795:13;:21;;;;;:38;;;47844:12;:20;;;;;:35;;;47890:20;:28;;;;;:44;;;47945:14;:22;;;;;:39;;;47995:12;:20;;;;;:32;;;;;;;;;;48038:23;;;;;;:38;;;;;;;;;;;47674:65;-1:-1:-1;48109:36:0;47674:65;47844:35;48109:22;:36::i;:::-;48089:17;:56;48190:19;48202:6;48190:11;:19::i;:::-;;47105:1112;;;;;;;;:::o;36210:35::-;;;;:::o;34881:45::-;;;;;;;;;:::o;45199:1357::-;45591:10;:8;:10::i;:::-;45612:53;34551:3;45622:15;:39;;45663:1;45612:9;:53::i;:::-;45676:59;34551:3;45686:21;:45;;45733:1;45676:9;:59::i;:::-;45746:61;34551:3;45756:23;:47;;45805:1;45746:9;:61::i;:::-;45818:57;34551:3;45828:19;:43;;45873:1;45818:9;:57::i;:::-;45886:63;34551:3;45896:25;:49;;45947:1;45886:9;:63::i;:::-;45960:59;34551:3;45970:21;:45;;46017:1;45960:9;:59::i;:::-;46030;-1:-1:-1;;;46040:45:0;;;46087:1;46030:9;:59::i;:::-;46100:14;:32;;;;46143:20;:44;;;;46198:22;:48;;;;46257:18;:40;;;;46308:24;:52;46371:20;:44;46426:17;:38;46475:13;:30;46516:14;:32;;-1:-1:-1;;46516:32:0;;;;;;;;;;45199:1357::o;66882:377::-;67040:4;;66985:7;;;;-1:-1:-1;;;;;67027:17:0;;;67040:4;;67027:17;:60;;-1:-1:-1;;;;;67063:24:0;;;;;;:13;:24;;;;;;67027:60;;;34495:2;67027:60;67133:4;;67005:82;;-1:-1:-1;67098:19:0;;-1:-1:-1;;;;;67120:17:0;;;67133:4;;67120:17;:60;;-1:-1:-1;;;;;67156:24:0;;;;;;:13;:24;;;;;;67120:60;;;34495:2;67120:60;67098:82;;67198:53;67239:11;67233:2;:17;67198:30;67216:11;67210:2;:17;67198:7;:11;;:30;;;;:::i;:53::-;67191:60;;;;66882:377;;;;;;:::o;36718:54::-;;;;;;;;;;;;;;;:::o;43857:155::-;43946:10;:8;:10::i;:::-;-1:-1:-1;;;;;43967:25:0;;;;;;;;:12;:25;;;;;:37;;-1:-1:-1;;43967:37:0;;;;;;;;;;43857:155::o;73975:404::-;74101:4;74107:7;74127:11;74141:64;74156:8;74166:16;74184:11;74197:7;74141:14;:64::i;:::-;74127:78;;74216:24;;:::i;:::-;-1:-1:-1;74243:14:0;;;;:9;:14;;;;;;;;;74216:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74275:96;;74284:11;;74216:41;;;74335:7;;74275:8;:96::i;:::-;74268:103;;;;;;73975:404;;;;;;;:::o;54857:3807::-;9983:1;10589:7;;:19;;10581:63;;;;;-1:-1:-1;;;10581:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10581:63:0;;;;;;;;;;;;;;;9983:1;10722:7;:18;55034:17:::1;::::0;55024:32:::1;::::0;55034:17;;::::1;;;55053:2;55024:9;:32::i;:::-;55067:19;:17;:19::i;:::-;55097:25;55113:8;55097:15;:25::i;:::-;55133:55;55149:16;55167:11;55180:7;55133:15;:55::i;:::-;55199:10;::::0;:97:::1;::::0;;-1:-1:-1;;;55199:97:0;;-1:-1:-1;;;;;55199:97:0;;::::1;;::::0;::::1;::::0;;;::::1;::::0;;;;;;::::1;::::0;;;;;;;;;;;::::1;;::::0;;;;;;:10;;;::::1;::::0;;::::1;::::0;:35:::1;::::0;:97;;;;;-1:-1:-1;;55199:97:0;;;;;;;;:10;:97;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;55309:58;55337:16;55355:11;55309:27;:58::i;:::-;55380:11;55394:64;55409:8;55419:16;55437:11;55450:7;55394:14;:64::i;:::-;55469:25;55497:14:::0;;;:9:::1;:14;::::0;;;;55380:78;;-1:-1:-1;55540:7:0;:61:::1;;55577:24;55589:11;55577;:24::i;:::-;55540:61;;;55550:24;55562:11;55550;:24::i;:::-;55618:13:::0;;55524:77;;-1:-1:-1;55614:80:0::1;;55653:21;::::0;::::1;:29:::0;;;55614:80:::1;55710:13:::0;;:17;;;;:35:::1;;;55744:1;55731:10;:14;55710:35;55706:218;;;55786:126;55806:11;55819:8;:13;;;55834:8;:21;;;55857:7;55866:5;55873:10;55885:8;:26;;;55786:19;:126::i;:::-;55762:21;::::0;::::1;:150:::0;55706:218:::1;55936:11;55950:122;55969:8;55979:16;55997:11;56010:7;56019:10;56031:8;:13;;;56046:8;:25;;;55950:18;:122::i;:::-;55936:136;;56083:23;56109:29;56121:16;56109:11;:29::i;:::-;56083:55;;56149:26;56178:48;56192:16;56210:15;56178:13;:48::i;:::-;56261:19;::::0;::::1;::::0;56149:77;;-1:-1:-1;56261:43:0::1;::::0;56149:77;56261:23:::1;:43::i;:::-;56239:19;::::0;::::1;:65:::0;;;56315:41:::1;::::0;56325:26;-1:-1:-1;56325:26:0::1;56353:2;56315:9;:41::i;:::-;56391:19;::::0;::::1;::::0;:28:::1;::::0;56415:3;56391:23:::1;:28::i;:::-;56369:19;::::0;::::1;:50:::0;56458:59:::1;56478:16:::0;56496:11;56509:7;56458:19:::1;:59::i;:::-;56430:25;::::0;::::1;:87:::0;56544:13;;:29:::1;::::0;56562:10;56544:17:::1;:29::i;:::-;56528:45:::0;;;56613:15:::1;56584:26;::::0;::::1;:44:::0;56641:32:::1;::::0;56651:17;;56670:2:::1;56641:9;:32::i;:::-;56684:53;56702:8;:13;;;56717:8;:19;;;56684:17;:53::i;:::-;56748:75;56768:8;56778:16;56796:11;56809:7;56818:4;56748:19;:75::i;:::-;;;56894:20;56917:43;56931:16;56949:10;56917:13;:43::i;:::-;56996:22;::::0;::::1;::::0;56894:66;;-1:-1:-1;56996:40:0::1;::::0;56894:66;56996:26:::1;:40::i;:::-;56971:22;::::0;::::1;:65:::0;57047:55:::1;57071:16:::0;57089:12;57047:23:::1;:55::i;:::-;57119:7;57115:1235;;;57449:61;57472:16:::0;57490:19:::1;:10:::0;57505:3;57490:14:::1;:19::i;:::-;57449:22;:61::i;:::-;57525:60;57548:16;57566:18;57525:22;:60::i;:::-;57667:54;57687:16;57705:15;57667:19;:54::i;:::-;57902:75;57922:16;57940:36;57954:16;57972:3;57940:13;:36::i;:::-;57902:19;:75::i;:::-;57115:1235;;;-1:-1:-1::0;;;;;58014:29:0;::::1;;::::0;;;:16:::1;:29;::::0;;;;;58010:263:::1;;-1:-1:-1::0;;;;;58069:37:0;::::1;;::::0;;;:24:::1;:37;::::0;;;;:45;;;58010:263:::1;;;58195:62;58226:11;58239:5;58246:10;58195:30;:62::i;:::-;-1:-1:-1::0;;;;;58155:37:0;::::1;;::::0;;;:24:::1;:37;::::0;;;;:102;58010:263:::1;58289:49;58314:11;58327:10;58289:24;:49::i;:::-;58367:115;::::0;;;;;-1:-1:-1;;;;;58367:115:0;;::::1;;::::0;::::1;::::0;;;::::1;::::0;;;;;::::1;::::0;;;;;;;;;;;;;;;;;::::1;;::::0;;;;;;;;;;;;;;;;;;::::1;::::0;;;;;;;::::1;58518:13:::0;;58533:19:::1;::::0;::::1;::::0;58554:21:::1;::::0;::::1;::::0;58577:25:::1;::::0;::::1;::::0;58604:22:::1;::::0;::::1;::::0;58628:20:::1;::::0;::::1;::::0;58498:158:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;58498:158:0;;;;;;;::::1;-1:-1:-1::0;;9939:1:0;10901:7;:22;-1:-1:-1;;;;;;;;;;54857:3807:0:o;34973:30::-;;;-1:-1:-1;;;;;34973:30:0;;:::o;68296:821::-;68426:7;68435;68444;68453;68462;68471;68480:4;68486:7;68506:11;68520:64;68535:8;68545:16;68563:11;68576:7;68520:14;:64::i;:::-;68506:78;;68595:24;;:::i;:::-;68622:9;:14;68632:3;68622:14;;;;;;;;;;;68595:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68647:19;68692:1;68669:8;:20;;;:24;:89;;68737:8;:20;;;68736:21;;68669:89;;;68704:8;:20;;;68669:89;68647:111;;68791:8;:13;;;68824:8;:19;;;68863:8;:21;;;68904:8;:25;;;68949:8;:22;;;68991:11;69046:1;69022:8;:20;;;:25;;69067:8;:26;;;68769:340;;;;;;;;;;;;;;;;;;;68296:821;;;;;;;;;;;;;:::o;37995:58::-;;;;;;;;;;;;;:::o;34504:50::-;34551:3;34504:50;:::o;35450:51::-;;;;:::o;38878:46::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;71263:418::-;71392:7;71412:11;71426:64;71441:8;71451:16;71469:11;71482:7;71426:14;:64::i;:::-;71412:78;;71501:24;;:::i;:::-;-1:-1:-1;71528:14:0;;;;:9;:14;;;;;;;;;71501:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71553:38;;71563:23;;71588:2;71553:9;:38::i;:::-;71653:19;;;;71609:13;;:64;;71653:19;71609:39;;34266:5;71609:17;:39::i;:64::-;71602:71;71263:418;-1:-1:-1;;;;;;;71263:418:0:o;36912:58::-;;;;;;;;;;;;;:::o;36339:54::-;;;;;;;;;;;;;;;:::o;37593:56::-;;;;;;;;;;;;;:::o;74387:1097::-;74536:4;74542:7;74562:32;74588:1;74572:13;:17;74591:2;74562:9;:32::i;:::-;74605:13;74621:7;:61;;74658:24;74670:11;74658;:24::i;:::-;74621:61;;;74631:24;74643:11;74631;:24::i;:::-;74605:77;;74693:18;74730:5;74714:13;:21;:75;;74765:24;:5;74775:13;74765:9;:24::i;:::-;74714:75;;;74738:24;:13;74756:5;74738:17;:24::i;:::-;74693:96;-1:-1:-1;74800:13:0;74816:40;74842:13;74816:21;:5;74693:96;74816:9;:21::i;:40::-;74800:56;;74869:14;74900:7;74896:139;;;-1:-1:-1;74936:21:0;;;74896:139;;;-1:-1:-1;75002:21:0;;;74896:139;75209:14;75244:37;75267:13;;75244:18;:22;;:37;;;;:::i;:::-;75226:15;:55;:95;;-1:-1:-1;;;;;75288:33:0;;;;;;:20;:33;;;;;;75226:95;;;75284:1;75226:95;75209:112;;75336:9;:65;;;;-1:-1:-1;75384:17:0;:5;75394:6;75384:9;:17::i;:::-;75349:31;:5;34266;75349:9;:31::i;:::-;:52;;75336:65;75332:107;;;75426:1;75418:9;;75332:107;-1:-1:-1;75459:9:0;75470:5;;-1:-1:-1;74387:1097:0;-1:-1:-1;;;;;;;;74387:1097:0:o;50081:331::-;9983:1;10589:7;;:19;;10581:63;;;;;-1:-1:-1;;;10581:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10581:63:0;;;;;;;;;;;;;;;9983:1;10722:7;:18;;;-1:-1:-1;;;;;50176:25:0;::::1;::::0;;:17:::1;:25;::::0;;;;;50166:40:::1;::::0;50176:25:::1;;50203:2;50166:9;:40::i;:::-;50217:19;50239;50251:6;50239:11;:19::i;:::-;50217:41;;50269:30;50293:1;50279:11;:15;50296:2;50269:9;:30::i;:::-;50310:40;50330:6;50338:11;50310:19;:40::i;:::-;50366:38;::::0;;-1:-1:-1;;;;;50366:38:0;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;-1:-1:-1::0;;9939:1:0;10901:7;:22;50081:331::o;36254:78::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;35162:45::-;;;;:::o;39122:69::-;;;;;;;;;;;;;:::o;34935:29::-;;;;;;-1:-1:-1;;;;;34935:29:0;;:::o;49225:111::-;49300:10;49323:5;49284:27;;;:15;:27;;;;;;;;-1:-1:-1;;;;;49284:36:0;;;;;;;;;;:44;;-1:-1:-1;;49284:44:0;;;49225:111::o;34278:56::-;34327:7;34278:56;:::o;42734:130::-;42811:10;:8;:10::i;:::-;42832;:24;;-1:-1:-1;;;;;42832:24:0;;;;;-1:-1:-1;;;;;;42832:24:0;;;;;;;;;42734:130::o;51668:1425::-;51761:7;9983:1;10589:7;;:19;;10581:63;;;;;-1:-1:-1;;;10581:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10581:63:0;;;;;;;;;;;;;;;9983:1;10722:7;:18;51781::::1;:16;:18::i;:::-;-1:-1:-1::0;;;;;51820:25:0;::::1;;::::0;;;:17:::1;:25;::::0;;;;;51810:40:::1;::::0;51820:25:::1;;51847:2;51810:9;:40::i;:::-;51861:14;:21:::0;;-1:-1:-1;;51861:21:0::1;;;::::0;;51928:4:::1;::::0;51861:21;;51916:17:::1;::::0;-1:-1:-1;;;;;51928:4:0::1;51916:11;:17::i;:::-;51895:38;;51944:29;51967:1;51954:10;:14;51970:2;51944:9;:29::i;:::-;51986:43;52014:6;52022;51986:27;:43::i;:::-;52042:24;52069:39;52089:6;52097:10;52069:19;:39::i;:::-;52042:66;;52119:35;52148:1;52129:16;:20;52151:2;52119:9;:35::i;:::-;52167:39;52187:6;52195:10;52167:19;:39::i;:::-;52217:45;52237:6;52245:16;52217:19;:45::i;:::-;52281:4;::::0;52275:43:::1;::::0;;-1:-1:-1;;;52275:43:0;;52300:4:::1;52275:43;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;;;;;52281:4:0;;::::1;::::0;52275:16:::1;::::0;:43;;;;;52281:4:::1;::::0;52275:43;;;;;;;;52281:4;;52275:43;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;52657:4:0::1;::::0;52637:25:::1;::::0;-1:-1:-1;;;;;;52657:4:0::1;::::0;-1:-1:-1;52637:19:0::1;:25::i;:::-;52700:10;::::0;:56:::1;::::0;;-1:-1:-1;;;52700:56:0;;-1:-1:-1;;;;;52700:56:0;;::::1;;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;;52700:10:0;;::::1;::::0;;::::1;::::0;:36:::1;::::0;:56;;;;;::::1;::::0;;;;;;;;;:10;:56;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;52700:56:0;;-1:-1:-1;52767:17:0::1;52787:58;52804:6:::0;52812:16;52700:56;52787:16:::1;:58::i;:::-;52767:78;;52856:28;52878:1;52866:9;:13;52881:2;52856:9;:28::i;:::-;52897:42;52910:6;52918:9;52929;52897:12;:42::i;:::-;52957:66;::::0;;-1:-1:-1;;;;;52957:66:0;;::::1;::::0;;;::::1;;::::0;::::1;::::0;;;;;;;;;;;;;;;;;;;;;::::1;::::0;;;;;;;::::1;53036:14;:22:::0;;-1:-1:-1;;53036:22:0::1;::::0;;-1:-1:-1;;10901:22:0;53076:9;51668:1425;-1:-1:-1;;;;;;51668:1425:0:o;44557:122::-;44628:10;:8;:10::i;:::-;44649:9;:22;;-1:-1:-1;;;;;;44649:22:0;-1:-1:-1;;;;;44649:22:0;;;;;;;;;;44557:122::o;42151:575::-;42394:10;:8;:10::i;:::-;42426:13;;;42415:28;;42426:13;;;;42425:14;;42415:9;:28::i;:::-;42470:4;42454:20;;-1:-1:-1;;42454:20:0;;;;;42487:6;:16;;-1:-1:-1;;;;;;42487:16:0;;;-1:-1:-1;;;;;42487:16:0;;;;;;;42514:4;:12;;;;;;;;;;;;;;42537:9;:22;;;;;;;;;;;;;;;;42570:17;:38;;;;42619:17;:38;42668:23;:50;42151:575::o;35049:33::-;;;-1:-1:-1;;;;;35049:33:0;;:::o;35328:43::-;;;;:::o;44163:151::-;44247:10;:8;:10::i;:::-;44268:17;:38;;;;;;;-1:-1:-1;;44268:38:0;;;;;;;;;44163:151::o;50420:1240::-;50512:7;9983:1;10589:7;;:19;;10581:63;;;;;-1:-1:-1;;;10581:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10581:63:0;;;;;;;;;;;;;;;9983:1;10722:7;:18;50532::::1;:16;:18::i;:::-;-1:-1:-1::0;;;;;50571:25:0;::::1;;::::0;;;:17:::1;:25;::::0;;;;;50561:40:::1;::::0;50571:25:::1;;50598:2;50561:9;:40::i;:::-;50612:14;:21:::0;;-1:-1:-1;;50612:21:0::1;;;::::0;;;50668:19:::1;50680:6:::0;50668:11:::1;:19::i;:::-;50646:41;;50698:30;50722:1;50708:11;:15;50725:2;50698:9;:30::i;:::-;50741:43;50769:6;50777;50741:27;:43::i;:::-;50797:13;50813:19;50825:6;50813:11;:19::i;:::-;50797:35:::0;-1:-1:-1;50845:18:0::1;50866:43;-1:-1:-1::0;;;50866:22:0::1;:11:::0;50797:35;50866:15:::1;:22::i;:43::-;50971:4;::::0;50845:64;;-1:-1:-1;50933:43:0::1;::::0;50845:64;;50963:6;;-1:-1:-1;;;;;50971:4:0::1;50933:17;:43::i;:::-;50920:56;;50987:29;51010:1;50997:10;:14;51013:2;50987:9;:29::i;:::-;51054:10;::::0;:55:::1;::::0;;-1:-1:-1;;;51054:55:0;;-1:-1:-1;;;;;51054:55:0;;::::1;;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;;51054:10:0;;::::1;::::0;;::::1;::::0;:35:::1;::::0;:55;;;;;::::1;::::0;;;;;;;;;:10;:55;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;51054:55:0;;-1:-1:-1;51120:23:0::1;51146:53;51163:6:::0;51171:11;51054:55;51146:16:::1;:53::i;:::-;51120:79:::0;-1:-1:-1;51210:18:0::1;51231:47;-1:-1:-1::0;;;51231:26:0::1;51120:79:::0;51251:5;51231:19:::1;:26::i;:47::-;51340:4;::::0;51210:68;;-1:-1:-1;51302:43:0::1;::::0;51210:68;;51332:6;;-1:-1:-1;;;;;51340:4:0::1;51302:17;:43::i;:::-;51289:56;;51358:39;51378:6;51386:10;51358:19;:39::i;:::-;51408:44;51428:6;51436:15;51408:19;:44::i;:::-;51471:4;::::0;51465:39:::1;::::0;;-1:-1:-1;;;51465:39:0;;-1:-1:-1;;;;;51465:39:0;;::::1;;::::0;::::1;::::0;;;;;;;;;51471:4;;;::::1;::::0;51465:16:::1;::::0;:39;;;;;51471:4:::1;::::0;51465:39;;;;;;;51471:4;;51465:39;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;51522:67:0::1;::::0;;-1:-1:-1;;;;;51522:67:0;;::::1;::::0;;;::::1;;::::0;::::1;::::0;;;;;;;;;;;;;;;;;;;;;::::1;::::0;-1:-1:-1;51522:67:0;;;;;;;-1:-1:-1;51522:67:0::1;51602:14;:22:::0;;-1:-1:-1;;51602:22:0::1;::::0;;-1:-1:-1;;10901:22:0;51642:10;50420:1240;-1:-1:-1;;;;;;;;50420:1240:0:o;65862:185::-;65972:9;;;66007:15;;65956:83;;;-1:-1:-1;;;65956:83:0;;-1:-1:-1;;;;;65956:83:0;;;;;;;;;;65929:7;65956:83;;;;;;66007:15;;;;65956:83;;;;;;65972:9;66024:14;;;;;;65956:83;;;;;;;;65929:7;;65972:9;;;;65956:35;;:83;;;;;;;;;;;;;;65972:9;65956:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;65956:83:0;;65862:185;-1:-1:-1;;65862:185:0:o;58672:419::-;58882:7;9983:1;10589:7;;:19;;10581:63;;;;;-1:-1:-1;;;10581:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10581:63:0;;;;;;;;;;;;;;;9983:1;10722:7;:18;58902:19:::1;:17;:19::i;:::-;58932:25;58948:8;58932:15;:25::i;:::-;58975:108;58993:8;59003:16;59021:11;59034:16;59052:10;59064:7;59073:9;58975:17;:108::i;:::-;9939:1:::0;10901:7;:22;58968:115;58672:419;-1:-1:-1;;;;;;;;58672:419:0:o;44877:147::-;44964:10;:8;:10::i;:::-;-1:-1:-1;;;;;44985:21:0;;;;;;;:13;:21;;;;;:31;44877:147::o;34455:42::-;34495:2;34455:42;:::o;36646:65::-;;;;;;;;;;;;;:::o;46564:533::-;46705:10;:8;:10::i;:::-;46726:60;34708:7;46736:16;:45;;46783:2;46726:9;:60::i;:::-;46797;34772:5;46807:18;:45;;46854:2;46797:9;:60::i;:::-;46868:66;34772:5;46878:24;:51;;46931:2;46868:9;:66::i;:::-;46945:15;:34;;;;46990:17;:38;47039:23;:50;46564:533::o;39054:61::-;;;;;;;;;;;;;:::o;36581:58::-;;;;;;;;;;;;;:::o;42872:137::-;42946:10;:8;:10::i;:::-;42967:15;:34;;-1:-1:-1;;;;;;42967:34:0;-1:-1:-1;;;;;42967:34:0;;;;;;;;;;42872:137::o;36101:41::-;;;;;;;;;:::o;53101:1748::-;53211:7;9983:1;10589:7;;:19;;10581:63;;;;;-1:-1:-1;;;10581:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10581:63:0;;;;;;;;;;;;;;;9983:1;10722:7;:18;53241:13:::1;::::0;53231:28:::1;::::0;53241:13:::1;::::0;::::1;;;53256:2;53231:9;:28::i;:::-;-1:-1:-1::0;;;;;53280:27:0;::::1;;::::0;;;:17:::1;:27;::::0;;;;;53270:42:::1;::::0;53280:27:::1;;53309:2;53270:9;:42::i;:::-;-1:-1:-1::0;;;;;53333:28:0;::::1;;::::0;;;:17:::1;:28;::::0;;;;;53323:43:::1;::::0;53333:28:::1;;53363:2;53323:9;:43::i;:::-;53377:36;53399:9;-1:-1:-1::0;;;;;53387:21:0::1;:8;-1:-1:-1::0;;;;;53387:21:0::1;;;53410:2;53377:9;:36::i;:::-;53426:14;:21:::0;;-1:-1:-1;;53426:21:0::1;;;::::0;;53460:47:::1;53488:8:::0;;53460:27:::1;:47::i;:::-;53518:49;53546:9;53557;53518:27;:49::i;:::-;53580:16;53599:21;53611:8;53599:11;:21::i;:::-;53580:40;;53631:27;53652:1;53641:8;:12;53655:2;53631:9;:27::i;:::-;53671:15;53689:21;53701:8;53689:11;:21::i;:::-;53671:39;;53721:16;53740:22;53752:9;53740:11;:22::i;:::-;53721:41:::0;-1:-1:-1;53775:17:0::1;53795:35;53721:41:::0;53795:21:::1;:8:::0;53808:7;53795:12:::1;:21::i;:35::-;53775:55;;53853:49;53871:9;53882:8;53892:9;53853:17;:49::i;:::-;53841:61:::0;-1:-1:-1;54007:18:0::1;54028:42;-1:-1:-1::0;;;54028:21:0::1;:8:::0;54041:7;54028:12:::1;:21::i;:42::-;54134:4;::::0;54007:63;;-1:-1:-1;54094:45:0::1;::::0;54007:63;;54124:8;;-1:-1:-1;;;;;54134:4:0::1;54094:17;:45::i;:::-;54177:10;::::0;:65:::1;::::0;;-1:-1:-1;;;54177:65:0;;-1:-1:-1;;;;;54177:65:0;;::::1;;::::0;::::1;::::0;;;::::1;::::0;;;;;;;;;;;;;;-1:-1:-1;;;54177:10:0;;;::::1;::::0;;::::1;::::0;:32:::1;::::0;:65;;;;;::::1;::::0;;;;;;;;;:10;:65;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;54177:65:0;;-1:-1:-1;54253:26:0::1;54282:54;54299:9:::0;54310;54177:65;54282:16:::1;:54::i;:::-;54253:83;;54349:41;54369:8;54379:10;54349:19;:41::i;:::-;54401:42;54421:9;54432:10;54401:19;:42::i;:::-;54456:39;54476:8;54486;54456:19;:39::i;:::-;54506:41;54526:9;54537;54506:19;:41::i;:::-;54560:32;54582:9;54560:21;:32::i;:::-;54605:54;54618:9;54629:18;54649:9;54605:12;:54::i;:::-;54677:93;::::0;;-1:-1:-1;;;;;54677:93:0;;::::1;::::0;;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::1;::::0;;;;;;;::::1;54783:14;:22:::0;;-1:-1:-1;;54783:22:0::1;::::0;;-1:-1:-1;;10901:22:0;54823:18;53101:1748;-1:-1:-1;;;;;;;;;;53101:1748:0:o;34341:50::-;-1:-1:-1;;;34341:50:0;:::o;39198:64::-;;;;;;;;;;;;;:::o;35808:49::-;;;;:::o;67805:210::-;67885:7;67909:15;67905:34;;-1:-1:-1;67935:1:0;67928:8;;67905:34;67956:51;67967:6;67975:10;67987:19;67999:6;67987:11;:19::i;:::-;67956:10;:51::i;72691:693::-;-1:-1:-1;;;;;72848:29:0;;72813:7;72848:29;;;:16;:29;;;;;;;;;72911:24;:37;;;;;;72813:7;72980:25;;;:87;;73039:28;:10;73054:12;73039:14;:28::i;:::-;72980:87;;;73008:28;:12;73025:10;73008:16;:28::i;:::-;72959:108;-1:-1:-1;73078:13:0;73094:38;73119:12;73094:20;:4;72959:108;73094:8;:20::i;:38::-;73078:54;-1:-1:-1;73160:25:0;;;73143:14;73217:20;:4;73226:10;73217:8;:20::i;:::-;73198:39;;73248:15;73266:9;:53;;73300:19;:8;73313:5;73300:12;:19::i;:::-;73266:53;;;73278:19;:8;73291:5;73278:12;:19::i;:::-;73248:71;-1:-1:-1;73339:37:0;73248:71;73339:24;:10;73354:8;73339:14;:24::i;:37::-;73332:44;72691:693;-1:-1:-1;;;;;;;;;;;72691:693:0:o;35756:43::-;;;;;;:::o;35516:47::-;;;;:::o;67587:210::-;67667:7;67691:15;67687:34;;-1:-1:-1;67717:1:0;67710:8;;67687:34;67738:51;67749:6;67757:10;67769:19;67781:6;67769:11;:19::i;43517:145::-;43601:10;:8;:10::i;:::-;-1:-1:-1;;;;;43622:19:0;;;;;;;;:9;:19;;;;;:32;;-1:-1:-1;;43622:32:0;;;;;;;;;;43517:145::o;70406:581::-;70533:15;;-1:-1:-1;;;;;70504:24:0;;70480:7;70504:24;;;:16;:24;;;;;;70480:7;;70552:15;;70504:45;;:28;:45::i;:::-;:63;70500:82;;;-1:-1:-1;70578:1:0;70571:8;;70500:82;70664:15;;-1:-1:-1;;;;;70634:24:0;;70594:17;70634:24;;;:16;:24;;;;;;70594:17;;70614:66;;:45;;:15;;:19;:45::i;:66::-;-1:-1:-1;;;;;70712:19:0;;70691:18;70712:19;;;:11;:19;;;;;;70594:86;;-1:-1:-1;70746:15:0;70742:34;;70772:1;70765:8;;;;;;70742:34;-1:-1:-1;;;;;70817:20:0;;70788:26;70817:20;;;:12;:20;;;;;;;;:66;;70866:17;;70817:66;;;70840:23;;70817:66;-1:-1:-1;;;;;70924:23:0;;;;;;:15;:23;;;;;;70788:95;;-1:-1:-1;70901:78:0;;70968:10;;70901:62;;70953:9;;70901:47;;70788:95;;70901:22;:47::i;:::-;:51;;:62::i;:78::-;70894:85;70406:581;-1:-1:-1;;;;;70406:581:0:o;36016:35::-;;;;;;:::o;37042:57::-;;;;;;;;;;;;;:::o;37327:59::-;;;;;;;;;;;;;:::o;35216:48::-;;;;:::o;36058:34::-;;;;;;;;;:::o;66370:334::-;-1:-1:-1;;;;;66464:20:0;;66440:7;66464:20;;;:12;:20;;;;;;;;66460:79;;;-1:-1:-1;;;;;;66508:19:0;;;;;;:11;:19;;;;;;66501:26;;66460:79;-1:-1:-1;;;;;66592:21:0;;66549:18;66592:21;;;:13;:21;;;;;;66570:44;;66584:6;;66570:13;:44::i;:::-;-1:-1:-1;;;;;66672:23:0;;;;;;:15;:23;;;;;;;;;66647:11;:19;;;;;;;66549:65;;-1:-1:-1;66632:64:0;;:35;;66549:65;;66632:14;:35::i;:::-;:39;;:64::i;75492:216::-;75630:10;;:70;;;-1:-1:-1;;;75630:70:0;;-1:-1:-1;;;;;75630:70:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;75630:10:0;;;;;;;:30;;:70;;;;;;;;;;;;;;;:10;:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;75630:70:0;;75492:216;-1:-1:-1;;;;75492:216:0:o;73392:575::-;-1:-1:-1;;;;;73499:24:0;;73458:4;73499:24;;;:16;:24;;;;;;73458:4;;73538:9;73534:37;;73559:5;73566:1;73551:17;;;;;;;73534:37;73583:17;73603:19;73615:6;73603:11;:19::i;:::-;-1:-1:-1;;;;;73656:32:0;;73633:20;73656:32;;;:24;:32;;;;;;73583:39;;-1:-1:-1;73720:24:0;;;:84;;73777:27;:9;73791:12;73777:13;:27::i;:::-;73720:84;;;73747:27;:12;73764:9;73747:16;:27::i;:::-;73699:105;-1:-1:-1;73815:13:0;73831:38;73856:12;73831:20;:4;73699:105;73831:8;:20::i;:38::-;73897:24;;;;;-1:-1:-1;73815:54:0;;-1:-1:-1;;;;73392:575:0;;;;:::o;37747:60::-;;;;;;;;;;;;;:::o;35864:41::-;;;;:::o;38612:67::-;;;;;;;;;;;;;:::o;77101:289::-;77288:10;;:94;;;-1:-1:-1;;;77288:94:0;;-1:-1:-1;;;;;77288:94:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;77288:10:0;;;;;;;:28;;:94;;;;;;;;;;;;;;;:10;:94;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77288:94:0;;77101:289;-1:-1:-1;;;;;;77101:289:0:o;49781:170::-;49875:10;:8;:10::i;:::-;49896:47;-1:-1:-1;;;;;49896:27:0;;49924:9;49935:7;49896:27;:47::i;:::-;49781:170;;;:::o;44460:89::-;44510:10;:8;:10::i;:::-;44531:3;:10;;-1:-1:-1;;;;;;44531:10:0;-1:-1:-1;;;;;44531:10:0;;;;;;;;;;44460:89::o;44322:130::-;44397:10;:8;:10::i;:::-;44418:11;:26;44322:130::o;44687:182::-;44762:10;:8;:10::i;:::-;44783:41;34437:5;44793:12;:27;44822:1;44783:9;:41::i;:::-;44835:11;:26;44687:182::o;65379:283::-;65566:10;;:88;;;-1:-1:-1;;;65566:88:0;;-1:-1:-1;;;;;65566:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;65566:10:0;;;;;;;;:30;;:88;;;;;;;;;;;;:10;:88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;65566:88:0;;;;;;;;;;;-1:-1:-1;65379:283:0;-1:-1:-1;;;;;;65379:283:0:o;49344:357::-;49429:10;:8;:10::i;:::-;-1:-1:-1;;;;;49473:19:0;;49452:18;49473:19;;;:11;:19;;;;;;49507:20;;;49503:126;;;49544:52;49564:6;49572:23;:7;49584:10;49572:11;:23::i;:::-;49544:19;:52::i;:::-;49611:7;;;49503:126;49641:52;49661:6;49669:23;:10;49684:7;49669:14;:23::i;:::-;49641:19;:52::i;49344:357::-;;;:::o;38764:61::-;;;;;;;;;;;;;:::o;35712:37::-;;;;:::o;75716:300::-;75908:10;;:100;;;-1:-1:-1;;;75908:100:0;;-1:-1:-1;;;;;75908:100:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;75908:10:0;;;;;;;:24;;:100;;;;;;;;;;;;;;;:10;:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;75908:100:0;;75716:300;-1:-1:-1;;;;;;;75716:300:0:o;36515:59::-;;;;;;;;;;;;;;;:::o;36779:57::-;;;;;;;;;;;;;;;:::o;71853:666::-;72044:7;72065:14;72081:13;72098:72;72107:11;72120:5;72127:13;72142:7;72151:18;72098:8;:72::i;:::-;72064:106;;-1:-1:-1;72064:106:0;-1:-1:-1;72181:16:0;72200:21;:5;72210:10;72200:9;:21::i;:::-;72181:40;;72232:15;72262:7;72258:199;;;72296:9;:53;;72330:19;:8;72343:5;72330:12;:19::i;:::-;72296:53;;;72308:19;:8;72321:5;72308:12;:19::i;:::-;72286:63;;72258:199;;;72392:9;:53;;72426:19;:8;72439:5;72426:12;:19::i;:::-;72392:53;;;72404:19;:8;72417:5;72404:12;:19::i;:::-;72382:63;;72258:199;72474:37;72503:7;72474:24;:10;72489:8;72474:14;:24::i;:37::-;72467:44;71853:666;-1:-1:-1;;;;;;;;;;;;71853:666:0:o;35966:41::-;;;;:::o;62533:2788::-;9983:1;10589:7;;:19;;10581:63;;;;;-1:-1:-1;;;10581:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10581:63:0;;;;;;;;;;;;;;;9983:1;10722:7;:18;62707:24:::1;::::0;;;::::1;;;62703:96;;;62771:10;62758:24;::::0;;;:12:::1;:24;::::0;;;;;62748:39:::1;::::0;62758:24:::1;;62784:2;62748:9;:39::i;:::-;62888:15;:23:::0;;-1:-1:-1;;62888:23:0::1;::::0;;62924:58:::1;62952:16:::0;62970:11;62924:27:::1;:58::i;:::-;62995:11;63009:64;63024:8;63034:16;63052:11;63065:7;63009:14;:64::i;:::-;62995:78;;63084:24;;:::i;:::-;-1:-1:-1::0;63111:14:0::1;::::0;;;:9:::1;:14;::::0;;;;;;;;63084:41;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;::::1;::::0;;;::::1;::::0;;;;::::1;::::0;::::1;::::0;;;;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;;::::0;;;;;63136:32:::1;::::0;63146:17;;63165:2:::1;63136:9;:32::i;:::-;63182:24;63208:18:::0;63230:76:::1;63250:8;63260:16;63278:11;63291:7;63300:5;63230:19;:76::i;:::-;63181:125;;;;63317:36;63327:16;63347:1;63327:21;;63350:2;63317:9;:36::i;:::-;63368:16;63388:1;63368:21;63364:330;;;63529:95;63547:8;63557:16;63575:11;63588:1;63591:8;:13;;;63606:7;63615:8;63529:17;:95::i;:::-;-1:-1:-1::0;;63639:15:0::1;:22:::0;;-1:-1:-1;;63639:22:0::1;63657:4;63639:22;::::0;;-1:-1:-1;63676:7:0::1;::::0;-1:-1:-1;;63676:7:0::1;63364:330;63706:17;63726:43;63740:16;63758:10;63726:13;:43::i;:::-;-1:-1:-1::0;;;;;63812:29:0;::::1;;::::0;;;:11:::1;:29;::::0;;;;;63706:63;;-1:-1:-1;63812:44:0::1;::::0;63706:63;63812:33:::1;:44::i;:::-;-1:-1:-1::0;;;;;63780:29:0;::::1;;::::0;;;:11:::1;:29;::::0;;;;;;;;:76;;;;63872:58;;;;;;;::::1;::::0;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;63872:58:0;;;;;;;::::1;63943:65;63967:16;63985:8;:22;;;63943:23;:65::i;:::-;64023:7;64019:217;;;64106:19;::::0;::::1;::::0;64088:13;;64047:80:::1;::::0;64070:16;;64088:38:::1;::::0;:17:::1;:38::i;:::-;64047:22;:80::i;:::-;64142:82;64162:16;64180:43;64194:16;64212:10;64180:13;:43::i;64142:82::-;64248:17;64268:7;:61;;64305:24;64317:11;64305;:24::i;:::-;64268:61;;;64278:24;64290:11;64278;:24::i;:::-;64248:81;;64345:165;64363:3;64368:8;64378:16;64396:11;64409:7;64418:8;:13;;;64433:8;:19;;;64454:8;:22;;;64478:8;:20;;;64500:9;64345:165;;;;;;;;;-1:-1:-1::0;;;;;64345:165:0::1;;;;;;-1:-1:-1::0;;;;;64345:165:0::1;;;;;;-1:-1:-1::0;;;;;64345:165:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64528:7;64527:8;:44;;;;;64552:8;:19;;;64539:10;:32;64527:44;64523:248;;;64618:19;::::0;::::1;::::0;64588:27:::1;::::0;64618:35:::1;::::0;64642:10;64618:23:::1;:35::i;:::-;64588:65;;64668:91;64688:16;64706:52;64720:16;64738:19;64706:13;:52::i;:::-;64668:19;:91::i;:::-;64523:248;;64788:7;64783:93;;64812:52;64837:11;64850:8;:13;;;64812:24;:52::i;:::-;64895:14;::::0;;;:9:::1;:14;::::0;;;;64888:21;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;;::::0;65152:17:::1;::::0;65082:89:::1;::::0;65102:16;;65120:50:::1;::::0;65102:16;;65120:13:::1;:50::i;65082:89::-;65182:96;65195:16;65213:50;65227:16;65245:17;;65213:13;:50::i;:::-;65265:12;65182;:96::i;:::-;-1:-1:-1::0;;65291:15:0::1;:22:::0;;-1:-1:-1;;65291:22:0::1;65309:4;65291:22;::::0;;-1:-1:-1;;;;10753:1:0::1;-1:-1:-1::0;;9939:1:0;10901:7;:22;-1:-1:-1;;;62533:2788:0:o;35578:52::-;;;;:::o;65670:184::-;65780:9;;;65814:15;;65764:82;;;-1:-1:-1;;;65764:82:0;;-1:-1:-1;;;;;65764:82:0;;;;;;;;;;65780:9;65764:82;;;;65814:15;;;;65764:82;;;;;;65780:9;65831:14;;;;;;65764:82;;;;;;;65737:7;;65780:9;;;;65764:35;;:82;;;;;;;;;;;;;;;65780:9;65764:82;;;;;;;;;;36460:46;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;36460:46:0;;-1:-1:-1;36460:46:0;:::o;48225:553::-;48287:10;:8;:10::i;:::-;-1:-1:-1;;;;;48318:25:0;;;;;;:17;:25;;;;;;48308:40;;48318:25;;48345:2;48308:9;:40::i;:::-;-1:-1:-1;;;;;48401:20:0;;;;;;:12;:20;;;;;;48379:17;;:43;;:21;:43::i;:::-;48359:17;:63;-1:-1:-1;;;;;48440:25:0;;;;;;:17;:25;;;;;;;;48433:32;;-1:-1:-1;;48433:32:0;;;;;;48483:13;:21;;;;;48476:28;;;48522:12;:20;;;;;48515:27;;;48560:20;:28;;;;;48553:35;;;48606:14;:22;;;;;48599:29;;;48646:12;:20;;;;;48639:27;;;;;;48684:23;;;;;;48677:30;;;;;;;48742:21;;:28;;48433:32;48742:25;:28::i;:::-;48718:21;:52;-1:-1:-1;48225:553:0:o;45032:159::-;45125:10;:8;:10::i;:::-;-1:-1:-1;;;;;45146:27:0;;;;;;;:19;:27;;;;;:37;45032:159::o;38468:58::-;;;;;;;;;;;;;:::o;43670:179::-;43768:10;:8;:10::i;:::-;43789:24;:52;;;;;;;-1:-1:-1;;43789:52:0;;;;;;;;;43670:179::o;48786:316::-;48870:7;48890:10;:8;:10::i;:::-;-1:-1:-1;;;;;48928:19:0;;48911:14;48928:19;;;:11;:19;;;;;;48961:11;48958:29;;48983:1;48976:8;;;;;48958:29;-1:-1:-1;;;;;48997:19:0;;49019:1;48997:19;;;:11;:19;;;;;:23;49031:39;49009:6;49052;49060:9;49031:12;:39::i;36400:51::-;;;;;;;;;;;;;;;:::o;35091:28::-;;;-1:-1:-1;;;;;35091:28:0;;:::o;35012:30::-;;;-1:-1:-1;;;;;35012:30:0;;:::o;68023:265::-;68116:7;68140:15;68136:34;;-1:-1:-1;68166:1:0;68159:8;;68136:34;-1:-1:-1;;;;;68199:21:0;;68180:16;68199:21;;;:13;:21;;;;;;68238:42;68273:6;68238:30;:10;68253:2;:14;;;68238;:30::i;69432:966::-;69554:10;;:69;;;-1:-1:-1;;;69554:69:0;;-1:-1:-1;;;;;69554:69:0;;;;;;;;;;;;;;;;-1:-1:-1;;69554:10:0;;;;;;;:38;;:69;;;;;;;;;;;;;;;-1:-1:-1;69554:10:0;:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;69554:69:0;;-1:-1:-1;69554:69:0;69634:52;;69668:7;;;69634:52;-1:-1:-1;;;;;69702:34:0;;;;;;:16;:34;;;;;;69698:187;;69836:15;;69795:57;;:36;:15;69836;69795:19;:36::i;:57::-;-1:-1:-1;;;;;69758:34:0;;;;;;:16;:34;;;;;:94;-1:-1:-1;69867:7:0;;69698:187;69940:15;;-1:-1:-1;;;;;69901:34:0;;;;;;:16;:34;;;;;;69959:15;;69901:55;;:34;:38;:55::i;:::-;:73;69897:112;;;69991:7;;;69897:112;70021:19;70043:36;70062:16;70043:18;:36::i;:::-;-1:-1:-1;;;;;70133:40:0;;;;;;:22;:40;;;;;;70021:58;;-1:-1:-1;70133:57:0;;70021:58;70133:44;:57::i;:::-;-1:-1:-1;;;;;70090:40:0;;;;;;:22;:40;;;;;:100;70279:15;;70238:57;;:36;:15;70279;70238:19;:36::i;:57::-;-1:-1:-1;;;;;70201:34:0;;;;;;:16;:34;;;;;;;;:94;;;;70349:22;:40;;;;;;;70313:77;;;;;;;;;;;;;;;;;;;;;;69432:966;;;;:::o;34656:59::-;34708:7;34656:59;:::o;76024:266::-;76195:10;;:87;;;-1:-1:-1;;;76195:87:0;;-1:-1:-1;;;;;76195:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;76195:10:0;;;;;;;:25;;:87;;;;;;;;;;;;;;;:10;:87;;;;;;;;;;39271:41;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;39271:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;5141:471::-;5199:7;5444:6;5440:47;;-1:-1:-1;5474:1:0;5467:8;;5440:47;5511:5;;;5515:1;5511;:5;:1;5535:5;;;;;:10;5527:56;;;;-1:-1:-1;;;5527:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6088:132;6146:7;6173:39;6177:1;6180;6173:39;;;;;;;;;;;;;-1:-1:-1;;;6173:39:0;;;:3;:39::i;87491:84::-;87559:3;;87535:32;;-1:-1:-1;;;;;87559:3:0;87545:10;:17;87564:2;87535:9;:32::i;:::-;87491:84::o;3787:181::-;3845:7;3877:5;;;3901:6;;;;3893:46;;;;;-1:-1:-1;;;3893:46:0;;;;;;;;;;;;-1:-1:-1;;;3893:46:0;;;;;;;;;;;;;;4251:136;4309:7;4336:43;4340:1;4343;4336:43;;;;;;;;;;;;;;;;;:3;:43::i;88069:127::-;88169:18;;;;:6;:18;;;;;88157:10;88149:39;;;;-1:-1:-1;;;88149:39:0;;;;;;;;;;;;-1:-1:-1;;88149:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87916:145;87973:11;;87969:33;;87993:7;;87969:33;88012:41;88037:11;;88022;:26;;88050:2;88012:9;:41::i;81225:223::-;81296:10;-1:-1:-1;;;;;81296:22:0;;;81292:39;;;81322:7;;81292:39;81359:6;;-1:-1:-1;;;;;81359:6:0;81345:10;:20;81341:37;;;81369:7;;81341:37;-1:-1:-1;;;;;81398:25:0;;;;;;:15;:25;;;;;;;;81424:10;81398:37;;;;;;;;81388:52;;81398:37;;81437:2;81388:9;:52::i;:::-;81225:223;:::o;81456:575::-;81570:7;81566:233;;;81594:46;81624:11;-1:-1:-1;;;;;81604:31:0;:16;-1:-1:-1;;;;;81604:31:0;;81637:2;81594:9;:46::i;:::-;-1:-1:-1;;;;;81665:35:0;;;;;;:17;:35;;;;;;81655:50;;81665:35;;81702:2;81655:9;:50::i;:::-;-1:-1:-1;;;;;81731:30:0;;;;;;:12;:30;;;;;;81720:46;;81731:30;;81730:31;81763:2;81720:9;:46::i;:::-;81781:7;;81566:233;-1:-1:-1;;;;;81821:35:0;;;;;;:17;:35;;;;;;81811:50;;81821:35;;81858:2;81811:9;:50::i;:::-;-1:-1:-1;;;;;81882:30:0;;;;;;:12;:30;;;;;;81872:45;;81882:30;;81914:2;81872:9;:45::i;:::-;-1:-1:-1;;;;;81939:25:0;;;;;;:12;:25;;;;;;81928:41;;81939:25;;81938:26;81966:2;81928:9;:41::i;:::-;-1:-1:-1;;;;;81990:28:0;;;;;;:15;:28;;;;;;81980:43;;81990:28;;82020:2;81980:9;:43::i;82522:727::-;82708:7;82728:14;82745:76;82760:8;82770:16;82788:11;82801:7;82810:10;82745:14;:76::i;:::-;82728:93;;82834:18;82855:89;82869:8;82879:16;82897:11;82910:7;82919:5;82926:17;82855:13;:89::i;:::-;82834:110;-1:-1:-1;82964:22:0;:6;82834:110;82964:10;:22::i;:::-;82955:31;;82999:17;83019:39;83033:16;83051:6;83019:13;:39::i;:::-;-1:-1:-1;;;;;83101:29:0;;;;;;:11;:29;;;;;;82999:59;;-1:-1:-1;83101:44:0;;82999:59;83101:33;:44::i;:::-;-1:-1:-1;;;;;83069:29:0;;;;;;:11;:29;;;;;;;;;:76;;;;83163:54;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;83163:54:0;;;;;;;;-1:-1:-1;83235:6:0;;82522:727;-1:-1:-1;;;;;;;;;82522:727:0:o;83257:291::-;-1:-1:-1;;;;;83353:21:0;;83311:7;83353:21;;;:13;:21;;;;;;;;;83407:39;;-1:-1:-1;;;83407:39:0;;83440:4;83407:39;;;;;;83311:7;;83353:21;;83311:7;;83353:21;;83407:24;;:39;;;;;83353:21;;83407:39;;;;;83353:21;83407:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;83407:39:0;-1:-1:-1;;;;;83457:21:0;;;;;;:13;83407:39;83457:21;;;;:35;;;83407:39;-1:-1:-1;83512:28:0;83407:39;83528:11;83512:15;:28::i;80982:235::-;81073:10;81069:95;;81100:31;81110:16;;81128:2;81100:9;:31::i;:::-;81146:7;;81069:95;81174:35;81193:11;81184:5;:20;;81206:2;81174:9;:35::i;85764:282::-;-1:-1:-1;;;;;85875:23:0;;;;;;:15;:23;;;;;;:36;;85903:7;85875:27;:36::i;:::-;-1:-1:-1;;;;;85849:23:0;;;;;;:15;:23;;;;;;;;:62;;;85959:11;:19;;;;;;85932:23;;85922:61;;85932:46;;85980:2;85922:9;:61::i;:::-;85999:39;;;-1:-1:-1;;;;;85999:39:0;;;;;;;;;;;;;;;;;;;;;;;85764:282;;:::o;86303:213::-;-1:-1:-1;;;;;86414:21:0;;;;;;:13;:21;;;;;;:37;;86440:10;86414:25;:37::i;:::-;-1:-1:-1;;;;;86390:21:0;;;;;;:13;:21;;;;;;;;;:61;;;;86467:41;;;;;;;;;;;;;;;;;;;;;;;;86303:213;;:::o;86524:::-;-1:-1:-1;;;;;86635:21:0;;;;;;:13;:21;;;;;;:37;;86661:10;86635:25;:37::i;:::-;-1:-1:-1;;;;;86611:21:0;;;;;;:13;:21;;;;;;;;;:61;;;;86688:41;;;;;;;;;;;;;;;;;;;;;;;;86524:213;;:::o;83973:318::-;-1:-1:-1;;;;;84076:19:0;;;;;;:11;:19;;;;;;:32;;84100:7;84076:23;:32::i;:::-;-1:-1:-1;;;;;84054:19:0;;;;;;:11;:19;;;;;;;;:54;;;;84137:39;;-1:-1:-1;;;84137:39:0;;84170:4;84137:39;;;;;;84054:19;;84137:24;;:39;;;;;84054:19;84137:39;;;;;84054:19;84137:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;84137:39:0;-1:-1:-1;;;;;84197:19:0;;;;;;:11;84137:39;84197:19;;;;;84137:39;;-1:-1:-1;84187:45:0;;84197:30;-1:-1:-1;84197:30:0;84229:2;84187:9;:45::i;:::-;84248:35;;;-1:-1:-1;;;;;84248:35:0;;;;;;;;;;;;;;;;;;;;;;;83973:318;;;:::o;84299:296::-;84402:62;;;;;;;;;;;-1:-1:-1;;;84402:62:0;;;;;;;;-1:-1:-1;;;;;84402:19:0;;-1:-1:-1;84402:19:0;;;:11;:19;;;;;;;;:62;;84426:7;;84402:23;:62::i;:::-;-1:-1:-1;;;;;84380:19:0;;;;;;:11;:19;;;;;;;;:84;;;84485:15;:23;;;;;;84475:61;;-1:-1:-1;84485:46:0;84533:2;84475:9;:61::i;:::-;84552:35;;;-1:-1:-1;;;;;84552:35:0;;;;;;;;;;;;;;;;;;;;;;;84299:296;;:::o;86745:346::-;-1:-1:-1;;;;;86859:24:0;;;;;;:16;:24;;;;;;:37;;86888:7;86859:28;:37::i;:::-;-1:-1:-1;;;;;86832:24:0;;;;;;:16;:24;;;;;;;;:64;;;;86927:19;:27;;;;86969:12;;86965:119;;-1:-1:-1;;;;;87006:24:0;;;;;;:16;:24;;;;;;:35;-1:-1:-1;87006:35:0;86998:74;;;;;-1:-1:-1;;;86998:74:0;;;;;;;;;;;;-1:-1:-1;;;86998:74:0;;;;;;;;;;;;;;87675:141;87731:13;;;;;;;87727:82;;;87781:10;87771:21;;;;:9;:21;;;;;;87761:36;;87771:21;;87794:2;87761:9;:36::i;85172:584::-;-1:-1:-1;;;;;85269:19:0;;85253:13;85269:19;;;:11;:19;;;;;;85505:16;;;85501:146;;-1:-1:-1;;;;;85538:19:0;;85560:1;85538:19;;;:11;:19;;;;;;;;:23;;;;85581:33;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;85581:33:0;;;;;;;;;85629:7;;;85501:146;85679:18;:5;85689:7;85679:9;:18::i;:::-;-1:-1:-1;;;;;85657:19:0;;;;;;:11;:19;;;;;;;;;:40;;;;85713:35;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;85713:35:0;;;;;;;;;;85172:584;;;:::o;83786:179::-;83850:19;83879:6;-1:-1:-1;;;;;83872:24:0;;83905:4;83872:39;;;;;;;;;;;;;-1:-1:-1;;;;;83872:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;83872:39:0;-1:-1:-1;;;;;83922:21:0;;;;;;;:13;83872:39;83922:21;;;;:35;;;;-1:-1:-1;83786:179:0:o;82039:475::-;82140:7;;82185:80;34266:5;82185:54;82197:41;34266:5;82222:15;82197:24;:41::i;:::-;82185:7;;:11;:54::i;:80::-;82160:105;-1:-1:-1;82276:17:0;82296:27;:7;82160:105;82296:11;:27::i;:::-;-1:-1:-1;;;;;82356:19:0;;;;;;:11;:19;;;;;;82276:47;;-1:-1:-1;82356:34:0;;82276:47;82356:23;:34::i;:::-;-1:-1:-1;;;;;82334:19:0;;;;;;:11;:19;;;;;:56;82406:68;82346:6;82430:32;82346:6;82452:9;82430:13;:32::i;:::-;82406:68;;;-1:-1:-1;;;;;82406:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;82492:14:0;82039:475;-1:-1:-1;;;;82039:475:0:o;83556:222::-;83649:47;-1:-1:-1;;;;;83649:27:0;;83677:9;83688:7;83649:27;:47::i;:::-;83731:39;;;-1:-1:-1;;;83731:39:0;;83764:4;83731:39;;;;;;-1:-1:-1;;;;;83731:24:0;;;;;:39;;;;;;;;;;;;;;:24;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;83731:39:0;-1:-1:-1;;;;;83707:21:0;;;;;;;:13;83731:39;83707:21;;;;:63;;;;-1:-1:-1;;83556:222:0:o;84801:363::-;-1:-1:-1;;;;;84904:19:0;;;;;;:11;:19;;;;;;:32;;84928:7;84904:23;:32::i;:::-;-1:-1:-1;;;;;84882:19:0;;;;;;:11;:19;;;;;;;;:54;;;;84971:14;:22;;;;85008:18;;85004:102;;-1:-1:-1;;;;;85053:19:0;;;;;;:11;:19;;;;;;85043:51;;85053:36;-1:-1:-1;85053:36:0;85091:2;85043:9;:51::i;:::-;85121:35;;;-1:-1:-1;;;;;85121:35:0;;;;;;;;;;;;;;;;;;;;;;;84801:363;;;:::o;59099:3426::-;59307:10;;:126;;;-1:-1:-1;;;59307:126:0;;-1:-1:-1;;;;;59307:126:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;59307:10:0;;;;;;;:35;;:126;;;;;-1:-1:-1;;59307:126:0;;;;;;;;:10;:126;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59444:58;59472:16;59490:11;59444:27;:58::i;:::-;59515:11;59529:64;59544:8;59554:16;59572:11;59585:7;59529:14;:64::i;:::-;59604:25;59632:14;;;:9;:14;;;;;59667:13;;59515:78;;-1:-1:-1;59632:14:0;59657:32;;59667:17;;59686:2;59657:9;:32::i;:::-;59700:42;59727:10;59710:8;:13;;;:27;;59739:2;59700:9;:42::i;:::-;59753:54;59786:16;59763:8;:19;;;:39;;59804:2;59753:9;:54::i;:::-;59841:19;;;;60007:13;;59964:22;;;;59820:18;;59964:57;;:38;;59991:10;59964:26;:38::i;:57::-;60057:22;;;;59941:80;;-1:-1:-1;60057:40:0;;59941:80;60057:26;:40::i;:::-;60032:22;;;:65;60108:55;60132:16;60150:12;60108:23;:55::i;:::-;59099:3426;60188:14;60204:22;60230:97;60248:8;60258:16;60276:11;60289:16;60307:10;60319:7;60230:17;:97::i;:::-;60344:13;;60187:140;;-1:-1:-1;60187:140:0;-1:-1:-1;60344:27:0;;60340:1668;;60416:59;60436:16;60454:11;60467:7;60416:19;:59::i;:::-;60388:25;;;:87;60506:13;;:29;;60524:10;60506:17;:29::i;:::-;60490:45;;;60585:19;;;;60552:53;;60490:45;60552:17;:53::i;:::-;60620:75;60640:8;60650:16;60668:11;60681:7;60690:4;60620:19;:75::i;:::-;;;60716:7;60712:196;;;60744:77;60767:16;60785:35;60800:8;:19;;;60785:10;:14;;:35;;;;:::i;60744:77::-;60840:52;60863:16;60881:10;60840:22;:52::i;:::-;60924:13;60940:7;:61;;60977:24;60989:11;60977;:24::i;:::-;60940:61;;;60950:24;60962:11;60950;:24::i;:::-;60924:77;-1:-1:-1;;;;;;;;;;;;61038:3:0;61043:8;61053:16;61071:11;61084:16;61102:10;61114:7;60924:77;61130:26;:6;61141:14;61130:10;:26::i;:::-;61021:136;;;;;;-1:-1:-1;;;;;61021:136:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61197:13;;61212:19;;;;61233:21;;;;61256:25;;;;61283:22;;;;61307:20;;;;61177:158;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;61177:158:0;;;;;;;;60340:1668;;;;61372:7;61368:171;;;61400:52;61423:16;61441:10;61400:22;:52::i;:::-;61471;61494:16;61512:10;61471:22;:52::i;:::-;61555:13;61571:7;:61;;61608:24;61620:11;61608;:24::i;:::-;61571:61;;;61581:24;61593:11;61581;:24::i;:::-;61555:77;-1:-1:-1;;;;;;;;;;;;61669:3:0;61674:8;61684:16;61702:11;61715:16;61733:10;61745:7;61555:77;61761:26;:6;61772:14;61761:10;:26::i;:::-;61652:136;;;;;;-1:-1:-1;;;;;61652:136:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61827:13;;61842:19;;;;61863:21;;;;61886:25;;;;61913:22;;;;61937:20;;;;61808:150;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;61982:14:0;;;;:9;:14;;;;;61975:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60340:1668;62025:7;62020:90;;62049:49;62074:11;62087:10;62049:24;:49::i;:::-;62126:10;;62122:375;;62157:7;62153:126;;;62185:78;62205:16;62223:39;62237:16;62255:6;62223:13;:39::i;62185:78::-;62293:26;62322:47;62336:16;62354:14;62322:13;:47::i;:::-;62293:76;;62384:61;62397:16;62415:18;62435:9;62384:12;:61::i;:::-;62467:18;-1:-1:-1;62460:25:0;;-1:-1:-1;;;;;62460:25:0;62122:375;-1:-1:-1;62516:1:0;;59099:3426;-1:-1:-1;;;;;;;;;;;;59099:3426:0:o;84603:190::-;-1:-1:-1;;;;;84700:21:0;;;;;;:13;:21;;;;;;;;;84678:11;:19;;;;;;;:43;84674:112;;;84738:36;;;-1:-1:-1;;;84738:36:0;;;;;;;;;;;;-1:-1:-1;;;84738:36:0;;;;;;;;;;;;;;19609:177;19719:58;;;-1:-1:-1;;;;;19719:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19719:58:0;-1:-1:-1;;;19719:58:0;;;19692:86;;19712:5;;19692:19;:86::i;86054:241::-;86165:67;;;;;;;;;;;-1:-1:-1;;;86165:67:0;;;;;;;;-1:-1:-1;;;;;86165:23:0;;-1:-1:-1;86165:23:0;;;:15;:23;;;;;;;;:67;;86193:7;;86165:27;:67::i;:::-;-1:-1:-1;;;;;86139:23:0;;;;;;:15;:23;;;;;;;;;:93;;;;86248:39;;;;;;;;;;;;;;;;;;;;;;;;86054:241;;:::o;87099:292::-;-1:-1:-1;;;;;87200:24:0;;87185:12;87200:24;;;:16;:24;;;;;;87239:14;;;87235:92;;;-1:-1:-1;;;;;;87268:24:0;;87295:1;87268:24;;;:16;:24;;;;;:28;87309:7;;87235:92;87366:17;:4;87375:7;87366:8;:17::i;:::-;-1:-1:-1;;;;;87339:24:0;;;;;;:16;:24;;;;;:44;-1:-1:-1;87099:292:0;;:::o;6716:278::-;6802:7;6837:12;6830:5;6822:28;;;;-1:-1:-1;;;6822:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6861:9;6877:1;6873;:5;;;;;;;6716:278;-1:-1:-1;;;;;6716:278:0:o;4690:192::-;4776:7;4812:12;4804:6;;;;4796:29;;;;-1:-1:-1;;;4796:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4848:5:0;;;4690:192::o;77699:3275::-;77868:7;77877;77897:11;77911:64;77926:8;77936:16;77954:11;77967:7;77911:14;:64::i;:::-;77986:25;78014:14;;;:9;:14;;;;;78136:13;;78151:25;;;;77897:78;;-1:-1:-1;78014:14:0;;78055:122;;78074:8;;78084:16;;78102:11;;78115:7;;78124:10;;78055:18;:122::i;:::-;78041:136;;78188:14;78213:21;78318:15;78335:13;78352:96;78361:11;78374:8;:13;;;78389:8;:21;;;78412:7;78421:8;:26;;;78352:8;:96::i;:::-;78581:13;;78317:131;;-1:-1:-1;78317:131:0;;-1:-1:-1;78317:131:0;-1:-1:-1;78555:40:0;;:21;:10;78317:131;78555:14;:21::i;:40::-;78539:56;;77699:3275;;78619:14;78681:9;:30;;;;;78710:1;78694:13;:17;78681:30;78677:451;;;-1:-1:-1;78788:20:0;;;;;:44;;78765:67;;78737:13;78936:7;78931:186;;78964:19;78986:46;79000:16;79018:13;78986;:46::i;:::-;78964:68;;79051:50;79071:16;79089:11;79051:19;:50::i;:::-;78931:186;;79145:9;79144:10;:31;;;;;79174:1;79158:13;:17;79144:31;79140:647;;;79214:19;;;;:38;;79238:13;79214:23;:38::i;:::-;79192:19;;;:60;79511:7;79506:186;;79539:19;79561:46;79575:16;79593:13;79561;:46::i;:::-;79539:68;;79626:50;79646:16;79664:11;79626:19;:50::i;:::-;79506:186;;79731:20;;;;;:44;;;79708:67;;79140:647;79910:20;;79906:168;;79956:28;:6;79967:16;79956:10;:28::i;:::-;80021:19;;;;79947:37;;-1:-1:-1;80021:41:0;;80045:16;80021:23;:41::i;:::-;79999:19;;;:63;79906:168;80177:13;;:27;;80173:138;;;80241:19;;;;80230:31;;:6;;:10;:31::i;:::-;80298:1;80276:19;;;:23;80221:40;-1:-1:-1;80173:138:0;80503:6;80524:12;;;80520:345;;;80570:15;:6;80581:3;80570:10;:15::i;:::-;80553:32;;80520:345;;;80640:19;;;;:28;;80664:3;80640:23;:28::i;:::-;80618:19;;;:50;80683:171;;;;80715:17;80735:36;80749:16;80767:3;80735:13;:36::i;:::-;80715:56;;80790:48;80810:16;80828:9;80790:19;:48::i;:::-;80683:171;;80882:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80943:6;;;;-1:-1:-1;77699:3275:0;-1:-1:-1;;;;;;;;;;;;77699:3275:0:o;21914:761::-;22338:23;22364:69;22392:4;22364:69;;;;;;;;;;;;;;;;;22372:5;-1:-1:-1;;;;;22364:27:0;;;:69;;;;;:::i;:::-;22448:17;;22338:95;;-1:-1:-1;22448:21:0;22444:224;;22590:10;22579:30;;;;;;;;;;;;;;;-1:-1:-1;22579:30:0;22571:85;;;;-1:-1:-1;;;22571:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14623:195;14726:12;14758:52;14780:6;14788:4;14794:1;14797:12;14726;15927:18;15938:6;15927:10;:18::i;:::-;15919:60;;;;;-1:-1:-1;;;15919:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;16053:12;16067:23;16094:6;-1:-1:-1;;;;;16094:11:0;16114:5;16122:4;16094:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;16094:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16052:75;;;;16145:52;16163:7;16172:10;16184:12;16145:17;:52::i;11705:422::-;12072:20;12111:8;;;11705:422::o;18215:742::-;18330:12;18359:7;18355:595;;;-1:-1:-1;18390:10:0;18383:17;;18355:595;18504:17;;:21;18500:439;;18767:10;18761:17;18828:15;18815:10;18811:2;18807:19;18800:44;18715:148;18903:20;;-1:-1:-1;;;18903:20:0;;;;;;;;;;;;;;;;;18910:12;;18903:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;

Swarm Source

ipfs://f11b15d932f21b2bd1223d0c4ac18bb1522091c3d4fbbff086b4e6288318f668

Block Transaction 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
[ 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.