Address Details
contract

0x8dF7ad6a1870766BBC9F0b8C38F8Db73126d2ddc

Contract Name
Validators
Creator
0xe1207b–0408ee at 0x923052–1651d5
Balance
0 CELO ( )
Locked CELO Balance
0.00 CELO
Voting CELO Balance
0.00 CELO
Pending Unlocked Gold
0.00 CELO
Tokens
Fetching tokens...
Transactions
0 Transactions
Transfers
0 Transfers
Gas Used
Fetching gas used...
Last Balance Update
13809694
This contract has been partially verified via Sourcify. View contract in Sourcify repository
Contract name:
Validators




Optimization enabled
false
Compiler version
v0.5.13+commit.5b0b510c




EVM Version
istanbul




Verified at
2022-03-22T14:28:25.640777Z

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/Validators.sol

pragma solidity ^0.5.13;

import "openzeppelin-solidity/contracts/math/Math.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "solidity-bytes-utils/contracts/BytesLib.sol";

import "./interfaces/IValidators.sol";

import "../common/CalledByVm.sol";
import "../common/Initializable.sol";
import "../common/FixidityLib.sol";
import "../common/linkedlists/AddressLinkedList.sol";
import "../common/UsingRegistry.sol";
import "../common/UsingPrecompiles.sol";
import "../common/interfaces/ICeloVersionedContract.sol";
import "../common/libraries/ReentrancyGuard.sol";

/**
 * @title A contract for registering and electing Validator Groups and Validators.
 */
contract Validators is
  IValidators,
  ICeloVersionedContract,
  Ownable,
  ReentrancyGuard,
  Initializable,
  UsingRegistry,
  UsingPrecompiles,
  CalledByVm
{
  using FixidityLib for FixidityLib.Fraction;
  using AddressLinkedList for LinkedList.List;
  using SafeMath for uint256;
  using BytesLib for bytes;

  // For Validators, these requirements must be met in order to:
  //   1. Register a validator
  //   2. Affiliate with and be added to a group
  //   3. Receive epoch payments (note that the group must meet the group requirements as well)
  // Accounts may de-register their Validator `duration` seconds after they were last a member of a
  // group, after which no restrictions on Locked Gold will apply to the account.
  //
  // For Validator Groups, these requirements must be met in order to:
  //   1. Register a group
  //   2. Add a member to a group
  //   3. Receive epoch payments
  // Note that for groups, the requirement value is multiplied by the number of members, and is
  // enforced for `duration` seconds after the group last had that number of members.
  // Accounts may de-register their Group `duration` seconds after they were last non-empty, after
  // which no restrictions on Locked Gold will apply to the account.
  struct LockedGoldRequirements {
    uint256 value;
    // In seconds.
    uint256 duration;
  }

  struct ValidatorGroup {
    bool exists;
    LinkedList.List members;
    FixidityLib.Fraction commission;
    FixidityLib.Fraction nextCommission;
    uint256 nextCommissionBlock;
    // sizeHistory[i] contains the last time the group contained i members.
    uint256[] sizeHistory;
    SlashingInfo slashInfo;
  }

  // Stores the epoch number at which a validator joined a particular group.
  struct MembershipHistoryEntry {
    uint256 epochNumber;
    address group;
  }

  // Stores the per-epoch membership history of a validator, used to determine which group
  // commission should be paid to at the end of an epoch.
  // Stores a timestamp of the last time the validator was removed from a group, used to determine
  // whether or not a group can de-register.
  struct MembershipHistory {
    // The key to the most recent entry in the entries mapping.
    uint256 tail;
    // The number of entries in this validators membership history.
    uint256 numEntries;
    mapping(uint256 => MembershipHistoryEntry) entries;
    uint256 lastRemovedFromGroupTimestamp;
  }

  struct SlashingInfo {
    FixidityLib.Fraction multiplier;
    uint256 lastSlashed;
  }

  struct PublicKeys {
    bytes ecdsa;
    bytes bls;
  }

  struct Validator {
    PublicKeys publicKeys;
    address affiliation;
    FixidityLib.Fraction score;
    MembershipHistory membershipHistory;
  }

  // Parameters that govern the calculation of validator's score.
  struct ValidatorScoreParameters {
    uint256 exponent;
    FixidityLib.Fraction adjustmentSpeed;
  }

  mapping(address => ValidatorGroup) private groups;
  mapping(address => Validator) private validators;
  address[] private registeredGroups;
  address[] private registeredValidators;
  LockedGoldRequirements public validatorLockedGoldRequirements;
  LockedGoldRequirements public groupLockedGoldRequirements;
  ValidatorScoreParameters private validatorScoreParameters;
  uint256 public membershipHistoryLength;
  uint256 public maxGroupSize;
  // The number of blocks to delay a ValidatorGroup's commission update
  uint256 public commissionUpdateDelay;
  uint256 public slashingMultiplierResetPeriod;
  uint256 public downtimeGracePeriod;

  event MaxGroupSizeSet(uint256 size);
  event CommissionUpdateDelaySet(uint256 delay);
  event ValidatorScoreParametersSet(uint256 exponent, uint256 adjustmentSpeed);
  event GroupLockedGoldRequirementsSet(uint256 value, uint256 duration);
  event ValidatorLockedGoldRequirementsSet(uint256 value, uint256 duration);
  event MembershipHistoryLengthSet(uint256 length);
  event ValidatorRegistered(address indexed validator);
  event ValidatorDeregistered(address indexed validator);
  event ValidatorAffiliated(address indexed validator, address indexed group);
  event ValidatorDeaffiliated(address indexed validator, address indexed group);
  event ValidatorEcdsaPublicKeyUpdated(address indexed validator, bytes ecdsaPublicKey);
  event ValidatorBlsPublicKeyUpdated(address indexed validator, bytes blsPublicKey);
  event ValidatorScoreUpdated(address indexed validator, uint256 score, uint256 epochScore);
  event ValidatorGroupRegistered(address indexed group, uint256 commission);
  event ValidatorGroupDeregistered(address indexed group);
  event ValidatorGroupMemberAdded(address indexed group, address indexed validator);
  event ValidatorGroupMemberRemoved(address indexed group, address indexed validator);
  event ValidatorGroupMemberReordered(address indexed group, address indexed validator);
  event ValidatorGroupCommissionUpdateQueued(
    address indexed group,
    uint256 commission,
    uint256 activationBlock
  );
  event ValidatorGroupCommissionUpdated(address indexed group, uint256 commission);
  event ValidatorEpochPaymentDistributed(
    address indexed validator,
    uint256 validatorPayment,
    address indexed group,
    uint256 groupPayment
  );

  modifier onlySlasher() {
    require(getLockedGold().isSlasher(msg.sender), "Only registered slasher can call");
    _;
  }

  /**
   * @notice Returns the storage, major, minor, and patch version of the contract.
   * @return The storage, major, minor, and patch version of the contract.
   */
  function getVersionNumber() external pure returns (uint256, uint256, uint256, uint256) {
    return (1, 2, 0, 2);
  }

  /**
   * @notice Sets initialized == true on implementation contracts
   * @param test Set to true to skip implementation initialization
   */
  constructor(bool test) public Initializable(test) {}

  /**
   * @notice Used in place of the constructor to allow the contract to be upgradable via proxy.
   * @param registryAddress The address of the registry core smart contract.
   * @param groupRequirementValue The Locked Gold requirement amount for groups.
   * @param groupRequirementDuration The Locked Gold requirement duration for groups.
   * @param validatorRequirementValue The Locked Gold requirement amount for validators.
   * @param validatorRequirementDuration The Locked Gold requirement duration for validators.
   * @param validatorScoreExponent The exponent used in calculating validator scores.
   * @param validatorScoreAdjustmentSpeed The speed at which validator scores are adjusted.
   * @param _membershipHistoryLength The max number of entries for validator membership history.
   * @param _maxGroupSize The maximum group size.
   * @param _commissionUpdateDelay The number of blocks to delay a ValidatorGroup's commission
   * update.
   * @dev Should be called only once.
   */
  function initialize(
    address registryAddress,
    uint256 groupRequirementValue,
    uint256 groupRequirementDuration,
    uint256 validatorRequirementValue,
    uint256 validatorRequirementDuration,
    uint256 validatorScoreExponent,
    uint256 validatorScoreAdjustmentSpeed,
    uint256 _membershipHistoryLength,
    uint256 _slashingMultiplierResetPeriod,
    uint256 _maxGroupSize,
    uint256 _commissionUpdateDelay,
    uint256 _downtimeGracePeriod
  ) external initializer {
    _transferOwnership(msg.sender);
    setRegistry(registryAddress);
    setGroupLockedGoldRequirements(groupRequirementValue, groupRequirementDuration);
    setValidatorLockedGoldRequirements(validatorRequirementValue, validatorRequirementDuration);
    setValidatorScoreParameters(validatorScoreExponent, validatorScoreAdjustmentSpeed);
    setMaxGroupSize(_maxGroupSize);
    setCommissionUpdateDelay(_commissionUpdateDelay);
    setMembershipHistoryLength(_membershipHistoryLength);
    setSlashingMultiplierResetPeriod(_slashingMultiplierResetPeriod);
    setDowntimeGracePeriod(_downtimeGracePeriod);
  }

  /**
   * @notice Updates the block delay for a ValidatorGroup's commission udpdate
   * @param delay Number of blocks to delay the update
   */
  function setCommissionUpdateDelay(uint256 delay) public onlyOwner {
    require(delay != commissionUpdateDelay, "commission update delay not changed");
    commissionUpdateDelay = delay;
    emit CommissionUpdateDelaySet(delay);
  }

  /**
   * @notice Updates the maximum number of members a group can have.
   * @param size The maximum group size.
   * @return True upon success.
   */
  function setMaxGroupSize(uint256 size) public onlyOwner returns (bool) {
    require(0 < size, "Max group size cannot be zero");
    require(size != maxGroupSize, "Max group size not changed");
    maxGroupSize = size;
    emit MaxGroupSizeSet(size);
    return true;
  }

  /**
   * @notice Updates the number of validator group membership entries to store.
   * @param length The number of validator group membership entries to store.
   * @return True upon success.
   */
  function setMembershipHistoryLength(uint256 length) public onlyOwner returns (bool) {
    require(0 < length, "Membership history length cannot be zero");
    require(length != membershipHistoryLength, "Membership history length not changed");
    membershipHistoryLength = length;
    emit MembershipHistoryLengthSet(length);
    return true;
  }

  /**
   * @notice Updates the validator score parameters.
   * @param exponent The exponent used in calculating the score.
   * @param adjustmentSpeed The speed at which the score is adjusted.
   * @return True upon success.
   */
  function setValidatorScoreParameters(uint256 exponent, uint256 adjustmentSpeed)
    public
    onlyOwner
    returns (bool)
  {
    require(
      adjustmentSpeed <= FixidityLib.fixed1().unwrap(),
      "Adjustment speed cannot be larger than 1"
    );
    require(
      exponent != validatorScoreParameters.exponent ||
        !FixidityLib.wrap(adjustmentSpeed).equals(validatorScoreParameters.adjustmentSpeed),
      "Adjustment speed and exponent not changed"
    );
    validatorScoreParameters = ValidatorScoreParameters(
      exponent,
      FixidityLib.wrap(adjustmentSpeed)
    );
    emit ValidatorScoreParametersSet(exponent, adjustmentSpeed);
    return true;
  }

  /**
   * @notice Returns the maximum number of members a group can add.
   * @return The maximum number of members a group can add.
   */
  function getMaxGroupSize() external view returns (uint256) {
    return maxGroupSize;
  }

  /**
   * @notice Returns the block delay for a ValidatorGroup's commission udpdate.
   * @return The block delay for a ValidatorGroup's commission udpdate.
   */
  function getCommissionUpdateDelay() external view returns (uint256) {
    return commissionUpdateDelay;
  }

  /**
   * @notice Updates the Locked Gold requirements for Validator Groups.
   * @param value The per-member amount of Locked Gold required.
   * @param duration The time (in seconds) that these requirements persist for.
   * @return True upon success.
   */
  function setGroupLockedGoldRequirements(uint256 value, uint256 duration)
    public
    onlyOwner
    returns (bool)
  {
    LockedGoldRequirements storage requirements = groupLockedGoldRequirements;
    require(
      value != requirements.value || duration != requirements.duration,
      "Group requirements not changed"
    );
    groupLockedGoldRequirements = LockedGoldRequirements(value, duration);
    emit GroupLockedGoldRequirementsSet(value, duration);
    return true;
  }

  /**
   * @notice Updates the Locked Gold requirements for Validators.
   * @param value The amount of Locked Gold required.
   * @param duration The time (in seconds) that these requirements persist for.
   * @return True upon success.
   */
  function setValidatorLockedGoldRequirements(uint256 value, uint256 duration)
    public
    onlyOwner
    returns (bool)
  {
    LockedGoldRequirements storage requirements = validatorLockedGoldRequirements;
    require(
      value != requirements.value || duration != requirements.duration,
      "Validator requirements not changed"
    );
    validatorLockedGoldRequirements = LockedGoldRequirements(value, duration);
    emit ValidatorLockedGoldRequirementsSet(value, duration);
    return true;
  }

  /**
   * @notice Registers a validator unaffiliated with any validator group.
   * @param ecdsaPublicKey The ECDSA public key that the validator is using for consensus, should
   *   match the validator signer. 64 bytes.
   * @param blsPublicKey The BLS public key that the validator is using for consensus, should pass
   *   proof of possession. 96 bytes.
   * @param blsPop The BLS public key proof-of-possession, which consists of a signature on the
   *   account address. 48 bytes.
   * @return True upon success.
   * @dev Fails if the account is already a validator or validator group.
   * @dev Fails if the account does not have sufficient Locked Gold.
   */
  function registerValidator(
    bytes calldata ecdsaPublicKey,
    bytes calldata blsPublicKey,
    bytes calldata blsPop
  ) external nonReentrant returns (bool) {
    address account = getAccounts().validatorSignerToAccount(msg.sender);
    require(!isValidator(account) && !isValidatorGroup(account), "Already registered");
    uint256 lockedGoldBalance = getLockedGold().getAccountTotalLockedGold(account);
    require(lockedGoldBalance >= validatorLockedGoldRequirements.value, "Deposit too small");
    Validator storage validator = validators[account];
    address signer = getAccounts().getValidatorSigner(account);
    require(
      _updateEcdsaPublicKey(validator, account, signer, ecdsaPublicKey),
      "Error updating ECDSA public key"
    );
    require(
      _updateBlsPublicKey(validator, account, blsPublicKey, blsPop),
      "Error updating BLS public key"
    );
    registeredValidators.push(account);
    updateMembershipHistory(account, address(0));
    emit ValidatorRegistered(account);
    return true;
  }

  /**
   * @notice Returns the parameters that govern how a validator's score is calculated.
   * @return The parameters that goven how a validator's score is calculated.
   */
  function getValidatorScoreParameters() external view returns (uint256, uint256) {
    return (validatorScoreParameters.exponent, validatorScoreParameters.adjustmentSpeed.unwrap());
  }

  /**
   * @notice Returns the group membership history of a validator.
   * @param account The validator whose membership history to return.
   * @return The group membership history of a validator.
   */
  function getMembershipHistory(address account)
    external
    view
    returns (uint256[] memory, address[] memory, uint256, uint256)
  {
    MembershipHistory storage history = validators[account].membershipHistory;
    uint256[] memory epochs = new uint256[](history.numEntries);
    address[] memory membershipGroups = new address[](history.numEntries);
    for (uint256 i = 0; i < history.numEntries; i = i.add(1)) {
      uint256 index = history.tail.add(i);
      epochs[i] = history.entries[index].epochNumber;
      membershipGroups[i] = history.entries[index].group;
    }
    return (epochs, membershipGroups, history.lastRemovedFromGroupTimestamp, history.tail);
  }

  /**
   * @notice Calculates the validator score for an epoch from the uptime value for the epoch.
   * @param uptime The Fixidity representation of the validator's uptime, between 0 and 1.
   * @dev epoch_score = uptime ** exponent
   * @return Fixidity representation of the epoch score between 0 and 1.
   */
  function calculateEpochScore(uint256 uptime) public view returns (uint256) {
    require(uptime <= FixidityLib.fixed1().unwrap(), "Uptime cannot be larger than one");
    uint256 numerator;
    uint256 denominator;
    uptime = Math.min(uptime.add(downtimeGracePeriod), FixidityLib.fixed1().unwrap());
    (numerator, denominator) = fractionMulExp(
      FixidityLib.fixed1().unwrap(),
      FixidityLib.fixed1().unwrap(),
      uptime,
      FixidityLib.fixed1().unwrap(),
      validatorScoreParameters.exponent,
      18
    );
    return FixidityLib.newFixedFraction(numerator, denominator).unwrap();
  }

  /**
   * @notice Calculates the aggregate score of a group for an epoch from individual uptimes.
   * @param uptimes Array of Fixidity representations of the validators' uptimes, between 0 and 1.
   * @dev group_score = average(uptimes ** exponent)
   * @return Fixidity representation of the group epoch score between 0 and 1.
   */
  function calculateGroupEpochScore(uint256[] calldata uptimes) external view returns (uint256) {
    require(uptimes.length > 0, "Uptime array empty");
    require(uptimes.length <= maxGroupSize, "Uptime array larger than maximum group size");
    FixidityLib.Fraction memory sum;
    for (uint256 i = 0; i < uptimes.length; i = i.add(1)) {
      sum = sum.add(FixidityLib.wrap(calculateEpochScore(uptimes[i])));
    }
    return sum.divide(FixidityLib.newFixed(uptimes.length)).unwrap();
  }

  /**
   * @notice Updates a validator's score based on its uptime for the epoch.
   * @param signer The validator signer of the validator account whose score needs updating.
   * @param uptime The Fixidity representation of the validator's uptime, between 0 and 1.
   * @return True upon success.
   */
  function updateValidatorScoreFromSigner(address signer, uint256 uptime) external onlyVm() {
    _updateValidatorScoreFromSigner(signer, uptime);
  }

  /**
   * @notice Updates a validator's score based on its uptime for the epoch.
   * @param signer The validator signer of the validator whose score needs updating.
   * @param uptime The Fixidity representation of the validator's uptime, between 0 and 1.
   * @dev new_score = uptime ** exponent * adjustmentSpeed + old_score * (1 - adjustmentSpeed)
   * @return True upon success.
   */
  function _updateValidatorScoreFromSigner(address signer, uint256 uptime) internal {
    address account = getAccounts().signerToAccount(signer);
    require(isValidator(account), "Not a validator");

    FixidityLib.Fraction memory epochScore = FixidityLib.wrap(calculateEpochScore(uptime));
    FixidityLib.Fraction memory newComponent = validatorScoreParameters.adjustmentSpeed.multiply(
      epochScore
    );

    FixidityLib.Fraction memory currentComponent = FixidityLib.fixed1().subtract(
      validatorScoreParameters.adjustmentSpeed
    );
    currentComponent = currentComponent.multiply(validators[account].score);
    validators[account].score = FixidityLib.wrap(
      Math.min(epochScore.unwrap(), newComponent.add(currentComponent).unwrap())
    );
    emit ValidatorScoreUpdated(account, validators[account].score.unwrap(), epochScore.unwrap());
  }

  /**
   * @notice Distributes epoch payments to the account associated with `signer` and its group.
   * @param signer The validator signer of the account to distribute the epoch payment to.
   * @param maxPayment The maximum payment to the validator. Actual payment is based on score and
   *   group commission.
   * @return The total payment paid to the validator and their group.
   */
  function distributeEpochPaymentsFromSigner(address signer, uint256 maxPayment)
    external
    onlyVm()
    returns (uint256)
  {
    return _distributeEpochPaymentsFromSigner(signer, maxPayment);
  }

  /**
   * @notice Distributes epoch payments to the account associated with `signer` and its group.
   * @param signer The validator signer of the validator to distribute the epoch payment to.
   * @param maxPayment The maximum payment to the validator. Actual payment is based on score and
   *   group commission.
   * @return The total payment paid to the validator and their group.
   */
  function _distributeEpochPaymentsFromSigner(address signer, uint256 maxPayment)
    internal
    returns (uint256)
  {
    address account = getAccounts().signerToAccount(signer);
    require(isValidator(account), "Not a validator");
    // The group that should be paid is the group that the validator was a member of at the
    // time it was elected.
    address group = getMembershipInLastEpoch(account);
    require(group != address(0), "Validator not registered with a group");
    // Both the validator and the group must maintain the minimum locked gold balance in order to
    // receive epoch payments.
    if (meetsAccountLockedGoldRequirements(account) && meetsAccountLockedGoldRequirements(group)) {
      FixidityLib.Fraction memory totalPayment = FixidityLib
        .newFixed(maxPayment)
        .multiply(validators[account].score)
        .multiply(groups[group].slashInfo.multiplier);
      uint256 groupPayment = totalPayment.multiply(groups[group].commission).fromFixed();
      uint256 validatorPayment = totalPayment.fromFixed().sub(groupPayment);
      IStableToken stableToken = getStableToken();
      require(stableToken.mint(group, groupPayment), "mint failed to validator group");
      require(stableToken.mint(account, validatorPayment), "mint failed to validator account");
      emit ValidatorEpochPaymentDistributed(account, validatorPayment, group, groupPayment);
      return totalPayment.fromFixed();
    } else {
      return 0;
    }
  }

  /**
   * @notice De-registers a validator.
   * @param index The index of this validator in the list of all registered validators.
   * @return True upon success.
   * @dev Fails if the account is not a validator.
   * @dev Fails if the validator has been a member of a group too recently.
   */
  function deregisterValidator(uint256 index) external nonReentrant returns (bool) {
    address account = getAccounts().validatorSignerToAccount(msg.sender);
    require(isValidator(account), "Not a validator");

    // Require that the validator has not been a member of a validator group for
    // `validatorLockedGoldRequirements.duration` seconds.
    Validator storage validator = validators[account];
    if (validator.affiliation != address(0)) {
      require(
        !groups[validator.affiliation].members.contains(account),
        "Has been group member recently"
      );
    }
    uint256 requirementEndTime = validator.membershipHistory.lastRemovedFromGroupTimestamp.add(
      validatorLockedGoldRequirements.duration
    );
    require(requirementEndTime < now, "Not yet requirement end time");

    // Remove the validator.
    deleteElement(registeredValidators, account, index);
    delete validators[account];
    emit ValidatorDeregistered(account);
    return true;
  }

  /**
   * @notice Affiliates a validator with a group, allowing it to be added as a member.
   * @param group The validator group with which to affiliate.
   * @return True upon success.
   * @dev De-affiliates with the previously affiliated group if present.
   */
  function affiliate(address group) external nonReentrant returns (bool) {
    address account = getAccounts().validatorSignerToAccount(msg.sender);
    require(isValidator(account), "Not a validator");
    require(isValidatorGroup(group), "Not a validator group");
    require(meetsAccountLockedGoldRequirements(account), "Validator doesn't meet requirements");
    require(meetsAccountLockedGoldRequirements(group), "Group doesn't meet requirements");
    Validator storage validator = validators[account];
    if (validator.affiliation != address(0)) {
      _deaffiliate(validator, account);
    }
    validator.affiliation = group;
    emit ValidatorAffiliated(account, group);
    return true;
  }

  /**
   * @notice De-affiliates a validator, removing it from the group for which it is a member.
   * @return True upon success.
   * @dev Fails if the account is not a validator with non-zero affiliation.
   */
  function deaffiliate() external nonReentrant returns (bool) {
    address account = getAccounts().validatorSignerToAccount(msg.sender);
    require(isValidator(account), "Not a validator");
    Validator storage validator = validators[account];
    require(validator.affiliation != address(0), "deaffiliate: not affiliated");
    _deaffiliate(validator, account);
    return true;
  }

  /**
   * @notice Updates a validator's BLS key.
   * @param blsPublicKey The BLS public key that the validator is using for consensus, should pass
   *   proof of possession. 48 bytes.
   * @param blsPop The BLS public key proof-of-possession, which consists of a signature on the
   *   account address. 48 bytes.
   * @return True upon success.
   */
  function updateBlsPublicKey(bytes calldata blsPublicKey, bytes calldata blsPop)
    external
    returns (bool)
  {
    address account = getAccounts().validatorSignerToAccount(msg.sender);
    require(isValidator(account), "Not a validator");
    Validator storage validator = validators[account];
    require(
      _updateBlsPublicKey(validator, account, blsPublicKey, blsPop),
      "Error updating BLS public key"
    );
    return true;
  }

  /**
   * @notice Updates a validator's BLS key.
   * @param validator The validator whose BLS public key should be updated.
   * @param account The address under which the validator is registered.
   * @param blsPublicKey The BLS public key that the validator is using for consensus, should pass
   *   proof of possession. 96 bytes.
   * @param blsPop The BLS public key proof-of-possession, which consists of a signature on the
   *   account address. 48 bytes.
   * @return True upon success.
   */
  function _updateBlsPublicKey(
    Validator storage validator,
    address account,
    bytes memory blsPublicKey,
    bytes memory blsPop
  ) private returns (bool) {
    require(blsPublicKey.length == 96, "Wrong BLS public key length");
    require(blsPop.length == 48, "Wrong BLS PoP length");
    require(checkProofOfPossession(account, blsPublicKey, blsPop), "Invalid BLS PoP");
    validator.publicKeys.bls = blsPublicKey;
    emit ValidatorBlsPublicKeyUpdated(account, blsPublicKey);
    return true;
  }

  /**
   * @notice Updates a validator's ECDSA key.
   * @param account The address under which the validator is registered.
   * @param signer The address which the validator is using to sign consensus messages.
   * @param ecdsaPublicKey The ECDSA public key corresponding to `signer`.
   * @return True upon success.
   */
  function updateEcdsaPublicKey(address account, address signer, bytes calldata ecdsaPublicKey)
    external
    onlyRegisteredContract(ACCOUNTS_REGISTRY_ID)
    returns (bool)
  {
    require(isValidator(account), "Not a validator");
    Validator storage validator = validators[account];
    require(
      _updateEcdsaPublicKey(validator, account, signer, ecdsaPublicKey),
      "Error updating ECDSA public key"
    );
    return true;
  }

  /**
   * @notice Updates a validator's ECDSA key.
   * @param validator The validator whose ECDSA public key should be updated.
   * @param signer The address with which the validator is signing consensus messages.
   * @param ecdsaPublicKey The ECDSA public key that the validator is using for consensus. Should
   *   match `signer`. 64 bytes.
   * @return True upon success.
   */
  function _updateEcdsaPublicKey(
    Validator storage validator,
    address account,
    address signer,
    bytes memory ecdsaPublicKey
  ) private returns (bool) {
    require(ecdsaPublicKey.length == 64, "Wrong ECDSA public key length");
    require(
      address(uint160(uint256(keccak256(ecdsaPublicKey)))) == signer,
      "ECDSA key does not match signer"
    );
    validator.publicKeys.ecdsa = ecdsaPublicKey;
    emit ValidatorEcdsaPublicKeyUpdated(account, ecdsaPublicKey);
    return true;
  }

  /**
   * @notice Updates a validator's ECDSA and BLS keys.
   * @param account The address under which the validator is registered.
   * @param signer The address which the validator is using to sign consensus messages.
   * @param ecdsaPublicKey The ECDSA public key corresponding to `signer`.
   * @param blsPublicKey The BLS public key that the validator is using for consensus, should pass
   *   proof of possession. 96 bytes.
   * @param blsPop The BLS public key proof-of-possession, which consists of a signature on the
   *   account address. 48 bytes.
   * @return True upon success.
   */
  function updatePublicKeys(
    address account,
    address signer,
    bytes calldata ecdsaPublicKey,
    bytes calldata blsPublicKey,
    bytes calldata blsPop
  ) external onlyRegisteredContract(ACCOUNTS_REGISTRY_ID) returns (bool) {
    require(isValidator(account), "Not a validator");
    Validator storage validator = validators[account];
    require(
      _updateEcdsaPublicKey(validator, account, signer, ecdsaPublicKey),
      "Error updating ECDSA public key"
    );
    require(
      _updateBlsPublicKey(validator, account, blsPublicKey, blsPop),
      "Error updating BLS public key"
    );
    return true;
  }

  /**
   * @notice Registers a validator group with no member validators.
   * @param commission Fixidity representation of the commission this group receives on epoch
   *   payments made to its members.
   * @return True upon success.
   * @dev Fails if the account is already a validator or validator group.
   * @dev Fails if the account does not have sufficient weight.
   */
  function registerValidatorGroup(uint256 commission) external nonReentrant returns (bool) {
    require(commission <= FixidityLib.fixed1().unwrap(), "Commission can't be greater than 100%");
    address account = getAccounts().validatorSignerToAccount(msg.sender);
    require(!isValidator(account), "Already registered as validator");
    require(!isValidatorGroup(account), "Already registered as group");
    uint256 lockedGoldBalance = getLockedGold().getAccountTotalLockedGold(account);
    require(lockedGoldBalance >= groupLockedGoldRequirements.value, "Not enough locked gold");
    ValidatorGroup storage group = groups[account];
    group.exists = true;
    group.commission = FixidityLib.wrap(commission);
    group.slashInfo = SlashingInfo(FixidityLib.fixed1(), 0);
    registeredGroups.push(account);
    emit ValidatorGroupRegistered(account, commission);
    return true;
  }

  /**
   * @notice De-registers a validator group.
   * @param index The index of this validator group in the list of all validator groups.
   * @return True upon success.
   * @dev Fails if the account is not a validator group with no members.
   * @dev Fails if the group has had members too recently.
   */
  function deregisterValidatorGroup(uint256 index) external nonReentrant returns (bool) {
    address account = getAccounts().validatorSignerToAccount(msg.sender);
    // Only Validator Groups that have never had members or have been empty for at least
    // `groupLockedGoldRequirements.duration` seconds can be deregistered.
    require(isValidatorGroup(account), "Not a validator group");
    require(groups[account].members.numElements == 0, "Validator group not empty");
    uint256[] storage sizeHistory = groups[account].sizeHistory;
    if (sizeHistory.length > 1) {
      require(
        sizeHistory[1].add(groupLockedGoldRequirements.duration) < now,
        "Hasn't been empty for long enough"
      );
    }
    delete groups[account];
    deleteElement(registeredGroups, account, index);
    emit ValidatorGroupDeregistered(account);
    return true;
  }

  /**
   * @notice Adds a member to the end of a validator group's list of members.
   * @param validator The validator to add to the group
   * @return True upon success.
   * @dev Fails if `validator` has not set their affiliation to this account.
   * @dev Fails if the group has zero members.
   */
  function addMember(address validator) external nonReentrant returns (bool) {
    address account = getAccounts().validatorSignerToAccount(msg.sender);
    require(groups[account].members.numElements > 0, "Validator group empty");
    return _addMember(account, validator, address(0), address(0));
  }

  /**
   * @notice Adds the first member to a group's list of members and marks it eligible for election.
   * @param validator The validator to add to the group
   * @param lesser The address of the group that has received fewer votes than this group.
   * @param greater The address of the group that has received more votes than this group.
   * @return True upon success.
   * @dev Fails if `validator` has not set their affiliation to this account.
   * @dev Fails if the group has > 0 members.
   */
  function addFirstMember(address validator, address lesser, address greater)
    external
    nonReentrant
    returns (bool)
  {
    address account = getAccounts().validatorSignerToAccount(msg.sender);
    require(groups[account].members.numElements == 0, "Validator group not empty");
    return _addMember(account, validator, lesser, greater);
  }

  /**
   * @notice Adds a member to the end of a validator group's list of members.
   * @param group The address of the validator group.
   * @param validator The validator to add to the group.
   * @param lesser The address of the group that has received fewer votes than this group.
   * @param greater The address of the group that has received more votes than this group.
   * @return True upon success.
   * @dev Fails if `validator` has not set their affiliation to this account.
   * @dev Fails if the group has > 0 members.
   */
  function _addMember(address group, address validator, address lesser, address greater)
    private
    returns (bool)
  {
    require(isValidatorGroup(group) && isValidator(validator), "Not validator and group");
    ValidatorGroup storage _group = groups[group];
    require(_group.members.numElements < maxGroupSize, "group would exceed maximum size");
    require(validators[validator].affiliation == group, "Not affiliated to group");
    require(!_group.members.contains(validator), "Already in group");
    uint256 numMembers = _group.members.numElements.add(1);
    _group.members.push(validator);
    require(meetsAccountLockedGoldRequirements(group), "Group requirements not met");
    require(meetsAccountLockedGoldRequirements(validator), "Validator requirements not met");
    if (numMembers == 1) {
      getElection().markGroupEligible(group, lesser, greater);
    }
    updateMembershipHistory(validator, group);
    updateSizeHistory(group, numMembers.sub(1));
    emit ValidatorGroupMemberAdded(group, validator);
    return true;
  }

  /**
   * @notice Removes a member from a validator group.
   * @param validator The validator to remove from the group
   * @return True upon success.
   * @dev Fails if `validator` is not a member of the account's group.
   */
  function removeMember(address validator) external nonReentrant returns (bool) {
    address account = getAccounts().validatorSignerToAccount(msg.sender);
    require(isValidatorGroup(account) && isValidator(validator), "is not group and validator");
    return _removeMember(account, validator);
  }

  /**
   * @notice Reorders a member within a validator group.
   * @param validator The validator to reorder.
   * @param lesserMember The member who will be behind `validator`, or 0 if `validator` will be the
   *   last member.
   * @param greaterMember The member who will be ahead of `validator`, or 0 if `validator` will be
   *   the first member.
   * @return True upon success.
   * @dev Fails if `validator` is not a member of the account's validator group.
   */
  function reorderMember(address validator, address lesserMember, address greaterMember)
    external
    nonReentrant
    returns (bool)
  {
    address account = getAccounts().validatorSignerToAccount(msg.sender);
    require(isValidatorGroup(account), "Not a group");
    require(isValidator(validator), "Not a validator");
    ValidatorGroup storage group = groups[account];
    require(group.members.contains(validator), "Not a member of the group");
    group.members.update(validator, lesserMember, greaterMember);
    emit ValidatorGroupMemberReordered(account, validator);
    return true;
  }

  /**
   * @notice Queues an update to a validator group's commission.
   * If there was a previously scheduled update, that is overwritten.
   * @param commission Fixidity representation of the commission this group receives on epoch
   *   payments made to its members. Must be in the range [0, 1.0].
   */
  function setNextCommissionUpdate(uint256 commission) external {
    address account = getAccounts().validatorSignerToAccount(msg.sender);
    require(isValidatorGroup(account), "Not a validator group");
    ValidatorGroup storage group = groups[account];
    require(commission <= FixidityLib.fixed1().unwrap(), "Commission can't be greater than 100%");
    require(commission != group.commission.unwrap(), "Commission must be different");

    group.nextCommission = FixidityLib.wrap(commission);
    group.nextCommissionBlock = block.number.add(commissionUpdateDelay);
    emit ValidatorGroupCommissionUpdateQueued(account, commission, group.nextCommissionBlock);
  }
  /**
   * @notice Updates a validator group's commission based on the previously queued update
   */
  function updateCommission() external {
    address account = getAccounts().validatorSignerToAccount(msg.sender);
    require(isValidatorGroup(account), "Not a validator group");
    ValidatorGroup storage group = groups[account];

    require(group.nextCommissionBlock != 0, "No commission update queued");
    require(group.nextCommissionBlock <= block.number, "Can't apply commission update yet");

    group.commission = group.nextCommission;
    delete group.nextCommission;
    delete group.nextCommissionBlock;
    emit ValidatorGroupCommissionUpdated(account, group.commission.unwrap());
  }

  /**
   * @notice Returns the current locked gold balance requirement for the supplied account.
   * @param account The account that may have to meet locked gold balance requirements.
   * @return The current locked gold balance requirement for the supplied account.
   */
  function getAccountLockedGoldRequirement(address account) public view returns (uint256) {
    if (isValidator(account)) {
      return validatorLockedGoldRequirements.value;
    } else if (isValidatorGroup(account)) {
      uint256 multiplier = Math.max(1, groups[account].members.numElements);
      uint256[] storage sizeHistory = groups[account].sizeHistory;
      if (sizeHistory.length > 0) {
        for (uint256 i = sizeHistory.length.sub(1); i > 0; i = i.sub(1)) {
          if (sizeHistory[i].add(groupLockedGoldRequirements.duration) >= now) {
            multiplier = Math.max(i, multiplier);
            break;
          }
        }
      }
      return groupLockedGoldRequirements.value.mul(multiplier);
    }
    return 0;
  }

  /**
   * @notice Returns whether or not an account meets its Locked Gold requirements.
   * @param account The address of the account.
   * @return Whether or not an account meets its Locked Gold requirements.
   */
  function meetsAccountLockedGoldRequirements(address account) public view returns (bool) {
    uint256 balance = getLockedGold().getAccountTotalLockedGold(account);
    // Add a bit of "wiggle room" to accommodate the fact that vote activation can result in ~1
    // wei rounding errors. Using 10 as an additional margin of safety.
    return balance.add(10) >= getAccountLockedGoldRequirement(account);
  }

  /**
   * @notice Returns the validator BLS key.
   * @param signer The account that registered the validator or its authorized signing address.
   * @return The validator BLS key.
   */
  function getValidatorBlsPublicKeyFromSigner(address signer)
    external
    view
    returns (bytes memory blsPublicKey)
  {
    address account = getAccounts().signerToAccount(signer);
    require(isValidator(account), "Not a validator");
    return validators[account].publicKeys.bls;
  }

  /**
   * @notice Returns validator information.
   * @param account The account that registered the validator.
   * @return The unpacked validator struct.
   */
  function getValidator(address account)
    public
    view
    returns (
      bytes memory ecdsaPublicKey,
      bytes memory blsPublicKey,
      address affiliation,
      uint256 score,
      address signer
    )
  {
    require(isValidator(account), "Not a validator");
    Validator storage validator = validators[account];
    return (
      validator.publicKeys.ecdsa,
      validator.publicKeys.bls,
      validator.affiliation,
      validator.score.unwrap(),
      getAccounts().getValidatorSigner(account)
    );
  }

  /**
   * @notice Returns validator group information.
   * @param account The account that registered the validator group.
   * @return The unpacked validator group struct.
   */
  function getValidatorGroup(address account)
    external
    view
    returns (address[] memory, uint256, uint256, uint256, uint256[] memory, uint256, uint256)
  {
    require(isValidatorGroup(account), "Not a validator group");
    ValidatorGroup storage group = groups[account];
    return (
      group.members.getKeys(),
      group.commission.unwrap(),
      group.nextCommission.unwrap(),
      group.nextCommissionBlock,
      group.sizeHistory,
      group.slashInfo.multiplier.unwrap(),
      group.slashInfo.lastSlashed
    );
  }

  /**
   * @notice Returns the number of members in a validator group.
   * @param account The address of the validator group.
   * @return The number of members in a validator group.
   */
  function getGroupNumMembers(address account) public view returns (uint256) {
    require(isValidatorGroup(account), "Not validator group");
    return groups[account].members.numElements;
  }

  /**
   * @notice Returns the top n group members for a particular group.
   * @param account The address of the validator group.
   * @param n The number of members to return.
   * @return The top n group members for a particular group.
   */
  function getTopGroupValidators(address account, uint256 n)
    external
    view
    returns (address[] memory)
  {
    address[] memory topAccounts = groups[account].members.headN(n);
    address[] memory topValidators = new address[](n);
    for (uint256 i = 0; i < n; i = i.add(1)) {
      topValidators[i] = getAccounts().getValidatorSigner(topAccounts[i]);
    }
    return topValidators;
  }

  /**
   * @notice Returns the number of members in the provided validator groups.
   * @param accounts The addresses of the validator groups.
   * @return The number of members in the provided validator groups.
   */
  function getGroupsNumMembers(address[] calldata accounts)
    external
    view
    returns (uint256[] memory)
  {
    uint256[] memory numMembers = new uint256[](accounts.length);
    for (uint256 i = 0; i < accounts.length; i = i.add(1)) {
      numMembers[i] = getGroupNumMembers(accounts[i]);
    }
    return numMembers;
  }

  /**
   * @notice Returns the number of registered validators.
   * @return The number of registered validators.
   */
  function getNumRegisteredValidators() external view returns (uint256) {
    return registeredValidators.length;
  }

  /**
   * @notice Returns the Locked Gold requirements for validators.
   * @return The Locked Gold requirements for validators.
   */
  function getValidatorLockedGoldRequirements() external view returns (uint256, uint256) {
    return (validatorLockedGoldRequirements.value, validatorLockedGoldRequirements.duration);
  }

  /**
   * @notice Returns the Locked Gold requirements for validator groups.
   * @return The Locked Gold requirements for validator groups.
   */
  function getGroupLockedGoldRequirements() external view returns (uint256, uint256) {
    return (groupLockedGoldRequirements.value, groupLockedGoldRequirements.duration);
  }

  /**
   * @notice Returns the list of registered validator accounts.
   * @return The list of registered validator accounts.
   */
  function getRegisteredValidators() external view returns (address[] memory) {
    return registeredValidators;
  }

  /**
   * @notice Returns the list of signers for the registered validator accounts.
   * @return The list of signers for registered validator accounts.
   */
  function getRegisteredValidatorSigners() external view returns (address[] memory) {
    IAccounts accounts = getAccounts();
    address[] memory signers = new address[](registeredValidators.length);
    for (uint256 i = 0; i < signers.length; i = i.add(1)) {
      signers[i] = accounts.getValidatorSigner(registeredValidators[i]);
    }
    return signers;
  }

  /**
   * @notice Returns the list of registered validator group accounts.
   * @return The list of registered validator group addresses.
   */
  function getRegisteredValidatorGroups() external view returns (address[] memory) {
    return registeredGroups;
  }

  /**
   * @notice Returns whether a particular account has a registered validator group.
   * @param account The account.
   * @return Whether a particular address is a registered validator group.
   */
  function isValidatorGroup(address account) public view returns (bool) {
    return groups[account].exists;
  }

  /**
   * @notice Returns whether a particular account has a registered validator.
   * @param account The account.
   * @return Whether a particular address is a registered validator.
   */
  function isValidator(address account) public view returns (bool) {
    return validators[account].publicKeys.bls.length > 0;
  }

  /**
   * @notice Deletes an element from a list of addresses.
   * @param list The list of addresses.
   * @param element The address to delete.
   * @param index The index of `element` in the list.
   */
  function deleteElement(address[] storage list, address element, uint256 index) private {
    require(index < list.length && list[index] == element, "deleteElement: index out of range");
    uint256 lastIndex = list.length.sub(1);
    list[index] = list[lastIndex];
    delete list[lastIndex];
    list.length = lastIndex;
  }

  /**
   * @notice Removes a member from a validator group.
   * @param group The group from which the member should be removed.
   * @param validator The validator to remove from the group.
   * @return True upon success.
   * @dev If `validator` was the only member of `group`, `group` becomes unelectable.
   * @dev Fails if `validator` is not a member of `group`.
   */
  function _removeMember(address group, address validator) private returns (bool) {
    ValidatorGroup storage _group = groups[group];
    require(validators[validator].affiliation == group, "Not affiliated to group");
    require(_group.members.contains(validator), "Not a member of the group");
    _group.members.remove(validator);
    uint256 numMembers = _group.members.numElements;
    // Empty validator groups are not electable.
    if (numMembers == 0) {
      getElection().markGroupIneligible(group);
    }
    updateMembershipHistory(validator, address(0));
    updateSizeHistory(group, numMembers.add(1));
    emit ValidatorGroupMemberRemoved(group, validator);
    return true;
  }

  /**
   * @notice Updates the group membership history of a particular account.
   * @param account The account whose group membership has changed.
   * @param group The group that the account is now a member of.
   * @return True upon success.
   * @dev Note that this is used to determine a validator's membership at the time of an election,
   *   and so group changes within an epoch will overwrite eachother.
   */
  function updateMembershipHistory(address account, address group) private returns (bool) {
    MembershipHistory storage history = validators[account].membershipHistory;
    uint256 epochNumber = getEpochNumber();
    uint256 head = history.numEntries == 0 ? 0 : history.tail.add(history.numEntries.sub(1));

    if (history.numEntries > 0 && group == address(0)) {
      history.lastRemovedFromGroupTimestamp = now;
    }

    if (history.numEntries > 0 && history.entries[head].epochNumber == epochNumber) {
      // There have been no elections since the validator last changed membership, overwrite the
      // previous entry.
      history.entries[head] = MembershipHistoryEntry(epochNumber, group);
      return true;
    }

    // There have been elections since the validator last changed membership, create a new entry.
    uint256 index = history.numEntries == 0 ? 0 : head.add(1);
    history.entries[index] = MembershipHistoryEntry(epochNumber, group);
    if (history.numEntries < membershipHistoryLength) {
      // Not enough entries, don't remove any.
      history.numEntries = history.numEntries.add(1);
    } else if (history.numEntries == membershipHistoryLength) {
      // Exactly enough entries, delete the oldest one to account for the one we added.
      delete history.entries[history.tail];
      history.tail = history.tail.add(1);
    } else {
      // Too many entries, delete the oldest two to account for the one we added.
      delete history.entries[history.tail];
      delete history.entries[history.tail.add(1)];
      history.numEntries = history.numEntries.sub(1);
      history.tail = history.tail.add(2);
    }
    return true;
  }

  /**
   * @notice Updates the size history of a validator group.
   * @param group The account whose group size has changed.
   * @param size The new size of the group.
   * @dev Used to determine how much gold an account needs to keep locked.
   */
  function updateSizeHistory(address group, uint256 size) private {
    uint256[] storage sizeHistory = groups[group].sizeHistory;
    if (size == sizeHistory.length) {
      sizeHistory.push(now);
    } else if (size < sizeHistory.length) {
      sizeHistory[size] = now;
    } else {
      require(false, "Unable to update size history");
    }
  }

  /**
   * @notice Returns the group that `account` was a member of at the end of the last epoch.
   * @param signer The signer of the account whose group membership should be returned.
   * @return The group that `account` was a member of at the end of the last epoch.
   */
  function getMembershipInLastEpochFromSigner(address signer) external view returns (address) {
    address account = getAccounts().signerToAccount(signer);
    require(isValidator(account), "Not a validator");
    return getMembershipInLastEpoch(account);
  }

  /**
   * @notice Returns the group that `account` was a member of at the end of the last epoch.
   * @param account The account whose group membership should be returned.
   * @return The group that `account` was a member of at the end of the last epoch.
   */
  function getMembershipInLastEpoch(address account) public view returns (address) {
    uint256 epochNumber = getEpochNumber();
    MembershipHistory storage history = validators[account].membershipHistory;
    uint256 head = history.numEntries == 0 ? 0 : history.tail.add(history.numEntries.sub(1));
    // If the most recent entry in the membership history is for the current epoch number, we need
    // to look at the previous entry.
    if (history.entries[head].epochNumber == epochNumber) {
      if (head > history.tail) {
        head = head.sub(1);
      }
    }
    return history.entries[head].group;
  }

  /**
   * @notice De-affiliates a validator, removing it from the group for which it is a member.
   * @param validator The validator to deaffiliate from their affiliated validator group.
   * @param validatorAccount The LockedGold account of the validator.
   * @return True upon success.
   */
  function _deaffiliate(Validator storage validator, address validatorAccount)
    private
    returns (bool)
  {
    address affiliation = validator.affiliation;
    ValidatorGroup storage group = groups[affiliation];
    if (group.members.contains(validatorAccount)) {
      _removeMember(affiliation, validatorAccount);
    }
    validator.affiliation = address(0);
    emit ValidatorDeaffiliated(validatorAccount, affiliation);
    return true;
  }

  /**
   * @notice Removes a validator from the group for which it is a member.
   * @param validatorAccount The validator to deaffiliate from their affiliated validator group.
   */
  function forceDeaffiliateIfValidator(address validatorAccount) external nonReentrant onlySlasher {
    if (isValidator(validatorAccount)) {
      Validator storage validator = validators[validatorAccount];
      if (validator.affiliation != address(0)) {
        _deaffiliate(validator, validatorAccount);
      }
    }
  }

  /**
   * @notice Sets the slashingMultiplierRestPeriod property if called by owner.
   * @param value New reset period for slashing multiplier.
   */
  function setSlashingMultiplierResetPeriod(uint256 value) public nonReentrant onlyOwner {
    slashingMultiplierResetPeriod = value;
  }

  /**
   * @notice Sets the downtimeGracePeriod property if called by owner.
   * @param value New downtime grace period for calculating epoch scores.
   */
  function setDowntimeGracePeriod(uint256 value) public nonReentrant onlyOwner {
    downtimeGracePeriod = value;
  }

  /**
   * @notice Resets a group's slashing multiplier if it has been >= the reset period since
   *         the last time the group was slashed.
   */
  function resetSlashingMultiplier() external nonReentrant {
    address account = getAccounts().validatorSignerToAccount(msg.sender);
    require(isValidatorGroup(account), "Not a validator group");
    ValidatorGroup storage group = groups[account];
    require(
      now >= group.slashInfo.lastSlashed.add(slashingMultiplierResetPeriod),
      "`resetSlashingMultiplier` called before resetPeriod expired"
    );
    group.slashInfo.multiplier = FixidityLib.fixed1();
  }

  /**
   * @notice Halves the group's slashing multiplier.
   * @param account The group being slashed.
   */
  function halveSlashingMultiplier(address account) external nonReentrant onlySlasher {
    require(isValidatorGroup(account), "Not a validator group");
    ValidatorGroup storage group = groups[account];
    group.slashInfo.multiplier = FixidityLib.wrap(group.slashInfo.multiplier.unwrap().div(2));
    group.slashInfo.lastSlashed = now;
  }

  /**
   * @notice Getter for a group's slashing multiplier.
   * @param account The group to fetch slashing multiplier for.
   */
  function getValidatorGroupSlashingMultiplier(address account) external view returns (uint256) {
    require(isValidatorGroup(account), "Not a validator group");
    ValidatorGroup storage group = groups[account];
    return group.slashInfo.multiplier.unwrap();
  }

  /**
   * @notice Returns the group that `account` was a member of during `epochNumber`.
   * @param account The account whose group membership should be returned.
   * @param epochNumber The epoch number we are querying this account's membership at.
   * @param index The index into the validator's history struct for their history at `epochNumber`.
   * @return The group that `account` was a member of during `epochNumber`.
   */
  function groupMembershipInEpoch(address account, uint256 epochNumber, uint256 index)
    external
    view
    returns (address)
  {
    require(isValidator(account), "Not a validator");
    require(epochNumber <= getEpochNumber(), "Epoch cannot be larger than current");
    MembershipHistory storage history = validators[account].membershipHistory;
    require(index < history.tail.add(history.numEntries), "index out of bounds");
    require(index >= history.tail && history.numEntries > 0, "index out of bounds");
    bool isExactMatch = history.entries[index].epochNumber == epochNumber;
    bool isLastEntry = index.sub(history.tail) == history.numEntries.sub(1);
    bool isWithinRange = history.entries[index].epochNumber < epochNumber &&
      (history.entries[index.add(1)].epochNumber > epochNumber || isLastEntry);
    require(
      isExactMatch || isWithinRange,
      "provided index does not match provided epochNumber at index in history."
    );
    return history.entries[index].group;
  }

}
        

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/CalledByVm.sol

pragma solidity ^0.5.13;

contract CalledByVm {
  modifier onlyVm() {
    require(msg.sender == address(0), "Only VM can call");
    _;
  }
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/FixidityLib.sol

pragma solidity ^0.5.13;

/**
 * @title FixidityLib
 * @author Gadi Guy, Alberto Cuesta Canada
 * @notice This library provides fixed point arithmetic with protection against
 * overflow.
 * All operations are done with uint256 and the operands must have been created
 * with any of the newFrom* functions, which shift the comma digits() to the
 * right and check for limits, or with wrap() which expects a number already
 * in the internal representation of a fraction.
 * When using this library be sure to use maxNewFixed() as the upper limit for
 * creation of fixed point numbers.
 * @dev All contained functions are pure and thus marked internal to be inlined
 * on consuming contracts at compile time for gas efficiency.
 */
library FixidityLib {
  struct Fraction {
    uint256 value;
  }

  /**
   * @notice Number of positions that the comma is shifted to the right.
   */
  function digits() internal pure returns (uint8) {
    return 24;
  }

  uint256 private constant FIXED1_UINT = 1000000000000000000000000;

  /**
   * @notice This is 1 in the fixed point units used in this library.
   * @dev Test fixed1() equals 10^digits()
   * Hardcoded to 24 digits.
   */
  function fixed1() internal pure returns (Fraction memory) {
    return Fraction(FIXED1_UINT);
  }

  /**
   * @notice Wrap a uint256 that represents a 24-decimal fraction in a Fraction
   * struct.
   * @param x Number that already represents a 24-decimal fraction.
   * @return A Fraction struct with contents x.
   */
  function wrap(uint256 x) internal pure returns (Fraction memory) {
    return Fraction(x);
  }

  /**
   * @notice Unwraps the uint256 inside of a Fraction struct.
   */
  function unwrap(Fraction memory x) internal pure returns (uint256) {
    return x.value;
  }

  /**
   * @notice The amount of decimals lost on each multiplication operand.
   * @dev Test mulPrecision() equals sqrt(fixed1)
   */
  function mulPrecision() internal pure returns (uint256) {
    return 1000000000000;
  }

  /**
   * @notice Maximum value that can be converted to fixed point. Optimize for deployment.
   * @dev
   * Test maxNewFixed() equals maxUint256() / fixed1()
   */
  function maxNewFixed() internal pure returns (uint256) {
    return 115792089237316195423570985008687907853269984665640564;
  }

  /**
   * @notice Converts a uint256 to fixed point Fraction
   * @dev Test newFixed(0) returns 0
   * Test newFixed(1) returns fixed1()
   * Test newFixed(maxNewFixed()) returns maxNewFixed() * fixed1()
   * Test newFixed(maxNewFixed()+1) fails
   */
  function newFixed(uint256 x) internal pure returns (Fraction memory) {
    require(x <= maxNewFixed(), "can't create fixidity number larger than maxNewFixed()");
    return Fraction(x * FIXED1_UINT);
  }

  /**
   * @notice Converts a uint256 in the fixed point representation of this
   * library to a non decimal. All decimal digits will be truncated.
   */
  function fromFixed(Fraction memory x) internal pure returns (uint256) {
    return x.value / FIXED1_UINT;
  }

  /**
   * @notice Converts two uint256 representing a fraction to fixed point units,
   * equivalent to multiplying dividend and divisor by 10^digits().
   * @param numerator numerator must be <= maxNewFixed()
   * @param denominator denominator must be <= maxNewFixed() and denominator can't be 0
   * @dev
   * Test newFixedFraction(1,0) fails
   * Test newFixedFraction(0,1) returns 0
   * Test newFixedFraction(1,1) returns fixed1()
   * Test newFixedFraction(1,fixed1()) returns 1
   */
  function newFixedFraction(uint256 numerator, uint256 denominator)
    internal
    pure
    returns (Fraction memory)
  {
    Fraction memory convertedNumerator = newFixed(numerator);
    Fraction memory convertedDenominator = newFixed(denominator);
    return divide(convertedNumerator, convertedDenominator);
  }

  /**
   * @notice Returns the integer part of a fixed point number.
   * @dev
   * Test integer(0) returns 0
   * Test integer(fixed1()) returns fixed1()
   * Test integer(newFixed(maxNewFixed())) returns maxNewFixed()*fixed1()
   */
  function integer(Fraction memory x) internal pure returns (Fraction memory) {
    return Fraction((x.value / FIXED1_UINT) * FIXED1_UINT); // Can't overflow
  }

  /**
   * @notice Returns the fractional part of a fixed point number.
   * In the case of a negative number the fractional is also negative.
   * @dev
   * Test fractional(0) returns 0
   * Test fractional(fixed1()) returns 0
   * Test fractional(fixed1()-1) returns 10^24-1
   */
  function fractional(Fraction memory x) internal pure returns (Fraction memory) {
    return Fraction(x.value - (x.value / FIXED1_UINT) * FIXED1_UINT); // Can't overflow
  }

  /**
   * @notice x+y.
   * @dev The maximum value that can be safely used as an addition operator is defined as
   * maxFixedAdd = maxUint256()-1 / 2, or
   * 57896044618658097711785492504343953926634992332820282019728792003956564819967.
   * Test add(maxFixedAdd,maxFixedAdd) equals maxFixedAdd + maxFixedAdd
   * Test add(maxFixedAdd+1,maxFixedAdd+1) throws
   */
  function add(Fraction memory x, Fraction memory y) internal pure returns (Fraction memory) {
    uint256 z = x.value + y.value;
    require(z >= x.value, "add overflow detected");
    return Fraction(z);
  }

  /**
   * @notice x-y.
   * @dev
   * Test subtract(6, 10) fails
   */
  function subtract(Fraction memory x, Fraction memory y) internal pure returns (Fraction memory) {
    require(x.value >= y.value, "substraction underflow detected");
    return Fraction(x.value - y.value);
  }

  /**
   * @notice x*y. If any of the operators is higher than the max multiplier value it
   * might overflow.
   * @dev The maximum value that can be safely used as a multiplication operator
   * (maxFixedMul) is calculated as sqrt(maxUint256()*fixed1()),
   * or 340282366920938463463374607431768211455999999999999
   * Test multiply(0,0) returns 0
   * Test multiply(maxFixedMul,0) returns 0
   * Test multiply(0,maxFixedMul) returns 0
   * Test multiply(fixed1()/mulPrecision(),fixed1()*mulPrecision()) returns fixed1()
   * Test multiply(maxFixedMul,maxFixedMul) is around maxUint256()
   * Test multiply(maxFixedMul+1,maxFixedMul+1) fails
   */
  function multiply(Fraction memory x, Fraction memory y) internal pure returns (Fraction memory) {
    if (x.value == 0 || y.value == 0) return Fraction(0);
    if (y.value == FIXED1_UINT) return x;
    if (x.value == FIXED1_UINT) return y;

    // Separate into integer and fractional parts
    // x = x1 + x2, y = y1 + y2
    uint256 x1 = integer(x).value / FIXED1_UINT;
    uint256 x2 = fractional(x).value;
    uint256 y1 = integer(y).value / FIXED1_UINT;
    uint256 y2 = fractional(y).value;

    // (x1 + x2) * (y1 + y2) = (x1 * y1) + (x1 * y2) + (x2 * y1) + (x2 * y2)
    uint256 x1y1 = x1 * y1;
    if (x1 != 0) require(x1y1 / x1 == y1, "overflow x1y1 detected");

    // x1y1 needs to be multiplied back by fixed1
    // solium-disable-next-line mixedcase
    uint256 fixed_x1y1 = x1y1 * FIXED1_UINT;
    if (x1y1 != 0) require(fixed_x1y1 / x1y1 == FIXED1_UINT, "overflow x1y1 * fixed1 detected");
    x1y1 = fixed_x1y1;

    uint256 x2y1 = x2 * y1;
    if (x2 != 0) require(x2y1 / x2 == y1, "overflow x2y1 detected");

    uint256 x1y2 = x1 * y2;
    if (x1 != 0) require(x1y2 / x1 == y2, "overflow x1y2 detected");

    x2 = x2 / mulPrecision();
    y2 = y2 / mulPrecision();
    uint256 x2y2 = x2 * y2;
    if (x2 != 0) require(x2y2 / x2 == y2, "overflow x2y2 detected");

    // result = fixed1() * x1 * y1 + x1 * y2 + x2 * y1 + x2 * y2 / fixed1();
    Fraction memory result = Fraction(x1y1);
    result = add(result, Fraction(x2y1)); // Add checks for overflow
    result = add(result, Fraction(x1y2)); // Add checks for overflow
    result = add(result, Fraction(x2y2)); // Add checks for overflow
    return result;
  }

  /**
   * @notice 1/x
   * @dev
   * Test reciprocal(0) fails
   * Test reciprocal(fixed1()) returns fixed1()
   * Test reciprocal(fixed1()*fixed1()) returns 1 // Testing how the fractional is truncated
   * Test reciprocal(1+fixed1()*fixed1()) returns 0 // Testing how the fractional is truncated
   * Test reciprocal(newFixedFraction(1, 1e24)) returns newFixed(1e24)
   */
  function reciprocal(Fraction memory x) internal pure returns (Fraction memory) {
    require(x.value != 0, "can't call reciprocal(0)");
    return Fraction((FIXED1_UINT * FIXED1_UINT) / x.value); // Can't overflow
  }

  /**
   * @notice x/y. If the dividend is higher than the max dividend value, it
   * might overflow. You can use multiply(x,reciprocal(y)) instead.
   * @dev The maximum value that can be safely used as a dividend (maxNewFixed) is defined as
   * divide(maxNewFixed,newFixedFraction(1,fixed1())) is around maxUint256().
   * This yields the value 115792089237316195423570985008687907853269984665640564.
   * Test maxNewFixed equals maxUint256()/fixed1()
   * Test divide(maxNewFixed,1) equals maxNewFixed*(fixed1)
   * Test divide(maxNewFixed+1,multiply(mulPrecision(),mulPrecision())) throws
   * Test divide(fixed1(),0) fails
   * Test divide(maxNewFixed,1) = maxNewFixed*(10^digits())
   * Test divide(maxNewFixed+1,1) throws
   */
  function divide(Fraction memory x, Fraction memory y) internal pure returns (Fraction memory) {
    require(y.value != 0, "can't divide by 0");
    uint256 X = x.value * FIXED1_UINT;
    require(X / FIXED1_UINT == x.value, "overflow at divide");
    return Fraction(X / y.value);
  }

  /**
   * @notice x > y
   */
  function gt(Fraction memory x, Fraction memory y) internal pure returns (bool) {
    return x.value > y.value;
  }

  /**
   * @notice x >= y
   */
  function gte(Fraction memory x, Fraction memory y) internal pure returns (bool) {
    return x.value >= y.value;
  }

  /**
   * @notice x < y
   */
  function lt(Fraction memory x, Fraction memory y) internal pure returns (bool) {
    return x.value < y.value;
  }

  /**
   * @notice x <= y
   */
  function lte(Fraction memory x, Fraction memory y) internal pure returns (bool) {
    return x.value <= y.value;
  }

  /**
   * @notice x == y
   */
  function equals(Fraction memory x, Fraction memory y) internal pure returns (bool) {
    return x.value == y.value;
  }

  /**
   * @notice x <= 1
   */
  function isProperFraction(Fraction memory x) internal pure returns (bool) {
    return lte(x, fixed1());
  }
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/Initializable.sol

pragma solidity ^0.5.13;

contract Initializable {
  bool public initialized;

  constructor(bool testingDeployment) public {
    if (!testingDeployment) {
      initialized = true;
    }
  }

  modifier initializer() {
    require(!initialized, "contract already initialized");
    initialized = true;
    _;
  }
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/UsingPrecompiles.sol

pragma solidity ^0.5.13;

import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "../common/interfaces/ICeloVersionedContract.sol";

contract UsingPrecompiles {
  using SafeMath for uint256;

  address constant TRANSFER = address(0xff - 2);
  address constant FRACTION_MUL = address(0xff - 3);
  address constant PROOF_OF_POSSESSION = address(0xff - 4);
  address constant GET_VALIDATOR = address(0xff - 5);
  address constant NUMBER_VALIDATORS = address(0xff - 6);
  address constant EPOCH_SIZE = address(0xff - 7);
  address constant BLOCK_NUMBER_FROM_HEADER = address(0xff - 8);
  address constant HASH_HEADER = address(0xff - 9);
  address constant GET_PARENT_SEAL_BITMAP = address(0xff - 10);
  address constant GET_VERIFIED_SEAL_BITMAP = address(0xff - 11);

  /**
   * @notice calculate a * b^x for fractions a, b to `decimals` precision
   * @param aNumerator Numerator of first fraction
   * @param aDenominator Denominator of first fraction
   * @param bNumerator Numerator of exponentiated fraction
   * @param bDenominator Denominator of exponentiated fraction
   * @param exponent exponent to raise b to
   * @param _decimals precision
   * @return numerator/denominator of the computed quantity (not reduced).
   */
  function fractionMulExp(
    uint256 aNumerator,
    uint256 aDenominator,
    uint256 bNumerator,
    uint256 bDenominator,
    uint256 exponent,
    uint256 _decimals
  ) public view returns (uint256, uint256) {
    require(aDenominator != 0 && bDenominator != 0, "a denominator is zero");
    uint256 returnNumerator;
    uint256 returnDenominator;
    bool success;
    bytes memory out;
    (success, out) = FRACTION_MUL.staticcall(
      abi.encodePacked(aNumerator, aDenominator, bNumerator, bDenominator, exponent, _decimals)
    );
    require(success, "error calling fractionMulExp precompile");
    returnNumerator = getUint256FromBytes(out, 0);
    returnDenominator = getUint256FromBytes(out, 32);
    return (returnNumerator, returnDenominator);
  }

  /**
   * @notice Returns the current epoch size in blocks.
   * @return The current epoch size in blocks.
   */
  function getEpochSize() public view returns (uint256) {
    bytes memory out;
    bool success;
    (success, out) = EPOCH_SIZE.staticcall(abi.encodePacked());
    require(success, "error calling getEpochSize precompile");
    return getUint256FromBytes(out, 0);
  }

  /**
   * @notice Returns the epoch number at a block.
   * @param blockNumber Block number where epoch number is calculated.
   * @return Epoch number.
   */
  function getEpochNumberOfBlock(uint256 blockNumber) public view returns (uint256) {
    return epochNumberOfBlock(blockNumber, getEpochSize());
  }

  /**
   * @notice Returns the epoch number at a block.
   * @return Current epoch number.
   */
  function getEpochNumber() public view returns (uint256) {
    return getEpochNumberOfBlock(block.number);
  }

  /**
   * @notice Returns the epoch number at a block.
   * @param blockNumber Block number where epoch number is calculated.
   * @param epochSize The epoch size in blocks.
   * @return Epoch number.
   */
  function epochNumberOfBlock(uint256 blockNumber, uint256 epochSize)
    internal
    pure
    returns (uint256)
  {
    // Follows GetEpochNumber from celo-blockchain/blob/master/consensus/istanbul/utils.go
    uint256 epochNumber = blockNumber / epochSize;
    if (blockNumber % epochSize == 0) {
      return epochNumber;
    } else {
      return epochNumber.add(1);
    }
  }

  /**
   * @notice Gets a validator address from the current validator set.
   * @param index Index of requested validator in the validator set.
   * @return Address of validator at the requested index.
   */
  function validatorSignerAddressFromCurrentSet(uint256 index) public view returns (address) {
    bytes memory out;
    bool success;
    (success, out) = GET_VALIDATOR.staticcall(abi.encodePacked(index, uint256(block.number)));
    require(success, "error calling validatorSignerAddressFromCurrentSet precompile");
    return address(getUint256FromBytes(out, 0));
  }

  /**
   * @notice Gets a validator address from the validator set at the given block number.
   * @param index Index of requested validator in the validator set.
   * @param blockNumber Block number to retrieve the validator set from.
   * @return Address of validator at the requested index.
   */
  function validatorSignerAddressFromSet(uint256 index, uint256 blockNumber)
    public
    view
    returns (address)
  {
    bytes memory out;
    bool success;
    (success, out) = GET_VALIDATOR.staticcall(abi.encodePacked(index, blockNumber));
    require(success, "error calling validatorSignerAddressFromSet precompile");
    return address(getUint256FromBytes(out, 0));
  }

  /**
   * @notice Gets the size of the current elected validator set.
   * @return Size of the current elected validator set.
   */
  function numberValidatorsInCurrentSet() public view returns (uint256) {
    bytes memory out;
    bool success;
    (success, out) = NUMBER_VALIDATORS.staticcall(abi.encodePacked(uint256(block.number)));
    require(success, "error calling numberValidatorsInCurrentSet precompile");
    return getUint256FromBytes(out, 0);
  }

  /**
   * @notice Gets the size of the validator set that must sign the given block number.
   * @param blockNumber Block number to retrieve the validator set from.
   * @return Size of the validator set.
   */
  function numberValidatorsInSet(uint256 blockNumber) public view returns (uint256) {
    bytes memory out;
    bool success;
    (success, out) = NUMBER_VALIDATORS.staticcall(abi.encodePacked(blockNumber));
    require(success, "error calling numberValidatorsInSet precompile");
    return getUint256FromBytes(out, 0);
  }

  /**
   * @notice Checks a BLS proof of possession.
   * @param sender The address signed by the BLS key to generate the proof of possession.
   * @param blsKey The BLS public key that the validator is using for consensus, should pass proof
   *   of possession. 48 bytes.
   * @param blsPop The BLS public key proof-of-possession, which consists of a signature on the
   *   account address. 96 bytes.
   * @return True upon success.
   */
  function checkProofOfPossession(address sender, bytes memory blsKey, bytes memory blsPop)
    public
    view
    returns (bool)
  {
    bool success;
    (success, ) = PROOF_OF_POSSESSION.staticcall(abi.encodePacked(sender, blsKey, blsPop));
    return success;
  }

  /**
   * @notice Parses block number out of header.
   * @param header RLP encoded header
   * @return Block number.
   */
  function getBlockNumberFromHeader(bytes memory header) public view returns (uint256) {
    bytes memory out;
    bool success;
    (success, out) = BLOCK_NUMBER_FROM_HEADER.staticcall(abi.encodePacked(header));
    require(success, "error calling getBlockNumberFromHeader precompile");
    return getUint256FromBytes(out, 0);
  }

  /**
   * @notice Computes hash of header.
   * @param header RLP encoded header
   * @return Header hash.
   */
  function hashHeader(bytes memory header) public view returns (bytes32) {
    bytes memory out;
    bool success;
    (success, out) = HASH_HEADER.staticcall(abi.encodePacked(header));
    require(success, "error calling hashHeader precompile");
    return getBytes32FromBytes(out, 0);
  }

  /**
   * @notice Gets the parent seal bitmap from the header at the given block number.
   * @param blockNumber Block number to retrieve. Must be within 4 epochs of the current number.
   * @return Bitmap parent seal with set bits at indices corresponding to signing validators.
   */
  function getParentSealBitmap(uint256 blockNumber) public view returns (bytes32) {
    bytes memory out;
    bool success;
    (success, out) = GET_PARENT_SEAL_BITMAP.staticcall(abi.encodePacked(blockNumber));
    require(success, "error calling getParentSealBitmap precompile");
    return getBytes32FromBytes(out, 0);
  }

  /**
   * @notice Verifies the BLS signature on the header and returns the seal bitmap.
   * The validator set used for verification is retrieved based on the parent hash field of the
   * header.  If the parent hash is not in the blockchain, verification fails.
   * @param header RLP encoded header
   * @return Bitmap parent seal with set bits at indices correspoinding to signing validators.
   */
  function getVerifiedSealBitmapFromHeader(bytes memory header) public view returns (bytes32) {
    bytes memory out;
    bool success;
    (success, out) = GET_VERIFIED_SEAL_BITMAP.staticcall(abi.encodePacked(header));
    require(success, "error calling getVerifiedSealBitmapFromHeader precompile");
    return getBytes32FromBytes(out, 0);
  }

  /**
   * @notice Converts bytes to uint256.
   * @param bs byte[] data
   * @param start offset into byte data to convert
   * @return uint256 data
   */
  function getUint256FromBytes(bytes memory bs, uint256 start) internal pure returns (uint256) {
    return uint256(getBytes32FromBytes(bs, start));
  }

  /**
   * @notice Converts bytes to bytes32.
   * @param bs byte[] data
   * @param start offset into byte data to convert
   * @return bytes32 data
   */
  function getBytes32FromBytes(bytes memory bs, uint256 start) internal pure returns (bytes32) {
    require(bs.length >= start.add(32), "slicing out of range");
    bytes32 x;
    assembly {
      x := mload(add(bs, add(start, 32)))
    }
    return x;
  }

  /**
   * @notice Returns the minimum number of required signers for a given block number.
   * @dev Computed in celo-blockchain as int(math.Ceil(float64(2*valSet.Size()) / 3))
   */
  function minQuorumSize(uint256 blockNumber) public view returns (uint256) {
    return numberValidatorsInSet(blockNumber).mul(2).add(2).div(3);
  }

  /**
   * @notice Computes byzantine quorum from current validator set size
   * @return Byzantine quorum of validators.
   */
  function minQuorumSizeInCurrentSet() public view returns (uint256) {
    return minQuorumSize(block.number);
  }

}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/UsingRegistry.sol

pragma solidity ^0.5.13;

import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";

import "./interfaces/IAccounts.sol";
import "./interfaces/IFeeCurrencyWhitelist.sol";
import "./interfaces/IFreezer.sol";
import "./interfaces/IRegistry.sol";

import "../governance/interfaces/IElection.sol";
import "../governance/interfaces/IGovernance.sol";
import "../governance/interfaces/ILockedGold.sol";
import "../governance/interfaces/IValidators.sol";

import "../identity/interfaces/IRandom.sol";
import "../identity/interfaces/IAttestations.sol";

import "../stability/interfaces/IExchange.sol";
import "../stability/interfaces/IReserve.sol";
import "../stability/interfaces/ISortedOracles.sol";
import "../stability/interfaces/IStableToken.sol";

contract UsingRegistry is Ownable {
  event RegistrySet(address indexed registryAddress);

  // solhint-disable state-visibility
  bytes32 constant ACCOUNTS_REGISTRY_ID = keccak256(abi.encodePacked("Accounts"));
  bytes32 constant ATTESTATIONS_REGISTRY_ID = keccak256(abi.encodePacked("Attestations"));
  bytes32 constant DOWNTIME_SLASHER_REGISTRY_ID = keccak256(abi.encodePacked("DowntimeSlasher"));
  bytes32 constant DOUBLE_SIGNING_SLASHER_REGISTRY_ID = keccak256(
    abi.encodePacked("DoubleSigningSlasher")
  );
  bytes32 constant ELECTION_REGISTRY_ID = keccak256(abi.encodePacked("Election"));
  bytes32 constant EXCHANGE_REGISTRY_ID = keccak256(abi.encodePacked("Exchange"));
  bytes32 constant FEE_CURRENCY_WHITELIST_REGISTRY_ID = keccak256(
    abi.encodePacked("FeeCurrencyWhitelist")
  );
  bytes32 constant FREEZER_REGISTRY_ID = keccak256(abi.encodePacked("Freezer"));
  bytes32 constant GOLD_TOKEN_REGISTRY_ID = keccak256(abi.encodePacked("GoldToken"));
  bytes32 constant GOVERNANCE_REGISTRY_ID = keccak256(abi.encodePacked("Governance"));
  bytes32 constant GOVERNANCE_SLASHER_REGISTRY_ID = keccak256(
    abi.encodePacked("GovernanceSlasher")
  );
  bytes32 constant LOCKED_GOLD_REGISTRY_ID = keccak256(abi.encodePacked("LockedGold"));
  bytes32 constant RESERVE_REGISTRY_ID = keccak256(abi.encodePacked("Reserve"));
  bytes32 constant RANDOM_REGISTRY_ID = keccak256(abi.encodePacked("Random"));
  bytes32 constant SORTED_ORACLES_REGISTRY_ID = keccak256(abi.encodePacked("SortedOracles"));
  bytes32 constant STABLE_TOKEN_REGISTRY_ID = keccak256(abi.encodePacked("StableToken"));
  bytes32 constant VALIDATORS_REGISTRY_ID = keccak256(abi.encodePacked("Validators"));
  // solhint-enable state-visibility

  IRegistry public registry;

  modifier onlyRegisteredContract(bytes32 identifierHash) {
    require(registry.getAddressForOrDie(identifierHash) == msg.sender, "only registered contract");
    _;
  }

  modifier onlyRegisteredContracts(bytes32[] memory identifierHashes) {
    require(registry.isOneOf(identifierHashes, msg.sender), "only registered contracts");
    _;
  }

  /**
   * @notice Updates the address pointing to a Registry contract.
   * @param registryAddress The address of a registry contract for routing to other contracts.
   */
  function setRegistry(address registryAddress) public onlyOwner {
    require(registryAddress != address(0), "Cannot register the null address");
    registry = IRegistry(registryAddress);
    emit RegistrySet(registryAddress);
  }

  function getAccounts() internal view returns (IAccounts) {
    return IAccounts(registry.getAddressForOrDie(ACCOUNTS_REGISTRY_ID));
  }

  function getAttestations() internal view returns (IAttestations) {
    return IAttestations(registry.getAddressForOrDie(ATTESTATIONS_REGISTRY_ID));
  }

  function getElection() internal view returns (IElection) {
    return IElection(registry.getAddressForOrDie(ELECTION_REGISTRY_ID));
  }

  function getExchange() internal view returns (IExchange) {
    return IExchange(registry.getAddressForOrDie(EXCHANGE_REGISTRY_ID));
  }

  function getFeeCurrencyWhitelistRegistry() internal view returns (IFeeCurrencyWhitelist) {
    return IFeeCurrencyWhitelist(registry.getAddressForOrDie(FEE_CURRENCY_WHITELIST_REGISTRY_ID));
  }

  function getFreezer() internal view returns (IFreezer) {
    return IFreezer(registry.getAddressForOrDie(FREEZER_REGISTRY_ID));
  }

  function getGoldToken() internal view returns (IERC20) {
    return IERC20(registry.getAddressForOrDie(GOLD_TOKEN_REGISTRY_ID));
  }

  function getGovernance() internal view returns (IGovernance) {
    return IGovernance(registry.getAddressForOrDie(GOVERNANCE_REGISTRY_ID));
  }

  function getLockedGold() internal view returns (ILockedGold) {
    return ILockedGold(registry.getAddressForOrDie(LOCKED_GOLD_REGISTRY_ID));
  }

  function getRandom() internal view returns (IRandom) {
    return IRandom(registry.getAddressForOrDie(RANDOM_REGISTRY_ID));
  }

  function getReserve() internal view returns (IReserve) {
    return IReserve(registry.getAddressForOrDie(RESERVE_REGISTRY_ID));
  }

  function getSortedOracles() internal view returns (ISortedOracles) {
    return ISortedOracles(registry.getAddressForOrDie(SORTED_ORACLES_REGISTRY_ID));
  }

  function getStableToken() internal view returns (IStableToken) {
    return IStableToken(registry.getAddressForOrDie(STABLE_TOKEN_REGISTRY_ID));
  }

  function getValidators() internal view returns (IValidators) {
    return IValidators(registry.getAddressForOrDie(VALIDATORS_REGISTRY_ID));
  }
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/interfaces/IAccounts.sol

pragma solidity ^0.5.13;

interface IAccounts {
  function isAccount(address) external view returns (bool);
  function voteSignerToAccount(address) external view returns (address);
  function validatorSignerToAccount(address) external view returns (address);
  function attestationSignerToAccount(address) external view returns (address);
  function signerToAccount(address) external view returns (address);
  function getAttestationSigner(address) external view returns (address);
  function getValidatorSigner(address) external view returns (address);
  function getVoteSigner(address) external view returns (address);
  function hasAuthorizedVoteSigner(address) external view returns (bool);
  function hasAuthorizedValidatorSigner(address) external view returns (bool);
  function hasAuthorizedAttestationSigner(address) external view returns (bool);

  function setAccountDataEncryptionKey(bytes calldata) external;
  function setMetadataURL(string calldata) external;
  function setName(string calldata) external;
  function setWalletAddress(address, uint8, bytes32, bytes32) external;
  function setAccount(string calldata, bytes calldata, address, uint8, bytes32, bytes32) external;

  function getDataEncryptionKey(address) external view returns (bytes memory);
  function getWalletAddress(address) external view returns (address);
  function getMetadataURL(address) external view returns (string memory);
  function batchGetMetadataURL(address[] calldata)
    external
    view
    returns (uint256[] memory, bytes memory);
  function getName(address) external view returns (string memory);

  function authorizeVoteSigner(address, uint8, bytes32, bytes32) external;
  function authorizeValidatorSigner(address, uint8, bytes32, bytes32) external;
  function authorizeValidatorSignerWithPublicKey(address, uint8, bytes32, bytes32, bytes calldata)
    external;
  function authorizeValidatorSignerWithKeys(
    address,
    uint8,
    bytes32,
    bytes32,
    bytes calldata,
    bytes calldata,
    bytes calldata
  ) external;
  function authorizeAttestationSigner(address, uint8, bytes32, bytes32) external;
  function createAccount() external returns (bool);
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/interfaces/ICeloVersionedContract.sol

pragma solidity ^0.5.13;

interface ICeloVersionedContract {
  /**
   * @notice Returns the storage, major, minor, and patch version of the contract.
   * @return The storage, major, minor, and patch version of the contract.
   */
  function getVersionNumber() external pure returns (uint256, uint256, uint256, uint256);
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/interfaces/IFeeCurrencyWhitelist.sol

pragma solidity ^0.5.13;

interface IFeeCurrencyWhitelist {
  function addToken(address) external;
  function getWhitelist() external view returns (address[] memory);
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/interfaces/IFreezer.sol

pragma solidity ^0.5.13;

interface IFreezer {
  function isFrozen(address) external view returns (bool);
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/interfaces/IRegistry.sol

pragma solidity ^0.5.13;

interface IRegistry {
  function setAddressFor(string calldata, address) external;
  function getAddressForOrDie(bytes32) external view returns (address);
  function getAddressFor(bytes32) external view returns (address);
  function getAddressForStringOrDie(string calldata identifier) external view returns (address);
  function getAddressForString(string calldata identifier) external view returns (address);
  function isOneOf(bytes32[] calldata, address) external view returns (bool);
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/libraries/ReentrancyGuard.sol

pragma solidity ^0.5.13;

/**
 * @title Helps contracts guard against reentrancy attacks.
 * @author Remco Bloemen <remco@2π.com>, Eenae <alexey@mixbytes.io>
 * @dev If you mark a function `nonReentrant`, you should also
 * mark it `external`.
 */
contract ReentrancyGuard {
  /// @dev counter to allow mutex lock with only one SSTORE operation
  uint256 private _guardCounter;

  constructor() internal {
    // The counter starts at one to prevent changing it from zero to a non-zero
    // value, which is a more expensive operation.
    _guardCounter = 1;
  }

  /**
   * @dev Prevents a contract from calling itself, directly or indirectly.
   * Calling a `nonReentrant` function from another `nonReentrant`
   * function is not supported. It is possible to prevent this from happening
   * by making the `nonReentrant` function external, and make it call a
   * `private` function that does the actual work.
   */
  modifier nonReentrant() {
    _guardCounter += 1;
    uint256 localCounter = _guardCounter;
    _;
    require(localCounter == _guardCounter, "reentrant call");
  }
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/linkedlists/AddressLinkedList.sol

pragma solidity ^0.5.13;

import "openzeppelin-solidity/contracts/math/SafeMath.sol";

import "./LinkedList.sol";

/**
 * @title Maintains a doubly linked list keyed by address.
 * @dev Following the `next` pointers will lead you to the head, rather than the tail.
 */
library AddressLinkedList {
  using LinkedList for LinkedList.List;
  using SafeMath for uint256;

  function toBytes(address a) public pure returns (bytes32) {
    return bytes32(uint256(a) << 96);
  }

  function toAddress(bytes32 b) public pure returns (address) {
    return address(uint256(b) >> 96);
  }

  /**
   * @notice Inserts an element into a doubly linked list.
   * @param list A storage pointer to the underlying list.
   * @param key The key of the element to insert.
   * @param previousKey The key of the element that comes before the element to insert.
   * @param nextKey The key of the element that comes after the element to insert.
   */
  function insert(LinkedList.List storage list, address key, address previousKey, address nextKey)
    public
  {
    list.insert(toBytes(key), toBytes(previousKey), toBytes(nextKey));
  }

  /**
   * @notice Inserts an element at the end of the doubly linked list.
   * @param list A storage pointer to the underlying list.
   * @param key The key of the element to insert.
   */
  function push(LinkedList.List storage list, address key) public {
    list.insert(toBytes(key), bytes32(0), list.tail);
  }

  /**
   * @notice Removes an element from the doubly linked list.
   * @param list A storage pointer to the underlying list.
   * @param key The key of the element to remove.
   */
  function remove(LinkedList.List storage list, address key) public {
    list.remove(toBytes(key));
  }

  /**
   * @notice Updates an element in the list.
   * @param list A storage pointer to the underlying list.
   * @param key The element key.
   * @param previousKey The key of the element that comes before the updated element.
   * @param nextKey The key of the element that comes after the updated element.
   */
  function update(LinkedList.List storage list, address key, address previousKey, address nextKey)
    public
  {
    list.update(toBytes(key), toBytes(previousKey), toBytes(nextKey));
  }

  /**
   * @notice Returns whether or not a particular key is present in the sorted list.
   * @param list A storage pointer to the underlying list.
   * @param key The element key.
   * @return Whether or not the key is in the sorted list.
   */
  function contains(LinkedList.List storage list, address key) public view returns (bool) {
    return list.elements[toBytes(key)].exists;
  }

  /**
   * @notice Returns the N greatest elements of the list.
   * @param list A storage pointer to the underlying list.
   * @param n The number of elements to return.
   * @return The keys of the greatest elements.
   * @dev Reverts if n is greater than the number of elements in the list.
   */
  function headN(LinkedList.List storage list, uint256 n) public view returns (address[] memory) {
    bytes32[] memory byteKeys = list.headN(n);
    address[] memory keys = new address[](n);
    for (uint256 i = 0; i < n; i = i.add(1)) {
      keys[i] = toAddress(byteKeys[i]);
    }
    return keys;
  }

  /**
   * @notice Gets all element keys from the doubly linked list.
   * @param list A storage pointer to the underlying list.
   * @return All element keys from head to tail.
   */
  function getKeys(LinkedList.List storage list) public view returns (address[] memory) {
    return headN(list, list.numElements);
  }
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/linkedlists/LinkedList.sol

pragma solidity ^0.5.13;

import "openzeppelin-solidity/contracts/math/SafeMath.sol";

/**
 * @title Maintains a doubly linked list keyed by bytes32.
 * @dev Following the `next` pointers will lead you to the head, rather than the tail.
 */
library LinkedList {
  using SafeMath for uint256;

  struct Element {
    bytes32 previousKey;
    bytes32 nextKey;
    bool exists;
  }

  struct List {
    bytes32 head;
    bytes32 tail;
    uint256 numElements;
    mapping(bytes32 => Element) elements;
  }

  /**
   * @notice Inserts an element into a doubly linked list.
   * @param list A storage pointer to the underlying list.
   * @param key The key of the element to insert.
   * @param previousKey The key of the element that comes before the element to insert.
   * @param nextKey The key of the element that comes after the element to insert.
   */
  function insert(List storage list, bytes32 key, bytes32 previousKey, bytes32 nextKey) internal {
    require(key != bytes32(0), "Key must be defined");
    require(!contains(list, key), "Can't insert an existing element");
    require(
      previousKey != key && nextKey != key,
      "Key cannot be the same as previousKey or nextKey"
    );

    Element storage element = list.elements[key];
    element.exists = true;

    if (list.numElements == 0) {
      list.tail = key;
      list.head = key;
    } else {
      require(
        previousKey != bytes32(0) || nextKey != bytes32(0),
        "Either previousKey or nextKey must be defined"
      );

      element.previousKey = previousKey;
      element.nextKey = nextKey;

      if (previousKey != bytes32(0)) {
        require(
          contains(list, previousKey),
          "If previousKey is defined, it must exist in the list"
        );
        Element storage previousElement = list.elements[previousKey];
        require(previousElement.nextKey == nextKey, "previousKey must be adjacent to nextKey");
        previousElement.nextKey = key;
      } else {
        list.tail = key;
      }

      if (nextKey != bytes32(0)) {
        require(contains(list, nextKey), "If nextKey is defined, it must exist in the list");
        Element storage nextElement = list.elements[nextKey];
        require(nextElement.previousKey == previousKey, "previousKey must be adjacent to nextKey");
        nextElement.previousKey = key;
      } else {
        list.head = key;
      }
    }

    list.numElements = list.numElements.add(1);
  }

  /**
   * @notice Inserts an element at the tail of the doubly linked list.
   * @param list A storage pointer to the underlying list.
   * @param key The key of the element to insert.
   */
  function push(List storage list, bytes32 key) internal {
    insert(list, key, bytes32(0), list.tail);
  }

  /**
   * @notice Removes an element from the doubly linked list.
   * @param list A storage pointer to the underlying list.
   * @param key The key of the element to remove.
   */
  function remove(List storage list, bytes32 key) internal {
    Element storage element = list.elements[key];
    require(key != bytes32(0) && contains(list, key), "key not in list");
    if (element.previousKey != bytes32(0)) {
      Element storage previousElement = list.elements[element.previousKey];
      previousElement.nextKey = element.nextKey;
    } else {
      list.tail = element.nextKey;
    }

    if (element.nextKey != bytes32(0)) {
      Element storage nextElement = list.elements[element.nextKey];
      nextElement.previousKey = element.previousKey;
    } else {
      list.head = element.previousKey;
    }

    delete list.elements[key];
    list.numElements = list.numElements.sub(1);
  }

  /**
   * @notice Updates an element in the list.
   * @param list A storage pointer to the underlying list.
   * @param key The element key.
   * @param previousKey The key of the element that comes before the updated element.
   * @param nextKey The key of the element that comes after the updated element.
   */
  function update(List storage list, bytes32 key, bytes32 previousKey, bytes32 nextKey) internal {
    require(
      key != bytes32(0) && key != previousKey && key != nextKey && contains(list, key),
      "key on in list"
    );
    remove(list, key);
    insert(list, key, previousKey, nextKey);
  }

  /**
   * @notice Returns whether or not a particular key is present in the sorted list.
   * @param list A storage pointer to the underlying list.
   * @param key The element key.
   * @return Whether or not the key is in the sorted list.
   */
  function contains(List storage list, bytes32 key) internal view returns (bool) {
    return list.elements[key].exists;
  }

  /**
   * @notice Returns the keys of the N elements at the head of the list.
   * @param list A storage pointer to the underlying list.
   * @param n The number of elements to return.
   * @return The keys of the N elements at the head of the list.
   * @dev Reverts if n is greater than the number of elements in the list.
   */
  function headN(List storage list, uint256 n) internal view returns (bytes32[] memory) {
    require(n <= list.numElements, "not enough elements");
    bytes32[] memory keys = new bytes32[](n);
    bytes32 key = list.head;
    for (uint256 i = 0; i < n; i = i.add(1)) {
      keys[i] = key;
      key = list.elements[key].previousKey;
    }
    return keys;
  }

  /**
   * @notice Gets all element keys from the doubly linked list.
   * @param list A storage pointer to the underlying list.
   * @return All element keys from head to tail.
   */
  function getKeys(List storage list) internal view returns (bytes32[] memory) {
    return headN(list, list.numElements);
  }
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/interfaces/IElection.sol

pragma solidity ^0.5.13;

interface IElection {
  function electValidatorSigners() external view returns (address[] memory);
  function electNValidatorSigners(uint256, uint256) external view returns (address[] memory);
  function vote(address, uint256, address, address) external returns (bool);
  function activate(address) external returns (bool);
  function revokeActive(address, uint256, address, address, uint256) external returns (bool);
  function revokeAllActive(address, address, address, uint256) external returns (bool);
  function revokePending(address, uint256, address, address, uint256) external returns (bool);
  function markGroupIneligible(address) external;
  function markGroupEligible(address, address, address) external;
  function forceDecrementVotes(
    address,
    uint256,
    address[] calldata,
    address[] calldata,
    uint256[] calldata
  ) external returns (uint256);

  // view functions
  function getElectableValidators() external view returns (uint256, uint256);
  function getElectabilityThreshold() external view returns (uint256);
  function getNumVotesReceivable(address) external view returns (uint256);
  function getTotalVotes() external view returns (uint256);
  function getActiveVotes() external view returns (uint256);
  function getTotalVotesByAccount(address) external view returns (uint256);
  function getPendingVotesForGroupByAccount(address, address) external view returns (uint256);
  function getActiveVotesForGroupByAccount(address, address) external view returns (uint256);
  function getTotalVotesForGroupByAccount(address, address) external view returns (uint256);
  function getActiveVoteUnitsForGroupByAccount(address, address) external view returns (uint256);
  function getTotalVotesForGroup(address) external view returns (uint256);
  function getActiveVotesForGroup(address) external view returns (uint256);
  function getPendingVotesForGroup(address) external view returns (uint256);
  function getGroupEligibility(address) external view returns (bool);
  function getGroupEpochRewards(address, uint256, uint256[] calldata)
    external
    view
    returns (uint256);
  function getGroupsVotedForByAccount(address) external view returns (address[] memory);
  function getEligibleValidatorGroups() external view returns (address[] memory);
  function getTotalVotesForEligibleValidatorGroups()
    external
    view
    returns (address[] memory, uint256[] memory);
  function getCurrentValidatorSigners() external view returns (address[] memory);
  function canReceiveVotes(address, uint256) external view returns (bool);
  function hasActivatablePendingVotes(address, address) external view returns (bool);

  // only owner
  function setElectableValidators(uint256, uint256) external returns (bool);
  function setMaxNumGroupsVotedFor(uint256) external returns (bool);
  function setElectabilityThreshold(uint256) external returns (bool);

  // only VM
  function distributeEpochRewards(address, uint256, address, address) external;
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/interfaces/IGovernance.sol

pragma solidity ^0.5.13;

interface IGovernance {
  function isVoting(address) external view returns (bool);
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/interfaces/ILockedGold.sol

pragma solidity ^0.5.13;

interface ILockedGold {
  function incrementNonvotingAccountBalance(address, uint256) external;
  function decrementNonvotingAccountBalance(address, uint256) external;
  function getAccountTotalLockedGold(address) external view returns (uint256);
  function getTotalLockedGold() external view returns (uint256);
  function getPendingWithdrawals(address)
    external
    view
    returns (uint256[] memory, uint256[] memory);
  function getTotalPendingWithdrawals(address) external view returns (uint256);
  function lock() external payable;
  function unlock(uint256) external;
  function relock(uint256, uint256) external;
  function withdraw(uint256) external;
  function slash(
    address account,
    uint256 penalty,
    address reporter,
    uint256 reward,
    address[] calldata lessers,
    address[] calldata greaters,
    uint256[] calldata indices
  ) external;
  function isSlasher(address) external view returns (bool);
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/interfaces/IValidators.sol

pragma solidity ^0.5.13;

interface IValidators {
  function registerValidator(bytes calldata, bytes calldata, bytes calldata)
    external
    returns (bool);
  function deregisterValidator(uint256) external returns (bool);
  function affiliate(address) external returns (bool);
  function deaffiliate() external returns (bool);
  function updateBlsPublicKey(bytes calldata, bytes calldata) external returns (bool);
  function registerValidatorGroup(uint256) external returns (bool);
  function deregisterValidatorGroup(uint256) external returns (bool);
  function addMember(address) external returns (bool);
  function addFirstMember(address, address, address) external returns (bool);
  function removeMember(address) external returns (bool);
  function reorderMember(address, address, address) external returns (bool);
  function updateCommission() external;
  function setNextCommissionUpdate(uint256) external;
  function resetSlashingMultiplier() external;

  // only owner
  function setCommissionUpdateDelay(uint256) external;
  function setMaxGroupSize(uint256) external returns (bool);
  function setMembershipHistoryLength(uint256) external returns (bool);
  function setValidatorScoreParameters(uint256, uint256) external returns (bool);
  function setGroupLockedGoldRequirements(uint256, uint256) external returns (bool);
  function setValidatorLockedGoldRequirements(uint256, uint256) external returns (bool);
  function setSlashingMultiplierResetPeriod(uint256) external;

  // view functions
  function getMaxGroupSize() external view returns (uint256);
  function getCommissionUpdateDelay() external view returns (uint256);
  function getValidatorScoreParameters() external view returns (uint256, uint256);
  function getMembershipHistory(address)
    external
    view
    returns (uint256[] memory, address[] memory, uint256, uint256);
  function calculateEpochScore(uint256) external view returns (uint256);
  function calculateGroupEpochScore(uint256[] calldata) external view returns (uint256);
  function getAccountLockedGoldRequirement(address) external view returns (uint256);
  function meetsAccountLockedGoldRequirements(address) external view returns (bool);
  function getValidatorBlsPublicKeyFromSigner(address) external view returns (bytes memory);
  function getValidator(address account)
    external
    view
    returns (bytes memory, bytes memory, address, uint256, address);
  function getValidatorGroup(address)
    external
    view
    returns (address[] memory, uint256, uint256, uint256, uint256[] memory, uint256, uint256);
  function getGroupNumMembers(address) external view returns (uint256);
  function getTopGroupValidators(address, uint256) external view returns (address[] memory);
  function getGroupsNumMembers(address[] calldata accounts)
    external
    view
    returns (uint256[] memory);
  function getNumRegisteredValidators() external view returns (uint256);
  function groupMembershipInEpoch(address, uint256, uint256) external view returns (address);

  // only registered contract
  function updateEcdsaPublicKey(address, address, bytes calldata) external returns (bool);
  function updatePublicKeys(address, address, bytes calldata, bytes calldata, bytes calldata)
    external
    returns (bool);
  function getValidatorLockedGoldRequirements() external view returns (uint256, uint256);
  function getGroupLockedGoldRequirements() external view returns (uint256, uint256);
  function getRegisteredValidators() external view returns (address[] memory);
  function getRegisteredValidatorSigners() external view returns (address[] memory);
  function getRegisteredValidatorGroups() external view returns (address[] memory);
  function isValidatorGroup(address) external view returns (bool);
  function isValidator(address) external view returns (bool);
  function getValidatorGroupSlashingMultiplier(address) external view returns (uint256);
  function getMembershipInLastEpoch(address) external view returns (address);
  function getMembershipInLastEpochFromSigner(address) external view returns (address);

  // only VM
  function updateValidatorScoreFromSigner(address, uint256) external;
  function distributeEpochPaymentsFromSigner(address, uint256) external returns (uint256);

  // only slasher
  function forceDeaffiliateIfValidator(address) external;
  function halveSlashingMultiplier(address) external;

}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/identity/interfaces/IAttestations.sol

pragma solidity ^0.5.13;

interface IAttestations {
  function request(bytes32, uint256, address) external;
  function selectIssuers(bytes32) external;
  function complete(bytes32, uint8, bytes32, bytes32) external;
  function revoke(bytes32, uint256) external;
  function withdraw(address) external;
  function approveTransfer(bytes32, uint256, address, address, bool) external;

  // view functions
  function getUnselectedRequest(bytes32, address) external view returns (uint32, uint32, address);
  function getAttestationIssuers(bytes32, address) external view returns (address[] memory);
  function getAttestationStats(bytes32, address) external view returns (uint32, uint32);
  function batchGetAttestationStats(bytes32[] calldata)
    external
    view
    returns (uint256[] memory, address[] memory, uint64[] memory, uint64[] memory);
  function getAttestationState(bytes32, address, address)
    external
    view
    returns (uint8, uint32, address);
  function getCompletableAttestations(bytes32, address)
    external
    view
    returns (uint32[] memory, address[] memory, uint256[] memory, bytes memory);
  function getAttestationRequestFee(address) external view returns (uint256);
  function getMaxAttestations() external view returns (uint256);
  function validateAttestationCode(bytes32, address, uint8, bytes32, bytes32)
    external
    view
    returns (address);
  function lookupAccountsForIdentifier(bytes32) external view returns (address[] memory);
  function requireNAttestationsRequested(bytes32, address, uint32) external view;

  // only owner
  function setAttestationRequestFee(address, uint256) external;
  function setAttestationExpiryBlocks(uint256) external;
  function setSelectIssuersWaitBlocks(uint256) external;
  function setMaxAttestations(uint256) external;
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/identity/interfaces/IRandom.sol

pragma solidity ^0.5.13;

interface IRandom {
  function revealAndCommit(bytes32, bytes32, address) external;
  function randomnessBlockRetentionWindow() external view returns (uint256);
  function random() external view returns (bytes32);
  function getBlockRandomness(uint256) external view returns (bytes32);
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/stability/interfaces/IExchange.sol

pragma solidity ^0.5.13;

interface IExchange {
  function buy(uint256, uint256, bool) external returns (uint256);
  function sell(uint256, uint256, bool) external returns (uint256);
  function exchange(uint256, uint256, bool) external returns (uint256);
  function setUpdateFrequency(uint256) external;
  function getBuyTokenAmount(uint256, bool) external view returns (uint256);
  function getSellTokenAmount(uint256, bool) external view returns (uint256);
  function getBuyAndSellBuckets(bool) external view returns (uint256, uint256);
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/stability/interfaces/IReserve.sol

pragma solidity ^0.5.13;

interface IReserve {
  function setTobinTaxStalenessThreshold(uint256) external;
  function addToken(address) external returns (bool);
  function removeToken(address, uint256) external returns (bool);
  function transferGold(address payable, uint256) external returns (bool);
  function transferExchangeGold(address payable, uint256) external returns (bool);
  function getReserveGoldBalance() external view returns (uint256);
  function getUnfrozenReserveGoldBalance() external view returns (uint256);
  function getOrComputeTobinTax() external returns (uint256, uint256);
  function getTokens() external view returns (address[] memory);
  function getReserveRatio() external view returns (uint256);
  function addExchangeSpender(address) external;
  function removeExchangeSpender(address, uint256) external;
  function addSpender(address) external;
  function removeSpender(address) external;
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/stability/interfaces/ISortedOracles.sol

pragma solidity ^0.5.13;

interface ISortedOracles {
  function addOracle(address, address) external;
  function removeOracle(address, address, uint256) external;
  function report(address, uint256, address, address) external;
  function removeExpiredReports(address, uint256) external;
  function isOldestReportExpired(address token) external view returns (bool, address);
  function numRates(address) external view returns (uint256);
  function medianRate(address) external view returns (uint256, uint256);
  function numTimestamps(address) external view returns (uint256);
  function medianTimestamp(address) external view returns (uint256);
}
          

/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/stability/interfaces/IStableToken.sol

pragma solidity ^0.5.13;

/**
 * @title This interface describes the functions specific to Celo Stable Tokens, and in the
 * absence of interface inheritance is intended as a companion to IERC20.sol and ICeloToken.sol.
 */
interface IStableToken {
  function mint(address, uint256) external returns (bool);
  function burn(uint256) external returns (bool);
  function setInflationParameters(uint256, uint256) external;
  function valueToUnits(uint256) external view returns (uint256);
  function unitsToValue(uint256) external view returns (uint256);
  function getInflationParameters() external view returns (uint256, uint256, uint256, uint256);

  // NOTE: duplicated with IERC20.sol, remove once interface inheritance is supported.
  function balanceOf(address) external view returns (uint256);
}
          

/openzeppelin-solidity/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 {
    // 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;
    }
}
          

/openzeppelin-solidity/contracts/math/Math.sol

pragma solidity ^0.5.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}
          

/openzeppelin-solidity/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;
    }
}
          

/openzeppelin-solidity/contracts/ownership/Ownable.sol

pragma solidity ^0.5.0;

import "../GSN/Context.sol";
/**
 * @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 applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

/openzeppelin-solidity/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);
}
          

/solidity-bytes-utils/contracts/BytesLib.sol

/*
 * @title Solidity Bytes Arrays Utils
 * @author Gonçalo Sá <goncalo.sa@consensys.net>
 *
 * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.
 *      The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.
 */

pragma solidity ^0.5.0;


library BytesLib {
    function concat(
        bytes memory _preBytes,
        bytes memory _postBytes
    )
        internal
        pure
        returns (bytes memory)
    {
        bytes memory tempBytes;

        assembly {
            // Get a location of some free memory and store it in tempBytes as
            // Solidity does for memory variables.
            tempBytes := mload(0x40)

            // Store the length of the first bytes array at the beginning of
            // the memory for tempBytes.
            let length := mload(_preBytes)
            mstore(tempBytes, length)

            // Maintain a memory counter for the current write location in the
            // temp bytes array by adding the 32 bytes for the array length to
            // the starting location.
            let mc := add(tempBytes, 0x20)
            // Stop copying when the memory counter reaches the length of the
            // first bytes array.
            let end := add(mc, length)

            for {
                // Initialize a copy counter to the start of the _preBytes data,
                // 32 bytes into its memory.
                let cc := add(_preBytes, 0x20)
            } lt(mc, end) {
                // Increase both counters by 32 bytes each iteration.
                mc := add(mc, 0x20)
                cc := add(cc, 0x20)
            } {
                // Write the _preBytes data into the tempBytes memory 32 bytes
                // at a time.
                mstore(mc, mload(cc))
            }

            // Add the length of _postBytes to the current length of tempBytes
            // and store it as the new length in the first 32 bytes of the
            // tempBytes memory.
            length := mload(_postBytes)
            mstore(tempBytes, add(length, mload(tempBytes)))

            // Move the memory counter back from a multiple of 0x20 to the
            // actual end of the _preBytes data.
            mc := end
            // Stop copying when the memory counter reaches the new combined
            // length of the arrays.
            end := add(mc, length)

            for {
                let cc := add(_postBytes, 0x20)
            } lt(mc, end) {
                mc := add(mc, 0x20)
                cc := add(cc, 0x20)
            } {
                mstore(mc, mload(cc))
            }

            // Update the free-memory pointer by padding our last write location
            // to 32 bytes: add 31 bytes to the end of tempBytes to move to the
            // next 32 byte block, then round down to the nearest multiple of
            // 32. If the sum of the length of the two arrays is zero then add 
            // one before rounding down to leave a blank 32 bytes (the length block with 0).
            mstore(0x40, and(
              add(add(end, iszero(add(length, mload(_preBytes)))), 31),
              not(31) // Round down to the nearest 32 bytes.
            ))
        }

        return tempBytes;
    }

    function concatStorage(bytes storage _preBytes, bytes memory _postBytes) internal {
        assembly {
            // Read the first 32 bytes of _preBytes storage, which is the length
            // of the array. (We don't need to use the offset into the slot
            // because arrays use the entire slot.)
            let fslot := sload(_preBytes_slot)
            // Arrays of 31 bytes or less have an even value in their slot,
            // while longer arrays have an odd value. The actual length is
            // the slot divided by two for odd values, and the lowest order
            // byte divided by two for even values.
            // If the slot is even, bitwise and the slot with 255 and divide by
            // two to get the length. If the slot is odd, bitwise and the slot
            // with -1 and divide by two.
            let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)
            let mlength := mload(_postBytes)
            let newlength := add(slength, mlength)
            // slength can contain both the length and contents of the array
            // if length < 32 bytes so let's prepare for that
            // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage
            switch add(lt(slength, 32), lt(newlength, 32))
            case 2 {
                // Since the new array still fits in the slot, we just need to
                // update the contents of the slot.
                // uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length
                sstore(
                    _preBytes_slot,
                    // all the modifications to the slot are inside this
                    // next block
                    add(
                        // we can just add to the slot contents because the
                        // bytes we want to change are the LSBs
                        fslot,
                        add(
                            mul(
                                div(
                                    // load the bytes from memory
                                    mload(add(_postBytes, 0x20)),
                                    // zero all bytes to the right
                                    exp(0x100, sub(32, mlength))
                                ),
                                // and now shift left the number of bytes to
                                // leave space for the length in the slot
                                exp(0x100, sub(32, newlength))
                            ),
                            // increase length by the double of the memory
                            // bytes length
                            mul(mlength, 2)
                        )
                    )
                )
            }
            case 1 {
                // The stored value fits in the slot, but the combined value
                // will exceed it.
                // get the keccak hash to get the contents of the array
                mstore(0x0, _preBytes_slot)
                let sc := add(keccak256(0x0, 0x20), div(slength, 32))

                // save new length
                sstore(_preBytes_slot, add(mul(newlength, 2), 1))

                // The contents of the _postBytes array start 32 bytes into
                // the structure. Our first read should obtain the `submod`
                // bytes that can fit into the unused space in the last word
                // of the stored array. To get this, we read 32 bytes starting
                // from `submod`, so the data we read overlaps with the array
                // contents by `submod` bytes. Masking the lowest-order
                // `submod` bytes allows us to add that value directly to the
                // stored value.

                let submod := sub(32, slength)
                let mc := add(_postBytes, submod)
                let end := add(_postBytes, mlength)
                let mask := sub(exp(0x100, submod), 1)

                sstore(
                    sc,
                    add(
                        and(
                            fslot,
                            0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00
                        ),
                        and(mload(mc), mask)
                    )
                )

                for {
                    mc := add(mc, 0x20)
                    sc := add(sc, 1)
                } lt(mc, end) {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } {
                    sstore(sc, mload(mc))
                }

                mask := exp(0x100, sub(mc, end))

                sstore(sc, mul(div(mload(mc), mask), mask))
            }
            default {
                // get the keccak hash to get the contents of the array
                mstore(0x0, _preBytes_slot)
                // Start copying to the last used word of the stored array.
                let sc := add(keccak256(0x0, 0x20), div(slength, 32))

                // save new length
                sstore(_preBytes_slot, add(mul(newlength, 2), 1))

                // Copy over the first `submod` bytes of the new data as in
                // case 1 above.
                let slengthmod := mod(slength, 32)
                let mlengthmod := mod(mlength, 32)
                let submod := sub(32, slengthmod)
                let mc := add(_postBytes, submod)
                let end := add(_postBytes, mlength)
                let mask := sub(exp(0x100, submod), 1)

                sstore(sc, add(sload(sc), and(mload(mc), mask)))
                
                for { 
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } lt(mc, end) {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } {
                    sstore(sc, mload(mc))
                }

                mask := exp(0x100, sub(mc, end))

                sstore(sc, mul(div(mload(mc), mask), mask))
            }
        }
    }

    function slice(
        bytes memory _bytes,
        uint _start,
        uint _length
    )
        internal
        pure
        returns (bytes memory)
    {
        require(_bytes.length >= (_start + _length));

        bytes memory tempBytes;

        assembly {
            switch iszero(_length)
            case 0 {
                // Get a location of some free memory and store it in tempBytes as
                // Solidity does for memory variables.
                tempBytes := mload(0x40)

                // The first word of the slice result is potentially a partial
                // word read from the original array. To read it, we calculate
                // the length of that partial word and start copying that many
                // bytes into the array. The first word we copy will start with
                // data we don't care about, but the last `lengthmod` bytes will
                // land at the beginning of the contents of the new array. When
                // we're done copying, we overwrite the full first word with
                // the actual length of the slice.
                let lengthmod := and(_length, 31)

                // The multiplication in the next line is necessary
                // because when slicing multiples of 32 bytes (lengthmod == 0)
                // the following copy loop was copying the origin's length
                // and then ending prematurely not copying everything it should.
                let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod)))
                let end := add(mc, _length)

                for {
                    // The multiplication in the next line has the same exact purpose
                    // as the one above.
                    let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start)
                } lt(mc, end) {
                    mc := add(mc, 0x20)
                    cc := add(cc, 0x20)
                } {
                    mstore(mc, mload(cc))
                }

                mstore(tempBytes, _length)

                //update free-memory pointer
                //allocating the array padded to 32 bytes like the compiler does now
                mstore(0x40, and(add(mc, 31), not(31)))
            }
            //if we want a zero-length slice let's just return a zero-length array
            default {
                tempBytes := mload(0x40)

                mstore(0x40, add(tempBytes, 0x20))
            }
        }

        return tempBytes;
    }

    function toAddress(bytes memory _bytes, uint _start) internal  pure returns (address) {
        require(_bytes.length >= (_start + 20));
        address tempAddress;

        assembly {
            tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000)
        }

        return tempAddress;
    }

    function toUint8(bytes memory _bytes, uint _start) internal  pure returns (uint8) {
        require(_bytes.length >= (_start + 1));
        uint8 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x1), _start))
        }

        return tempUint;
    }

    function toUint16(bytes memory _bytes, uint _start) internal  pure returns (uint16) {
        require(_bytes.length >= (_start + 2));
        uint16 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x2), _start))
        }

        return tempUint;
    }

    function toUint32(bytes memory _bytes, uint _start) internal  pure returns (uint32) {
        require(_bytes.length >= (_start + 4));
        uint32 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x4), _start))
        }

        return tempUint;
    }

    function toUint(bytes memory _bytes, uint _start) internal  pure returns (uint256) {
        require(_bytes.length >= (_start + 32));
        uint256 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x20), _start))
        }

        return tempUint;
    }

    function toBytes32(bytes memory _bytes, uint _start) internal  pure returns (bytes32) {
        require(_bytes.length >= (_start + 32));
        bytes32 tempBytes32;

        assembly {
            tempBytes32 := mload(add(add(_bytes, 0x20), _start))
        }

        return tempBytes32;
    }

    function equal(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bool) {
        bool success = true;

        assembly {
            let length := mload(_preBytes)

            // if lengths don't match the arrays are not equal
            switch eq(length, mload(_postBytes))
            case 1 {
                // cb is a circuit breaker in the for loop since there's
                //  no said feature for inline assembly loops
                // cb = 1 - don't breaker
                // cb = 0 - break
                let cb := 1

                let mc := add(_preBytes, 0x20)
                let end := add(mc, length)

                for {
                    let cc := add(_postBytes, 0x20)
                // the next line is the loop condition:
                // while(uint(mc < end) + cb == 2)
                } eq(add(lt(mc, end), cb), 2) {
                    mc := add(mc, 0x20)
                    cc := add(cc, 0x20)
                } {
                    // if any of these checks fails then arrays are not equal
                    if iszero(eq(mload(mc), mload(cc))) {
                        // unsuccess:
                        success := 0
                        cb := 0
                    }
                }
            }
            default {
                // unsuccess:
                success := 0
            }
        }

        return success;
    }

    function equalStorage(
        bytes storage _preBytes,
        bytes memory _postBytes
    )
        internal
        view
        returns (bool)
    {
        bool success = true;

        assembly {
            // we know _preBytes_offset is 0
            let fslot := sload(_preBytes_slot)
            // Decode the length of the stored array like in concatStorage().
            let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)
            let mlength := mload(_postBytes)

            // if lengths don't match the arrays are not equal
            switch eq(slength, mlength)
            case 1 {
                // slength can contain both the length and contents of the array
                // if length < 32 bytes so let's prepare for that
                // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage
                if iszero(iszero(slength)) {
                    switch lt(slength, 32)
                    case 1 {
                        // blank the last byte which is the length
                        fslot := mul(div(fslot, 0x100), 0x100)

                        if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) {
                            // unsuccess:
                            success := 0
                        }
                    }
                    default {
                        // cb is a circuit breaker in the for loop since there's
                        //  no said feature for inline assembly loops
                        // cb = 1 - don't breaker
                        // cb = 0 - break
                        let cb := 1

                        // get the keccak hash to get the contents of the array
                        mstore(0x0, _preBytes_slot)
                        let sc := keccak256(0x0, 0x20)

                        let mc := add(_postBytes, 0x20)
                        let end := add(mc, mlength)

                        // the next line is the loop condition:
                        // while(uint(mc < end) + cb == 2)
                        for {} eq(add(lt(mc, end), cb), 2) {
                            sc := add(sc, 1)
                            mc := add(mc, 0x20)
                        } {
                            if iszero(eq(sload(sc), mload(mc))) {
                                // unsuccess:
                                success := 0
                                cb := 0
                            }
                        }
                    }
                }
            }
            default {
                // unsuccess:
                success := 0
            }
        }

        return success;
    }
}
          

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","payable":false,"inputs":[{"type":"bool","name":"test","internalType":"bool"}]},{"type":"event","name":"CommissionUpdateDelaySet","inputs":[{"type":"uint256","name":"delay","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"GroupLockedGoldRequirementsSet","inputs":[{"type":"uint256","name":"value","internalType":"uint256","indexed":false},{"type":"uint256","name":"duration","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"MaxGroupSizeSet","inputs":[{"type":"uint256","name":"size","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"MembershipHistoryLengthSet","inputs":[{"type":"uint256","name":"length","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RegistrySet","inputs":[{"type":"address","name":"registryAddress","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ValidatorAffiliated","inputs":[{"type":"address","name":"validator","internalType":"address","indexed":true},{"type":"address","name":"group","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ValidatorBlsPublicKeyUpdated","inputs":[{"type":"address","name":"validator","internalType":"address","indexed":true},{"type":"bytes","name":"blsPublicKey","internalType":"bytes","indexed":false}],"anonymous":false},{"type":"event","name":"ValidatorDeaffiliated","inputs":[{"type":"address","name":"validator","internalType":"address","indexed":true},{"type":"address","name":"group","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ValidatorDeregistered","inputs":[{"type":"address","name":"validator","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ValidatorEcdsaPublicKeyUpdated","inputs":[{"type":"address","name":"validator","internalType":"address","indexed":true},{"type":"bytes","name":"ecdsaPublicKey","internalType":"bytes","indexed":false}],"anonymous":false},{"type":"event","name":"ValidatorEpochPaymentDistributed","inputs":[{"type":"address","name":"validator","internalType":"address","indexed":true},{"type":"uint256","name":"validatorPayment","internalType":"uint256","indexed":false},{"type":"address","name":"group","internalType":"address","indexed":true},{"type":"uint256","name":"groupPayment","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ValidatorGroupCommissionUpdateQueued","inputs":[{"type":"address","name":"group","internalType":"address","indexed":true},{"type":"uint256","name":"commission","internalType":"uint256","indexed":false},{"type":"uint256","name":"activationBlock","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ValidatorGroupCommissionUpdated","inputs":[{"type":"address","name":"group","internalType":"address","indexed":true},{"type":"uint256","name":"commission","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ValidatorGroupDeregistered","inputs":[{"type":"address","name":"group","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ValidatorGroupMemberAdded","inputs":[{"type":"address","name":"group","internalType":"address","indexed":true},{"type":"address","name":"validator","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ValidatorGroupMemberRemoved","inputs":[{"type":"address","name":"group","internalType":"address","indexed":true},{"type":"address","name":"validator","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ValidatorGroupMemberReordered","inputs":[{"type":"address","name":"group","internalType":"address","indexed":true},{"type":"address","name":"validator","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ValidatorGroupRegistered","inputs":[{"type":"address","name":"group","internalType":"address","indexed":true},{"type":"uint256","name":"commission","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ValidatorLockedGoldRequirementsSet","inputs":[{"type":"uint256","name":"value","internalType":"uint256","indexed":false},{"type":"uint256","name":"duration","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ValidatorRegistered","inputs":[{"type":"address","name":"validator","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ValidatorScoreParametersSet","inputs":[{"type":"uint256","name":"exponent","internalType":"uint256","indexed":false},{"type":"uint256","name":"adjustmentSpeed","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ValidatorScoreUpdated","inputs":[{"type":"address","name":"validator","internalType":"address","indexed":true},{"type":"uint256","name":"score","internalType":"uint256","indexed":false},{"type":"uint256","name":"epochScore","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"addFirstMember","inputs":[{"type":"address","name":"validator","internalType":"address"},{"type":"address","name":"lesser","internalType":"address"},{"type":"address","name":"greater","internalType":"address"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"addMember","inputs":[{"type":"address","name":"validator","internalType":"address"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"affiliate","inputs":[{"type":"address","name":"group","internalType":"address"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"calculateEpochScore","inputs":[{"type":"uint256","name":"uptime","internalType":"uint256"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"calculateGroupEpochScore","inputs":[{"type":"uint256[]","name":"uptimes","internalType":"uint256[]"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"checkProofOfPossession","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"bytes","name":"blsKey","internalType":"bytes"},{"type":"bytes","name":"blsPop","internalType":"bytes"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"commissionUpdateDelay","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"deaffiliate","inputs":[],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"deregisterValidator","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"deregisterValidatorGroup","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"distributeEpochPaymentsFromSigner","inputs":[{"type":"address","name":"signer","internalType":"address"},{"type":"uint256","name":"maxPayment","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"downtimeGracePeriod","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"forceDeaffiliateIfValidator","inputs":[{"type":"address","name":"validatorAccount","internalType":"address"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"fractionMulExp","inputs":[{"type":"uint256","name":"aNumerator","internalType":"uint256"},{"type":"uint256","name":"aDenominator","internalType":"uint256"},{"type":"uint256","name":"bNumerator","internalType":"uint256"},{"type":"uint256","name":"bDenominator","internalType":"uint256"},{"type":"uint256","name":"exponent","internalType":"uint256"},{"type":"uint256","name":"_decimals","internalType":"uint256"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getAccountLockedGoldRequirement","inputs":[{"type":"address","name":"account","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getBlockNumberFromHeader","inputs":[{"type":"bytes","name":"header","internalType":"bytes"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getCommissionUpdateDelay","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getEpochNumber","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getEpochNumberOfBlock","inputs":[{"type":"uint256","name":"blockNumber","internalType":"uint256"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getEpochSize","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getGroupLockedGoldRequirements","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getGroupNumMembers","inputs":[{"type":"address","name":"account","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"}],"name":"getGroupsNumMembers","inputs":[{"type":"address[]","name":"accounts","internalType":"address[]"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMaxGroupSize","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"},{"type":"address[]","name":"","internalType":"address[]"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMembershipHistory","inputs":[{"type":"address","name":"account","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getMembershipInLastEpoch","inputs":[{"type":"address","name":"account","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getMembershipInLastEpochFromSigner","inputs":[{"type":"address","name":"signer","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getNumRegisteredValidators","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getParentSealBitmap","inputs":[{"type":"uint256","name":"blockNumber","internalType":"uint256"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address[]","name":"","internalType":"address[]"}],"name":"getRegisteredValidatorGroups","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address[]","name":"","internalType":"address[]"}],"name":"getRegisteredValidatorSigners","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address[]","name":"","internalType":"address[]"}],"name":"getRegisteredValidators","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address[]","name":"","internalType":"address[]"}],"name":"getTopGroupValidators","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"n","internalType":"uint256"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bytes","name":"ecdsaPublicKey","internalType":"bytes"},{"type":"bytes","name":"blsPublicKey","internalType":"bytes"},{"type":"address","name":"affiliation","internalType":"address"},{"type":"uint256","name":"score","internalType":"uint256"},{"type":"address","name":"signer","internalType":"address"}],"name":"getValidator","inputs":[{"type":"address","name":"account","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bytes","name":"blsPublicKey","internalType":"bytes"}],"name":"getValidatorBlsPublicKeyFromSigner","inputs":[{"type":"address","name":"signer","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address[]","name":"","internalType":"address[]"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256[]","name":"","internalType":"uint256[]"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getValidatorGroup","inputs":[{"type":"address","name":"account","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getValidatorGroupSlashingMultiplier","inputs":[{"type":"address","name":"account","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getValidatorLockedGoldRequirements","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getValidatorScoreParameters","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getVerifiedSealBitmapFromHeader","inputs":[{"type":"bytes","name":"header","internalType":"bytes"}],"constant":true},{"type":"function","stateMutability":"pure","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getVersionNumber","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"value","internalType":"uint256"},{"type":"uint256","name":"duration","internalType":"uint256"}],"name":"groupLockedGoldRequirements","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":"","internalType":"address"}],"name":"groupMembershipInEpoch","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"epochNumber","internalType":"uint256"},{"type":"uint256","name":"index","internalType":"uint256"}],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"halveSlashingMultiplier","inputs":[{"type":"address","name":"account","internalType":"address"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"hashHeader","inputs":[{"type":"bytes","name":"header","internalType":"bytes"}],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"initialize","inputs":[{"type":"address","name":"registryAddress","internalType":"address"},{"type":"uint256","name":"groupRequirementValue","internalType":"uint256"},{"type":"uint256","name":"groupRequirementDuration","internalType":"uint256"},{"type":"uint256","name":"validatorRequirementValue","internalType":"uint256"},{"type":"uint256","name":"validatorRequirementDuration","internalType":"uint256"},{"type":"uint256","name":"validatorScoreExponent","internalType":"uint256"},{"type":"uint256","name":"validatorScoreAdjustmentSpeed","internalType":"uint256"},{"type":"uint256","name":"_membershipHistoryLength","internalType":"uint256"},{"type":"uint256","name":"_slashingMultiplierResetPeriod","internalType":"uint256"},{"type":"uint256","name":"_maxGroupSize","internalType":"uint256"},{"type":"uint256","name":"_commissionUpdateDelay","internalType":"uint256"},{"type":"uint256","name":"_downtimeGracePeriod","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"initialized","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isOwner","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isValidator","inputs":[{"type":"address","name":"account","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isValidatorGroup","inputs":[{"type":"address","name":"account","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxGroupSize","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"meetsAccountLockedGoldRequirements","inputs":[{"type":"address","name":"account","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"membershipHistoryLength","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"minQuorumSize","inputs":[{"type":"uint256","name":"blockNumber","internalType":"uint256"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"minQuorumSizeInCurrentSet","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"numberValidatorsInCurrentSet","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"numberValidatorsInSet","inputs":[{"type":"uint256","name":"blockNumber","internalType":"uint256"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"registerValidator","inputs":[{"type":"bytes","name":"ecdsaPublicKey","internalType":"bytes"},{"type":"bytes","name":"blsPublicKey","internalType":"bytes"},{"type":"bytes","name":"blsPop","internalType":"bytes"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"registerValidatorGroup","inputs":[{"type":"uint256","name":"commission","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":"","internalType":"contract IRegistry"}],"name":"registry","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"removeMember","inputs":[{"type":"address","name":"validator","internalType":"address"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"renounceOwnership","inputs":[],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"reorderMember","inputs":[{"type":"address","name":"validator","internalType":"address"},{"type":"address","name":"lesserMember","internalType":"address"},{"type":"address","name":"greaterMember","internalType":"address"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"resetSlashingMultiplier","inputs":[],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"setCommissionUpdateDelay","inputs":[{"type":"uint256","name":"delay","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"setDowntimeGracePeriod","inputs":[{"type":"uint256","name":"value","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"setGroupLockedGoldRequirements","inputs":[{"type":"uint256","name":"value","internalType":"uint256"},{"type":"uint256","name":"duration","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"setMaxGroupSize","inputs":[{"type":"uint256","name":"size","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"setMembershipHistoryLength","inputs":[{"type":"uint256","name":"length","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"setNextCommissionUpdate","inputs":[{"type":"uint256","name":"commission","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"setRegistry","inputs":[{"type":"address","name":"registryAddress","internalType":"address"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"setSlashingMultiplierResetPeriod","inputs":[{"type":"uint256","name":"value","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"setValidatorLockedGoldRequirements","inputs":[{"type":"uint256","name":"value","internalType":"uint256"},{"type":"uint256","name":"duration","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"setValidatorScoreParameters","inputs":[{"type":"uint256","name":"exponent","internalType":"uint256"},{"type":"uint256","name":"adjustmentSpeed","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"slashingMultiplierResetPeriod","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"updateBlsPublicKey","inputs":[{"type":"bytes","name":"blsPublicKey","internalType":"bytes"},{"type":"bytes","name":"blsPop","internalType":"bytes"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"updateCommission","inputs":[],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"updateEcdsaPublicKey","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"address","name":"signer","internalType":"address"},{"type":"bytes","name":"ecdsaPublicKey","internalType":"bytes"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"updatePublicKeys","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"address","name":"signer","internalType":"address"},{"type":"bytes","name":"ecdsaPublicKey","internalType":"bytes"},{"type":"bytes","name":"blsPublicKey","internalType":"bytes"},{"type":"bytes","name":"blsPop","internalType":"bytes"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"updateValidatorScoreFromSigner","inputs":[{"type":"address","name":"signer","internalType":"address"},{"type":"uint256","name":"uptime","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"value","internalType":"uint256"},{"type":"uint256","name":"duration","internalType":"uint256"}],"name":"validatorLockedGoldRequirements","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":"","internalType":"address"}],"name":"validatorSignerAddressFromCurrentSet","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":"","internalType":"address"}],"name":"validatorSignerAddressFromSet","inputs":[{"type":"uint256","name":"index","internalType":"uint256"},{"type":"uint256","name":"blockNumber","internalType":"uint256"}],"constant":true}]
              

Contract Creation Code

Verify & Publish
0x60806040523480156200001157600080fd5b506040516200e5343803806200e534833981810160405260208110156200003757600080fd5b81019080805190602001909291905050508060006200005b6200012a60201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a350600180819055508062000122576001600260006101000a81548160ff0219169083151502179055505b505062000132565b600033905090565b61e3f280620001426000396000f3fe608060405234801561001057600080fd5b50600436106104b75760003560e01c80638da5cb5b11610278578063ca6d56dc1161015c578063e50e652d116100ce578063ee09831011610092578063ee09831014612489578063eff2ea3f146124cf578063f2fde38b14612515578063facd743b14612559578063fae8db0a146125b5578063fffdfccb146125f7576104b7565b8063e50e652d146121ef578063e7f0376614612231578063ea684f771461223b578063eb1d0b4214612376578063ec6830721461240e576104b7565b8063dba94fcd11610120578063dba94fcd14612079578063dcff4cf6146120d1578063df4da46114612129578063e0e3ffe614612147578063e1497ff714612165578063e33301aa146121ab576104b7565b8063ca6d56dc14611ead578063cb8f98e014611f09578063d55dcbcf14611f59578063d69ef6cf14611fb8578063d93ab5ad1461201a576104b7565b8063b591d3a5116101f5578063bfdb7417116101b9578063bfdb741714611c8f578063c0c6ad6f14611d75578063c10c96ef14611dc3578063c22d3bba14611de8578063c54c1cd414611e2c578063c580514014611e88576104b7565b8063b591d3a514611b29578063b730a29914611b85578063b8f9394314611c42578063b915f53014611c4c578063bd9e9d9414611c6a576104b7565b80639a7b3be71161023c5780639a7b3be7146119535780639b2b592f146119715780639b9d5161146119b3578063a57bff9014611ab7578063a91ee0dc14611ae5576104b7565b80638da5cb5b146117665780638dd31e39146117b05780638f32d59b1461185357806394903a9714611875578063988dcd1f146118b7576104b7565b806354255be01161039f578063713ea0f31161031c57806376f7425d116102e057806376f7425d1461152e5780637b103999146115bb57806386d81a5a1461160557806387ee8a0f146116335780638a883626146116515780638b16b1c614611720576104b7565b8063713ea0f314611288578063715018a6146114035780637385e5da1461140d578063757d03801461142b57806376c0a9ed146114de576104b7565b806367960e911161036357806367960e911461106a5780636ab951a0146111395780636c620d90146111675780636fa476471461119557806370447754146111ba576104b7565b806354255be014610f0b5780635779e93d14610f3e5780635a61d15b14610f5c5780635d180adb14610fac57806360fb822c14611024576104b7565b806336407b70116104385780634b2c2f44116103fc5780634b2c2f4414610c4f5780634cd76db414610d1e5780634e06fd8a14610d3c578063517f6d3314610e0d57806351b5222514610e2b57806352f13a4e14610eaf576104b7565b806336407b7014610b1a57806339e618e814610b385780633b1eb4bf14610b905780633f27089814610bd257806343d9669914610c31576104b7565b80631904bb2e1161047f5780631904bb2e1461064a57806319113e3b146107e057806323f0ab65146108055780633173b8db1461098f57806335244f5114610a2b576104b7565b80630352a592146104bc5780630b1ca49a146104da5780630d1312b814610536578063123633ea146105ba578063158ef93e14610628575b600080fd5b6104c4612619565b6040518082815260200191505060405180910390f35b61051c600480360360208110156104f057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061261f565b604051808215151515815260200191505060405180910390f35b6105786004803603602081101561054c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612811565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105e6600480360360208110156105d057600080fd5b8101908080359060200190929190505050612930565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610630612a81565b604051808215151515815260200191505060405180910390f35b61068c6004803603602081101561066057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612a94565b6040518080602001806020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838103835288818151815260200191508051906020019080838360005b8381101561073a57808201518184015260208101905061071f565b50505050905090810190601f1680156107675780820380516001836020036101000a031916815260200191505b50838103825287818151815260200191508051906020019080838360005b838110156107a0578082015181840152602081019050610785565b50505050905090810190601f1680156107cd5780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390f35b6107e8612db9565b604051808381526020018281526020019250505060405180910390f35b6109756004803603606081101561081b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561085857600080fd5b82018360208201111561086a57600080fd5b8035906020019184600183028401116401000000008311171561088c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156108ef57600080fd5b82018360208201111561090157600080fd5b8035906020019184600183028401116401000000008311171561092357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050612dec565b604051808215151515815260200191505060405180910390f35b610a11600480360360608110156109a557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612fa5565b604051808215151515815260200191505060405180910390f35b610a6d60048036036020811015610a4157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506131ca565b604051808060200180602001858152602001848152602001838103835287818151815260200191508051906020019060200280838360005b83811015610ac0578082015181840152602081019050610aa5565b50505050905001838103825286818151815260200191508051906020019060200280838360005b83811015610b02578082015181840152602081019050610ae7565b50505050905001965050505050505060405180910390f35b610b2261339e565b6040518082815260200191505060405180910390f35b610b7a60048036036020811015610b4e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506133a4565b6040518082815260200191505060405180910390f35b610bbc60048036036020811015610ba657600080fd5b810190808035906020019092919050505061346e565b6040518082815260200191505060405180910390f35b610bda613488565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610c1d578082015181840152602081019050610c02565b505050509050019250505060405180910390f35b610c39613516565b6040518082815260200191505060405180910390f35b610d0860048036036020811015610c6557600080fd5b8101908080359060200190640100000000811115610c8257600080fd5b820183602082011115610c9457600080fd5b80359060200191846001830284011164010000000083111715610cb657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050613520565b6040518082815260200191505060405180910390f35b610d266136b4565b6040518082815260200191505060405180910390f35b610df360048036036060811015610d5257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190640100000000811115610daf57600080fd5b820183602082011115610dc157600080fd5b80359060200191846001830284011164010000000083111715610de357600080fd5b90919293919293905050506136ba565b604051808215151515815260200191505060405180910390f35b610e156139df565b6040518082815260200191505060405180910390f35b610e6d60048036036020811015610e4157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506139ec565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610ef160048036036020811015610ec557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613b3c565b604051808215151515815260200191505060405180910390f35b610f13613b95565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b610f46613bbd565b6040518082815260200191505060405180910390f35b610f9260048036036040811015610f7257600080fd5b810190808035906020019092919080359060200190929190505050613bc3565b604051808215151515815260200191505060405180910390f35b610fe260048036036040811015610fc257600080fd5b810190808035906020019092919080359060200190929190505050613d46565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6110506004803603602081101561103a57600080fd5b8101908080359060200190929190505050613e98565b604051808215151515815260200191505060405180910390f35b6111236004803603602081101561108057600080fd5b810190808035906020019064010000000081111561109d57600080fd5b8201836020820111156110af57600080fd5b803590602001918460018302840111640100000000831117156110d157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061431f565b6040518082815260200191505060405180910390f35b6111656004803603602081101561114f57600080fd5b81019080803590602001909291905050506144b3565b005b6111936004803603602081101561117d57600080fd5b81019080803590602001909291905050506145c6565b005b61119d6146dc565b604051808381526020018281526020019250505060405180910390f35b611231600480360360208110156111d057600080fd5b81019080803590602001906401000000008111156111ed57600080fd5b8201836020820111156111ff57600080fd5b8035906020019184602083028401116401000000008311171561122157600080fd5b90919293919293905050506146f3565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015611274578082015181840152602081019050611259565b505050509050019250505060405180910390f35b6113e9600480360360a081101561129e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156112fb57600080fd5b82018360208201111561130d57600080fd5b8035906020019184600183028401116401000000008311171561132f57600080fd5b90919293919293908035906020019064010000000081111561135057600080fd5b82018360208201111561136257600080fd5b8035906020019184600183028401116401000000008311171561138457600080fd5b9091929391929390803590602001906401000000008111156113a557600080fd5b8201836020820111156113b757600080fd5b803590602001918460018302840111640100000000831117156113d957600080fd5b90919293919293905050506147ab565b604051808215151515815260200191505060405180910390f35b61140b614bda565b005b611415614d13565b6040518082815260200191505060405180910390f35b6114dc600480360361018081101561144257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190505050614d23565b005b611514600480360360408110156114f457600080fd5b810190808035906020019092919080359060200190929190505050614e31565b604051808215151515815260200191505060405180910390f35b6115a56004803603602081101561154457600080fd5b810190808035906020019064010000000081111561156157600080fd5b82018360208201111561157357600080fd5b8035906020019184602083028401116401000000008311171561159557600080fd5b9091929391929390505050614f97565b6040518082815260200191505060405180910390f35b6115c361510a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6116316004803603602081101561161b57600080fd5b8101908080359060200190929190505050615130565b005b61163b615445565b6040518082815260200191505060405180910390f35b61170a6004803603602081101561166757600080fd5b810190808035906020019064010000000081111561168457600080fd5b82018360208201111561169657600080fd5b803590602001918460018302840111640100000000831117156116b857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061558c565b6040518082815260200191505060405180910390f35b61174c6004803603602081101561173657600080fd5b8101908080359060200190929190505050615720565b604051808215151515815260200191505060405180910390f35b61176e615cd4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6117fc600480360360408110156117c657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050615cfd565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561183f578082015181840152602081019050611824565b505050509050019250505060405180910390f35b61185b615ff2565b604051808215151515815260200191505060405180910390f35b6118a16004803603602081101561188b57600080fd5b8101908080359060200190929190505050616050565b6040518082815260200191505060405180910390f35b611939600480360360608110156118cd57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061616d565b604051808215151515815260200191505060405180910390f35b61195b61669e565b6040518082815260200191505060405180910390f35b61199d6004803603602081101561198757600080fd5b81019080803590602001909291905050506166ae565b6040518082815260200191505060405180910390f35b6119f5600480360360208110156119c957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506167f7565b60405180806020018881526020018781526020018681526020018060200185815260200184815260200183810383528a818151815260200191508051906020019060200280838360005b83811015611a5a578082015181840152602081019050611a3f565b50505050905001838103825286818151815260200191508051906020019060200280838360005b83811015611a9c578082015181840152602081019050611a81565b50505050905001995050505050505050505060405180910390f35b611ae360048036036020811015611acd57600080fd5b8101908080359060200190929190505050616acd565b005b611b2760048036036020811015611afb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050616be0565b005b611b6b60048036036020811015611b3f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050616d84565b604051808215151515815260200191505060405180910390f35b611bc760048036036020811015611b9b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506171f6565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015611c07578082015181840152602081019050611bec565b50505050905090810190601f168015611c345780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b611c4a61741c565b005b611c546176c0565b6040518082815260200191505060405180910390f35b611c726176ca565b604051808381526020018281526020019250505060405180910390f35b611d5b60048036036040811015611ca557600080fd5b8101908080359060200190640100000000811115611cc257600080fd5b820183602082011115611cd457600080fd5b80359060200191846001830284011164010000000083111715611cf657600080fd5b909192939192939080359060200190640100000000811115611d1757600080fd5b820183602082011115611d2957600080fd5b80359060200191846001830284011164010000000083111715611d4b57600080fd5b90919293919293905050506176dc565b604051808215151515815260200191505060405180910390f35b611dc160048036036040811015611d8b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050617972565b005b611dcb617a22565b604051808381526020018281526020019250505060405180910390f35b611e2a60048036036020811015611dfe57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050617a39565b005b611e6e60048036036020811015611e4257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050617d1a565b604051808215151515815260200191505060405180910390f35b611e90617e05565b604051808381526020018281526020019250505060405180910390f35b611eef60048036036020811015611ec357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050617e17565b604051808215151515815260200191505060405180910390f35b611f3f60048036036040811015611f1f57600080fd5b81019080803590602001909291908035906020019092919050505061803b565b604051808215151515815260200191505060405180910390f35b611f61618243565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015611fa4578082015181840152602081019050611f89565b505050509050019250505060405180910390f35b61200460048036036040811015611fce57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506183f2565b6040518082815260200191505060405180910390f35b6120226184a7565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561206557808201518184015260208101905061204a565b505050509050019250505060405180910390f35b6120bb6004803603602081101561208f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050618535565b6040518082815260200191505060405180910390f35b612113600480360360208110156120e757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050618621565b6040518082815260200191505060405180910390f35b6121316187a6565b6040518082815260200191505060405180910390f35b61214f6188e2565b6040518082815260200191505060405180910390f35b6121916004803603602081101561217b57600080fd5b81019080803590602001909291905050506188e8565b604051808215151515815260200191505060405180910390f35b6121ed600480360360208110156121c157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050618a99565b005b61221b6004803603602081101561220557600080fd5b8101908080359060200190929190505050618d13565b6040518082815260200191505060405180910390f35b612239618d5e565b005b61235c6004803603606081101561225157600080fd5b810190808035906020019064010000000081111561226e57600080fd5b82018360208201111561228057600080fd5b803590602001918460018302840111640100000000831117156122a257600080fd5b9091929391929390803590602001906401000000008111156122c357600080fd5b8201836020820111156122d557600080fd5b803590602001918460018302840111640100000000831117156122f757600080fd5b90919293919293908035906020019064010000000081111561231857600080fd5b82018360208201111561232a57600080fd5b8035906020019184600183028401116401000000008311171561234c57600080fd5b9091929391929390505050619055565b604051808215151515815260200191505060405180910390f35b6123cc6004803603606081101561238c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919050505061970a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61246c600480360360c081101561242457600080fd5b81019080803590602001909291908035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190505050619a9a565b604051808381526020018281526020019250505060405180910390f35b6124b56004803603602081101561249f57600080fd5b8101908080359060200190929190505050619cae565b604051808215151515815260200191505060405180910390f35b6124fb600480360360208110156124e557600080fd5b810190808035906020019092919050505061a21d565b604051808215151515815260200191505060405180910390f35b6125576004803603602081101561252b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061a394565b005b61259b6004803603602081101561256f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061a41a565b604051808215151515815260200191505060405180910390f35b6125e1600480360360208110156125cb57600080fd5b810190808035906020019092919050505061a47f565b6040518082815260200191505060405180910390f35b6125ff61a5c8565b604051808215151515815260200191505060405180910390f35b60115481565b60006001806000828254019250508190555060006001549050600061264261a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156126be57600080fd5b505afa1580156126d2573d6000803e3d6000fd5b505050506040513d60208110156126e857600080fd5b8101908080519060200190929190505050905061270481613b3c565b801561271557506127148461a41a565b5b612787576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f6973206e6f742067726f757020616e642076616c696461746f7200000000000081525060200191505060405180910390fd5b612791818561a9b0565b925050600154811461280b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b60008061281c61669e565b90506000600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040190506000808260010154146128a45761289f61288c6001846001015461ae0f90919063ffffffff16565b836000015461ae5990919063ffffffff16565b6128a7565b60005b9050828260020160008381526020019081526020016000206000015414156128ed5781600001548111156128ec576128e960018261ae0f90919063ffffffff16565b90505b5b81600201600082815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169350505050919050565b60006060600060fa73ffffffffffffffffffffffffffffffffffffffff16844360405160200180838152602001828152602001925050506040516020818303038152906040526040518082805190602001908083835b602083106129a95780518252602082019150602081019050602083039250612986565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114612a09576040519150601f19603f3d011682016040523d82523d6000602084013e612a0e565b606091505b50809350819250505080612a6d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603d81526020018061e0de603d913960400191505060405180910390fd5b612a7882600061aee1565b92505050919050565b600260009054906101000a900460ff1681565b6060806000806000612aa58661a41a565b612b17576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b6000600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905080600001600001816000016001018260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612bae8460030160405180602001604052908160008201548152505061aef8565b612bb661a8b5565b73ffffffffffffffffffffffffffffffffffffffff16634ce38b5f8c6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612c3257600080fd5b505afa158015612c46573d6000803e3d6000fd5b505050506040513d6020811015612c5c57600080fd5b8101908080519060200190929190505050848054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612d025780601f10612cd757610100808354040283529160200191612d02565b820191906000526020600020905b815481529060010190602001808311612ce557829003601f168201915b50505050509450838054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612d9e5780601f10612d7357610100808354040283529160200191612d9e565b820191906000526020600020905b815481529060010190602001808311612d8157829003601f168201915b50505050509350955095509550955095505091939590929450565b600080600b60000154612de4600b60010160405180602001604052908160008201548152505061aef8565b915091509091565b60008060fb73ffffffffffffffffffffffffffffffffffffffff16858585604051602001808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b815260140183805190602001908083835b60208310612e755780518252602082019150602081019050602083039250612e52565b6001836020036101000a03801982511681845116808217855250505050505090500182805190602001908083835b60208310612ec65780518252602082019150602081019050602083039250612ea3565b6001836020036101000a03801982511681845116808217855250505050505090500193505050506040516020818303038152906040526040518082805190602001908083835b60208310612f2f5780518252602082019150602081019050602083039250612f0c565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114612f8f576040519150601f19603f3d011682016040523d82523d6000602084013e612f94565b606091505b505080915050809150509392505050565b600060018060008282540192505081905550600060015490506000612fc861a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561304457600080fd5b505afa158015613058573d6000803e3d6000fd5b505050506040513d602081101561306e57600080fd5b810190808051906020019092919050505090506000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600201541461313c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f56616c696461746f722067726f7570206e6f7420656d7074790000000000000081525060200191505060405180910390fd5b6131488187878761af06565b92505060015481146131c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b509392505050565b6060806000806000600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040190506060816001015460405190808252806020026020018201604052801561324b5781602001602082028038833980820191505090505b509050606082600101546040519080825280602002602001820160405280156132835781602001602082028038833980820191505090505b50905060008090505b836001015481101561337f5760006132b182866000015461ae5990919063ffffffff16565b9050846002016000828152602001908152602001600020600001548483815181106132d857fe5b60200260200101818152505084600201600082815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683838151811061332957fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505061337860018261ae5990919063ffffffff16565b905061328c565b5081818460030154856000015496509650965096505050509193509193565b60105481565b60006133af82613b3c565b613421576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4e6f742076616c696461746f722067726f75700000000000000000000000000081525060200191505060405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600201549050919050565b60006134818261347c6187a6565b61b5e3565b9050919050565b6060600580548060200260200160405190810160405280929190818152602001828054801561350c57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116134c2575b5050505050905090565b6000600e54905090565b60006060600060f473ffffffffffffffffffffffffffffffffffffffff16846040516020018082805190602001908083835b602083106135755780518252602082019150602081019050602083039250613552565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040526040518082805190602001908083835b602083106135dc57805182526020820191506020810190506020830392506135b9565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d806000811461363c576040519150601f19603f3d011682016040523d82523d6000602084013e613641565b606091505b508093508192505050806136a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603881526020018061e0046038913960400191505060405180910390fd5b6136ab82600061b62b565b92505050919050565b600d5481565b600060405160200180807f4163636f756e74730000000000000000000000000000000000000000000000008152506008019050604051602081830303815290604052805190602001203373ffffffffffffffffffffffffffffffffffffffff16600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcf0aaed836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561378d57600080fd5b505afa1580156137a1573d6000803e3d6000fd5b505050506040513d60208110156137b757600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1614613851576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f6f6e6c79207265676973746572656420636f6e7472616374000000000000000081525060200191505060405180910390fd5b61385a8661a41a565b6138cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b6000600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905061395f81888888888080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061b6cc565b6139d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4572726f72207570646174696e67204543445341207075626c6963206b65790081525060200191505060405180910390fd5b600192505050949350505050565b6000600680549050905090565b6000806139f761a8b5565b73ffffffffffffffffffffffffffffffffffffffff166393c5c487846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015613a7357600080fd5b505afa158015613a87573d6000803e3d6000fd5b505050506040513d6020811015613a9d57600080fd5b81019080805190602001909291905050509050613ab98161a41a565b613b2b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b613b3481612811565b915050919050565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff169050919050565b6000806000806001600260006002839350829250819150809050935093509350935090919293565b600e5481565b6000613bcd615ff2565b613c3f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600060099050806000015484141580613c5c575080600101548314155b613cce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f47726f757020726571756972656d656e7473206e6f74206368616e676564000081525060200191505060405180910390fd5b604051806040016040528085815260200184815250600960008201518160000155602082015181600101559050507f999f7ee1917e6d7ea08360edfe9250cda3eda859c38dcb71a92623665de64dd48484604051808381526020018281526020019250505060405180910390a1600191505092915050565b60006060600060fa73ffffffffffffffffffffffffffffffffffffffff16858560405160200180838152602001828152602001925050506040516020818303038152906040526040518082805190602001908083835b60208310613dbf5780518252602082019150602081019050602083039250613d9c565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114613e1f576040519150601f19603f3d011682016040523d82523d6000602084013e613e24565b606091505b50809350819250505080613e83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603681526020018061e1506036913960400191505060405180910390fd5b613e8e82600061aee1565b9250505092915050565b600060018060008282540192505081905550600060015490506000613ebb61a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015613f3757600080fd5b505afa158015613f4b573d6000803e3d6000fd5b505050506040513d6020811015613f6157600080fd5b81019080805190602001909291905050509050613f7d81613b3c565b613fef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f7420612076616c696461746f722067726f7570000000000000000000000081525060200191505060405180910390fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160020154146140aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f56616c696461746f722067726f7570206e6f7420656d7074790000000000000081525060200191505060405180910390fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206008019050600181805490501115614184574261412d6009600101548360018154811061411457fe5b906000526020600020015461ae5990919063ffffffff16565b10614183576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061e3046021913960400191505060405180910390fd5b5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160006101000a81549060ff021916905560018201600080820160009055600182016000905560028201600090555050600582016000808201600090555050600682016000808201600090555050600782016000905560088201600061422d919061dd96565b60098201600080820160008082016000905550506001820160009055505050506142596005838761b8cb565b8173ffffffffffffffffffffffffffffffffffffffff167fae7e034b0748a10a219b46074b20977a9170bf4027b156c797093773619a866960405160405180910390a26001935050506001548114614319576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b60006060600060f673ffffffffffffffffffffffffffffffffffffffff16846040516020018082805190602001908083835b602083106143745780518252602082019150602081019050602083039250614351565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040526040518082805190602001908083835b602083106143db57805182526020820191506020810190506020830392506143b8565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d806000811461443b576040519150601f19603f3d011682016040523d82523d6000602084013e614440565b606091505b5080935081925050508061449f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061e3726023913960400191505060405180910390fd5b6144aa82600061b62b565b92505050919050565b60018060008282540192505081905550600060015490506144d2615ff2565b614544576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8160108190555060015481146145c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b5050565b6145ce615ff2565b614640576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600f5481141561469b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061e2b06023913960400191505060405180910390fd5b80600f819055507ff2da07d08fd8dc9c5dcf87ad6f540e306f884a47dd8de14b718a4d5395f1ca9b816040518082815260200191505060405180910390a150565b600080600960000154600960010154915091509091565b606080838390506040519080825280602002602001820160405280156147285781602001602082028038833980820191505090505b50905060008090505b848490508110156147a05761476d85858381811061474b57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff166133a4565b82828151811061477957fe5b60200260200101818152505061479960018261ae5990919063ffffffff16565b9050614731565b508091505092915050565b600060405160200180807f4163636f756e74730000000000000000000000000000000000000000000000008152506008019050604051602081830303815290604052805190602001203373ffffffffffffffffffffffffffffffffffffffff16600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcf0aaed836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561487e57600080fd5b505afa158015614892573d6000803e3d6000fd5b505050506040513d60208110156148a857600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1614614942576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f6f6e6c79207265676973746572656420636f6e7472616374000000000000000081525060200191505060405180910390fd5b61494b8a61a41a565b6149bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b6000600460008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050614a50818c8c8c8c8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061b6cc565b614ac2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4572726f72207570646174696e67204543445341207075626c6963206b65790081525060200191505060405180910390fd5b614b56818c89898080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505088888080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061ba88565b614bc8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4572726f72207570646174696e6720424c53207075626c6963206b657900000081525060200191505060405180910390fd5b60019250505098975050505050505050565b614be2615ff2565b614c54576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000614d1e43618d13565b905090565b600260009054906101000a900460ff1615614da6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f636f6e747261637420616c726561647920696e697469616c697a65640000000081525060200191505060405180910390fd5b6001600260006101000a81548160ff021916908315150217905550614dca3361bcd0565b614dd38c616be0565b614ddd8b8b613bc3565b50614de88989614e31565b50614df3878761803b565b50614dfd836188e8565b50614e07826145c6565b614e108561a21d565b50614e1a846144b3565b614e2381616acd565b505050505050505050505050565b6000614e3b615ff2565b614ead576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600060079050806000015484141580614eca575080600101548314155b614f1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018061dfe26022913960400191505060405180910390fd5b604051806040016040528085815260200184815250600760008201518160000155602082015181600101559050507f62d947118dd4c1f5ece7f787a9cad4e1127d14d403b71133e95792b473bf83898484604051808381526020018281526020019250505060405180910390a1600191505092915050565b6000808383905011615011576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f557074696d6520617272617920656d707479000000000000000000000000000081525060200191505060405180910390fd5b600e5483839050111561506f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b81526020018061dfb7602b913960400191505060405180910390fd5b61507761ddb7565b60008090505b848490508110156150da576150bd6150ae6150a987878581811061509d57fe5b90506020020135616050565b61be14565b8361be3290919063ffffffff16565b91506150d360018261ae5990919063ffffffff16565b905061507d565b506151016150fc6150ed8686905061bedb565b8361bf6590919063ffffffff16565b61aef8565b91505092915050565b600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061513a61a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156151b657600080fd5b505afa1580156151ca573d6000803e3d6000fd5b505050506040513d60208110156151e057600080fd5b810190808051906020019092919050505090506151fc81613b3c565b61526e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f7420612076616c696461746f722067726f7570000000000000000000000081525060200191505060405180910390fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506152c16152bc61c0ae565b61aef8565b831115615319576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061e3256025913960400191505060405180910390fd5b61533a8160050160405180602001604052908160008201548152505061aef8565b8314156153af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f436f6d6d697373696f6e206d75737420626520646966666572656e740000000081525060200191505060405180910390fd5b6153b88361be14565b81600601600082015181600001559050506153de600f544361ae5990919063ffffffff16565b81600701819055508173ffffffffffffffffffffffffffffffffffffffff167f557d39a57520d9835859d4b7eda805a7f4115a59c3a374eeed488436fc62a152848360070154604051808381526020018281526020019250505060405180910390a2505050565b60006060600060f973ffffffffffffffffffffffffffffffffffffffff1643604051602001808281526020019150506040516020818303038152906040526040518082805190602001908083835b602083106154b65780518252602082019150602081019050602083039250615493565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114615516576040519150601f19603f3d011682016040523d82523d6000602084013e61551b565b606091505b5080935081925050508061557a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603581526020018061e11b6035913960400191505060405180910390fd5b61558582600061aee1565b9250505090565b60006060600060f773ffffffffffffffffffffffffffffffffffffffff16846040516020018082805190602001908083835b602083106155e157805182526020820191506020810190506020830392506155be565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040526040518082805190602001908083835b602083106156485780518252602082019150602081019050602083039250615625565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d80600081146156a8576040519150601f19603f3d011682016040523d82523d6000602084013e6156ad565b606091505b5080935081925050508061570c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603181526020018061e2d36031913960400191505060405180910390fd5b61571782600061aee1565b92505050919050565b60006001806000828254019250508190555060006001549050600061574361a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156157bf57600080fd5b505afa1580156157d3573d6000803e3d6000fd5b505050506040513d60208110156157e957600080fd5b810190808051906020019092919050505090506158058161a41a565b615877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614615aab57600360008260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010173d26d896d258e258eba71ff0873a878ec36538f8d63542424fb9091846040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b1580156159fc57600080fd5b505af4158015615a10573d6000803e3d6000fd5b505050506040513d6020811015615a2657600080fd5b810190808051906020019092919050505015615aaa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f486173206265656e2067726f7570206d656d62657220726563656e746c79000081525060200191505060405180910390fd5b5b6000615acc600760010154836004016003015461ae5990919063ffffffff16565b9050428110615b43576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4e6f742079657420726571756972656d656e7420656e642074696d650000000081525060200191505060405180910390fd5b615b4f6006848861b8cb565b600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160008082016000615ba4919061ddca565b600182016000615bb4919061ddca565b50506002820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556003820160008082016000905550506004820160008082016000905560018201600090556003820160009055505050508273ffffffffffffffffffffffffffffffffffffffff167f51407fafe7ef9bec39c65a12a4885a274190991bf1e9057fcc384fc77ff1a7f060405160405180910390a2600194505050506001548114615cce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606080600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010173d26d896d258e258eba71ff0873a878ec36538f8d63b1cfea439091856040518363ffffffff1660e01b8152600401808381526020018281526020019250505060006040518083038186803b158015615d9a57600080fd5b505af4158015615dae573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052506020811015615dd857600080fd5b8101908080516040519392919084640100000000821115615df857600080fd5b83820191506020820185811115615e0e57600080fd5b8251866020820283011164010000000082111715615e2b57600080fd5b8083526020830192505050908051906020019060200280838360005b83811015615e62578082015181840152602081019050615e47565b505050509050016040525050509050606083604051908082528060200260200182016040528015615ea25781602001602082028038833980820191505090505b50905060008090505b84811015615fe657615ebb61a8b5565b73ffffffffffffffffffffffffffffffffffffffff16634ce38b5f848381518110615ee257fe5b60200260200101516040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015615f4a57600080fd5b505afa158015615f5e573d6000803e3d6000fd5b505050506040513d6020811015615f7457600080fd5b8101908080519060200190929190505050828281518110615f9157fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050615fdf60018261ae5990919063ffffffff16565b9050615eab565b50809250505092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661603461c0d4565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b600061606261605d61c0ae565b61aef8565b8211156160d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f557074696d652063616e6e6f74206265206c6172676572207468616e206f6e6581525060200191505060405180910390fd5b6000806161076160f26011548661ae5990919063ffffffff16565b6161026160fd61c0ae565b61aef8565b61c0dc565b935061614a61611c61611761c0ae565b61aef8565b61612c61612761c0ae565b61aef8565b8661613d61613861c0ae565b61aef8565b600b600001546012619a9a565b809250819350505061616461615f838361c0f5565b61aef8565b92505050919050565b60006001806000828254019250508190555060006001549050600061619061a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561620c57600080fd5b505afa158015616220573d6000803e3d6000fd5b505050506040513d602081101561623657600080fd5b8101908080519060200190929190505050905061625281613b3c565b6162c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f4e6f7420612067726f757000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6162cd8661a41a565b61633f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060010173d26d896d258e258eba71ff0873a878ec36538f8d63542424fb9091896040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561640a57600080fd5b505af415801561641e573d6000803e3d6000fd5b505050506040513d602081101561643457600080fd5b81019080805190602001909291905050506164b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4e6f742061206d656d626572206f66207468652067726f75700000000000000081525060200191505060405180910390fd5b8060010173d26d896d258e258eba71ff0873a878ec36538f8d63b2f8fe9690918989896040518563ffffffff1660e01b8152600401808581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200194505050505060006040518083038186803b1580156165a757600080fd5b505af41580156165bb573d6000803e3d6000fd5b505050508673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f38819cc49a343985b478d72f531a35b15384c398dd80fd191a14662170f895c660405160405180910390a36001935050506001548114616696576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b509392505050565b60006166a94361346e565b905090565b60006060600060f973ffffffffffffffffffffffffffffffffffffffff1684604051602001808281526020019150506040516020818303038152906040526040518082805190602001908083835b6020831061671f57805182526020820191506020810190506020830392506166fc565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d806000811461677f576040519150601f19603f3d011682016040523d82523d6000602084013e616784565b606091505b508093508192505050806167e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e81526020018061df07602e913960400191505060405180910390fd5b6167ee82600061aee1565b92505050919050565b60606000806000606060008061680c88613b3c565b61687e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f7420612076616c696461746f722067726f7570000000000000000000000081525060200191505060405180910390fd5b6000600360008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060010173d26d896d258e258eba71ff0873a878ec36538f8d63fe3c7a8e90916040518263ffffffff1660e01b81526004018082815260200191505060006040518083038186803b15801561691557600080fd5b505af4158015616929573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250602081101561695357600080fd5b810190808051604051939291908464010000000082111561697357600080fd5b8382019150602082018581111561698957600080fd5b82518660208202830111640100000000821117156169a657600080fd5b8083526020830192505050908051906020019060200280838360005b838110156169dd5780820151818401526020810190506169c2565b50505050905001604052505050616a0b8260050160405180602001604052908160008201548152505061aef8565b616a2c8360060160405180602001604052908160008201548152505061aef8565b836007015484600801616a598660090160000160405180602001604052908160008201548152505061aef8565b866009016001015482805480602002602001604051908101604052809291908181526020018280548015616aac57602002820191906000526020600020905b815481526020019060010190808311616a98575b50505050509250975097509750975097509750975050919395979092949650565b6001806000828254019250508190555060006001549050616aec615ff2565b616b5e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b816011819055506001548114616bdc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b5050565b616be8615ff2565b616c5a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415616cfd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f43616e6e6f7420726567697374657220746865206e756c6c206164647265737381525060200191505060405180910390fd5b80600260016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f27fe5f0c1c3b1ed427cc63d0f05759ffdecf9aec9e18d31ef366fc8a6cb5dc3b60405160405180910390a250565b600060018060008282540192505081905550600060015490506000616da761a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015616e2357600080fd5b505afa158015616e37573d6000803e3d6000fd5b505050506040513d6020811015616e4d57600080fd5b81019080805190602001909291905050509050616e698161a41a565b616edb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b616ee484613b3c565b616f56576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f7420612076616c696461746f722067726f7570000000000000000000000081525060200191505060405180910390fd5b616f5f81617d1a565b616fb4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061dee46023913960400191505060405180910390fd5b616fbd84617d1a565b61702f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f47726f757020646f65736e2774206d65657420726571756972656d656e74730081525060200191505060405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146170d6576170d4818361c137565b505b848160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f91ef92227057e201e406c3451698dd780fe7672ad74328591c88d281af31581d60405160405180910390a360019350505060015481146171f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b6060600061720261a8b5565b73ffffffffffffffffffffffffffffffffffffffff166393c5c487846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561727e57600080fd5b505afa158015617292573d6000803e3d6000fd5b505050506040513d60208110156172a857600080fd5b810190808051906020019092919050505090506172c48161a41a565b617336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b600460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016001018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561740f5780601f106173e45761010080835404028352916020019161740f565b820191906000526020600020905b8154815290600101906020018083116173f257829003601f168201915b5050505050915050919050565b6001806000828254019250508190555060006001549050600061743d61a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156174b957600080fd5b505afa1580156174cd573d6000803e3d6000fd5b505050506040513d60208110156174e357600080fd5b810190808051906020019092919050505090506174ff81613b3c565b617571576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f7420612076616c696461746f722067726f7570000000000000000000000081525060200191505060405180910390fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506175d0601054826009016001015461ae5990919063ffffffff16565b421015617628576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b81526020018061df5b603b913960400191505060405180910390fd5b61763061c0ae565b8160090160000160008201518160000155905050505060015481146176bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b50565b6000600f54905090565b60078060000154908060010154905082565b6000806176e761a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561776357600080fd5b505afa158015617777573d6000803e3d6000fd5b505050506040513d602081101561778d57600080fd5b810190808051906020019092919050505090506177a98161a41a565b61781b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506178f2818389898080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505088888080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061ba88565b617964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4572726f72207570646174696e6720424c53207075626c6963206b657900000081525060200191505060405180910390fd5b600192505050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614617a14576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4f6e6c7920564d2063616e2063616c6c0000000000000000000000000000000081525060200191505060405180910390fd5b617a1e828261c322565b5050565b600080600760000154600760010154915091509091565b6001806000828254019250508190555060006001549050617a5861c6a0565b73ffffffffffffffffffffffffffffffffffffffff166357601c5d336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015617ad457600080fd5b505afa158015617ae8573d6000803e3d6000fd5b505050506040513d6020811015617afe57600080fd5b8101908080519060200190929190505050617b81576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f6e6c79207265676973746572656420736c61736865722063616e2063616c6c81525060200191505060405180910390fd5b617b8a82613b3c565b617bfc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f7420612076616c696461746f722067726f7570000000000000000000000081525060200191505060405180910390fd5b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050617c7e617c796002617c6b8460090160000160405180602001604052908160008201548152505061aef8565b61c79b90919063ffffffff16565b61be14565b8160090160000160008201518160000155905050428160090160010181905550506001548114617d16576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b5050565b600080617d2561c6a0565b73ffffffffffffffffffffffffffffffffffffffff166330ec70f5846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015617da157600080fd5b505afa158015617db5573d6000803e3d6000fd5b505050506040513d6020811015617dcb57600080fd5b81019080805190602001909291905050509050617de783618621565b617dfb600a8361ae5990919063ffffffff16565b1015915050919050565b60098060000154908060010154905082565b600060018060008282540192505081905550600060015490506000617e3a61a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015617eb657600080fd5b505afa158015617eca573d6000803e3d6000fd5b505050506040513d6020811015617ee057600080fd5b810190808051906020019092919050505090506000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016002015411617fae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f56616c696461746f722067726f757020656d707479000000000000000000000081525060200191505060405180910390fd5b617fbb818560008061af06565b9250506001548114618035576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b6000618045615ff2565b6180b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6180c76180c261c0ae565b61aef8565b82111561811f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061e34a6028913960400191505060405180910390fd5b600b60000154831415806181645750618162600b6001016040518060200160405290816000820154815250506181548461be14565b61c7e590919063ffffffff16565b155b6181b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061e3956029913960400191505060405180910390fd5b60405180604001604052808481526020016181d38461be14565b815250600b600082015181600001556020820151816001016000820151816000015550509050507f4b48724280029c2ea7a445c9cea30838525342e7a9ea9468f630b52e75d6c5368383604051808381526020018281526020019250505060405180910390a16001905092915050565b6060600061824f61a8b5565b905060606006805490506040519080825280602002602001820160405280156182875781602001602082028038833980820191505090505b50905060008090505b81518110156183e9578273ffffffffffffffffffffffffffffffffffffffff16634ce38b5f600683815481106182c257fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561834d57600080fd5b505afa158015618361573d6000803e3d6000fd5b505050506040513d602081101561837757600080fd5b810190808051906020019092919050505082828151811061839457fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506183e260018261ae5990919063ffffffff16565b9050618290565b50809250505090565b60008073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614618495576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4f6e6c7920564d2063616e2063616c6c0000000000000000000000000000000081525060200191505060405180910390fd5b61849f838361c7fa565b905092915050565b6060600680548060200260200160405190810160405280929190818152602001828054801561852b57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116184e1575b5050505050905090565b600061854082613b3c565b6185b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f7420612076616c696461746f722067726f7570000000000000000000000081525060200191505060405180910390fd5b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506186198160090160000160405180602001604052908160008201548152505061aef8565b915050919050565b600061862c8261a41a565b1561863e5760076000015490506187a1565b61864782613b3c565b1561879c57600061869e6001600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016002015461ce69565b90506000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600801905060008180549050111561877b57600061870d6001838054905061ae0f90919063ffffffff16565b90505b6000811115618779574261874860096001015484848154811061872f57fe5b906000526020600020015461ae5990919063ffffffff16565b1061875e57618757818461ce69565b9250618779565b61877260018261ae0f90919063ffffffff16565b9050618710565b505b6187938260096000015461ce8390919063ffffffff16565b925050506187a1565b600090505b919050565b60006060600060f873ffffffffffffffffffffffffffffffffffffffff166040516020016040516020818303038152906040526040518082805190602001908083835b6020831061880c57805182526020820191506020810190506020830392506187e9565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d806000811461886c576040519150601f19603f3d011682016040523d82523d6000602084013e618871565b606091505b508093508192505050806188d0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061e25f6025913960400191505060405180910390fd5b6188db82600061aee1565b9250505090565b600f5481565b60006188f2615ff2565b618964576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b816000106189da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4d61782067726f75702073697a652063616e6e6f74206265207a65726f00000081525060200191505060405180910390fd5b600e54821415618a52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f4d61782067726f75702073697a65206e6f74206368616e67656400000000000081525060200191505060405180910390fd5b81600e819055507f603fe12c33c253a23da1680aa453dc70c3a0ee07763569bd5f602406ebd4e5d5826040518082815260200191505060405180910390a160019050919050565b6001806000828254019250508190555060006001549050618ab861c6a0565b73ffffffffffffffffffffffffffffffffffffffff166357601c5d336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015618b3457600080fd5b505afa158015618b48573d6000803e3d6000fd5b505050506040513d6020811015618b5e57600080fd5b8101908080519060200190929190505050618be1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f6e6c79207265676973746572656420736c61736865722063616e2063616c6c81525060200191505060405180910390fd5b618bea8261a41a565b15618c98576000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614618c9657618c94818461c137565b505b505b6001548114618d0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b5050565b6000618d576003618d496002618d3b6002618d2d886166ae565b61ce8390919063ffffffff16565b61ae5990919063ffffffff16565b61c79b90919063ffffffff16565b9050919050565b6000618d6861a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015618de457600080fd5b505afa158015618df8573d6000803e3d6000fd5b505050506040513d6020811015618e0e57600080fd5b81019080805190602001909291905050509050618e2a81613b3c565b618e9c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f7420612076616c696461746f722067726f7570000000000000000000000081525060200191505060405180910390fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600701541415618f5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f4e6f20636f6d6d697373696f6e2075706461746520717565756564000000000081525060200191505060405180910390fd5b4381600701541115618fb7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061df966021913960400191505060405180910390fd5b80600601816005016000820154816000015590505080600601600080820160009055505080600701600090558173ffffffffffffffffffffffffffffffffffffffff167f815d292dbc1a08dfb3103aabb6611233dd2393903e57bdf4c5b3db91198a826c61903c8360050160405180602001604052908160008201548152505061aef8565b6040518082815260200191505060405180910390a25050565b60006001806000828254019250508190555060006001549050600061907861a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156190f457600080fd5b505afa158015619108573d6000803e3d6000fd5b505050506040513d602081101561911e57600080fd5b8101908080519060200190929190505050905061913a8161a41a565b15801561914d575061914b81613b3c565b155b6191bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f416c72656164792072656769737465726564000000000000000000000000000081525060200191505060405180910390fd5b60006191c961c6a0565b73ffffffffffffffffffffffffffffffffffffffff166330ec70f5836040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561924557600080fd5b505afa158015619259573d6000803e3d6000fd5b505050506040513d602081101561926f57600080fd5b810190808051906020019092919050505090506007600001548110156192fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f4465706f73697420746f6f20736d616c6c00000000000000000000000000000081525060200191505060405180910390fd5b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600061934a61a8b5565b73ffffffffffffffffffffffffffffffffffffffff16634ce38b5f856040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156193c657600080fd5b505afa1580156193da573d6000803e3d6000fd5b505050506040513d60208110156193f057600080fd5b810190808051906020019092919050505090506194538285838f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061b6cc565b6194c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4572726f72207570646174696e67204543445341207075626c6963206b65790081525060200191505060405180910390fd5b61955982858c8c8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061ba88565b6195cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4572726f72207570646174696e6720424c53207075626c6963206b657900000081525060200191505060405180910390fd5b60068490806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505061963c84600061cf09565b508373ffffffffffffffffffffffffffffffffffffffff167fd09501348473474a20c772c79c653e1fd7e8b437e418fe235d277d2c8885325160405160405180910390a2600195505050505060015481146196ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b509695505050505050565b60006197158461a41a565b619787576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b61978f61669e565b8311156197e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061e1ae6023913960400191505060405180910390fd5b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040190506198488160010154826000015461ae5990919063ffffffff16565b83106198bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f696e646578206f7574206f6620626f756e64730000000000000000000000000081525060200191505060405180910390fd5b806000015483101580156198d4575060008160010154115b619946576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f696e646578206f7574206f6620626f756e64730000000000000000000000000081525060200191505060405180910390fd5b60008482600201600086815260200190815260200160002060000154149050600061997f6001846001015461ae0f90919063ffffffff16565b61999684600001548761ae0f90919063ffffffff16565b149050600086846002016000888152602001908152602001600020600001541080156199f45750868460020160006199d860018a61ae5990919063ffffffff16565b81526020019081526020016000206000015411806199f35750815b5b905082806199ff5750805b619a54576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252604781526020018061e0976047913960600191505060405180910390fd5b83600201600087815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169450505050509392505050565b60008060008714158015619aaf575060008514155b619b21576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f612064656e6f6d696e61746f72206973207a65726f000000000000000000000081525060200191505060405180910390fd5b6000806000606060fc73ffffffffffffffffffffffffffffffffffffffff168c8c8c8c8c8c6040516020018087815260200186815260200185815260200184815260200183815260200182815260200196505050505050506040516020818303038152906040526040518082805190602001908083835b60208310619bbb5780518252602082019150602081019050602083039250619b98565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114619c1b576040519150601f19603f3d011682016040523d82523d6000602084013e619c20565b606091505b50809250819350505081619c7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602781526020018061e2176027913960400191505060405180910390fd5b619c8a81600061aee1565b9350619c9781602061aee1565b925083839550955050505050965096945050505050565b60006001806000828254019250508190555060006001549050619cd7619cd261c0ae565b61aef8565b831115619d2f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061e3256025913960400191505060405180910390fd5b6000619d3961a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015619db557600080fd5b505afa158015619dc9573d6000803e3d6000fd5b505050506040513d6020811015619ddf57600080fd5b81019080805190602001909291905050509050619dfb8161a41a565b15619e6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f416c726561647920726567697374657265642061732076616c696461746f720081525060200191505060405180910390fd5b619e7781613b3c565b15619eea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f416c726561647920726567697374657265642061732067726f7570000000000081525060200191505060405180910390fd5b6000619ef461c6a0565b73ffffffffffffffffffffffffffffffffffffffff166330ec70f5836040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015619f7057600080fd5b505afa158015619f84573d6000803e3d6000fd5b505050506040513d6020811015619f9a57600080fd5b8101908080519060200190929190505050905060096000015481101561a028576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f4e6f7420656e6f756768206c6f636b656420676f6c640000000000000000000081525060200191505060405180910390fd5b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060018160000160006101000a81548160ff02191690831515021790555061a0918661be14565b8160050160008201518160000155905050604051806040016040528061a0b561c0ae565b81526020016000815250816009016000820151816000016000820151816000015550506020820151816001015590505060058390806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550508273ffffffffffffffffffffffffffffffffffffffff167fbf4b45570f1907a94775f8449817051a492a676918e38108bb762e991e6b58dc876040518082815260200191505060405180910390a260019450505050600154811461a217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600061a227615ff2565b61a299576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8160001061a2f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061e1866028913960400191505060405180910390fd5b600d5482141561a34d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061e1f26025913960400191505060405180910390fd5b81600d819055507f1c75c7fb3ee9d13d8394372d8c7cdf1702fa947faa03f6ccfa500f787b09b48a826040518082815260200191505060405180910390a160019050919050565b61a39c615ff2565b61a40e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61a4178161bcd0565b50565b600080600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600101805460018160011615610100020316600290049050119050919050565b60006060600060f573ffffffffffffffffffffffffffffffffffffffff1684604051602001808281526020019150506040516020818303038152906040526040518082805190602001908083835b6020831061a4f0578051825260208201915060208101905060208303925061a4cd565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d806000811461a550576040519150601f19603f3d011682016040523d82523d6000602084013e61a555565b606091505b5080935081925050508061a5b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c81526020018061e284602c913960400191505060405180910390fd5b61a5bf82600061b62b565b92505050919050565b60006001806000828254019250508190555060006001549050600061a5eb61a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561a66757600080fd5b505afa15801561a67b573d6000803e3d6000fd5b505050506040513d602081101561a69157600080fd5b8101908080519060200190929190505050905061a6ad8161a41a565b61a71f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561a829576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f6465616666696c696174653a206e6f7420616666696c6961746564000000000081525060200191505060405180910390fd5b61a833818361c137565b50600193505050600154811461a8b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b5090565b6000600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcf0aaed60405160200180807f4163636f756e74730000000000000000000000000000000000000000000000008152506008019050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561a97057600080fd5b505afa15801561a984573d6000803e3d6000fd5b505050506040513d602081101561a99a57600080fd5b8101908080519060200190929190505050905090565b600080600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508373ffffffffffffffffffffffffffffffffffffffff16600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461aaf7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f4e6f7420616666696c696174656420746f2067726f757000000000000000000081525060200191505060405180910390fd5b8060010173d26d896d258e258eba71ff0873a878ec36538f8d63542424fb9091856040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561ab7f57600080fd5b505af415801561ab93573d6000803e3d6000fd5b505050506040513d602081101561aba957600080fd5b810190808051906020019092919050505061ac2c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4e6f742061206d656d626572206f66207468652067726f75700000000000000081525060200191505060405180910390fd5b8060010173d26d896d258e258eba71ff0873a878ec36538f8d63e2c0c56a9091856040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060006040518083038186803b15801561acb457600080fd5b505af415801561acc8573d6000803e3d6000fd5b50505050600081600101600201549050600081141561ad805761ace961d32a565b73ffffffffffffffffffffffffffffffffffffffff1663a8e45871866040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561ad6757600080fd5b505af115801561ad7b573d6000803e3d6000fd5b505050505b61ad8b84600061cf09565b5061ada98561ada460018461ae5990919063ffffffff16565b61d425565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc7666a52a66ff601ff7c0d4d6efddc9ac20a34792f6aa003d1804c9d4d5baa5760405160405180910390a360019250505092915050565b600061ae5183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061d54e565b905092915050565b60008082840190508381101561aed7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600061aeed838361b62b565b60001c905092915050565b600081600001519050919050565b600061af1185613b3c565b801561af22575061af218461a41a565b5b61af94576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f4e6f742076616c696461746f7220616e642067726f757000000000000000000081525060200191505060405180910390fd5b6000600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600e5481600101600201541061b055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f67726f757020776f756c6420657863656564206d6178696d756d2073697a650081525060200191505060405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff16600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461b158576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f4e6f7420616666696c696174656420746f2067726f757000000000000000000081525060200191505060405180910390fd5b8060010173d26d896d258e258eba71ff0873a878ec36538f8d63542424fb9091876040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561b1e057600080fd5b505af415801561b1f4573d6000803e3d6000fd5b505050506040513d602081101561b20a57600080fd5b81019080805190602001909291905050501561b28e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f416c726561647920696e2067726f75700000000000000000000000000000000081525060200191505060405180910390fd5b600061b2ab6001836001016002015461ae5990919063ffffffff16565b90508160010173d26d896d258e258eba71ff0873a878ec36538f8d6326afac499091886040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060006040518083038186803b15801561b33557600080fd5b505af415801561b349573d6000803e3d6000fd5b5050505061b35687617d1a565b61b3c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f47726f757020726571756972656d656e7473206e6f74206d657400000000000081525060200191505060405180910390fd5b61b3d186617d1a565b61b443576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f56616c696461746f7220726571756972656d656e7473206e6f74206d6574000081525060200191505060405180910390fd5b600181141561b5535761b45461d32a565b73ffffffffffffffffffffffffffffffffffffffff1663a18fb2db8887876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019350505050600060405180830381600087803b15801561b53a57600080fd5b505af115801561b54e573d6000803e3d6000fd5b505050505b61b55d868861cf09565b5061b57b8761b57660018461ae0f90919063ffffffff16565b61d425565b8573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fbdf7e616a6943f81e07a7984c9d4c00197dc2f481486ce4ffa6af52a113974ad60405160405180910390a3600192505050949350505050565b60008082848161b5ef57fe5b049050600083858161b5fd57fe5b06141561b60d578091505061b625565b61b62160018261ae5990919063ffffffff16565b9150505b92915050565b600061b64160208361ae5990919063ffffffff16565b8351101561b6b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f736c6963696e67206f7574206f662072616e676500000000000000000000000081525060200191505060405180910390fd5b60006020830184015190508091505092915050565b6000604082511461b745576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f57726f6e67204543445341207075626c6963206b6579206c656e67746800000081525060200191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff16828051906020012060001c73ffffffffffffffffffffffffffffffffffffffff161461b7f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4543445341206b657920646f6573206e6f74206d61746368207369676e65720081525060200191505060405180910390fd5b8185600001600001908051906020019061b80b92919061de12565b508373ffffffffffffffffffffffffffffffffffffffff167f213377eec2c15b21fa7abcbb0cb87a67e893cdb94a2564aa4bb4d380869473c8836040518080602001828103825283818151815260200191508051906020019080838360005b8381101561b88557808201518184015260208101905061b86a565b50505050905090810190601f16801561b8b25780820380516001836020036101000a031916815260200191505b509250505060405180910390a260019050949350505050565b82805490508110801561b93f57508173ffffffffffffffffffffffffffffffffffffffff1683828154811061b8fc57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b61b994576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061e23e6021913960400191505060405180910390fd5b600061b9ae6001858054905061ae0f90919063ffffffff16565b905083818154811061b9bc57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684838154811061b9f357fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083818154811061ba4757fe5b9060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905580848161ba81919061de92565b5050505050565b6000606083511461bb01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f57726f6e6720424c53207075626c6963206b6579206c656e677468000000000081525060200191505060405180910390fd5b603082511461bb78576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f57726f6e6720424c5320506f50206c656e67746800000000000000000000000081525060200191505060405180910390fd5b61bb83848484612dec565b61bbf5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f496e76616c696420424c5320506f50000000000000000000000000000000000081525060200191505060405180910390fd5b8285600001600101908051906020019061bc1092919061de12565b508373ffffffffffffffffffffffffffffffffffffffff167f36a1aabe506bbe8802233cbb9aad628e91269e77077c953f9db3e02d7092ee33846040518080602001828103825283818151815260200191508051906020019080838360005b8381101561bc8a57808201518184015260208101905061bc6f565b50505050905090810190601f16801561bcb75780820380516001836020036101000a031916815260200191505b509250505060405180910390a260019050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561bd56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061df356026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61be1c61ddb7565b6040518060200160405280838152509050919050565b61be3a61ddb7565b600082600001518460000151019050836000015181101561bec3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f616464206f766572666c6f77206465746563746564000000000000000000000081525060200191505060405180910390fd5b60405180602001604052808281525091505092915050565b61bee361ddb7565b61beeb61d60e565b82111561bf43576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603681526020018061e03c6036913960400191505060405180910390fd5b604051806020016040528069d3c21bcecceda100000084028152509050919050565b61bf6d61ddb7565b60008260000151141561bfe8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f63616e277420646976696465206279203000000000000000000000000000000081525060200191505060405180910390fd5b600069d3c21bcecceda10000008460000151029050836000015169d3c21bcecceda1000000828161c01557fe5b041461c089576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f6f766572666c6f7720617420646976696465000000000000000000000000000081525060200191505060405180910390fd5b60405180602001604052808460000151838161c0a157fe5b0481525091505092915050565b61c0b661ddb7565b604051806020016040528069d3c21bcecceda1000000815250905090565b600033905090565b600081831061c0eb578161c0ed565b825b905092915050565b61c0fd61ddb7565b61c10561ddb7565b61c10e8461bedb565b905061c11861ddb7565b61c1218461bedb565b905061c12d828261bf65565b9250505092915050565b6000808360020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060010173d26d896d258e258eba71ff0873a878ec36538f8d63542424fb9091866040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561c22c57600080fd5b505af415801561c240573d6000803e3d6000fd5b505050506040513d602081101561c25657600080fd5b81019080805190602001909291905050501561c2785761c276828561a9b0565b505b60008560020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f71815121f0622b31a3e7270eb28acb9fd10825ff418c9a18591f617bb8a31a6c60405160405180910390a360019250505092915050565b600061c32c61a8b5565b73ffffffffffffffffffffffffffffffffffffffff166393c5c487846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561c3a857600080fd5b505afa15801561c3bc573d6000803e3d6000fd5b505050506040513d602081101561c3d257600080fd5b8101908080519060200190929190505050905061c3ee8161a41a565b61c460576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b61c46861ddb7565b61c47961c47484616050565b61be14565b905061c48361ddb7565b61c4af82600b60010160405180602001604052908160008201548152505061d62d90919063ffffffff16565b905061c4b961ddb7565b61c4ec600b60010160405180602001604052908160008201548152505061c4de61c0ae565b61da8c90919063ffffffff16565b905061c557600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003016040518060200160405290816000820154815250508261d62d90919063ffffffff16565b905061c58d61c58861c5688561aef8565b61c58361c57e858761be3290919063ffffffff16565b61aef8565b61c0dc565b61be14565b600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301600082015181600001559050508373ffffffffffffffffffffffffffffffffffffffff167fedf9f87e50e10c533bf3ae7f5a7894ae66c23e6cbbe8773d7765d20ad6f995e961c673600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030160405180602001604052908160008201548152505061aef8565b61c67c8661aef8565b604051808381526020018281526020019250505060405180910390a2505050505050565b6000600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcf0aaed60405160200180807f4c6f636b6564476f6c6400000000000000000000000000000000000000000000815250600a019050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561c75b57600080fd5b505afa15801561c76f573d6000803e3d6000fd5b505050506040513d602081101561c78557600080fd5b8101908080519060200190929190505050905090565b600061c7dd83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061db33565b905092915050565b60008160000151836000015114905092915050565b60008061c80561a8b5565b73ffffffffffffffffffffffffffffffffffffffff166393c5c487856040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561c88157600080fd5b505afa15801561c895573d6000803e3d6000fd5b505050506040513d602081101561c8ab57600080fd5b8101908080519060200190929190505050905061c8c78161a41a565b61c939576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b600061c94482612811565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561c9cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061e0726025913960400191505060405180910390fd5b61c9d582617d1a565b801561c9e6575061c9e581617d1a565b5b1561ce5c5761c9f361ddb7565b61cacf600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060090160000160405180602001604052908160008201548152505061cac1600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030160405180602001604052908160008201548152505061cab38961bedb565b61d62d90919063ffffffff16565b61d62d90919063ffffffff16565b9050600061cb4461cb3f600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206005016040518060200160405290816000820154815250508461d62d90919063ffffffff16565b61dbf9565b9050600061cb638261cb558561dbf9565b61ae0f90919063ffffffff16565b9050600061cb6f61dc1a565b90508073ffffffffffffffffffffffffffffffffffffffff166340c10f1986856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561cbf857600080fd5b505af115801561cc0c573d6000803e3d6000fd5b505050506040513d602081101561cc2257600080fd5b810190808051906020019092919050505061cca5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f6d696e74206661696c656420746f2076616c696461746f722067726f7570000081525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166340c10f1987846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561cd2c57600080fd5b505af115801561cd40573d6000803e3d6000fd5b505050506040513d602081101561cd5657600080fd5b810190808051906020019092919050505061cdd9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f6d696e74206661696c656420746f2076616c696461746f72206163636f756e7481525060200191505060405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167f6f5937add2ec38a0fa4959bccd86e3fcc2aafb706cd3e6c0565f87a7b36b99758486604051808381526020018281526020019250505060405180910390a361ce4f8461dbf9565b965050505050505061ce63565b6000925050505b92915050565b60008183101561ce79578161ce7b565b825b905092915050565b60008083141561ce96576000905061cf03565b600082840290508284828161cea757fe5b041461cefe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061e1d16021913960400191505060405180910390fd5b809150505b92915050565b600080600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206004019050600061cf5a61669e565b905060008083600101541461cf9c5761cf9761cf846001856001015461ae0f90919063ffffffff16565b846000015461ae5990919063ffffffff16565b61cf9f565b60005b90506000836001015411801561cfe15750600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b1561cff0574283600301819055505b6000836001015411801561d01b57508183600201600083815260200190815260200160002060000154145b1561d0c05760405180604001604052808381526020018673ffffffffffffffffffffffffffffffffffffffff168152508360020160008381526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050506001935050505061d324565b60008084600101541461d0e65761d0e160018361ae5990919063ffffffff16565b61d0e9565b60005b905060405180604001604052808481526020018773ffffffffffffffffffffffffffffffffffffffff168152508460020160008381526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050600d548460010154101561d1b25761d1a56001856001015461ae5990919063ffffffff16565b846001018190555061d31b565b600d548460010154141561d23057836002016000856000015481526020019081526020016000206000808201600090556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055505061d2236001856000015461ae5990919063ffffffff16565b846000018190555061d31a565b836002016000856000015481526020019081526020016000206000808201600090556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055505083600201600061d2996001876000015461ae5990919063ffffffff16565b81526020019081526020016000206000808201600090556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055505061d2f16001856001015461ae0f90919063ffffffff16565b846001018190555061d3116002856000015461ae5990919063ffffffff16565b84600001819055505b5b60019450505050505b92915050565b6000600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcf0aaed60405160200180807f456c656374696f6e0000000000000000000000000000000000000000000000008152506008019050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561d3e557600080fd5b505afa15801561d3f9573d6000803e3d6000fd5b505050506040513d602081101561d40f57600080fd5b8101908080519060200190929190505050905090565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206008019050808054905082141561d4a7578042908060018154018082558091505090600182039060005260206000200160009091929091909150555061d549565b808054905082101561d4d3574281838154811061d4c057fe5b906000526020600020018190555061d548565b600061d547576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f556e61626c6520746f207570646174652073697a6520686973746f727900000081525060200191505060405180910390fd5b5b5b505050565b600083831115829061d5fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561d5c057808201518184015260208101905061d5a5565b50505050905090810190601f16801561d5ed5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60007601357c299a88ea76a58924d52ce4f26a85af186c2b9e74905090565b61d63561ddb7565b60008360000151148061d64c575060008260000151145b1561d6685760405180602001604052806000815250905061da86565b69d3c21bcecceda10000008260000151141561d6865782905061da86565b69d3c21bcecceda10000008360000151141561d6a45781905061da86565b600069d3c21bcecceda100000061d6ba8561dd15565b600001518161d6c557fe5b049050600061d6d38561dd4c565b600001519050600069d3c21bcecceda100000061d6ef8661dd15565b600001518161d6fa57fe5b049050600061d7088661dd4c565b600001519050600082850290506000851461d79c578285828161d72757fe5b041461d79b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f6f766572666c6f7720783179312064657465637465640000000000000000000081525060200191505060405180910390fd5b5b600069d3c21bcecceda1000000820290506000821461d83e5769d3c21bcecceda100000082828161d7c957fe5b041461d83d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f6f766572666c6f772078317931202a206669786564312064657465637465640081525060200191505060405180910390fd5b5b809150600084860290506000861461d8cf578486828161d85a57fe5b041461d8ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f6f766572666c6f7720783279312064657465637465640000000000000000000081525060200191505060405180910390fd5b5b600084880290506000881461d95d578488828161d8e857fe5b041461d95c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f6f766572666c6f7720783179322064657465637465640000000000000000000081525060200191505060405180910390fd5b5b61d96561dd89565b878161d96d57fe5b04965061d97861dd89565b858161d98057fe5b049450600085880290506000881461da11578588828161d99c57fe5b041461da10576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f6f766572666c6f7720783279322064657465637465640000000000000000000081525060200191505060405180910390fd5b5b61da1961ddb7565b604051806020016040528087815250905061da428160405180602001604052808781525061be32565b905061da5c8160405180602001604052808681525061be32565b905061da768160405180602001604052808581525061be32565b9050809a50505050505050505050505b92915050565b61da9461ddb7565b81600001518360000151101561db12576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f737562737472616374696f6e20756e646572666c6f772064657465637465640081525060200191505060405180910390fd5b60405180602001604052808360000151856000015103815250905092915050565b6000808311829061dbdf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561dba457808201518184015260208101905061db89565b50505050905090810190601f16801561dbd15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161dbeb57fe5b049050809150509392505050565b600069d3c21bcecceda100000082600001518161dc1257fe5b049050919050565b6000600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcf0aaed60405160200180807f537461626c65546f6b656e000000000000000000000000000000000000000000815250600b019050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561dcd557600080fd5b505afa15801561dce9573d6000803e3d6000fd5b505050506040513d602081101561dcff57600080fd5b8101908080519060200190929190505050905090565b61dd1d61ddb7565b604051806020016040528069d3c21bcecceda10000008085600001518161dd4057fe5b04028152509050919050565b61dd5461ddb7565b604051806020016040528069d3c21bcecceda10000008085600001518161dd7757fe5b04028460000151038152509050919050565b600064e8d4a51000905090565b508054600082559060005260206000209081019061ddb4919061debe565b50565b6040518060200160405280600081525090565b50805460018160011615610100020316600290046000825580601f1061ddf0575061de0f565b601f01602090049060005260206000209081019061de0e919061debe565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061de5357805160ff191683800117855561de81565b8280016001018555821561de81579182015b8281111561de8057825182559160200191906001019061de65565b5b50905061de8e919061debe565b5090565b81548183558181111561deb95781836000526020600020918201910161deb8919061debe565b5b505050565b61dee091905b8082111561dedc57600081600090555060010161dec4565b5090565b9056fe56616c696461746f7220646f65736e2774206d65657420726571756972656d656e74736572726f722063616c6c696e67206e756d62657256616c696461746f7273496e53657420707265636f6d70696c654f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373607265736574536c617368696e674d756c7469706c696572602063616c6c6564206265666f7265207265736574506572696f64206578706972656443616e2774206170706c7920636f6d6d697373696f6e2075706461746520796574557074696d65206172726179206c6172676572207468616e206d6178696d756d2067726f75702073697a6556616c696461746f7220726571756972656d656e7473206e6f74206368616e6765646572726f722063616c6c696e672067657456657269666965645365616c4269746d617046726f6d48656164657220707265636f6d70696c6563616e277420637265617465206669786964697479206e756d626572206c6172676572207468616e206d61784e65774669786564282956616c696461746f72206e6f742072656769737465726564207769746820612067726f757070726f766964656420696e64657820646f6573206e6f74206d617463682070726f76696465642065706f63684e756d62657220617420696e64657820696e20686973746f72792e6572726f722063616c6c696e672076616c696461746f725369676e65724164647265737346726f6d43757272656e7453657420707265636f6d70696c656572726f722063616c6c696e67206e756d62657256616c696461746f7273496e43757272656e7453657420707265636f6d70696c656572726f722063616c6c696e672076616c696461746f725369676e65724164647265737346726f6d53657420707265636f6d70696c654d656d6265727368697020686973746f7279206c656e6774682063616e6e6f74206265207a65726f45706f63682063616e6e6f74206265206c6172676572207468616e2063757272656e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d656d6265727368697020686973746f7279206c656e677468206e6f74206368616e6765646572726f722063616c6c696e67206672616374696f6e4d756c45787020707265636f6d70696c6564656c657465456c656d656e743a20696e646578206f7574206f662072616e67656572726f722063616c6c696e672067657445706f636853697a6520707265636f6d70696c656572726f722063616c6c696e6720676574506172656e745365616c4269746d617020707265636f6d70696c65636f6d6d697373696f6e207570646174652064656c6179206e6f74206368616e6765646572726f722063616c6c696e6720676574426c6f636b4e756d62657246726f6d48656164657220707265636f6d70696c654861736e2774206265656e20656d70747920666f72206c6f6e6720656e6f756768436f6d6d697373696f6e2063616e27742062652067726561746572207468616e203130302541646a7573746d656e742073706565642063616e6e6f74206265206c6172676572207468616e20316572726f722063616c6c696e67206861736848656164657220707265636f6d70696c6541646a7573746d656e7420737065656420616e64206578706f6e656e74206e6f74206368616e676564a265627a7a723158202dc04c40924b6f9e7b7822a22ce5b83f944b1851af9f8d4e31bf7cf963b5213c64736f6c634300050d00320000000000000000000000000000000000000000000000000000000000000000

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106104b75760003560e01c80638da5cb5b11610278578063ca6d56dc1161015c578063e50e652d116100ce578063ee09831011610092578063ee09831014612489578063eff2ea3f146124cf578063f2fde38b14612515578063facd743b14612559578063fae8db0a146125b5578063fffdfccb146125f7576104b7565b8063e50e652d146121ef578063e7f0376614612231578063ea684f771461223b578063eb1d0b4214612376578063ec6830721461240e576104b7565b8063dba94fcd11610120578063dba94fcd14612079578063dcff4cf6146120d1578063df4da46114612129578063e0e3ffe614612147578063e1497ff714612165578063e33301aa146121ab576104b7565b8063ca6d56dc14611ead578063cb8f98e014611f09578063d55dcbcf14611f59578063d69ef6cf14611fb8578063d93ab5ad1461201a576104b7565b8063b591d3a5116101f5578063bfdb7417116101b9578063bfdb741714611c8f578063c0c6ad6f14611d75578063c10c96ef14611dc3578063c22d3bba14611de8578063c54c1cd414611e2c578063c580514014611e88576104b7565b8063b591d3a514611b29578063b730a29914611b85578063b8f9394314611c42578063b915f53014611c4c578063bd9e9d9414611c6a576104b7565b80639a7b3be71161023c5780639a7b3be7146119535780639b2b592f146119715780639b9d5161146119b3578063a57bff9014611ab7578063a91ee0dc14611ae5576104b7565b80638da5cb5b146117665780638dd31e39146117b05780638f32d59b1461185357806394903a9714611875578063988dcd1f146118b7576104b7565b806354255be01161039f578063713ea0f31161031c57806376f7425d116102e057806376f7425d1461152e5780637b103999146115bb57806386d81a5a1461160557806387ee8a0f146116335780638a883626146116515780638b16b1c614611720576104b7565b8063713ea0f314611288578063715018a6146114035780637385e5da1461140d578063757d03801461142b57806376c0a9ed146114de576104b7565b806367960e911161036357806367960e911461106a5780636ab951a0146111395780636c620d90146111675780636fa476471461119557806370447754146111ba576104b7565b806354255be014610f0b5780635779e93d14610f3e5780635a61d15b14610f5c5780635d180adb14610fac57806360fb822c14611024576104b7565b806336407b70116104385780634b2c2f44116103fc5780634b2c2f4414610c4f5780634cd76db414610d1e5780634e06fd8a14610d3c578063517f6d3314610e0d57806351b5222514610e2b57806352f13a4e14610eaf576104b7565b806336407b7014610b1a57806339e618e814610b385780633b1eb4bf14610b905780633f27089814610bd257806343d9669914610c31576104b7565b80631904bb2e1161047f5780631904bb2e1461064a57806319113e3b146107e057806323f0ab65146108055780633173b8db1461098f57806335244f5114610a2b576104b7565b80630352a592146104bc5780630b1ca49a146104da5780630d1312b814610536578063123633ea146105ba578063158ef93e14610628575b600080fd5b6104c4612619565b6040518082815260200191505060405180910390f35b61051c600480360360208110156104f057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061261f565b604051808215151515815260200191505060405180910390f35b6105786004803603602081101561054c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612811565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105e6600480360360208110156105d057600080fd5b8101908080359060200190929190505050612930565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610630612a81565b604051808215151515815260200191505060405180910390f35b61068c6004803603602081101561066057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612a94565b6040518080602001806020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838103835288818151815260200191508051906020019080838360005b8381101561073a57808201518184015260208101905061071f565b50505050905090810190601f1680156107675780820380516001836020036101000a031916815260200191505b50838103825287818151815260200191508051906020019080838360005b838110156107a0578082015181840152602081019050610785565b50505050905090810190601f1680156107cd5780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390f35b6107e8612db9565b604051808381526020018281526020019250505060405180910390f35b6109756004803603606081101561081b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561085857600080fd5b82018360208201111561086a57600080fd5b8035906020019184600183028401116401000000008311171561088c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156108ef57600080fd5b82018360208201111561090157600080fd5b8035906020019184600183028401116401000000008311171561092357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050612dec565b604051808215151515815260200191505060405180910390f35b610a11600480360360608110156109a557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612fa5565b604051808215151515815260200191505060405180910390f35b610a6d60048036036020811015610a4157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506131ca565b604051808060200180602001858152602001848152602001838103835287818151815260200191508051906020019060200280838360005b83811015610ac0578082015181840152602081019050610aa5565b50505050905001838103825286818151815260200191508051906020019060200280838360005b83811015610b02578082015181840152602081019050610ae7565b50505050905001965050505050505060405180910390f35b610b2261339e565b6040518082815260200191505060405180910390f35b610b7a60048036036020811015610b4e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506133a4565b6040518082815260200191505060405180910390f35b610bbc60048036036020811015610ba657600080fd5b810190808035906020019092919050505061346e565b6040518082815260200191505060405180910390f35b610bda613488565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610c1d578082015181840152602081019050610c02565b505050509050019250505060405180910390f35b610c39613516565b6040518082815260200191505060405180910390f35b610d0860048036036020811015610c6557600080fd5b8101908080359060200190640100000000811115610c8257600080fd5b820183602082011115610c9457600080fd5b80359060200191846001830284011164010000000083111715610cb657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050613520565b6040518082815260200191505060405180910390f35b610d266136b4565b6040518082815260200191505060405180910390f35b610df360048036036060811015610d5257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190640100000000811115610daf57600080fd5b820183602082011115610dc157600080fd5b80359060200191846001830284011164010000000083111715610de357600080fd5b90919293919293905050506136ba565b604051808215151515815260200191505060405180910390f35b610e156139df565b6040518082815260200191505060405180910390f35b610e6d60048036036020811015610e4157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506139ec565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610ef160048036036020811015610ec557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613b3c565b604051808215151515815260200191505060405180910390f35b610f13613b95565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b610f46613bbd565b6040518082815260200191505060405180910390f35b610f9260048036036040811015610f7257600080fd5b810190808035906020019092919080359060200190929190505050613bc3565b604051808215151515815260200191505060405180910390f35b610fe260048036036040811015610fc257600080fd5b810190808035906020019092919080359060200190929190505050613d46565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6110506004803603602081101561103a57600080fd5b8101908080359060200190929190505050613e98565b604051808215151515815260200191505060405180910390f35b6111236004803603602081101561108057600080fd5b810190808035906020019064010000000081111561109d57600080fd5b8201836020820111156110af57600080fd5b803590602001918460018302840111640100000000831117156110d157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061431f565b6040518082815260200191505060405180910390f35b6111656004803603602081101561114f57600080fd5b81019080803590602001909291905050506144b3565b005b6111936004803603602081101561117d57600080fd5b81019080803590602001909291905050506145c6565b005b61119d6146dc565b604051808381526020018281526020019250505060405180910390f35b611231600480360360208110156111d057600080fd5b81019080803590602001906401000000008111156111ed57600080fd5b8201836020820111156111ff57600080fd5b8035906020019184602083028401116401000000008311171561122157600080fd5b90919293919293905050506146f3565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015611274578082015181840152602081019050611259565b505050509050019250505060405180910390f35b6113e9600480360360a081101561129e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156112fb57600080fd5b82018360208201111561130d57600080fd5b8035906020019184600183028401116401000000008311171561132f57600080fd5b90919293919293908035906020019064010000000081111561135057600080fd5b82018360208201111561136257600080fd5b8035906020019184600183028401116401000000008311171561138457600080fd5b9091929391929390803590602001906401000000008111156113a557600080fd5b8201836020820111156113b757600080fd5b803590602001918460018302840111640100000000831117156113d957600080fd5b90919293919293905050506147ab565b604051808215151515815260200191505060405180910390f35b61140b614bda565b005b611415614d13565b6040518082815260200191505060405180910390f35b6114dc600480360361018081101561144257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190505050614d23565b005b611514600480360360408110156114f457600080fd5b810190808035906020019092919080359060200190929190505050614e31565b604051808215151515815260200191505060405180910390f35b6115a56004803603602081101561154457600080fd5b810190808035906020019064010000000081111561156157600080fd5b82018360208201111561157357600080fd5b8035906020019184602083028401116401000000008311171561159557600080fd5b9091929391929390505050614f97565b6040518082815260200191505060405180910390f35b6115c361510a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6116316004803603602081101561161b57600080fd5b8101908080359060200190929190505050615130565b005b61163b615445565b6040518082815260200191505060405180910390f35b61170a6004803603602081101561166757600080fd5b810190808035906020019064010000000081111561168457600080fd5b82018360208201111561169657600080fd5b803590602001918460018302840111640100000000831117156116b857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061558c565b6040518082815260200191505060405180910390f35b61174c6004803603602081101561173657600080fd5b8101908080359060200190929190505050615720565b604051808215151515815260200191505060405180910390f35b61176e615cd4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6117fc600480360360408110156117c657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050615cfd565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561183f578082015181840152602081019050611824565b505050509050019250505060405180910390f35b61185b615ff2565b604051808215151515815260200191505060405180910390f35b6118a16004803603602081101561188b57600080fd5b8101908080359060200190929190505050616050565b6040518082815260200191505060405180910390f35b611939600480360360608110156118cd57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061616d565b604051808215151515815260200191505060405180910390f35b61195b61669e565b6040518082815260200191505060405180910390f35b61199d6004803603602081101561198757600080fd5b81019080803590602001909291905050506166ae565b6040518082815260200191505060405180910390f35b6119f5600480360360208110156119c957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506167f7565b60405180806020018881526020018781526020018681526020018060200185815260200184815260200183810383528a818151815260200191508051906020019060200280838360005b83811015611a5a578082015181840152602081019050611a3f565b50505050905001838103825286818151815260200191508051906020019060200280838360005b83811015611a9c578082015181840152602081019050611a81565b50505050905001995050505050505050505060405180910390f35b611ae360048036036020811015611acd57600080fd5b8101908080359060200190929190505050616acd565b005b611b2760048036036020811015611afb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050616be0565b005b611b6b60048036036020811015611b3f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050616d84565b604051808215151515815260200191505060405180910390f35b611bc760048036036020811015611b9b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506171f6565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015611c07578082015181840152602081019050611bec565b50505050905090810190601f168015611c345780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b611c4a61741c565b005b611c546176c0565b6040518082815260200191505060405180910390f35b611c726176ca565b604051808381526020018281526020019250505060405180910390f35b611d5b60048036036040811015611ca557600080fd5b8101908080359060200190640100000000811115611cc257600080fd5b820183602082011115611cd457600080fd5b80359060200191846001830284011164010000000083111715611cf657600080fd5b909192939192939080359060200190640100000000811115611d1757600080fd5b820183602082011115611d2957600080fd5b80359060200191846001830284011164010000000083111715611d4b57600080fd5b90919293919293905050506176dc565b604051808215151515815260200191505060405180910390f35b611dc160048036036040811015611d8b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050617972565b005b611dcb617a22565b604051808381526020018281526020019250505060405180910390f35b611e2a60048036036020811015611dfe57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050617a39565b005b611e6e60048036036020811015611e4257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050617d1a565b604051808215151515815260200191505060405180910390f35b611e90617e05565b604051808381526020018281526020019250505060405180910390f35b611eef60048036036020811015611ec357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050617e17565b604051808215151515815260200191505060405180910390f35b611f3f60048036036040811015611f1f57600080fd5b81019080803590602001909291908035906020019092919050505061803b565b604051808215151515815260200191505060405180910390f35b611f61618243565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015611fa4578082015181840152602081019050611f89565b505050509050019250505060405180910390f35b61200460048036036040811015611fce57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506183f2565b6040518082815260200191505060405180910390f35b6120226184a7565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561206557808201518184015260208101905061204a565b505050509050019250505060405180910390f35b6120bb6004803603602081101561208f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050618535565b6040518082815260200191505060405180910390f35b612113600480360360208110156120e757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050618621565b6040518082815260200191505060405180910390f35b6121316187a6565b6040518082815260200191505060405180910390f35b61214f6188e2565b6040518082815260200191505060405180910390f35b6121916004803603602081101561217b57600080fd5b81019080803590602001909291905050506188e8565b604051808215151515815260200191505060405180910390f35b6121ed600480360360208110156121c157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050618a99565b005b61221b6004803603602081101561220557600080fd5b8101908080359060200190929190505050618d13565b6040518082815260200191505060405180910390f35b612239618d5e565b005b61235c6004803603606081101561225157600080fd5b810190808035906020019064010000000081111561226e57600080fd5b82018360208201111561228057600080fd5b803590602001918460018302840111640100000000831117156122a257600080fd5b9091929391929390803590602001906401000000008111156122c357600080fd5b8201836020820111156122d557600080fd5b803590602001918460018302840111640100000000831117156122f757600080fd5b90919293919293908035906020019064010000000081111561231857600080fd5b82018360208201111561232a57600080fd5b8035906020019184600183028401116401000000008311171561234c57600080fd5b9091929391929390505050619055565b604051808215151515815260200191505060405180910390f35b6123cc6004803603606081101561238c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919050505061970a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61246c600480360360c081101561242457600080fd5b81019080803590602001909291908035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190505050619a9a565b604051808381526020018281526020019250505060405180910390f35b6124b56004803603602081101561249f57600080fd5b8101908080359060200190929190505050619cae565b604051808215151515815260200191505060405180910390f35b6124fb600480360360208110156124e557600080fd5b810190808035906020019092919050505061a21d565b604051808215151515815260200191505060405180910390f35b6125576004803603602081101561252b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061a394565b005b61259b6004803603602081101561256f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061a41a565b604051808215151515815260200191505060405180910390f35b6125e1600480360360208110156125cb57600080fd5b810190808035906020019092919050505061a47f565b6040518082815260200191505060405180910390f35b6125ff61a5c8565b604051808215151515815260200191505060405180910390f35b60115481565b60006001806000828254019250508190555060006001549050600061264261a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156126be57600080fd5b505afa1580156126d2573d6000803e3d6000fd5b505050506040513d60208110156126e857600080fd5b8101908080519060200190929190505050905061270481613b3c565b801561271557506127148461a41a565b5b612787576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f6973206e6f742067726f757020616e642076616c696461746f7200000000000081525060200191505060405180910390fd5b612791818561a9b0565b925050600154811461280b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b60008061281c61669e565b90506000600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040190506000808260010154146128a45761289f61288c6001846001015461ae0f90919063ffffffff16565b836000015461ae5990919063ffffffff16565b6128a7565b60005b9050828260020160008381526020019081526020016000206000015414156128ed5781600001548111156128ec576128e960018261ae0f90919063ffffffff16565b90505b5b81600201600082815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169350505050919050565b60006060600060fa73ffffffffffffffffffffffffffffffffffffffff16844360405160200180838152602001828152602001925050506040516020818303038152906040526040518082805190602001908083835b602083106129a95780518252602082019150602081019050602083039250612986565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114612a09576040519150601f19603f3d011682016040523d82523d6000602084013e612a0e565b606091505b50809350819250505080612a6d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603d81526020018061e0de603d913960400191505060405180910390fd5b612a7882600061aee1565b92505050919050565b600260009054906101000a900460ff1681565b6060806000806000612aa58661a41a565b612b17576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b6000600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905080600001600001816000016001018260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612bae8460030160405180602001604052908160008201548152505061aef8565b612bb661a8b5565b73ffffffffffffffffffffffffffffffffffffffff16634ce38b5f8c6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612c3257600080fd5b505afa158015612c46573d6000803e3d6000fd5b505050506040513d6020811015612c5c57600080fd5b8101908080519060200190929190505050848054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612d025780601f10612cd757610100808354040283529160200191612d02565b820191906000526020600020905b815481529060010190602001808311612ce557829003601f168201915b50505050509450838054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612d9e5780601f10612d7357610100808354040283529160200191612d9e565b820191906000526020600020905b815481529060010190602001808311612d8157829003601f168201915b50505050509350955095509550955095505091939590929450565b600080600b60000154612de4600b60010160405180602001604052908160008201548152505061aef8565b915091509091565b60008060fb73ffffffffffffffffffffffffffffffffffffffff16858585604051602001808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b815260140183805190602001908083835b60208310612e755780518252602082019150602081019050602083039250612e52565b6001836020036101000a03801982511681845116808217855250505050505090500182805190602001908083835b60208310612ec65780518252602082019150602081019050602083039250612ea3565b6001836020036101000a03801982511681845116808217855250505050505090500193505050506040516020818303038152906040526040518082805190602001908083835b60208310612f2f5780518252602082019150602081019050602083039250612f0c565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114612f8f576040519150601f19603f3d011682016040523d82523d6000602084013e612f94565b606091505b505080915050809150509392505050565b600060018060008282540192505081905550600060015490506000612fc861a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561304457600080fd5b505afa158015613058573d6000803e3d6000fd5b505050506040513d602081101561306e57600080fd5b810190808051906020019092919050505090506000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600201541461313c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f56616c696461746f722067726f7570206e6f7420656d7074790000000000000081525060200191505060405180910390fd5b6131488187878761af06565b92505060015481146131c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b509392505050565b6060806000806000600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040190506060816001015460405190808252806020026020018201604052801561324b5781602001602082028038833980820191505090505b509050606082600101546040519080825280602002602001820160405280156132835781602001602082028038833980820191505090505b50905060008090505b836001015481101561337f5760006132b182866000015461ae5990919063ffffffff16565b9050846002016000828152602001908152602001600020600001548483815181106132d857fe5b60200260200101818152505084600201600082815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683838151811061332957fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505061337860018261ae5990919063ffffffff16565b905061328c565b5081818460030154856000015496509650965096505050509193509193565b60105481565b60006133af82613b3c565b613421576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4e6f742076616c696461746f722067726f75700000000000000000000000000081525060200191505060405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600201549050919050565b60006134818261347c6187a6565b61b5e3565b9050919050565b6060600580548060200260200160405190810160405280929190818152602001828054801561350c57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116134c2575b5050505050905090565b6000600e54905090565b60006060600060f473ffffffffffffffffffffffffffffffffffffffff16846040516020018082805190602001908083835b602083106135755780518252602082019150602081019050602083039250613552565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040526040518082805190602001908083835b602083106135dc57805182526020820191506020810190506020830392506135b9565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d806000811461363c576040519150601f19603f3d011682016040523d82523d6000602084013e613641565b606091505b508093508192505050806136a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603881526020018061e0046038913960400191505060405180910390fd5b6136ab82600061b62b565b92505050919050565b600d5481565b600060405160200180807f4163636f756e74730000000000000000000000000000000000000000000000008152506008019050604051602081830303815290604052805190602001203373ffffffffffffffffffffffffffffffffffffffff16600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcf0aaed836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561378d57600080fd5b505afa1580156137a1573d6000803e3d6000fd5b505050506040513d60208110156137b757600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1614613851576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f6f6e6c79207265676973746572656420636f6e7472616374000000000000000081525060200191505060405180910390fd5b61385a8661a41a565b6138cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b6000600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905061395f81888888888080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061b6cc565b6139d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4572726f72207570646174696e67204543445341207075626c6963206b65790081525060200191505060405180910390fd5b600192505050949350505050565b6000600680549050905090565b6000806139f761a8b5565b73ffffffffffffffffffffffffffffffffffffffff166393c5c487846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015613a7357600080fd5b505afa158015613a87573d6000803e3d6000fd5b505050506040513d6020811015613a9d57600080fd5b81019080805190602001909291905050509050613ab98161a41a565b613b2b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b613b3481612811565b915050919050565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff169050919050565b6000806000806001600260006002839350829250819150809050935093509350935090919293565b600e5481565b6000613bcd615ff2565b613c3f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600060099050806000015484141580613c5c575080600101548314155b613cce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f47726f757020726571756972656d656e7473206e6f74206368616e676564000081525060200191505060405180910390fd5b604051806040016040528085815260200184815250600960008201518160000155602082015181600101559050507f999f7ee1917e6d7ea08360edfe9250cda3eda859c38dcb71a92623665de64dd48484604051808381526020018281526020019250505060405180910390a1600191505092915050565b60006060600060fa73ffffffffffffffffffffffffffffffffffffffff16858560405160200180838152602001828152602001925050506040516020818303038152906040526040518082805190602001908083835b60208310613dbf5780518252602082019150602081019050602083039250613d9c565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114613e1f576040519150601f19603f3d011682016040523d82523d6000602084013e613e24565b606091505b50809350819250505080613e83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603681526020018061e1506036913960400191505060405180910390fd5b613e8e82600061aee1565b9250505092915050565b600060018060008282540192505081905550600060015490506000613ebb61a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015613f3757600080fd5b505afa158015613f4b573d6000803e3d6000fd5b505050506040513d6020811015613f6157600080fd5b81019080805190602001909291905050509050613f7d81613b3c565b613fef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f7420612076616c696461746f722067726f7570000000000000000000000081525060200191505060405180910390fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160020154146140aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f56616c696461746f722067726f7570206e6f7420656d7074790000000000000081525060200191505060405180910390fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206008019050600181805490501115614184574261412d6009600101548360018154811061411457fe5b906000526020600020015461ae5990919063ffffffff16565b10614183576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061e3046021913960400191505060405180910390fd5b5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160006101000a81549060ff021916905560018201600080820160009055600182016000905560028201600090555050600582016000808201600090555050600682016000808201600090555050600782016000905560088201600061422d919061dd96565b60098201600080820160008082016000905550506001820160009055505050506142596005838761b8cb565b8173ffffffffffffffffffffffffffffffffffffffff167fae7e034b0748a10a219b46074b20977a9170bf4027b156c797093773619a866960405160405180910390a26001935050506001548114614319576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b60006060600060f673ffffffffffffffffffffffffffffffffffffffff16846040516020018082805190602001908083835b602083106143745780518252602082019150602081019050602083039250614351565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040526040518082805190602001908083835b602083106143db57805182526020820191506020810190506020830392506143b8565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d806000811461443b576040519150601f19603f3d011682016040523d82523d6000602084013e614440565b606091505b5080935081925050508061449f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061e3726023913960400191505060405180910390fd5b6144aa82600061b62b565b92505050919050565b60018060008282540192505081905550600060015490506144d2615ff2565b614544576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8160108190555060015481146145c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b5050565b6145ce615ff2565b614640576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600f5481141561469b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061e2b06023913960400191505060405180910390fd5b80600f819055507ff2da07d08fd8dc9c5dcf87ad6f540e306f884a47dd8de14b718a4d5395f1ca9b816040518082815260200191505060405180910390a150565b600080600960000154600960010154915091509091565b606080838390506040519080825280602002602001820160405280156147285781602001602082028038833980820191505090505b50905060008090505b848490508110156147a05761476d85858381811061474b57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff166133a4565b82828151811061477957fe5b60200260200101818152505061479960018261ae5990919063ffffffff16565b9050614731565b508091505092915050565b600060405160200180807f4163636f756e74730000000000000000000000000000000000000000000000008152506008019050604051602081830303815290604052805190602001203373ffffffffffffffffffffffffffffffffffffffff16600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcf0aaed836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561487e57600080fd5b505afa158015614892573d6000803e3d6000fd5b505050506040513d60208110156148a857600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1614614942576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f6f6e6c79207265676973746572656420636f6e7472616374000000000000000081525060200191505060405180910390fd5b61494b8a61a41a565b6149bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b6000600460008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050614a50818c8c8c8c8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061b6cc565b614ac2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4572726f72207570646174696e67204543445341207075626c6963206b65790081525060200191505060405180910390fd5b614b56818c89898080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505088888080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061ba88565b614bc8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4572726f72207570646174696e6720424c53207075626c6963206b657900000081525060200191505060405180910390fd5b60019250505098975050505050505050565b614be2615ff2565b614c54576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000614d1e43618d13565b905090565b600260009054906101000a900460ff1615614da6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f636f6e747261637420616c726561647920696e697469616c697a65640000000081525060200191505060405180910390fd5b6001600260006101000a81548160ff021916908315150217905550614dca3361bcd0565b614dd38c616be0565b614ddd8b8b613bc3565b50614de88989614e31565b50614df3878761803b565b50614dfd836188e8565b50614e07826145c6565b614e108561a21d565b50614e1a846144b3565b614e2381616acd565b505050505050505050505050565b6000614e3b615ff2565b614ead576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600060079050806000015484141580614eca575080600101548314155b614f1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018061dfe26022913960400191505060405180910390fd5b604051806040016040528085815260200184815250600760008201518160000155602082015181600101559050507f62d947118dd4c1f5ece7f787a9cad4e1127d14d403b71133e95792b473bf83898484604051808381526020018281526020019250505060405180910390a1600191505092915050565b6000808383905011615011576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f557074696d6520617272617920656d707479000000000000000000000000000081525060200191505060405180910390fd5b600e5483839050111561506f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b81526020018061dfb7602b913960400191505060405180910390fd5b61507761ddb7565b60008090505b848490508110156150da576150bd6150ae6150a987878581811061509d57fe5b90506020020135616050565b61be14565b8361be3290919063ffffffff16565b91506150d360018261ae5990919063ffffffff16565b905061507d565b506151016150fc6150ed8686905061bedb565b8361bf6590919063ffffffff16565b61aef8565b91505092915050565b600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061513a61a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156151b657600080fd5b505afa1580156151ca573d6000803e3d6000fd5b505050506040513d60208110156151e057600080fd5b810190808051906020019092919050505090506151fc81613b3c565b61526e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f7420612076616c696461746f722067726f7570000000000000000000000081525060200191505060405180910390fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506152c16152bc61c0ae565b61aef8565b831115615319576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061e3256025913960400191505060405180910390fd5b61533a8160050160405180602001604052908160008201548152505061aef8565b8314156153af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f436f6d6d697373696f6e206d75737420626520646966666572656e740000000081525060200191505060405180910390fd5b6153b88361be14565b81600601600082015181600001559050506153de600f544361ae5990919063ffffffff16565b81600701819055508173ffffffffffffffffffffffffffffffffffffffff167f557d39a57520d9835859d4b7eda805a7f4115a59c3a374eeed488436fc62a152848360070154604051808381526020018281526020019250505060405180910390a2505050565b60006060600060f973ffffffffffffffffffffffffffffffffffffffff1643604051602001808281526020019150506040516020818303038152906040526040518082805190602001908083835b602083106154b65780518252602082019150602081019050602083039250615493565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114615516576040519150601f19603f3d011682016040523d82523d6000602084013e61551b565b606091505b5080935081925050508061557a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603581526020018061e11b6035913960400191505060405180910390fd5b61558582600061aee1565b9250505090565b60006060600060f773ffffffffffffffffffffffffffffffffffffffff16846040516020018082805190602001908083835b602083106155e157805182526020820191506020810190506020830392506155be565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040526040518082805190602001908083835b602083106156485780518252602082019150602081019050602083039250615625565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d80600081146156a8576040519150601f19603f3d011682016040523d82523d6000602084013e6156ad565b606091505b5080935081925050508061570c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603181526020018061e2d36031913960400191505060405180910390fd5b61571782600061aee1565b92505050919050565b60006001806000828254019250508190555060006001549050600061574361a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156157bf57600080fd5b505afa1580156157d3573d6000803e3d6000fd5b505050506040513d60208110156157e957600080fd5b810190808051906020019092919050505090506158058161a41a565b615877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614615aab57600360008260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010173d26d896d258e258eba71ff0873a878ec36538f8d63542424fb9091846040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b1580156159fc57600080fd5b505af4158015615a10573d6000803e3d6000fd5b505050506040513d6020811015615a2657600080fd5b810190808051906020019092919050505015615aaa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f486173206265656e2067726f7570206d656d62657220726563656e746c79000081525060200191505060405180910390fd5b5b6000615acc600760010154836004016003015461ae5990919063ffffffff16565b9050428110615b43576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4e6f742079657420726571756972656d656e7420656e642074696d650000000081525060200191505060405180910390fd5b615b4f6006848861b8cb565b600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160008082016000615ba4919061ddca565b600182016000615bb4919061ddca565b50506002820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556003820160008082016000905550506004820160008082016000905560018201600090556003820160009055505050508273ffffffffffffffffffffffffffffffffffffffff167f51407fafe7ef9bec39c65a12a4885a274190991bf1e9057fcc384fc77ff1a7f060405160405180910390a2600194505050506001548114615cce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606080600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010173d26d896d258e258eba71ff0873a878ec36538f8d63b1cfea439091856040518363ffffffff1660e01b8152600401808381526020018281526020019250505060006040518083038186803b158015615d9a57600080fd5b505af4158015615dae573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052506020811015615dd857600080fd5b8101908080516040519392919084640100000000821115615df857600080fd5b83820191506020820185811115615e0e57600080fd5b8251866020820283011164010000000082111715615e2b57600080fd5b8083526020830192505050908051906020019060200280838360005b83811015615e62578082015181840152602081019050615e47565b505050509050016040525050509050606083604051908082528060200260200182016040528015615ea25781602001602082028038833980820191505090505b50905060008090505b84811015615fe657615ebb61a8b5565b73ffffffffffffffffffffffffffffffffffffffff16634ce38b5f848381518110615ee257fe5b60200260200101516040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015615f4a57600080fd5b505afa158015615f5e573d6000803e3d6000fd5b505050506040513d6020811015615f7457600080fd5b8101908080519060200190929190505050828281518110615f9157fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050615fdf60018261ae5990919063ffffffff16565b9050615eab565b50809250505092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661603461c0d4565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b600061606261605d61c0ae565b61aef8565b8211156160d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f557074696d652063616e6e6f74206265206c6172676572207468616e206f6e6581525060200191505060405180910390fd5b6000806161076160f26011548661ae5990919063ffffffff16565b6161026160fd61c0ae565b61aef8565b61c0dc565b935061614a61611c61611761c0ae565b61aef8565b61612c61612761c0ae565b61aef8565b8661613d61613861c0ae565b61aef8565b600b600001546012619a9a565b809250819350505061616461615f838361c0f5565b61aef8565b92505050919050565b60006001806000828254019250508190555060006001549050600061619061a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561620c57600080fd5b505afa158015616220573d6000803e3d6000fd5b505050506040513d602081101561623657600080fd5b8101908080519060200190929190505050905061625281613b3c565b6162c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f4e6f7420612067726f757000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6162cd8661a41a565b61633f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060010173d26d896d258e258eba71ff0873a878ec36538f8d63542424fb9091896040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561640a57600080fd5b505af415801561641e573d6000803e3d6000fd5b505050506040513d602081101561643457600080fd5b81019080805190602001909291905050506164b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4e6f742061206d656d626572206f66207468652067726f75700000000000000081525060200191505060405180910390fd5b8060010173d26d896d258e258eba71ff0873a878ec36538f8d63b2f8fe9690918989896040518563ffffffff1660e01b8152600401808581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200194505050505060006040518083038186803b1580156165a757600080fd5b505af41580156165bb573d6000803e3d6000fd5b505050508673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f38819cc49a343985b478d72f531a35b15384c398dd80fd191a14662170f895c660405160405180910390a36001935050506001548114616696576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b509392505050565b60006166a94361346e565b905090565b60006060600060f973ffffffffffffffffffffffffffffffffffffffff1684604051602001808281526020019150506040516020818303038152906040526040518082805190602001908083835b6020831061671f57805182526020820191506020810190506020830392506166fc565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d806000811461677f576040519150601f19603f3d011682016040523d82523d6000602084013e616784565b606091505b508093508192505050806167e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e81526020018061df07602e913960400191505060405180910390fd5b6167ee82600061aee1565b92505050919050565b60606000806000606060008061680c88613b3c565b61687e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f7420612076616c696461746f722067726f7570000000000000000000000081525060200191505060405180910390fd5b6000600360008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060010173d26d896d258e258eba71ff0873a878ec36538f8d63fe3c7a8e90916040518263ffffffff1660e01b81526004018082815260200191505060006040518083038186803b15801561691557600080fd5b505af4158015616929573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250602081101561695357600080fd5b810190808051604051939291908464010000000082111561697357600080fd5b8382019150602082018581111561698957600080fd5b82518660208202830111640100000000821117156169a657600080fd5b8083526020830192505050908051906020019060200280838360005b838110156169dd5780820151818401526020810190506169c2565b50505050905001604052505050616a0b8260050160405180602001604052908160008201548152505061aef8565b616a2c8360060160405180602001604052908160008201548152505061aef8565b836007015484600801616a598660090160000160405180602001604052908160008201548152505061aef8565b866009016001015482805480602002602001604051908101604052809291908181526020018280548015616aac57602002820191906000526020600020905b815481526020019060010190808311616a98575b50505050509250975097509750975097509750975050919395979092949650565b6001806000828254019250508190555060006001549050616aec615ff2565b616b5e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b816011819055506001548114616bdc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b5050565b616be8615ff2565b616c5a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415616cfd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f43616e6e6f7420726567697374657220746865206e756c6c206164647265737381525060200191505060405180910390fd5b80600260016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f27fe5f0c1c3b1ed427cc63d0f05759ffdecf9aec9e18d31ef366fc8a6cb5dc3b60405160405180910390a250565b600060018060008282540192505081905550600060015490506000616da761a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015616e2357600080fd5b505afa158015616e37573d6000803e3d6000fd5b505050506040513d6020811015616e4d57600080fd5b81019080805190602001909291905050509050616e698161a41a565b616edb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b616ee484613b3c565b616f56576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f7420612076616c696461746f722067726f7570000000000000000000000081525060200191505060405180910390fd5b616f5f81617d1a565b616fb4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061dee46023913960400191505060405180910390fd5b616fbd84617d1a565b61702f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f47726f757020646f65736e2774206d65657420726571756972656d656e74730081525060200191505060405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146170d6576170d4818361c137565b505b848160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f91ef92227057e201e406c3451698dd780fe7672ad74328591c88d281af31581d60405160405180910390a360019350505060015481146171f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b6060600061720261a8b5565b73ffffffffffffffffffffffffffffffffffffffff166393c5c487846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561727e57600080fd5b505afa158015617292573d6000803e3d6000fd5b505050506040513d60208110156172a857600080fd5b810190808051906020019092919050505090506172c48161a41a565b617336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b600460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016001018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561740f5780601f106173e45761010080835404028352916020019161740f565b820191906000526020600020905b8154815290600101906020018083116173f257829003601f168201915b5050505050915050919050565b6001806000828254019250508190555060006001549050600061743d61a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156174b957600080fd5b505afa1580156174cd573d6000803e3d6000fd5b505050506040513d60208110156174e357600080fd5b810190808051906020019092919050505090506174ff81613b3c565b617571576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f7420612076616c696461746f722067726f7570000000000000000000000081525060200191505060405180910390fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506175d0601054826009016001015461ae5990919063ffffffff16565b421015617628576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b81526020018061df5b603b913960400191505060405180910390fd5b61763061c0ae565b8160090160000160008201518160000155905050505060015481146176bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b50565b6000600f54905090565b60078060000154908060010154905082565b6000806176e761a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561776357600080fd5b505afa158015617777573d6000803e3d6000fd5b505050506040513d602081101561778d57600080fd5b810190808051906020019092919050505090506177a98161a41a565b61781b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506178f2818389898080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505088888080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061ba88565b617964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4572726f72207570646174696e6720424c53207075626c6963206b657900000081525060200191505060405180910390fd5b600192505050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614617a14576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4f6e6c7920564d2063616e2063616c6c0000000000000000000000000000000081525060200191505060405180910390fd5b617a1e828261c322565b5050565b600080600760000154600760010154915091509091565b6001806000828254019250508190555060006001549050617a5861c6a0565b73ffffffffffffffffffffffffffffffffffffffff166357601c5d336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015617ad457600080fd5b505afa158015617ae8573d6000803e3d6000fd5b505050506040513d6020811015617afe57600080fd5b8101908080519060200190929190505050617b81576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f6e6c79207265676973746572656420736c61736865722063616e2063616c6c81525060200191505060405180910390fd5b617b8a82613b3c565b617bfc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f7420612076616c696461746f722067726f7570000000000000000000000081525060200191505060405180910390fd5b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050617c7e617c796002617c6b8460090160000160405180602001604052908160008201548152505061aef8565b61c79b90919063ffffffff16565b61be14565b8160090160000160008201518160000155905050428160090160010181905550506001548114617d16576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b5050565b600080617d2561c6a0565b73ffffffffffffffffffffffffffffffffffffffff166330ec70f5846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015617da157600080fd5b505afa158015617db5573d6000803e3d6000fd5b505050506040513d6020811015617dcb57600080fd5b81019080805190602001909291905050509050617de783618621565b617dfb600a8361ae5990919063ffffffff16565b1015915050919050565b60098060000154908060010154905082565b600060018060008282540192505081905550600060015490506000617e3a61a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015617eb657600080fd5b505afa158015617eca573d6000803e3d6000fd5b505050506040513d6020811015617ee057600080fd5b810190808051906020019092919050505090506000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016002015411617fae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f56616c696461746f722067726f757020656d707479000000000000000000000081525060200191505060405180910390fd5b617fbb818560008061af06565b9250506001548114618035576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b6000618045615ff2565b6180b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6180c76180c261c0ae565b61aef8565b82111561811f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061e34a6028913960400191505060405180910390fd5b600b60000154831415806181645750618162600b6001016040518060200160405290816000820154815250506181548461be14565b61c7e590919063ffffffff16565b155b6181b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061e3956029913960400191505060405180910390fd5b60405180604001604052808481526020016181d38461be14565b815250600b600082015181600001556020820151816001016000820151816000015550509050507f4b48724280029c2ea7a445c9cea30838525342e7a9ea9468f630b52e75d6c5368383604051808381526020018281526020019250505060405180910390a16001905092915050565b6060600061824f61a8b5565b905060606006805490506040519080825280602002602001820160405280156182875781602001602082028038833980820191505090505b50905060008090505b81518110156183e9578273ffffffffffffffffffffffffffffffffffffffff16634ce38b5f600683815481106182c257fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561834d57600080fd5b505afa158015618361573d6000803e3d6000fd5b505050506040513d602081101561837757600080fd5b810190808051906020019092919050505082828151811061839457fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506183e260018261ae5990919063ffffffff16565b9050618290565b50809250505090565b60008073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614618495576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4f6e6c7920564d2063616e2063616c6c0000000000000000000000000000000081525060200191505060405180910390fd5b61849f838361c7fa565b905092915050565b6060600680548060200260200160405190810160405280929190818152602001828054801561852b57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116184e1575b5050505050905090565b600061854082613b3c565b6185b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f7420612076616c696461746f722067726f7570000000000000000000000081525060200191505060405180910390fd5b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506186198160090160000160405180602001604052908160008201548152505061aef8565b915050919050565b600061862c8261a41a565b1561863e5760076000015490506187a1565b61864782613b3c565b1561879c57600061869e6001600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016002015461ce69565b90506000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600801905060008180549050111561877b57600061870d6001838054905061ae0f90919063ffffffff16565b90505b6000811115618779574261874860096001015484848154811061872f57fe5b906000526020600020015461ae5990919063ffffffff16565b1061875e57618757818461ce69565b9250618779565b61877260018261ae0f90919063ffffffff16565b9050618710565b505b6187938260096000015461ce8390919063ffffffff16565b925050506187a1565b600090505b919050565b60006060600060f873ffffffffffffffffffffffffffffffffffffffff166040516020016040516020818303038152906040526040518082805190602001908083835b6020831061880c57805182526020820191506020810190506020830392506187e9565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d806000811461886c576040519150601f19603f3d011682016040523d82523d6000602084013e618871565b606091505b508093508192505050806188d0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061e25f6025913960400191505060405180910390fd5b6188db82600061aee1565b9250505090565b600f5481565b60006188f2615ff2565b618964576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b816000106189da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4d61782067726f75702073697a652063616e6e6f74206265207a65726f00000081525060200191505060405180910390fd5b600e54821415618a52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f4d61782067726f75702073697a65206e6f74206368616e67656400000000000081525060200191505060405180910390fd5b81600e819055507f603fe12c33c253a23da1680aa453dc70c3a0ee07763569bd5f602406ebd4e5d5826040518082815260200191505060405180910390a160019050919050565b6001806000828254019250508190555060006001549050618ab861c6a0565b73ffffffffffffffffffffffffffffffffffffffff166357601c5d336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015618b3457600080fd5b505afa158015618b48573d6000803e3d6000fd5b505050506040513d6020811015618b5e57600080fd5b8101908080519060200190929190505050618be1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f6e6c79207265676973746572656420736c61736865722063616e2063616c6c81525060200191505060405180910390fd5b618bea8261a41a565b15618c98576000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614618c9657618c94818461c137565b505b505b6001548114618d0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b5050565b6000618d576003618d496002618d3b6002618d2d886166ae565b61ce8390919063ffffffff16565b61ae5990919063ffffffff16565b61c79b90919063ffffffff16565b9050919050565b6000618d6861a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015618de457600080fd5b505afa158015618df8573d6000803e3d6000fd5b505050506040513d6020811015618e0e57600080fd5b81019080805190602001909291905050509050618e2a81613b3c565b618e9c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f7420612076616c696461746f722067726f7570000000000000000000000081525060200191505060405180910390fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600701541415618f5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f4e6f20636f6d6d697373696f6e2075706461746520717565756564000000000081525060200191505060405180910390fd5b4381600701541115618fb7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061df966021913960400191505060405180910390fd5b80600601816005016000820154816000015590505080600601600080820160009055505080600701600090558173ffffffffffffffffffffffffffffffffffffffff167f815d292dbc1a08dfb3103aabb6611233dd2393903e57bdf4c5b3db91198a826c61903c8360050160405180602001604052908160008201548152505061aef8565b6040518082815260200191505060405180910390a25050565b60006001806000828254019250508190555060006001549050600061907861a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156190f457600080fd5b505afa158015619108573d6000803e3d6000fd5b505050506040513d602081101561911e57600080fd5b8101908080519060200190929190505050905061913a8161a41a565b15801561914d575061914b81613b3c565b155b6191bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f416c72656164792072656769737465726564000000000000000000000000000081525060200191505060405180910390fd5b60006191c961c6a0565b73ffffffffffffffffffffffffffffffffffffffff166330ec70f5836040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561924557600080fd5b505afa158015619259573d6000803e3d6000fd5b505050506040513d602081101561926f57600080fd5b810190808051906020019092919050505090506007600001548110156192fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f4465706f73697420746f6f20736d616c6c00000000000000000000000000000081525060200191505060405180910390fd5b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600061934a61a8b5565b73ffffffffffffffffffffffffffffffffffffffff16634ce38b5f856040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156193c657600080fd5b505afa1580156193da573d6000803e3d6000fd5b505050506040513d60208110156193f057600080fd5b810190808051906020019092919050505090506194538285838f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061b6cc565b6194c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4572726f72207570646174696e67204543445341207075626c6963206b65790081525060200191505060405180910390fd5b61955982858c8c8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061ba88565b6195cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4572726f72207570646174696e6720424c53207075626c6963206b657900000081525060200191505060405180910390fd5b60068490806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505061963c84600061cf09565b508373ffffffffffffffffffffffffffffffffffffffff167fd09501348473474a20c772c79c653e1fd7e8b437e418fe235d277d2c8885325160405160405180910390a2600195505050505060015481146196ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b509695505050505050565b60006197158461a41a565b619787576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b61978f61669e565b8311156197e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061e1ae6023913960400191505060405180910390fd5b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040190506198488160010154826000015461ae5990919063ffffffff16565b83106198bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f696e646578206f7574206f6620626f756e64730000000000000000000000000081525060200191505060405180910390fd5b806000015483101580156198d4575060008160010154115b619946576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f696e646578206f7574206f6620626f756e64730000000000000000000000000081525060200191505060405180910390fd5b60008482600201600086815260200190815260200160002060000154149050600061997f6001846001015461ae0f90919063ffffffff16565b61999684600001548761ae0f90919063ffffffff16565b149050600086846002016000888152602001908152602001600020600001541080156199f45750868460020160006199d860018a61ae5990919063ffffffff16565b81526020019081526020016000206000015411806199f35750815b5b905082806199ff5750805b619a54576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252604781526020018061e0976047913960600191505060405180910390fd5b83600201600087815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169450505050509392505050565b60008060008714158015619aaf575060008514155b619b21576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f612064656e6f6d696e61746f72206973207a65726f000000000000000000000081525060200191505060405180910390fd5b6000806000606060fc73ffffffffffffffffffffffffffffffffffffffff168c8c8c8c8c8c6040516020018087815260200186815260200185815260200184815260200183815260200182815260200196505050505050506040516020818303038152906040526040518082805190602001908083835b60208310619bbb5780518252602082019150602081019050602083039250619b98565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114619c1b576040519150601f19603f3d011682016040523d82523d6000602084013e619c20565b606091505b50809250819350505081619c7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602781526020018061e2176027913960400191505060405180910390fd5b619c8a81600061aee1565b9350619c9781602061aee1565b925083839550955050505050965096945050505050565b60006001806000828254019250508190555060006001549050619cd7619cd261c0ae565b61aef8565b831115619d2f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061e3256025913960400191505060405180910390fd5b6000619d3961a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015619db557600080fd5b505afa158015619dc9573d6000803e3d6000fd5b505050506040513d6020811015619ddf57600080fd5b81019080805190602001909291905050509050619dfb8161a41a565b15619e6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f416c726561647920726567697374657265642061732076616c696461746f720081525060200191505060405180910390fd5b619e7781613b3c565b15619eea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f416c726561647920726567697374657265642061732067726f7570000000000081525060200191505060405180910390fd5b6000619ef461c6a0565b73ffffffffffffffffffffffffffffffffffffffff166330ec70f5836040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015619f7057600080fd5b505afa158015619f84573d6000803e3d6000fd5b505050506040513d6020811015619f9a57600080fd5b8101908080519060200190929190505050905060096000015481101561a028576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f4e6f7420656e6f756768206c6f636b656420676f6c640000000000000000000081525060200191505060405180910390fd5b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060018160000160006101000a81548160ff02191690831515021790555061a0918661be14565b8160050160008201518160000155905050604051806040016040528061a0b561c0ae565b81526020016000815250816009016000820151816000016000820151816000015550506020820151816001015590505060058390806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550508273ffffffffffffffffffffffffffffffffffffffff167fbf4b45570f1907a94775f8449817051a492a676918e38108bb762e991e6b58dc876040518082815260200191505060405180910390a260019450505050600154811461a217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600061a227615ff2565b61a299576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8160001061a2f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061e1866028913960400191505060405180910390fd5b600d5482141561a34d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061e1f26025913960400191505060405180910390fd5b81600d819055507f1c75c7fb3ee9d13d8394372d8c7cdf1702fa947faa03f6ccfa500f787b09b48a826040518082815260200191505060405180910390a160019050919050565b61a39c615ff2565b61a40e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61a4178161bcd0565b50565b600080600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600101805460018160011615610100020316600290049050119050919050565b60006060600060f573ffffffffffffffffffffffffffffffffffffffff1684604051602001808281526020019150506040516020818303038152906040526040518082805190602001908083835b6020831061a4f0578051825260208201915060208101905060208303925061a4cd565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d806000811461a550576040519150601f19603f3d011682016040523d82523d6000602084013e61a555565b606091505b5080935081925050508061a5b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c81526020018061e284602c913960400191505060405180910390fd5b61a5bf82600061b62b565b92505050919050565b60006001806000828254019250508190555060006001549050600061a5eb61a8b5565b73ffffffffffffffffffffffffffffffffffffffff166364439b43336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561a66757600080fd5b505afa15801561a67b573d6000803e3d6000fd5b505050506040513d602081101561a69157600080fd5b8101908080519060200190929190505050905061a6ad8161a41a565b61a71f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561a829576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f6465616666696c696174653a206e6f7420616666696c6961746564000000000081525060200191505060405180910390fd5b61a833818361c137565b50600193505050600154811461a8b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f7265656e7472616e742063616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b5090565b6000600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcf0aaed60405160200180807f4163636f756e74730000000000000000000000000000000000000000000000008152506008019050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561a97057600080fd5b505afa15801561a984573d6000803e3d6000fd5b505050506040513d602081101561a99a57600080fd5b8101908080519060200190929190505050905090565b600080600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508373ffffffffffffffffffffffffffffffffffffffff16600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461aaf7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f4e6f7420616666696c696174656420746f2067726f757000000000000000000081525060200191505060405180910390fd5b8060010173d26d896d258e258eba71ff0873a878ec36538f8d63542424fb9091856040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561ab7f57600080fd5b505af415801561ab93573d6000803e3d6000fd5b505050506040513d602081101561aba957600080fd5b810190808051906020019092919050505061ac2c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4e6f742061206d656d626572206f66207468652067726f75700000000000000081525060200191505060405180910390fd5b8060010173d26d896d258e258eba71ff0873a878ec36538f8d63e2c0c56a9091856040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060006040518083038186803b15801561acb457600080fd5b505af415801561acc8573d6000803e3d6000fd5b50505050600081600101600201549050600081141561ad805761ace961d32a565b73ffffffffffffffffffffffffffffffffffffffff1663a8e45871866040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561ad6757600080fd5b505af115801561ad7b573d6000803e3d6000fd5b505050505b61ad8b84600061cf09565b5061ada98561ada460018461ae5990919063ffffffff16565b61d425565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc7666a52a66ff601ff7c0d4d6efddc9ac20a34792f6aa003d1804c9d4d5baa5760405160405180910390a360019250505092915050565b600061ae5183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061d54e565b905092915050565b60008082840190508381101561aed7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600061aeed838361b62b565b60001c905092915050565b600081600001519050919050565b600061af1185613b3c565b801561af22575061af218461a41a565b5b61af94576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f4e6f742076616c696461746f7220616e642067726f757000000000000000000081525060200191505060405180910390fd5b6000600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600e5481600101600201541061b055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f67726f757020776f756c6420657863656564206d6178696d756d2073697a650081525060200191505060405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff16600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461b158576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f4e6f7420616666696c696174656420746f2067726f757000000000000000000081525060200191505060405180910390fd5b8060010173d26d896d258e258eba71ff0873a878ec36538f8d63542424fb9091876040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561b1e057600080fd5b505af415801561b1f4573d6000803e3d6000fd5b505050506040513d602081101561b20a57600080fd5b81019080805190602001909291905050501561b28e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f416c726561647920696e2067726f75700000000000000000000000000000000081525060200191505060405180910390fd5b600061b2ab6001836001016002015461ae5990919063ffffffff16565b90508160010173d26d896d258e258eba71ff0873a878ec36538f8d6326afac499091886040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060006040518083038186803b15801561b33557600080fd5b505af415801561b349573d6000803e3d6000fd5b5050505061b35687617d1a565b61b3c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f47726f757020726571756972656d656e7473206e6f74206d657400000000000081525060200191505060405180910390fd5b61b3d186617d1a565b61b443576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f56616c696461746f7220726571756972656d656e7473206e6f74206d6574000081525060200191505060405180910390fd5b600181141561b5535761b45461d32a565b73ffffffffffffffffffffffffffffffffffffffff1663a18fb2db8887876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019350505050600060405180830381600087803b15801561b53a57600080fd5b505af115801561b54e573d6000803e3d6000fd5b505050505b61b55d868861cf09565b5061b57b8761b57660018461ae0f90919063ffffffff16565b61d425565b8573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fbdf7e616a6943f81e07a7984c9d4c00197dc2f481486ce4ffa6af52a113974ad60405160405180910390a3600192505050949350505050565b60008082848161b5ef57fe5b049050600083858161b5fd57fe5b06141561b60d578091505061b625565b61b62160018261ae5990919063ffffffff16565b9150505b92915050565b600061b64160208361ae5990919063ffffffff16565b8351101561b6b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f736c6963696e67206f7574206f662072616e676500000000000000000000000081525060200191505060405180910390fd5b60006020830184015190508091505092915050565b6000604082511461b745576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f57726f6e67204543445341207075626c6963206b6579206c656e67746800000081525060200191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff16828051906020012060001c73ffffffffffffffffffffffffffffffffffffffff161461b7f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4543445341206b657920646f6573206e6f74206d61746368207369676e65720081525060200191505060405180910390fd5b8185600001600001908051906020019061b80b92919061de12565b508373ffffffffffffffffffffffffffffffffffffffff167f213377eec2c15b21fa7abcbb0cb87a67e893cdb94a2564aa4bb4d380869473c8836040518080602001828103825283818151815260200191508051906020019080838360005b8381101561b88557808201518184015260208101905061b86a565b50505050905090810190601f16801561b8b25780820380516001836020036101000a031916815260200191505b509250505060405180910390a260019050949350505050565b82805490508110801561b93f57508173ffffffffffffffffffffffffffffffffffffffff1683828154811061b8fc57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b61b994576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061e23e6021913960400191505060405180910390fd5b600061b9ae6001858054905061ae0f90919063ffffffff16565b905083818154811061b9bc57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684838154811061b9f357fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083818154811061ba4757fe5b9060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905580848161ba81919061de92565b5050505050565b6000606083511461bb01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f57726f6e6720424c53207075626c6963206b6579206c656e677468000000000081525060200191505060405180910390fd5b603082511461bb78576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f57726f6e6720424c5320506f50206c656e67746800000000000000000000000081525060200191505060405180910390fd5b61bb83848484612dec565b61bbf5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f496e76616c696420424c5320506f50000000000000000000000000000000000081525060200191505060405180910390fd5b8285600001600101908051906020019061bc1092919061de12565b508373ffffffffffffffffffffffffffffffffffffffff167f36a1aabe506bbe8802233cbb9aad628e91269e77077c953f9db3e02d7092ee33846040518080602001828103825283818151815260200191508051906020019080838360005b8381101561bc8a57808201518184015260208101905061bc6f565b50505050905090810190601f16801561bcb75780820380516001836020036101000a031916815260200191505b509250505060405180910390a260019050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561bd56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061df356026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61be1c61ddb7565b6040518060200160405280838152509050919050565b61be3a61ddb7565b600082600001518460000151019050836000015181101561bec3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f616464206f766572666c6f77206465746563746564000000000000000000000081525060200191505060405180910390fd5b60405180602001604052808281525091505092915050565b61bee361ddb7565b61beeb61d60e565b82111561bf43576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603681526020018061e03c6036913960400191505060405180910390fd5b604051806020016040528069d3c21bcecceda100000084028152509050919050565b61bf6d61ddb7565b60008260000151141561bfe8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f63616e277420646976696465206279203000000000000000000000000000000081525060200191505060405180910390fd5b600069d3c21bcecceda10000008460000151029050836000015169d3c21bcecceda1000000828161c01557fe5b041461c089576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f6f766572666c6f7720617420646976696465000000000000000000000000000081525060200191505060405180910390fd5b60405180602001604052808460000151838161c0a157fe5b0481525091505092915050565b61c0b661ddb7565b604051806020016040528069d3c21bcecceda1000000815250905090565b600033905090565b600081831061c0eb578161c0ed565b825b905092915050565b61c0fd61ddb7565b61c10561ddb7565b61c10e8461bedb565b905061c11861ddb7565b61c1218461bedb565b905061c12d828261bf65565b9250505092915050565b6000808360020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060010173d26d896d258e258eba71ff0873a878ec36538f8d63542424fb9091866040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561c22c57600080fd5b505af415801561c240573d6000803e3d6000fd5b505050506040513d602081101561c25657600080fd5b81019080805190602001909291905050501561c2785761c276828561a9b0565b505b60008560020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f71815121f0622b31a3e7270eb28acb9fd10825ff418c9a18591f617bb8a31a6c60405160405180910390a360019250505092915050565b600061c32c61a8b5565b73ffffffffffffffffffffffffffffffffffffffff166393c5c487846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561c3a857600080fd5b505afa15801561c3bc573d6000803e3d6000fd5b505050506040513d602081101561c3d257600080fd5b8101908080519060200190929190505050905061c3ee8161a41a565b61c460576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b61c46861ddb7565b61c47961c47484616050565b61be14565b905061c48361ddb7565b61c4af82600b60010160405180602001604052908160008201548152505061d62d90919063ffffffff16565b905061c4b961ddb7565b61c4ec600b60010160405180602001604052908160008201548152505061c4de61c0ae565b61da8c90919063ffffffff16565b905061c557600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003016040518060200160405290816000820154815250508261d62d90919063ffffffff16565b905061c58d61c58861c5688561aef8565b61c58361c57e858761be3290919063ffffffff16565b61aef8565b61c0dc565b61be14565b600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301600082015181600001559050508373ffffffffffffffffffffffffffffffffffffffff167fedf9f87e50e10c533bf3ae7f5a7894ae66c23e6cbbe8773d7765d20ad6f995e961c673600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030160405180602001604052908160008201548152505061aef8565b61c67c8661aef8565b604051808381526020018281526020019250505060405180910390a2505050505050565b6000600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcf0aaed60405160200180807f4c6f636b6564476f6c6400000000000000000000000000000000000000000000815250600a019050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561c75b57600080fd5b505afa15801561c76f573d6000803e3d6000fd5b505050506040513d602081101561c78557600080fd5b8101908080519060200190929190505050905090565b600061c7dd83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061db33565b905092915050565b60008160000151836000015114905092915050565b60008061c80561a8b5565b73ffffffffffffffffffffffffffffffffffffffff166393c5c487856040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561c88157600080fd5b505afa15801561c895573d6000803e3d6000fd5b505050506040513d602081101561c8ab57600080fd5b8101908080519060200190929190505050905061c8c78161a41a565b61c939576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f7420612076616c696461746f72000000000000000000000000000000000081525060200191505060405180910390fd5b600061c94482612811565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561c9cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061e0726025913960400191505060405180910390fd5b61c9d582617d1a565b801561c9e6575061c9e581617d1a565b5b1561ce5c5761c9f361ddb7565b61cacf600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060090160000160405180602001604052908160008201548152505061cac1600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030160405180602001604052908160008201548152505061cab38961bedb565b61d62d90919063ffffffff16565b61d62d90919063ffffffff16565b9050600061cb4461cb3f600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206005016040518060200160405290816000820154815250508461d62d90919063ffffffff16565b61dbf9565b9050600061cb638261cb558561dbf9565b61ae0f90919063ffffffff16565b9050600061cb6f61dc1a565b90508073ffffffffffffffffffffffffffffffffffffffff166340c10f1986856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561cbf857600080fd5b505af115801561cc0c573d6000803e3d6000fd5b505050506040513d602081101561cc2257600080fd5b810190808051906020019092919050505061cca5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f6d696e74206661696c656420746f2076616c696461746f722067726f7570000081525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166340c10f1987846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561cd2c57600080fd5b505af115801561cd40573d6000803e3d6000fd5b505050506040513d602081101561cd5657600080fd5b810190808051906020019092919050505061cdd9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f6d696e74206661696c656420746f2076616c696461746f72206163636f756e7481525060200191505060405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167f6f5937add2ec38a0fa4959bccd86e3fcc2aafb706cd3e6c0565f87a7b36b99758486604051808381526020018281526020019250505060405180910390a361ce4f8461dbf9565b965050505050505061ce63565b6000925050505b92915050565b60008183101561ce79578161ce7b565b825b905092915050565b60008083141561ce96576000905061cf03565b600082840290508284828161cea757fe5b041461cefe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061e1d16021913960400191505060405180910390fd5b809150505b92915050565b600080600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206004019050600061cf5a61669e565b905060008083600101541461cf9c5761cf9761cf846001856001015461ae0f90919063ffffffff16565b846000015461ae5990919063ffffffff16565b61cf9f565b60005b90506000836001015411801561cfe15750600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b1561cff0574283600301819055505b6000836001015411801561d01b57508183600201600083815260200190815260200160002060000154145b1561d0c05760405180604001604052808381526020018673ffffffffffffffffffffffffffffffffffffffff168152508360020160008381526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050506001935050505061d324565b60008084600101541461d0e65761d0e160018361ae5990919063ffffffff16565b61d0e9565b60005b905060405180604001604052808481526020018773ffffffffffffffffffffffffffffffffffffffff168152508460020160008381526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050600d548460010154101561d1b25761d1a56001856001015461ae5990919063ffffffff16565b846001018190555061d31b565b600d548460010154141561d23057836002016000856000015481526020019081526020016000206000808201600090556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055505061d2236001856000015461ae5990919063ffffffff16565b846000018190555061d31a565b836002016000856000015481526020019081526020016000206000808201600090556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055505083600201600061d2996001876000015461ae5990919063ffffffff16565b81526020019081526020016000206000808201600090556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055505061d2f16001856001015461ae0f90919063ffffffff16565b846001018190555061d3116002856000015461ae5990919063ffffffff16565b84600001819055505b5b60019450505050505b92915050565b6000600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcf0aaed60405160200180807f456c656374696f6e0000000000000000000000000000000000000000000000008152506008019050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561d3e557600080fd5b505afa15801561d3f9573d6000803e3d6000fd5b505050506040513d602081101561d40f57600080fd5b8101908080519060200190929190505050905090565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206008019050808054905082141561d4a7578042908060018154018082558091505090600182039060005260206000200160009091929091909150555061d549565b808054905082101561d4d3574281838154811061d4c057fe5b906000526020600020018190555061d548565b600061d547576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f556e61626c6520746f207570646174652073697a6520686973746f727900000081525060200191505060405180910390fd5b5b5b505050565b600083831115829061d5fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561d5c057808201518184015260208101905061d5a5565b50505050905090810190601f16801561d5ed5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60007601357c299a88ea76a58924d52ce4f26a85af186c2b9e74905090565b61d63561ddb7565b60008360000151148061d64c575060008260000151145b1561d6685760405180602001604052806000815250905061da86565b69d3c21bcecceda10000008260000151141561d6865782905061da86565b69d3c21bcecceda10000008360000151141561d6a45781905061da86565b600069d3c21bcecceda100000061d6ba8561dd15565b600001518161d6c557fe5b049050600061d6d38561dd4c565b600001519050600069d3c21bcecceda100000061d6ef8661dd15565b600001518161d6fa57fe5b049050600061d7088661dd4c565b600001519050600082850290506000851461d79c578285828161d72757fe5b041461d79b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f6f766572666c6f7720783179312064657465637465640000000000000000000081525060200191505060405180910390fd5b5b600069d3c21bcecceda1000000820290506000821461d83e5769d3c21bcecceda100000082828161d7c957fe5b041461d83d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f6f766572666c6f772078317931202a206669786564312064657465637465640081525060200191505060405180910390fd5b5b809150600084860290506000861461d8cf578486828161d85a57fe5b041461d8ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f6f766572666c6f7720783279312064657465637465640000000000000000000081525060200191505060405180910390fd5b5b600084880290506000881461d95d578488828161d8e857fe5b041461d95c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f6f766572666c6f7720783179322064657465637465640000000000000000000081525060200191505060405180910390fd5b5b61d96561dd89565b878161d96d57fe5b04965061d97861dd89565b858161d98057fe5b049450600085880290506000881461da11578588828161d99c57fe5b041461da10576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f6f766572666c6f7720783279322064657465637465640000000000000000000081525060200191505060405180910390fd5b5b61da1961ddb7565b604051806020016040528087815250905061da428160405180602001604052808781525061be32565b905061da5c8160405180602001604052808681525061be32565b905061da768160405180602001604052808581525061be32565b9050809a50505050505050505050505b92915050565b61da9461ddb7565b81600001518360000151101561db12576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f737562737472616374696f6e20756e646572666c6f772064657465637465640081525060200191505060405180910390fd5b60405180602001604052808360000151856000015103815250905092915050565b6000808311829061dbdf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561dba457808201518184015260208101905061db89565b50505050905090810190601f16801561dbd15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161dbeb57fe5b049050809150509392505050565b600069d3c21bcecceda100000082600001518161dc1257fe5b049050919050565b6000600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcf0aaed60405160200180807f537461626c65546f6b656e000000000000000000000000000000000000000000815250600b019050604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561dcd557600080fd5b505afa15801561dce9573d6000803e3d6000fd5b505050506040513d602081101561dcff57600080fd5b8101908080519060200190929190505050905090565b61dd1d61ddb7565b604051806020016040528069d3c21bcecceda10000008085600001518161dd4057fe5b04028152509050919050565b61dd5461ddb7565b604051806020016040528069d3c21bcecceda10000008085600001518161dd7757fe5b04028460000151038152509050919050565b600064e8d4a51000905090565b508054600082559060005260206000209081019061ddb4919061debe565b50565b6040518060200160405280600081525090565b50805460018160011615610100020316600290046000825580601f1061ddf0575061de0f565b601f01602090049060005260206000209081019061de0e919061debe565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061de5357805160ff191683800117855561de81565b8280016001018555821561de81579182015b8281111561de8057825182559160200191906001019061de65565b5b50905061de8e919061debe565b5090565b81548183558181111561deb95781836000526020600020918201910161deb8919061debe565b5b505050565b61dee091905b8082111561dedc57600081600090555060010161dec4565b5090565b9056fe56616c696461746f7220646f65736e2774206d65657420726571756972656d656e74736572726f722063616c6c696e67206e756d62657256616c696461746f7273496e53657420707265636f6d70696c654f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373607265736574536c617368696e674d756c7469706c696572602063616c6c6564206265666f7265207265736574506572696f64206578706972656443616e2774206170706c7920636f6d6d697373696f6e2075706461746520796574557074696d65206172726179206c6172676572207468616e206d6178696d756d2067726f75702073697a6556616c696461746f7220726571756972656d656e7473206e6f74206368616e6765646572726f722063616c6c696e672067657456657269666965645365616c4269746d617046726f6d48656164657220707265636f6d70696c6563616e277420637265617465206669786964697479206e756d626572206c6172676572207468616e206d61784e65774669786564282956616c696461746f72206e6f742072656769737465726564207769746820612067726f757070726f766964656420696e64657820646f6573206e6f74206d617463682070726f76696465642065706f63684e756d62657220617420696e64657820696e20686973746f72792e6572726f722063616c6c696e672076616c696461746f725369676e65724164647265737346726f6d43757272656e7453657420707265636f6d70696c656572726f722063616c6c696e67206e756d62657256616c696461746f7273496e43757272656e7453657420707265636f6d70696c656572726f722063616c6c696e672076616c696461746f725369676e65724164647265737346726f6d53657420707265636f6d70696c654d656d6265727368697020686973746f7279206c656e6774682063616e6e6f74206265207a65726f45706f63682063616e6e6f74206265206c6172676572207468616e2063757272656e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d656d6265727368697020686973746f7279206c656e677468206e6f74206368616e6765646572726f722063616c6c696e67206672616374696f6e4d756c45787020707265636f6d70696c6564656c657465456c656d656e743a20696e646578206f7574206f662072616e67656572726f722063616c6c696e672067657445706f636853697a6520707265636f6d70696c656572726f722063616c6c696e6720676574506172656e745365616c4269746d617020707265636f6d70696c65636f6d6d697373696f6e207570646174652064656c6179206e6f74206368616e6765646572726f722063616c6c696e6720676574426c6f636b4e756d62657246726f6d48656164657220707265636f6d70696c654861736e2774206265656e20656d70747920666f72206c6f6e6720656e6f756768436f6d6d697373696f6e2063616e27742062652067726561746572207468616e203130302541646a7573746d656e742073706565642063616e6e6f74206265206c6172676572207468616e20316572726f722063616c6c696e67206861736848656164657220707265636f6d70696c6541646a7573746d656e7420737065656420616e64206578706f6e656e74206e6f74206368616e676564a265627a7a723158202dc04c40924b6f9e7b7822a22ce5b83f944b1851af9f8d4e31bf7cf963b5213c64736f6c634300050d0032