Contract 0x43Fbb379295934146EF5321f77Eb848B86169bD9

Contract Overview

Balance:
0 Ether
Txn Hash
Method
Block
From
To
Value
0xd51baccd241aaa9e178f0b66ca9ac4eabf1d771a091f79699d5d1e4209f694ffInitialize58034672020-01-16 16:25:26854 days 19 hrs ago0x4011d09a86d0aca8377a4a8bad691f1aceecd672 IN  0x43fbb379295934146ef5321f77eb848b86169bd90 Ether0.0000259871
0xe324272be06e0e67e84fc05e61e304207dc7038e2401dfdfa1b2d15196ce5b25Initialize58034182020-01-16 16:13:11854 days 19 hrs ago0x4011d09a86d0aca8377a4a8bad691f1aceecd672 IN  0x43fbb379295934146ef5321f77eb848b86169bd90 Ether0.0000238431
0xb1cc4206af1a878419dcbbcdf572a0958a154656b287a819cb5f4548f2f27aa2Initialize58034152020-01-16 16:12:26854 days 19 hrs ago0x4011d09a86d0aca8377a4a8bad691f1aceecd672 IN  0x43fbb379295934146ef5321f77eb848b86169bd90 Ether0.0000242471
0xc7b11e4487d5be8064cded68a6dc3c665a574c71fda16952101996c902f8dbffInitialize58030852020-01-16 14:49:55854 days 20 hrs ago0x33ab07df7f09e793ddd1e9a25b079989a557119a IN  0x43fbb379295934146ef5321f77eb848b86169bd90 Ether0.0002899831
0xa3a05c89e082fb0e08eb43b10d4d1d4b72232820a09d85c9fc8a6be579b7af210x6080604058030842020-01-16 14:49:40854 days 20 hrs ago0x33ab07df7f09e793ddd1e9a25b079989a557119a IN  Create: PublicLock0 Ether0.0050233031
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xe832cc59731f8cc99ad1318f5fd23ee419d738e7da31df419fdc5253be633b0886649722021-05-28 13:58:47356 days 21 hrs ago 0x2d084d42e837db0ada16701d276fd0caebb80ae8 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0x4d2312a28b799059f2e5099e132e9ffed4285122cd0e5d137ec279a3f78a985c81038282021-02-20 2:00:05454 days 9 hrs ago 0xc214a845ad585d74f56353ee6bd460c2b1dd4884 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0x5e7ba18b3cd9a5486588c0ac12f9f3bf062c7dd626a08927fc308de343c4b34081038082021-02-20 1:55:04454 days 9 hrs ago 0x46bad3f4c47ba5ea78cf5c4fffee1db6c16230a2 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0xd535deca71663a4e67b67d5c489d0141173dba9fd4f819a2cfe1994cb012bf8264876362020-05-14 15:26:20735 days 20 hrs ago 0x91e05c53b0135f50b351380106525b44a6af0956 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0x4357060f61f0101c035943de64ec8fb4829d25a2865f9dae909bb7421350bc4264876352020-05-14 15:26:05735 days 20 hrs ago 0x91e05c53b0135f50b351380106525b44a6af0956 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0x92d7dfeac242690d1e39299f0a21ba7c5a1be94dec35494e152e4952447027e564876292020-05-14 15:24:35735 days 20 hrs ago 0x91e05c53b0135f50b351380106525b44a6af0956 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0x92d7dfeac242690d1e39299f0a21ba7c5a1be94dec35494e152e4952447027e564876292020-05-14 15:24:35735 days 20 hrs ago 0x91e05c53b0135f50b351380106525b44a6af0956 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0xa5f9f12530e5aef120f1b34dc1aea7a5f31bf026144eca4f62f53c6a7a163c8263965052020-04-28 19:43:24751 days 15 hrs ago 0x4ff2c0e3a720f22531c2e53380114746461fc65d 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0xb236c1ceb3da33d1ef3bd608c6736f21a349aa1490b915fa9b6e78c18a474e0463677132020-04-23 19:45:22756 days 15 hrs ago 0xc546ba3682bf93f0d6baf8c8520fcf018a28bfd2 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0x6d6786dc942737ef7184f2c6161ecf8ec5ce5014b2d42dd8eea114d72ab0192463677132020-04-23 19:45:22756 days 15 hrs ago 0xfb7f4271aa35cf679a11dca666be768b10ffd01f 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0x0583c630231bedaee29c3de0e1492a4606063e8668551b55793db603bed2245263677122020-04-23 19:45:07756 days 15 hrs ago 0x34e3d97ba8dda17def17cf2bab02752c6f7c07de 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0xc42bc859630eb90eae2d0927ec2508624151c755a5db20000f58888e3eb5f3a463321042020-04-17 15:21:57762 days 20 hrs ago 0xa115738309c917a0ec39637b30fc2159f3cb32a0 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0x7938d654aa9d064f3164fcb7388ea3b027bcede40c81148f22f01238587e203d62413692020-04-01 20:59:18778 days 14 hrs ago 0x46bad3f4c47ba5ea78cf5c4fffee1db6c16230a2 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0x963381b985ff03aeb35c83d06b5aa2e84afec832b1a1fbf1abea8b24ee68443a62236612020-03-29 19:11:26781 days 16 hrs ago 0x70f3f6cdb638e402db162e65ed96227af5e37b69 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0x364cf1caa39a6e61ad439677a1adfa7a5d6a99a783477fa96e7bbc83881bec5562125722020-03-27 20:59:03783 days 14 hrs ago 0x560a2c26b14ec50fb95e95c2e007d9f69ae1b545 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0x022dab7a35bc7867a3716d2795cbccef5d93700e7fc67abec32601a010dd67c962125452020-03-27 20:52:18783 days 14 hrs ago 0x560a2c26b14ec50fb95e95c2e007d9f69ae1b545 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0x8f481a3bb8b59db743ccdb618056cde7d39d2aa49e687d5c5bb491d084d6020962063902020-03-26 19:13:19784 days 16 hrs ago 0x5d965d5b3a80691edc4b990f5ac389c10ef20e8b 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0xb21d48fa8fdde3aca48c966abdb12d4cf79ccf28cebebfd72bbd5a1a0fb9e4dd62050772020-03-26 13:45:01784 days 21 hrs ago 0x34e3d97ba8dda17def17cf2bab02752c6f7c07de 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0xb21d48fa8fdde3aca48c966abdb12d4cf79ccf28cebebfd72bbd5a1a0fb9e4dd62050772020-03-26 13:45:01784 days 21 hrs ago 0x34e3d97ba8dda17def17cf2bab02752c6f7c07de 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0xc48a47a021f5f37527dc6e0a8ab29c361d2e060ed804deab2f68e62e5a67398162048682020-03-26 12:52:46784 days 22 hrs ago 0x34e3d97ba8dda17def17cf2bab02752c6f7c07de 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0xc48a47a021f5f37527dc6e0a8ab29c361d2e060ed804deab2f68e62e5a67398162048682020-03-26 12:52:46784 days 22 hrs ago 0x34e3d97ba8dda17def17cf2bab02752c6f7c07de 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0x6c72dc870d1015f3cba2acf75133de023fd5c7b5135cdef0bb83fcb44e194cdd61953052020-03-24 21:01:38786 days 14 hrs ago 0xa0ad96965f29c2d20c69bdaf89ea21b38d5ba95a 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0xbdabd6ff08fdd4c5c80a0779a7bcdd246bea07d4a36b24b38355c6b6a29f90d861890372020-03-23 18:54:23787 days 16 hrs ago 0x91e05c53b0135f50b351380106525b44a6af0956 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0x96006cb7a831414b867b3b8b7ef1471eb3d6977ad5319a0222052c8498dd17e561889722020-03-23 18:38:08787 days 17 hrs ago 0xa115738309c917a0ec39637b30fc2159f3cb32a0 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
0xa42c251739eb22640eaa3c028af4ec37b26586191204aa575dccb0c10b4f798061889722020-03-23 18:38:08787 days 17 hrs ago 0xa115738309c917a0ec39637b30fc2159f3cb32a0 0x43fbb379295934146ef5321f77eb848b86169bd90 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PublicLock

Compiler Version
v0.5.14+commit.1f1aaa4

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-01-16
*/

// File: @openzeppelin\upgrades\contracts\Initializable.sol

pragma solidity >=0.4.24 <0.6.0;


/**
 * @title Initializable
 *
 * @dev Helper contract to support initializer functions. To use it, replace
 * the constructor with a function that has the `initializer` modifier.
 * WARNING: Unlike constructors, initializer functions must be manually
 * invoked. This applies both to deploying an Initializable contract, as well
 * as extending an Initializable contract via inheritance.
 * WARNING: When used with inheritance, manual care must be taken to not invoke
 * a parent initializer twice, or ensure that all initializers are idempotent,
 * because this is not dealt with automatically as with constructors.
 */
contract Initializable {

  /**
   * @dev Indicates that the contract has been initialized.
   */
  bool private initialized;

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

  /**
   * @dev Modifier to use in the initializer function of a contract.
   */
  modifier initializer() {
    require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized");

    bool isTopLevelCall = !initializing;
    if (isTopLevelCall) {
      initializing = true;
      initialized = true;
    }

    _;

    if (isTopLevelCall) {
      initializing = false;
    }
  }

  /// @dev Returns true if and only if the function is running in the constructor
  function isConstructor() private view returns (bool) {
    // extcodesize checks the size of the code stored in an address, and
    // address returns the current address. Since the code is still not
    // deployed when running a constructor, any checks on its code size will
    // yield zero, making it an effective way to detect if a contract is
    // under construction or not.
    uint256 cs;
    assembly { cs := extcodesize(address) }
    return cs == 0;
  }

  // Reserved storage space to allow for layout changes in the future.
  uint256[50] private ______gap;
}

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

pragma solidity ^0.5.0;

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

// File: node_modules\@openzeppelin\contracts-ethereum-package\contracts\token\ERC721\IERC721.sol

pragma solidity ^0.5.0;



/**
 * @dev Required interface of an ERC721 compliant contract.
 */
contract IERC721 is Initializable, IERC165 {
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

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

    /**
     * @dev Returns the owner of the NFT specified by `tokenId`.
     */
    function ownerOf(uint256 tokenId) public view returns (address owner);

    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     *
     *
     * Requirements:
     * - `from`, `to` cannot be zero.
     * - `tokenId` must be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this
     * NFT by either {approve} or {setApprovalForAll}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public;
    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     * Requirements:
     * - If the caller is not `from`, it must be approved to move this NFT by
     * either {approve} or {setApprovalForAll}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public;
    function approve(address to, uint256 tokenId) public;
    function getApproved(uint256 tokenId) public view returns (address operator);

    function setApprovalForAll(address operator, bool _approved) public;
    function isApprovedForAll(address owner, address operator) public view returns (bool);


    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public;
}

// File: @openzeppelin\contracts-ethereum-package\contracts\token\ERC721\IERC721Enumerable.sol

pragma solidity ^0.5.0;



/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
contract IERC721Enumerable is Initializable, IERC721 {
    function totalSupply() public view returns (uint256);
    function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256 tokenId);

    function tokenByIndex(uint256 index) public view returns (uint256);
}

// File: contracts\interfaces\IPublicLock.sol

pragma solidity ^0.5.0;

/**
* @title The PublicLock Interface
* @author Nick Furfaro (unlock-protocol.com)
 */


contract IPublicLock is IERC721Enumerable {

// See indentationissue description here:
// https://github.com/duaraghav8/Ethlint/issues/268
// solium-disable indentation

  /// Events
  event Destroy(
    uint balance,
    address indexed owner
  );

  event Disable();

  event Withdrawal(
    address indexed sender,
    address indexed tokenAddress,
    address indexed beneficiary,
    uint amount
  );

  event CancelKey(
    uint indexed tokenId,
    address indexed owner,
    address indexed sendTo,
    uint refund
  );

  event RefundPenaltyChanged(
    uint freeTrialLength,
    uint refundPenaltyBasisPoints
  );

  event PricingChanged(
    uint oldKeyPrice,
    uint keyPrice,
    address oldTokenAddress,
    address tokenAddress
  );

  event ExpireKey(uint indexed tokenId);

  event NewLockSymbol(
    string symbol
  );

  event TransferFeeChanged(
    uint transferFeeBasisPoints
  );

  /// @notice emits anytime the nonce used for off-chain approvals changes.
  event NonceChanged(
    address indexed keyOwner,
    uint nextAvailableNonce
  );
  ///===================================================================

  /// Functions

  function initialize(
    address _owner,
    uint _expirationDuration,
    address _tokenAddress,
    uint _keyPrice,
    uint _maxNumberOfKeys,
    string calldata _lockName
  ) external;

  /**
  * @notice The version number of the current implementation on this network.
  * @return The current version number.
  */
  function publicLockVersion() public pure returns (uint);

  /**
  * @notice Gets the current balance of the account provided.
  * @param _tokenAddress The token type to retrieve the balance of.
  * @param _account The account to get the balance of.
  * @return The number of tokens of the given type for the given address, possibly 0.
  */
  function getBalance(
    address _tokenAddress,
    address _account
  ) external view
    returns (uint);

  /**
  * @notice Used to disable lock before migrating keys and/or destroying contract.
  * @dev Throws if called by other than the owner.
  * @dev Throws if lock contract has already been disabled.
  */
  function disableLock() external;

  /**
  * @notice Used to clean up old lock contracts from the blockchain.
  * TODO: add a check to ensure all keys are INVALID!
  * @dev Throws if called by other than owner.
  * @dev Throws if lock has not yet been disabled.
  */
  function destroyLock() external;

  /**
   * @dev Called by owner to withdraw all funds from the lock and send them to the `beneficiary`.
   * @dev Throws if called by other than the owner or beneficiary
   * @param _tokenAddress specifies the token address to withdraw or 0 for ETH. This is usually
   * the same as `tokenAddress` in MixinFunds.
   * @param _amount specifies the max amount to withdraw, which may be reduced when
   * considering the available balance. Set to 0 or MAX_UINT to withdraw everything.
   *  -- however be wary of draining funds as it breaks the `cancelAndRefund` and `fullRefund`
   * use cases.
   */
  function withdraw(
    address _tokenAddress,
    uint _amount
  ) external;

  /**
   * A function which lets the owner of the lock to change the price for future purchases.
   * @dev Throws if called by other than owner
   * @dev Throws if lock has been disabled
   * @dev Throws if _tokenAddress is not a valid token
   * @param _keyPrice The new price to set for keys
   * @param _tokenAddress The address of the erc20 token to use for pricing the keys,
   * or 0 to use ETH
   */
  function updateKeyPricing( uint _keyPrice, address _tokenAddress ) external;

  /**
   * A function which lets the owner of the lock update the beneficiary account,
   * which receives funds on withdrawal.
   * @dev Throws if called by other than owner of beneficiary
   * @dev Throws if _beneficiary is address(0)
   * @param _beneficiary The new address to set as the beneficiary
   */
  function updateBeneficiary( address _beneficiary ) external;

  /**
   * A function which lets the owner of the lock expire a users' key.
   * @dev Throws if called by other than lock owner
   * @dev Throws if key owner does not have a valid key
   * @param _owner The address of the key owner
   */
  function expireKeyFor( address _owner ) external;

    /**
   * Checks if the user has a non-expired key.
   * @param _owner The address of the key owner
   */
  function getHasValidKey(
    address _owner
  ) external view returns (bool);

  /**
   * @notice Find the tokenId for a given user
   * @return The tokenId of the NFT, else revert
   * @dev Throws if key owner does not have a valid key
   * @param _account The address of the key owner
  */
  function getTokenIdFor(
    address _account
  ) external view returns (uint);

  /**
  * A function which returns a subset of the keys for this Lock as an array
  * @param _page the page of key owners requested when faceted by page size
  * @param _pageSize the number of Key Owners requested per page
  * @dev Throws if there are no key owners yet
  */
  function getOwnersByPage(
    uint _page,
    uint _pageSize
  ) external view returns (address[] memory);

  /**
   * Checks if the given address owns the given tokenId.
   * @param _tokenId The tokenId of the key to check
   * @param _owner The potential key owners address
   */
  function isKeyOwner(
    uint _tokenId,
    address _owner
  ) external view returns (bool);

  /**
  * @dev Returns the key's ExpirationTimestamp field for a given owner.
  * @param _owner address of the user for whom we search the key
  * @dev Throws if owner has never owned a key for this lock
  */
  function keyExpirationTimestampFor(
    address _owner
  ) external view returns (uint timestamp);

  /**
   * Public function which returns the total number of unique owners (both expired
   * and valid).  This may be larger than totalSupply.
   */
  function numberOfOwners() external view returns (uint);

  /**
   * Allows the Lock owner to assign a descriptive name for this Lock.
   * @param _lockName The new name for the lock
   * @dev Throws if called by other than the lock owner
   */
  function updateLockName(
    string calldata _lockName
  ) external;

  /**
   * Allows the Lock owner to assign a Symbol for this Lock.
   * @param _lockSymbol The new Symbol for the lock
   * @dev Throws if called by other than the lock owner
   */
  function updateLockSymbol(
    string calldata _lockSymbol
  ) external;

  /**
    * @dev Gets the token symbol
    * @return string representing the token symbol
    */
  function symbol()
    external view
    returns(string memory);

    /**
   * Allows the Lock owner to update the baseTokenURI for this Lock.
   * @dev Throws if called by other than the lock owner
   * @param _baseTokenURI String representing the base of the URI for this lock.
   */
  function setBaseTokenURI(
    string calldata _baseTokenURI
  ) external;

  /**  @notice A distinct Uniform Resource Identifier (URI) for a given asset.
   * @dev Throws if `_tokenId` is not a valid NFT. URIs are defined in RFC
   *  3986. The URI may point to a JSON file that conforms to the "ERC721
   *  Metadata JSON Schema".
   * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
   * @param _tokenId The tokenID we're inquiring about
   * @return String representing the URI for the requested token
   */
  function tokenURI(
    uint256 _tokenId
  ) external view returns(string memory);

  /**
   * Allows the Lock owner to give a collection of users a key with no charge.
   * Each key may be assigned a different expiration date.
   * @dev Throws if called by other than the lock-owner
   * @param _recipients An array of receiving addresses
   * @param _expirationTimestamps An array of expiration Timestamps for the keys being granted
   */
  function grantKeys(
    address[] calldata _recipients,
    uint[] calldata _expirationTimestamps
  ) external;

  /**
  * @dev Purchase function
  * @param _value the number of tokens to pay for this purchase >= the current keyPrice - any applicable discount
  * (_value is ignored when using ETH)
  * @param _recipient address of the recipient of the purchased key
  * @param _referrer address of the user making the referral
  * @param _data arbitrary data populated by the front-end which initiated the sale
  * @dev Throws if lock is disabled. Throws if lock is sold-out. Throws if _recipient == address(0).
  * @dev Setting _value to keyPrice exactly doubles as a security feature. That way if the lock owner increases the
  * price while my transaction is pending I can't be charged more than I expected (only applicable to ERC-20 when more
  * than keyPrice is approved for spending).
  */
  function purchase(
    uint256 _value,
    address _recipient,
    address _referrer,
    bytes calldata _data
  ) external payable;

  /**
   * Allow the Lock owner to change the transfer fee.
   * @dev Throws if called by other than lock-owner
   * @param _transferFeeBasisPoints The new transfer fee in basis-points(bps).
   * Ex: 200 bps = 2%
   */
  function updateTransferFee(
    uint _transferFeeBasisPoints
  ) external;

  /**
   * Determines how much of a fee a key owner would need to pay in order to
   * transfer the key to another account.  This is pro-rated so the fee goes down
   * overtime.
   * @dev Throws if _owner does not have a valid key
   * @param _owner The owner of the key check the transfer fee for.
   * @param _time The amount of time to calculate the fee for.
   * @return The transfer fee in seconds.
   */
  function getTransferFee(
    address _owner,
    uint _time
  ) external view returns (uint);

  /**
   * @dev Invoked by the lock owner to destroy the user's key and perform a refund and cancellation of the key
   * @param _keyOwner The key owner to whom we wish to send a refund to
   * @param amount The amount to refund the key-owner
   * @dev Throws if called by other than owner
   * @dev Throws if _keyOwner does not have a valid key
   */
  function fullRefund(
    address _keyOwner,
    uint amount
  ) external;

  /**
   * @notice Destroys the msg.sender's key and sends a refund based on the amount of time remaining.
   */
  function cancelAndRefund() external;

  /**
   * @dev Cancels a key owned by a different user and sends the funds to the msg.sender.
   * @param _keyOwner this user's key will be canceled
   * @param _v _r _s getCancelAndRefundApprovalHash signed by the _keyOwner
   */
  function cancelAndRefundFor(
    address _keyOwner,
    uint8 _v,
    bytes32 _r,
    bytes32 _s
  ) external;

  /**
   * @notice Sets the minimum nonce for a valid off-chain approval message from the
   * senders account.
   * @dev This can be used to invalidate a previously signed message.
   */
  function invalidateOffchainApproval(
    uint _nextAvailableNonce
  ) external;

  /**
   * Allow the owner to change the refund penalty.
   * @dev Throws if called by other than owner
   * @param _freeTrialLength The new duration of free trials for this lock
   * @param _refundPenaltyBasisPoints The new refund penaly in basis-points(bps)
   */
  function updateRefundPenalty(
    uint _freeTrialLength,
    uint _refundPenaltyBasisPoints
  ) external;

  /**
   * @dev Determines how much of a refund a key owner would receive if they issued
   * @param _owner The key owner to get the refund value for.
   * a cancelAndRefund block.timestamp.
   * Note that due to the time required to mine a tx, the actual refund amount will be lower
   * than what the user reads from this call.
   */
  function getCancelAndRefundValueFor(
    address _owner
  ) external view returns (uint refund);

  function keyOwnerToNonce(address ) external view returns (uint256 );

  /**
   * @notice returns the hash to sign in order to allow another user to cancel on your behalf.
   * @dev this can be computed in JS instead of read from the contract.
   * @param _keyOwner The key owner's address (also the message signer)
   * @param _txSender The address cancelling cancel on behalf of the keyOwner
   * @return approvalHash The hash to sign
   */
  function getCancelAndRefundApprovalHash(
    address _keyOwner,
    address _txSender
  ) external view returns (bytes32 approvalHash);

  ///===================================================================
  /// Auto-generated getter functions from public state variables

  function beneficiary() external view returns (address );

  function erc1820() external view returns (address );

  function expirationDuration() external view returns (uint256 );

  function freeTrialLength() external view returns (uint256 );

  function isAlive() external view returns (bool );

  function keyCancelInterfaceId() external view returns (bytes32 );

  function keySoldInterfaceId() external view returns (bytes32 );

  function keyPrice() external view returns (uint256 );

  function maxNumberOfKeys() external view returns (uint256 );

  function owners(uint256 ) external view returns (address );

  function refundPenaltyBasisPoints() external view returns (uint256 );

  function tokenAddress() external view returns (address );

  function transferFeeBasisPoints() external view returns (uint256 );

  function unlockProtocol() external view returns (address );

  function BASIS_POINTS_DEN() external view returns (uint256 );

  /// @notice The typehash per the EIP-712 standard
  /// @dev This can be computed in JS instead of read from the contract
  function CANCEL_TYPEHASH() external view returns(bytes32);
  ///===================================================================

  /**
  * @notice Allows the key owner to safely share their key (parent key) by
  * transferring a portion of the remaining time to a new key (child key).
  * @dev Throws if key is not valid.
  * @dev Throws if `_to` is the zero address
  * @param _to The recipient of the shared key
  * @param _tokenId the key to share
  * @param _timeShared The amount of time shared
  * checks if `_to` is a smart contract (code size > 0). If so, it calls
  * `onERC721Received` on `_to` and throws if the return value is not
  * `bytes4(keccak256('onERC721Received(address,address,uint,bytes)'))`.
  * @dev Emit Transfer event
  */
  function shareKey(
    address _to,
    uint _tokenId,
    uint _timeShared
  ) external;

  /// @notice A descriptive name for a collection of NFTs in this contract
  function name() external view returns (string memory _name);
  ///===================================================================

  /// From Openzeppelin's Ownable.sol
  function owner() external view returns (address );

  function isOwner() external view returns (bool );

  function renounceOwnership() external;

  function transferOwnership(address newOwner) external;
  ///===================================================================

  /// From ERC165.sol
  function supportsInterface(bytes4 interfaceId) external view returns (bool );
  ///===================================================================

}

// File: node_modules\@openzeppelin\contracts-ethereum-package\contracts\GSN\Context.sol

pragma solidity ^0.5.0;


/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context is Initializable {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

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

// File: @openzeppelin\contracts-ethereum-package\contracts\ownership\Ownable.sol

pragma solidity ^0.5.0;



/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be aplied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Initializable, Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function initialize(address sender) public initializer {
        _owner = sender;
        emit OwnershipTransferred(address(0), _owner);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _owner;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * > Note: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }

    uint256[50] private ______gap;
}

// File: @openzeppelin\contracts-ethereum-package\contracts\introspection\ERC165.sol

pragma solidity ^0.5.0;



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

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

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

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

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

    uint256[50] private ______gap;
}

// File: @openzeppelin\contracts-ethereum-package\contracts\token\ERC20\IERC20.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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: @openzeppelin\contracts-ethereum-package\contracts\utils\Address.sol

pragma solidity ^0.5.5;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing 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.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != 0x0 && codehash != accountHash);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @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].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

// File: node_modules\@openzeppelin\contracts-ethereum-package\contracts\math\SafeMath.sol

pragma solidity ^0.5.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, 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.
     *
     * _Available since v2.4.0._
     */
    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.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        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.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin\contracts-ethereum-package\contracts\token\ERC20\SafeERC20.sol

pragma solidity ^0.5.0;




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

    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.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "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\mixins\MixinFunds.sol

pragma solidity 0.5.14;






/**
 * @title An implementation of the money related functions.
 * @author HardlyDifficult (unlock-protocol.com)
 */
contract MixinFunds is Ownable
{
  using Address for address payable;
  using SafeERC20 for IERC20;

  /**
   * The token-type that this Lock is priced in.  If 0, then use ETH, else this is
   * a ERC20 token address.
   */
  address public tokenAddress;

  function _initializeMixinFunds(
    address _tokenAddress
  ) internal
  {
    tokenAddress = _tokenAddress;
    require(
      _tokenAddress == address(0) || IERC20(_tokenAddress).totalSupply() > 0,
      'INVALID_TOKEN'
    );
  }

  /**
   * Gets the current balance of the account provided.
   */
  function getBalance(
    address _tokenAddress,
    address _account
  ) public view
    returns (uint)
  {
    if(_tokenAddress == address(0)) {
      return _account.balance;
    } else {
      return IERC20(_tokenAddress).balanceOf(_account);
    }
  }

  /**
   * Ensures that the msg.sender has paid at least the price stated.
   *
   * With ETH, this means the function originally called was `payable` and the
   * transaction included at least the amount requested.
   *
   * Security: be wary of re-entrancy when calling this function.
   */
  function _chargeAtLeast(
    uint _price
  ) internal returns (uint)
  {
    if(_price > 0) {
      if(tokenAddress == address(0)) {
        require(msg.value >= _price, 'NOT_ENOUGH_FUNDS');
        return msg.value;
      } else {
        IERC20 token = IERC20(tokenAddress);
        token.safeTransferFrom(msg.sender, address(this), _price);
        return _price;
      }
    }
  }

  /**
   * Transfers funds from the contract to the account provided.
   *
   * Security: be wary of re-entrancy when calling this function.
   */
  function _transfer(
    address _tokenAddress,
    address _to,
    uint _amount
  ) internal
  {
    if(_amount > 0) {
      if(_tokenAddress == address(0)) {
        // https://diligence.consensys.net/blog/2019/09/stop-using-soliditys-transfer-now/
        address(uint160(_to)).sendValue(_amount);
      } else {
        IERC20 token = IERC20(_tokenAddress);
        token.safeTransfer(_to, _amount);
      }
    }
  }
}

// File: contracts\mixins\MixinDisableAndDestroy.sol

pragma solidity 0.5.14;



/**
 * @title Mixin allowing the Lock owner to disable a Lock (preventing new purchases)
 * and then destroy it.
 * @author HardlyDifficult
 * @dev `Mixins` are a design pattern seen in the 0x contracts.  It simply
 * separates logically groupings of code to ease readability.
 */
contract MixinDisableAndDestroy is
  Ownable,
  MixinFunds
{
  // Used to disable payable functions when deprecating an old lock
  bool public isAlive;

  event Destroy(
    uint balance,
    address indexed owner
  );

  event Disable();

  function _initializeMixinDisableAndDestroy(
  ) internal
  {
    isAlive = true;
  }

  // Only allow usage when contract is Alive
  modifier onlyIfAlive() {
    require(isAlive, 'LOCK_DEPRECATED');
    _;
  }

  /**
  * @dev Used to disable lock before migrating keys and/or destroying contract
   */
  function disableLock()
    external
    onlyOwner
    onlyIfAlive
  {
    emit Disable();
    isAlive = false;
  }

  /**
  * @dev Used to clean up old lock contracts from the blockchain
  * TODO: add a check to ensure all keys are INVALID!
   */
  function destroyLock()
    external
    onlyOwner
  {
    require(isAlive == false, 'DISABLE_FIRST');

    emit Destroy(address(this).balance, msg.sender);

    // this will send any ETH or ERC20 held by the lock to the owner
    _transfer(tokenAddress, msg.sender, getBalance(tokenAddress, address(this)));
    selfdestruct(msg.sender);

    // Note we don't clean up the `locks` data in Unlock.sol as it should not be necessary
    // and leaves some data behind ('Unlock.LockBalances') which may be helpful.
  }

}

// File: @openzeppelin\contracts-ethereum-package\contracts\access\Roles.sol

pragma solidity ^0.5.0;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev Give an account access to this role.
     */
    function add(Role storage role, address account) internal {
        require(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        role.bearer[account] = false;
    }

    /**
     * @dev Check if an account has this role.
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0), "Roles: account is the zero address");
        return role.bearer[account];
    }
}

// File: contracts\mixins\MixinLockManagerRole.sol

pragma solidity ^0.5.0;

// This contract mostly follows the pattern established by openzeppelin in
// openzeppelin/contracts-ethereum-package/contracts/access/roles





contract MixinLockManagerRole is Ownable {
  using Roles for Roles.Role;

  event LockManagerAdded(address indexed account);
  event LockManagerRemoved(address indexed account);

  Roles.Role private lockManagers;

  function _initializeMixinLockManagerRole(address sender) internal {
    if (!isLockManager(sender)) {
      lockManagers.add(sender);
    }
  }

  modifier onlyLockManager() {
    require(isLockManager(msg.sender), 'MixinLockManager: caller does not have the LockManager role');
    _;
  }

  function isLockManager(address account) public view returns (bool) {
    return lockManagers.has(account);
  }

  function addLockManager(address account) public onlyOwner {
    lockManagers.add(account);
    emit LockManagerAdded(account);
  }

  function renounceLockManager() public {
    lockManagers.remove(msg.sender);
    emit LockManagerRemoved(msg.sender);
  }
}

// File: contracts\interfaces\IUnlock.sol

pragma solidity 0.5.14;


/**
 * @title The Unlock Interface
 * @author Nick Furfaro (unlock-protocol.com)
**/

interface IUnlock {


  // Events
  event NewLock(
    address indexed lockOwner,
    address indexed newLockAddress
  );

  event ConfigUnlock(
    address publicLockAddress,
    string globalTokenSymbol,
    string globalTokenURI
  );

  event ResetTrackedValue(
    uint grossNetworkProduct,
    uint totalDiscountGranted
  );

  // Use initialize instead of a constructor to support proxies (for upgradeability via zos).
  function initialize(address _owner) external;

  /**
  * @dev Create lock
  * This deploys a lock for a creator. It also keeps track of the deployed lock.
  * @param _tokenAddress set to the ERC20 token address, or 0 for ETH.
  * @param _salt an identifier for the Lock, which is unique for the user.
  * This may be implemented as a sequence ID or with RNG. It's used with `create2`
  * to know the lock's address before the transaction is mined.
  */
  function createLock(
    uint _expirationDuration,
    address _tokenAddress,
    uint _keyPrice,
    uint _maxNumberOfKeys,
    string calldata _lockName,
    bytes12 _salt
  ) external;

    /**
   * This function keeps track of the added GDP, as well as grants of discount tokens
   * to the referrer, if applicable.
   * The number of discount tokens granted is based on the value of the referal,
   * the current growth rate and the lock's discount token distribution rate
   * This function is invoked by a previously deployed lock only.
   */
  function recordKeyPurchase(
    uint _value,
    address _referrer // solhint-disable-line no-unused-vars
  )
    external;

    /**
   * This function will keep track of consumed discounts by a given user.
   * It will also grant discount tokens to the creator who is granting the discount based on the
   * amount of discount and compensation rate.
   * This function is invoked by a previously deployed lock only.
   */
  function recordConsumedDiscount(
    uint _discount,
    uint _tokens // solhint-disable-line no-unused-vars
  )
    external;

    /**
   * This function returns the discount available for a user, when purchasing a
   * a key from a lock.
   * This does not modify the state. It returns both the discount and the number of tokens
   * consumed to grant that discount.
   */
  function computeAvailableDiscountFor(
    address _purchaser, // solhint-disable-line no-unused-vars
    uint _keyPrice // solhint-disable-line no-unused-vars
  )
    external
    view
    returns (uint discount, uint tokens);

  // Function to read the globalTokenURI field.
  function globalBaseTokenURI()
    external
    view
    returns (string memory);

  // Function to read the globalTokenSymbol field.
  function globalTokenSymbol()
    external
    view
    returns (string memory);

  /** Function for the owner to update configuration variables.
   *  Should throw if called by other than owner.
   */
  function configUnlock(
    address _publicLockAddress,
    string calldata _symbol,
    string calldata _URI
  )
    external;

  // Allows the owner to change the value tracking variables as needed.
  function resetTrackedValue(
    uint _grossNetworkProduct,
    uint _totalDiscountGranted
  ) external;
}

// File: contracts\mixins\MixinLockCore.sol

pragma solidity 0.5.14;








/**
 * @title Mixin for core lock data and functions.
 * @author HardlyDifficult
 * @dev `Mixins` are a design pattern seen in the 0x contracts.  It simply
 * separates logically groupings of code to ease readability.
 */
contract MixinLockCore is
  IERC721Enumerable,
  Ownable,
  MixinFunds,
  MixinDisableAndDestroy,
  MixinLockManagerRole
{

  event Withdrawal(
    address indexed sender,
    address indexed tokenAddress,
    address indexed beneficiary,
    uint amount
  );

  event PricingChanged(
    uint oldKeyPrice,
    uint keyPrice,
    address oldTokenAddress,
    address tokenAddress
  );

  // Unlock Protocol address
  // TODO: should we make that private/internal?
  IUnlock public unlockProtocol;

  // Duration in seconds for which the keys are valid, after creation
  // should we take a smaller type use less gas?
  // TODO: add support for a timestamp instead of duration
  uint public expirationDuration;

  // price in wei of the next key
  // TODO: allow support for a keyPriceCalculator which could set prices dynamically
  uint public keyPrice;

  // Max number of keys sold if the keyReleaseMechanism is public
  uint public maxNumberOfKeys;

  // A count of how many new key purchases there have been
  uint internal _totalSupply;

  // The account which will receive funds on withdrawal
  address public beneficiary;

  // The denominator component for values specified in basis points.
  uint public constant BASIS_POINTS_DEN = 10000;

  // Ensure that the Lock has not sold all of its keys.
  modifier notSoldOut() {
    require(maxNumberOfKeys > _totalSupply, 'LOCK_SOLD_OUT');
    _;
  }

  modifier onlyOwnerOrBeneficiary()
  {
    require(
      msg.sender == owner() || msg.sender == beneficiary,
      'ONLY_LOCK_OWNER_OR_BENEFICIARY'
    );
    _;
  }

  function _initializeMixinLockCore(
    address _beneficiary,
    uint _expirationDuration,
    uint _keyPrice,
    uint _maxNumberOfKeys
  ) internal
  {
    require(_expirationDuration <= 100 * 365 * 24 * 60 * 60, 'MAX_EXPIRATION_100_YEARS');
    unlockProtocol = IUnlock(msg.sender); // Make sure we link back to Unlock's smart contract.
    beneficiary = _beneficiary;
    expirationDuration = _expirationDuration;
    keyPrice = _keyPrice;
    maxNumberOfKeys = _maxNumberOfKeys;
  }

  // The version number of the current implementation on this network
  function publicLockVersion(
  ) public pure
    returns (uint)
  {
    return 6;
  }

  /**
   * @dev Called by owner to withdraw all funds from the lock and send them to the `beneficiary`.
   * @param _tokenAddress specifies the token address to withdraw or 0 for ETH. This is usually
   * the same as `tokenAddress` in MixinFunds.
   * @param _amount specifies the max amount to withdraw, which may be reduced when
   * considering the available balance. Set to 0 or MAX_UINT to withdraw everything.
   *
   * TODO: consider allowing anybody to trigger this as long as it goes to owner anyway?
   *  -- however be wary of draining funds as it breaks the `cancelAndRefund` and `fullRefund`
   * use cases.
   */
  function withdraw(
    address _tokenAddress,
    uint _amount
  ) external
    onlyOwnerOrBeneficiary
  {
    uint balance = getBalance(_tokenAddress, address(this));
    uint amount;
    if(_amount == 0 || _amount > balance)
    {
      require(balance > 0, 'NOT_ENOUGH_FUNDS');
      amount = balance;
    }
    else
    {
      amount = _amount;
    }

    emit Withdrawal(msg.sender, _tokenAddress, beneficiary, amount);
    // Security: re-entrancy not a risk as this is the last line of an external function
    _transfer(_tokenAddress, beneficiary, amount);
  }

  /**
   * A function which lets the owner of the lock change the pricing for future purchases.
   * This consists of 2 parts: The token address and the price in the given token.
   * In order to set the token to ETH, use 0 for the token Address.
   */
  function updateKeyPricing(
    uint _keyPrice,
    address _tokenAddress
  )
    external
    onlyLockManager
    onlyIfAlive
  {
    uint oldKeyPrice = keyPrice;
    address oldTokenAddress = tokenAddress;
    require(
      _tokenAddress == address(0) || IERC20(_tokenAddress).totalSupply() > 0,
      'INVALID_TOKEN'
    );
    keyPrice = _keyPrice;
    tokenAddress = _tokenAddress;
    emit PricingChanged(oldKeyPrice, keyPrice, oldTokenAddress, tokenAddress);
  }

  /**
   * A function which lets the owner of the lock update the beneficiary account,
   * which receives funds on withdrawal.
   */
  function updateBeneficiary(
    address _beneficiary
  ) external
    onlyOwnerOrBeneficiary
  {
    require(_beneficiary != address(0), 'INVALID_ADDRESS');
    beneficiary = _beneficiary;
  }

  function totalSupply()
    public
    view returns(uint256)
  {
    return _totalSupply;
  }
}

// File: contracts\mixins\MixinKeys.sol

pragma solidity 0.5.14;




/**
 * @title Mixin for managing `Key` data.
 * @author HardlyDifficult
 * @dev `Mixins` are a design pattern seen in the 0x contracts.  It simply
 * separates logically groupings of code to ease readability.
 */
contract MixinKeys is
  Ownable,
  MixinLockCore
{
  // The struct for a key
  struct Key {
    uint tokenId;
    uint expirationTimestamp;
  }

  // Called when the Lock owner expires a user's Key
  event ExpireKey(uint indexed tokenId);

  // Keys
  // Each owner can have at most exactly one key
  // TODO: could we use public here? (this could be confusing though because it getter will
  // return 0 values when missing a key)
  mapping (address => Key) internal keyByOwner;

  // Each tokenId can have at most exactly one owner at a time.
  // Returns 0 if the token does not exist
  // TODO: once we decouple tokenId from owner address (incl in js), then we can consider
  // merging this with totalSupply into an array instead.
  mapping (uint => address) internal _ownerOf;

  // Addresses of owners are also stored in an array.
  // Addresses are never removed by design to avoid abuses around referals
  address[] public owners;

  // Ensures that an owner owns or has owned a key in the past
  modifier ownsOrHasOwnedKey(
    address _owner
  ) {
    require(
      keyByOwner[_owner].expirationTimestamp > 0, 'HAS_NEVER_OWNED_KEY'
    );
    _;
  }

  // Ensures that an owner has a valid key
  modifier hasValidKey(
    address _owner
  ) {
    require(
      getHasValidKey(_owner), 'KEY_NOT_VALID'
    );
    _;
  }

  // Ensures that a key has an owner
  modifier isKey(
    uint _tokenId
  ) {
    require(
      _ownerOf[_tokenId] != address(0), 'NO_SUCH_KEY'
    );
    _;
  }

  // Ensure that the caller owns the key
  modifier onlyKeyOwner(
    uint _tokenId
  ) {
    require(
      isKeyOwner(_tokenId, msg.sender), 'ONLY_KEY_OWNER'
    );
    _;
  }

  /**
   * A function which lets the owner of the lock expire a users' key.
   */
  function expireKeyFor(
    address _owner
  )
    public
    onlyOwner
    hasValidKey(_owner)
  {
    Key storage key = keyByOwner[_owner];
    key.expirationTimestamp = block.timestamp; // Effectively expiring the key
    emit ExpireKey(key.tokenId);
  }

  /**
   * In the specific case of a Lock, each owner can own only at most 1 key.
   * @return The number of NFTs owned by `_owner`, either 0 or 1.
  */
  function balanceOf(
    address _owner
  )
    public
    view
    returns (uint)
  {
    require(_owner != address(0), 'INVALID_ADDRESS');
    return getHasValidKey(_owner) ? 1 : 0;
  }

  /**
   * Checks if the user has a non-expired key.
   */
  function getHasValidKey(
    address _owner
  )
    public
    view
    returns (bool)
  {
    return keyByOwner[_owner].expirationTimestamp > block.timestamp;
  }

  /**
   * @notice Find the tokenId for a given user
   * @return The tokenId of the NFT, else revert
  */
  function getTokenIdFor(
    address _account
  )
    public view
    hasValidKey(_account)
    returns (uint)
  {
    return keyByOwner[_account].tokenId;
  }

 /**
  * A function which returns a subset of the keys for this Lock as an array
  * @param _page the page of key owners requested when faceted by page size
  * @param _pageSize the number of Key Owners requested per page
  */
  function getOwnersByPage(uint _page, uint _pageSize)
    public
    view
    returns (address[] memory)
  {
    require(owners.length > 0, 'NO_OUTSTANDING_KEYS');
    uint pageSize = _pageSize;
    uint _startIndex = _page * pageSize;
    uint endOfPageIndex;

    if (_startIndex + pageSize > owners.length) {
      endOfPageIndex = owners.length;
      pageSize = owners.length - _startIndex;
    } else {
      endOfPageIndex = (_startIndex + pageSize);
    }

    // new temp in-memory array to hold pageSize number of requested owners:
    address[] memory ownersByPage = new address[](pageSize);
    uint pageIndex = 0;

    // Build the requested set of owners into a new temporary array:
    for (uint i = _startIndex; i < endOfPageIndex; i++) {
      ownersByPage[pageIndex] = owners[i];
      pageIndex++;
    }

    return ownersByPage;
  }

  /**
   * Checks if the given address owns the given tokenId.
   */
  function isKeyOwner(
    uint _tokenId,
    address _owner
  ) public view
    returns (bool)
  {
    return _ownerOf[_tokenId] == _owner;
  }

  /**
  * @dev Returns the key's ExpirationTimestamp field for a given owner.
  * @param _owner address of the user for whom we search the key
  */
  function keyExpirationTimestampFor(
    address _owner
  )
    public view
    ownsOrHasOwnedKey(_owner)
    returns (uint timestamp)
  {
    return keyByOwner[_owner].expirationTimestamp;
  }

  /**
   * Public function which returns the total number of unique owners (both expired
   * and valid).  This may be larger than totalSupply.
   */
  function numberOfOwners()
    public
    view
    returns (uint)
  {
    return owners.length;
  }
  // Returns the owner of a given tokenId
  function ownerOf(
    uint _tokenId
  ) public view
    isKey(_tokenId)
    returns(address)
  {
    return _ownerOf[_tokenId];
  }

  /**
   * Assigns the key a new tokenId (from totalSupply) if it does not already have
   * one assigned.
   */
  function _assignNewTokenId(
    Key storage _key
  ) internal
  {
    if (_key.tokenId == 0) {
      // This is a brand new owner
      // We increment the tokenId counter
      _totalSupply++;
      // we assign the incremented `_totalSupply` as the tokenId for the new key
      _key.tokenId = _totalSupply;
    }
  }

  /**
   * Records the owner of a given tokenId
   */
  function _recordOwner(
    address _owner,
    uint _tokenId
  ) internal
  {
    if (_ownerOf[_tokenId] != _owner) {
      // TODO: this may include duplicate entries
      owners.push(_owner);
      // We register the owner of the tokenID
      _ownerOf[_tokenId] = _owner;
    }
  }
}

// File: contracts\mixins\MixinApproval.sol

pragma solidity 0.5.14;




/**
 * @title Mixin for the Approval related functions needed to meet the ERC721
 * standard.
 * @author HardlyDifficult
 * @dev `Mixins` are a design pattern seen in the 0x contracts.  It simply
 * separates logically groupings of code to ease readability.
 */
contract MixinApproval is
  MixinDisableAndDestroy,
  MixinKeys
{
  // Keeping track of approved transfers
  // This is a mapping of addresses which have approved
  // the transfer of a key to another address where their key can be transferred
  // Note: the approver may actually NOT have a key... and there can only
  // be a single approved beneficiary
  // Note 2: for transfer, both addresses will be different
  // Note 3: for sales (new keys on restricted locks), both addresses will be the same
  mapping (uint => address) private approved;

  // Keeping track of approved operators for a Key owner.
  // Since an owner can have up to 1 Key, this is similiar to above
  // but the approval does not reset when a transfer occurs.
  mapping (address => mapping (address => bool)) private ownerToOperatorApproved;

  // Ensure that the caller has a key
  // or that the caller has been approved
  // for ownership of that key
  modifier onlyKeyOwnerOrApproved(
    uint _tokenId
  ) {
    require(
      isKeyOwner(_tokenId, msg.sender) ||
        _isApproved(_tokenId, msg.sender) ||
        isApprovedForAll(_ownerOf[_tokenId], msg.sender),
      'ONLY_KEY_OWNER_OR_APPROVED');
    _;
  }

  /**
   * This approves _approved to get ownership of _tokenId.
   * Note: that since this is used for both purchase and transfer approvals
   * the approved token may not exist.
   */
  function approve(
    address _approved,
    uint _tokenId
  )
    public
    onlyIfAlive
    onlyKeyOwnerOrApproved(_tokenId)
  {
    require(msg.sender != _approved, 'APPROVE_SELF');

    approved[_tokenId] = _approved;
    emit Approval(_ownerOf[_tokenId], _approved, _tokenId);
  }

  /**
   * @dev Sets or unsets the approval of a given operator
   * An operator is allowed to transfer all tokens of the sender on their behalf
   * @param _to operator address to set the approval
   * @param _approved representing the status of the approval to be set
   */
  function setApprovalForAll(
    address _to,
    bool _approved
  ) public
    onlyIfAlive
  {
    require(_to != msg.sender, 'APPROVE_SELF');
    ownerToOperatorApproved[msg.sender][_to] = _approved;
    emit ApprovalForAll(msg.sender, _to, _approved);
  }

  /**
   * Will return the approved recipient for a key, if any.
   */
  function getApproved(
    uint _tokenId
  ) public view
    returns (address)
  {
    address approvedRecipient = approved[_tokenId];
    require(approvedRecipient != address(0), 'NONE_APPROVED');
    return approvedRecipient;
  }

  /**
   * @dev Tells whether an operator is approved by a given owner
   * @param _owner owner address which you want to query the approval of
   * @param _operator operator address which you want to query the approval of
   * @return bool whether the given operator is approved by the given owner
   */
  function isApprovedForAll(
    address _owner,
    address _operator
  ) public view
    returns (bool)
  {
    return ownerToOperatorApproved[_owner][_operator];
  }

  /**
   * @dev Checks if the given user is approved to transfer the tokenId.
   */
  function _isApproved(
    uint _tokenId,
    address _user
  ) internal view
    returns (bool)
  {
    return approved[_tokenId] == _user;
  }

  /**
   * @dev Function to clear current approval of a given token ID
   * @param _tokenId uint256 ID of the token to be transferred
   */
  function _clearApproval(
    uint256 _tokenId
  ) internal
  {
    if (approved[_tokenId] != address(0)) {
      approved[_tokenId] = address(0);
    }
  }
}

// File: contracts\mixins\MixinERC721Enumerable.sol

pragma solidity 0.5.14;






/**
 * @title Implements the ERC-721 Enumerable extension.
 */
contract MixinERC721Enumerable is
  IERC721Enumerable,
  ERC165,
  MixinLockCore, // Implements totalSupply
  MixinKeys
{
  function _initializeMixinERC721Enumerable() internal
  {
    /**
     * register the supported interface to conform to ERC721Enumerable via ERC165
     * 0x780e9d63 ===
     *     bytes4(keccak256('totalSupply()')) ^
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^
     *     bytes4(keccak256('tokenByIndex(uint256)'))
     */
    _registerInterface(0x780e9d63);
  }

  /// @notice Enumerate valid NFTs
  /// @dev Throws if `_index` >= `totalSupply()`.
  /// @param _index A counter less than `totalSupply()`
  /// @return The token identifier for the `_index`th NFT,
  ///  (sort order not specified)
  function tokenByIndex(
    uint256 _index
  ) public view
    returns (uint256)
  {
    require(_index < _totalSupply, 'OUT_OF_RANGE');
    return _index;
  }

  /// @notice Enumerate NFTs assigned to an owner
  /// @dev Throws if `_index` >= `balanceOf(_owner)` or if
  ///  `_owner` is the zero address, representing invalid NFTs.
  /// @param _owner An address where we are interested in NFTs owned by them
  /// @param _index A counter less than `balanceOf(_owner)`
  /// @return The token identifier for the `_index`th NFT assigned to `_owner`,
  ///   (sort order not specified)
  function tokenOfOwnerByIndex(
    address _owner,
    uint256 _index
  ) public view
    returns (uint256)
  {
    require(_index == 0, 'ONLY_ONE_KEY_PER_OWNER');
    return getTokenIdFor(_owner);
  }
}

// File: contracts\interfaces\IUnlockEventHooks.sol

pragma solidity 0.5.14;


interface IUnlockEventHooks {
  /**
   * @notice If the lock owner has registered an implementer for this interface with ERC-1820
   * then this hook is called with every key sold.
   * @dev Use the interface name `keccak256("IUnlockEventHooks_keySold")`
   * which is 4d99da10ff5120f726d35edd8dbd417bbe55d90453b8432acd284e650ee2c6f0
   * @param from the msg.sender making the purchase
   * @param to the account which will be granted a key
   * @param referrer the account which referred this key sale
   * @param pricePaid the amount paid for the key, in the lock's currency (ETH or a ERC-20 token)
   * @param data arbitrary data populated by the front-end which initiated the sale
   */
  function keySold(
    address from,
    address to,
    address referrer,
    uint256 pricePaid,
    bytes calldata data
  ) external;

  /**
   * @notice If the lock owner has registered an implementer for this interface with ERC-1820
   * then this hook is called with every key cancel.
   * @dev Use the interface name `keccak256("IUnlockEventHooks_keyCancel")`
   * which is 0xd6342b4bfdf66164985c9f5fe235f643a035ee12f507d7bd0f8c89e07e790f68
   * @param operator the msg.sender issuing the cancel
   * @param to the account which had the key canceled
   * @param refund the amount sent to the `to` account (ETH or a ERC-20 token)
   */
  function keyCancel(
    address operator,
    address to,
    uint256 refund
  ) external;
}

// File: @openzeppelin\contracts\introspection\IERC1820Registry.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface of the global ERC1820 Registry, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register
 * implementers for interfaces in this registry, as well as query support.
 *
 * Implementers may be shared by multiple accounts, and can also implement more
 * than a single interface for each account. Contracts can implement interfaces
 * for themselves, but externally-owned accounts (EOA) must delegate this to a
 * contract.
 *
 * {IERC165} interfaces can also be queried via the registry.
 *
 * For an in-depth explanation and source code analysis, see the EIP text.
 */
interface IERC1820Registry {
    /**
     * @dev Sets `newManager` as the manager for `account`. A manager of an
     * account is able to set interface implementers for it.
     *
     * By default, each account is its own manager. Passing a value of `0x0` in
     * `newManager` will reset the manager to this initial state.
     *
     * Emits a {ManagerChanged} event.
     *
     * Requirements:
     *
     * - the caller must be the current manager for `account`.
     */
    function setManager(address account, address newManager) external;

    /**
     * @dev Returns the manager for `account`.
     *
     * See {setManager}.
     */
    function getManager(address account) external view returns (address);

    /**
     * @dev Sets the `implementer` contract as `account`'s implementer for
     * `interfaceHash`.
     *
     * `account` being the zero address is an alias for the caller's address.
     * The zero address can also be used in `implementer` to remove an old one.
     *
     * See {interfaceHash} to learn how these are created.
     *
     * Emits an {InterfaceImplementerSet} event.
     *
     * Requirements:
     *
     * - the caller must be the current manager for `account`.
     * - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not
     * end in 28 zeroes).
     * - `implementer` must implement {IERC1820Implementer} and return true when
     * queried for support, unless `implementer` is the caller. See
     * {IERC1820Implementer-canImplementInterfaceForAddress}.
     */
    function setInterfaceImplementer(address account, bytes32 interfaceHash, address implementer) external;

    /**
     * @dev Returns the implementer of `interfaceHash` for `account`. If no such
     * implementer is registered, returns the zero address.
     *
     * If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28
     * zeroes), `account` will be queried for support of it.
     *
     * `account` being the zero address is an alias for the caller's address.
     */
    function getInterfaceImplementer(address account, bytes32 interfaceHash) external view returns (address);

    /**
     * @dev Returns the interface hash for an `interfaceName`, as defined in the
     * corresponding
     * https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP].
     */
    function interfaceHash(string calldata interfaceName) external pure returns (bytes32);

    /**
     *  @notice Updates the cache with whether the contract implements an ERC165 interface or not.
     *  @param account Address of the contract for which to update the cache.
     *  @param interfaceId ERC165 interface for which to update the cache.
     */
    function updateERC165Cache(address account, bytes4 interfaceId) external;

    /**
     *  @notice Checks whether a contract implements an ERC165 interface or not.
     *  If the result is not cached a direct lookup on the contract address is performed.
     *  If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling
     *  {updateERC165Cache} with the contract address.
     *  @param account Address of the contract to check.
     *  @param interfaceId ERC165 interface to check.
     *  @return True if `account` implements `interfaceId`, false otherwise.
     */
    function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool);

    /**
     *  @notice Checks whether a contract implements an ERC165 interface or not without using nor updating the cache.
     *  @param account Address of the contract to check.
     *  @param interfaceId ERC165 interface to check.
     *  @return True if `account` implements `interfaceId`, false otherwise.
     */
    function implementsERC165InterfaceNoCache(address account, bytes4 interfaceId) external view returns (bool);

    event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer);

    event ManagerChanged(address indexed account, address indexed newManager);
}

// File: contracts\mixins\MixinEventHooks.sol

pragma solidity 0.5.14;





/**
 * @title Implements callback hooks for Locks.
 * @author Nick Mancuso (unlock-protocol.com)
 */
contract MixinEventHooks is
  MixinLockCore
{
  IERC1820Registry public constant erc1820 = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24);

  // `keccak256("IUnlockEventHooks_keySold")`
  bytes32 public constant keySoldInterfaceId = 0x4d99da10ff5120f726d35edd8dbd417bbe55d90453b8432acd284e650ee2c6f0;

  // `keccak256("IUnlockEventHooks_keyCancel")`
  bytes32 public constant keyCancelInterfaceId = 0xd6342b4bfdf66164985c9f5fe235f643a035ee12f507d7bd0f8c89e07e790f68;

  /**
   * @dev called anytime a key is sold in order to inform the hook if there is one registered.
   */
  function _onKeySold(
    address _to,
    address _referrer,
    uint256 _pricePaid,
    bytes memory _data
  ) internal
  {
    address implementer = erc1820.getInterfaceImplementer(beneficiary, keySoldInterfaceId);
    if(implementer != address(0))
    {
      IUnlockEventHooks(implementer).keySold(msg.sender, _to, _referrer, _pricePaid, _data);
    }
  }

  /**
   * @dev called anytime a key is canceled in order to inform the hook if there is one registered.
   */
  function _onKeyCancel(
    address _to,
    uint256 _refund
  ) internal
  {
    address implementer = erc1820.getInterfaceImplementer(beneficiary, keyCancelInterfaceId);
    if(implementer != address(0))
    {
      IUnlockEventHooks(implementer).keyCancel(msg.sender, _to, _refund);
    }
  }
}

// File: contracts\mixins\MixinGrantKeys.sol

pragma solidity 0.5.14;




/**
 * @title Mixin allowing the Lock owner to grant / gift keys to users.
 * @author HardlyDifficult
 * @dev `Mixins` are a design pattern seen in the 0x contracts.  It simply
 * separates logically groupings of code to ease readability.
 */
contract MixinGrantKeys is
  Ownable,
  MixinKeys
{
  /**
   * Allows the Lock owner to give a collection of users a key with no charge.
   * Each key may be assigned a different expiration date.
   */
  function grantKeys(
    address[] calldata _recipients,
    uint[] calldata _expirationTimestamps
  ) external
    onlyOwner
  {
    for(uint i = 0; i < _recipients.length; i++) {
      address recipient = _recipients[i];
      uint expirationTimestamp = _expirationTimestamps[i];

      require(recipient != address(0), 'INVALID_ADDRESS');

      Key storage toKey = keyByOwner[recipient];
      require(expirationTimestamp > toKey.expirationTimestamp, 'ALREADY_OWNS_KEY');

      _assignNewTokenId(toKey);
      _recordOwner(recipient, toKey.tokenId);
      toKey.expirationTimestamp = expirationTimestamp;

      // trigger event
      emit Transfer(
        address(0), // This is a creation.
        recipient,
        toKey.tokenId
      );
    }
  }
}

// File: contracts\UnlockUtils.sol

pragma solidity 0.5.14;

// This contract provides some utility methods for use with the unlock protocol smart contracts.
// Borrowed from:
// https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol#L943

library UnlockUtils {

  function strConcat(
    string memory _a,
    string memory _b,
    string memory _c,
    string memory _d
  ) internal pure
    returns (string memory _concatenatedString)
  {
    bytes memory _ba = bytes(_a);
    bytes memory _bb = bytes(_b);
    bytes memory _bc = bytes(_c);
    bytes memory _bd = bytes(_d);
    string memory abcd = new string(_ba.length + _bb.length + _bc.length + _bd.length);
    bytes memory babcd = bytes(abcd);
    uint k = 0;
    uint i = 0;
    for (i = 0; i < _ba.length; i++) {
      babcd[k++] = _ba[i];
    }
    for (i = 0; i < _bb.length; i++) {
      babcd[k++] = _bb[i];
    }
    for (i = 0; i < _bc.length; i++) {
      babcd[k++] = _bc[i];
    }
    for (i = 0; i < _bd.length; i++) {
      babcd[k++] = _bd[i];
    }
    return string(babcd);
  }

  function uint2Str(
    uint _i
  ) internal pure
    returns (string memory _uintAsString)
  {
    // make a copy of the param to avoid security/no-assign-params error
    uint c = _i;
    if (_i == 0) {
      return '0';
    }
    uint j = _i;
    uint len;
    while (j != 0) {
      len++;
      j /= 10;
    }
    bytes memory bstr = new bytes(len);
    uint k = len - 1;
    while (c != 0) {
      bstr[k--] = byte(uint8(48 + c % 10));
      c /= 10;
    }
    return string(bstr);
  }

  function address2Str(
    address _addr
  ) internal pure
    returns(string memory)
  {
    bytes32 value = bytes32(uint256(_addr));
    bytes memory alphabet = '0123456789abcdef';
    bytes memory str = new bytes(42);
    str[0] = '0';
    str[1] = 'x';
    for (uint i = 0; i < 20; i++) {
      str[2+i*2] = alphabet[uint8(value[i + 12] >> 4)];
      str[3+i*2] = alphabet[uint8(value[i + 12] & 0x0f)];
    }
    return string(str);
  }
}

// File: contracts\mixins\MixinLockMetadata.sol

pragma solidity 0.5.14;







/**
 * @title Mixin for metadata about the Lock.
 * @author HardlyDifficult
 * @dev `Mixins` are a design pattern seen in the 0x contracts.  It simply
 * separates logically groupings of code to ease readability.
 */
contract MixinLockMetadata is
  IERC721Enumerable,
  ERC165,
  Ownable,
  MixinLockCore,
  MixinKeys
{
  using UnlockUtils for uint;
  using UnlockUtils for address;
  using UnlockUtils for string;

  /// A descriptive name for a collection of NFTs in this contract.Defaults to "Unlock-Protocol" but is settable by lock owner
  string public name;

  /// An abbreviated name for NFTs in this contract. Defaults to "KEY" but is settable by lock owner
  string private lockSymbol;

  // the base Token URI for this Lock. If not set by lock owner, the global URI stored in Unlock is used.
  string private baseTokenURI;

  event NewLockSymbol(
    string symbol
  );

  function _initializeMixinLockMetadata(
    string memory _lockName
  ) internal
  {
    ERC165.initialize();
    name = _lockName;
    // registering the optional erc721 metadata interface with ERC165.sol using
    // the ID specified in the standard: https://eips.ethereum.org/EIPS/eip-721
    _registerInterface(0x5b5e139f);
  }

  /**
   * Allows the Lock owner to assign a descriptive name for this Lock.
   */
  function updateLockName(
    string calldata _lockName
  ) external
    onlyOwner
  {
    name = _lockName;
  }

  /**
   * Allows the Lock owner to assign a Symbol for this Lock.
   */
  function updateLockSymbol(
    string calldata _lockSymbol
  ) external
    onlyOwner
  {
    lockSymbol = _lockSymbol;
    emit NewLockSymbol(_lockSymbol);
  }

  /**
    * @dev Gets the token symbol
    * @return string representing the token name
    */
  function symbol()
    external view
    returns(string memory)
  {
    if(bytes(lockSymbol).length == 0) {
      return unlockProtocol.globalTokenSymbol();
    } else {
      return lockSymbol;
    }
  }

  /**
   * Allows the Lock owner to update the baseTokenURI for this Lock.
   */
  function setBaseTokenURI(
    string calldata _baseTokenURI
  ) external
    onlyOwner
  {
    baseTokenURI = _baseTokenURI;
  }

  /**  @notice A distinct Uniform Resource Identifier (URI) for a given asset.
   * @dev Throws if `_tokenId` is not a valid NFT. URIs are defined in RFC
   *  3986. The URI may point to a JSON file that conforms to the "ERC721
   *  Metadata JSON Schema".
   * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
   */
  function tokenURI(
    uint256 _tokenId
  ) external
    view
    isKey(_tokenId)
    returns(string memory)
  {
    string memory URI;
    if(bytes(baseTokenURI).length == 0) {
      URI = unlockProtocol.globalBaseTokenURI();
    } else {
      URI = baseTokenURI;
    }

    return URI.strConcat(
      address(this).address2Str(),
      '/',
      _tokenId.uint2Str()
    );
  }
}

// File: contracts\mixins\MixinPurchase.sol

pragma solidity 0.5.14;








/**
 * @title Mixin for the purchase-related functions.
 * @author HardlyDifficult
 * @dev `Mixins` are a design pattern seen in the 0x contracts.  It simply
 * separates logically groupings of code to ease readability.
 */
contract MixinPurchase is
  MixinFunds,
  MixinDisableAndDestroy,
  MixinLockCore,
  MixinKeys,
  MixinEventHooks
{
  using SafeMath for uint;

  /**
  * @dev Purchase function
  * @param _value the number of tokens to pay for this purchase >= the current keyPrice - any applicable discount
  * (_value is ignored when using ETH)
  * @param _recipient address of the recipient of the purchased key
  * @param _referrer address of the user making the referral
  * @param _data arbitrary data populated by the front-end which initiated the sale
  * @dev Setting _value to keyPrice exactly doubles as a security feature. That way if the lock owner increases the
  * price while my transaction is pending I can't be charged more than I expected (only applicable to ERC-20 when more
  * than keyPrice is approved for spending).
  */
  function purchase(
    uint256 _value,
    address _recipient,
    address _referrer,
    bytes calldata _data
  ) external payable
    onlyIfAlive
    notSoldOut
  {
    require(_recipient != address(0), 'INVALID_ADDRESS');

    // Assign the key
    Key storage toKey = keyByOwner[_recipient];

    if (toKey.tokenId == 0) {
      // Assign a new tokenId (if a new owner or previously transferred)
      _assignNewTokenId(toKey);
      _recordOwner(_recipient, toKey.tokenId);
    }

    if (toKey.expirationTimestamp >= block.timestamp) {
      // This is an existing owner trying to extend their key
      toKey.expirationTimestamp = toKey.expirationTimestamp.add(expirationDuration);
    } else {
      // SafeAdd is not required here since expirationDuration is capped to a tiny value
      // (relative to the size of a uint)
      toKey.expirationTimestamp = block.timestamp + expirationDuration;
    }

    // Let's get the actual price for the key from the Unlock smart contract
    uint discount;
    uint tokens;
    uint inMemoryKeyPrice = keyPrice;
    (discount, tokens) = unlockProtocol.computeAvailableDiscountFor(_recipient, inMemoryKeyPrice);

    if (discount > inMemoryKeyPrice) {
      inMemoryKeyPrice = 0;
    } else {
      // SafeSub not required as the if statement already confirmed `inMemoryKeyPrice - discount` cannot underflow
      inMemoryKeyPrice -= discount;
    }

    if (discount > 0) {
      unlockProtocol.recordConsumedDiscount(discount, tokens);
    }

    unlockProtocol.recordKeyPurchase(inMemoryKeyPrice, getHasValidKey(_referrer) ? _referrer : address(0));

    // trigger event
    emit Transfer(
      address(0), // This is a creation.
      _recipient,
      toKey.tokenId
    );

    // We explicitly allow for greater amounts of ETH or tokens to allow 'donations'
    if(tokenAddress != address(0)) {
      require(_value >= inMemoryKeyPrice, 'INSUFFICIENT_VALUE');
      inMemoryKeyPrice = _value;
    }
    // Security: after state changes to minimize risk of re-entrancy
    uint pricePaid = _chargeAtLeast(inMemoryKeyPrice);

    // Security: last line to minimize risk of re-entrancy
    _onKeySold(_recipient, _referrer, pricePaid, _data);
  }
}

// File: @openzeppelin\contracts-ethereum-package\contracts\cryptography\ECDSA.sol

pragma solidity ^0.5.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * NOTE: This call _does not revert_ if the signature is invalid, or
     * if the signer is otherwise unable to be retrieved. In those scenarios,
     * the zero address is returned.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Check the signature length
        if (signature.length != 65) {
            return (address(0));
        }

        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // ecrecover takes the signature parameters, and the only way to get them
        // currently is to use assembly.
        // solhint-disable-next-line no-inline-assembly
        assembly {
            r := mload(add(signature, 0x20))
            s := mload(add(signature, 0x40))
            v := byte(0, mload(add(signature, 0x60)))
        }

        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return address(0);
        }

        if (v != 27 && v != 28) {
            return address(0);
        }

        // If the signature is valid (and not malleable), return the signer address
        return ecrecover(hash, v, r, s);
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * replicates the behavior of the
     * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]
     * JSON-RPC method.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }
}

// File: contracts\mixins\MixinSignatures.sol

pragma solidity 0.5.14;



contract MixinSignatures
{
  /// @notice emits anytime the nonce used for off-chain approvals changes.
  event NonceChanged(
    address indexed keyOwner,
    uint nextAvailableNonce
  );

  // Stores a nonce per user to use for signed messages
  mapping(address => uint) public keyOwnerToNonce;

  /// @notice Validates an off-chain approval signature.
  /// @dev If valid the nonce is consumed, else revert.
  modifier consumeOffchainApproval(
    bytes32 _hash,
    address _keyOwner,
    uint8 _v,
    bytes32 _r,
    bytes32 _s
  )
  {
    require(
      ecrecover(
        ECDSA.toEthSignedMessageHash(_hash),
        _v,
        _r,
        _s
      ) == _keyOwner, 'INVALID_SIGNATURE'
    );
    keyOwnerToNonce[_keyOwner]++;
    emit NonceChanged(_keyOwner, keyOwnerToNonce[_keyOwner]);
    _;
  }

  /**
   * @notice Sets the minimum nonce for a valid off-chain approval message from the
   * senders account.
   * @dev This can be used to invalidate a previously signed message.
   */
  function invalidateOffchainApproval(
    uint _nextAvailableNonce
  ) external
  {
    require(_nextAvailableNonce > keyOwnerToNonce[msg.sender], 'NONCE_ALREADY_USED');
    keyOwnerToNonce[msg.sender] = _nextAvailableNonce;
    emit NonceChanged(msg.sender, _nextAvailableNonce);
  }
}

// File: contracts\mixins\MixinRefunds.sol

pragma solidity 0.5.14;









contract MixinRefunds is
  Ownable,
  MixinSignatures,
  MixinFunds,
  MixinLockCore,
  MixinKeys,
  MixinEventHooks
{
  using SafeMath for uint;

  // CancelAndRefund will return funds based on time remaining minus this penalty.
  // This is calculated as `proRatedRefund * refundPenaltyBasisPoints / BASIS_POINTS_DEN`.
  uint public refundPenaltyBasisPoints;

  uint public freeTrialLength;

  /// @notice The typehash per the EIP-712 standard
  /// @dev This can be computed in JS instead of read from the contract
  bytes32 public constant CANCEL_TYPEHASH = keccak256('cancelAndRefundFor(address _keyOwner)');

  event CancelKey(
    uint indexed tokenId,
    address indexed owner,
    address indexed sendTo,
    uint refund
  );

  event RefundPenaltyChanged(
    uint freeTrialLength,
    uint refundPenaltyBasisPoints
  );

  function _initializeMixinRefunds() internal
  {
    // default to 10%
    refundPenaltyBasisPoints = 1000;
  }

  /**
   * @dev Invoked by the lock owner to destroy the user's ket and perform a refund and cancellation
   * of the key
   */
  function fullRefund(address _keyOwner, uint amount)
    external
    onlyOwner
    hasValidKey(_keyOwner)
  {
    _cancelAndRefund(_keyOwner, amount);
  }

  /**
   * @dev Destroys the user's key and sends a refund based on the amount of time remaining.
   */
  function cancelAndRefund()
    external
  {
    uint refund = _getCancelAndRefundValue(msg.sender);

    _cancelAndRefund(msg.sender, refund);
  }

  /**
   * @dev Cancels a key owned by a different user and sends the funds to the msg.sender.
   * @param _keyOwner this user's key will be canceled
   * @param _v _r _s getCancelAndRefundApprovalHash signed by the _keyOwner
   */
  function cancelAndRefundFor(
    address _keyOwner,
    uint8 _v,
    bytes32 _r,
    bytes32 _s
  ) external
    consumeOffchainApproval(
      getCancelAndRefundApprovalHash(_keyOwner, msg.sender),
      _keyOwner,
      _v,
      _r,
      _s
    )
  {
    uint refund = _getCancelAndRefundValue(_keyOwner);
    _cancelAndRefund(_keyOwner, refund);
  }

  /**
   * Allow the owner to change the refund penalty.
   */
  function updateRefundPenalty(
    uint _freeTrialLength,
    uint _refundPenaltyBasisPoints
  )
    external
    onlyOwner
  {
    emit RefundPenaltyChanged(
      _freeTrialLength,
      _refundPenaltyBasisPoints
    );

    freeTrialLength = _freeTrialLength;
    refundPenaltyBasisPoints = _refundPenaltyBasisPoints;
  }

  /**
   * @dev Determines how much of a refund a key owner would receive if they issued
   * a cancelAndRefund block.timestamp.
   * Note that due to the time required to mine a tx, the actual refund amount will be lower
   * than what the user reads from this call.
   */
  function getCancelAndRefundValueFor(
    address _owner
  )
    external view
    returns (uint refund)
  {
    return _getCancelAndRefundValue(_owner);
  }

  /**
   * @notice returns the hash to sign in order to allow another user to cancel on your behalf.
   * @dev this can be computed in JS instead of read from the contract.
   * @param _keyOwner The key owner's address (also the message signer)
   * @param _txSender The address cancelling cancel on behalf of the keyOwner
   * @return approvalHash The hash to sign
   */
  function getCancelAndRefundApprovalHash(
    address _keyOwner,
    address _txSender
  ) public view
    returns (bytes32 approvalHash)
  {
    return keccak256(
      abi.encodePacked(
        // Approval is specific to this Lock
        address(this),
        // The specific function the signer is approving
        CANCEL_TYPEHASH,
        // Approval enables only one cancel call
        keyOwnerToNonce[_keyOwner],
        // Approval allows only one account to broadcast the tx
        _txSender
      )
    );
  }

  /**
   * @dev cancels the key for the given keyOwner and sends the refund to the msg.sender.
   */
  function _cancelAndRefund(
    address _keyOwner,
    uint refund
  ) internal
  {
    Key storage key = keyByOwner[_keyOwner];

    emit CancelKey(key.tokenId, _keyOwner, msg.sender, refund);
    // expirationTimestamp is a proxy for hasKey, setting this to `block.timestamp` instead
    // of 0 so that we can still differentiate hasKey from hasValidKey.
    key.expirationTimestamp = block.timestamp;

    if (refund > 0) {
      // Security: doing this last to avoid re-entrancy concerns
      _transfer(tokenAddress, _keyOwner, refund);
    }

    _onKeyCancel(_keyOwner, refund);
  }

  /**
   * @dev Determines how much of a refund a key owner would receive if they issued
   * a cancelAndRefund now.
   * @param _owner The owner of the key check the refund value for.
   */
  function _getCancelAndRefundValue(
    address _owner
  )
    private view
    hasValidKey(_owner)
    returns (uint refund)
  {
    Key storage key = keyByOwner[_owner];
    // Math: safeSub is not required since `hasValidKey` confirms timeRemaining is positive
    uint timeRemaining = key.expirationTimestamp - block.timestamp;
    if(timeRemaining + freeTrialLength >= expirationDuration) {
      refund = keyPrice;
    } else {
      // Math: using safeMul in case keyPrice or timeRemaining is very large
      refund = keyPrice.mul(timeRemaining) / expirationDuration;
    }

    // Apply the penalty if this is not a free trial
    if(freeTrialLength == 0 || timeRemaining + freeTrialLength < expirationDuration)
    {
      uint penalty = keyPrice.mul(refundPenaltyBasisPoints) / BASIS_POINTS_DEN;
      if (refund > penalty) {
        // Math: safeSub is not required since the if confirms this won't underflow
        refund -= penalty;
      } else {
        refund = 0;
      }
    }
  }
}

// File: @openzeppelin\contracts-ethereum-package\contracts\token\ERC721\IERC721Receiver.sol

pragma solidity ^0.5.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
contract IERC721Receiver {
    /**
     * @notice Handle the receipt of an NFT
     * @dev The ERC721 smart contract calls this function on the recipient
     * after a {IERC721-safeTransferFrom}. This function MUST return the function selector,
     * otherwise the caller will revert the transaction. The selector to be
     * returned can be obtained as `this.onERC721Received.selector`. This
     * function MAY throw to revert and reject the transfer.
     * Note: the ERC721 contract address is always the message sender.
     * @param operator The address which called `safeTransferFrom` function
     * @param from The address which previously owned the token
     * @param tokenId The NFT identifier which is being transferred
     * @param data Additional data with no specified format
     * @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data)
    public returns (bytes4);
}

// File: contracts\mixins\MixinTransfer.sol

pragma solidity 0.5.14;









/**
 * @title Mixin for the transfer-related functions needed to meet the ERC721
 * standard.
 * @author Nick Furfaro
 * @dev `Mixins` are a design pattern seen in the 0x contracts.  It simply
 * separates logically groupings of code to ease readability.
 */

contract MixinTransfer is
  MixinFunds,
  MixinLockCore,
  MixinKeys,
  MixinApproval
{
  using SafeMath for uint;
  using Address for address;

  event TransferFeeChanged(
    uint transferFeeBasisPoints
  );

  event TimestampChanged(
    uint indexed _tokenId,
    uint _amount,
    bool _timeAdded
  );

  // 0x150b7a02 == bytes4(keccak256('onERC721Received(address,address,uint256,bytes)'))
  bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

  // The fee relative to keyPrice to charge when transfering a Key to another account
  // (potentially on a 0x marketplace).
  // This is calculated as `keyPrice * transferFeeBasisPoints / BASIS_POINTS_DEN`.
  uint public transferFeeBasisPoints;

  /**
  * @notice Allows the key owner to safely share their key (parent key) by
  * transferring a portion of the remaining time to a new key (child key).
  * @param _to The recipient of the shared key
  * @param _tokenId the key to share
  * @param _timeShared The amount of time shared
  */
  function shareKey(
    address _to,
    uint _tokenId,
    uint _timeShared
  ) public
    onlyIfAlive
    onlyKeyOwnerOrApproved(_tokenId)
  {
    require(transferFeeBasisPoints < BASIS_POINTS_DEN, 'KEY_TRANSFERS_DISABLED');
    require(_to != address(0), 'INVALID_ADDRESS');
    address keyOwner = _ownerOf[_tokenId];
    require(getHasValidKey(keyOwner), 'KEY_NOT_VALID');
    Key storage fromKey = keyByOwner[keyOwner];
    Key storage toKey = keyByOwner[_to];
    uint iDTo = toKey.tokenId;
    uint time;
    // get the remaining time for the origin key
    uint timeRemaining = fromKey.expirationTimestamp - block.timestamp;
    // get the transfer fee based on amount of time wanted share
    uint fee = getTransferFee(keyOwner, _timeShared);
    uint timePlusFee = _timeShared.add(fee);

    // ensure that we don't try to share too much
    if(timePlusFee < timeRemaining) {
      // now we can safely set the time
      time = _timeShared;
      // deduct time from parent key, including transfer fee
      _timeMachine(_tokenId, timePlusFee, false);
    } else {
      // we have to recalculate the fee here
      fee = getTransferFee(keyOwner, timeRemaining);
      time = timeRemaining - fee;
      fromKey.expirationTimestamp = block.timestamp; // Effectively expiring the key
      emit ExpireKey(_tokenId);
    }

    if (toKey.tokenId == 0) {
      _assignNewTokenId(toKey);
      _recordOwner(_to, iDTo);
      emit Transfer(
        address(0), // This is a creation or time-sharing
        _to,
        iDTo
      );
    }
    // add time to new key
    _timeMachine(iDTo, time, true);
    // trigger event
    emit Transfer(
      keyOwner,
      _to,
      iDTo
    );

    require(_checkOnERC721Received(keyOwner, _to, _tokenId, ''), 'NON_COMPLIANT_ERC721_RECEIVER');
  }

  function transferFrom(
    address _from,
    address _recipient,
    uint _tokenId
  )
    public
    onlyIfAlive
    hasValidKey(_from)
    onlyKeyOwnerOrApproved(_tokenId)
  {
    require(transferFeeBasisPoints < BASIS_POINTS_DEN, 'KEY_TRANSFERS_DISABLED');
    require(_recipient != address(0), 'INVALID_ADDRESS');
    uint fee = getTransferFee(_from, 0);

    Key storage fromKey = keyByOwner[_from];
    Key storage toKey = keyByOwner[_recipient];
    uint id = fromKey.tokenId;

    uint previousExpiration = toKey.expirationTimestamp;
    // subtract the fee from the senders key before the transfer
    _timeMachine(id, fee, false);

    if (toKey.tokenId == 0) {
      toKey.tokenId = fromKey.tokenId;
      _recordOwner(_recipient, toKey.tokenId);
    }

    if (previousExpiration <= block.timestamp) {
      // The recipient did not have a key, or had a key but it expired. The new expiration is the
      // sender's key expiration
      // an expired key is no longer a valid key, so the new tokenID is the sender's tokenID
      toKey.expirationTimestamp = fromKey.expirationTimestamp;
      toKey.tokenId = fromKey.tokenId;
      _recordOwner(_recipient, _tokenId);
    } else {
      // The recipient has a non expired key. We just add them the corresponding remaining time
      // SafeSub is not required since the if confirms `previousExpiration - block.timestamp` cannot underflow
      toKey.expirationTimestamp = fromKey
        .expirationTimestamp.add(previousExpiration - block.timestamp);
    }

    // Effectively expiring the key for the previous owner
    fromKey.expirationTimestamp = block.timestamp;

    // Set the tokenID to 0 for the previous owner to avoid duplicates
    fromKey.tokenId = 0;

    // Clear any previous approvals
    _clearApproval(_tokenId);

    // trigger event
    emit Transfer(
      _from,
      _recipient,
      _tokenId
    );
  }

  /**
  * @notice Transfers the ownership of an NFT from one address to another address
  * @dev This works identically to the other function with an extra data parameter,
  *  except this function just sets data to ''
  * @param _from The current owner of the NFT
  * @param _to The new owner
  * @param _tokenId The NFT to transfer
  */
  function safeTransferFrom(
    address _from,
    address _to,
    uint _tokenId
  )
    public
  {
    safeTransferFrom(_from, _to, _tokenId, '');
  }

  /**
  * @notice Transfers the ownership of an NFT from one address to another address.
  * When transfer is complete, this functions
  *  checks if `_to` is a smart contract (code size > 0). If so, it calls
  *  `onERC721Received` on `_to` and throws if the return value is not
  *  `bytes4(keccak256('onERC721Received(address,address,uint,bytes)'))`.
  * @param _from The current owner of the NFT
  * @param _to The new owner
  * @param _tokenId The NFT to transfer
  * @param _data Additional data with no specified format, sent in call to `_to`
  */
  function safeTransferFrom(
    address _from,
    address _to,
    uint _tokenId,
    bytes memory _data
  )
    public
    onlyIfAlive
    onlyKeyOwnerOrApproved(_tokenId)
    hasValidKey(_ownerOf[_tokenId])
  {
    transferFrom(_from, _to, _tokenId);
    require(_checkOnERC721Received(_from, _to, _tokenId, _data), 'NON_COMPLIANT_ERC721_RECEIVER');

  }

  /**
   * Allow the Lock owner to change the transfer fee.
   */
  function updateTransferFee(
    uint _transferFeeBasisPoints
  )
    external
    onlyOwner
  {
    emit TransferFeeChanged(
      _transferFeeBasisPoints
    );
    transferFeeBasisPoints = _transferFeeBasisPoints;
  }

  /**
   * Determines how much of a fee a key owner would need to pay in order to
   * transfer the key to another account.  This is pro-rated so the fee goes down
   * overtime.
   * @param _owner The owner of the key check the transfer fee for.
   */
  function getTransferFee(
    address _owner,
    uint _time
  )
    public view
    hasValidKey(_owner)
    returns (uint)
  {
    Key storage key = keyByOwner[_owner];
    uint timeToTransfer;
    uint fee;
    // Math: safeSub is not required since `hasValidKey` confirms timeToTransfer is positive
    // this is for standard key transfers
    if(_time == 0) {
      timeToTransfer = key.expirationTimestamp - block.timestamp;
    } else {
      timeToTransfer = _time;
    }
    fee = timeToTransfer.mul(transferFeeBasisPoints) / BASIS_POINTS_DEN;
    return fee;
  }

  /**
  * @notice Modify the expirationTimestamp of a key
  * by a given amount.
  * @param _tokenId The ID of the key to modify.
  * @param _deltaT The amount of time in seconds by which
  * to modify the keys expirationTimestamp
  * @param _addTime Choose whether to increase or decrease
  * expirationTimestamp (false == decrease, true == increase)
  * @dev Throws if owner does not have a valid key.
  */
  function _timeMachine(
    uint _tokenId,
    uint256 _deltaT,
    bool _addTime
  ) internal
  {
    address tokenOwner = _ownerOf[_tokenId];
    require(tokenOwner != address(0), 'NON_EXISTENT_KEY');
    Key storage key = keyByOwner[tokenOwner];
    uint formerTimestamp = key.expirationTimestamp;
    bool validKey = getHasValidKey(tokenOwner);
    if(_addTime) {
      if(validKey) {
        key.expirationTimestamp = formerTimestamp.add(_deltaT);
      } else {
        key.expirationTimestamp = block.timestamp.add(_deltaT);
      }
    } else {
      key.expirationTimestamp = formerTimestamp.sub(_deltaT);
    }
    emit TimestampChanged(_tokenId, _deltaT, _addTime);
  }

  /**
   * @dev Internal function to invoke `onERC721Received` on a target address
   * The call is not executed if the target address is not a contract
   * @param from address representing the previous owner of the given token ID
   * @param to target address that will receive the tokens
   * @param tokenId uint256 ID of the token to be transferred
   * @param _data bytes optional data to send along with the call
   * @return whether the call correctly returned the expected magic value
   */
  function _checkOnERC721Received(
    address from,
    address to,
    uint256 tokenId,
    bytes memory _data
  )
    internal
    returns (bool)
  {
    if (!to.isContract()) {
      return true;
    }
    bytes4 retval = IERC721Receiver(to).onERC721Received(
      msg.sender, from, tokenId, _data);
    return (retval == _ERC721_RECEIVED);
  }

}

// File: contracts\PublicLock.sol

pragma solidity 0.5.14;



















/**
 * @title The Lock contract
 * @author Julien Genestoux (unlock-protocol.com)
 * @dev ERC165 allows our contract to be queried to determine whether it implements a given interface.
 * Every ERC-721 compliant contract must implement the ERC165 interface.
 * https://eips.ethereum.org/EIPS/eip-721
 */
contract PublicLock is
  IPublicLock,
  ERC165,
  Ownable,
  MixinSignatures,
  MixinFunds,
  MixinDisableAndDestroy,
  MixinLockManagerRole,
  MixinLockCore,
  MixinKeys,
  MixinLockMetadata,
  MixinERC721Enumerable,
  MixinEventHooks,
  MixinGrantKeys,
  MixinPurchase,
  MixinApproval,
  MixinTransfer,
  MixinRefunds
{
  function initialize(
    address _owner,
    uint _expirationDuration,
    address _tokenAddress,
    uint _keyPrice,
    uint _maxNumberOfKeys,
    string memory _lockName
  ) public
    initializer()
  {
    Ownable.initialize(_owner);
    MixinFunds._initializeMixinFunds(_tokenAddress);
    MixinDisableAndDestroy._initializeMixinDisableAndDestroy();
    MixinLockCore._initializeMixinLockCore(_owner, _expirationDuration, _keyPrice, _maxNumberOfKeys);
    MixinLockMetadata._initializeMixinLockMetadata(_lockName);
    MixinERC721Enumerable._initializeMixinERC721Enumerable();
    MixinRefunds._initializeMixinRefunds();
    MixinLockManagerRole._initializeMixinLockManagerRole(_owner);
    // registering the interface for erc721 with ERC165.sol using
    // the ID specified in the standard: https://eips.ethereum.org/EIPS/eip-721
    _registerInterface(0x80ac58cd);
  }
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"sendTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"refund","type":"uint256"}],"name":"CancelKey","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"balance","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"Destroy","type":"event"},{"anonymous":false,"inputs":[],"name":"Disable","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ExpireKey","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"LockManagerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"LockManagerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"symbol","type":"string"}],"name":"NewLockSymbol","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"keyOwner","type":"address"},{"indexed":false,"internalType":"uint256","name":"nextAvailableNonce","type":"uint256"}],"name":"NonceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldKeyPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"keyPrice","type":"uint256"},{"indexed":false,"internalType":"address","name":"oldTokenAddress","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"PricingChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"freeTrialLength","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"refundPenaltyBasisPoints","type":"uint256"}],"name":"RefundPenaltyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"_timeAdded","type":"bool"}],"name":"TimestampChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"transferFeeBasisPoints","type":"uint256"}],"name":"TransferFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"constant":true,"inputs":[],"name":"BASIS_POINTS_DEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"CANCEL_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addLockManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_approved","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"cancelAndRefund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"cancelAndRefundFor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"destroyLock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"disableLock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"erc1820","outputs":[{"internalType":"contract IERC1820Registry","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"expirationDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"expireKeyFor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"freeTrialLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"fullRefund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"address","name":"_account","type":"address"}],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"},{"internalType":"address","name":"_txSender","type":"address"}],"name":"getCancelAndRefundApprovalHash","outputs":[{"internalType":"bytes32","name":"approvalHash","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"getCancelAndRefundValueFor","outputs":[{"internalType":"uint256","name":"refund","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"getHasValidKey","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_page","type":"uint256"},{"internalType":"uint256","name":"_pageSize","type":"uint256"}],"name":"getOwnersByPage","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getTokenIdFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"getTransferFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint256[]","name":"_expirationTimestamps","type":"uint256[]"}],"name":"grantKeys","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_expirationDuration","type":"uint256"},{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_keyPrice","type":"uint256"},{"internalType":"uint256","name":"_maxNumberOfKeys","type":"uint256"},{"internalType":"string","name":"_lockName","type":"string"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_nextAvailableNonce","type":"uint256"}],"name":"invalidateOffchainApproval","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isAlive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"}],"name":"isKeyOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isLockManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"keyCancelInterfaceId","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"keyExpirationTimestampFor","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"keyOwnerToNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"keyPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"keySoldInterfaceId","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxNumberOfKeys","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"numberOfOwners","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"owners","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"publicLockVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_referrer","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"purchase","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"refundPenaltyBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceLockManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_timeShared","type":"uint256"}],"name":"shareKey","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"transferFeeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"unlockProtocol","outputs":[{"internalType":"contract IUnlock","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"}],"name":"updateBeneficiary","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_keyPrice","type":"uint256"},{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"updateKeyPricing","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_lockName","type":"string"}],"name":"updateLockName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_lockSymbol","type":"string"}],"name":"updateLockSymbol","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_freeTrialLength","type":"uint256"},{"internalType":"uint256","name":"_refundPenaltyBasisPoints","type":"uint256"}],"name":"updateRefundPenalty","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_transferFeeBasisPoints","type":"uint256"}],"name":"updateTransferFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040526159e4806100136000396000f3fe60806040526004361061041b5760003560e01c80637c7c42531161021e578063abdf82ce11610123578063d4fac45d116100ab578063f12c6b6e1161007a578063f12c6b6e14611275578063f2fde38b146112b4578063f3fef3a3146112e7578063f7514bce14611320578063fc42b58f146113595761041b565b8063d4fac45d146111d5578063e7e2736e14611210578063e985e9c514611225578063f0ba6040146112605761041b565b8063c4d66de8116100f2578063c4d66de8146110e8578063c87b56dd1461111b578063ca51773114611145578063d1bbd49c1461118d578063d2503485146111a25761041b565b8063abdf82ce14610fba578063b3084f0814610fed578063b88d4fde14611002578063c1c98d03146110d35761041b565b8063970aaeb7116101a6578063a22cb46511610175578063a22cb46514610ee9578063a2e4cd2e14610f24578063a375cb0514610f5d578063a843a4e714610f72578063aae4b8f714610f875761041b565b8063970aaeb714610e35578063994a8a7114610e685780639d76ea5814610ea15780639f98d3cb14610eb65761041b565b80638da5cb5b116101ed5780638da5cb5b14610dcc5780638f32d59b14610de1578063936d2aa414610df657806393fd184414610e0b57806395d89b4114610e205761041b565b80637c7c425314610c875780638129fc1c14610d525780638577a6d514610d675780638d0361fc14610d915761041b565b806339f469861161032457806356e0d51f116102ac57806370a082311161027b57806370a0823114610b9a578063715018a614610bcd57806373fca6ea14610be257806374b6c10614610bf7578063782a4ade14610c0c5761041b565b806356e0d51f14610a4c5780636352211e14610a615780636d8ea5b414610a8b5780636eadde4314610abe5761041b565b80634bc5a135116102f35780634bc5a1351461092c5780634f6ccce71461095f5780634fd24d301461098957806352d6a8e41461099e578063550ef3a8146109d15761041b565b806339f46986146108165780633f33133a146108465780634136aa35146108d457806342842e0e146108e95761041b565b806311a4c03a116103a757806323b872dd1161037657806323b872dd146106e05780632f745c591461072357806330176e131461075c57806335576ad0146107d757806338af3eed146108015761041b565b806311a4c03a1461068c57806318160ddd146106a1578063183767da146106b65780632009dc65146106cb5761041b565b8063095ea7b3116103ee578063095ea7b3146105625780630aaffd2a1461059d5780630f15023b146105d057806310803b72146105e557806310e56973146106655761041b565b806301ffc9a714610420578063025e7c271461046857806306fdde03146104ae578063081812fc14610538575b600080fd5b34801561042c57600080fd5b506104546004803603602081101561044357600080fd5b50356001600160e01b031916611392565b604080519115158252519081900360200190f35b34801561047457600080fd5b506104926004803603602081101561048b57600080fd5b50356113b5565b604080516001600160a01b039092168252519081900360200190f35b3480156104ba57600080fd5b506104c36113dc565b6040805160208082528351818301528351919283929083019185019080838360005b838110156104fd5781810151838201526020016104e5565b50505050905090810190601f16801561052a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561054457600080fd5b506104926004803603602081101561055b57600080fd5b503561146a565b34801561056e57600080fd5b5061059b6004803603604081101561058557600080fd5b506001600160a01b0381351690602001356114ca565b005b3480156105a957600080fd5b5061059b600480360360208110156105c057600080fd5b50356001600160a01b0316611660565b3480156105dc57600080fd5b50610492611751565b3480156105f157600080fd5b506106156004803603604081101561060857600080fd5b5080359060200135611760565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610651578181015183820152602001610639565b505050509050019250505060405180910390f35b34801561067157600080fd5b5061067a611878565b60408051918252519081900360200190f35b34801561069857600080fd5b5061067a61187e565b3480156106ad57600080fd5b5061067a611884565b3480156106c257600080fd5b5061067a61188b565b3480156106d757600080fd5b5061059b611891565b3480156106ec57600080fd5b5061059b6004803603606081101561070357600080fd5b506001600160a01b038135811691602081013590911690604001356118ab565b34801561072f57600080fd5b5061067a6004803603604081101561074657600080fd5b506001600160a01b038135169060200135611b64565b34801561076857600080fd5b5061059b6004803603602081101561077f57600080fd5b810190602081018135600160201b81111561079957600080fd5b8201836020820111156107ab57600080fd5b803590602001918460018302840111600160201b831117156107cc57600080fd5b509092509050611bc2565b3480156107e357600080fd5b5061059b600480360360208110156107fa57600080fd5b5035611c1a565b34801561080d57600080fd5b50610492611cbc565b34801561082257600080fd5b5061059b6004803603604081101561083957600080fd5b5080359060200135611ccb565b61059b6004803603608081101561085c57600080fd5b8135916001600160a01b03602082013581169260408301359091169190810190608081016060820135600160201b81111561089657600080fd5b8201836020820111156108a857600080fd5b803590602001918460018302840111600160201b831117156108c957600080fd5b509092509050611d58565b3480156108e057600080fd5b50610454612131565b3480156108f557600080fd5b5061059b6004803603606081101561090c57600080fd5b506001600160a01b03813581169160208101359091169060400135612141565b34801561093857600080fd5b5061067a6004803603602081101561094f57600080fd5b50356001600160a01b031661215c565b34801561096b57600080fd5b5061067a6004803603602081101561098257600080fd5b503561216e565b34801561099557600080fd5b5061067a6121b9565b3480156109aa57600080fd5b5061067a600480360360208110156109c157600080fd5b50356001600160a01b03166121bf565b3480156109dd57600080fd5b5061059b600480360360208110156109f457600080fd5b810190602081018135600160201b811115610a0e57600080fd5b820183602082011115610a2057600080fd5b803590602001918460018302840111600160201b83111715610a4157600080fd5b5090925090506121ca565b348015610a5857600080fd5b5061067a61221d565b348015610a6d57600080fd5b5061049260048036036020811015610a8457600080fd5b5035612223565b348015610a9757600080fd5b5061045460048036036020811015610aae57600080fd5b50356001600160a01b0316612299565b348015610aca57600080fd5b5061059b600480360360c0811015610ae157600080fd5b6001600160a01b03823581169260208101359260408201359092169160608201359160808101359181019060c0810160a0820135600160201b811115610b2657600080fd5b820183602082011115610b3857600080fd5b803590602001918460018302840111600160201b83111715610b5957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506122b9945050505050565b348015610ba657600080fd5b5061067a60048036036020811015610bbd57600080fd5b50356001600160a01b03166123b9565b348015610bd957600080fd5b5061059b612428565b348015610bee57600080fd5b5061067a6124b9565b348015610c0357600080fd5b5061067a6124d4565b348015610c1857600080fd5b5061059b60048036036020811015610c2f57600080fd5b810190602081018135600160201b811115610c4957600080fd5b820183602082011115610c5b57600080fd5b803590602001918460018302840111600160201b83111715610c7c57600080fd5b5090925090506124da565b348015610c9357600080fd5b5061059b60048036036040811015610caa57600080fd5b810190602081018135600160201b811115610cc457600080fd5b820183602082011115610cd657600080fd5b803590602001918460208302840111600160201b83111715610cf757600080fd5b919390929091602081019035600160201b811115610d1457600080fd5b820183602082011115610d2657600080fd5b803590602001918460208302840111600160201b83111715610d4757600080fd5b509092509050612592565b348015610d5e57600080fd5b5061059b612723565b348015610d7357600080fd5b5061059b60048036036020811015610d8a57600080fd5b50356127d4565b348015610d9d57600080fd5b5061067a60048036036040811015610db457600080fd5b506001600160a01b0381358116916020013516612853565b348015610dd857600080fd5b506104926128dc565b348015610ded57600080fd5b506104546128eb565b348015610e0257600080fd5b5061067a612911565b348015610e1757600080fd5b5061067a612935565b348015610e2c57600080fd5b506104c361293b565b348015610e4157600080fd5b5061067a60048036036020811015610e5857600080fd5b50356001600160a01b0316612b2a565b348015610e7457600080fd5b5061045460048036036040811015610e8b57600080fd5b50803590602001356001600160a01b0316612b94565b348015610ead57600080fd5b50610492612bb5565b348015610ec257600080fd5b5061059b60048036036020811015610ed957600080fd5b50356001600160a01b0316612bc4565b348015610ef557600080fd5b5061059b60048036036040811015610f0c57600080fd5b506001600160a01b0381351690602001351515612ca3565b348015610f3057600080fd5b5061059b60048036036040811015610f4757600080fd5b50803590602001356001600160a01b0316612dae565b348015610f6957600080fd5b5061067a612f7d565b348015610f7e57600080fd5b5061059b612f83565b348015610f9357600080fd5b5061045460048036036020811015610faa57600080fd5b50356001600160a01b0316613072565b348015610fc657600080fd5b5061067a60048036036020811015610fdd57600080fd5b50356001600160a01b0316613085565b348015610ff957600080fd5b5061067a61310a565b34801561100e57600080fd5b5061059b6004803603608081101561102557600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561105f57600080fd5b82018360208201111561107157600080fd5b803590602001918460018302840111600160201b8311171561109257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061312e945050505050565b3480156110df57600080fd5b5061059b6132e1565b3480156110f457600080fd5b5061059b6004803603602081101561110b57600080fd5b50356001600160a01b03166133b0565b34801561112757600080fd5b506104c36004803603602081101561113e57600080fd5b50356134a2565b34801561115157600080fd5b5061059b6004803603608081101561116857600080fd5b506001600160a01b038135169060ff602082013516906040810135906060013561372f565b34801561119957600080fd5b5061067a613872565b3480156111ae57600080fd5b5061059b600480360360208110156111c557600080fd5b50356001600160a01b0316613877565b3480156111e157600080fd5b5061067a600480360360408110156111f857600080fd5b506001600160a01b0381358116916020013516613906565b34801561121c57600080fd5b506104926139b0565b34801561123157600080fd5b506104546004803603604081101561124857600080fd5b506001600160a01b03813581169160200135166139c8565b34801561126c57600080fd5b5061059b6139f6565b34801561128157600080fd5b5061059b6004803603606081101561129857600080fd5b506001600160a01b038135169060208101359060400135613a34565b3480156112c057600080fd5b5061059b600480360360208110156112d757600080fd5b50356001600160a01b0316613dba565b3480156112f357600080fd5b5061059b6004803603604081101561130a57600080fd5b506001600160a01b038135169060200135613e0a565b34801561132c57600080fd5b5061059b6004803603604081101561134357600080fd5b506001600160a01b038135169060200135613f64565b34801561136557600080fd5b5061067a6004803603604081101561137c57600080fd5b506001600160a01b038135169060200135614000565b6001600160e01b0319811660009081526033602052604090205460ff165b919050565b60a481815481106113c257fe5b6000918252602090912001546001600160a01b0316905081565b60a5805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156114625780601f1061143757610100808354040283529160200191611462565b820191906000526020600020905b81548152906001019060200180831161144557829003601f168201915b505050505081565b600081815260a860205260408120546001600160a01b0316806114c4576040805162461bcd60e51b815260206004820152600d60248201526c1393d39157d054141493d59151609a1b604482015290519081900360640190fd5b92915050565b609a54600160a01b900460ff1661151a576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b806115258133612b94565b80611535575061153581336140a9565b8061155d5750600081815260a3602052604090205461155d906001600160a01b0316336139c8565b6115ab576040805162461bcd60e51b815260206004820152601a60248201527913d3931657d2d15657d3d5d3915497d3d497d054141493d5915160321b604482015290519081900360640190fd5b336001600160a01b03841614156115f8576040805162461bcd60e51b815260206004820152600c60248201526b20a8282927ab22afa9a2a62360a11b604482015290519081900360640190fd5b600082815260a86020908152604080832080546001600160a01b0319166001600160a01b0388811691821790925560a3909352818420549151869492909116917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6116686128dc565b6001600160a01b0316336001600160a01b03161480611691575060a1546001600160a01b031633145b6116e2576040805162461bcd60e51b815260206004820152601e60248201527f4f4e4c595f4c4f434b5f4f574e45525f4f525f42454e45464943494152590000604482015290519081900360640190fd5b6001600160a01b03811661172f576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b60a180546001600160a01b0319166001600160a01b0392909216919091179055565b609c546001600160a01b031681565b60a4546060906117ad576040805162461bcd60e51b81526020600482015260136024820152724e4f5f4f55545354414e44494e475f4b45595360681b604482015290519081900360640190fd5b60a45482908482029060009082840111156117d0575060a45481810392506117d5565b508082015b606083604051908082528060200260200182016040528015611801578160200160208202803883390190505b5090506000835b8381101561186b5760a4818154811061181d57fe5b9060005260206000200160009054906101000a90046001600160a01b031683838151811061184757fe5b6001600160a01b039092166020928302919091019091015260019182019101611808565b5090979650505050505050565b609e5481565b609d5481565b60a0545b90565b60aa5481565b600061189c336140ca565b90506118a833826141d1565b50565b609a54600160a01b900460ff166118fb576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b8261190581612299565b611946576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b816119518133612b94565b80611961575061196181336140a9565b806119895750600081815260a36020526040902054611989906001600160a01b0316336139c8565b6119d7576040805162461bcd60e51b815260206004820152601a60248201527913d3931657d2d15657d3d5d3915497d3d497d054141493d5915160321b604482015290519081900360640190fd5b61271060aa5410611a28576040805162461bcd60e51b815260206004820152601660248201527512d15657d514905394d1915494d7d11254d05093115160521b604482015290519081900360640190fd5b6001600160a01b038416611a75576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6000611a82866000614000565b6001600160a01b03808816600090815260a2602052604080822092891682528120825460018201549495509293909291611abf9083908790614256565b8254611ad5578354808455611ad5908a90614378565b428111611af9576001808501549084015583548355611af48989614378565b611b16565b6001840154611b109042830363ffffffff6143ff16565b60018401555b42600185015560008455611b2988614459565b87896001600160a01b03168b6001600160a01b031660008051602061596683398151915260405160405180910390a450505050505050505050565b60008115611bb2576040805162461bcd60e51b815260206004820152601660248201527527a7262cafa7a722afa5a2acafa822a92fa7aba722a960511b604482015290519081900360640190fd5b611bbb83612b2a565b9392505050565b611bca6128eb565b611c09576040805162461bcd60e51b815260206004820181905260248201526000805160206158f6833981519152604482015290519081900360640190fd5b611c1560a783836156f1565b505050565b336000908152609960205260409020548111611c72576040805162461bcd60e51b81526020600482015260126024820152711393d390d157d053149150511657d554d15160721b604482015290519081900360640190fd5b33600081815260996020908152604091829020849055815184815291517ff5d035b703f1ad8d403dd02e821d04257acafc5f6c5d70a3907bd8abf33a2e0f9281900390910190a250565b60a1546001600160a01b031681565b611cd36128eb565b611d12576040805162461bcd60e51b815260206004820181905260248201526000805160206158f6833981519152604482015290519081900360640190fd5b604080518381526020810183905281517fd6867bc538320e67d7bdc35860c27c08486eb490b4fd9b820fff18fb28381d3c929181900390910190a160ac9190915560ab55565b609a54600160a01b900460ff16611da8576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b60a054609f5411611df0576040805162461bcd60e51b815260206004820152600d60248201526c1313d0d2d7d4d3d31117d3d555609a1b604482015290519081900360640190fd5b6001600160a01b038416611e3d576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6001600160a01b038416600090815260a2602052604090208054611e7257611e6481614494565b611e72858260000154614378565b42816001015410611e9e57609d546001820154611e949163ffffffff6143ff16565b6001820155611ea9565b609d54420160018201555b609e54609c5460408051630cb175e360e01b81526001600160a01b03898116600483015260248201859052825160009586959094921692630cb175e3926044808301939192829003018186803b158015611f0257600080fd5b505afa158015611f16573d6000803e3d6000fd5b505050506040513d6040811015611f2c57600080fd5b508051602090910151909350915080831115611f4a57506000611f4e565b8290035b8215611fc157609c5460408051633652466360e01b8152600481018690526024810185905290516001600160a01b039092169163365246639160448082019260009290919082900301818387803b158015611fa857600080fd5b505af1158015611fbc573d6000803e3d6000fd5b505050505b609c546001600160a01b031663939d9f1f82611fdc8a612299565b611fe7576000611fe9565b895b6040518363ffffffff1660e01b815260040180838152602001826001600160a01b03166001600160a01b0316815260200192505050600060405180830381600087803b15801561203857600080fd5b505af115801561204c573d6000803e3d6000fd5b505085546040519092506001600160a01b038b169150600090600080516020615966833981519152908290a4609a546001600160a01b0316156120d657808910156120d3576040805162461bcd60e51b8152602060048201526012602482015271494e53554646494349454e545f56414c554560701b604482015290519081900360640190fd5b50875b60006120e1826144a9565b90506121258989838a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061453792505050565b50505050505050505050565b609a54600160a01b900460ff1681565b611c158383836040518060200160405280600081525061312e565b60996020526000908152604090205481565b600060a05482106121b5576040805162461bcd60e51b815260206004820152600c60248201526b4f55545f4f465f52414e474560a01b604482015290519081900360640190fd5b5090565b61271081565b60006114c4826140ca565b6121d26128eb565b612211576040805162461bcd60e51b815260206004820181905260248201526000805160206158f6833981519152604482015290519081900360640190fd5b611c1560a583836156f1565b60ab5481565b600081815260a3602052604081205482906001600160a01b031661227c576040805162461bcd60e51b815260206004820152600b60248201526a4e4f5f535543485f4b455960a81b604482015290519081900360640190fd5b5050600090815260a360205260409020546001600160a01b031690565b6001600160a01b0316600090815260a26020526040902060010154421090565b600054610100900460ff16806122d257506122d26146ed565b806122e0575060005460ff16155b61231b5760405162461bcd60e51b815260040180806020018281038252602e815260200180615938602e913960400191505060405180910390fd5b600054610100900460ff16158015612346576000805460ff1961ff0019909116610100171660011790555b61234f876133b0565b612358856146f3565b6123606147c2565b61236c878786866147d7565b6123758261486d565b61237d614899565b6123856148ab565b61238e876148b3565b61239e6380ac58cd60e01b6148d1565b80156123b0576000805461ff00191690555b50505050505050565b60006001600160a01b038216612408576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b61241182612299565b61241c57600061241f565b60015b60ff1692915050565b6124306128eb565b61246f576040805162461bcd60e51b815260206004820181905260248201526000805160206158f6833981519152604482015290519081900360640190fd5b6066546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3606680546001600160a01b0319169055565b6040518060256157f482396025019050604051809103902081565b609f5481565b6124e26128eb565b612521576040805162461bcd60e51b815260206004820181905260248201526000805160206158f6833981519152604482015290519081900360640190fd5b61252d60a683836156f1565b507f8868e22e84ebf32da89b2ebcb0ac642816304ea3863b257f240df9098719cb97828260405180806020018281038252848482818152602001925080828437600083820152604051601f909101601f19169092018290039550909350505050a15050565b61259a6128eb565b6125d9576040805162461bcd60e51b815260206004820181905260248201526000805160206158f6833981519152604482015290519081900360640190fd5b60005b8381101561271c5760008585838181106125f257fe5b905060200201356001600160a01b03169050600084848481811061261257fe5b60200291909101359150506001600160a01b03821661266a576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6001600160a01b038216600090815260a260205260409020600181015482116126cd576040805162461bcd60e51b815260206004820152601060248201526f414c52454144595f4f574e535f4b455960801b604482015290519081900360640190fd5b6126d681614494565b6126e4838260000154614378565b6001810182905580546040516001600160a01b03851690600090600080516020615966833981519152908290a45050506001016125dc565b5050505050565b600054610100900460ff168061273c575061273c6146ed565b8061274a575060005460ff16155b6127855760405162461bcd60e51b815260040180806020018281038252602e815260200180615938602e913960400191505060405180910390fd5b600054610100900460ff161580156127b0576000805460ff1961ff0019909116610100171660011790555b6127c06301ffc9a760e01b6148d1565b80156118a8576000805461ff001916905550565b6127dc6128eb565b61281b576040805162461bcd60e51b815260206004820181905260248201526000805160206158f6833981519152604482015290519081900360640190fd5b6040805182815290517f0496ed1e61eb69727f9659a8e859288db4758ffb1f744d1c1424634f90a257f49181900360200190a160aa55565b60003060405180806157f460259139604080519182900360250182206001600160a01b03881660009081526099602090815290839020546bffffffffffffffffffffffff19606097881b811683870152603486019390935260548501529487901b1660748301528051606881840301815260889092019052805192019190912091505092915050565b6066546001600160a01b031690565b6066546000906001600160a01b0316612902614955565b6001600160a01b031614905090565b7fd6342b4bfdf66164985c9f5fe235f643a035ee12f507d7bd0f8c89e07e790f6881565b60a45490565b60a65460609060026000196101006001841615020190911604612a9857609c60009054906101000a90046001600160a01b03166001600160a01b031663cec410526040518163ffffffff1660e01b815260040160006040518083038186803b1580156129a657600080fd5b505afa1580156129ba573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156129e357600080fd5b8101908080516040519392919084600160201b821115612a0257600080fd5b908301906020820185811115612a1757600080fd5b8251600160201b811182820188101715612a3057600080fd5b82525081516020918201929091019080838360005b83811015612a5d578181015183820152602001612a45565b50505050905090810190601f168015612a8a5780820380516001836020036101000a031916815260200191505b506040525050509050611888565b60a6805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015612b1e5780601f10612af357610100808354040283529160200191612b1e565b820191906000526020600020905b815481529060010190602001808311612b0157829003601f168201915b50505050509050611888565b600081612b3681612299565b612b77576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b50506001600160a01b0316600090815260a2602052604090205490565b600091825260a36020526040909120546001600160a01b0391821691161490565b609a546001600160a01b031681565b612bcc6128eb565b612c0b576040805162461bcd60e51b815260206004820181905260248201526000805160206158f6833981519152604482015290519081900360640190fd5b80612c1581612299565b612c56576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b6001600160a01b038216600090815260a260205260408082204260018201558054915190927f59f2fe866dd27a1c2d34115520888c3150365cbc931aab97fa88c4b9ab40b79591a2505050565b609a54600160a01b900460ff16612cf3576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b6001600160a01b038216331415612d40576040805162461bcd60e51b815260206004820152600c60248201526b20a8282927ab22afa9a2a62360a11b604482015290519081900360640190fd5b33600081815260a9602090815260408083206001600160a01b03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b612db733613072565b612df25760405162461bcd60e51b815260040180806020018281038252603b81526020018061583f603b913960400191505060405180910390fd5b609a54600160a01b900460ff16612e42576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b609e54609a546001600160a01b039081169083161580612ec657506000836001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015612e9857600080fd5b505afa158015612eac573d6000803e3d6000fd5b505050506040513d6020811015612ec257600080fd5b5051115b612f07576040805162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22faa27a5a2a760991b604482015290519081900360640190fd5b609e849055609a80546001600160a01b0319166001600160a01b038581169190911791829055604080518581526020810188905284831681830152929091166060830152517f3615065ccf48367ac483ac86701248e2e5ff55bdd9be845007d34a3b68d719d4916080908290030190a150505050565b60ac5481565b612f8b6128eb565b612fca576040805162461bcd60e51b815260206004820181905260248201526000805160206158f6833981519152604482015290519081900360640190fd5b609a54600160a01b900460ff1615613019576040805162461bcd60e51b815260206004820152600d60248201526c111254d050931157d1925494d5609a1b604482015290519081900360640190fd5b60408051478152905133917fa053f2a7eceda47dde76e5939c5adf7b771e665fc84c8ef6feffc290a1eb1feb919081900360200190a2609a5461306f906001600160a01b03163361306a8230613906565b614959565b33ff5b60006114c4609b8363ffffffff6149a616565b6001600160a01b038116600090815260a2602052604081206001015482906130ea576040805162461bcd60e51b81526020600482015260136024820152724841535f4e455645525f4f574e45445f4b455960681b604482015290519081900360640190fd5b50506001600160a01b0316600090815260a2602052604090206001015490565b7f4d99da10ff5120f726d35edd8dbd417bbe55d90453b8432acd284e650ee2c6f081565b609a54600160a01b900460ff1661317e576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b816131898133612b94565b80613199575061319981336140a9565b806131c15750600081815260a360205260409020546131c1906001600160a01b0316336139c8565b61320f576040805162461bcd60e51b815260206004820152601a60248201527913d3931657d2d15657d3d5d3915497d3d497d054141493d5915160321b604482015290519081900360640190fd5b600083815260a360205260409020546001600160a01b031661323081612299565b613271576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b61327c8686866118ab565b61328886868686614a0d565b6132d9576040805162461bcd60e51b815260206004820152601d60248201527f4e4f4e5f434f4d504c49414e545f4552433732315f5245434549564552000000604482015290519081900360640190fd5b505050505050565b6132e96128eb565b613328576040805162461bcd60e51b815260206004820181905260248201526000805160206158f6833981519152604482015290519081900360640190fd5b609a54600160a01b900460ff16613378576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b6040517f25a311358326fb18c62efc24bc28d3126acee8d2a67fd8b2145b757dc8bd1bc190600090a1609a805460ff60a01b19169055565b600054610100900460ff16806133c957506133c96146ed565b806133d7575060005460ff16155b6134125760405162461bcd60e51b815260040180806020018281038252602e815260200180615938602e913960400191505060405180910390fd5b600054610100900460ff1615801561343d576000805460ff1961ff0019909116610100171660011790555b606680546001600160a01b0319166001600160a01b0384811691909117918290556040519116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3801561349e576000805461ff00191690555b5050565b600081815260a3602052604090205460609082906001600160a01b03166134fe576040805162461bcd60e51b815260206004820152600b60248201526a4e4f5f535543485f4b455960a81b604482015290519081900360640190fd5b60a7546060906002600019610100600184161502019091160461365b57609c60009054906101000a90046001600160a01b03166001600160a01b031663a998e9fb6040518163ffffffff1660e01b815260040160006040518083038186803b15801561356957600080fd5b505afa15801561357d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156135a657600080fd5b8101908080516040519392919084600160201b8211156135c557600080fd5b9083019060208201858111156135da57600080fd5b8251600160201b8111828201881017156135f357600080fd5b82525081516020918201929091019080838360005b83811015613620578181015183820152602001613608565b50505050905090810190601f16801561364d5780820380516001836020036101000a031916815260200191505b5060405250505090506136e9565b60a7805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156136e15780601f106136b6576101008083540402835291602001916136e1565b820191906000526020600020905b8154815290600101906020018083116136c457829003601f168201915b505050505090505b6137276136f530614b40565b604051806040016040528060018152602001602f60f81b81525061371887614cbc565b8492919063ffffffff614d8016565b949350505050565b6137398433612853565b84848484836001600160a01b0316600161375287614f35565b85858560405160008152602001604052604051808581526020018460ff1660ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156137ac573d6000803e3d6000fd5b505050602060405103516001600160a01b031614613805576040805162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b604482015290519081900360640190fd5b6001600160a01b038416600081815260996020908152604091829020805460010190819055825190815291517ff5d035b703f1ad8d403dd02e821d04257acafc5f6c5d70a3907bd8abf33a2e0f9281900390910190a260006138668a6140ca565b90506121258a826141d1565b600690565b61387f6128eb565b6138be576040805162461bcd60e51b815260206004820181905260248201526000805160206158f6833981519152604482015290519081900360640190fd5b6138cf609b8263ffffffff614f8616565b6040516001600160a01b038216907f91d5c045d5bd98bf59a379b259ebca05b93bf79af1845fdf87e3172385d4c7f790600090a250565b60006001600160a01b03831661392757506001600160a01b038116316114c4565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561397d57600080fd5b505afa158015613991573d6000803e3d6000fd5b505050506040513d60208110156139a757600080fd5b505190506114c4565b731820a4b7618bde71dce8cdc73aab6c95905fad2481565b6001600160a01b03918216600090815260a96020908152604080832093909416825291909152205460ff1690565b613a07609b3363ffffffff61500716565b60405133907f42885193b8178d25fca25a38e6fcc93918501e91be06d85e0c8afb3bad95238090600090a2565b609a54600160a01b900460ff16613a84576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b81613a8f8133612b94565b80613a9f5750613a9f81336140a9565b80613ac75750600081815260a36020526040902054613ac7906001600160a01b0316336139c8565b613b15576040805162461bcd60e51b815260206004820152601a60248201527913d3931657d2d15657d3d5d3915497d3d497d054141493d5915160321b604482015290519081900360640190fd5b61271060aa5410613b66576040805162461bcd60e51b815260206004820152601660248201527512d15657d514905394d1915494d7d11254d05093115160521b604482015290519081900360640190fd5b6001600160a01b038416613bb3576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b600083815260a360205260409020546001600160a01b0316613bd481612299565b613c15576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b6001600160a01b03808216600090815260a2602052604080822092881682528120805460018401549192909142900381613c4f878a614000565b90506000613c638a8363ffffffff6143ff16565b905082811015613c8157899350613c7c8b826000614256565b613cc5565b613c8b8884614000565b42600189015560405181850395509092508b907f59f2fe866dd27a1c2d34115520888c3150365cbc931aab97fa88c4b9ab40b79590600090a25b8554613d0557613cd486614494565b613cde8c86614378565b60405185906001600160a01b038e1690600090600080516020615966833981519152908290a45b613d1185856001614256565b848c6001600160a01b0316896001600160a01b031660008051602061596683398151915260405160405180910390a4613d5b888d8d60405180602001604052806000815250614a0d565b613dac576040805162461bcd60e51b815260206004820152601d60248201527f4e4f4e5f434f4d504c49414e545f4552433732315f5245434549564552000000604482015290519081900360640190fd5b505050505050505050505050565b613dc26128eb565b613e01576040805162461bcd60e51b815260206004820181905260248201526000805160206158f6833981519152604482015290519081900360640190fd5b6118a88161506e565b613e126128dc565b6001600160a01b0316336001600160a01b03161480613e3b575060a1546001600160a01b031633145b613e8c576040805162461bcd60e51b815260206004820152601e60248201527f4f4e4c595f4c4f434b5f4f574e45525f4f525f42454e45464943494152590000604482015290519081900360640190fd5b6000613e988330613906565b90506000821580613ea857508183115b15613efc5760008211613ef5576040805162461bcd60e51b815260206004820152601060248201526f4e4f545f454e4f5547485f46554e445360801b604482015290519081900360640190fd5b5080613eff565b50815b60a1546040805183815290516001600160a01b039283169287169133917f342e7ff505a8a0364cd0dc2ff195c315e43bce86b204846ecd36913e117b109e9181900360200190a460a154613f5e9085906001600160a01b031683614959565b50505050565b613f6c6128eb565b613fab576040805162461bcd60e51b815260206004820181905260248201526000805160206158f6833981519152604482015290519081900360640190fd5b81613fb581612299565b613ff6576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b611c1583836141d1565b60008261400c81612299565b61404d576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b6001600160a01b038416600090815260a26020526040812090808561407a5742836001015403915061407e565b8591505b61271061409660aa548461510f90919063ffffffff16565b8161409d57fe5b04979650505050505050565b600091825260a86020526040909120546001600160a01b0391821691161490565b6000816140d681612299565b614117576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b6001600160a01b038316600090815260a2602052604090206001810154609d5460ac54429092039182011061415057609e549350614171565b609d54609e54614166908363ffffffff61510f16565b8161416d57fe5b0493505b60ac5415806141855750609d5460ac548201105b156141c95760006127106141a660ab54609e5461510f90919063ffffffff16565b816141ad57fe5b049050808511156141c25780850394506141c7565b600094505b505b505050919050565b6001600160a01b038216600081815260a2602090815260409182902080548351868152935191943394909391927f0a7068a9989857441c039a14a42b67ed71dd1fcfe5a9b17cc87b252e47bce528929181900390910190a4426001820155811561424c57609a5461424c906001600160a01b03168484614959565b611c158383615168565b600083815260a360205260409020546001600160a01b0316806142b3576040805162461bcd60e51b815260206004820152601060248201526f4e4f4e5f4558495354454e545f4b455960801b604482015290519081900360640190fd5b6001600160a01b038116600090815260a260205260408120600181015490916142db84612299565b9050841561431e578015614303576142f9828763ffffffff6143ff16565b6001840155614319565b614313428763ffffffff6143ff16565b60018401555b614334565b61432e828763ffffffff61529816565b60018401555b604080518781528615156020820152815189927fa2ede7ad01668310f921fcf6084901d08af350838c2744a013153e4968a7559d928290030190a250505050505050565b600081815260a360205260409020546001600160a01b0383811691161461349e5760a48054600181019091557fe434dc35da084cf8d7e8186688ea2dacb53db7003d427af3abf351bd9d0a4e8d0180546001600160a01b0384166001600160a01b03199182168117909255600083815260a360205260409020805490911690911790555050565b600082820183811015611bbb576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600081815260a860205260409020546001600160a01b0316156118a857600090815260a86020526040902080546001600160a01b0319169055565b80546118a85760a08054600101908190559055565b600081156113b057609a546001600160a01b03166145105781341015614509576040805162461bcd60e51b815260206004820152601060248201526f4e4f545f454e4f5547485f46554e445360801b604482015290519081900360640190fd5b50346113b0565b609a546001600160a01b031661452e8133308663ffffffff6152da16565b829150506113b0565b60a1546040805163555ddc6560e11b81526001600160a01b0390921660048301527f4d99da10ff5120f726d35edd8dbd417bbe55d90453b8432acd284e650ee2c6f0602483015251600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b1580156145be57600080fd5b505afa1580156145d2573d6000803e3d6000fd5b505050506040513d60208110156145e857600080fd5b505190506001600160a01b0381161561271c57604051638d0f092560e01b815233600482018181526001600160a01b03888116602485015287811660448501526064840187905260a060848501908152865160a4860152865191861694638d0f092594938b938b938b938b939260c490910190602085019080838360005b8381101561467e578181015183820152602001614666565b50505050905090810190601f1680156146ab5780820380516001836020036101000a031916815260200191505b509650505050505050600060405180830381600087803b1580156146ce57600080fd5b505af11580156146e2573d6000803e3d6000fd5b505050505050505050565b303b1590565b609a80546001600160a01b0319166001600160a01b038316908117909155158061478157506000816001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561475357600080fd5b505afa158015614767573d6000803e3d6000fd5b505050506040513d602081101561477d57600080fd5b5051115b6118a8576040805162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22faa27a5a2a760991b604482015290519081900360640190fd5b609a805460ff60a01b1916600160a01b179055565b63bbf81e00831115614830576040805162461bcd60e51b815260206004820152601860248201527f4d41585f45585049524154494f4e5f3130305f59454152530000000000000000604482015290519081900360640190fd5b609c8054336001600160a01b03199182161790915560a180549091166001600160a01b039590951694909417909355609d91909155609e55609f55565b614875612723565b80516148889060a590602084019061576b565b506118a8635b5e139f60e01b6148d1565b6148a963780e9d6360e01b6148d1565b565b6103e860ab55565b6148bc81613072565b6118a8576118a8609b8263ffffffff614f8616565b6001600160e01b03198082161415614930576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152603360205260409020805460ff19166001179055565b3390565b8015611c15576001600160a01b03831661498b576149866001600160a01b0383168263ffffffff61533416565b611c15565b82613f5e6001600160a01b038216848463ffffffff61541916565b60006001600160a01b0382166149ed5760405162461bcd60e51b81526004018080602001828103825260228152602001806159166022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b6000614a21846001600160a01b031661546b565b614a2d57506001613727565b604051630a85bd0160e11b815233600482018181526001600160a01b03888116602485015260448401879052608060648501908152865160848601528651600095928a169463150b7a029490938c938b938b939260a4019060208501908083838e5b83811015614aa7578181015183820152602001614a8f565b50505050905090810190601f168015614ad45780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015614af657600080fd5b505af1158015614b0a573d6000803e3d6000fd5b505050506040513d6020811015614b2057600080fd5b50516001600160e01b031916630a85bd0160e11b14915050949350505050565b604080518082018252601081526f181899199a1a9b1b9c1cb0b131b232b360811b60208201528151602a80825260608281019094526001600160a01b03851692918491602082018180388339019050509050600360fc1b81600081518110614ba457fe5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110614bcd57fe5b60200101906001600160f81b031916908160001a90535060005b6014811015614cb3578260048583600c0160208110614c0257fe5b1a60f81b6001600160f81b031916901c60f81c60ff1681518110614c2257fe5b602001015160f81c60f81b828260020260020181518110614c3f57fe5b60200101906001600160f81b031916908160001a905350828482600c0160208110614c6657fe5b825191901a600f16908110614c7757fe5b602001015160f81c60f81b828260020260030181518110614c9457fe5b60200101906001600160f81b031916908160001a905350600101614be7565b50949350505050565b60608180614ce35750506040805180820190915260018152600360fc1b60208201526113b0565b8260005b8115614cfb57600101600a82049150614ce7565b6060816040519080825280601f01601f191660200182016040528015614d28576020820181803883390190505b50905060001982015b8415614d7657600a850660300160f81b82828060019003935081518110614d5457fe5b60200101906001600160f81b031916908160001a905350600a85049450614d31565b5095945050505050565b606080859050606085905060608590506060859050606081518351855187510101016040519080825280601f01601f191660200182016040528015614dcc576020820181803883390190505b509050806000805b8751811015614e2557878181518110614de957fe5b602001015160f81c60f81b838380600101945081518110614e0657fe5b60200101906001600160f81b031916908160001a905350600101614dd4565b5060005b8651811015614e7a57868181518110614e3e57fe5b602001015160f81c60f81b838380600101945081518110614e5b57fe5b60200101906001600160f81b031916908160001a905350600101614e29565b5060005b8551811015614ecf57858181518110614e9357fe5b602001015160f81c60f81b838380600101945081518110614eb057fe5b60200101906001600160f81b031916908160001a905350600101614e7e565b5060005b8451811015614f2457848181518110614ee857fe5b602001015160f81c60f81b838380600101945081518110614f0557fe5b60200101906001600160f81b031916908160001a905350600101614ed3565b50909b9a5050505050505050505050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b614f9082826149a6565b15614fe2576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b61501182826149a6565b61504c5760405162461bcd60e51b81526004018080602001828103825260218152602001806158b46021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b6001600160a01b0381166150b35760405162461bcd60e51b81526004018080602001828103825260268152602001806158196026913960400191505060405180910390fd5b6066546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3606680546001600160a01b0319166001600160a01b0392909216919091179055565b60008261511e575060006114c4565b8282028284828161512b57fe5b0414611bbb5760405162461bcd60e51b81526004018080602001828103825260218152602001806158d56021913960400191505060405180910390fd5b60a1546040805163555ddc6560e11b81526001600160a01b0390921660048301527fd6342b4bfdf66164985c9f5fe235f643a035ee12f507d7bd0f8c89e07e790f68602483015251600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b1580156151ef57600080fd5b505afa158015615203573d6000803e3d6000fd5b505050506040513d602081101561521957600080fd5b505190506001600160a01b03811615611c15576040805163c9877d7b60e01b81523360048201526001600160a01b0385811660248301526044820185905291519183169163c9877d7b9160648082019260009290919082900301818387803b15801561528457600080fd5b505af11580156123b0573d6000803e3d6000fd5b6000611bbb83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506154a2565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052613f5e908590615539565b80471015615389576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d80600081146153d4576040519150601f19603f3d011682016040523d82523d6000602084013e6153d9565b606091505b5050905080611c155760405162461bcd60e51b815260040180806020018281038252603a81526020018061587a603a913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611c15908490615539565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906137275750141592915050565b600081848411156155315760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156154f65781810151838201526020016154de565b50505050905090810190601f1680156155235780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b61554b826001600160a01b031661546b565b61559c576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106155da5780518252601f1990920191602091820191016155bb565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461563c576040519150601f19603f3d011682016040523d82523d6000602084013e615641565b606091505b509150915081615698576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115613f5e578080602001905160208110156156b457600080fd5b5051613f5e5760405162461bcd60e51b815260040180806020018281038252602a815260200180615986602a913960400191505060405180910390fd5b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106157325782800160ff1982351617855561575f565b8280016001018555821561575f579182015b8281111561575f578235825591602001919060010190615744565b506121b59291506157d9565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106157ac57805160ff191683800117855561575f565b8280016001018555821561575f579182015b8281111561575f5782518255916020019190600101906157be565b61188891905b808211156121b557600081556001016157df56fe63616e63656c416e64526566756e64466f722861646472657373205f6b65794f776e6572294f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734d6978696e4c6f636b4d616e616765723a2063616c6c657220646f6573206e6f74206861766520746865204c6f636b4d616e6167657220726f6c65416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c65536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a723158200699dda614bcab2e903ef2411b51464fc64ec2c573008b8f0d5cc966a4a6001164736f6c634300050e0032

Deployed ByteCode Sourcemap

110019:1245:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26159:133;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26159:133:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;26159:133:0;-1:-1:-1;;;;;;26159:133:0;;:::i;:::-;;;;;;;;;;;;;;;;;;58486:23;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58486:23:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;58486:23:0;;:::i;:::-;;;;-1:-1:-1;;;;;58486:23:0;;;;;;;;;;;;;;81366:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;81366:18:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;81366:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66195:238;;8:9:-1;5:2;;;30:1;27;20:12;5:2;66195:238:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;66195:238:0;;:::i;65264:297::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;65264:297:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;65264:297:0;;;;;;;;:::i;:::-;;56940:199;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56940:199:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;56940:199:0;-1:-1:-1;;;;;56940:199:0;;:::i;52998:29::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52998:29:0;;;:::i;60761:879::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;60761:879:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;60761:879:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;60761:879:0;;;;;;;;;;;;;;;;;53373:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53373:20:0;;;:::i;:::-;;;;;;;;;;;;;;;;53215:30;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53215:30:0;;;:::i;57145:97::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;57145:97:0;;;:::i;100835:34::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;100835:34:0;;;:::i;93958:152::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93958:152:0;;;:::i;103033:1951::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;103033:1951:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;103033:1951:0;;;;;;;;;;;;;;;;;:::i;69020:208::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;69020:208:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;69020:208:0;;;;;;;;:::i;82921:134::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;82921:134:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;82921:134:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;82921:134:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;82921:134:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;82921:134:0;;-1:-1:-1;82921:134:0;-1:-1:-1;82921:134:0;:::i;92180:290::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;92180:290:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;92180:290:0;;:::i;53651:26::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53651:26:0;;;:::i;94796:337::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;94796:337:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;94796:337:0;;;;;;;:::i;84971:2266::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;84971:2266:0;;;-1:-1:-1;;;;;84971:2266:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;84971:2266:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;84971:2266:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;84971:2266:0;;-1:-1:-1;84971:2266:0;-1:-1:-1;84971:2266:0;:::i;45269:19::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;45269:19:0;;;:::i;105337:159::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105337:159:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;105337:159:0;;;;;;;;;;;;;;;;;:::i;91399:47::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;91399:47:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;91399:47:0;-1:-1:-1;;;;;91399:47:0;;:::i;68417:165::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;68417:165:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;68417:165:0;;:::i;53754:45::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53754:45:0;;;:::i;95419:163::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;95419:163:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;95419:163:0;-1:-1:-1;;;;;95419:163:0;;:::i;82148:117::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;82148:117:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;82148:117:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;82148:117:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;82148:117:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;82148:117:0;;-1:-1:-1;82148:117:0;-1:-1:-1;82148:117:0;:::i;92901:36::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;92901:36:0;;;:::i;62536:138::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;62536:138:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;62536:138:0;;:::i;60069:171::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;60069:171:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;60069:171:0;-1:-1:-1;;;;;60069:171:0;;:::i;110363:898::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;110363:898:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;110363:898:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;110363:898:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;110363:898:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;110363:898:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;110363:898:0;;-1:-1:-1;110363:898:0;;-1:-1:-1;;;;;110363:898:0:i;59806:195::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59806:195:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59806:195:0;-1:-1:-1;;;;;59806:195:0;;:::i;24331:140::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24331:140:0;;;:::i;93104:92::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93104:92:0;;;:::i;53467:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53467:27:0;;;:::i;82347:167::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;82347:167:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;82347:167:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;82347:167:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;82347:167:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;82347:167:0;;-1:-1:-1;82347:167:0;-1:-1:-1;82347:167:0;:::i;77828:782::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;77828:782:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;77828:782:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;77828:782:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;77828:782:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;77828:782:0;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;77828:782:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;77828:782:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;77828:782:0;;-1:-1:-1;77828:782:0;-1:-1:-1;77828:782:0;:::i;25764:238::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25764:238:0;;;:::i;106513:229::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;106513:229:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;106513:229:0;;:::i;95967:540::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;95967:540:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;95967:540:0;;;;;;;;;;:::i;23518:79::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23518:79:0;;;:::i;23884:94::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23884:94:0;;;:::i;76254:113::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;76254:113:0;;;:::i;62385:104::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;62385:104:0;;;:::i;82619:212::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;82619:212:0;;;:::i;60357:166::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;60357:166:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;60357:166:0;-1:-1:-1;;;;;60357:166:0;;:::i;61718:149::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;61718:149:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61718:149:0;;;;;;-1:-1:-1;;;;;61718:149:0;;:::i;42835:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;42835:27:0;;;:::i;59377:266::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59377:266:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59377:266:0;-1:-1:-1;;;;;59377:266:0;;:::i;65849:::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;65849:266:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;65849:266:0;;;;;;;;;;:::i;56310:486::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56310:486:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;56310:486:0;;;;;;-1:-1:-1;;;;;56310:486:0;;:::i;92944:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;92944:27:0;;;:::i;45970:528::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;45970:528:0;;;:::i;48370:112::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;48370:112:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;48370:112:0;-1:-1:-1;;;;;48370:112:0;;:::i;62025:200::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;62025:200:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;62025:200:0;-1:-1:-1;;;;;62025:200:0;;:::i;76087:111::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;76087:111:0;;;:::i;106068:370::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;106068:370:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;106068:370:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;106068:370:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;106068:370:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;106068:370:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;106068:370:0;;-1:-1:-1;106068:370:0;;-1:-1:-1;;;;;106068:370:0:i;45708:121::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;45708:121:0;;;:::i;23292:145::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23292:145:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23292:145:0;-1:-1:-1;;;;;23292:145:0;;:::i;83396:400::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;83396:400:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;83396:400:0;;:::i;94353:371::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;94353:371:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;94353:371:0;;;;;;;;;;;;;;;;;;;;:::i;54723:89::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54723:89:0;;;:::i;48488:133::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;48488:133:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;48488:133:0;-1:-1:-1;;;;;48488:133:0;;:::i;43186:266::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;43186:266:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;43186:266:0;;;;;;;;;;:::i;75930:103::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;75930:103:0;;;:::i;66750:173::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;66750:173:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;66750:173:0;;;;;;;;;;:::i;48627:124::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;48627:124:0;;;:::i;101177:1850::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;101177:1850:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;101177:1850:0;;;;;;;;;;;;;:::i;24626:109::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24626:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24626:109:0;-1:-1:-1;;;;;24626:109:0;;:::i;55456:590::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55456:590:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;55456:590:0;;;;;;;;:::i;93685:160::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93685:160:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;93685:160:0;;;;;;;;:::i;107007:591::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;107007:591:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;107007:591:0;;;;;;;;:::i;26159:133::-;-1:-1:-1;;;;;;26251:33:0;;26227:4;26251:33;;;:20;:33;;;;;;;;26159:133;;;;:::o;58486:23::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58486:23:0;;-1:-1:-1;58486:23:0;:::o;81366:18::-;;;;;;;;;;;;;;;-1:-1:-1;;81366:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;66195:238::-;66267:7;66314:18;;;:8;:18;;;;;;-1:-1:-1;;;;;66314:18:0;66347:31;66339:57;;;;;-1:-1:-1;;;66339:57:0;;;;;;;;;;;;-1:-1:-1;;;66339:57:0;;;;;;;;;;;;;;;66410:17;66195:238;-1:-1:-1;;66195:238:0:o;65264:297::-;45567:7;;-1:-1:-1;;;45567:7:0;;;;45559:35;;;;;-1:-1:-1;;;45559:35:0;;;;;;;;;;;;-1:-1:-1;;;45559:35:0;;;;;;;;;;;;;;;65387:8;64876:32;64887:8;64897:10;64876;:32::i;:::-;:78;;;;64921:33;64933:8;64943:10;64921:11;:33::i;:::-;64876:139;;;-1:-1:-1;64984:18:0;;;;:8;:18;;;;;;64967:48;;-1:-1:-1;;;;;64984:18:0;65004:10;64967:16;:48::i;:::-;64860:193;;;;;-1:-1:-1;;;64860:193:0;;;;;;;;;;;;-1:-1:-1;;;64860:193:0;;;;;;;;;;;;;;;65415:10;-1:-1:-1;;;;;65415:23:0;;;;65407:48;;;;;-1:-1:-1;;;65407:48:0;;;;;;;;;;;;-1:-1:-1;;;65407:48:0;;;;;;;;;;;;;;;65464:18;;;;:8;:18;;;;;;;;:30;;-1:-1:-1;;;;;;65464:30:0;-1:-1:-1;;;;;65464:30:0;;;;;;;;;65515:8;:18;;;;;;;65506:49;;65464:18;;65515;;;;;65506:49;;;45601:1;65264:297;;:::o;56940:199::-;54042:7;:5;:7::i;:::-;-1:-1:-1;;;;;54028:21:0;:10;-1:-1:-1;;;;;54028:21:0;;:50;;;-1:-1:-1;54067:11:0;;-1:-1:-1;;;;;54067:11:0;54053:10;:25;54028:50;54012:114;;;;;-1:-1:-1;;;54012:114:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;57054:26:0;;57046:54;;;;;-1:-1:-1;;;57046:54:0;;;;;;;;;;;;-1:-1:-1;;;57046:54:0;;;;;;;;;;;;;;;57107:11;:26;;-1:-1:-1;;;;;;57107:26:0;-1:-1:-1;;;;;57107:26:0;;;;;;;;;;56940:199::o;52998:29::-;;;-1:-1:-1;;;;;52998:29:0;;:::o;60761:879::-;60886:6;:13;60850:16;;60878:49;;;;;-1:-1:-1;;;60878:49:0;;;;;;;;;;;;-1:-1:-1;;;60878:49:0;;;;;;;;;;;;;;;61065:6;:13;60950:9;;60985:16;;;;60934:13;;61040:22;;;:38;61036:202;;;-1:-1:-1;61106:6:0;:13;61139:27;;;;-1:-1:-1;61036:202:0;;;-1:-1:-1;61207:22:0;;;61036:202;61324:29;61370:8;61356:23;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;61356:23:0;-1:-1:-1;61324:55:0;-1:-1:-1;61386:14:0;61497:11;61483:124;61514:14;61510:1;:18;61483:124;;;61570:6;61577:1;61570:9;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;61570:9:0;61544:12;61557:9;61544:23;;;;;;;;-1:-1:-1;;;;;61544:35:0;;;:23;;;;;;;;;;;:35;61588:11;;;;;61530:3;61483:124;;;-1:-1:-1;61622:12:0;;60761:879;-1:-1:-1;;;;;;;60761:879:0:o;53373:20::-;;;;:::o;53215:30::-;;;;:::o;57145:97::-;57224:12;;57145:97;;:::o;100835:34::-;;;;:::o;93958:152::-;94009:11;94023:36;94048:10;94023:24;:36::i;:::-;94009:50;;94068:36;94085:10;94097:6;94068:16;:36::i;:::-;93958:152;:::o;103033:1951::-;45567:7;;-1:-1:-1;;;45567:7:0;;;;45559:35;;;;;-1:-1:-1;;;45559:35:0;;;;;;;;;;;;-1:-1:-1;;;45559:35:0;;;;;;;;;;;;;;;103171:5;58862:22;58877:6;58862:14;:22::i;:::-;58846:62;;;;;-1:-1:-1;;;58846:62:0;;;;;;;;;;;;-1:-1:-1;;;58846:62:0;;;;;;;;;;;;;;;103206:8;64876:32;64887:8;64897:10;64876;:32::i;:::-;:78;;;;64921:33;64933:8;64943:10;64921:11;:33::i;:::-;64876:139;;;-1:-1:-1;64984:18:0;;;;:8;:18;;;;;;64967:48;;-1:-1:-1;;;;;64984:18:0;65004:10;64967:16;:48::i;:::-;64860:193;;;;;-1:-1:-1;;;64860:193:0;;;;;;;;;;;;-1:-1:-1;;;64860:193:0;;;;;;;;;;;;;;;53794:5;103234:22;;:41;103226:76;;;;;-1:-1:-1;;;103226:76:0;;;;;;;;;;;;-1:-1:-1;;;103226:76:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;103317:24:0;;103309:52;;;;;-1:-1:-1;;;103309:52:0;;;;;;;;;;;;-1:-1:-1;;;103309:52:0;;;;;;;;;;;;;;;103368:8;103379:24;103394:5;103401:1;103379:14;:24::i;:::-;-1:-1:-1;;;;;103434:17:0;;;103412:19;103434:17;;;:10;:17;;;;;;103478:22;;;;;;;103517:15;;103567:25;;;;103368:35;;-1:-1:-1;103434:17:0;;103478:22;;103517:15;103665:28;;103517:15;;103368:35;;103665:12;:28::i;:::-;103706:13;;103702:120;;103751:15;;103735:31;;;103775:39;;103788:10;;103775:12;:39::i;:::-;103856:15;103834:18;:37;103830:764;;104137:27;;;;;104109:25;;;:55;104189:15;;104173:31;;104213:34;104226:10;104238:8;104213:12;:34::i;:::-;103830:764;;;104507:37;;;;:79;;104570:15;104549:36;;104507:79;:41;:79;:::i;:::-;104479:25;;;:107;103830:764;104692:15;104662:27;;;:45;104806:1;104788:19;;104853:24;104868:8;104853:14;:24::i;:::-;104963:8;104944:10;-1:-1:-1;;;;;104913:65:0;104930:5;-1:-1:-1;;;;;104913:65:0;-1:-1:-1;;;;;;;;;;;104913:65:0;;;;;;;;;65060:1;;;;;58915;45601;103033:1951;;;:::o;69020:208::-;69122:7;69149:11;;69141:46;;;;;-1:-1:-1;;;69141:46:0;;;;;;;;;;;;-1:-1:-1;;;69141:46:0;;;;;;;;;;;;;;;69201:21;69215:6;69201:13;:21::i;:::-;69194:28;69020:208;-1:-1:-1;;;69020:208:0:o;82921:134::-;23730:9;:7;:9::i;:::-;23722:54;;;;;-1:-1:-1;;;23722:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23722:54:0;;;;;;;;;;;;;;;83021:28;:12;83036:13;;83021:28;:::i;:::-;;82921:134;;:::o;92180:290::-;92317:10;92301:27;;;;:15;:27;;;;;;92279:49;;92271:80;;;;;-1:-1:-1;;;92271:80:0;;;;;;;;;;;;-1:-1:-1;;;92271:80:0;;;;;;;;;;;;;;;92374:10;92358:27;;;;:15;:27;;;;;;;;;:49;;;92419:45;;;;;;;;;;;;;;;;;92180:290;:::o;53651:26::-;;;-1:-1:-1;;;;;53651:26:0;;:::o;94796:337::-;23730:9;:7;:9::i;:::-;23722:54;;;;;-1:-1:-1;;;23722:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23722:54:0;;;;;;;;;;;;;;;94939:86;;;;;;;;;;;;;;;;;;;;;;;;;95034:15;:34;;;;95075:24;:52;94796:337::o;84971:2266::-;45567:7;;-1:-1:-1;;;45567:7:0;;;;45559:35;;;;;-1:-1:-1;;;45559:35:0;;;;;;;;;;;;-1:-1:-1;;;45559:35:0;;;;;;;;;;;;;;;53918:12;;53900:15;;:30;53892:56;;;;;-1:-1:-1;;;53892:56:0;;;;;;;;;;;;-1:-1:-1;;;53892:56:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;85159:24:0;;85151:52;;;;;-1:-1:-1;;;85151:52:0;;;;;;;;;;;;-1:-1:-1;;;85151:52:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;85255:22:0;;85235:17;85255:22;;;:10;:22;;;;;85290:13;;85286:187;;85393:24;85411:5;85393:17;:24::i;:::-;85426:39;85439:10;85451:5;:13;;;85426:12;:39::i;:::-;85514:15;85485:5;:25;;;:44;85481:427;;85661:18;;85631:25;;;;:49;;;:29;:49;:::i;:::-;85603:25;;;:77;85481:427;;;85882:18;;85864:15;:36;85836:25;;;:64;85481:427;86056:8;;86092:14;;:72;;;-1:-1:-1;;;86092:72:0;;-1:-1:-1;;;;;86092:72:0;;;;;;;;;;;;;;;85994:13;;;;86056:8;;86092:14;;;:42;;:72;;;;;;;;;;;;:14;:72;;;5:2:-1;;;;30:1;27;20:12;5:2;86092:72:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;86092:72:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;86092:72:0;;;;;;;;;-1:-1:-1;86092:72:0;-1:-1:-1;86177:27:0;;;86173:237;;;-1:-1:-1;86234:1:0;86173:237;;;86374:28;;;86173:237;86422:12;;86418:90;;86445:14;;:55;;;-1:-1:-1;;;86445:55:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;86445:14:0;;;;:37;;:55;;;;;:14;;:55;;;;;;;;:14;;:55;;;5:2:-1;;;;30:1;27;20:12;5:2;86445:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;86445:55:0;;;;86418:90;86516:14;;-1:-1:-1;;;;;86516:14:0;:32;86549:16;86567:25;86582:9;86567:14;:25::i;:::-;:50;;86615:1;86567:50;;;86595:9;86567:50;86516:102;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;86516:102:0;-1:-1:-1;;;;;86516:102:0;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;86516:102:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;86732:13:0;;86654:98;;86732:13;;-1:-1:-1;;;;;;86654:98:0;;;-1:-1:-1;86732:13:0;;-1:-1:-1;;;;;;;;;;;86654:98:0;86732:13;;86654:98;86850:12;;-1:-1:-1;;;;;86850:12:0;:26;86847:139;;86905:16;86895:6;:26;;86887:57;;;;;-1:-1:-1;;;86887:57:0;;;;;;;;;;;;-1:-1:-1;;;86887:57:0;;;;;;;;;;;;;;;-1:-1:-1;86972:6:0;86847:139;87062:14;87079:32;87094:16;87079:14;:32::i;:::-;87062:49;;87180:51;87191:10;87203:9;87214;87225:5;;87180:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;87180:10:0;;-1:-1:-1;;;87180:51:0:i;:::-;53955:1;;;;;84971:2266;;;;;:::o;45269:19::-;;;-1:-1:-1;;;45269:19:0;;;;;:::o;105337:159::-;105448:42;105465:5;105472:3;105477:8;105448:42;;;;;;;;;;;;:16;:42::i;91399:47::-;;;;;;;;;;;;;:::o;68417:165::-;68491:7;68527:12;;68518:6;:21;68510:46;;;;;-1:-1:-1;;;68510:46:0;;;;;;;;;;;;-1:-1:-1;;;68510:46:0;;;;;;;;;;;;;;;-1:-1:-1;68570:6:0;68417:165::o;53754:45::-;53794:5;53754:45;:::o;95419:163::-;95514:11;95544:32;95569:6;95544:24;:32::i;82148:117::-;23730:9;:7;:9::i;:::-;23722:54;;;;;-1:-1:-1;;;23722:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23722:54:0;;;;;;;;;;;;;;;82243:16;:4;82250:9;;82243:16;:::i;92901:36::-;;;;:::o;62536:138::-;62624:7;59029:18;;;:8;:18;;;;;;62601:8;;-1:-1:-1;;;;;59029:18:0;59013:70;;;;;-1:-1:-1;;;59013:70:0;;;;;;;;;;;;-1:-1:-1;;;59013:70:0;;;;;;;;;;;;;;;-1:-1:-1;;62650:18:0;;;;:8;:18;;;;;;-1:-1:-1;;;;;62650:18:0;;62536:138::o;60069:171::-;-1:-1:-1;;;;;60178:18:0;60155:4;60178:18;;;:10;:18;;;;;:38;;;60219:15;-1:-1:-1;;60069:171:0:o;110363:898::-;1118:12;;;;;;;;:31;;;1134:15;:13;:15::i;:::-;1118:47;;;-1:-1:-1;1154:11:0;;;;1153:12;1118:47;1110:106;;;;-1:-1:-1;;;1110:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1225:19;1248:12;;;;;;1247:13;1267:83;;;;1296:12;:19;;-1:-1:-1;;;;1296:19:0;;;;;1324:18;1311:4;1324:18;;;1267:83;110583:26;110602:6;110583:18;:26::i;:::-;110616:47;110649:13;110616:32;:47::i;:::-;110670:58;:56;:58::i;:::-;110735:96;110774:6;110782:19;110803:9;110814:16;110735:38;:96::i;:::-;110838:57;110885:9;110838:46;:57::i;:::-;110902:56;:54;:56::i;:::-;110965:38;:36;:38::i;:::-;111010:60;111063:6;111010:52;:60::i;:::-;111225:30;-1:-1:-1;;;111225:18:0;:30::i;:::-;1372:14;1368:57;;;1412:5;1397:20;;-1:-1:-1;;1397:20:0;;;1368:57;110363:898;;;;;;;:::o;59806:195::-;59887:4;-1:-1:-1;;;;;59911:20:0;;59903:48;;;;;-1:-1:-1;;;59903:48:0;;;;;;;;;;;;-1:-1:-1;;;59903:48:0;;;;;;;;;;;;;;;59965:22;59980:6;59965:14;:22::i;:::-;:30;;59994:1;59965:30;;;59990:1;59965:30;59958:37;;;59806:195;-1:-1:-1;;59806:195:0:o;24331:140::-;23730:9;:7;:9::i;:::-;23722:54;;;;;-1:-1:-1;;;23722:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23722:54:0;;;;;;;;;;;;;;;24414:6;;24393:40;;24430:1;;-1:-1:-1;;;;;24414:6:0;;24393:40;;24430:1;;24393:40;24444:6;:19;;-1:-1:-1;;;;;;24444:19:0;;;24331:140::o;93104:92::-;93146:50;;;;;;;;;;;;;;;;;;93104:92;:::o;53467:27::-;;;;:::o;82347:167::-;23730:9;:7;:9::i;:::-;23722:54;;;;;-1:-1:-1;;;23722:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23722:54:0;;;;;;;;;;;;;;;82446:24;:10;82459:11;;82446:24;:::i;:::-;;82482:26;82496:11;;82482:26;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;;74:27;82482:26:0;;137:4:-1;117:14;;;-1:-1;;113:30;157:16;;;82482:26:0;;;;-1:-1:-1;82482:26:0;;-1:-1:-1;;;;82482:26:0;82347:167;;:::o;77828:782::-;23730:9;:7;:9::i;:::-;23722:54;;;;;-1:-1:-1;;;23722:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23722:54:0;;;;;;;;;;;;;;;77971:6;77967:638;77983:22;;;77967:638;;;78021:17;78041:11;;78053:1;78041:14;;;;;;;;;;;;;-1:-1:-1;;;;;78041:14:0;78021:34;;78064:24;78091:21;;78113:1;78091:24;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;78134:23:0;;78126:51;;;;;-1:-1:-1;;;78126:51:0;;;;;;;;;;;;-1:-1:-1;;;78126:51:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;78208:21:0;;78188:17;78208:21;;;:10;:21;;;;;78268:25;;;;78246:47;;78238:76;;;;;-1:-1:-1;;;78238:76:0;;;;;;;;;;;;-1:-1:-1;;;78238:76:0;;;;;;;;;;;;;;;78325:24;78343:5;78325:17;:24::i;:::-;78358:38;78371:9;78382:5;:13;;;78358:12;:38::i;:::-;78405:25;;;:47;;;78575:13;;78492:105;;-1:-1:-1;;;;;78492:105:0;;;78575:13;;-1:-1:-1;;;;;;;;;;;78492:105:0;78575:13;;78492:105;-1:-1:-1;;;78007:3:0;;77967:638;;;;77828:782;;;;:::o;25764:238::-;1118:12;;;;;;;;:31;;;1134:15;:13;:15::i;:::-;1118:47;;;-1:-1:-1;1154:11:0;;;;1153:12;1118:47;1110:106;;;;-1:-1:-1;;;1110:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1225:19;1248:12;;;;;;1247:13;1267:83;;;;1296:12;:19;;-1:-1:-1;;;;1296:19:0;;;;;1324:18;1311:4;1324:18;;;1267:83;25954:40;-1:-1:-1;;;25954:18:0;:40::i;:::-;1372:14;1368:57;;;1412:5;1397:20;;-1:-1:-1;;1397:20:0;;;25764:238;:::o;106513:229::-;23730:9;:7;:9::i;:::-;23722:54;;;;;-1:-1:-1;;;23722:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23722:54:0;;;;;;;;;;;;;;;106624:57;;;;;;;;;;;;;;;;;106688:22;:48;106513:229::o;95967:540::-;96086:20;96224:4;93146:50;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;96374:26:0;;;;;;:15;:26;;;;;;;;;-1:-1:-1;;96143:351:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;96143:351:0;;;;;;96125:376;;;;;;;;;-1:-1:-1;;95967:540:0;;;;:::o;23518:79::-;23583:6;;-1:-1:-1;;;;;23583:6:0;23518:79;:::o;23884:94::-;23964:6;;23924:4;;-1:-1:-1;;;;;23964:6:0;23948:12;:10;:12::i;:::-;-1:-1:-1;;;;;23948:22:0;;23941:29;;23884:94;:::o;76254:113::-;76301:66;76254:113;:::o;62385:104::-;62470:6;:13;62385:104;:::o;82619:212::-;82703:10;82697:24;82669:13;;82697:24;-1:-1:-1;;82697:24:0;;;;;;;;;;;82694:132;;82744:14;;;;;;;;;-1:-1:-1;;;;;82744:14:0;-1:-1:-1;;;;;82744:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;82744:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;82744:34:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;82744:34:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;82744:34:0;;;;;;;;;;;;;-1:-1:-1;;;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;-1:-1;;;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;372:25;;-1:-1;82744:34:0;;420:4:-1;411:14;;;;82744:34:0;;;;;411:14:-1;82744:34:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;82744:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82737:41;;;;82694:132;82808:10;82801:17;;;;;;;;;;;;;-1:-1:-1;;82801:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;82808:10;82801:17;;82808:10;82801:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60357:166;60466:4;60442:8;58862:22;58877:6;58862:14;:22::i;:::-;58846:62;;;;;-1:-1:-1;;;58846:62:0;;;;;;;;;;;;-1:-1:-1;;;58846:62:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;60489:20:0;;;;;:10;:20;;;;;:28;;60357:166::o;61718:149::-;61810:4;61833:18;;;:8;:18;;;;;;;-1:-1:-1;;;;;61833:28:0;;;:18;;:28;;61718:149::o;42835:27::-;;;-1:-1:-1;;;;;42835:27:0;;:::o;59377:266::-;23730:9;:7;:9::i;:::-;23722:54;;;;;-1:-1:-1;;;23722:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23722:54:0;;;;;;;;;;;;;;;59469:6;58862:22;58877:6;58862:14;:22::i;:::-;58846:62;;;;;-1:-1:-1;;;58846:62:0;;;;;;;;;;;;-1:-1:-1;;;58846:62:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;59505:18:0;;59487:15;59505:18;;;:10;:18;;;;;;59556:15;59530:23;;;:41;59625:11;;59615:22;;59505:18;;59615:22;;;58915:1;23787;59377:266;:::o;65849:::-;45567:7;;-1:-1:-1;;;45567:7:0;;;;45559:35;;;;;-1:-1:-1;;;45559:35:0;;;;;;;;;;;;-1:-1:-1;;;45559:35:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;65962:17:0;;65969:10;65962:17;;65954:42;;;;;-1:-1:-1;;;65954:42:0;;;;;;;;;;;;-1:-1:-1;;;65954:42:0;;;;;;;;;;;;;;;66027:10;66003:35;;;;:23;:35;;;;;;;;-1:-1:-1;;;;;66003:40:0;;;;;;;;;;;;:52;;-1:-1:-1;;66003:52:0;;;;;;;;;;66067:42;;;;;;;66003:40;;66027:10;66067:42;;;;;;;;;;;65849:266;;:::o;56310:486::-;48261:25;48275:10;48261:13;:25::i;:::-;48253:97;;;;-1:-1:-1;;;48253:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45567:7;;-1:-1:-1;;;45567:7:0;;;;45559:35;;;;;-1:-1:-1;;;45559:35:0;;;;;;;;;;;;-1:-1:-1;;;45559:35:0;;;;;;;;;;;;;;;56471:8;;56512:12;;-1:-1:-1;;;;;56512:12:0;;;;56547:27;;;;:70;;;56616:1;56585:13;-1:-1:-1;;;;;56578:33:0;;:35;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56578:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56578:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;56578:35:0;:39;56547:70;56531:117;;;;;-1:-1:-1;;;56531:117:0;;;;;;;;;;;;-1:-1:-1;;;56531:117:0;;;;;;;;;;;;;;;56655:8;:20;;;56682:12;:28;;-1:-1:-1;;;;;;56682:28:0;-1:-1:-1;;;;;56682:28:0;;;;;;;;;;;56722:68;;;;;;;;;;;;;;;;;;;56777:12;;;;56722:68;;;;;;;;;;;;;;;45601:1;;56310:486;;:::o;92944:27::-;;;;:::o;45970:528::-;23730:9;:7;:9::i;:::-;23722:54;;;;;-1:-1:-1;;;23722:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23722:54:0;;;;;;;;;;;;;;;46040:7;;-1:-1:-1;;;46040:7:0;;;;:16;46032:42;;;;;-1:-1:-1;;;46032:42:0;;;;;;;;;;;;-1:-1:-1;;;46032:42:0;;;;;;;;;;;;;;;46088;;;46096:21;46088:42;;;;46119:10;;46088:42;;;;;;;;;;46219:12;;46209:76;;-1:-1:-1;;;;;46219:12:0;46233:10;46245:39;46219:12;46278:4;46245:10;:39::i;:::-;46209:9;:76::i;:::-;46305:10;46292:24;48370:112;48431:4;48451:25;:12;48468:7;48451:25;:16;:25;:::i;62025:200::-;-1:-1:-1;;;;;58656:18:0;;62148:14;58656:18;;;:10;:18;;;;;:38;;;62126:6;;58640:88;;;;;-1:-1:-1;;;58640:88:0;;;;;;;;;;;;-1:-1:-1;;;58640:88:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;62181:18:0;;;;;:10;:18;;;;;:38;;;;62025:200::o;76087:111::-;76132:66;76087:111;:::o;106068:370::-;45567:7;;-1:-1:-1;;;45567:7:0;;;;45559:35;;;;;-1:-1:-1;;;45559:35:0;;;;;;;;;;;;-1:-1:-1;;;45559:35:0;;;;;;;;;;;;;;;106239:8;64876:32;64887:8;64897:10;64876;:32::i;:::-;:78;;;;64921:33;64933:8;64943:10;64921:11;:33::i;:::-;64876:139;;;-1:-1:-1;64984:18:0;;;;:8;:18;;;;;;64967:48;;-1:-1:-1;;;;;64984:18:0;65004:10;64967:16;:48::i;:::-;64860:193;;;;;-1:-1:-1;;;64860:193:0;;;;;;;;;;;;-1:-1:-1;;;64860:193:0;;;;;;;;;;;;;;;106266:18;;;;:8;:18;;;;;;-1:-1:-1;;;;;106266:18:0;58862:22;106266:18;58862:14;:22::i;:::-;58846:62;;;;;-1:-1:-1;;;58846:62:0;;;;;;;;;;;;-1:-1:-1;;;58846:62:0;;;;;;;;;;;;;;;106296:34;106309:5;106316:3;106321:8;106296:12;:34::i;:::-;106345:51;106368:5;106375:3;106380:8;106390:5;106345:22;:51::i;:::-;106337:93;;;;;-1:-1:-1;;;106337:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;65060:1;45601;106068:370;;;;:::o;45708:121::-;23730:9;:7;:9::i;:::-;23722:54;;;;;-1:-1:-1;;;23722:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23722:54:0;;;;;;;;;;;;;;;45567:7;;-1:-1:-1;;;45567:7:0;;;;45559:35;;;;;-1:-1:-1;;;45559:35:0;;;;;;;;;;;;-1:-1:-1;;;45559:35:0;;;;;;;;;;;;;;;45792:9;;;;;;;45808:7;:15;;-1:-1:-1;;;;45808:15:0;;;45708:121::o;23292:145::-;1118:12;;;;;;;;:31;;;1134:15;:13;:15::i;:::-;1118:47;;;-1:-1:-1;1154:11:0;;;;1153:12;1118:47;1110:106;;;;-1:-1:-1;;;1110:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1225:19;1248:12;;;;;;1247:13;1267:83;;;;1296:12;:19;;-1:-1:-1;;;;1296:19:0;;;;;1324:18;1311:4;1324:18;;;1267:83;23358:6;:15;;-1:-1:-1;;;;;;23358:15:0;-1:-1:-1;;;;;23358:15:0;;;;;;;;;;;23389:40;;23422:6;;;-1:-1:-1;;23389:40:0;;-1:-1:-1;;23389:40:0;1372:14;1368:57;;;1412:5;1397:20;;-1:-1:-1;;1397:20:0;;;1368:57;23292:145;;:::o;83396:400::-;59059:1;59029:18;;;:8;:18;;;;;;83495:13;;83472:8;;-1:-1:-1;;;;;59029:18:0;59013:70;;;;;-1:-1:-1;;;59013:70:0;;;;;;;;;;;;-1:-1:-1;;;59013:70:0;;;;;;;;;;;;;;;83553:12;83547:26;83520:17;;83547:26;-1:-1:-1;;83547:26:0;;;;;;;;;;;83544:135;;83595:14;;;;;;;;;-1:-1:-1;;;;;83595:14:0;-1:-1:-1;;;;;83595:33:0;;:35;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;83595:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;83595:35:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;83595:35:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;83595:35:0;;;;;;;;;;;;;-1:-1:-1;;;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;-1:-1;;;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;372:25;;-1:-1;83595:35:0;;420:4:-1;411:14;;;;83595:35:0;;;;;411:14:-1;83595:35:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;83595:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83589:41;;83544:135;;;83659:12;83653:18;;;;;;;;;;;;;-1:-1:-1;;83653:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;83659:12;83653:18;;83659:12;83653:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83544:135;83694:96;83716:27;83724:4;83716:25;:27::i;:::-;83694:96;;;;;;;;;;;;;-1:-1:-1;;;83694:96:0;;;83764:19;:8;:17;:19::i;:::-;83694:3;;:96;;;:13;:96;:::i;:::-;83687:103;83396:400;-1:-1:-1;;;;83396:400:0:o;94353:371::-;94505:53;94536:9;94547:10;94505:30;:53::i;:::-;94567:9;94585:2;94596;94607;91832:9;-1:-1:-1;;;;;91725:116:0;:103;91745:35;91774:5;91745:28;:35::i;:::-;91791:2;91804;91817;91725:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;91725:103:0;;;;;;;;-1:-1:-1;;;;;91725:116:0;;91709:160;;;;;-1:-1:-1;;;91709:160:0;;;;;;;;;;;;-1:-1:-1;;;91709:160:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;91876:26:0;;;;;;:15;:26;;;;;;;;;:28;;;;;;;;91916:51;;;;;;;;;;;;;;;;;94627:11;94641:35;94666:9;94641:24;:35::i;:::-;94627:49;;94683:35;94700:9;94711:6;94683:16;:35::i;54723:89::-;54805:1;54723:89;:::o;48488:133::-;23730:9;:7;:9::i;:::-;23722:54;;;;;-1:-1:-1;;;23722:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23722:54:0;;;;;;;;;;;;;;;48553:25;:12;48570:7;48553:25;:16;:25;:::i;:::-;48590;;-1:-1:-1;;;;;48590:25:0;;;;;;;;48488:133;:::o;43186:266::-;43288:4;-1:-1:-1;;;;;43307:27:0;;43304:143;;-1:-1:-1;;;;;;43352:16:0;;;43345:23;;43304:143;43405:13;-1:-1:-1;;;;;43398:31:0;;43430:8;43398:41;;;;;;;;;;;;;-1:-1:-1;;;;;43398:41:0;-1:-1:-1;;;;;43398:41:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;43398:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43398:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;43398:41:0;;-1:-1:-1;43391:48:0;;75930:103;75990:42;75930:103;:::o;66750:173::-;-1:-1:-1;;;;;66875:31:0;;;66852:4;66875:31;;;:23;:31;;;;;;;;:42;;;;;;;;;;;;;;;66750:173::o;48627:124::-;48672:31;:12;48692:10;48672:31;:19;:31;:::i;:::-;48715:30;;48734:10;;48715:30;;;;;48627:124::o;101177:1850::-;45567:7;;-1:-1:-1;;;45567:7:0;;;;45559:35;;;;;-1:-1:-1;;;45559:35:0;;;;;;;;;;;;-1:-1:-1;;;45559:35:0;;;;;;;;;;;;;;;101313:8;64876:32;64887:8;64897:10;64876;:32::i;:::-;:78;;;;64921:33;64933:8;64943:10;64921:11;:33::i;:::-;64876:139;;;-1:-1:-1;64984:18:0;;;;:8;:18;;;;;;64967:48;;-1:-1:-1;;;;;64984:18:0;65004:10;64967:16;:48::i;:::-;64860:193;;;;;-1:-1:-1;;;64860:193:0;;;;;;;;;;;;-1:-1:-1;;;64860:193:0;;;;;;;;;;;;;;;53794:5;101341:22;;:41;101333:76;;;;;-1:-1:-1;;;101333:76:0;;;;;;;;;;;;-1:-1:-1;;;101333:76:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;101424:17:0;;101416:45;;;;;-1:-1:-1;;;101416:45:0;;;;;;;;;;;;-1:-1:-1;;;101416:45:0;;;;;;;;;;;;;;;101468:16;101487:18;;;:8;:18;;;;;;-1:-1:-1;;;;;101487:18:0;101520:24;101487:18;101520:14;:24::i;:::-;101512:50;;;;;-1:-1:-1;;;101512:50:0;;;;;;;;;;;;-1:-1:-1;;;101512:50:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;101591:20:0;;;101569:19;101591:20;;;:10;:20;;;;;;101638:15;;;;;;;101672:13;;101779:27;;;;101638:15;;101672:13;;101809:15;101779:45;;101569:19;101908:37;101602:8;101933:11;101908:14;:37::i;:::-;101897:48;-1:-1:-1;101952:16:0;101971:20;:11;101897:48;101971:20;:15;:20;:::i;:::-;101952:39;;102068:13;102054:11;:27;102051:489;;;102140:11;102133:18;;102222:42;102235:8;102245:11;102258:5;102222:12;:42::i;:::-;102051:489;;;102339:39;102354:8;102364:13;102339:14;:39::i;:::-;102452:15;102422:27;;;:45;102513:19;;102394;;;;-1:-1:-1;102333:45:0;;-1:-1:-1;102523:8:0;;102513:19;;;;;102051:489;102552:13;;102548:216;;102581:24;102599:5;102581:17;:24::i;:::-;102614:23;102627:3;102632:4;102614:12;:23::i;:::-;102651:105;;102743:4;;-1:-1:-1;;;;;102651:105:0;;;102678:1;;-1:-1:-1;;;;;;;;;;;102651:105:0;102678:1;;102651:105;102548:216;102798:30;102811:4;102817;102823;102798:12;:30::i;:::-;102908:4;102896:3;-1:-1:-1;;;;;102862:57:0;102879:8;-1:-1:-1;;;;;102862:57:0;-1:-1:-1;;;;;;;;;;;102862:57:0;;;;;;;;;102936:51;102959:8;102969:3;102974:8;102936:51;;;;;;;;;;;;:22;:51::i;:::-;102928:93;;;;;-1:-1:-1;;;102928:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;65060:1;;;;;;;;45601;101177:1850;;;:::o;24626:109::-;23730:9;:7;:9::i;:::-;23722:54;;;;;-1:-1:-1;;;23722:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23722:54:0;;;;;;;;;;;;;;;24699:28;24718:8;24699:18;:28::i;55456:590::-;54042:7;:5;:7::i;:::-;-1:-1:-1;;;;;54028:21:0;:10;-1:-1:-1;;;;;54028:21:0;;:50;;;-1:-1:-1;54067:11:0;;-1:-1:-1;;;;;54067:11:0;54053:10;:25;54028:50;54012:114;;;;;-1:-1:-1;;;54012:114:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;55573:12;55588:40;55599:13;55622:4;55588:10;:40::i;:::-;55573:55;-1:-1:-1;55635:11:0;55656:12;;;:33;;;55682:7;55672;:17;55656:33;55653:174;;;55723:1;55713:7;:11;55705:40;;;;;-1:-1:-1;;;55705:40:0;;;;;;;;;;;;-1:-1:-1;;;55705:40:0;;;;;;;;;;;;;;;-1:-1:-1;55763:7:0;55653:174;;;-1:-1:-1;55812:7:0;55653:174;55878:11;;55840:58;;;;;;;;-1:-1:-1;;;;;55878:11:0;;;;55840:58;;;55851:10;;55840:58;;;;;;;;;56020:11;;55995:45;;56005:13;;-1:-1:-1;;;;;56020:11:0;56033:6;55995:9;:45::i;:::-;54133:1;;55456:590;;:::o;93685:160::-;23730:9;:7;:9::i;:::-;23722:54;;;;;-1:-1:-1;;;23722:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23722:54:0;;;;;;;;;;;;;;;93783:9;58862:22;58877:6;58862:14;:22::i;:::-;58846:62;;;;;-1:-1:-1;;;58846:62:0;;;;;;;;;;;;-1:-1:-1;;;58846:62:0;;;;;;;;;;;;;;;93804:35;93821:9;93832:6;93804:16;:35::i;107007:591::-;107130:4;107108:6;58862:22;58877:6;58862:14;:22::i;:::-;58846:62;;;;;-1:-1:-1;;;58846:62:0;;;;;;;;;;;;-1:-1:-1;;;58846:62:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;107164:18:0;;107146:15;107164:18;;;:10;:18;;;;;;107146:15;107370:10;107367:135;;107434:15;107408:3;:23;;;:41;107391:58;;107367:135;;;107489:5;107472:22;;107367:135;53794:5;107514:42;107533:22;;107514:14;:18;;:42;;;;:::i;:::-;:61;;;;;;;107007:591;-1:-1:-1;;;;;;;107007:591:0:o;67016:150::-;67110:4;67133:18;;;:8;:18;;;;;;;-1:-1:-1;;;;;67133:27:0;;;:18;;:27;;67016:150::o;97426:1027::-;97543:11;97521:6;58862:22;58877:6;58862:14;:22::i;:::-;58846:62;;;;;-1:-1:-1;;;58846:62:0;;;;;;;;;;;;-1:-1:-1;;;58846:62:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;97584:18:0;;97566:15;97584:18;;;:10;:18;;;;;97723:23;;;;97809:18;;97790:15;;97749;97723:41;;;;97774:31;;:53;97771:250;;97847:8;;97838:17;;97771:250;;;97995:18;;97965:8;;:27;;97978:13;97965:27;:12;:27;:::i;:::-;:48;;;;;;97956:57;;97771:250;98086:15;;:20;;:76;;;98144:18;;98126:15;;98110:13;:31;:52;98086:76;98083:365;;;98178:12;53794:5;98193:38;98206:24;;98193:8;;:12;;:38;;;;:::i;:::-;:57;;;;;;98178:72;;98272:7;98263:6;:16;98259:182;;;98387:7;98377:17;;;;98259:182;;;98430:1;98421:10;;98259:182;98083:365;;58915:1;;97426:1027;;;;:::o;96617:607::-;-1:-1:-1;;;;;96727:21:0;;96709:15;96727:21;;;:10;:21;;;;;;;;;96772:11;;96762:53;;;;;;;96727:21;;96796:10;;96727:21;;96772:11;;96762:53;;;;;;;;;;;97014:15;96988:23;;;:41;97042:10;;97038:141;;97139:12;;97129:42;;-1:-1:-1;;;;;97139:12:0;97153:9;97164:6;97129:9;:42::i;:::-;97187:31;97200:9;97211:6;97187:12;:31::i;108023:700::-;108131:18;108152;;;:8;:18;;;;;;-1:-1:-1;;;;;108152:18:0;108185:24;108177:53;;;;;-1:-1:-1;;;108177:53:0;;;;;;;;;;;;-1:-1:-1;;;108177:53:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;108255:22:0;;108237:15;108255:22;;;:10;:22;;;;;108307:23;;;;108255:22;;108353:26;108266:10;108353:14;:26::i;:::-;108337:42;;108389:8;108386:275;;;108411:8;108408:169;;;108458:28;:15;108478:7;108458:28;:19;:28;:::i;:::-;108432:23;;;:54;108408:169;;;108539:28;:15;108559:7;108539:28;:19;:28;:::i;:::-;108513:23;;;:54;108408:169;108386:275;;;108625:28;:15;108645:7;108625:28;:19;:28;:::i;:::-;108599:23;;;:54;108386:275;108672:45;;;;;;;;;;;;;;;108689:8;;108672:45;;;;;;;;108023:700;;;;;;;:::o;63190:296::-;63281:18;;;;:8;:18;;;;;;-1:-1:-1;;;;;63281:28:0;;;:18;;:28;63277:204;;63371:6;27:10:-1;;39:1;23:18;;45:23;;;63371:19:0;;;;-1:-1:-1;;;;;63371:19:0;;-1:-1:-1;;;;;;63371:19:0;;;;;;;;-1:-1:-1;63446:18:0;;;:8;63371:19;63446:18;;;;:27;;;;;;;;;;63190:296;;:::o;33961:181::-;34019:7;34051:5;;;34075:6;;;;34067:46;;;;;-1:-1:-1;;;34067:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;67316:162;67421:1;67391:18;;;:8;:18;;;;;;-1:-1:-1;;;;;67391:18:0;:32;67387:86;;67463:1;67434:18;;;:8;:18;;;;;:31;;-1:-1:-1;;;;;;67434:31:0;;;67316:162::o;62797:330::-;62875:12;;62871:251;;62982:12;:14;;;;;;;;63087:27;;62797:330::o;43759:398::-;43824:4;43843:10;;43840:312;;43867:12;;-1:-1:-1;;;;;43867:12:0;43864:281;;43927:6;43914:9;:19;;43906:48;;;;;-1:-1:-1;;;43906:48:0;;;;;;;;;;;;-1:-1:-1;;;43906:48:0;;;;;;;;;;;;;;;-1:-1:-1;43972:9:0;43965:16;;43864:281;44030:12;;-1:-1:-1;;;;;44030:12:0;44054:57;44030:12;44077:10;44097:4;44104:6;44054:57;:22;:57;:::i;:::-;44129:6;44122:13;;;;;76484:371;76674:11;;76642:64;;;-1:-1:-1;;;76642:64:0;;-1:-1:-1;;;;;76674:11:0;;;76642:64;;;;76132:66;76642:64;;;;;-1:-1:-1;;75990:42:0;;76642:31;;:64;;;;;;;;;;;;;;;75990:42;76642:64;;;5:2:-1;;;;30:1;27;20:12;5:2;76642:64:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;76642:64:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;76642:64:0;;-1:-1:-1;;;;;;76716:25:0;;;76713:137;;76757:85;;-1:-1:-1;;;76757:85:0;;76796:10;76757:85;;;;;;-1:-1:-1;;;;;76757:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:38;;;;;;76796:10;76808:3;;76813:9;;76824:10;;76836:5;;76757:85;;;;;;;;;;;;;-1:-1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;76757:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;76757:85:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;76757:85:0;;;;76484:371;;;;;:::o;1519:476::-;1959:7;1947:20;1982:7;1519:476;:::o;42869:241::-;42952:12;:28;;-1:-1:-1;;;;;;42952:28:0;-1:-1:-1;;;;;42952:28:0;;;;;;;;43003:27;;:70;;;43072:1;43041:13;-1:-1:-1;;;;;43034:33:0;;:35;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;43034:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43034:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;43034:35:0;:39;43003:70;42987:117;;;;;-1:-1:-1;;;42987:117:0;;;;;;;;;;;;-1:-1:-1;;;42987:117:0;;;;;;;;;;;;;;45389:88;45457:7;:14;;-1:-1:-1;;;;45457:14:0;-1:-1:-1;;;45457:14:0;;;45389:88::o;54146:500::-;54342:24;54319:19;:47;;54311:84;;;;;-1:-1:-1;;;54311:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;54402:14;:36;;54427:10;-1:-1:-1;;;;;;54402:36:0;;;;;;;54499:11;:26;;;;;-1:-1:-1;;;;;54499:26:0;;;;;;;;;;;54532:18;:40;;;;54579:8;:20;54606:15;:34;54146:500::o;81717:339::-;81809:19;:17;:19::i;:::-;81835:16;;;;:4;;:16;;;;;:::i;:::-;-1:-1:-1;82020:30:0;-1:-1:-1;;;82020:18:0;:30::i;67773:399::-;68136:30;-1:-1:-1;;;68136:18:0;:30::i;:::-;67773:399::o;93433:114::-;93537:4;93510:24;:31;93433:114::o;48066:147::-;48144:21;48158:6;48144:13;:21::i;:::-;48139:69;;48176:24;:12;48193:6;48176:24;:16;:24;:::i;26699:193::-;-1:-1:-1;;;;;;26775:25:0;;;;;26767:66;;;;;-1:-1:-1;;;26767:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;26844:33:0;;;;;:20;:33;;;;;:40;;-1:-1:-1;;26844:40:0;26880:4;26844:40;;;26699:193::o;22197:98::-;22277:10;22197:98;:::o;44315:436::-;44426:11;;44423:323;;-1:-1:-1;;;;;44451:27:0;;44448:291;;44583:40;-1:-1:-1;;;;;44583:31:0;;44615:7;44583:40;:31;:40;:::i;:::-;44448:291;;;44672:13;44697:32;-1:-1:-1;;;;;44697:18:0;;44716:3;44721:7;44697:32;:18;:32;:::i;47397:203::-;47469:4;-1:-1:-1;;;;;47494:21:0;;47486:68;;;;-1:-1:-1;;;47486:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;47572:20:0;:11;:20;;;;;;;;;;;;;;;47397:203::o;109237:362::-;109385:4;109406:15;:2;-1:-1:-1;;;;;109406:13:0;;:15::i;:::-;109401:50;;-1:-1:-1;109439:4:0;109432:11;;109401:50;109473:78;;-1:-1:-1;;;109473:78:0;;109518:10;109473:78;;;;;;-1:-1:-1;;;;;109473:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;109457:13;;109473:36;;;;;;109518:10;;109530:4;;109536:7;;109545:5;;109473:78;;;;;;;;;;;109457:13;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;109473:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;109473:78:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109473:78:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;109473:78:0;-1:-1:-1;;;;;;109566:26:0;-1:-1:-1;;;109566:26:0;;-1:-1:-1;;109237:362:0;;;;;;:::o;80252:454::-;80396:42;;;;;;;;;;;-1:-1:-1;;;80396:42:0;;;;80464:13;;80474:2;80464:13;;;80325;80464;;;;;;-1:-1:-1;;;;;80374:14:0;;;80396:42;80325:13;;80464;;;21:6:-1;;104:10;80464:13:0;87:34:-1;135:17;;-1:-1;80464:13:0;80445:32;;-1:-1:-1;;;80484:3:0;80488:1;80484:6;;;;;;;;;;;:12;-1:-1:-1;;;;;80484:12:0;;;;;;;;;-1:-1:-1;;;80503:3:0;80507:1;80503:6;;;;;;;;;;;:12;-1:-1:-1;;;;;80503:12:0;;;;;;;;-1:-1:-1;80527:6:0;80522:154;80543:2;80539:1;:6;80522:154;;;80574:8;80606:1;80589:5;80595:1;80599:2;80595:6;80589:13;;;;;;;;;;-1:-1:-1;;;;;80589:18:0;;;;80583:25;;80574:35;;;;;;;;;;;;;;;;;;80561:3;80567:1;80569;80567:3;80565:1;:5;80561:10;;;;;;;;;;;:48;-1:-1:-1;;;;;80561:48:0;;;;;;;;;80631:8;80646:5;80652:1;80656:2;80652:6;80646:13;;;;;;;80631:37;;80646:13;;;80662:4;80640:27;;80631:37;;;;;;;;;;;;;;80618:3;80624:1;80626;80624:3;80622:1;:5;80618:10;;;;;;;;;;;:50;-1:-1:-1;;;;;80618:50:0;;;;;;;;-1:-1:-1;80547:3:0;;80522:154;;;-1:-1:-1;80696:3:0;80252:454;-1:-1:-1;;;;80252:454:0:o;79733:513::-;79798:27;79920:2;79933:7;79929:40;;-1:-1:-1;;79951:10:0;;;;;;;;;;;;-1:-1:-1;;;79951:10:0;;;;;;79929:40;79984:2;79975:6;80008:53;80015:6;;80008:53;;80032:5;;80051:2;80046:7;;;;80008:53;;;80067:17;80097:3;80087:14;;;;;;;;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;80087:14:0;87:34:-1;135:17;;-1:-1;80087:14:0;-1:-1:-1;80067:34:0;-1:-1:-1;;;80117:7:0;;80131:84;80138:6;;80131:84;;80187:2;80183:1;:6;80178:2;:11;80167:24;;80155:4;80160:3;;;;;;;80155:9;;;;;;;;;;;:36;-1:-1:-1;;;;;80155:36:0;;;;;;;;-1:-1:-1;80205:2:0;80200:7;;;;80131:84;;;-1:-1:-1;80235:4:0;79733:513;-1:-1:-1;;;;;79733:513:0:o;78910:817::-;79054:33;79099:16;79124:2;79099:28;;79134:16;79159:2;79134:28;;79169:16;79194:2;79169:28;;79204:16;79229:2;79204:28;;79239:18;79310:3;:10;79297:3;:10;79284:3;:10;79271:3;:10;:23;:36;:49;79260:61;;;;;;;;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;79260:61:0;87:34:-1;135:17;;-1:-1;79260:61:0;-1:-1:-1;79239:82:0;-1:-1:-1;79239:82:0;79367:6;;79401:69;79417:3;:10;79413:1;:14;79401:69;;;79456:3;79460:1;79456:6;;;;;;;;;;;;;;;;79443:5;79449:3;;;;;;79443:10;;;;;;;;;;;:19;-1:-1:-1;;;;;79443:19:0;;;;;;;;-1:-1:-1;79429:3:0;;79401:69;;;-1:-1:-1;79485:1:0;79476:69;79492:3;:10;79488:1;:14;79476:69;;;79531:3;79535:1;79531:6;;;;;;;;;;;;;;;;79518:5;79524:3;;;;;;79518:10;;;;;;;;;;;:19;-1:-1:-1;;;;;79518:19:0;;;;;;;;-1:-1:-1;79504:3:0;;79476:69;;;-1:-1:-1;79560:1:0;79551:69;79567:3;:10;79563:1;:14;79551:69;;;79606:3;79610:1;79606:6;;;;;;;;;;;;;;;;79593:5;79599:3;;;;;;79593:10;;;;;;;;;;;:19;-1:-1:-1;;;;;79593:19:0;;;;;;;;-1:-1:-1;79579:3:0;;79551:69;;;-1:-1:-1;79635:1:0;79626:69;79642:3;:10;79638:1;:14;79626:69;;;79681:3;79685:1;79681:6;;;;;;;;;;;;;;;;79668:5;79674:3;;;;;;79668:10;;;;;;;;;;;:19;-1:-1:-1;;;;;79668:19:0;;;;;;;;-1:-1:-1;79654:3:0;;79626:69;;;-1:-1:-1;79715:5:0;;78910:817;-1:-1:-1;;;;;;;;;;;78910:817:0:o;90787:269::-;90989:58;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;90989:58:0;;;;;;;90979:69;;;;;;90787:269::o;46861:178::-;46939:18;46943:4;46949:7;46939:3;:18::i;:::-;46938:19;46930:63;;;;;-1:-1:-1;;;46930:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;47004:20:0;:11;:20;;;;;;;;;;;:27;;-1:-1:-1;;47004:27:0;47027:4;47004:27;;;46861:178::o;47119:183::-;47199:18;47203:4;47209:7;47199:3;:18::i;:::-;47191:64;;;;-1:-1:-1;;;47191:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;47266:20:0;47289:5;47266:20;;;;;;;;;;;:28;;-1:-1:-1;;47266:28:0;;;47119:183::o;24841:229::-;-1:-1:-1;;;;;24915:22:0;;24907:73;;;;-1:-1:-1;;;24907:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25017:6;;24996:38;;-1:-1:-1;;;;;24996:38:0;;;;25017:6;;24996:38;;25017:6;;24996:38;25045:6;:17;;-1:-1:-1;;;;;;25045:17:0;-1:-1:-1;;;;;25045:17:0;;;;;;;;;;24841:229::o;35333:471::-;35391:7;35636:6;35632:47;;-1:-1:-1;35666:1:0;35659:8;;35632:47;35703:5;;;35707:1;35703;:5;:1;35727:5;;;;;:10;35719:56;;;;-1:-1:-1;;;35719:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76975:304;77115:11;;77083:66;;;-1:-1:-1;;;77083:66:0;;-1:-1:-1;;;;;77115:11:0;;;77083:66;;;;76301;77083;;;;;-1:-1:-1;;75990:42:0;;77083:31;;:66;;;;;;;;;;;;;;;75990:42;77083:66;;;5:2:-1;;;;30:1;27;20:12;5:2;77083:66:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;77083:66:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;77083:66:0;;-1:-1:-1;;;;;;77159:25:0;;;77156:118;;77200:66;;;-1:-1:-1;;;77200:66:0;;77241:10;77200:66;;;;-1:-1:-1;;;;;77200:66:0;;;;;;;;;;;;;;;:40;;;;;;:66;;;;;-1:-1:-1;;77200:66:0;;;;;;;;-1:-1:-1;77200:40:0;:66;;;5:2:-1;;;;30:1;27;20:12;5:2;77200:66:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;34417:136:0;34475:7;34502:43;34506:1;34509;34502:43;;;;;;;;;;;;;;;;;:3;:43::i;39422:204::-;39549:68;;;-1:-1:-1;;;;;39549:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;39549:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;39523:95:0;;39542:5;;39523:18;:95::i;32630:371::-;32745:6;32720:21;:31;;32712:73;;;;;-1:-1:-1;;;32712:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;32872:32;;32854:12;;-1:-1:-1;;;;;32872:14:0;;;32893:6;;32854:12;32872:32;32854:12;32872:32;32893:6;32872:14;:32;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;32853:51:0;;;32923:7;32915:78;;;;-1:-1:-1;;;32915:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39238:176;39347:58;;;-1:-1:-1;;;;;39347:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;39347:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;39321:85:0;;39340:5;;39321:18;:85::i;30499:810::-;30559:4;31218:20;;31061:66;31258:15;;;;;:42;;-1:-1:-1;31277:23:0;;;30499:810;-1:-1:-1;;30499:810:0:o;34890:192::-;34976:7;35012:12;35004:6;;;;34996:29;;;;-1:-1:-1;;;34996:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;34996:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;35048:5:0;;;34890:192::o;41277:1114::-;41881:27;41889:5;-1:-1:-1;;;;;41881:25:0;;:27::i;:::-;41873:71;;;;;-1:-1:-1;;;41873:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;42018:12;42032:23;42067:5;-1:-1:-1;;;;;42059:19:0;42079:4;42059:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;42059:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;42017:67:0;;;;42103:7;42095:52;;;;;-1:-1:-1;;;42095:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42164:17;;:21;42160:224;;42306:10;42295:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42295:30:0;42287:85;;;;-1:-1:-1;;;42287:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;110019:1245;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;110019:1245:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;110019:1245:0;;;-1:-1:-1;110019:1245:0;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

bzzr://0699dda614bcab2e903ef2411b51464fc64ec2c573008b8f0d5cc966a4a60011
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading

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.