Contract 0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac 1

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x5e39536a77b5344fb09d2066dd9b85859e9594e6ebcf47e784bd33c48b47293bSet Approval For...139690752024-05-16 22:00:123 days 13 hrs ago0xd9ffa25a468254a238caf24f02d606c83636f6af IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.14684390
0x17655ff6d0d83385808922b332f03f76b108a70f36f81568f78e3a89a90f28ceSet Approval For...139119332024-05-13 3:33:417 days 8 hrs ago0xbb02ad71112b1e59191dddab58d122905029d5bc IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.14829780
0xa6a601b40d92df7ac5080c777d1ee1b46adb99b80824dfc3e3f0ab7c71662ee6Set Approval For...138990142024-05-12 7:09:048 days 4 hrs agoCronos ID Name up0nly.cro IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.15411340
0xb6209e88e6ebe90020ec19460a839aceb1c02b41af3147ff570c4ce8c3a11fd1Set Approval For...138988812024-05-12 6:56:268 days 4 hrs agoCronos ID Name up0nly.cro IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.15411340
0x710d4a53de2a9166fc2b5d19e5cc29542b8eb5ace0f9012d497f11bc72562c46Set Approval For...137950022024-05-05 10:21:1915 days 1 hr ago0xc54e9095b8cf9a33aef4127b9c88bff12b8e76e1 IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.1468220915 5,049.25
0xf56e94d13135397b89a70e88bb6913cc7357435d64dfaad5fa37fd92f4964ae3Approve133813692024-04-08 5:05:0342 days 6 hrs ago0x150ead3cadd53d4d0947103b08cfd356a4e10942 IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.5050
0x7c5770d3e4b88942a2b9b131e70d0e35df9ff8396aad8f8b68775057db991bf1Set Approval For...133716012024-04-07 13:44:5642 days 22 hrs ago0xd761e00dc1a804a8b61bca5a5d9bc12f2d334fcb IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.14684390
0x051555855d0becf25537b8926d46380c6b35bddf1978d987a09a869ae4864368Approve132939182024-04-02 12:02:0747 days 23 hrs ago0xf3549c12638f509b4959647a6e43a47295c47bf9 IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.883750
0x2b3533a0cb3a8628807c244023fd9f4d2309420a99837a0e42638b384f858f66Set Approval For...132808762024-04-01 15:29:4648 days 20 hrs ago0x0cd398d9a57ec078ae99ff8f344bb91ef44f712c IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.145433617 5,001.5
0xba60326b852d06bfeed6dc6ed92934fbcde551d251b58b6a00e5d73e5fb407dfSet Approval For...132688612024-03-31 20:32:4949 days 15 hrs ago0x92b738faccd45c3bf311959cbe7e05975d5180c0 IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.14675797451 5,047.045
0x88d82d895f8b39357f0ec515e14e42fe4761f205ea365c14a28a6d3f686f6fcbSet Approval For...132688592024-03-31 20:32:3849 days 15 hrs ago0x92b738faccd45c3bf311959cbe7e05975d5180c0 IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.146800283 5,048.5
0x9fa099b4dc49709776fb62abfb49e64cf69940dda0b3c7120457a201b8d12f14Set Approval For...132108722024-03-28 1:19:5753 days 10 hrs ago0x4424cc6ef9ea89dd273c276b6893b63ab2f93c05 IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.14675797451 5,047.045
0xa6df2e0687d8d255e9e2f619a5e262791aeddb383d23193bd922846add6c1b63Set Approval For...132009682024-03-27 9:45:4254 days 2 hrs ago0xac861624fe38ab8c8be7284835c0ed3752ccdbb9 IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.14675797451 5,047.045
0x2b8e9cc2ab32d6f962b0330342ee99f8645488f31736cfafb6c8906cc1703904Set Approval For...132009632024-03-27 9:45:1454 days 2 hrs ago0xac861624fe38ab8c8be7284835c0ed3752ccdbb9 IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.146800283 5,048.5
0xa832a14b7ecda6392fbe10972207eb95c63756a738708447da101eb1eb7703adSet Approval For...131943382024-03-26 23:21:3754 days 12 hrs ago0x6924232cfc513c4ff2a25345ed258c95ff9ae379 IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.146800283 5,048.5
0xcd44ade83c66c04b53464be601cbcc07b60c6a768c0514230b2da0aad292fcacSet Approval For...131919262024-03-26 19:34:0754 days 16 hrs ago0x37dcc16047d1a855736435bfca1ece4b463b8082 IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.148268722 5,099
0x5ab78671d40803b1c5b986ed0f510a3fd67c4f48736faf291d11680d062d21edSet Approval For...131918732024-03-26 19:29:0854 days 16 hrs ago0x37dcc16047d1a855736435bfca1ece4b463b8082 IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.148268722 5,099
0x8ee9562ba6fb284e5981e8a0d51b5d044f4e6b74c9c2394edb77588d7b76680bSet Approval For...131918712024-03-26 19:28:5754 days 16 hrs ago0x37dcc16047d1a855736435bfca1ece4b463b8082 IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.148268722 5,099
0x84737eb35b0f5e5f044cfddaf90b2194c1c347ad72a302c8ae1ecb4a9b74ed64Set Approval For...131908152024-03-26 17:49:2754 days 18 hrs ago0x3500cf131dac15de265b0cadbdb00b41054f7cbf IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.146800283 5,048.5
0x76acef10fba9c5cb6805a16b588842cff029d010001811d5a108b6c8dbfeece6Set Approval For...131908112024-03-26 17:49:0554 days 18 hrs ago0x3500cf131dac15de265b0cadbdb00b41054f7cbf IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.146800283 5,048.5
0x503eb85163281b35fa62618c6902c5df685d69b7131a6f5ef84e4be2433b0f82Set Approval For...131907142024-03-26 17:39:5654 days 18 hrs ago0xde00e148d7fc0335e6cb605ef731aff452e997b6 IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.146677127216 5,044.2646405
0x5b0338fb20463c48da68a2e27f3146472e905597e88f7bde25262b4e4086d08cSet Approval For...131906962024-03-26 17:38:1454 days 18 hrs ago0xde00e148d7fc0335e6cb605ef731aff452e997b6 IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.146800283 5,048.5
0x0e47489bb360ec89d5a27f8d697ad80025c42754d412e533288eff3d687c5589Set Approval For...131879342024-03-26 13:17:2754 days 22 hrs ago0x2ea664c8db54bfac4a7a2104f6e7837127decf2b IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.146800283 5,048.5
0x541e19a973af358b7506af9c310a041882beb49ab12032d2519628cba7861757Set Approval For...131879332024-03-26 13:17:2154 days 22 hrs ago0x2ea664c8db54bfac4a7a2104f6e7837127decf2b IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.146800283 5,048.5
0x98cfb162b058b03190714d7df410b8d41f2eabf9a4c8e6788233e4981be346a8Set Approval For...131879242024-03-26 13:16:3054 days 22 hrs ago0x6ae5a1e47d277d624928e6a4d5b0feecd3d5ce7a IN  0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0 CRO0.14684390
[ Download CSV Export 
Latest 7 internal transactions
Parent Txn Hash Block From To Value
0xb95f5d46de5cbc5787480b1068c8906158557a652054b39ae6e8796c8b9b4fc820790802022-03-26 20:18:48785 days 15 hrs ago 0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0xf7fcbc231a9450bc4bd1037d5961ec9ca555026429,994 CRO
0xb95f5d46de5cbc5787480b1068c8906158557a652054b39ae6e8796c8b9b4fc820790802022-03-26 20:18:48785 days 15 hrs ago 0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0xf43d2e70fae713b12f4f47d77b135bfa24b8aaaf479,904 CRO
0xb95f5d46de5cbc5787480b1068c8906158557a652054b39ae6e8796c8b9b4fc820790802022-03-26 20:18:48785 days 15 hrs ago 0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0x0795436933b6177655a7120493a70608d1e85074299,940 CRO
0xb95f5d46de5cbc5787480b1068c8906158557a652054b39ae6e8796c8b9b4fc820790802022-03-26 20:18:48785 days 15 hrs ago 0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0xc0129793a27c8583477cc458fd289d478a3714a4299,940 CRO
0xb95f5d46de5cbc5787480b1068c8906158557a652054b39ae6e8796c8b9b4fc820790802022-03-26 20:18:48785 days 15 hrs ago 0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0x74c609f880eb4655fa3abb448e221de38325fa8489,982 CRO
0xb95f5d46de5cbc5787480b1068c8906158557a652054b39ae6e8796c8b9b4fc820790802022-03-26 20:18:48785 days 15 hrs ago 0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0xe963faecdb120d34c88f33fa99b6b90219252451149,970 CRO
0xb95f5d46de5cbc5787480b1068c8906158557a652054b39ae6e8796c8b9b4fc820790802022-03-26 20:18:48785 days 15 hrs ago 0xd8cdca552c2419daeef7598c9a4c6ff3526d35ac0xb12d6e1efd1bd1c04ff114fd54612468067a2d0f149,970 CRO
[ Download CSV Export 
Index Block
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CronosFootballClub

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 1 of 32: CronosFootballClub.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

import "./Ownable.sol";
import "./Pauseable.sol";
import "./ERC721Enumerable.sol";
import "./ICronosFootballClub.sol";
import "./IField.sol";
import "./ITraits.sol";
import "./IGOAL.sol";
import "./Pauseable.sol";
import "./ISeed.sol";
import "./PaymentSplitter.sol";
import "./IRandomisator.sol"; 

contract CronosFootballClub is ICronosFootballClub, ERC721Enumerable, Ownable, Pauseable, PaymentSplitter {

    // mint price
    uint256 public MINT_PRICE = 300 ether;
    uint256 public MAX_MINT_VIP = 3;
    // max number of tokens that can be minted - 25000 in production
    uint256 public immutable MAX_TOKENS;
    // number of tokens that can be claimed for 400 CRO - 5000
    uint256 public PAID_TOKENS;
    // number of tokens have been minted so far
    uint16 public minted;

    // list of whitelist addresses
    address[] public whitelistAddresses;

    // mapping from tokenId to a struct containing the token's traits
    mapping(uint256 => PlayerGoalkeeper) public tokenTraits;
    // mapping from hashed(tokenTrait) to the tokenId it's associated with
    // used to ensure there are no duplicates
    mapping(uint256 => uint256) public existingCombinations;
    // reference to the Field for choosing random Goalkeeper thieves
    IField public field;
    // reference to $GOAL for burning on mint
    IGOAL public goal;
    // reference to Traits
    ITraits public traits;

    bool public preSaleState = false;
    bool public publicSaleState = false;

    ISeed public randomSource;
    IRandomisator public randomPlayer;
    address[] _team = [0xb12d6e1Efd1bD1C04Ff114fD54612468067a2D0f,0xe963FAecDb120d34c88F33Fa99b6b90219252451,0x74C609f880EB4655fa3aBB448e221dE38325fa84,0xc0129793A27c8583477cc458Fd289d478a3714A4,0x0795436933b6177655a7120493a70608d1E85074,0xF43D2E70faE713B12f4F47d77B135BfA24B8AAAf,0xF7FCBC231a9450Bc4bd1037d5961EC9ca5550264];
    uint256[] _shares = [10,10,6,20,20,32,2]; 

    // list of addresses with free mints
    mapping(address => uint) private airdrops;

    // number of nft minted
    mapping(address => uint256) balanceSale;

    // mapping from user address to type of whitelist
    mapping(address => uint8) public whitelistTypes;

    bool private _reentrant = false;
    bool private stakingActive = true;

    modifier nonReentrant() {
        require(!_reentrant, "No reentrancy");
        _reentrant = true;
        _;
        _reentrant = false;
    }

    /**
     * instantiates contract and rarity tables
     */
    constructor(IGOAL _goal, ITraits _traits, uint256 _maxTokens) ERC721("Cronos FC", 'CFC') PaymentSplitter(_team, _shares){
        goal = _goal;
        traits = _traits;
       // _pause();

        MAX_TOKENS = _maxTokens;
        PAID_TOKENS = _maxTokens / 5;
    }

    function setRandomSource(ISeed _seed) external onlyOwner {
        randomSource = _seed;
    }
    function setRandomisator(IRandomisator _randomPlayer) external onlyOwner {
        randomPlayer = _randomPlayer;
    }

    function getFreeMintOf(address _account) view external returns (uint) {
        return airdrops[_account];
    }

    function changeStatePreSale() public onlyOwner returns(bool) {
        preSaleState = !preSaleState;
        return preSaleState;
    }

    function changeStatePublicSale() public onlyOwner returns(bool) {
        publicSaleState = !publicSaleState;
        return publicSaleState;
    }


    /***EXTERNAL */

    /**
     * mint a token - 90% Player, 10% Goalkeeper
     * The first 20% are free to claim, the remaining cost $GOAL
     */
    
    function publicMint(uint256 amount, bool stake) external payable nonReentrant whenNotPaused {
        require(!stake || stakingActive, "Staking not activated");
        require(publicSaleState, "Public Sale is not active");

        require(tx.origin == _msgSender(), "Only EOA");
        require(minted + amount <= MAX_TOKENS, "All tokens minted");
        require(amount > 0 && amount <= MAX_MINT_VIP, "Invalid mint amount");


        if (minted < PAID_TOKENS) {
            require(minted + amount <= PAID_TOKENS, "All tokens on-sale already sold");
            require(amount * MINT_PRICE == msg.value, "Invalid payment amount");
        } else {
            require(msg.value == 0);
        }

        uint256 totalGoalCost = 0;
        uint16[] memory tokenIds = new uint16[](amount);
        address[] memory owners = new address[](amount);
        uint256 seed;
        uint256 firstMinted = minted;

        for (uint i = 0; i < amount; i++) {
            minted++;
            seed = random(minted);
            randomSource.update(minted ^ seed);
            generate(minted, seed);
            address recipient = selectRecipient(seed);
            totalGoalCost += mintCost(minted);
            if (!stake || recipient != _msgSender()) {
                owners[i] = recipient;
            } else {
                tokenIds[i] = minted;
                owners[i] = address(field);
            }

        }

        if (totalGoalCost > 0) goal.burn(_msgSender(), totalGoalCost);

        for (uint i = 0; i < owners.length; i++) {
            uint id = firstMinted + i + 1;
            if (!stake || owners[i] != _msgSender()) {
                balanceSale[_msgSender()] += amount;
                _safeMint(owners[i], id);
            }
        }
        if (stake) field.addManyToFieldAndPack(_msgSender(), tokenIds);
    }
    function freeMint(uint256 amount, bool stake) external nonReentrant whenNotPaused {
        require(tx.origin == _msgSender(), "Only EOA");
        require(minted + amount <= MAX_TOKENS, "All tokens minted");
        require(publicSaleState, "Sale is not active");
        require(amount <= airdrops[_msgSender()], "Amount exceed airdrop");
        airdrops[_msgSender()] -= amount;

        uint16[] memory tokenIds = new uint16[](amount);
        address[] memory owners = new address[](amount);
        uint256 seed;
        uint256 firstMinted = minted;

        for (uint256 i = 0; i < amount; i++) {
          minted++;
          seed = random(minted);
          randomSource.update(minted ^ seed);
          generate(minted, seed);
          address recipient = selectRecipient(seed);
          if (!stake || recipient != _msgSender()) {
            owners[i] = recipient;
          } else {
            tokenIds[i] = minted;
            owners[i] = address(field);
          }
        }

        for (uint256 i = 0; i < owners.length; i++) {
          uint256 id = firstMinted + i + 1;
          if (!stake || owners[i] != _msgSender()) {
            _safeMint(owners[i], id);
          }
        }
        if (stake) field.addManyToFieldAndPack(_msgSender(), tokenIds);
    } 

    function airdropTo(address to, uint256 amount, bool stake) external onlyOwner nonReentrant whenNotPaused {
        require(tx.origin == _msgSender(), "Only EOA");
        require(minted + amount <= MAX_TOKENS, "All tokens minted");
    
        uint16[] memory tokenIds = new uint16[](amount);
        address[] memory owners = new address[](amount);
        uint256 seed;
        uint256 firstMinted = minted;

        for (uint256 i = 0; i < amount; i++) {
          minted++;
          seed = random(minted);
          randomSource.update(minted ^ seed);
          generate(minted, seed);
          address recipient = selectRecipient(seed);
          if (!stake || recipient != to) {
            owners[i] = recipient;
          } else {
            tokenIds[i] = minted;
            owners[i] = address(field);
          }
        }

        for (uint256 i = 0; i < owners.length; i++) {
          uint256 id = firstMinted + i + 1;
          if (!stake || owners[i] != to) {
            _safeMint(owners[i], id);
          }
        }
        if (stake) field.addManyToFieldAndPack(to, tokenIds);
    }  

    /**
     * the first 20% are paid in CRO
     * the next 20% are 20000 $GOAL
     * the next 40% are 40000 $GOAL
     * the final 20% are 80000 $GOAL
     * @param tokenId the ID to check the cost of to mint
   * @return the cost of the given token ID
   */
    function mintCost(uint256 tokenId) public view returns (uint256) {
        if (tokenId <= PAID_TOKENS) return 0;
		if (tokenId <= PAID_TOKENS + 3000) return 2000 ether;
		if (tokenId <= PAID_TOKENS + 6000) return 3000 ether;
        if (tokenId <= PAID_TOKENS + 9000) return 4000 ether;
        if (tokenId <= PAID_TOKENS + 12000) return 5000 ether;
        return 60000 ether;
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override nonReentrant {
        // Hardcode the Field's approval so that users don't have to waste gas approving
        if (_msgSender() != address(field))
            require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _transfer(from, to, tokenId);
    }

    /***INTERNAL */

    /**
     * generates traits for a specific token, checking to make sure it's unique
     * @param tokenId the id of the token to generate traits for
     * @param seed a pseudorandom 256 bit number to derive traits from
     * @return t - a struct of traits for the given token ID
    */
    function generate(uint256 tokenId, uint256 seed) internal returns (PlayerGoalkeeper memory t) {
        t = selectTraits(seed);
        if (existingCombinations[structToHash(t)] == 0) {
            tokenTraits[tokenId] = t;
            existingCombinations[structToHash(t)] = tokenId;
            return t;
        }
        return generate(tokenId, random(seed));
    }

    /**
     * uses A.J. Walker's Alias algorithm for O(1) rarity table lookup
     * ensuring O(1) instead of O(n) reduces mint cost by more than 50%
     * probability & alias tables are generated off-chain beforehand
     * @param seed portion of the 256 bit seed to remove trait correlation
     * @param traitType the trait type to select a trait for
     * @return the ID of the randomly selected trait
    */
    function selectTrait(uint16 seed, uint8 traitType) internal view returns (uint8) {
        return traits.selectTrait(seed, traitType);
    }



    /**
     * the first 20% (ETH purchases) go to the minter
     * the remaining 80% have a 10% chance to be given to a random staked goalkeeper
     * @param seed a random value to select a recipient from
     * @return the address of the recipient (either the minter or the Goalkeeper thief's owner)
   */
    function selectRecipient(uint256 seed) internal view returns (address) {
        if (minted <= PAID_TOKENS || ((seed >> 245) % 10) != 0) return _msgSender();
        // top 10 bits haven't been used
        address player = field.randomGoalkeeperOwner(seed >> 144);
        // 144 bits reserved for trait selection
        if (player == address(0x0)) return _msgSender();
        return player;
    }



    /**
     * selects the species and all of its traits based on the seed value
     * @param seed a pseudorandom 256 bit number to derive traits from
     * @return t -  a struct of randomly selected traits
   */
    function selectTraits(uint256 seed) internal view returns (PlayerGoalkeeper memory t) {
       //t.isPlayer = (seed & 0xFFFF) % 10 != 0;
       t.isPlayer = randomPlayer.getRandom();
       //t.isPlayer = randomPlayer == false;
       //t.isPlayer = seed%10 !=0;
        uint8 shift = t.isPlayer ? 0 : 10;

        seed >>= 16;
        t.skin = selectTrait(uint16(seed & 0xFFFF), 0 + shift);

        seed >>= 16;
        t.jersey = selectTrait(uint16(seed & 0xFFFF), 1 + shift);

        seed >>= 16;
        t.shorts = selectTrait(uint16(seed & 0xFFFF), 2 + shift);

        seed >>= 16;
        t.hair = selectTrait(uint16(seed & 0xFFFF), 3 + shift);

        seed >>= 16;
        t.ball = selectTrait(uint16(seed & 0xFFFF), 4 + shift);

        seed >>= 16;
        if (!t.isPlayer) {
            if (!randomPlayer.getRandom()) {
                t.isCaptain = true;
                t.captain = 0;
            }
            
            //alphaIndex = selectTrait(uint16(seed & 0xFFFF), 8 + shift);
            t.alphaIndex = 5;
        }
    }

    /**
     * converts a struct to a 256 bit hash to check for uniqueness
     * @param s the struct to pack into a hash
     * @return the 256 bit hash of the struct
   */
    function structToHash(PlayerGoalkeeper memory s) internal pure returns (uint256) {
        return uint256(keccak256(
                abi.encodePacked(
                    s.isPlayer,
                    s.isCaptain,
                    s.skin,
                    s.jersey,
                    s.shorts,
                    s.hair,
                    s.ball,
                    s.captain,
                    s.alphaIndex
                )
            ));
    }

    /**
     * generates a pseudorandom number
     * @param seed a value ensure different outcomes for different sources in the same block
     * @return a pseudorandom value
   */
    function random(uint256 seed) internal view returns (uint256) {
        return uint256(keccak256(abi.encodePacked(
                tx.origin,
                blockhash(block.number - 1),
                block.difficulty, 
                block.timestamp,
                seed
            ))) ^ randomSource.seed();
    }

    /***READ ***/

    function getTokenTraits(uint256 tokenId) external view override returns (PlayerGoalkeeper memory) {
        return tokenTraits[tokenId];
    }

    function getPaidTokens() external view override returns (uint256) {
        return PAID_TOKENS;
    }

    function isWhitelisted(address _user) public view returns (bool) {
        for (uint256 i = 0; i < whitelistAddresses.length; i++) {
            if(whitelistAddresses[i] == _user) {
                return true;
            }
        }
        return false;
    } 

    /***ADMIN */

    /**
     * called after deployment so that the contract can get random goalkeeper thieves
     * @param _field the address of the Field
   */
    function setField(address _field) external onlyOwner {
        field = IField(_field);
    }

    /**
     * allows owner to withdraw funds from minting
     */
    function withdraw() external onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

    /**
     * updates the number of tokens for sale
     */
    function setPaidTokens(uint256 _paidTokens) external onlyOwner {
        PAID_TOKENS = _paidTokens;
    }

    /**
     * enables owner to pause / unpause minting
     */
    function setPaused(bool _paused) external onlyOwner {
        if (_paused) _pause();
        else _unpause();
    }

    /***RENDER */

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        return traits.tokenURI(tokenId);
    }

    function changePrice(uint256 _price) public onlyOwner {
        MINT_PRICE = _price;
    }

    function setStakingActive(bool _staking) public onlyOwner {
        stakingActive = _staking;
    }

    function setTraits(ITraits addr) public onlyOwner {
        traits = addr;
    }

    function addAidrops(address [] calldata _addresses, uint[] calldata _values) public onlyOwner {
        require(_addresses.length == _values.length, "Number of addresses is different than the number of values");
        for (uint256 i = 0; i < _values.length; i++) {
            airdrops[_addresses[i]] = _values[i];
        }
    }

    function setWhitelistUsers(address [] calldata _addresses) public onlyOwner {
        delete whitelistAddresses;
        whitelistAddresses = _addresses;
    }
    function withdrawAll() external onlyOwner nonReentrant {
        for (uint256 i = 0; i < _team.length; i++) {
            address payable wallet = payable(_team[i]);
            release(wallet);
        }
    }
    
    function whitelistMint(uint256 amount, bool stake) external payable nonReentrant whenNotPaused {
        require(!stake || stakingActive, "Staking not activated");

        require(publicSaleState, "Sale is not active");
        require(isWhitelisted(_msgSender()), "User not whitelisted");
        require(tx.origin == _msgSender(), "Only EOA");
        require(minted + amount <= MAX_TOKENS, "All tokens minted");
        require(amount > 0, "Invalid mint amount");
        require(msg.value >= amount * getPriceForUser(_msgSender() ), "Invalid payment amount");

        if (whitelistTypes[_msgSender()]==1) {
            // OG whitelist
            require(amount<=3, "Invalid mint amount");
            MINT_PRICE = 150 ether;
        }
        else {
            // Ebisus
            require(amount==1, "Invalid mint amount");
            MINT_PRICE = 225 ether;
        }
        

        if (minted < PAID_TOKENS) {
            require(minted + amount <= PAID_TOKENS, "All tokens on-sale already sold");
            require(amount * MINT_PRICE == msg.value, "Invalid payment amount");
        } else {
            require(msg.value == 0);
        }

        uint256 totalGoalCost = 0;
        uint16[] memory tokenIds = new uint16[](amount);
        address[] memory owners = new address[](amount);
        uint256 seed;
        uint256 firstMinted = minted;

        for (uint i = 0; i < amount; i++) {
            minted++;
            seed = random(minted);
            randomSource.update(minted ^ seed);
            generate(minted, seed);
            address recipient = selectRecipient(seed);
            totalGoalCost += mintCost(minted);
            if (!stake || recipient != _msgSender()) {
                owners[i] = recipient;
            } else {
                tokenIds[i] = minted;
                owners[i] = address(field);
            }

        }

        if (totalGoalCost > 0) goal.burn(_msgSender(), totalGoalCost);

        for (uint i = 0; i < owners.length; i++) {
            uint id = firstMinted + i + 1;
            if (!stake || owners[i] != _msgSender()) {
                balanceSale[_msgSender()] += amount;
                _safeMint(owners[i], id);
            }
        }

        removeFromWhitelist(_msgSender());
        whitelistTypes[_msgSender()] = 0;

        if (stake) field.addManyToFieldAndPack(_msgSender(), tokenIds);
    }


    function addWhitelistUsers(address [] calldata _addresses, uint8[] calldata _wltypes) public onlyOwner {
        require(_addresses.length==_wltypes.length, "Mismatched inputs");
        for (uint i=0; i<_addresses.length; i++) {
            whitelistAddresses.push(_addresses[i]);
            whitelistTypes[_addresses[i]] = _wltypes[i];
        }
    }

    function removeFromWhitelist(address _user) public onlyOwner {
        for (uint i=0; i<whitelistAddresses.length; i++) {
            if (whitelistAddresses[i]==_user) {
                whitelistAddresses[i] = whitelistAddresses[whitelistAddresses.length-1];
                whitelistAddresses.pop();
                whitelistTypes[_user] = 0;
            }
            
        }
    }

    function getPriceForUser(address _user) public view returns(uint256){
        if (whitelistTypes[_user] == 1) {
            // -50% WL
            return MINT_PRICE /2; // -50% WL
        }

        else if (whitelistTypes[_user] == 2) {
            
            return MINT_PRICE * 3/4; // -25% WL
        }

        else {
            // No WL
            return 300 ether;
        }
    }

    function tokensOfUser(address _user) public view returns (uint256[] memory) {
        uint256 tokenCount = balanceOf(_user);
        uint256[] memory tokenIds = new uint256[](tokenCount);
        for(uint256 i; i < tokenCount; i++){
            tokenIds[i] = tokenOfOwnerByIndex(_user, i);
        }
        return tokenIds;
    }
}

File 2 of 32: Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 3 of 32: Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 4 of 32: ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 5 of 32: ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./IERC20Metadata.sol";
import "./Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
    unchecked {
        _approve(sender, _msgSender(), currentAllowance - amount);
    }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
    unchecked {
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);
    }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
    unchecked {
        _balances[sender] = senderBalance - amount;
    }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /***@dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
    unchecked {
        _balances[account] = accountBalance - amount;
    }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 6 of 32: ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./IERC721Metadata.sol";
import "./Address.sol";
import "./Context.sol";
import "./Strings.sol";
import "./ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

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

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
        interfaceId == type(IERC721).interfaceId ||
        interfaceId == type(IERC721Metadata).interfaceId ||
        super.supportsInterface(interfaceId);
    }

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

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

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

        _balances[to] += 1;
        _owners[tokenId] = to;

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

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

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

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

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 7 of 32: ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 8 of 32: Field.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

import "./IERC721Receiver.sol";
import "./Pauseable.sol";
import "./CronosFootballClub.sol";
import "./GOAL.sol";

contract Field is Ownable, IERC721Receiver, Pauseable {

    // maximum alpha score for a Goalkeeper
    uint8 public constant MAX_ALPHA = 1;

    // struct to store a stake's token, owner, and earning values
    struct Stake {
        uint16 tokenId;
        uint80 value;
        address owner;
    }

    event TokenStaked(address owner, uint256 tokenId, uint256 value);
    event PlayerClaimed(uint256 tokenId, uint256 earned, bool unstaked);
    event GoalkeeperClaimed(uint256 tokenId, uint256 earned, bool unstaked);

    // reference to the CronosFootballClub NFT contract
    CronosFootballClub game;
    // reference to the $GOAL contract for minting $GOAL earnings
    GOAL goal;

    // maps tokenId to stake
    mapping(uint256 => Stake) public field;
    // maps alpha to all Goalkeeper stakes with that alpha
    mapping(uint256 => Stake[]) public pack;
    // tracks location of each Goalkeeper in Pack
    mapping(uint256 => uint256) public packIndices;
    // total alpha scores staked
    uint256 public totalAlphaStaked = 0;
    // any rewards distributed when no goalkeepers are staked
    uint256 public unaccountedRewards = 0;
    // amount of $GOAL due for each alpha point staked
    uint256 public goalPerAlpha = 0;

    // Player earn 400 $GOAL per day
    uint256 public DAILY_GOAL_RATE = 400 ether;
    // Player must have 2 days worth of $GOAL to unstake or else it's too cold
    uint256 public MINIMUM_TO_EXIT = 2 days;
    // goalkeepers take a 20% tax on all $GOAL claimed
    uint256 public constant GOAL_CLAIM_TAX_PERCENTAGE = 20;
    // there will only ever be (roughly) 250 million $GOAL earned through staking
    uint256 public constant MAXIMUM_GLOBAL_GOAL = 250000000 ether;

    // amount of $GOAL earned so far
    uint256 public totalGoalEarned;
    // number of Player staked in the Field
    uint256 public totalPlayerStaked;
    // the last time $GOAL was claimed
    uint256 public lastClaimTimestamp;

    // emergency rescue to allow unstaking without any checks but without $GOAL
    bool public rescueEnabled = false;

    bool private _reentrant = false;

    modifier nonReentrant() {
        require(!_reentrant, "No reentrancy");
        _reentrant = true;
        _;
        _reentrant = false;
    }

    /**
     * @param _game reference to the CronosFootballClub NFT contract
   * @param _goal reference to the $GOAL token
   */
    constructor(CronosFootballClub _game, GOAL _goal) {
        game = _game;
        goal = _goal;
    }

    /***STAKING */

    /**
     * adds Players and Goalkeepers to the Field and Pack
     * @param account the address of the staker
   * @param tokenIds the IDs of the Player and Goalkeepers to stake
   */
    function addManyToFieldAndPack(address account, uint16[] calldata tokenIds) external nonReentrant {
        require((account == _msgSender() && account == tx.origin) || _msgSender() == address(game), "DONT GIVE YOUR TOKENS AWAY");

        for (uint i = 0; i < tokenIds.length; i++) {
            if (tokenIds[i] == 0) {
                continue;
            }

            if (_msgSender() != address(game)) {// dont do this step if its a mint + stake
                require(game.ownerOf(tokenIds[i]) == _msgSender(), "AINT YO TOKEN");
                game.transferFrom(_msgSender(), address(this), tokenIds[i]);
            }

            if (isPlayer(tokenIds[i]))
                _addPlayerToField(account, tokenIds[i]);
            else
                _addGoalkeeperToPack(account, tokenIds[i]);
        }
    }

    /**
     * adds a single Player to the Field
     * @param account the address of the staker
   * @param tokenId the ID of the Player to add to the Field
   */
    function _addPlayerToField(address account, uint256 tokenId) internal whenNotPaused _updateEarnings {
        field[tokenId] = Stake({
        owner : account,
        tokenId : uint16(tokenId),
        value : uint80(block.timestamp)
        });
        totalPlayerStaked += 1;
        emit TokenStaked(account, tokenId, block.timestamp);
    }

    /**
     * adds a single Goalkeeper to the Pack
     * @param account the address of the staker
   * @param tokenId the ID of the Goalkeeper to add to the Pack
   */
    function _addGoalkeeperToPack(address account, uint256 tokenId) internal {
        uint256 alpha = _alphaForGoalkeeper(tokenId);
        totalAlphaStaked += alpha;
        // Portion of earnings ranges from 8 to 5
        packIndices[tokenId] = pack[alpha].length;
        // Store the location of the Goalkeeper in the Pack
        pack[alpha].push(Stake({
        owner : account,
        tokenId : uint16(tokenId),
        value : uint80(goalPerAlpha)
        }));
        // Add the Goalkeeper to the Pack
        emit TokenStaked(account, tokenId, goalPerAlpha);
    }

    /***CLAIMING / UNSTAKING */

    /**
     * realize $GOAL earnings and optionally unstake tokens from the Field / Pack
     * to unstake a Player it will require it has 2 days worth of $GOAL unclaimed
     * @param tokenIds the IDs of the tokens to claim earnings from
   * @param unstake whether or not to unstake ALL of the tokens listed in tokenIds
   */
    function claimManyFromFieldAndPack(uint16[] calldata tokenIds, bool unstake) external nonReentrant whenNotPaused _updateEarnings {
        require(msg.sender == tx.origin, "Only EOA");
        uint256 owed = 0;
        for (uint i = 0; i < tokenIds.length; i++) {
            if (isPlayer(tokenIds[i]))
                owed += _claimPlayerFromField(tokenIds[i], unstake);
            else
                owed += _claimGoalkeeperFromPack(tokenIds[i], unstake);
        }
        if (owed == 0) return;
        goal.mint(_msgSender(), owed);
    }

    /**
     * realize $GOAL earnings for a single Player and optionally unstake it
     * if not unstaking, pay a 20% tax to the staked Goalkeepers
     * if unstaking, there is a 50% chance all $GOAL is stolen
     * @param tokenId the ID of the Player to claim earnings from
   * @param unstake whether or not to unstake the Player
   * @return owed - the amount of $GOAL earned
   */
    function _claimPlayerFromField(uint256 tokenId, bool unstake) internal returns (uint256 owed) {
        Stake memory stake = field[tokenId];
        require(stake.owner == _msgSender(), "SWIPER, NO SWIPING");
        require(!(unstake && block.timestamp - stake.value < MINIMUM_TO_EXIT), "GONNA BE COLD WITHOUT TWO DAY'S GOAL");
        if (totalGoalEarned < MAXIMUM_GLOBAL_GOAL) {
            owed = (block.timestamp - stake.value) * DAILY_GOAL_RATE / 1 days;
        } else if (stake.value > lastClaimTimestamp) {
            owed = 0;
            // $GOAL production stopped already
        } else {
            owed = (lastClaimTimestamp - stake.value) * DAILY_GOAL_RATE / 1 days;
            // stop earning additional $GOAL if it's all been earned
        }
        if (unstake) {
            if (random(tokenId) & 1 == 1) {// 50% chance of all $GOAL stolen
                _payGoalkeeperTax(owed);
                owed = 0;
            }
            game.transferFrom(address(this), _msgSender(), tokenId);
            // send back Player
            delete field[tokenId];
            totalPlayerStaked -= 1;
        } else {
            _payGoalkeeperTax(owed * GOAL_CLAIM_TAX_PERCENTAGE / 100);
            // percentage tax to staked goalkeepers
            owed = owed * (100 - GOAL_CLAIM_TAX_PERCENTAGE) / 100;
            // remainder goes to Player owner
            field[tokenId] = Stake({
            owner : _msgSender(),
            tokenId : uint16(tokenId),
            value : uint80(block.timestamp)
            });
            // reset stake
        }
        emit PlayerClaimed(tokenId, owed, unstake);
    }

    /**
     * realize $GOAL earnings for a single Goalkeeper and optionally unstake it
     * Goalkeepers earn $GOAL proportional to their Alpha rank
     * @param tokenId the ID of the Goalkeeper to claim earnings from
   * @param unstake whether or not to unstake the Goalkeeper
   * @return owed - the amount of $GOAL earned
   */
    function _claimGoalkeeperFromPack(uint256 tokenId, bool unstake) internal returns (uint256 owed) {
        require(game.ownerOf(tokenId) == address(this), "AINT A PART OF THE PACK");
        uint256 alpha = _alphaForGoalkeeper(tokenId);
        Stake memory stake = pack[alpha][packIndices[tokenId]];
        require(stake.owner == _msgSender(), "SWIPER, NO SWIPING");
        owed = (alpha) * (goalPerAlpha - stake.value);
        // Calculate portion of tokens based on Alpha
        if (unstake) {
            totalAlphaStaked -= alpha;
            // Remove Alpha from total staked
            game.transferFrom(address(this), _msgSender(), tokenId);
            // Send back Goalkeeper
            Stake memory lastStake = pack[alpha][pack[alpha].length - 1];
            pack[alpha][packIndices[tokenId]] = lastStake;
            // Shuffle last Goalkeeper to current position
            packIndices[lastStake.tokenId] = packIndices[tokenId];
            pack[alpha].pop();
            // Remove duplicate
            delete packIndices[tokenId];
            // Delete old mapping
        } else {
            pack[alpha][packIndices[tokenId]] = Stake({
            owner : _msgSender(),
            tokenId : uint16(tokenId),
            value : uint80(goalPerAlpha)
            });
            // reset stake
        }
        emit GoalkeeperClaimed(tokenId, owed, unstake);
    }

    /**
     * emergency unstake tokens
     * @param tokenIds the IDs of the tokens to claim earnings from
   */
    function rescue(uint256[] calldata tokenIds) external nonReentrant {
        require(rescueEnabled, "RESCUE DISABLED");
        uint256 tokenId;
        Stake memory stake;
        Stake memory lastStake;
        uint256 alpha;
        for (uint i = 0; i < tokenIds.length; i++) {
            tokenId = tokenIds[i];
            if (isPlayer(tokenId)) {
                stake = field[tokenId];
                require(stake.owner == _msgSender(), "SWIPER, NO SWIPING");
                game.transferFrom(address(this), _msgSender(), tokenId);
                // send back Player
                delete field[tokenId];
                totalPlayerStaked -= 1;
                emit PlayerClaimed(tokenId, 0, true);
            } else {
                alpha = _alphaForGoalkeeper(tokenId);
                stake = pack[alpha][packIndices[tokenId]];
                require(stake.owner == _msgSender(), "SWIPER, NO SWIPING");
                totalAlphaStaked -= alpha;
                // Remove Alpha from total staked
                game.transferFrom(address(this), _msgSender(), tokenId);
                // Send back Goalkeeper
                lastStake = pack[alpha][pack[alpha].length - 1];
                pack[alpha][packIndices[tokenId]] = lastStake;
                // Shuffle last Goalkeeper to current position
                packIndices[lastStake.tokenId] = packIndices[tokenId];
                pack[alpha].pop();
                // Remove duplicate
                delete packIndices[tokenId];
                // Delete old mapping
                emit GoalkeeperClaimed(tokenId, 0, true);
            }
        }
    }

    /***ACCOUNTING */

    /**
     * add $GOAL to claimable pot for the Pack
     * @param amount $GOAL to add to the pot
   */
    function _payGoalkeeperTax(uint256 amount) internal {
        if (totalAlphaStaked == 0) {// if there's no staked goalkeepers
            unaccountedRewards += amount;
            // keep track of $GOAL due to goalkeepers
            return;
        }
        // makes sure to include any unaccounted $GOAL
        goalPerAlpha += (amount + unaccountedRewards) / totalAlphaStaked;
        unaccountedRewards = 0;
    }


    /**
     * tracks $GOAL earnings to ensure it stops once 2.4 billion is eclipsed
     */
    modifier _updateEarnings() {
        if (totalGoalEarned < MAXIMUM_GLOBAL_GOAL) {
            totalGoalEarned +=
            (block.timestamp - lastClaimTimestamp)
            * totalPlayerStaked
            * DAILY_GOAL_RATE / 1 days;
            lastClaimTimestamp = block.timestamp;
        }
        _;
    }

    /***ADMIN */

    function setSettings(uint256 rate, uint256 exit) external onlyOwner {
        MINIMUM_TO_EXIT = exit;
        DAILY_GOAL_RATE = rate;
    }

    /**
     * allows owner to enable "rescue mode"
     * simplifies accounting, prioritizes tokens out in emergency
     */
    function setRescueEnabled(bool _enabled) external onlyOwner {
        rescueEnabled = _enabled;
    }

    /**
     * enables owner to pause / unpause minting
     */
    function setPaused(bool _paused) external onlyOwner {
        if (_paused) _pause();
        else _unpause();
    }

    /***READ ONLY */

    /**
     * checks if a token is a Player
     * @param tokenId the ID of the token to check
   * @return Player - whether or not a token is a Player
   */
    function isPlayer(uint256 tokenId) public view returns (bool Player) {
        (Player, , , , , , , , ) = game.tokenTraits(tokenId);
    }


    /**
     * gets the alpha score for a Goalkeeper
     * @param tokenId the ID of the Goalkeeper to get the alpha score for
   * @return the alpha score of the Goalkeeper (5-8)
   */
    function _alphaForGoalkeeper(uint256 tokenId) internal view returns (uint8) {
        (, , , , , , , , uint8 alphaIndex) = game.tokenTraits(tokenId);
        return MAX_ALPHA - alphaIndex;
        // alpha index is 0-1
    }

    /**
     * chooses a random Goalkeeper Player when a newly minted token is stolen
     * @param seed a random value to choose a Goalkeeper from
   * @return the owner of the randomly selected Goalkeeper Player
   */
    function randomGoalkeeperOwner(uint256 seed) external view returns (address) {
        if (totalAlphaStaked == 0) return address(0x0);
        uint256 bucket = (seed & 0xFFFFFFFF) % totalAlphaStaked;
        // choose a value from 0 to total alpha staked
        uint256 cumulative;
        seed >>= 32;
        // loop through each bucket of Goalkeepers with the same alpha score
        for (uint i = MAX_ALPHA - 1; i <= MAX_ALPHA; i++) {
            cumulative += pack[i].length * i;
            // if the value is not inside of that bucket, keep going
            if (bucket >= cumulative) continue;
            // get the address of a random Goalkeeper with that alpha score
            return pack[i][seed % pack[i].length].owner;
        }
        return address(0x0);
    }

    /**
     * generates a pseudorandom number
     * @param seed a value ensure different outcomes for different sources in the same block
   * @return a pseudorandom value
   */
    function random(uint256 seed) internal view returns (uint256) {
        return uint256(keccak256(abi.encodePacked(
                tx.origin,
                blockhash(block.number - 1),
                block.timestamp,
                seed,
                totalPlayerStaked,
                totalAlphaStaked,
                lastClaimTimestamp
            ))) ^ game.randomSource().seed();
    }

    function onERC721Received(
        address,
        address from,
        uint256,
        bytes calldata
    ) external pure override returns (bytes4) {
        require(from == address(0x0), "Cannot send tokens to Barn directly");
        return IERC721Receiver.onERC721Received.selector;
    }
    function changeDailyGoalRate(uint _rate) external onlyOwner{
        DAILY_GOAL_RATE = _rate;
    
    }

    function viewDailyGoalRate() external view returns(uint) {
        return DAILY_GOAL_RATE;
    }

    function viewMinimumToExit() external view returns(uint) {
        return MINIMUM_TO_EXIT; 
    }
}

File 9 of 32: GOAL.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

import "./ERC20.sol";
import "./Ownable.sol";


contract GOAL is ERC20, Ownable  {

    // a mapping from an address to whether or not it can mint / burn
    mapping(address => bool) controllers;

    constructor() ERC20("GOAL", "GOAL") { 
        _mint(msg.sender, 120000*10**18);
    }

    /**
     * mints $GOAL to a recipient
     * @param to the recipient of the $GOAL
   * @param amount the amount of $GOAL to mint
   */
    function mint(address to, uint256 amount) external {
        require(controllers[msg.sender], "Only controllers can mint");
        _mint(to, amount);
    }

    /**
     * burns $GOAL from a holder
     * @param from the holder of the $GOAL
   * @param amount the amount of $GOAL to burn
   */
    function burn(address from, uint256 amount) external {
        require(controllers[msg.sender], "Only controllers can burn");
        _burn(from, amount);
    }

    /**
     * enables an address to mint / burn
     * @param controller the address to enable
   */
    function addController(address controller) external onlyOwner {
        controllers[controller] = true;
    }

    /**
     * disables an address from minting / burning
     * @param controller the address to disbale
   */
    function removeController(address controller) external onlyOwner {
        controllers[controller] = false;
    }
}

File 10 of 32: ICronosFootballClub.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

interface ICronosFootballClub {

    // struct to store each token's traits
    struct PlayerGoalkeeper {
        bool isPlayer;
        bool isCaptain;
        uint8 skin;
        uint8 jersey;
        uint8 shorts;
        uint8 hair;
        uint8 ball;
        uint8 captain;
        uint8 alphaIndex;
    }

    function getPaidTokens() external view returns (uint256);
    function getTokenTraits(uint256 tokenId) external view returns (PlayerGoalkeeper memory);
}

File 11 of 32: IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 12 of 32: IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 13 of 32: IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 14 of 32: IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 32: IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

File 16 of 32: IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

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

File 17 of 32: IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 18 of 32: IField.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

import "./Field.sol";

interface IField {
    function addManyToFieldAndPack(address account, uint16[] calldata tokenIds) external;
    function randomGoalkeeperOwner(uint256 seed) external view returns (address);
    function Field(uint256) external view returns(uint16, uint80, address);
    function totalGoalEarned() external view returns(uint256);
    function lastClaimTimestamp() external view returns(uint256);
    function setOldTokenInfo(uint256 _tokenId) external;

    function pack(uint256, uint256) external view returns(Field.Stake memory);
    function packIndices(uint256) external view returns(uint256);

}

File 19 of 32: IGOAL.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

interface IGOAL  {

    function burn(address from, uint256 amount) external;
}

File 20 of 32: IRandomisator.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.0;

interface IRandomisator {
    function getRandom() external view returns (bool);
}

File 21 of 32: ISeed.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.0;

interface ISeed {
    function seed() external view returns(uint256);
    function update(uint256 _seed) external returns(uint256);
}

File 22 of 32: ITraits.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

interface ITraits {
    function tokenURI(uint256 tokenId) external view returns (string memory);
    function selectTrait(uint16 seed, uint8 traitType) external view returns(uint8);
}

File 23 of 32: Migrations.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;

contract Migrations {
  address public owner = msg.sender;
  uint public last_completed_migration;

  modifier restricted() {
    require(
      msg.sender == owner,
      "This function is restricted to the contract's owner"
    );
    _;
  }

  function setCompleted(uint completed) public restricted {
    last_completed_migration = completed;
  }
}

File 24 of 32: Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./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.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * 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.
 */
abstract 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() {
        _setOwner(_msgSender());
    }

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 25 of 32: Pauseable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be Pauseable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pauseable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in paused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pauseable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pauseable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 26 of 32: PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

import "./SafeERC20.sol";
import "./Address.sol";
import "./Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + totalReleased();
        uint256 payment = _pendingPayment(account, totalReceived, released(account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] += payment;
        _totalReleased += payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        uint256 payment = _pendingPayment(account, totalReceived, released(token, account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _erc20Released[token][account] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 27 of 32: SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./Address.sol";

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

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

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

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

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

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

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

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

File 28 of 32: SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

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

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

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

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

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

File 29 of 32: Seed.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

import "./Ownable.sol";


contract Seed is Ownable {
    uint256 public seed;
    mapping(address=> bool) whitelist;


    modifier onlyWhiteList() {
                require(whitelist[msg.sender] == true,"the address is not registered");
                _;
        }
    function authorize(address _address) public onlyOwner{
       whitelist[_address] = true;
       
   }

    function update(uint256 _seed) external onlyWhiteList returns(uint256) {
        seed = seed ^ _seed + block.timestamp;

        return seed;
    }


}

File 30 of 32: Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

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

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 31 of 32: Traits.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

import "./Ownable.sol";
import "./Strings.sol";
import "./ITraits.sol";
import "./ICronosFootballClub.sol";

contract Traits is Ownable, ITraits {

    using Strings for uint256;

    uint256 private alphaTypeIndex = 17;

    // struct to store each trait's data for metadata and rendering
    struct Trait {
        string name;
        string png;
    }

    string goalkeeperBody;
    string playerBody;

    // mapping from trait type (index) to its name
    string[6] _traitTypes = [
    "Skin",
    "Jersey",
    "Shorts",
    "Hair",
    "Ball",
    "Captain"
    ];
    // storage of each traits name and base64 PNG data
    mapping(uint8 => mapping(uint8 => Trait)) public traitData;
    mapping(uint8 => uint8) public traitCountForType;
    
    string[2] _alphas = ["1", "0"];

    ICronosFootballClub public cronosFootballClub;


    function selectTrait(uint16 seed, uint8 traitType) external view override returns(uint8) {
        if (traitType == alphaTypeIndex) {
            uint256 m = seed % 100;
            if (m > 95) {
                return 0;
            } else if (m > 80) {
                return 1;
            } else if (m > 50) {
                return 2;
            } else {
                return 3;
            }
        }
        return uint8(seed % traitCountForType[traitType]);
    }

    /***ADMIN */

    function setGame(address _cronosFootballClub) external onlyOwner {
        cronosFootballClub = ICronosFootballClub(_cronosFootballClub);
    }

    function uploadBodies(string calldata _goalkeeper, string calldata _player) external onlyOwner {
        goalkeeperBody = _goalkeeper;
        playerBody = _player;
    }

    /**
     * administrative to upload the names and images associated with each trait
     * @param traitType the trait type to upload the traits for (see traitTypes for a mapping)
   * @param traits the names and base64 encoded PNGs for each trait
   */
    function uploadTraits(uint8 traitType, uint8[] calldata traitIds, Trait[] calldata traits) external onlyOwner {
        require(traitIds.length == traits.length, "Mismatched inputs");
        for (uint i = 0; i < traits.length; i++) {
            traitData[traitType][traitIds[i]] = Trait(
                traits[i].name,
                traits[i].png
            );
        }
        traitCountForType[traitType] += uint8(traits.length);
    }

    /***RENDER */

    /**
     * generates an <image> element using base64 encoded PNGs
     * @param trait the trait storing the PNG data
   * @return the <image> element
   */
    function drawTrait(Trait memory trait) internal pure returns (string memory) {
        return string(abi.encodePacked(
                '<image x="4" y="4" width="32" height="32" image-rendering="pixelated" preserveAspectRatio="xMidYMid" xlink:href="data:image/png;base64,',
                trait.png,
                '"/>'
            ));
    }

    function draw(string memory png) internal pure returns (string memory) {
        return string(abi.encodePacked(
                '<image x="4" y="4" width="32" height="32" image-rendering="pixelated" preserveAspectRatio="xMidYMid" xlink:href="data:image/png;base64,',
                png,
                '"/>'
            ));
    }

    /**
     * generates an entire SVG by composing multiple <image> elements of PNGs
     * @param tokenId the ID of the token to generate an SVG for
   * @return a valid SVG of the Player / Goalkeeper
   */
    function drawSVG(uint256 tokenId) public view returns (string memory) {
        ICronosFootballClub.PlayerGoalkeeper memory s = cronosFootballClub.getTokenTraits(tokenId);
        uint8 shift = s.isPlayer ? 0 : 10;

        string memory svgString = string(abi.encodePacked(
                s.isPlayer ? draw(playerBody) : draw(goalkeeperBody),
                drawTrait(traitData[0 + shift][s.skin]),
                drawTrait(traitData[1 + shift][s.jersey]),
                drawTrait(traitData[2 + shift][s.shorts ]),
                drawTrait(traitData[3 + shift][s.hair]),
                drawTrait(traitData[4 + shift][s.ball]),
                s.isCaptain ? drawTrait(traitData[5 + shift][s.captain]) : ''
            ));

        return string(abi.encodePacked(
                '<svg id="cronosFootballClub" width="100%" height="100%" version="1.1" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">',
                svgString,
                "</svg>"
            ));
    }

    /**
     * generates an attribute for the attributes array in the ERC721 metadata standard
     * @param traitType the trait type to reference as the metadata key
   * @param value the token's trait associated with the key
   * @return a JSON dictionary for the single attribute
   */
    function attributeForTypeAndValue(string memory traitType, string memory value) internal pure returns (string memory) {
        return string(abi.encodePacked(
                '{"trait_type":"',
                traitType,
                '","value":"',
                value,
                '"}'
            ));
    }

    /**
     * generates an array composed of all the individual traits and values
     * @param tokenId the ID of the token to compose the metadata for
   * @return a JSON array of all of the attributes for given token ID
   */
    function compileAttributes(uint256 tokenId) public view returns (string memory) {
        ICronosFootballClub.PlayerGoalkeeper memory s = cronosFootballClub.getTokenTraits(tokenId);
        string memory traits;
        if (s.isPlayer) {
            traits = string(abi.encodePacked(
                    attributeForTypeAndValue(_traitTypes[0], traitData[0][s.skin].name), ',',
                    attributeForTypeAndValue(_traitTypes[1], traitData[1][s.jersey].name), ',',
                    attributeForTypeAndValue(_traitTypes[2], traitData[2][s.hair].name), ',',
                    attributeForTypeAndValue(_traitTypes[3], traitData[3][s.shorts].name), ',',
                    attributeForTypeAndValue(_traitTypes[4], traitData[4][s.ball].name), ','
                ));
        } else {
            traits = string(abi.encodePacked(
                    attributeForTypeAndValue(_traitTypes[0], traitData[10][s.skin].name), ',',
                    attributeForTypeAndValue(_traitTypes[1], traitData[11][s.jersey].name), ',',
                    attributeForTypeAndValue(_traitTypes[2], traitData[12][s.hair].name), ',',
                    attributeForTypeAndValue(_traitTypes[3], traitData[13][s.shorts].name), ',',
                    attributeForTypeAndValue(_traitTypes[4], traitData[14][s.ball].name), ',',
                    s.isCaptain ? attributeForTypeAndValue(_traitTypes[5], traitData[15][s.captain].name) : '',
                    s.isCaptain ? attributeForTypeAndValue("Captain Score", _alphas[s.alphaIndex]) : ""
                ));
        }
        return string(abi.encodePacked(
                '[',
                traits,
                '{"trait_type":"Generation","value":',
                tokenId <= cronosFootballClub.getPaidTokens() ? '"Gen 0"' : '"Gen 1"',
                '},{"trait_type":"Type","value":',
                s.isPlayer ? '"Player"' : '"Goalkeeper"',
                '}]'
            ));
    }

    /**
     * generates a base64 encoded metadata response without referencing off-chain content
     * @param tokenId the ID of the token to generate the metadata for
   * @return a base64 encoded JSON dictionary of the token's metadata and SVG
   */
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        ICronosFootballClub.PlayerGoalkeeper memory s = cronosFootballClub.getTokenTraits(tokenId);

        string memory metadata = string(abi.encodePacked(
                '{"name": "',
                s.isPlayer ? 'Player #' : 'Goalkeeper #',
                tokenId.toString(),
                '", "description": "CronosFootball Club is a new generation play-to-earn NFT game on Cronos that incorporates probability-based derivatives alongside NFTs. Through a vast array of choices and decision-making possibilities, Goalkeeper & Player Game promises to instil excitement and curiosity amongst the community as every individual adopts different strategies to do better than one another and to come out on top. The real question is, are you #TeamPlayer or #TeamGoalkeeper? Choose wisely or watch the other get rich!", "image": "data:image/svg+xml;base64,',
                base64(bytes(drawSVG(tokenId))),
                '", "attributes":',
                compileAttributes(tokenId),
                "}"
            ));

        return string(abi.encodePacked(
                "data:application/json;base64,",
                base64(bytes(metadata))
            ));
    }

    /***BASE 64 - Written by Brech Devos */

    string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

    function base64(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';

        // load the table into memory
        string memory table = TABLE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
        // set the actual output length
            mstore(result, encodedLen)

        // prepare the lookup table
            let tablePtr := add(table, 1)

        // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

        // result ptr, jump over length
            let resultPtr := add(result, 32)

        // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
                dataPtr := add(dataPtr, 3)

            // read 3 bytes
                let input := mload(dataPtr)

            // write 4 characters
                mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))))
                resultPtr := add(resultPtr, 1)
                mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))))
                resultPtr := add(resultPtr, 1)
                mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F)))))
                resultPtr := add(resultPtr, 1)
                mstore(resultPtr, shl(248, mload(add(tablePtr, and(input, 0x3F)))))
                resultPtr := add(resultPtr, 1)
            }

        // padding with '='
            switch mod(mload(data), 3)
            case 1 {mstore(sub(resultPtr, 2), shl(240, 0x3d3d))}
            case 2 {mstore(sub(resultPtr, 1), shl(248, 0x3d))}
        }

        return result;
    }
}

File 32 of 32: Withdraw.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

import "./Ownable.sol";
import "./SafeMath.sol";

contract Withdraw is Ownable {
    using SafeMath for uint256;

    struct Part {
        address wallet;
        uint256 salesPart;
    }

    Part[] public parts;

    constructor(){
        parts.push(Part(0x382c82151a4c5DC054fD9058F50B60d824fCE0Df, 100));
        parts.push(Part(0xe963FAecDb120d34c88F33Fa99b6b90219252451, 100));
        parts.push(Part(0x74C609f880EB4655fa3aBB448e221dE38325fa84, 60));
        parts.push(Part(0xc0129793A27c8583477cc458Fd289d478a3714A4, 200));
        parts.push(Part(0x0795436933b6177655a7120493a70608d1E85074, 200));
        parts.push(Part(0xF43D2E70faE713B12f4F47d77B135BfA24B8AAAf, 320));
        parts.push(Part(0xF7FCBC231a9450Bc4bd1037d5961EC9ca5550264, 20));
    }

    function SalesPart() public onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "Balance is empty.");

        for(uint8 i = 0; i < parts.length; i++) {
            if(parts[i].salesPart > 0) {
                _withdrawParts(parts[i].wallet, balance.mul(parts[i].salesPart).div(1000));
            }
        }
        _withdrawParts(owner(), address(this).balance);
    }

    function _withdrawParts(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Transfer failed");
    }

    receive() external payable {}
}

Contract ABI

[{"inputs":[{"internalType":"contract IGOAL","name":"_goal","type":"address"},{"internalType":"contract ITraits","name":"_traits","type":"address"},{"internalType":"uint256","name":"_maxTokens","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_MINT_VIP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAID_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"}],"name":"addAidrops","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint8[]","name":"_wltypes","type":"uint8[]"}],"name":"addWhitelistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"airdropTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"changePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"changeStatePreSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"changeStatePublicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"existingCombinations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"field","outputs":[{"internalType":"contract IField","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getFreeMintOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPaidTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getPriceForUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenTraits","outputs":[{"components":[{"internalType":"bool","name":"isPlayer","type":"bool"},{"internalType":"bool","name":"isCaptain","type":"bool"},{"internalType":"uint8","name":"skin","type":"uint8"},{"internalType":"uint8","name":"jersey","type":"uint8"},{"internalType":"uint8","name":"shorts","type":"uint8"},{"internalType":"uint8","name":"hair","type":"uint8"},{"internalType":"uint8","name":"ball","type":"uint8"},{"internalType":"uint8","name":"captain","type":"uint8"},{"internalType":"uint8","name":"alphaIndex","type":"uint8"}],"internalType":"struct ICronosFootballClub.PlayerGoalkeeper","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"goal","outputs":[{"internalType":"contract IGOAL","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomPlayer","outputs":[{"internalType":"contract IRandomisator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomSource","outputs":[{"internalType":"contract ISeed","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"removeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_field","type":"address"}],"name":"setField","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_paidTokens","type":"uint256"}],"name":"setPaidTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISeed","name":"_seed","type":"address"}],"name":"setRandomSource","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IRandomisator","name":"_randomPlayer","type":"address"}],"name":"setRandomisator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_staking","type":"bool"}],"name":"setStakingActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ITraits","name":"addr","type":"address"}],"name":"setTraits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"setWhitelistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenTraits","outputs":[{"internalType":"bool","name":"isPlayer","type":"bool"},{"internalType":"bool","name":"isCaptain","type":"bool"},{"internalType":"uint8","name":"skin","type":"uint8"},{"internalType":"uint8","name":"jersey","type":"uint8"},{"internalType":"uint8","name":"shorts","type":"uint8"},{"internalType":"uint8","name":"hair","type":"uint8"},{"internalType":"uint8","name":"ball","type":"uint8"},{"internalType":"uint8","name":"captain","type":"uint8"},{"internalType":"uint8","name":"alphaIndex","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"tokensOfUser","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"traits","outputs":[{"internalType":"contract ITraits","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelistAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistTypes","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

681043561a88293000006012556003601355601b805461ffff60a01b1916905561018060405273b12d6e1efd1bd1c04ff114fd54612468067a2d0f60a090815273e963faecdb120d34c88f33fa99b6b9021925245160c0527374c609f880eb4655fa3abb448e221de38325fa8460e05273c0129793a27c8583477cc458fd289d478a3714a461010052730795436933b6177655a7120493a70608d1e850746101205273f43d2e70fae713b12f4f47d77b135bfa24b8aaaf6101405273f7fcbc231a9450bc4bd1037d5961ec9ca555026461016052620000e390601e90600762000677565b506040805160e081018252600a808252602080830191909152600692820192909252601460608201819052608082015260a0810191909152600260c08201526200013290601f906007620006e1565b506023805461ffff19166101001790553480156200014f57600080fd5b50604051620061fb380380620061fb8339810160408190526200017291620007d1565b601e805480602002602001604051908101604052809291908181526020018280548015620001ca57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311620001ab575b5050505050601f8054806020026020016040519081016040528092919081815260200182805480156200021d57602002820191906000526020600020905b81548152602001906001019080831162000208575b5050604080518082018252600981526843726f6e6f7320464360b81b60208083019182528351808501909452600384526243464360e81b9084015281519195509193506200027092506000919062000724565b5080516200028690600190602084019062000724565b505050620002a36200029d6200043360201b60201c565b62000437565b600a805460ff60a01b191690558051825114620003225760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620003755760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604482015260640162000319565b60005b8251811015620003e157620003cc8382815181106200039b576200039b62000819565b6020026020010151838381518110620003b857620003b862000819565b60200260200101516200048960201b60201c565b80620003d88162000845565b91505062000378565b5050601a80546001600160a01b038087166001600160a01b031992831617909255601b8054928616929091169190911790555060808190526200042660058262000863565b60145550620008de915050565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620004f65760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b606482015260840162000319565b60008111620005485760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604482015260640162000319565b6001600160a01b0382166000908152600d602052604090205415620005c45760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b606482015260840162000319565b600f8054600181019091557f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b0319166001600160a01b0384169081179091556000908152600d60205260409020819055600b546200062e90829062000886565b600b55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b828054828255906000526020600020908101928215620006cf579160200282015b82811115620006cf57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000698565b50620006dd929150620007a1565b5090565b828054828255906000526020600020908101928215620006cf579160200282015b82811115620006cf578251829060ff1690559160200191906001019062000702565b8280546200073290620008a1565b90600052602060002090601f016020900481019282620007565760008555620006cf565b82601f106200077157805160ff1916838001178555620006cf565b82800160010185558215620006cf579182015b82811115620006cf57825182559160200191906001019062000784565b5b80821115620006dd5760008155600101620007a2565b6001600160a01b0381168114620007ce57600080fd5b50565b600080600060608486031215620007e757600080fd5b8351620007f481620007b8565b60208501519093506200080781620007b8565b80925050604084015190509250925092565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156200085c576200085c6200082f565b5060010190565b6000826200088157634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156200089c576200089c6200082f565b500190565b600181811c90821680620008b657607f821691505b60208210811415620008d857634e487b7160e01b600052602260045260246000fd5b50919050565b6080516158e56200091660003960008181610e880152818161119c01528181611eef01528181612a9d015261325401526158e56000f3fe6080604052600436106104145760003560e01c80636f4f73661161021e578063c084f54011610123578063e05c57bf116100ab578063e93244441161007a578063e932444414610dd6578063e985e9c514610df7578063ee24c66014610e40578063f2fde38b14610e56578063f47c84c514610e7657600080fd5b8063e05c57bf14610c8b578063e116831214610d5f578063e1fc334f14610da1578063e33b7de314610dc157600080fd5b8063d1cbf17d116100f2578063d1cbf17d14610be0578063d38248ea14610bf5578063d6427c2414610c15578063d773826d14610c35578063d79779b214610c5557600080fd5b8063c084f54014610b54578063c87b56dd14610b6a578063ce7c2ac214610b8a578063cf5b5d6414610bc057600080fd5b806395d89b41116101a6578063a22cb46511610175578063a22cb46514610acb578063a243d3b614610aeb578063a2b40d1914610afe578063b88d4fde14610b1e578063c002d23d14610b3e57600080fd5b806395d89b4114610a405780639852595c14610a555780639dbcc0da14610a8b578063a1b8f37414610a9e57600080fd5b80638ab1d681116101ed5780638ab1d681146109955780638b83209b146109b55780638da5cb5b146109d55780638e482cee146109f357806394e5684714610a1357600080fd5b80636f4f73661461091f57806370a082311461093f57806371adc02a1461095f578063853828b61461098057600080fd5b80633a98ef39116103245780634f02c420116102ac578063588d0d0f1161027b578063588d0d0f1461087e5780635c975abb146108935780635d1235d4146108b257806361b55118146108d25780636352211e146108ff57600080fd5b80634f02c420146107f05780634f28bf0e1461081e5780634f6ccce71461083e57806356d1df8c1461085e57600080fd5b806340193883116102f3578063401938831461072a578063406072a91461074a57806342842e0e14610790578063474a9772146107b057806348b75044146107d057600080fd5b80633a98ef39146106cb5780633af32abf146106e05780633ccfd60b146107005780634018b1f81461071557600080fd5b806318160ddd116103a7578063281105e311610376578063281105e31461062b5780632beab4b71461064b5780632f745c591461066b5780633431a7531461068b57806337b8b2e0146106ab57600080fd5b806318160ddd146105b657806319165587146105cb57806323b872dd146105eb57806327de8f271461060b57600080fd5b8063095ea7b3116103e3578063095ea7b3146105345780630c89b766146105565780630c8d66951461057657806316c38b3c1461059657600080fd5b806301ffc9a71461046257806302f1f0b21461049757806306fdde03146104da578063081812fc146104fc57600080fd5b3661045d577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561046e57600080fd5b5061048261047d366004614e74565b610eaa565b60405190151581526020015b60405180910390f35b3480156104a357600080fd5b506104cc6104b2366004614eb3565b6001600160a01b0316600090815260208052604090205490565b60405190815260200161048e565b3480156104e657600080fd5b506104ef610ed5565b60405161048e9190614efc565b34801561050857600080fd5b5061051c610517366004614f2f565b610f67565b6040516001600160a01b03909116815260200161048e565b34801561054057600080fd5b5061055461054f366004614f48565b611001565b005b34801561056257600080fd5b50601c5461051c906001600160a01b031681565b34801561058257600080fd5b50610554610591366004614f82565b611117565b3480156105a257600080fd5b506105546105b1366004614fb2565b611618565b3480156105c257600080fd5b506008546104cc565b3480156105d757600080fd5b506105546105e6366004614eb3565b61165b565b3480156105f757600080fd5b50610554610606366004614fcf565b611789565b34801561061757600080fd5b506104cc610626366004614f2f565b61181a565b34801561063757600080fd5b50610554610646366004614fb2565b6118d3565b34801561065757600080fd5b5061055461066636600461505b565b611917565b34801561067757600080fd5b506104cc610686366004614f48565b611959565b34801561069757600080fd5b506105546106a6366004614f2f565b6119ef565b3480156106b757600080fd5b506105546106c6366004614eb3565b611a1e565b3480156106d757600080fd5b50600b546104cc565b3480156106ec57600080fd5b506104826106fb366004614eb3565b611a6a565b34801561070c57600080fd5b50610554611ad4565b34801561072157600080fd5b506014546104cc565b34801561073657600080fd5b50601a5461051c906001600160a01b031681565b34801561075657600080fd5b506104cc61076536600461509c565b6001600160a01b03918216600090815260116020908152604080832093909416825291909152205490565b34801561079c57600080fd5b506105546107ab366004614fcf565b611b37565b3480156107bc57600080fd5b506104cc6107cb366004614eb3565b611b52565b3480156107dc57600080fd5b506105546107eb36600461509c565b611bd4565b3480156107fc57600080fd5b5060155461080b9061ffff1681565b60405161ffff909116815260200161048e565b34801561082a57600080fd5b5060195461051c906001600160a01b031681565b34801561084a57600080fd5b506104cc610859366004614f2f565b611dad565b34801561086a57600080fd5b506105546108793660046150ca565b611e40565b34801561088a57600080fd5b506104826122a1565b34801561089f57600080fd5b50600a54600160a01b900460ff16610482565b3480156108be57600080fd5b5061051c6108cd366004614f2f565b6122f9565b3480156108de57600080fd5b506108f26108ed366004614eb3565b612323565b60405161048e919061510c565b34801561090b57600080fd5b5061051c61091a366004614f2f565b6123c4565b34801561092b57600080fd5b5061055461093a366004614eb3565b61243b565b34801561094b57600080fd5b506104cc61095a366004614eb3565b612487565b34801561096b57600080fd5b50601b5461048290600160a81b900460ff1681565b34801561098c57600080fd5b5061055461250e565b3480156109a157600080fd5b506105546109b0366004614eb3565b6125ca565b3480156109c157600080fd5b5061051c6109d0366004614f2f565b61271d565b3480156109e157600080fd5b50600a546001600160a01b031661051c565b3480156109ff57600080fd5b50610554610a0e366004615150565b61274d565b348015610a1f57600080fd5b50610a33610a2e366004614f2f565b61286e565b60405161048e91906151bb565b348015610a4c57600080fd5b506104ef612917565b348015610a6157600080fd5b506104cc610a70366004614eb3565b6001600160a01b03166000908152600e602052604090205490565b610554610a99366004614f82565b612926565b348015610aaa57600080fd5b506104cc610ab9366004614f2f565b60186020526000908152604090205481565b348015610ad757600080fd5b50610554610ae6366004615266565b613059565b610554610af9366004614f82565b61311e565b348015610b0a57600080fd5b50610554610b19366004614f2f565b613736565b348015610b2a57600080fd5b50610554610b39366004615301565b613765565b348015610b4a57600080fd5b506104cc60125481565b348015610b6057600080fd5b506104cc60145481565b348015610b7657600080fd5b506104ef610b85366004614f2f565b61379c565b348015610b9657600080fd5b506104cc610ba5366004614eb3565b6001600160a01b03166000908152600d602052604090205490565b348015610bcc57600080fd5b50610554610bdb366004614eb3565b61388c565b348015610bec57600080fd5b506104826138d8565b348015610c0157600080fd5b50610554610c10366004615150565b613930565b348015610c2157600080fd5b50601d5461051c906001600160a01b031681565b348015610c4157600080fd5b50610554610c50366004614eb3565b613a92565b348015610c6157600080fd5b506104cc610c70366004614eb3565b6001600160a01b031660009081526010602052604090205490565b348015610c9757600080fd5b50610d0d610ca6366004614f2f565b60176020526000908152604090205460ff808216916101008104821691620100008204811691630100000081048216916401000000008204811691650100000000008104821691600160301b8204811691600160381b8104821691600160401b9091041689565b604080519915158a5297151560208a015260ff9687169789019790975293851660608801529184166080870152831660a0860152821660c0850152811660e0840152166101008201526101200161048e565b348015610d6b57600080fd5b50610d8f610d7a366004614eb3565b60226020526000908152604090205460ff1681565b60405160ff909116815260200161048e565b348015610dad57600080fd5b50601b5461051c906001600160a01b031681565b348015610dcd57600080fd5b50600c546104cc565b348015610de257600080fd5b50601b5461048290600160a01b900460ff1681565b348015610e0357600080fd5b50610482610e1236600461509c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610e4c57600080fd5b506104cc60135481565b348015610e6257600080fd5b50610554610e71366004614eb3565b613ade565b348015610e8257600080fd5b506104cc7f000000000000000000000000000000000000000000000000000000000000000081565b60006001600160e01b0319821663780e9d6360e01b1480610ecf5750610ecf82613b76565b92915050565b606060008054610ee4906153af565b80601f0160208091040260200160405190810160405280929190818152602001828054610f10906153af565b8015610f5d5780601f10610f3257610100808354040283529160200191610f5d565b820191906000526020600020905b815481529060010190602001808311610f4057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610fe55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061100c826123c4565b9050806001600160a01b0316836001600160a01b0316141561107a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610fdc565b336001600160a01b038216148061109657506110968133610e12565b6111085760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610fdc565b6111128383613bc6565b505050565b60235460ff161561113a5760405162461bcd60e51b8152600401610fdc906153e4565b6023805460ff1916600117905561115b600a5460ff600160a01b9091041690565b156111785760405162461bcd60e51b8152600401610fdc9061540b565b3233146111975760405162461bcd60e51b8152600401610fdc90615436565b6015547f0000000000000000000000000000000000000000000000000000000000000000906111cb90849061ffff1661546e565b11156111e95760405162461bcd60e51b8152600401610fdc90615486565b601b54600160a81b900460ff166112375760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610fdc565b33600090815260208052604090205482111561128d5760405162461bcd60e51b81526020600482015260156024820152740416d6f756e74206578636565642061697264726f7605c1b6044820152606401610fdc565b336000908152602080526040812080548492906112ab9084906154b1565b9091555060009050826001600160401b038111156112cb576112cb615294565b6040519080825280602002602001820160405280156112f4578160200160208202803683370190505b5090506000836001600160401b0381111561131157611311615294565b60405190808252806020026020018201604052801561133a578160200160208202803683370190505b5060155490915060009061ffff16815b86811015611503576015805461ffff16906000611366836154c8565b82546101009290920a61ffff81810219909316918316021790915560155461138f925016613c34565b601c54601554604051634155c48560e11b815261ffff909116831860048201529194506001600160a01b0316906382ab890a906024016020604051808303816000875af11580156113e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061140891906154ea565b5060155461141a9061ffff1684613d06565b50600061142684613e7e565b905086158061143e57506001600160a01b0381163314155b1561147b578085838151811061145657611456615503565b60200260200101906001600160a01b031690816001600160a01b0316815250506114f0565b601554865161ffff9091169087908490811061149957611499615503565b61ffff9092166020928302919091019091015260195485516001600160a01b03909116908690849081106114cf576114cf615503565b60200260200101906001600160a01b031690816001600160a01b0316815250505b50806114fb81615519565b91505061134a565b5060005b835181101561159c57600061151c828461546e565b61152790600161546e565b90508615806115615750336001600160a01b031685838151811061154d5761154d615503565b60200260200101516001600160a01b031614155b156115895761158985838151811061157b5761157b615503565b602002602001015182613f3b565b508061159481615519565b915050611507565b508415611606576019546001600160a01b0316630b2f27e133866040518363ffffffff1660e01b81526004016115d3929190615534565b600060405180830381600087803b1580156115ed57600080fd5b505af1158015611601573d6000803e3d6000fd5b505050505b50506023805460ff1916905550505050565b600a546001600160a01b031633146116425760405162461bcd60e51b8152600401610fdc9061558e565b801561165357611650613f55565b50565b611650613fd7565b6001600160a01b0381166000908152600d60205260409020546116905760405162461bcd60e51b8152600401610fdc906155c3565b600061169b600c5490565b6116a5904761546e565b905060006116d283836116cd866001600160a01b03166000908152600e602052604090205490565b61405c565b9050806116f15760405162461bcd60e51b8152600401610fdc90615609565b6001600160a01b0383166000908152600e60205260408120805483929061171990849061546e565b9250508190555080600c6000828254611732919061546e565b90915550611742905083826140a2565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b60235460ff16156117ac5760405162461bcd60e51b8152600401610fdc906153e4565b6023805460ff191660011790556019546001600160a01b03166117cc3390565b6001600160a01b031614611800576117e433826141bb565b6118005760405162461bcd60e51b8152600401610fdc90615654565b61180b8383836142b1565b50506023805460ff1916905550565b6000601454821161182d57506000919050565b60145461183c90610bb861546e565b82116118525750686c6b935b8bbd400000919050565b6014546118619061177061546e565b8211611877575068a2a15d09519be00000919050565b6014546118869061232861546e565b821161189c575068d8d726b7177a800000919050565b6014546118ab90612ee061546e565b82116118c2575069010f0cf064dd59200000919050565b50690cb49b44ba602d800000919050565b600a546001600160a01b031633146118fd5760405162461bcd60e51b8152600401610fdc9061558e565b602380549115156101000261ff0019909216919091179055565b600a546001600160a01b031633146119415760405162461bcd60e51b8152600401610fdc9061558e565b61194d60166000614d92565b61111260168383614db0565b600061196483612487565b82106119c65760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610fdc565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314611a195760405162461bcd60e51b8152600401610fdc9061558e565b601455565b600a546001600160a01b03163314611a485760405162461bcd60e51b8152600401610fdc9061558e565b601d80546001600160a01b0319166001600160a01b0392909216919091179055565b6000805b601654811015611acb57826001600160a01b031660168281548110611a9557611a95615503565b6000918252602090912001546001600160a01b03161415611ab95750600192915050565b80611ac381615519565b915050611a6e565b50600092915050565b600a546001600160a01b03163314611afe5760405162461bcd60e51b8152600401610fdc9061558e565b600a546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015611650573d6000803e3d6000fd5b61111283838360405180602001604052806000815250613765565b6001600160a01b03811660009081526022602052604081205460ff1660011415611b85576002601254610ecf91906156bb565b6001600160a01b03821660009081526022602052604090205460ff1660021415611bc45760046012546003611bba91906156cf565b610ecf91906156bb565b50681043561a8829300000919050565b6001600160a01b0381166000908152600d6020526040902054611c095760405162461bcd60e51b8152600401610fdc906155c3565b6001600160a01b0382166000908152601060205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015611c66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c8a91906154ea565b611c94919061546e565b90506000611ccd83836116cd87876001600160a01b03918216600090815260116020908152604080832093909416825291909152205490565b905080611cec5760405162461bcd60e51b8152600401610fdc90615609565b6001600160a01b03808516600090815260116020908152604080832093871683529290529081208054839290611d2390849061546e565b90915550506001600160a01b03841660009081526010602052604081208054839290611d5090849061546e565b90915550611d61905084848361445c565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000611db860085490565b8210611e1b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610fdc565b60088281548110611e2e57611e2e615503565b90600052602060002001549050919050565b600a546001600160a01b03163314611e6a5760405162461bcd60e51b8152600401610fdc9061558e565b60235460ff1615611e8d5760405162461bcd60e51b8152600401610fdc906153e4565b6023805460ff19166001179055611eae600a5460ff600160a01b9091041690565b15611ecb5760405162461bcd60e51b8152600401610fdc9061540b565b323314611eea5760405162461bcd60e51b8152600401610fdc90615436565b6015547f000000000000000000000000000000000000000000000000000000000000000090611f1e90849061ffff1661546e565b1115611f3c5760405162461bcd60e51b8152600401610fdc90615486565b6000826001600160401b03811115611f5657611f56615294565b604051908082528060200260200182016040528015611f7f578160200160208202803683370190505b5090506000836001600160401b03811115611f9c57611f9c615294565b604051908082528060200260200182016040528015611fc5578160200160208202803683370190505b5060155490915060009061ffff16815b86811015612197576015805461ffff16906000611ff1836154c8565b82546101009290920a61ffff81810219909316918316021790915560155461201a925016613c34565b601c54601554604051634155c48560e11b815261ffff909116831860048201529194506001600160a01b0316906382ab890a906024016020604051808303816000875af115801561206f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061209391906154ea565b506015546120a59061ffff1684613d06565b5060006120b184613e7e565b90508615806120d25750886001600160a01b0316816001600160a01b031614155b1561210f57808583815181106120ea576120ea615503565b60200260200101906001600160a01b031690816001600160a01b031681525050612184565b601554865161ffff9091169087908490811061212d5761212d615503565b61ffff9092166020928302919091019091015260195485516001600160a01b039091169086908490811061216357612163615503565b60200260200101906001600160a01b031690816001600160a01b0316815250505b508061218f81615519565b915050611fd5565b5060005b83518110156122225760006121b0828461546e565b6121bb90600161546e565b90508615806121f55750886001600160a01b03168583815181106121e1576121e1615503565b60200260200101516001600160a01b031614155b1561220f5761220f85838151811061157b5761157b615503565b508061221a81615519565b91505061219b565b50841561228e57601954604051630b2f27e160e01b81526001600160a01b0390911690630b2f27e19061225b908a908890600401615534565b600060405180830381600087803b15801561227557600080fd5b505af1158015612289573d6000803e3d6000fd5b505050505b50506023805460ff191690555050505050565b600a546000906001600160a01b031633146122ce5760405162461bcd60e51b8152600401610fdc9061558e565b50601b805460ff600160a01b808304821615810260ff60a01b19909316929092179283905591041690565b6016818154811061230957600080fd5b6000918252602090912001546001600160a01b0316905081565b6060600061233083612487565b90506000816001600160401b0381111561234c5761234c615294565b604051908082528060200260200182016040528015612375578160200160208202803683370190505b50905060005b828110156123bc5761238d8582611959565b82828151811061239f5761239f615503565b6020908102919091010152806123b481615519565b91505061237b565b509392505050565b6000818152600260205260408120546001600160a01b031680610ecf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610fdc565b600a546001600160a01b031633146124655760405162461bcd60e51b8152600401610fdc9061558e565b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166124f25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610fdc565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146125385760405162461bcd60e51b8152600401610fdc9061558e565b60235460ff161561255b5760405162461bcd60e51b8152600401610fdc906153e4565b6023805460ff1916600117905560005b601e548110156125bd576000601e828154811061258a5761258a615503565b6000918252602090912001546001600160a01b031690506125aa8161165b565b50806125b581615519565b91505061256b565b506023805460ff19169055565b600a546001600160a01b031633146125f45760405162461bcd60e51b8152600401610fdc9061558e565b60005b60165481101561271957816001600160a01b03166016828154811061261e5761261e615503565b6000918252602090912001546001600160a01b031614156127075760168054612649906001906154b1565b8154811061265957612659615503565b600091825260209091200154601680546001600160a01b03909216918390811061268557612685615503565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060168054806126c4576126c46156ee565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b03841682526022905260409020805460ff191690555b8061271181615519565b9150506125f7565b5050565b6000600f828154811061273257612732615503565b6000918252602090912001546001600160a01b031692915050565b600a546001600160a01b031633146127775760405162461bcd60e51b8152600401610fdc9061558e565b8281146127ec5760405162461bcd60e51b815260206004820152603a60248201527f4e756d626572206f662061646472657373657320697320646966666572656e7460448201527f207468616e20746865206e756d626572206f662076616c7565730000000000006064820152608401610fdc565b60005b818110156128675782828281811061280957612809615503565b905060200201356020600087878581811061282657612826615503565b905060200201602081019061283b9190614eb3565b6001600160a01b031681526020810191909152604001600020558061285f81615519565b9150506127ef565b5050505050565b612876614e13565b50600090815260176020908152604091829020825161012081018452905460ff8082161515835261010080830482161515948401949094526201000082048116948301949094526301000000810484166060830152640100000000810484166080830152650100000000008104841660a0830152600160301b8104841660c0830152600160381b8104841660e0830152600160401b90049092169082015290565b606060018054610ee4906153af565b60235460ff16156129495760405162461bcd60e51b8152600401610fdc906153e4565b6023805460ff1916600117905561296a600a5460ff600160a01b9091041690565b156129875760405162461bcd60e51b8152600401610fdc9061540b565b80158061299b5750602354610100900460ff165b6129df5760405162461bcd60e51b815260206004820152601560248201527414dd185ada5b99c81b9bdd081858dd1a5d985d1959605a1b6044820152606401610fdc565b601b54600160a81b900460ff16612a2d5760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610fdc565b612a3633611a6a565b612a795760405162461bcd60e51b8152602060048201526014602482015273155cd95c881b9bdd081dda1a5d195b1a5cdd195960621b6044820152606401610fdc565b323314612a985760405162461bcd60e51b8152600401610fdc90615436565b6015547f000000000000000000000000000000000000000000000000000000000000000090612acc90849061ffff1661546e565b1115612aea5760405162461bcd60e51b8152600401610fdc90615486565b60008211612b0a5760405162461bcd60e51b8152600401610fdc90615704565b612b1333611b52565b612b1d90836156cf565b341015612b3c5760405162461bcd60e51b8152600401610fdc90615731565b3360009081526022602052604090205460ff1660011415612b8a576003821115612b785760405162461bcd60e51b8152600401610fdc90615704565b680821ab0d4414980000601255612bb8565b81600114612baa5760405162461bcd60e51b8152600401610fdc90615704565b680c328093e61ee400006012555b60145460155461ffff161015612c5c57601454601554612bdd90849061ffff1661546e565b1115612c2b5760405162461bcd60e51b815260206004820152601f60248201527f416c6c20746f6b656e73206f6e2d73616c6520616c726561647920736f6c64006044820152606401610fdc565b3460125483612c3a91906156cf565b14612c575760405162461bcd60e51b8152600401610fdc90615731565b612c67565b3415612c6757600080fd5b600080836001600160401b03811115612c8257612c82615294565b604051908082528060200260200182016040528015612cab578160200160208202803683370190505b5090506000846001600160401b03811115612cc857612cc8615294565b604051908082528060200260200182016040528015612cf1578160200160208202803683370190505b5060155490915060009061ffff16815b87811015612ed7576015805461ffff16906000612d1d836154c8565b82546101009290920a61ffff818102199093169183160217909155601554612d46925016613c34565b601c54601554604051634155c48560e11b815261ffff909116831860048201529194506001600160a01b0316906382ab890a906024016020604051808303816000875af1158015612d9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dbf91906154ea565b50601554612dd19061ffff1684613d06565b506000612ddd84613e7e565b601554909150612df09061ffff1661181a565b612dfa908861546e565b9650871580612e1257506001600160a01b0381163314155b15612e4f5780858381518110612e2a57612e2a615503565b60200260200101906001600160a01b031690816001600160a01b031681525050612ec4565b601554865161ffff90911690879084908110612e6d57612e6d615503565b61ffff9092166020928302919091019091015260195485516001600160a01b0390911690869084908110612ea357612ea3615503565b60200260200101906001600160a01b031690816001600160a01b0316815250505b5080612ecf81615519565b915050612d01565b508415612f5157601a546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101889052604401600060405180830381600087803b158015612f3857600080fd5b505af1158015612f4c573d6000803e3d6000fd5b505050505b60005b8351811015613001576000612f69828461546e565b612f7490600161546e565b9050871580612fae5750336001600160a01b0316858381518110612f9a57612f9a615503565b60200260200101516001600160a01b031614155b15612fee5733600090815260216020526040812080548b9290612fd290849061546e565b92505081905550612fee85838151811061157b5761157b615503565b5080612ff981615519565b915050612f54565b5061300b336125ca565b336000908152602260205260409020805460ff19169055851561228e576019546001600160a01b0316630b2f27e1335b866040518363ffffffff1660e01b815260040161225b929190615534565b6001600160a01b0382163314156130b25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610fdc565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60235460ff16156131415760405162461bcd60e51b8152600401610fdc906153e4565b6023805460ff19166001179055613162600a5460ff600160a01b9091041690565b1561317f5760405162461bcd60e51b8152600401610fdc9061540b565b8015806131935750602354610100900460ff165b6131d75760405162461bcd60e51b815260206004820152601560248201527414dd185ada5b99c81b9bdd081858dd1a5d985d1959605a1b6044820152606401610fdc565b601b54600160a81b900460ff166132305760405162461bcd60e51b815260206004820152601960248201527f5075626c69632053616c65206973206e6f7420616374697665000000000000006044820152606401610fdc565b32331461324f5760405162461bcd60e51b8152600401610fdc90615436565b6015547f00000000000000000000000000000000000000000000000000000000000000009061328390849061ffff1661546e565b11156132a15760405162461bcd60e51b8152600401610fdc90615486565b6000821180156132b357506013548211155b6132cf5760405162461bcd60e51b8152600401610fdc90615704565b60145460155461ffff161015613373576014546015546132f490849061ffff1661546e565b11156133425760405162461bcd60e51b815260206004820152601f60248201527f416c6c20746f6b656e73206f6e2d73616c6520616c726561647920736f6c64006044820152606401610fdc565b346012548361335191906156cf565b1461336e5760405162461bcd60e51b8152600401610fdc90615731565b61337e565b341561337e57600080fd5b600080836001600160401b0381111561339957613399615294565b6040519080825280602002602001820160405280156133c2578160200160208202803683370190505b5090506000846001600160401b038111156133df576133df615294565b604051908082528060200260200182016040528015613408578160200160208202803683370190505b5060155490915060009061ffff16815b878110156135ee576015805461ffff16906000613434836154c8565b82546101009290920a61ffff81810219909316918316021790915560155461345d925016613c34565b601c54601554604051634155c48560e11b815261ffff909116831860048201529194506001600160a01b0316906382ab890a906024016020604051808303816000875af11580156134b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134d691906154ea565b506015546134e89061ffff1684613d06565b5060006134f484613e7e565b6015549091506135079061ffff1661181a565b613511908861546e565b965087158061352957506001600160a01b0381163314155b15613566578085838151811061354157613541615503565b60200260200101906001600160a01b031690816001600160a01b0316815250506135db565b601554865161ffff9091169087908490811061358457613584615503565b61ffff9092166020928302919091019091015260195485516001600160a01b03909116908690849081106135ba576135ba615503565b60200260200101906001600160a01b031690816001600160a01b0316815250505b50806135e681615519565b915050613418565b50841561366857601a546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101889052604401600060405180830381600087803b15801561364f57600080fd5b505af1158015613663573d6000803e3d6000fd5b505050505b60005b8351811015613718576000613680828461546e565b61368b90600161546e565b90508715806136c55750336001600160a01b03168583815181106136b1576136b1615503565b60200260200101516001600160a01b031614155b156137055733600090815260216020526040812080548b92906136e990849061546e565b9250508190555061370585838151811061157b5761157b615503565b508061371081615519565b91505061366b565b50851561228e576019546001600160a01b0316630b2f27e13361303b565b600a546001600160a01b031633146137605760405162461bcd60e51b8152600401610fdc9061558e565b601255565b61376f33836141bb565b61378b5760405162461bcd60e51b8152600401610fdc90615654565b613796848484611789565b50505050565b6000818152600260205260409020546060906001600160a01b031661381b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610fdc565b601b5460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa158015613864573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ecf9190810190615761565b600a546001600160a01b031633146138b65760405162461bcd60e51b8152600401610fdc9061558e565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b600a546000906001600160a01b031633146139055760405162461bcd60e51b8152600401610fdc9061558e565b50601b805460ff600160a81b808304821615810260ff60a81b19909316929092179283905591041690565b600a546001600160a01b0316331461395a5760405162461bcd60e51b8152600401610fdc9061558e565b82811461399d5760405162461bcd60e51b81526020600482015260116024820152704d69736d61746368656420696e7075747360781b6044820152606401610fdc565b60005b838110156128675760168585838181106139bc576139bc615503565b90506020020160208101906139d19190614eb3565b81546001810183556000928352602090922090910180546001600160a01b0319166001600160a01b03909216919091179055828282818110613a1557613a15615503565b9050602002016020810190613a2a91906157e6565b60226000878785818110613a4057613a40615503565b9050602002016020810190613a559190614eb3565b6001600160a01b031681526020810191909152604001600020805460ff191660ff9290921691909117905580613a8a81615519565b9150506139a0565b600a546001600160a01b03163314613abc5760405162461bcd60e51b8152600401610fdc9061558e565b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b03163314613b085760405162461bcd60e51b8152600401610fdc9061558e565b6001600160a01b038116613b6d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610fdc565b611650816144ae565b60006001600160e01b031982166380ac58cd60e01b1480613ba757506001600160e01b03198216635b5e139f60e01b145b80610ecf57506301ffc9a760e01b6001600160e01b0319831614610ecf565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613bfb826123c4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b601c5460408051633eca3c9560e11b815290516000926001600160a01b031691637d94792a9160048083019260209291908290030181865afa158015613c7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ca291906154ea565b32613cae6001436154b1565b60405160609290921b6bffffffffffffffffffffffff191660208301524060348201524460548201524260748201526094810184905260b40160408051601f1981840301815291905280516020909101201892915050565b613d0e614e13565b613d1782614500565b905060186000613d26836146ec565b81526020019081526020016000205460001415613e655760008381526017602090815260408083208451815493860151928601516060870151608088015160a089015160c08a015160e08b0151610100808d015161ffff19909b1697151561ff001916979097179815159096029790971763ffff000019166201000060ff9586160263ff0000001916176301000000938516939093029290921765ffff0000000019166401000000009184169190910265ff000000000019161765010000000000918316919091021767ffff0000000000001916600160301b9482169490940267ff00000000000000191693909317600160381b918416919091021768ff00000000000000001916600160401b92909316919091029190911790558390601890613e4f846146ec565b8152602081019190915260400160002055610ecf565b613e7783613e7284613c34565b613d06565b9392505050565b60145460155460009161ffff909116111580613ea75750613ea4600a60f584901c615803565b15155b15613eb25733610ecf565b6019546040516329720ae760e21b8152609084901c60048201526000916001600160a01b03169063a5c82b9c90602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615817565b90506001600160a01b038116610ecf57339392505050565b61271982826040518060200160405280600081525061479b565b600a54600160a01b900460ff1615613f7f5760405162461bcd60e51b8152600401610fdc9061540b565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613fba3390565b6040516001600160a01b03909116815260200160405180910390a1565b600a54600160a01b900460ff166140285760405162461bcd60e51b815260206004820152601560248201527414185d5cd958589b194e881b9bdd081c185d5cd959605a1b6044820152606401610fdc565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33613fba565b600b546001600160a01b0384166000908152600d60205260408120549091839161408690866156cf565b61409091906156bb565b61409a91906154b1565b949350505050565b804710156140f25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610fdc565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461413f576040519150601f19603f3d011682016040523d82523d6000602084013e614144565b606091505b50509050806111125760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610fdc565b6000818152600260205260408120546001600160a01b03166142345760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610fdc565b600061423f836123c4565b9050806001600160a01b0316846001600160a01b0316148061427a5750836001600160a01b031661426f84610f67565b6001600160a01b0316145b8061409a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16949350505050565b826001600160a01b03166142c4826123c4565b6001600160a01b03161461432c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610fdc565b6001600160a01b03821661438e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610fdc565b6143998383836147a5565b6143a4600082613bc6565b6001600160a01b03831660009081526003602052604081208054600192906143cd9084906154b1565b90915550506001600160a01b03821660009081526003602052604081208054600192906143fb90849061546e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261111290849061485d565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b614508614e13565b601d60009054906101000a90046001600160a01b03166001600160a01b031663aacc5a176040518163ffffffff1660e01b8152600401602060405180830381865afa15801561455b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061457f9190615834565b151580825260009061459257600a614595565b60005b60109390931c9290506145b661ffff84166145b1836000615851565b61492f565b60ff16604083015260109290921c916145d861ffff84166145b1836001615851565b60ff16606083015260109290921c916145fa61ffff84166145b1836002615851565b60ff16608083015260109290921c9161461c61ffff84166145b1836003615851565b60ff1660a083015260109290921c9161463e61ffff84166145b1836004615851565b60ff1660c0830152815160109390931c926146e657601d60009054906101000a90046001600160a01b03166001600160a01b031663aacc5a176040518163ffffffff1660e01b8152600401602060405180830381865afa1580156146a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906146ca9190615834565b6146dd5760016020830152600060e08301525b60056101008301525b50919050565b80516020808301516040808501516060860151608087015160a088015160c089015160e08a0151610100909a0151865199151560f890811b8b8b0152971515881b60218b015294871b6001600160f81b031990811660228b015293871b841660238a015291861b83166024890152851b82166025880152841b8116602687015295831b8616602786015290911b9093166028830152825160098184030181526029909201909252805191012090565b61111283836149a9565b6001600160a01b038316614800576147fb81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b614823565b816001600160a01b0316836001600160a01b031614614823576148238382614af7565b6001600160a01b03821661483a5761111281614b94565b826001600160a01b0316826001600160a01b031614611112576111128282614c43565b60006148b2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614c879092919063ffffffff16565b80519091501561111257808060200190518101906148d09190615834565b6111125760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610fdc565b601b546040516353584b4960e11b815261ffff8416600482015260ff831660248201526000916001600160a01b03169063a6b0969290604401602060405180830381865afa158015614985573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e779190615876565b6001600160a01b0382166149ff5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610fdc565b6000818152600260205260409020546001600160a01b031615614a645760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610fdc565b614a70600083836147a5565b6001600160a01b0382166000908152600360205260408120805460019290614a9990849061546e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001614b0484612487565b614b0e91906154b1565b600083815260076020526040902054909150808214614b61576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090614ba6906001906154b1565b60008381526009602052604081205460088054939450909284908110614bce57614bce615503565b906000526020600020015490508060088381548110614bef57614bef615503565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480614c2757614c276156ee565b6001900381819060005260206000200160009055905550505050565b6000614c4e83612487565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b606061409a848460008585843b614ce05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610fdc565b600080866001600160a01b03168587604051614cfc9190615893565b60006040518083038185875af1925050503d8060008114614d39576040519150601f19603f3d011682016040523d82523d6000602084013e614d3e565b606091505b5091509150614d4e828286614d59565b979650505050505050565b60608315614d68575081613e77565b825115614d785782518084602001fd5b8160405162461bcd60e51b8152600401610fdc9190614efc565b50805460008255906000526020600020908101906116509190614e5f565b828054828255906000526020600020908101928215614e03579160200282015b82811115614e035781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190614dd0565b50614e0f929150614e5f565b5090565b6040805161012081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081019190915290565b5b80821115614e0f5760008155600101614e60565b600060208284031215614e8657600080fd5b81356001600160e01b031981168114613e7757600080fd5b6001600160a01b038116811461165057600080fd5b600060208284031215614ec557600080fd5b8135613e7781614e9e565b60005b83811015614eeb578181015183820152602001614ed3565b838111156137965750506000910152565b6020815260008251806020840152614f1b816040850160208701614ed0565b601f01601f19169190910160400192915050565b600060208284031215614f4157600080fd5b5035919050565b60008060408385031215614f5b57600080fd5b8235614f6681614e9e565b946020939093013593505050565b801515811461165057600080fd5b60008060408385031215614f9557600080fd5b823591506020830135614fa781614f74565b809150509250929050565b600060208284031215614fc457600080fd5b8135613e7781614f74565b600080600060608486031215614fe457600080fd5b8335614fef81614e9e565b92506020840135614fff81614e9e565b929592945050506040919091013590565b60008083601f84011261502257600080fd5b5081356001600160401b0381111561503957600080fd5b6020830191508360208260051b850101111561505457600080fd5b9250929050565b6000806020838503121561506e57600080fd5b82356001600160401b0381111561508457600080fd5b61509085828601615010565b90969095509350505050565b600080604083850312156150af57600080fd5b82356150ba81614e9e565b91506020830135614fa781614e9e565b6000806000606084860312156150df57600080fd5b83356150ea81614e9e565b925060208401359150604084013561510181614f74565b809150509250925092565b6020808252825182820181905260009190848201906040850190845b8181101561514457835183529284019291840191600101615128565b50909695505050505050565b6000806000806040858703121561516657600080fd5b84356001600160401b038082111561517d57600080fd5b61518988838901615010565b909650945060208701359150808211156151a257600080fd5b506151af87828801615010565b95989497509550505050565b60006101208201905082511515825260208301511515602083015260408301516151ea604084018260ff169052565b5060608301516151ff606084018260ff169052565b506080830151615214608084018260ff169052565b5060a083015161522960a084018260ff169052565b5060c083015161523e60c084018260ff169052565b5060e083015161525360e084018260ff169052565b506101009283015160ff16919092015290565b6000806040838503121561527957600080fd5b823561528481614e9e565b91506020830135614fa781614f74565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156152d2576152d2615294565b604052919050565b60006001600160401b038211156152f3576152f3615294565b50601f01601f191660200190565b6000806000806080858703121561531757600080fd5b843561532281614e9e565b9350602085013561533281614e9e565b92506040850135915060608501356001600160401b0381111561535457600080fd5b8501601f8101871361536557600080fd5b8035615378615373826152da565b6152aa565b81815288602083850101111561538d57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600181811c908216806153c357607f821691505b602082108114156146e657634e487b7160e01b600052602260045260246000fd5b6020808252600d908201526c4e6f207265656e7472616e637960981b604082015260600190565b60208082526011908201527014185d5cd958589b194e881c185d5cd959607a1b604082015260600190565b6020808252600890820152674f6e6c7920454f4160c01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561548157615481615458565b500190565b602080825260119082015270105b1b081d1bdad95b9cc81b5a5b9d1959607a1b604082015260600190565b6000828210156154c3576154c3615458565b500390565b600061ffff808316818114156154e0576154e0615458565b6001019392505050565b6000602082840312156154fc57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600060001982141561552d5761552d615458565b5060010190565b6001600160a01b038316815260406020808301829052835191830182905260009184820191906060850190845b8181101561558157845161ffff1683529383019391830191600101615561565b5090979650505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826156ca576156ca6156a5565b500490565b60008160001904831182151516156156e9576156e9615458565b500290565b634e487b7160e01b600052603160045260246000fd5b602080825260139082015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b604082015260600190565b602080825260169082015275125b9d985b1a59081c185e5b595b9d08185b5bdd5b9d60521b604082015260600190565b60006020828403121561577357600080fd5b81516001600160401b0381111561578957600080fd5b8201601f8101841361579a57600080fd5b80516157a8615373826152da565b8181528560208385010111156157bd57600080fd5b6157ce826020830160208601614ed0565b95945050505050565b60ff8116811461165057600080fd5b6000602082840312156157f857600080fd5b8135613e77816157d7565b600082615812576158126156a5565b500690565b60006020828403121561582957600080fd5b8151613e7781614e9e565b60006020828403121561584657600080fd5b8151613e7781614f74565b600060ff821660ff84168060ff0382111561586e5761586e615458565b019392505050565b60006020828403121561588857600080fd5b8151613e77816157d7565b600082516158a5818460208701614ed0565b919091019291505056fea264697066735822122045b209628f400fbd0fa265e960911894d9e668ee8a930c5c62dc926b0a35b40764736f6c634300080a003300000000000000000000000000fe915a5209e74d5a88334cc2daa4541aec8278000000000000000000000000c686776fdb0f30704561d42ae0d8159fe1787a9100000000000000000000000000000000000000000000000000000000000061a8

Deployed Bytecode

0x6080604052600436106104145760003560e01c80636f4f73661161021e578063c084f54011610123578063e05c57bf116100ab578063e93244441161007a578063e932444414610dd6578063e985e9c514610df7578063ee24c66014610e40578063f2fde38b14610e56578063f47c84c514610e7657600080fd5b8063e05c57bf14610c8b578063e116831214610d5f578063e1fc334f14610da1578063e33b7de314610dc157600080fd5b8063d1cbf17d116100f2578063d1cbf17d14610be0578063d38248ea14610bf5578063d6427c2414610c15578063d773826d14610c35578063d79779b214610c5557600080fd5b8063c084f54014610b54578063c87b56dd14610b6a578063ce7c2ac214610b8a578063cf5b5d6414610bc057600080fd5b806395d89b41116101a6578063a22cb46511610175578063a22cb46514610acb578063a243d3b614610aeb578063a2b40d1914610afe578063b88d4fde14610b1e578063c002d23d14610b3e57600080fd5b806395d89b4114610a405780639852595c14610a555780639dbcc0da14610a8b578063a1b8f37414610a9e57600080fd5b80638ab1d681116101ed5780638ab1d681146109955780638b83209b146109b55780638da5cb5b146109d55780638e482cee146109f357806394e5684714610a1357600080fd5b80636f4f73661461091f57806370a082311461093f57806371adc02a1461095f578063853828b61461098057600080fd5b80633a98ef39116103245780634f02c420116102ac578063588d0d0f1161027b578063588d0d0f1461087e5780635c975abb146108935780635d1235d4146108b257806361b55118146108d25780636352211e146108ff57600080fd5b80634f02c420146107f05780634f28bf0e1461081e5780634f6ccce71461083e57806356d1df8c1461085e57600080fd5b806340193883116102f3578063401938831461072a578063406072a91461074a57806342842e0e14610790578063474a9772146107b057806348b75044146107d057600080fd5b80633a98ef39146106cb5780633af32abf146106e05780633ccfd60b146107005780634018b1f81461071557600080fd5b806318160ddd116103a7578063281105e311610376578063281105e31461062b5780632beab4b71461064b5780632f745c591461066b5780633431a7531461068b57806337b8b2e0146106ab57600080fd5b806318160ddd146105b657806319165587146105cb57806323b872dd146105eb57806327de8f271461060b57600080fd5b8063095ea7b3116103e3578063095ea7b3146105345780630c89b766146105565780630c8d66951461057657806316c38b3c1461059657600080fd5b806301ffc9a71461046257806302f1f0b21461049757806306fdde03146104da578063081812fc146104fc57600080fd5b3661045d577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561046e57600080fd5b5061048261047d366004614e74565b610eaa565b60405190151581526020015b60405180910390f35b3480156104a357600080fd5b506104cc6104b2366004614eb3565b6001600160a01b0316600090815260208052604090205490565b60405190815260200161048e565b3480156104e657600080fd5b506104ef610ed5565b60405161048e9190614efc565b34801561050857600080fd5b5061051c610517366004614f2f565b610f67565b6040516001600160a01b03909116815260200161048e565b34801561054057600080fd5b5061055461054f366004614f48565b611001565b005b34801561056257600080fd5b50601c5461051c906001600160a01b031681565b34801561058257600080fd5b50610554610591366004614f82565b611117565b3480156105a257600080fd5b506105546105b1366004614fb2565b611618565b3480156105c257600080fd5b506008546104cc565b3480156105d757600080fd5b506105546105e6366004614eb3565b61165b565b3480156105f757600080fd5b50610554610606366004614fcf565b611789565b34801561061757600080fd5b506104cc610626366004614f2f565b61181a565b34801561063757600080fd5b50610554610646366004614fb2565b6118d3565b34801561065757600080fd5b5061055461066636600461505b565b611917565b34801561067757600080fd5b506104cc610686366004614f48565b611959565b34801561069757600080fd5b506105546106a6366004614f2f565b6119ef565b3480156106b757600080fd5b506105546106c6366004614eb3565b611a1e565b3480156106d757600080fd5b50600b546104cc565b3480156106ec57600080fd5b506104826106fb366004614eb3565b611a6a565b34801561070c57600080fd5b50610554611ad4565b34801561072157600080fd5b506014546104cc565b34801561073657600080fd5b50601a5461051c906001600160a01b031681565b34801561075657600080fd5b506104cc61076536600461509c565b6001600160a01b03918216600090815260116020908152604080832093909416825291909152205490565b34801561079c57600080fd5b506105546107ab366004614fcf565b611b37565b3480156107bc57600080fd5b506104cc6107cb366004614eb3565b611b52565b3480156107dc57600080fd5b506105546107eb36600461509c565b611bd4565b3480156107fc57600080fd5b5060155461080b9061ffff1681565b60405161ffff909116815260200161048e565b34801561082a57600080fd5b5060195461051c906001600160a01b031681565b34801561084a57600080fd5b506104cc610859366004614f2f565b611dad565b34801561086a57600080fd5b506105546108793660046150ca565b611e40565b34801561088a57600080fd5b506104826122a1565b34801561089f57600080fd5b50600a54600160a01b900460ff16610482565b3480156108be57600080fd5b5061051c6108cd366004614f2f565b6122f9565b3480156108de57600080fd5b506108f26108ed366004614eb3565b612323565b60405161048e919061510c565b34801561090b57600080fd5b5061051c61091a366004614f2f565b6123c4565b34801561092b57600080fd5b5061055461093a366004614eb3565b61243b565b34801561094b57600080fd5b506104cc61095a366004614eb3565b612487565b34801561096b57600080fd5b50601b5461048290600160a81b900460ff1681565b34801561098c57600080fd5b5061055461250e565b3480156109a157600080fd5b506105546109b0366004614eb3565b6125ca565b3480156109c157600080fd5b5061051c6109d0366004614f2f565b61271d565b3480156109e157600080fd5b50600a546001600160a01b031661051c565b3480156109ff57600080fd5b50610554610a0e366004615150565b61274d565b348015610a1f57600080fd5b50610a33610a2e366004614f2f565b61286e565b60405161048e91906151bb565b348015610a4c57600080fd5b506104ef612917565b348015610a6157600080fd5b506104cc610a70366004614eb3565b6001600160a01b03166000908152600e602052604090205490565b610554610a99366004614f82565b612926565b348015610aaa57600080fd5b506104cc610ab9366004614f2f565b60186020526000908152604090205481565b348015610ad757600080fd5b50610554610ae6366004615266565b613059565b610554610af9366004614f82565b61311e565b348015610b0a57600080fd5b50610554610b19366004614f2f565b613736565b348015610b2a57600080fd5b50610554610b39366004615301565b613765565b348015610b4a57600080fd5b506104cc60125481565b348015610b6057600080fd5b506104cc60145481565b348015610b7657600080fd5b506104ef610b85366004614f2f565b61379c565b348015610b9657600080fd5b506104cc610ba5366004614eb3565b6001600160a01b03166000908152600d602052604090205490565b348015610bcc57600080fd5b50610554610bdb366004614eb3565b61388c565b348015610bec57600080fd5b506104826138d8565b348015610c0157600080fd5b50610554610c10366004615150565b613930565b348015610c2157600080fd5b50601d5461051c906001600160a01b031681565b348015610c4157600080fd5b50610554610c50366004614eb3565b613a92565b348015610c6157600080fd5b506104cc610c70366004614eb3565b6001600160a01b031660009081526010602052604090205490565b348015610c9757600080fd5b50610d0d610ca6366004614f2f565b60176020526000908152604090205460ff808216916101008104821691620100008204811691630100000081048216916401000000008204811691650100000000008104821691600160301b8204811691600160381b8104821691600160401b9091041689565b604080519915158a5297151560208a015260ff9687169789019790975293851660608801529184166080870152831660a0860152821660c0850152811660e0840152166101008201526101200161048e565b348015610d6b57600080fd5b50610d8f610d7a366004614eb3565b60226020526000908152604090205460ff1681565b60405160ff909116815260200161048e565b348015610dad57600080fd5b50601b5461051c906001600160a01b031681565b348015610dcd57600080fd5b50600c546104cc565b348015610de257600080fd5b50601b5461048290600160a01b900460ff1681565b348015610e0357600080fd5b50610482610e1236600461509c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610e4c57600080fd5b506104cc60135481565b348015610e6257600080fd5b50610554610e71366004614eb3565b613ade565b348015610e8257600080fd5b506104cc7f00000000000000000000000000000000000000000000000000000000000061a881565b60006001600160e01b0319821663780e9d6360e01b1480610ecf5750610ecf82613b76565b92915050565b606060008054610ee4906153af565b80601f0160208091040260200160405190810160405280929190818152602001828054610f10906153af565b8015610f5d5780601f10610f3257610100808354040283529160200191610f5d565b820191906000526020600020905b815481529060010190602001808311610f4057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610fe55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061100c826123c4565b9050806001600160a01b0316836001600160a01b0316141561107a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610fdc565b336001600160a01b038216148061109657506110968133610e12565b6111085760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610fdc565b6111128383613bc6565b505050565b60235460ff161561113a5760405162461bcd60e51b8152600401610fdc906153e4565b6023805460ff1916600117905561115b600a5460ff600160a01b9091041690565b156111785760405162461bcd60e51b8152600401610fdc9061540b565b3233146111975760405162461bcd60e51b8152600401610fdc90615436565b6015547f00000000000000000000000000000000000000000000000000000000000061a8906111cb90849061ffff1661546e565b11156111e95760405162461bcd60e51b8152600401610fdc90615486565b601b54600160a81b900460ff166112375760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610fdc565b33600090815260208052604090205482111561128d5760405162461bcd60e51b81526020600482015260156024820152740416d6f756e74206578636565642061697264726f7605c1b6044820152606401610fdc565b336000908152602080526040812080548492906112ab9084906154b1565b9091555060009050826001600160401b038111156112cb576112cb615294565b6040519080825280602002602001820160405280156112f4578160200160208202803683370190505b5090506000836001600160401b0381111561131157611311615294565b60405190808252806020026020018201604052801561133a578160200160208202803683370190505b5060155490915060009061ffff16815b86811015611503576015805461ffff16906000611366836154c8565b82546101009290920a61ffff81810219909316918316021790915560155461138f925016613c34565b601c54601554604051634155c48560e11b815261ffff909116831860048201529194506001600160a01b0316906382ab890a906024016020604051808303816000875af11580156113e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061140891906154ea565b5060155461141a9061ffff1684613d06565b50600061142684613e7e565b905086158061143e57506001600160a01b0381163314155b1561147b578085838151811061145657611456615503565b60200260200101906001600160a01b031690816001600160a01b0316815250506114f0565b601554865161ffff9091169087908490811061149957611499615503565b61ffff9092166020928302919091019091015260195485516001600160a01b03909116908690849081106114cf576114cf615503565b60200260200101906001600160a01b031690816001600160a01b0316815250505b50806114fb81615519565b91505061134a565b5060005b835181101561159c57600061151c828461546e565b61152790600161546e565b90508615806115615750336001600160a01b031685838151811061154d5761154d615503565b60200260200101516001600160a01b031614155b156115895761158985838151811061157b5761157b615503565b602002602001015182613f3b565b508061159481615519565b915050611507565b508415611606576019546001600160a01b0316630b2f27e133866040518363ffffffff1660e01b81526004016115d3929190615534565b600060405180830381600087803b1580156115ed57600080fd5b505af1158015611601573d6000803e3d6000fd5b505050505b50506023805460ff1916905550505050565b600a546001600160a01b031633146116425760405162461bcd60e51b8152600401610fdc9061558e565b801561165357611650613f55565b50565b611650613fd7565b6001600160a01b0381166000908152600d60205260409020546116905760405162461bcd60e51b8152600401610fdc906155c3565b600061169b600c5490565b6116a5904761546e565b905060006116d283836116cd866001600160a01b03166000908152600e602052604090205490565b61405c565b9050806116f15760405162461bcd60e51b8152600401610fdc90615609565b6001600160a01b0383166000908152600e60205260408120805483929061171990849061546e565b9250508190555080600c6000828254611732919061546e565b90915550611742905083826140a2565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b60235460ff16156117ac5760405162461bcd60e51b8152600401610fdc906153e4565b6023805460ff191660011790556019546001600160a01b03166117cc3390565b6001600160a01b031614611800576117e433826141bb565b6118005760405162461bcd60e51b8152600401610fdc90615654565b61180b8383836142b1565b50506023805460ff1916905550565b6000601454821161182d57506000919050565b60145461183c90610bb861546e565b82116118525750686c6b935b8bbd400000919050565b6014546118619061177061546e565b8211611877575068a2a15d09519be00000919050565b6014546118869061232861546e565b821161189c575068d8d726b7177a800000919050565b6014546118ab90612ee061546e565b82116118c2575069010f0cf064dd59200000919050565b50690cb49b44ba602d800000919050565b600a546001600160a01b031633146118fd5760405162461bcd60e51b8152600401610fdc9061558e565b602380549115156101000261ff0019909216919091179055565b600a546001600160a01b031633146119415760405162461bcd60e51b8152600401610fdc9061558e565b61194d60166000614d92565b61111260168383614db0565b600061196483612487565b82106119c65760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610fdc565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314611a195760405162461bcd60e51b8152600401610fdc9061558e565b601455565b600a546001600160a01b03163314611a485760405162461bcd60e51b8152600401610fdc9061558e565b601d80546001600160a01b0319166001600160a01b0392909216919091179055565b6000805b601654811015611acb57826001600160a01b031660168281548110611a9557611a95615503565b6000918252602090912001546001600160a01b03161415611ab95750600192915050565b80611ac381615519565b915050611a6e565b50600092915050565b600a546001600160a01b03163314611afe5760405162461bcd60e51b8152600401610fdc9061558e565b600a546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015611650573d6000803e3d6000fd5b61111283838360405180602001604052806000815250613765565b6001600160a01b03811660009081526022602052604081205460ff1660011415611b85576002601254610ecf91906156bb565b6001600160a01b03821660009081526022602052604090205460ff1660021415611bc45760046012546003611bba91906156cf565b610ecf91906156bb565b50681043561a8829300000919050565b6001600160a01b0381166000908152600d6020526040902054611c095760405162461bcd60e51b8152600401610fdc906155c3565b6001600160a01b0382166000908152601060205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015611c66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c8a91906154ea565b611c94919061546e565b90506000611ccd83836116cd87876001600160a01b03918216600090815260116020908152604080832093909416825291909152205490565b905080611cec5760405162461bcd60e51b8152600401610fdc90615609565b6001600160a01b03808516600090815260116020908152604080832093871683529290529081208054839290611d2390849061546e565b90915550506001600160a01b03841660009081526010602052604081208054839290611d5090849061546e565b90915550611d61905084848361445c565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000611db860085490565b8210611e1b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610fdc565b60088281548110611e2e57611e2e615503565b90600052602060002001549050919050565b600a546001600160a01b03163314611e6a5760405162461bcd60e51b8152600401610fdc9061558e565b60235460ff1615611e8d5760405162461bcd60e51b8152600401610fdc906153e4565b6023805460ff19166001179055611eae600a5460ff600160a01b9091041690565b15611ecb5760405162461bcd60e51b8152600401610fdc9061540b565b323314611eea5760405162461bcd60e51b8152600401610fdc90615436565b6015547f00000000000000000000000000000000000000000000000000000000000061a890611f1e90849061ffff1661546e565b1115611f3c5760405162461bcd60e51b8152600401610fdc90615486565b6000826001600160401b03811115611f5657611f56615294565b604051908082528060200260200182016040528015611f7f578160200160208202803683370190505b5090506000836001600160401b03811115611f9c57611f9c615294565b604051908082528060200260200182016040528015611fc5578160200160208202803683370190505b5060155490915060009061ffff16815b86811015612197576015805461ffff16906000611ff1836154c8565b82546101009290920a61ffff81810219909316918316021790915560155461201a925016613c34565b601c54601554604051634155c48560e11b815261ffff909116831860048201529194506001600160a01b0316906382ab890a906024016020604051808303816000875af115801561206f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061209391906154ea565b506015546120a59061ffff1684613d06565b5060006120b184613e7e565b90508615806120d25750886001600160a01b0316816001600160a01b031614155b1561210f57808583815181106120ea576120ea615503565b60200260200101906001600160a01b031690816001600160a01b031681525050612184565b601554865161ffff9091169087908490811061212d5761212d615503565b61ffff9092166020928302919091019091015260195485516001600160a01b039091169086908490811061216357612163615503565b60200260200101906001600160a01b031690816001600160a01b0316815250505b508061218f81615519565b915050611fd5565b5060005b83518110156122225760006121b0828461546e565b6121bb90600161546e565b90508615806121f55750886001600160a01b03168583815181106121e1576121e1615503565b60200260200101516001600160a01b031614155b1561220f5761220f85838151811061157b5761157b615503565b508061221a81615519565b91505061219b565b50841561228e57601954604051630b2f27e160e01b81526001600160a01b0390911690630b2f27e19061225b908a908890600401615534565b600060405180830381600087803b15801561227557600080fd5b505af1158015612289573d6000803e3d6000fd5b505050505b50506023805460ff191690555050505050565b600a546000906001600160a01b031633146122ce5760405162461bcd60e51b8152600401610fdc9061558e565b50601b805460ff600160a01b808304821615810260ff60a01b19909316929092179283905591041690565b6016818154811061230957600080fd5b6000918252602090912001546001600160a01b0316905081565b6060600061233083612487565b90506000816001600160401b0381111561234c5761234c615294565b604051908082528060200260200182016040528015612375578160200160208202803683370190505b50905060005b828110156123bc5761238d8582611959565b82828151811061239f5761239f615503565b6020908102919091010152806123b481615519565b91505061237b565b509392505050565b6000818152600260205260408120546001600160a01b031680610ecf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610fdc565b600a546001600160a01b031633146124655760405162461bcd60e51b8152600401610fdc9061558e565b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166124f25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610fdc565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146125385760405162461bcd60e51b8152600401610fdc9061558e565b60235460ff161561255b5760405162461bcd60e51b8152600401610fdc906153e4565b6023805460ff1916600117905560005b601e548110156125bd576000601e828154811061258a5761258a615503565b6000918252602090912001546001600160a01b031690506125aa8161165b565b50806125b581615519565b91505061256b565b506023805460ff19169055565b600a546001600160a01b031633146125f45760405162461bcd60e51b8152600401610fdc9061558e565b60005b60165481101561271957816001600160a01b03166016828154811061261e5761261e615503565b6000918252602090912001546001600160a01b031614156127075760168054612649906001906154b1565b8154811061265957612659615503565b600091825260209091200154601680546001600160a01b03909216918390811061268557612685615503565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060168054806126c4576126c46156ee565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b03841682526022905260409020805460ff191690555b8061271181615519565b9150506125f7565b5050565b6000600f828154811061273257612732615503565b6000918252602090912001546001600160a01b031692915050565b600a546001600160a01b031633146127775760405162461bcd60e51b8152600401610fdc9061558e565b8281146127ec5760405162461bcd60e51b815260206004820152603a60248201527f4e756d626572206f662061646472657373657320697320646966666572656e7460448201527f207468616e20746865206e756d626572206f662076616c7565730000000000006064820152608401610fdc565b60005b818110156128675782828281811061280957612809615503565b905060200201356020600087878581811061282657612826615503565b905060200201602081019061283b9190614eb3565b6001600160a01b031681526020810191909152604001600020558061285f81615519565b9150506127ef565b5050505050565b612876614e13565b50600090815260176020908152604091829020825161012081018452905460ff8082161515835261010080830482161515948401949094526201000082048116948301949094526301000000810484166060830152640100000000810484166080830152650100000000008104841660a0830152600160301b8104841660c0830152600160381b8104841660e0830152600160401b90049092169082015290565b606060018054610ee4906153af565b60235460ff16156129495760405162461bcd60e51b8152600401610fdc906153e4565b6023805460ff1916600117905561296a600a5460ff600160a01b9091041690565b156129875760405162461bcd60e51b8152600401610fdc9061540b565b80158061299b5750602354610100900460ff165b6129df5760405162461bcd60e51b815260206004820152601560248201527414dd185ada5b99c81b9bdd081858dd1a5d985d1959605a1b6044820152606401610fdc565b601b54600160a81b900460ff16612a2d5760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610fdc565b612a3633611a6a565b612a795760405162461bcd60e51b8152602060048201526014602482015273155cd95c881b9bdd081dda1a5d195b1a5cdd195960621b6044820152606401610fdc565b323314612a985760405162461bcd60e51b8152600401610fdc90615436565b6015547f00000000000000000000000000000000000000000000000000000000000061a890612acc90849061ffff1661546e565b1115612aea5760405162461bcd60e51b8152600401610fdc90615486565b60008211612b0a5760405162461bcd60e51b8152600401610fdc90615704565b612b1333611b52565b612b1d90836156cf565b341015612b3c5760405162461bcd60e51b8152600401610fdc90615731565b3360009081526022602052604090205460ff1660011415612b8a576003821115612b785760405162461bcd60e51b8152600401610fdc90615704565b680821ab0d4414980000601255612bb8565b81600114612baa5760405162461bcd60e51b8152600401610fdc90615704565b680c328093e61ee400006012555b60145460155461ffff161015612c5c57601454601554612bdd90849061ffff1661546e565b1115612c2b5760405162461bcd60e51b815260206004820152601f60248201527f416c6c20746f6b656e73206f6e2d73616c6520616c726561647920736f6c64006044820152606401610fdc565b3460125483612c3a91906156cf565b14612c575760405162461bcd60e51b8152600401610fdc90615731565b612c67565b3415612c6757600080fd5b600080836001600160401b03811115612c8257612c82615294565b604051908082528060200260200182016040528015612cab578160200160208202803683370190505b5090506000846001600160401b03811115612cc857612cc8615294565b604051908082528060200260200182016040528015612cf1578160200160208202803683370190505b5060155490915060009061ffff16815b87811015612ed7576015805461ffff16906000612d1d836154c8565b82546101009290920a61ffff818102199093169183160217909155601554612d46925016613c34565b601c54601554604051634155c48560e11b815261ffff909116831860048201529194506001600160a01b0316906382ab890a906024016020604051808303816000875af1158015612d9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dbf91906154ea565b50601554612dd19061ffff1684613d06565b506000612ddd84613e7e565b601554909150612df09061ffff1661181a565b612dfa908861546e565b9650871580612e1257506001600160a01b0381163314155b15612e4f5780858381518110612e2a57612e2a615503565b60200260200101906001600160a01b031690816001600160a01b031681525050612ec4565b601554865161ffff90911690879084908110612e6d57612e6d615503565b61ffff9092166020928302919091019091015260195485516001600160a01b0390911690869084908110612ea357612ea3615503565b60200260200101906001600160a01b031690816001600160a01b0316815250505b5080612ecf81615519565b915050612d01565b508415612f5157601a546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101889052604401600060405180830381600087803b158015612f3857600080fd5b505af1158015612f4c573d6000803e3d6000fd5b505050505b60005b8351811015613001576000612f69828461546e565b612f7490600161546e565b9050871580612fae5750336001600160a01b0316858381518110612f9a57612f9a615503565b60200260200101516001600160a01b031614155b15612fee5733600090815260216020526040812080548b9290612fd290849061546e565b92505081905550612fee85838151811061157b5761157b615503565b5080612ff981615519565b915050612f54565b5061300b336125ca565b336000908152602260205260409020805460ff19169055851561228e576019546001600160a01b0316630b2f27e1335b866040518363ffffffff1660e01b815260040161225b929190615534565b6001600160a01b0382163314156130b25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610fdc565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60235460ff16156131415760405162461bcd60e51b8152600401610fdc906153e4565b6023805460ff19166001179055613162600a5460ff600160a01b9091041690565b1561317f5760405162461bcd60e51b8152600401610fdc9061540b565b8015806131935750602354610100900460ff165b6131d75760405162461bcd60e51b815260206004820152601560248201527414dd185ada5b99c81b9bdd081858dd1a5d985d1959605a1b6044820152606401610fdc565b601b54600160a81b900460ff166132305760405162461bcd60e51b815260206004820152601960248201527f5075626c69632053616c65206973206e6f7420616374697665000000000000006044820152606401610fdc565b32331461324f5760405162461bcd60e51b8152600401610fdc90615436565b6015547f00000000000000000000000000000000000000000000000000000000000061a89061328390849061ffff1661546e565b11156132a15760405162461bcd60e51b8152600401610fdc90615486565b6000821180156132b357506013548211155b6132cf5760405162461bcd60e51b8152600401610fdc90615704565b60145460155461ffff161015613373576014546015546132f490849061ffff1661546e565b11156133425760405162461bcd60e51b815260206004820152601f60248201527f416c6c20746f6b656e73206f6e2d73616c6520616c726561647920736f6c64006044820152606401610fdc565b346012548361335191906156cf565b1461336e5760405162461bcd60e51b8152600401610fdc90615731565b61337e565b341561337e57600080fd5b600080836001600160401b0381111561339957613399615294565b6040519080825280602002602001820160405280156133c2578160200160208202803683370190505b5090506000846001600160401b038111156133df576133df615294565b604051908082528060200260200182016040528015613408578160200160208202803683370190505b5060155490915060009061ffff16815b878110156135ee576015805461ffff16906000613434836154c8565b82546101009290920a61ffff81810219909316918316021790915560155461345d925016613c34565b601c54601554604051634155c48560e11b815261ffff909116831860048201529194506001600160a01b0316906382ab890a906024016020604051808303816000875af11580156134b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134d691906154ea565b506015546134e89061ffff1684613d06565b5060006134f484613e7e565b6015549091506135079061ffff1661181a565b613511908861546e565b965087158061352957506001600160a01b0381163314155b15613566578085838151811061354157613541615503565b60200260200101906001600160a01b031690816001600160a01b0316815250506135db565b601554865161ffff9091169087908490811061358457613584615503565b61ffff9092166020928302919091019091015260195485516001600160a01b03909116908690849081106135ba576135ba615503565b60200260200101906001600160a01b031690816001600160a01b0316815250505b50806135e681615519565b915050613418565b50841561366857601a546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101889052604401600060405180830381600087803b15801561364f57600080fd5b505af1158015613663573d6000803e3d6000fd5b505050505b60005b8351811015613718576000613680828461546e565b61368b90600161546e565b90508715806136c55750336001600160a01b03168583815181106136b1576136b1615503565b60200260200101516001600160a01b031614155b156137055733600090815260216020526040812080548b92906136e990849061546e565b9250508190555061370585838151811061157b5761157b615503565b508061371081615519565b91505061366b565b50851561228e576019546001600160a01b0316630b2f27e13361303b565b600a546001600160a01b031633146137605760405162461bcd60e51b8152600401610fdc9061558e565b601255565b61376f33836141bb565b61378b5760405162461bcd60e51b8152600401610fdc90615654565b613796848484611789565b50505050565b6000818152600260205260409020546060906001600160a01b031661381b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610fdc565b601b5460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa158015613864573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ecf9190810190615761565b600a546001600160a01b031633146138b65760405162461bcd60e51b8152600401610fdc9061558e565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b600a546000906001600160a01b031633146139055760405162461bcd60e51b8152600401610fdc9061558e565b50601b805460ff600160a81b808304821615810260ff60a81b19909316929092179283905591041690565b600a546001600160a01b0316331461395a5760405162461bcd60e51b8152600401610fdc9061558e565b82811461399d5760405162461bcd60e51b81526020600482015260116024820152704d69736d61746368656420696e7075747360781b6044820152606401610fdc565b60005b838110156128675760168585838181106139bc576139bc615503565b90506020020160208101906139d19190614eb3565b81546001810183556000928352602090922090910180546001600160a01b0319166001600160a01b03909216919091179055828282818110613a1557613a15615503565b9050602002016020810190613a2a91906157e6565b60226000878785818110613a4057613a40615503565b9050602002016020810190613a559190614eb3565b6001600160a01b031681526020810191909152604001600020805460ff191660ff9290921691909117905580613a8a81615519565b9150506139a0565b600a546001600160a01b03163314613abc5760405162461bcd60e51b8152600401610fdc9061558e565b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b03163314613b085760405162461bcd60e51b8152600401610fdc9061558e565b6001600160a01b038116613b6d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610fdc565b611650816144ae565b60006001600160e01b031982166380ac58cd60e01b1480613ba757506001600160e01b03198216635b5e139f60e01b145b80610ecf57506301ffc9a760e01b6001600160e01b0319831614610ecf565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613bfb826123c4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b601c5460408051633eca3c9560e11b815290516000926001600160a01b031691637d94792a9160048083019260209291908290030181865afa158015613c7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ca291906154ea565b32613cae6001436154b1565b60405160609290921b6bffffffffffffffffffffffff191660208301524060348201524460548201524260748201526094810184905260b40160408051601f1981840301815291905280516020909101201892915050565b613d0e614e13565b613d1782614500565b905060186000613d26836146ec565b81526020019081526020016000205460001415613e655760008381526017602090815260408083208451815493860151928601516060870151608088015160a089015160c08a015160e08b0151610100808d015161ffff19909b1697151561ff001916979097179815159096029790971763ffff000019166201000060ff9586160263ff0000001916176301000000938516939093029290921765ffff0000000019166401000000009184169190910265ff000000000019161765010000000000918316919091021767ffff0000000000001916600160301b9482169490940267ff00000000000000191693909317600160381b918416919091021768ff00000000000000001916600160401b92909316919091029190911790558390601890613e4f846146ec565b8152602081019190915260400160002055610ecf565b613e7783613e7284613c34565b613d06565b9392505050565b60145460155460009161ffff909116111580613ea75750613ea4600a60f584901c615803565b15155b15613eb25733610ecf565b6019546040516329720ae760e21b8152609084901c60048201526000916001600160a01b03169063a5c82b9c90602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615817565b90506001600160a01b038116610ecf57339392505050565b61271982826040518060200160405280600081525061479b565b600a54600160a01b900460ff1615613f7f5760405162461bcd60e51b8152600401610fdc9061540b565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613fba3390565b6040516001600160a01b03909116815260200160405180910390a1565b600a54600160a01b900460ff166140285760405162461bcd60e51b815260206004820152601560248201527414185d5cd958589b194e881b9bdd081c185d5cd959605a1b6044820152606401610fdc565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33613fba565b600b546001600160a01b0384166000908152600d60205260408120549091839161408690866156cf565b61409091906156bb565b61409a91906154b1565b949350505050565b804710156140f25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610fdc565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461413f576040519150601f19603f3d011682016040523d82523d6000602084013e614144565b606091505b50509050806111125760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610fdc565b6000818152600260205260408120546001600160a01b03166142345760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610fdc565b600061423f836123c4565b9050806001600160a01b0316846001600160a01b0316148061427a5750836001600160a01b031661426f84610f67565b6001600160a01b0316145b8061409a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16949350505050565b826001600160a01b03166142c4826123c4565b6001600160a01b03161461432c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610fdc565b6001600160a01b03821661438e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610fdc565b6143998383836147a5565b6143a4600082613bc6565b6001600160a01b03831660009081526003602052604081208054600192906143cd9084906154b1565b90915550506001600160a01b03821660009081526003602052604081208054600192906143fb90849061546e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261111290849061485d565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b614508614e13565b601d60009054906101000a90046001600160a01b03166001600160a01b031663aacc5a176040518163ffffffff1660e01b8152600401602060405180830381865afa15801561455b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061457f9190615834565b151580825260009061459257600a614595565b60005b60109390931c9290506145b661ffff84166145b1836000615851565b61492f565b60ff16604083015260109290921c916145d861ffff84166145b1836001615851565b60ff16606083015260109290921c916145fa61ffff84166145b1836002615851565b60ff16608083015260109290921c9161461c61ffff84166145b1836003615851565b60ff1660a083015260109290921c9161463e61ffff84166145b1836004615851565b60ff1660c0830152815160109390931c926146e657601d60009054906101000a90046001600160a01b03166001600160a01b031663aacc5a176040518163ffffffff1660e01b8152600401602060405180830381865afa1580156146a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906146ca9190615834565b6146dd5760016020830152600060e08301525b60056101008301525b50919050565b80516020808301516040808501516060860151608087015160a088015160c089015160e08a0151610100909a0151865199151560f890811b8b8b0152971515881b60218b015294871b6001600160f81b031990811660228b015293871b841660238a015291861b83166024890152851b82166025880152841b8116602687015295831b8616602786015290911b9093166028830152825160098184030181526029909201909252805191012090565b61111283836149a9565b6001600160a01b038316614800576147fb81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b614823565b816001600160a01b0316836001600160a01b031614614823576148238382614af7565b6001600160a01b03821661483a5761111281614b94565b826001600160a01b0316826001600160a01b031614611112576111128282614c43565b60006148b2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614c879092919063ffffffff16565b80519091501561111257808060200190518101906148d09190615834565b6111125760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610fdc565b601b546040516353584b4960e11b815261ffff8416600482015260ff831660248201526000916001600160a01b03169063a6b0969290604401602060405180830381865afa158015614985573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e779190615876565b6001600160a01b0382166149ff5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610fdc565b6000818152600260205260409020546001600160a01b031615614a645760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610fdc565b614a70600083836147a5565b6001600160a01b0382166000908152600360205260408120805460019290614a9990849061546e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001614b0484612487565b614b0e91906154b1565b600083815260076020526040902054909150808214614b61576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090614ba6906001906154b1565b60008381526009602052604081205460088054939450909284908110614bce57614bce615503565b906000526020600020015490508060088381548110614bef57614bef615503565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480614c2757614c276156ee565b6001900381819060005260206000200160009055905550505050565b6000614c4e83612487565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b606061409a848460008585843b614ce05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610fdc565b600080866001600160a01b03168587604051614cfc9190615893565b60006040518083038185875af1925050503d8060008114614d39576040519150601f19603f3d011682016040523d82523d6000602084013e614d3e565b606091505b5091509150614d4e828286614d59565b979650505050505050565b60608315614d68575081613e77565b825115614d785782518084602001fd5b8160405162461bcd60e51b8152600401610fdc9190614efc565b50805460008255906000526020600020908101906116509190614e5f565b828054828255906000526020600020908101928215614e03579160200282015b82811115614e035781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190614dd0565b50614e0f929150614e5f565b5090565b6040805161012081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081019190915290565b5b80821115614e0f5760008155600101614e60565b600060208284031215614e8657600080fd5b81356001600160e01b031981168114613e7757600080fd5b6001600160a01b038116811461165057600080fd5b600060208284031215614ec557600080fd5b8135613e7781614e9e565b60005b83811015614eeb578181015183820152602001614ed3565b838111156137965750506000910152565b6020815260008251806020840152614f1b816040850160208701614ed0565b601f01601f19169190910160400192915050565b600060208284031215614f4157600080fd5b5035919050565b60008060408385031215614f5b57600080fd5b8235614f6681614e9e565b946020939093013593505050565b801515811461165057600080fd5b60008060408385031215614f9557600080fd5b823591506020830135614fa781614f74565b809150509250929050565b600060208284031215614fc457600080fd5b8135613e7781614f74565b600080600060608486031215614fe457600080fd5b8335614fef81614e9e565b92506020840135614fff81614e9e565b929592945050506040919091013590565b60008083601f84011261502257600080fd5b5081356001600160401b0381111561503957600080fd5b6020830191508360208260051b850101111561505457600080fd5b9250929050565b6000806020838503121561506e57600080fd5b82356001600160401b0381111561508457600080fd5b61509085828601615010565b90969095509350505050565b600080604083850312156150af57600080fd5b82356150ba81614e9e565b91506020830135614fa781614e9e565b6000806000606084860312156150df57600080fd5b83356150ea81614e9e565b925060208401359150604084013561510181614f74565b809150509250925092565b6020808252825182820181905260009190848201906040850190845b8181101561514457835183529284019291840191600101615128565b50909695505050505050565b6000806000806040858703121561516657600080fd5b84356001600160401b038082111561517d57600080fd5b61518988838901615010565b909650945060208701359150808211156151a257600080fd5b506151af87828801615010565b95989497509550505050565b60006101208201905082511515825260208301511515602083015260408301516151ea604084018260ff169052565b5060608301516151ff606084018260ff169052565b506080830151615214608084018260ff169052565b5060a083015161522960a084018260ff169052565b5060c083015161523e60c084018260ff169052565b5060e083015161525360e084018260ff169052565b506101009283015160ff16919092015290565b6000806040838503121561527957600080fd5b823561528481614e9e565b91506020830135614fa781614f74565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156152d2576152d2615294565b604052919050565b60006001600160401b038211156152f3576152f3615294565b50601f01601f191660200190565b6000806000806080858703121561531757600080fd5b843561532281614e9e565b9350602085013561533281614e9e565b92506040850135915060608501356001600160401b0381111561535457600080fd5b8501601f8101871361536557600080fd5b8035615378615373826152da565b6152aa565b81815288602083850101111561538d57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600181811c908216806153c357607f821691505b602082108114156146e657634e487b7160e01b600052602260045260246000fd5b6020808252600d908201526c4e6f207265656e7472616e637960981b604082015260600190565b60208082526011908201527014185d5cd958589b194e881c185d5cd959607a1b604082015260600190565b6020808252600890820152674f6e6c7920454f4160c01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561548157615481615458565b500190565b602080825260119082015270105b1b081d1bdad95b9cc81b5a5b9d1959607a1b604082015260600190565b6000828210156154c3576154c3615458565b500390565b600061ffff808316818114156154e0576154e0615458565b6001019392505050565b6000602082840312156154fc57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600060001982141561552d5761552d615458565b5060010190565b6001600160a01b038316815260406020808301829052835191830182905260009184820191906060850190845b8181101561558157845161ffff1683529383019391830191600101615561565b5090979650505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826156ca576156ca6156a5565b500490565b60008160001904831182151516156156e9576156e9615458565b500290565b634e487b7160e01b600052603160045260246000fd5b602080825260139082015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b604082015260600190565b602080825260169082015275125b9d985b1a59081c185e5b595b9d08185b5bdd5b9d60521b604082015260600190565b60006020828403121561577357600080fd5b81516001600160401b0381111561578957600080fd5b8201601f8101841361579a57600080fd5b80516157a8615373826152da565b8181528560208385010111156157bd57600080fd5b6157ce826020830160208601614ed0565b95945050505050565b60ff8116811461165057600080fd5b6000602082840312156157f857600080fd5b8135613e77816157d7565b600082615812576158126156a5565b500690565b60006020828403121561582957600080fd5b8151613e7781614e9e565b60006020828403121561584657600080fd5b8151613e7781614f74565b600060ff821660ff84168060ff0382111561586e5761586e615458565b019392505050565b60006020828403121561588857600080fd5b8151613e77816157d7565b600082516158a5818460208701614ed0565b919091019291505056fea264697066735822122045b209628f400fbd0fa265e960911894d9e668ee8a930c5c62dc926b0a35b40764736f6c634300080a0033

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

00000000000000000000000000fe915a5209e74d5a88334cc2daa4541aec8278000000000000000000000000c686776fdb0f30704561d42ae0d8159fe1787a9100000000000000000000000000000000000000000000000000000000000061a8

-----Decoded View---------------
Arg [0] : _goal (address): 0x00fe915a5209e74d5a88334cc2daa4541aec8278
Arg [1] : _traits (address): 0xc686776fdb0f30704561d42ae0d8159fe1787a91
Arg [2] : _maxTokens (uint256): 25000

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000000fe915a5209e74d5a88334cc2daa4541aec8278
Arg [1] : 000000000000000000000000c686776fdb0f30704561d42ae0d8159fe1787a91
Arg [2] : 00000000000000000000000000000000000000000000000000000000000061a8


Deployed ByteCode Sourcemap

382:19993:2:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3284:40:25;666:10:1;3284:40:25;;;-1:-1:-1;;;;;206:32:32;;;188:51;;3314:9:25;270:2:32;255:18;;248:34;161:18;3284:40:25;;;;;;;382:19993:2;;;;;909:222:6;;;;;;;;;;-1:-1:-1;909:222:6;;;;;:::i;:::-;;:::i;:::-;;;749:14:32;;742:22;724:41;;712:2;697:18;909:222:6;;;;;;;;3135:114:2;;;;;;;;;;-1:-1:-1;3135:114:2;;;;;:::i;:::-;-1:-1:-1;;;;;3223:18:2;3199:4;3223:18;;;:8;:18;;;;;;;3135:114;;;;1310:25:32;;;1298:2;1283:18;3135:114:2;1164:177:32;2337:98:5;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;3848:217::-;;;;;;;;;;-1:-1:-1;3848:217:5;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2346:32:32;;;2328:51;;2316:2;2301:18;3848:217:5;2182:203:32;3386:401:5;;;;;;;;;;-1:-1:-1;3386:401:5;;;;;:::i;:::-;;:::i;:::-;;1591:25:2;;;;;;;;;;-1:-1:-1;1591:25:2;;;;-1:-1:-1;;;;;1591:25:2;;;5617:1317;;;;;;;;;;-1:-1:-1;5617:1317:2;;;;;:::i;:::-;;:::i;14980:118::-;;;;;;;;;;-1:-1:-1;14980:118:2;;;;;:::i;:::-;;:::i;1534:111:6:-;;;;;;;;;;-1:-1:-1;1621:10:6;:17;1534:111;;5070:566:25;;;;;;;;;;-1:-1:-1;5070:566:25;;;;;:::i;:::-;;:::i;8758:436:2:-;;;;;;;;;;-1:-1:-1;8758:436:2;;;;;:::i;:::-;;:::i;8360:390::-;;;;;;;;;;-1:-1:-1;8360:390:2;;;;;:::i;:::-;;:::i;15452:101::-;;;;;;;;;;-1:-1:-1;15452:101:2;;;;;:::i;:::-;;:::i;15996:162::-;;;;;;;;;;-1:-1:-1;15996:162:2;;;;;:::i;:::-;;:::i;1210:253:6:-;;;;;;;;;;-1:-1:-1;1210:253:6;;;;;:::i;:::-;;:::i;14798:107:2:-;;;;;;;;;;-1:-1:-1;14798:107:2;;;;;:::i;:::-;;:::i;3007:120::-;;;;;;;;;;-1:-1:-1;3007:120:2;;;;;:::i;:::-;;:::i;3415:91:25:-;;;;;;;;;;-1:-1:-1;3486:12:25;;3415:91;;14000:269:2;;;;;;;;;;-1:-1:-1;14000:269:2;;;;;:::i;:::-;;:::i;14620:106::-;;;;;;;;;;;;;:::i;13889:103::-;;;;;;;;;;-1:-1:-1;13973:11:2;;13889:103;;1426:17;;;;;;;;;;-1:-1:-1;1426:17:2;;;;-1:-1:-1;;;;;1426:17:2;;;4544:135:25;;;;;;;;;;-1:-1:-1;4544:135:25;;;;;:::i;:::-;-1:-1:-1;;;;;4641:21:25;;;4614:7;4641:21;;;:14;:21;;;;;;;;:30;;;;;;;;;;;;;4544:135;5108:179:5;;;;;;;;;;-1:-1:-1;5108:179:5;;;;;:::i;:::-;;:::i;19621:406:2:-;;;;;;;;;;-1:-1:-1;19621:406:2;;;;;:::i;:::-;;:::i;5904:641:25:-;;;;;;;;;;-1:-1:-1;5904:641:25;;;;;:::i;:::-;;:::i;856:20:2:-;;;;;;;;;;-1:-1:-1;856:20:2;;;;;;;;;;;6228:6:32;6216:19;;;6198:38;;6186:2;6171:18;856:20:2;6054:188:32;1353:19:2;;;;;;;;;;-1:-1:-1;1353:19:2;;;;-1:-1:-1;;;;;1353:19:2;;;1717:230:6;;;;;;;;;;-1:-1:-1;1717:230:6;;;;;:::i;:::-;;:::i;6943:1137:2:-;;;;;;;;;;-1:-1:-1;6943:1137:2;;;;;:::i;:::-;;:::i;3257:138::-;;;;;;;;;;;;;:::i;1034:84:24:-;;;;;;;;;;-1:-1:-1;1104:7:24;;-1:-1:-1;;;1104:7:24;;;;1034:84;;921:35:2;;;;;;;;;;-1:-1:-1;921:35:2;;;;;:::i;:::-;;:::i;20035:337::-;;;;;;;;;;-1:-1:-1;20035:337:2;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;2040:235:5:-;;;;;;;;;;-1:-1:-1;2040:235:5;;;;;:::i;:::-;;:::i;15561:82:2:-;;;;;;;;;;-1:-1:-1;15561:82:2;;;;;:::i;:::-;;:::i;1778:205:5:-;;;;;;;;;;-1:-1:-1;1778:205:5;;;;;:::i;:::-;;:::i;1547:35:2:-;;;;;;;;;;-1:-1:-1;1547:35:2;;;;-1:-1:-1;;;1547:35:2;;;;;;16164:215;;;;;;;;;;;;;:::i;19218:395::-;;;;;;;;;;-1:-1:-1;19218:395:2;;;;;:::i;:::-;;:::i;4770:100:25:-;;;;;;;;;;-1:-1:-1;4770:100:25;;;;;:::i;:::-;;:::i;966:85:23:-;;;;;;;;;;-1:-1:-1;1038:6:23;;-1:-1:-1;;;;;1038:6:23;966:85;;15651:337:2;;;;;;;;;;-1:-1:-1;15651:337:2;;;;;:::i;:::-;;:::i;13737:144::-;;;;;;;;;;-1:-1:-1;13737:144:2;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;2499:102:5:-;;;;;;;;;;;;;:::i;4266:109:25:-;;;;;;;;;;-1:-1:-1;4266:109:25;;;;;:::i;:::-;-1:-1:-1;;;;;4349:18:25;4322:7;4349:18;;;:9;:18;;;;;;;4266:109;16391:2449:2;;;;;;:::i;:::-;;:::i;1221:55::-;;;;;;;;;;-1:-1:-1;1221:55:2;;;;;:::i;:::-;;;;;;;;;;;;;;4132:290:5;;;;;;;;;;-1:-1:-1;4132:290:5;;;;;:::i;:::-;;:::i;3726:1885:2:-;;;;;;:::i;:::-;;:::i;15352:92::-;;;;;;;;;;-1:-1:-1;15352:92:2;;;;;:::i;:::-;;:::i;5353:312:5:-;;;;;;;;;;-1:-1:-1;5353:312:5;;;;;:::i;:::-;;:::i;516:37:2:-;;;;;;;;;;;;;;;;774:26;;;;;;;;;;;;;;;;15127:217;;;;;;;;;;-1:-1:-1;15127:217:2;;;;;:::i;:::-;;:::i;4062:105:25:-;;;;;;;;;;-1:-1:-1;4062:105:25;;;;;:::i;:::-;-1:-1:-1;;;;;4143:16:25;4116:7;4143:16;;;:7;:16;;;;;;;4062:105;14448:94:2;;;;;;;;;;-1:-1:-1;14448:94:2;;;;;:::i;:::-;;:::i;3403:150::-;;;;;;;;;;;;;:::i;18850:360::-;;;;;;;;;;-1:-1:-1;18850:360:2;;;;;:::i;:::-;;:::i;1623:33::-;;;;;;;;;;-1:-1:-1;1623:33:2;;;;-1:-1:-1;;;;;1623:33:2;;;2905:96;;;;;;;;;;-1:-1:-1;2905:96:2;;;;;:::i;:::-;;:::i;3852:119:25:-;;;;;;;;;;-1:-1:-1;3852:119:25;;;;;:::i;:::-;-1:-1:-1;;;;;3937:26:25;3910:7;3937:26;;;:19;:26;;;;;;;3852:119;1036:55:2;;;;;;;;;;-1:-1:-1;1036:55:2;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1036:55:2;;;;;-1:-1:-1;;;1036:55:2;;;;;-1:-1:-1;;;1036:55:2;;;;;;;;;;13862:14:32;;13855:22;13837:41;;13921:14;;13914:22;13909:2;13894:18;;13887:50;13956:4;13996:15;;;13976:18;;;13969:43;;;;14048:15;;;14043:2;14028:18;;14021:43;14101:15;;;14095:3;14080:19;;14073:44;14154:15;;14148:3;14133:19;;14126:44;14207:15;;14201:3;14186:19;;14179:44;14260:15;;14254:3;14239:19;;14232:44;14313:15;14307:3;14292:19;;14285:44;13824:3;13809:19;1036:55:2;13506:829:32;2264:47:2;;;;;;;;;;-1:-1:-1;2264:47:2;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;14512:4:32;14500:17;;;14482:36;;14470:2;14455:18;2264:47:2;14340:184:32;1478:21:2;;;;;;;;;;-1:-1:-1;1478:21:2;;;;-1:-1:-1;;;;;1478:21:2;;;3600:95:25;;;;;;;;;;-1:-1:-1;3673:14:25;;3600:95;;1508:32:2;;;;;;;;;;-1:-1:-1;1508:32:2;;;;-1:-1:-1;;;1508:32:2;;;;;;4488:162:5;;;;;;;;;;-1:-1:-1;4488:162:5;;;;;:::i;:::-;-1:-1:-1;;;;;4608:25:5;;;4585:4;4608:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;4488:162;560:31:2;;;;;;;;;;;;;;;;1405:189:23;;;;;;;;;;-1:-1:-1;1405:189:23;;;;;:::i;:::-;;:::i;668:35:2:-;;;;;;;;;;;;;;;909:222:6;1011:4;-1:-1:-1;;;;;;1034:50:6;;-1:-1:-1;;;1034:50:6;;:90;;;1088:36;1112:11;1088:23;:36::i;:::-;1027:97;909:222;-1:-1:-1;;909:222:6:o;2337:98:5:-;2391:13;2423:5;2416:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2337:98;:::o;3848:217::-;3924:7;7225:16;;;:7;:16;;;;;;-1:-1:-1;;;;;7225:16:5;3943:73;;;;-1:-1:-1;;;3943:73:5;;15733:2:32;3943:73:5;;;15715:21:32;15772:2;15752:18;;;15745:30;15811:34;15791:18;;;15784:62;-1:-1:-1;;;15862:18:32;;;15855:42;15914:19;;3943:73:5;;;;;;;;;-1:-1:-1;4034:24:5;;;;:15;:24;;;;;;-1:-1:-1;;;;;4034:24:5;;3848:217::o;3386:401::-;3466:13;3482:23;3497:7;3482:14;:23::i;:::-;3466:39;;3529:5;-1:-1:-1;;;;;3523:11:5;:2;-1:-1:-1;;;;;3523:11:5;;;3515:57;;;;-1:-1:-1;;;3515:57:5;;16146:2:32;3515:57:5;;;16128:21:32;16185:2;16165:18;;;16158:30;16224:34;16204:18;;;16197:62;-1:-1:-1;;;16275:18:32;;;16268:31;16316:19;;3515:57:5;15944:397:32;3515:57:5;666:10:1;-1:-1:-1;;;;;3604:21:5;;;;:62;;-1:-1:-1;3629:37:5;3646:5;666:10:1;4488:162:5;:::i;3629:37::-;3583:165;;;;-1:-1:-1;;;3583:165:5;;16548:2:32;3583:165:5;;;16530:21:32;16587:2;16567:18;;;16560:30;16626:34;16606:18;;;16599:62;16697:26;16677:18;;;16670:54;16741:19;;3583:165:5;16346:420:32;3583:165:5;3759:21;3768:2;3772:7;3759:8;:21::i;:::-;3456:331;3386:401;;:::o;5617:1317:2:-;2444:10;;;;2443:11;2435:37;;;;-1:-1:-1;;;2435:37:2;;;;;;;:::i;:::-;2483:10;:17;;-1:-1:-1;;2483:17:2;2496:4;2483:17;;;1348:8:24::1;1104:7:::0;;;-1:-1:-1;;;1104:7:24;;;;;1034:84;1348:8:::1;1347:9;1339:39;;;;-1:-1:-1::0;;;1339:39:24::1;;;;;;;:::i;:::-;5718:9:2::2;666:10:1::0;5718:25:2::2;5710:46;;;;-1:-1:-1::0;;;5710:46:2::2;;;;;;;:::i;:::-;5775:6;::::0;5794:10:::2;::::0;5775:15:::2;::::0;5784:6;;5775::::2;;:15;:::i;:::-;:29;;5767:59;;;;-1:-1:-1::0;;;5767:59:2::2;;;;;;;:::i;:::-;5845:15;::::0;-1:-1:-1;;;5845:15:2;::::2;;;5837:46;;;::::0;-1:-1:-1;;;5837:46:2;;18608:2:32;5837:46:2::2;::::0;::::2;18590:21:32::0;18647:2;18627:18;;;18620:30;-1:-1:-1;;;18666:18:32;;;18659:48;18724:18;;5837:46:2::2;18406:342:32::0;5837:46:2::2;666:10:1::0;5912:22:2::2;::::0;;;:8:::2;:22:::0;;;;;;5902:32;::::2;;5894:66;;;::::0;-1:-1:-1;;;5894:66:2;;18955:2:32;5894:66:2::2;::::0;::::2;18937:21:32::0;18994:2;18974:18;;;18967:30;-1:-1:-1;;;19013:18:32;;;19006:51;19074:18;;5894:66:2::2;18753:345:32::0;5894:66:2::2;666:10:1::0;5971:22:2::2;::::0;;;:8:::2;:22:::0;;;;;:32;;5997:6;;5971:22;:32:::2;::::0;5997:6;;5971:32:::2;:::i;:::-;::::0;;;-1:-1:-1;6016:24:2::2;::::0;-1:-1:-1;6056:6:2;-1:-1:-1;;;;;6043:20:2;::::2;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;6043:20:2::2;;6016:47;;6074:23;6114:6;-1:-1:-1::0;;;;;6100:21:2::2;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;6100:21:2::2;-1:-1:-1::0;6177:6:2::2;::::0;6074:47;;-1:-1:-1;6132:12:2::2;::::0;6177:6:::2;;6132:12:::0;6196:439:::2;6220:6;6216:1;:10;6196:439;;;6246:6;:8:::0;;::::2;;::::0;:6:::2;:8;::::0;::::2;:::i;:::-;::::0;;::::2;::::0;;;::::2;;::::0;;::::2;;::::0;;::::2;::::0;;::::2;;;::::0;;;6281:6:::2;::::0;6274:14:::2;::::0;-1:-1:-1;6281:6:2::2;6274;:14::i;:::-;6301:12;::::0;6321:6:::2;::::0;6301:34:::2;::::0;-1:-1:-1;;;6301:34:2;;6321:6:::2;::::0;;::::2;:13:::0;::::2;6301:34;::::0;::::2;1310:25:32::0;6267:21:2;;-1:-1:-1;;;;;;6301:12:2::2;::::0;:19:::2;::::0;1283:18:32;;6301:34:2::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;6357:6:2::2;::::0;6348:22:::2;::::0;6357:6:::2;;6365:4:::0;6348:8:::2;:22::i;:::-;;6383:17;6403:21;6419:4;6403:15;:21::i;:::-;6383:41;;6442:5;6441:6;:35;;;-1:-1:-1::0;;;;;;6451:25:2;::::2;666:10:1::0;6451:25:2::2;;6441:35;6437:187;;;6505:9;6493:6;6500:1;6493:9;;;;;;;;:::i;:::-;;;;;;:21;-1:-1:-1::0;;;;;6493:21:2::2;;;-1:-1:-1::0;;;;;6493:21:2::2;;;::::0;::::2;6437:187;;;6563:6;::::0;6549:11;;6563:6:::2;::::0;;::::2;::::0;6549:8;;6558:1;;6549:11;::::2;;;;;:::i;:::-;:20;::::0;;::::2;:11;::::0;;::::2;::::0;;;;;;;:20;6604:5:::2;::::0;6584:9;;-1:-1:-1;;;;;6604:5:2;;::::2;::::0;6584:6;;6591:1;;6584:9;::::2;;;;;:::i;:::-;;;;;;:26;-1:-1:-1::0;;;;;6584:26:2::2;;;-1:-1:-1::0;;;;;6584:26:2::2;;;::::0;::::2;6437:187;-1:-1:-1::0;6228:3:2;::::2;::::0;::::2;:::i;:::-;;;;6196:439;;;;6652:9;6647:207;6671:6;:13;6667:1;:17;6647:207;;;6704:10;6717:15;6731:1:::0;6717:11;:15:::2;:::i;:::-;:19;::::0;6735:1:::2;6717:19;:::i;:::-;6704:32;;6754:5;6753:6;:35;;;-1:-1:-1::0;666:10:1;-1:-1:-1;;;;;6763:25:2::2;:6;6770:1;6763:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;6763:25:2::2;;;6753:35;6749:94;;;6805:24;6815:6;6822:1;6815:9;;;;;;;;:::i;:::-;;;;;;;6826:2;6805:9;:24::i;:::-;-1:-1:-1::0;6686:3:2;::::2;::::0;::::2;:::i;:::-;;;;6647:207;;;;6868:5;6864:62;;;6875:5;::::0;-1:-1:-1;;;;;6875:5:2::2;:27;666:10:1::0;6917:8:2::2;6875:51;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;6864:62;-1:-1:-1::0;;2523:10:2;:18;;-1:-1:-1;;2523:18:2;;;-1:-1:-1;;;;5617:1317:2:o;14980:118::-;1038:6:23;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;15047:7:2::1;15043:47;;;15056:8;:6;:8::i;:::-;14980:118:::0;:::o;15043:47::-:1;15080:10;:8;:10::i;5070:566:25:-:0;-1:-1:-1;;;;;5146:16:25;;5165:1;5146:16;;;:7;:16;;;;;;5138:71;;;;-1:-1:-1;;;5138:71:25;;;;;;;:::i;:::-;5222:21;5270:15;3673:14;;;3600:95;5270:15;5246:39;;:21;:39;:::i;:::-;5222:63;;5296:15;5314:58;5330:7;5339:13;5354:17;5363:7;-1:-1:-1;;;;;4349:18:25;4322:7;4349:18;;;:9;:18;;;;;;;4266:109;5354:17;5314:15;:58::i;:::-;5296:76;-1:-1:-1;5393:12:25;5385:68;;;;-1:-1:-1;;;5385:68:25;;;;;;;:::i;:::-;-1:-1:-1;;;;;5466:18:25;;;;;;:9;:18;;;;;:29;;5488:7;;5466:18;:29;;5488:7;;5466:29;:::i;:::-;;;;;;;;5524:7;5506:14;;:25;;;;;;;:::i;:::-;;;;-1:-1:-1;5544:35:25;;-1:-1:-1;5562:7:25;5571;5544:17;:35::i;:::-;5595:33;;;-1:-1:-1;;;;;206:32:32;;188:51;;270:2;255:18;;248:34;;;5595:33:25;;161:18:32;5595:33:25;;;;;;;5127:509;;5070:566;:::o;8758:436:2:-;2444:10;;;;2443:11;2435:37;;;;-1:-1:-1;;;2435:37:2;;;;;;;:::i;:::-;2483:10;:17;;-1:-1:-1;;2483:17:2;2496:4;2483:17;;;9023:5:::1;::::0;-1:-1:-1;;;;;9023:5:2::1;8999:12;666:10:1::0;;587:96;8999:12:2::1;-1:-1:-1::0;;;;;8999:30:2::1;;8995:152;;9052:41;666:10:1::0;9085:7:2::1;9052:18;:41::i;:::-;9044:103;;;;-1:-1:-1::0;;;9044:103:2::1;;;;;;;:::i;:::-;9158:28;9168:4;9174:2;9178:7;9158:9;:28::i;:::-;-1:-1:-1::0;;2523:10:2;:18;;-1:-1:-1;;2523:18:2;;;-1:-1:-1;8758:436:2:o;8360:390::-;8416:7;8451:11;;8440:7;:22;8436:36;;-1:-1:-1;8471:1:2;;8360:390;-1:-1:-1;8360:390:2:o;8436:36::-;8492:11;;:18;;8506:4;8492:18;:::i;:::-;8481:7;:29;8477:52;;-1:-1:-1;8519:10:2;;8360:390;-1:-1:-1;8360:390:2:o;8477:52::-;8549:11;;:18;;8563:4;8549:18;:::i;:::-;8538:7;:29;8534:52;;-1:-1:-1;8576:10:2;;8360:390;-1:-1:-1;8360:390:2:o;8534:52::-;8612:11;;:18;;8626:4;8612:18;:::i;:::-;8601:7;:29;8597:52;;-1:-1:-1;8639:10:2;;8360:390;-1:-1:-1;8360:390:2:o;8597:52::-;8675:11;;:19;;8689:5;8675:19;:::i;:::-;8664:7;:30;8660:53;;-1:-1:-1;8703:10:2;;8360:390;-1:-1:-1;8360:390:2:o;8660:53::-;-1:-1:-1;8731:11:2;;8360:390;-1:-1:-1;8360:390:2:o;15452:101::-;1038:6:23;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;15521:13:2::1;:24:::0;;;::::1;;;;-1:-1:-1::0;;15521:24:2;;::::1;::::0;;;::::1;::::0;;15452:101::o;15996:162::-;1038:6:23;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;16083:25:2::1;16090:18;;16083:25;:::i;:::-;16119:31;:18;16140:10:::0;;16119:31:::1;:::i;1210:253:6:-:0;1307:7;1342:23;1359:5;1342:16;:23::i;:::-;1334:5;:31;1326:87;;;;-1:-1:-1;;;1326:87:6;;22728:2:32;1326:87:6;;;22710:21:32;22767:2;22747:18;;;22740:30;22806:34;22786:18;;;22779:62;-1:-1:-1;;;22857:18:32;;;22850:41;22908:19;;1326:87:6;22526:407:32;1326:87:6;-1:-1:-1;;;;;;1430:19:6;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;1210:253::o;14798:107:2:-;1038:6:23;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;14872:11:2::1;:25:::0;14798:107::o;3007:120::-;1038:6:23;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;3091:12:2::1;:28:::0;;-1:-1:-1;;;;;;3091:28:2::1;-1:-1:-1::0;;;;;3091:28:2;;;::::1;::::0;;;::::1;::::0;;3007:120::o;14000:269::-;14059:4;;14076:163;14100:18;:25;14096:29;;14076:163;;;14175:5;-1:-1:-1;;;;;14150:30:2;:18;14169:1;14150:21;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;14150:21:2;:30;14147:81;;;-1:-1:-1;14208:4:2;;14000:269;-1:-1:-1;;14000:269:2:o;14147:81::-;14127:3;;;;:::i;:::-;;;;14076:163;;;-1:-1:-1;14256:5:2;;14000:269;-1:-1:-1;;14000:269:2:o;14620:106::-;1038:6:23;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;1038:6;;14670:48:2::1;::::0;-1:-1:-1;;;;;1038:6:23;;;;14696:21:2::1;14670:48:::0;::::1;;;::::0;::::1;::::0;;;14696:21;1038:6:23;14670:48:2;::::1;;;;;;;;;;;;;::::0;::::1;;;;5108:179:5::0;5241:39;5258:4;5264:2;5268:7;5241:39;;;;;;;;;;;;:16;:39::i;19621:406:2:-;-1:-1:-1;;;;;19704:21:2;;19681:7;19704:21;;;:14;:21;;;;;;;;;:26;19700:320;;;19790:1;19778:10;;:13;;;;:::i;19700:320::-;-1:-1:-1;;;;;19835:21:2;;;;;;:14;:21;;;;;;;;19860:1;19835:26;19831:189;;;19914:1;19899:10;;19912:1;19899:14;;;;:::i;:::-;:16;;;;:::i;19831:189::-;-1:-1:-1;19999:9:2;;19621:406;-1:-1:-1;19621:406:2:o;5904:641:25:-;-1:-1:-1;;;;;5986:16:25;;6005:1;5986:16;;;:7;:16;;;;;;5978:71;;;;-1:-1:-1;;;5978:71:25;;;;;;;:::i;:::-;-1:-1:-1;;;;;3937:26:25;;6062:21;3937:26;;;:19;:26;;;;;;6086:30;;-1:-1:-1;;;6086:30:25;;6110:4;6086:30;;;2328:51:32;-1:-1:-1;;;;;6086:15:25;;;;;2301:18:32;;6086:30:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:53;;;;:::i;:::-;6062:77;;6150:15;6168:65;6184:7;6193:13;6208:24;6217:5;6224:7;-1:-1:-1;;;;;4641:21:25;;;4614:7;4641:21;;;:14;:21;;;;;;;;:30;;;;;;;;;;;;;4544:135;6168:65;6150:83;-1:-1:-1;6254:12:25;6246:68;;;;-1:-1:-1;;;6246:68:25;;;;;;;:::i;:::-;-1:-1:-1;;;;;6327:21:25;;;;;;;:14;:21;;;;;;;;:30;;;;;;;;;;;:41;;6361:7;;6327:21;:41;;6361:7;;6327:41;:::i;:::-;;;;-1:-1:-1;;;;;;;6379:26:25;;;;;;:19;:26;;;;;:37;;6409:7;;6379:26;:37;;6409:7;;6379:37;:::i;:::-;;;;-1:-1:-1;6429:47:25;;-1:-1:-1;6452:5:25;6459:7;6468;6429:22;:47::i;:::-;6492:45;;;-1:-1:-1;;;;;206:32:32;;;188:51;;270:2;255:18;;248:34;;;6492:45:25;;;;;161:18:32;6492:45:25;;;;;;;5967:578;;5904:641;;:::o;1717:230:6:-;1792:7;1827:30;1621:10;:17;;1534:111;1827:30;1819:5;:38;1811:95;;;;-1:-1:-1;;;1811:95:6;;23570:2:32;1811:95:6;;;23552:21:32;23609:2;23589:18;;;23582:30;23648:34;23628:18;;;23621:62;-1:-1:-1;;;23699:18:32;;;23692:42;23751:19;;1811:95:6;23368:408:32;1811:95:6;1923:10;1934:5;1923:17;;;;;;;;:::i;:::-;;;;;;;;;1916:24;;1717:230;;;:::o;6943:1137:2:-;1038:6:23;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;2444:10:2::1;::::0;::::1;;2443:11;2435:37;;;;-1:-1:-1::0;;;2435:37:2::1;;;;;;;:::i;:::-;2483:10;:17:::0;;-1:-1:-1;;2483:17:2::1;2496:4;2483:17;::::0;;1348:8:24::2;1104:7:::0;;;-1:-1:-1;;;1104:7:24;;;;;1034:84;1348:8:::2;1347:9;1339:39;;;;-1:-1:-1::0;;;1339:39:24::2;;;;;;;:::i;:::-;7067:9:2::3;666:10:1::0;7067:25:2::3;7059:46;;;;-1:-1:-1::0;;;7059:46:2::3;;;;;;;:::i;:::-;7124:6;::::0;7143:10:::3;::::0;7124:15:::3;::::0;7133:6;;7124::::3;;:15;:::i;:::-;:29;;7116:59;;;;-1:-1:-1::0;;;7116:59:2::3;;;;;;;:::i;:::-;7192:24;7232:6;-1:-1:-1::0;;;;;7219:20:2::3;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;7219:20:2::3;;7192:47;;7250:23;7290:6;-1:-1:-1::0;;;;;7276:21:2::3;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;7276:21:2::3;-1:-1:-1::0;7353:6:2::3;::::0;7250:47;;-1:-1:-1;7308:12:2::3;::::0;7353:6:::3;;7308:12:::0;7372:429:::3;7396:6;7392:1;:10;7372:429;;;7422:6;:8:::0;;::::3;;::::0;:6:::3;:8;::::0;::::3;:::i;:::-;::::0;;::::3;::::0;;;::::3;;::::0;;::::3;;::::0;;::::3;::::0;;::::3;;;::::0;;;7457:6:::3;::::0;7450:14:::3;::::0;-1:-1:-1;7457:6:2::3;7450;:14::i;:::-;7477:12;::::0;7497:6:::3;::::0;7477:34:::3;::::0;-1:-1:-1;;;7477:34:2;;7497:6:::3;::::0;;::::3;:13:::0;::::3;7477:34;::::0;::::3;1310:25:32::0;7443:21:2;;-1:-1:-1;;;;;;7477:12:2::3;::::0;:19:::3;::::0;1283:18:32;;7477:34:2::3;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;7533:6:2::3;::::0;7524:22:::3;::::0;7533:6:::3;;7541:4:::0;7524:8:::3;:22::i;:::-;;7559:17;7579:21;7595:4;7579:15;:21::i;:::-;7559:41;;7618:5;7617:6;:25;;;;7640:2;-1:-1:-1::0;;;;;7627:15:2::3;:9;-1:-1:-1::0;;;;;7627:15:2::3;;;7617:25;7613:177;;;7671:9;7659:6;7666:1;7659:9;;;;;;;;:::i;:::-;;;;;;:21;-1:-1:-1::0;;;;;7659:21:2::3;;;-1:-1:-1::0;;;;;7659:21:2::3;;;::::0;::::3;7613:177;;;7729:6;::::0;7715:11;;7729:6:::3;::::0;;::::3;::::0;7715:8;;7724:1;;7715:11;::::3;;;;;:::i;:::-;:20;::::0;;::::3;:11;::::0;;::::3;::::0;;;;;;;:20;7770:5:::3;::::0;7750:9;;-1:-1:-1;;;;;7770:5:2;;::::3;::::0;7750:6;;7757:1;;7750:9;::::3;;;;;:::i;:::-;;;;;;:26;-1:-1:-1::0;;;;;7750:26:2::3;;;-1:-1:-1::0;;;;;7750:26:2::3;;;::::0;::::3;7613:177;-1:-1:-1::0;7404:3:2;::::3;::::0;::::3;:::i;:::-;;;;7372:429;;;;7818:9;7813:197;7837:6;:13;7833:1;:17;7813:197;;;7870:10;7883:15;7897:1:::0;7883:11;:15:::3;:::i;:::-;:19;::::0;7901:1:::3;7883:19;:::i;:::-;7870:32;;7920:5;7919:6;:25;;;;7942:2;-1:-1:-1::0;;;;;7929:15:2::3;:6;7936:1;7929:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;7929:15:2::3;;;7919:25;7915:84;;;7961:24;7971:6;7978:1;7971:9;;;;;;;;:::i;7961:24::-;-1:-1:-1::0;7852:3:2;::::3;::::0;::::3;:::i;:::-;;;;7813:197;;;;8024:5;8020:52;;;8031:5;::::0;:41:::3;::::0;-1:-1:-1;;;8031:41:2;;-1:-1:-1;;;;;8031:5:2;;::::3;::::0;:27:::3;::::0;:41:::3;::::0;8059:2;;8063:8;;8031:41:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;8020:52;-1:-1:-1::0;;2523:10:2::1;:18:::0;;-1:-1:-1;;2523:18:2::1;::::0;;-1:-1:-1;;;;;6943:1137:2:o;3257:138::-;1038:6:23;;3312:4:2;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;-1:-1:-1;3345:12:2::1;::::0;;::::1;-1:-1:-1::0;;;3345:12:2;;::::1;::::0;::::1;3344:13;3329:28:::0;::::1;-1:-1:-1::0;;;;3329:28:2;;::::1;::::0;;;::::1;::::0;;;;3375:12;::::1;;3257:138:::0;:::o;921:35::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;921:35:2;;-1:-1:-1;921:35:2;:::o;20035:337::-;20093:16;20122:18;20143:16;20153:5;20143:9;:16::i;:::-;20122:37;;20170:25;20212:10;-1:-1:-1;;;;;20198:25:2;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20198:25:2;;20170:53;;20238:9;20234:105;20253:10;20249:1;:14;20234:105;;;20298:29;20318:5;20325:1;20298:19;:29::i;:::-;20284:8;20293:1;20284:11;;;;;;;;:::i;:::-;;;;;;;;;;:43;20265:3;;;;:::i;:::-;;;;20234:105;;;-1:-1:-1;20356:8:2;20035:337;-1:-1:-1;;;20035:337:2:o;2040:235:5:-;2112:7;2147:16;;;:7;:16;;;;;;-1:-1:-1;;;;;2147:16:5;2181:19;2173:73;;;;-1:-1:-1;;;2173:73:5;;23983:2:32;2173:73:5;;;23965:21:32;24022:2;24002:18;;;23995:30;24061:34;24041:18;;;24034:62;-1:-1:-1;;;24112:18:32;;;24105:39;24161:19;;2173:73:5;23781:405:32;15561:82:2;1038:6:23;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;15622:6:2::1;:13:::0;;-1:-1:-1;;;;;;15622:13:2::1;-1:-1:-1::0;;;;;15622:13:2;;;::::1;::::0;;;::::1;::::0;;15561:82::o;1778:205:5:-;1850:7;-1:-1:-1;;;;;1877:19:5;;1869:74;;;;-1:-1:-1;;;1869:74:5;;24393:2:32;1869:74:5;;;24375:21:32;24432:2;24412:18;;;24405:30;24471:34;24451:18;;;24444:62;-1:-1:-1;;;24522:18:32;;;24515:40;24572:19;;1869:74:5;24191:406:32;1869:74:5;-1:-1:-1;;;;;;1960:16:5;;;;;:9;:16;;;;;;;1778:205::o;16164:215:2:-;1038:6:23;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;2444:10:2::1;::::0;::::1;;2443:11;2435:37;;;;-1:-1:-1::0;;;2435:37:2::1;;;;;;;:::i;:::-;2483:10;:17:::0;;-1:-1:-1;;2483:17:2::1;2496:4;2483:17;::::0;;:10:::1;16230:142:::2;16254:5;:12:::0;16250:16;::::2;16230:142;;;16288:22;16321:5;16327:1;16321:8;;;;;;;;:::i;:::-;;::::0;;;::::2;::::0;;;::::2;::::0;-1:-1:-1;;;;;16321:8:2::2;::::0;-1:-1:-1;16345:15:2::2;16321:8:::0;16345:7:::2;:15::i;:::-;-1:-1:-1::0;16268:3:2;::::2;::::0;::::2;:::i;:::-;;;;16230:142;;;-1:-1:-1::0;2523:10:2::1;:18:::0;;-1:-1:-1;;2523:18:2::1;::::0;;16164:215::o;19218:395::-;1038:6:23;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;19295:6:2::1;19290:316;19307:18;:25:::0;19305:27;::::1;19290:316;;;19381:5;-1:-1:-1::0;;;;;19358:28:2::1;:18;19377:1;19358:21;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;-1:-1:-1;;;;;19358:21:2::1;:28;19354:227;;;19431:18;19450:25:::0;;:27:::1;::::0;19476:1:::1;::::0;19450:27:::1;:::i;:::-;19431:47;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;19407:18:::1;:21:::0;;-1:-1:-1;;;;;19431:47:2;;::::1;::::0;19426:1;;19407:21;::::1;;;;;:::i;:::-;;;;;;;;;:71;;;;;-1:-1:-1::0;;;;;19407:71:2::1;;;;;-1:-1:-1::0;;;;;19407:71:2::1;;;;;;19497:18;:24;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;;-1:-1:-1;;19497:24:2;;;;;-1:-1:-1;;;;;;19497:24:2::1;::::0;;;;;;;;-1:-1:-1;;;;;19540:21:2;::::1;::::0;;:14:::1;:21:::0;;;;;:25;;-1:-1:-1;;19540:25:2::1;::::0;;19354:227:::1;19334:3:::0;::::1;::::0;::::1;:::i;:::-;;;;19290:316;;;;19218:395:::0;:::o;4770:100:25:-;4821:7;4848;4856:5;4848:14;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;4848:14:25;;4770:100;-1:-1:-1;;4770:100:25:o;15651:337:2:-;1038:6:23;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;15764:35:2;;::::1;15756:106;;;::::0;-1:-1:-1;;;15756:106:2;;24936:2:32;15756:106:2::1;::::0;::::1;24918:21:32::0;24975:2;24955:18;;;24948:30;25014:34;24994:18;;;24987:62;25085:28;25065:18;;;25058:56;25131:19;;15756:106:2::1;24734:422:32::0;15756:106:2::1;15878:9;15873:108;15893:18:::0;;::::1;15873:108;;;15959:7;;15967:1;15959:10;;;;;;;:::i;:::-;;;;;;;15933:8;:23;15942:10;;15953:1;15942:13;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;15933:23:2::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;15933:23:2;:36;15913:3;::::1;::::0;::::1;:::i;:::-;;;;15873:108;;;;15651:337:::0;;;;:::o;13737:144::-;13810:23;;:::i;:::-;-1:-1:-1;13853:20:2;;;;:11;:20;;;;;;;;;13846:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;13846:27:2;;;;;;;;-1:-1:-1;;;13846:27:2;;;;;;;;-1:-1:-1;;;13846:27:2;;;;;;;;;;13737:144::o;2499:102:5:-;2555:13;2587:7;2580:14;;;;;:::i;16391:2449:2:-;2444:10;;;;2443:11;2435:37;;;;-1:-1:-1;;;2435:37:2;;;;;;;:::i;:::-;2483:10;:17;;-1:-1:-1;;2483:17:2;2496:4;2483:17;;;1348:8:24::1;1104:7:::0;;;-1:-1:-1;;;1104:7:24;;;;;1034:84;1348:8:::1;1347:9;1339:39;;;;-1:-1:-1::0;;;1339:39:24::1;;;;;;;:::i;:::-;16506:5:2::2;16505:6;:23;;;-1:-1:-1::0;16515:13:2::2;::::0;::::2;::::0;::::2;;;16505:23;16497:57;;;::::0;-1:-1:-1;;;16497:57:2;;25363:2:32;16497:57:2::2;::::0;::::2;25345:21:32::0;25402:2;25382:18;;;25375:30;-1:-1:-1;;;25421:18:32;;;25414:51;25482:18;;16497:57:2::2;25161:345:32::0;16497:57:2::2;16575:15;::::0;-1:-1:-1;;;16575:15:2;::::2;;;16567:46;;;::::0;-1:-1:-1;;;16567:46:2;;18608:2:32;16567:46:2::2;::::0;::::2;18590:21:32::0;18647:2;18627:18;;;18620:30;-1:-1:-1;;;18666:18:32;;;18659:48;18724:18;;16567:46:2::2;18406:342:32::0;16567:46:2::2;16632:27;666:10:1::0;14000:269:2;:::i;16632:27::-:2;16624:60;;;::::0;-1:-1:-1;;;16624:60:2;;25713:2:32;16624:60:2::2;::::0;::::2;25695:21:32::0;25752:2;25732:18;;;25725:30;-1:-1:-1;;;25771:18:32;;;25764:50;25831:18;;16624:60:2::2;25511:344:32::0;16624:60:2::2;16703:9;666:10:1::0;16703:25:2::2;16695:46;;;;-1:-1:-1::0;;;16695:46:2::2;;;;;;;:::i;:::-;16760:6;::::0;16779:10:::2;::::0;16760:15:::2;::::0;16769:6;;16760::::2;;:15;:::i;:::-;:29;;16752:59;;;;-1:-1:-1::0;;;16752:59:2::2;;;;;;;:::i;:::-;16839:1;16830:6;:10;16822:42;;;;-1:-1:-1::0;;;16822:42:2::2;;;;;;;:::i;:::-;16905:30;666:10:1::0;19621:406:2;:::i;16905:30::-:2;16896:39;::::0;:6;:39:::2;:::i;:::-;16883:9;:52;;16875:87;;;;-1:-1:-1::0;;;16875:87:2::2;;;;;;;:::i;:::-;666:10:1::0;16979:28:2::2;::::0;;;:14:::2;:28;::::0;;;;;::::2;;::::0;:31:::2;16975:314;;;17072:1;17064:6;:9;;17056:41;;;;-1:-1:-1::0;;;17056:41:2::2;;;;;;;:::i;:::-;17125:9;17112:10;:22:::0;16975:314:::2;;;17207:6;17215:1;17207:9;17199:41;;;;-1:-1:-1::0;;;17199:41:2::2;;;;;;;:::i;:::-;17268:9;17255:10;:22:::0;16975:314:::2;17324:11;::::0;17315:6:::2;::::0;::::2;;:20;17311:265;;;17379:11;::::0;17360:6:::2;::::0;:15:::2;::::0;17369:6;;17360::::2;;:15;:::i;:::-;:30;;17352:74;;;::::0;-1:-1:-1;;;17352:74:2;;26761:2:32;17352:74:2::2;::::0;::::2;26743:21:32::0;26800:2;26780:18;;;26773:30;26839:33;26819:18;;;26812:61;26890:18;;17352:74:2::2;26559:355:32::0;17352:74:2::2;17472:9;17458:10;;17449:6;:19;;;;:::i;:::-;:32;17441:67;;;;-1:-1:-1::0;;;17441:67:2::2;;;;;;;:::i;:::-;17311:265;;;17549:9;:14:::0;17541:23:::2;;;::::0;::::2;;17588:21;17624:24:::0;17664:6:::2;-1:-1:-1::0;;;;;17651:20:2::2;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;17651:20:2::2;;17624:47;;17682:23;17722:6;-1:-1:-1::0;;;;;17708:21:2::2;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;17708:21:2::2;-1:-1:-1::0;17785:6:2::2;::::0;17682:47;;-1:-1:-1;17740:12:2::2;::::0;17785:6:::2;;17740:12:::0;17804:514:::2;17825:6;17821:1;:10;17804:514;;;17853:6;:8:::0;;::::2;;::::0;:6:::2;:8;::::0;::::2;:::i;:::-;::::0;;::::2;::::0;;;::::2;;::::0;;::::2;;::::0;;::::2;::::0;;::::2;;;::::0;;;17890:6:::2;::::0;17883:14:::2;::::0;-1:-1:-1;17890:6:2::2;17883;:14::i;:::-;17912:12;::::0;17932:6:::2;::::0;17912:34:::2;::::0;-1:-1:-1;;;17912:34:2;;17932:6:::2;::::0;;::::2;:13:::0;::::2;17912:34;::::0;::::2;1310:25:32::0;17876:21:2;;-1:-1:-1;;;;;;17912:12:2::2;::::0;:19:::2;::::0;1283:18:32;;17912:34:2::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;17970:6:2::2;::::0;17961:22:::2;::::0;17970:6:::2;;17978:4:::0;17961:8:::2;:22::i;:::-;;17998:17;18018:21;18034:4;18018:15;:21::i;:::-;18080:6;::::0;17998:41;;-1:-1:-1;18071:16:2::2;::::0;18080:6:::2;;18071:8;:16::i;:::-;18054:33;::::0;;::::2;:::i;:::-;;;18107:5;18106:6;:35;;;-1:-1:-1::0;;;;;;18116:25:2;::::2;666:10:1::0;18116:25:2::2;;18106:35;18102:203;;;18174:9;18162:6;18169:1;18162:9;;;;;;;;:::i;:::-;;;;;;:21;-1:-1:-1::0;;;;;18162:21:2::2;;;-1:-1:-1::0;;;;;18162:21:2::2;;;::::0;::::2;18102:203;;;18238:6;::::0;18224:11;;18238:6:::2;::::0;;::::2;::::0;18224:8;;18233:1;;18224:11;::::2;;;;;:::i;:::-;:20;::::0;;::::2;:11;::::0;;::::2;::::0;;;;;;;:20;18283:5:::2;::::0;18263:9;;-1:-1:-1;;;;;18283:5:2;;::::2;::::0;18263:6;;18270:1;;18263:9;::::2;;;;;:::i;:::-;;;;;;:26;-1:-1:-1::0;;;;;18263:26:2::2;;;-1:-1:-1::0;;;;;18263:26:2::2;;;::::0;::::2;18102:203;-1:-1:-1::0;17833:3:2;::::2;::::0;::::2;:::i;:::-;;;;17804:514;;;-1:-1:-1::0;18334:17:2;;18330:61:::2;;18353:4;::::0;-1:-1:-1;;;;;18353:4:2::2;:9;666:10:1::0;18353:38:2::2;::::0;-1:-1:-1;;;;;;18353:38:2::2;::::0;;;;;;-1:-1:-1;;;;;206:32:32;;;18353:38:2::2;::::0;::::2;188:51:32::0;255:18;;;248:34;;;161:18;;18353:38:2::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;18330:61;18409:6;18404:265;18425:6;:13;18421:1;:17;18404:265;;;18460:7;18470:15;18484:1:::0;18470:11;:15:::2;:::i;:::-;:19;::::0;18488:1:::2;18470:19;:::i;:::-;18460:29;;18509:5;18508:6;:35;;;-1:-1:-1::0;666:10:1;-1:-1:-1;;;;;18518:25:2::2;:6;18525:1;18518:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;18518:25:2::2;;;18508:35;18504:154;;;666:10:1::0;18564:25:2::2;::::0;;;:11:::2;:25;::::0;;;;:35;;18593:6;;18564:25;:35:::2;::::0;18593:6;;18564:35:::2;:::i;:::-;;;;;;;;18618:24;18628:6;18635:1;18628:9;;;;;;;;:::i;18618:24::-;-1:-1:-1::0;18440:3:2;::::2;::::0;::::2;:::i;:::-;;;;18404:265;;;-1:-1:-1::0;18681:33:2::2;666:10:1::0;19218:395:2;:::i;18681:33::-:2;666:10:1::0;18756:1:2::2;18725:28:::0;;;:14:::2;:28;::::0;;;;:32;;-1:-1:-1;;18725:32:2::2;::::0;;18770:62;::::2;;;18781:5;::::0;-1:-1:-1;;;;;18781:5:2::2;:27;666:10:1::0;18809:12:2::2;18823:8;18781:51;;;;;;;;;;;;;;;;:::i;4132:290:5:-:0;-1:-1:-1;;;;;4234:24:5;;666:10:1;4234:24:5;;4226:62;;;;-1:-1:-1;;;4226:62:5;;27121:2:32;4226:62:5;;;27103:21:32;27160:2;27140:18;;;27133:30;27199:27;27179:18;;;27172:55;27244:18;;4226:62:5;26919:349:32;4226:62:5;666:10:1;4299:32:5;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;4299:42:5;;;;;;;;;;;;:53;;-1:-1:-1;;4299:53:5;;;;;;;;;;4367:48;;724:41:32;;;4299:42:5;;666:10:1;4367:48:5;;697:18:32;4367:48:5;;;;;;;4132:290;;:::o;3726:1885:2:-;2444:10;;;;2443:11;2435:37;;;;-1:-1:-1;;;2435:37:2;;;;;;;:::i;:::-;2483:10;:17;;-1:-1:-1;;2483:17:2;2496:4;2483:17;;;1348:8:24::1;1104:7:::0;;;-1:-1:-1;;;1104:7:24;;;;;1034:84;1348:8:::1;1347:9;1339:39;;;;-1:-1:-1::0;;;1339:39:24::1;;;;;;;:::i;:::-;3838:5:2::2;3837:6;:23;;;-1:-1:-1::0;3847:13:2::2;::::0;::::2;::::0;::::2;;;3837:23;3829:57;;;::::0;-1:-1:-1;;;3829:57:2;;25363:2:32;3829:57:2::2;::::0;::::2;25345:21:32::0;25402:2;25382:18;;;25375:30;-1:-1:-1;;;25421:18:32;;;25414:51;25482:18;;3829:57:2::2;25161:345:32::0;3829:57:2::2;3905:15;::::0;-1:-1:-1;;;3905:15:2;::::2;;;3897:53;;;::::0;-1:-1:-1;;;3897:53:2;;27475:2:32;3897:53:2::2;::::0;::::2;27457:21:32::0;27514:2;27494:18;;;27487:30;27553:27;27533:18;;;27526:55;27598:18;;3897:53:2::2;27273:349:32::0;3897:53:2::2;3971:9;666:10:1::0;3971:25:2::2;3963:46;;;;-1:-1:-1::0;;;3963:46:2::2;;;;;;;:::i;:::-;4028:6;::::0;4047:10:::2;::::0;4028:15:::2;::::0;4037:6;;4028::::2;;:15;:::i;:::-;:29;;4020:59;;;;-1:-1:-1::0;;;4020:59:2::2;;;;;;;:::i;:::-;4107:1;4098:6;:10;:36;;;;;4122:12;;4112:6;:22;;4098:36;4090:68;;;;-1:-1:-1::0;;;4090:68:2::2;;;;;;;:::i;:::-;4186:11;::::0;4177:6:::2;::::0;::::2;;:20;4173:265;;;4241:11;::::0;4222:6:::2;::::0;:15:::2;::::0;4231:6;;4222::::2;;:15;:::i;:::-;:30;;4214:74;;;::::0;-1:-1:-1;;;4214:74:2;;26761:2:32;4214:74:2::2;::::0;::::2;26743:21:32::0;26800:2;26780:18;;;26773:30;26839:33;26819:18;;;26812:61;26890:18;;4214:74:2::2;26559:355:32::0;4214:74:2::2;4334:9;4320:10;;4311:6;:19;;;;:::i;:::-;:32;4303:67;;;;-1:-1:-1::0;;;4303:67:2::2;;;;;;;:::i;:::-;4173:265;;;4411:9;:14:::0;4403:23:::2;;;::::0;::::2;;4450:21;4486:24:::0;4526:6:::2;-1:-1:-1::0;;;;;4513:20:2::2;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;4513:20:2::2;;4486:47;;4544:23;4584:6;-1:-1:-1::0;;;;;4570:21:2::2;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;4570:21:2::2;-1:-1:-1::0;4647:6:2::2;::::0;4544:47;;-1:-1:-1;4602:12:2::2;::::0;4647:6:::2;;4602:12:::0;4666:514:::2;4687:6;4683:1;:10;4666:514;;;4715:6;:8:::0;;::::2;;::::0;:6:::2;:8;::::0;::::2;:::i;:::-;::::0;;::::2;::::0;;;::::2;;::::0;;::::2;;::::0;;::::2;::::0;;::::2;;;::::0;;;4752:6:::2;::::0;4745:14:::2;::::0;-1:-1:-1;4752:6:2::2;4745;:14::i;:::-;4774:12;::::0;4794:6:::2;::::0;4774:34:::2;::::0;-1:-1:-1;;;4774:34:2;;4794:6:::2;::::0;;::::2;:13:::0;::::2;4774:34;::::0;::::2;1310:25:32::0;4738:21:2;;-1:-1:-1;;;;;;4774:12:2::2;::::0;:19:::2;::::0;1283:18:32;;4774:34:2::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;4832:6:2::2;::::0;4823:22:::2;::::0;4832:6:::2;;4840:4:::0;4823:8:::2;:22::i;:::-;;4860:17;4880:21;4896:4;4880:15;:21::i;:::-;4942:6;::::0;4860:41;;-1:-1:-1;4933:16:2::2;::::0;4942:6:::2;;4933:8;:16::i;:::-;4916:33;::::0;;::::2;:::i;:::-;;;4969:5;4968:6;:35;;;-1:-1:-1::0;;;;;;4978:25:2;::::2;666:10:1::0;4978:25:2::2;;4968:35;4964:203;;;5036:9;5024:6;5031:1;5024:9;;;;;;;;:::i;:::-;;;;;;:21;-1:-1:-1::0;;;;;5024:21:2::2;;;-1:-1:-1::0;;;;;5024:21:2::2;;;::::0;::::2;4964:203;;;5100:6;::::0;5086:11;;5100:6:::2;::::0;;::::2;::::0;5086:8;;5095:1;;5086:11;::::2;;;;;:::i;:::-;:20;::::0;;::::2;:11;::::0;;::::2;::::0;;;;;;;:20;5145:5:::2;::::0;5125:9;;-1:-1:-1;;;;;5145:5:2;;::::2;::::0;5125:6;;5132:1;;5125:9;::::2;;;;;:::i;:::-;;;;;;:26;-1:-1:-1::0;;;;;5125:26:2::2;;;-1:-1:-1::0;;;;;5125:26:2::2;;;::::0;::::2;4964:203;-1:-1:-1::0;4695:3:2;::::2;::::0;::::2;:::i;:::-;;;;4666:514;;;-1:-1:-1::0;5196:17:2;;5192:61:::2;;5215:4;::::0;-1:-1:-1;;;;;5215:4:2::2;:9;666:10:1::0;5215:38:2::2;::::0;-1:-1:-1;;;;;;5215:38:2::2;::::0;;;;;;-1:-1:-1;;;;;206:32:32;;;5215:38:2::2;::::0;::::2;188:51:32::0;255:18;;;248:34;;;161:18;;5215:38:2::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;5192:61;5271:6;5266:265;5287:6;:13;5283:1;:17;5266:265;;;5322:7;5332:15;5346:1:::0;5332:11;:15:::2;:::i;:::-;:19;::::0;5350:1:::2;5332:19;:::i;:::-;5322:29;;5371:5;5370:6;:35;;;-1:-1:-1::0;666:10:1;-1:-1:-1;;;;;5380:25:2::2;:6;5387:1;5380:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;5380:25:2::2;;;5370:35;5366:154;;;666:10:1::0;5426:25:2::2;::::0;;;:11:::2;:25;::::0;;;;:35;;5455:6;;5426:25;:35:::2;::::0;5455:6;;5426:35:::2;:::i;:::-;;;;;;;;5480:24;5490:6;5497:1;5490:9;;;;;;;;:::i;5480:24::-;-1:-1:-1::0;5302:3:2;::::2;::::0;::::2;:::i;:::-;;;;5266:265;;;;5545:5;5541:62;;;5552:5;::::0;-1:-1:-1;;;;;5552:5:2::2;:27;666:10:1::0;5580:12:2::2;587:96:1::0;15352:92:2;1038:6:23;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;15417:10:2::1;:19:::0;15352:92::o;5353:312:5:-;5522:41;666:10:1;5555:7:5;5522:18;:41::i;:::-;5514:103;;;;-1:-1:-1;;;5514:103:5;;;;;;;:::i;:::-;5627:31;5640:4;5646:2;5650:7;5627:12;:31::i;:::-;5353:312;;;;:::o;15127:217:2:-;7202:4:5;7225:16;;;:7;:16;;;;;;15192:13:2;;-1:-1:-1;;;;;7225:16:5;15218:76:2;;;;-1:-1:-1;;;15218:76:2;;27829:2:32;15218:76:2;;;27811:21:32;27868:2;27848:18;;;27841:30;27907:34;27887:18;;;27880:62;-1:-1:-1;;;27958:18:32;;;27951:45;28013:19;;15218:76:2;27627:411:32;15218:76:2;15312:6;;:24;;-1:-1:-1;;;15312:24:2;;;;;1310:25:32;;;-1:-1:-1;;;;;15312:6:2;;;;:15;;1283:18:32;;15312:24:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15312:24:2;;;;;;;;;;;;:::i;14448:94::-;1038:6:23;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;14512:5:2::1;:22:::0;;-1:-1:-1;;;;;;14512:22:2::1;-1:-1:-1::0;;;;;14512:22:2;;;::::1;::::0;;;::::1;::::0;;14448:94::o;3403:150::-;1038:6:23;;3461:4:2;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;-1:-1:-1;3497:15:2::1;::::0;;::::1;-1:-1:-1::0;;;3497:15:2;;::::1;::::0;::::1;3496:16;3478:34:::0;::::1;-1:-1:-1::0;;;;3478:34:2;;::::1;::::0;;;::::1;::::0;;;;3530:15;::::1;;3403:150:::0;:::o;18850:360::-;1038:6:23;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;18972:34:2;;::::1;18964:64;;;::::0;-1:-1:-1;;;18964:64:2;;28885:2:32;18964:64:2::1;::::0;::::1;28867:21:32::0;28924:2;28904:18;;;28897:30;-1:-1:-1;;;28943:18:32;;;28936:47;29000:18;;18964:64:2::1;28683:341:32::0;18964:64:2::1;19044:6;19039:164;19054:19:::0;;::::1;19039:164;;;19095:18;19119:10;;19130:1;19119:13;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;19095:38:::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;19095:38:2;;;::::1;::::0;;;;;::::1;::::0;;-1:-1:-1;;;;;;19095:38:2::1;-1:-1:-1::0;;;;;19095:38:2;;::::1;::::0;;;::::1;::::0;;19180:8;;19189:1;19180:11;;::::1;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;19148:14;:29;19163:10;;19174:1;19163:13;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;19148:29:2::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;19148:29:2;:43;;-1:-1:-1;;19148:43:2::1;;::::0;;;::::1;::::0;;;::::1;::::0;;19075:3;::::1;::::0;::::1;:::i;:::-;;;;19039:164;;2905:96:::0;1038:6:23;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;2973:12:2::1;:20:::0;;-1:-1:-1;;;;;;2973:20:2::1;-1:-1:-1::0;;;;;2973:20:2;;;::::1;::::0;;;::::1;::::0;;2905:96::o;1405:189:23:-;1038:6;;-1:-1:-1;;;;;1038:6:23;666:10:1;1178:23:23;1170:68;;;;-1:-1:-1;;;1170:68:23;;;;;;;:::i;:::-;-1:-1:-1;;;;;1493:22:23;::::1;1485:73;;;::::0;-1:-1:-1;;;1485:73:23;;29598:2:32;1485:73:23::1;::::0;::::1;29580:21:32::0;29637:2;29617:18;;;29610:30;29676:34;29656:18;;;29649:62;-1:-1:-1;;;29727:18:32;;;29720:36;29773:19;;1485:73:23::1;29396:402:32::0;1485:73:23::1;1568:19;1578:8;1568:9;:19::i;1431:288:5:-:0;1533:4;-1:-1:-1;;;;;;1564:40:5;;-1:-1:-1;;;1564:40:5;;:100;;-1:-1:-1;;;;;;;1616:48:5;;-1:-1:-1;;;1616:48:5;1564:100;:148;;;-1:-1:-1;;;;;;;;;;871:40:3;;;1676:36:5;763:155:3;10827:171:5;10901:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;10901:29:5;-1:-1:-1;;;;;10901:29:5;;;;;;;;:24;;10954:23;10901:24;10954:14;:23::i;:::-;-1:-1:-1;;;;;10945:46:5;;;;;;;;;;;10827:171;;:::o;13380:328:2:-;13681:12;;:19;;;-1:-1:-1;;;13681:19:2;;;;13433:7;;-1:-1:-1;;;;;13681:12:2;;:17;;:19;;;;;;;;;;;;;;:12;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;13513:9;13551:16;13566:1;13551:12;:16;:::i;:::-;13478:198;;30064:2:32;30060:15;;;;-1:-1:-1;;30056:53:32;13478:198:2;;;30044:66:32;13541:27:2;30126:12:32;;;30119:28;13587:16:2;30163:12:32;;;30156:28;13623:15:2;30200:12:32;;;30193:28;30237:13;;;30230:29;;;30275:13;;13478:198:2;;;-1:-1:-1;;13478:198:2;;;;;;;;;13468:209;;13478:198;13468:209;;;;13460:240;;13380:328;-1:-1:-1;;13380:328:2:o;9523:378::-;9590:25;;:::i;:::-;9632:18;9645:4;9632:12;:18::i;:::-;9628:22;;9665:20;:37;9686:15;9699:1;9686:12;:15::i;:::-;9665:37;;;;;;;;;;;;9706:1;9665:42;9661:184;;;9724:20;;;;:11;:20;;;;;;;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;9724:24:2;;;;;;-1:-1:-1;;9724:24:2;;;;;;;;;;;;;;;-1:-1:-1;;9724:24:2;;;;;;;-1:-1:-1;;9724:24:2;;;;;;;;;;;;;;-1:-1:-1;;9724:24:2;;;;;;;;;-1:-1:-1;;9724:24:2;;;;;;;;;;;-1:-1:-1;;9724:24:2;-1:-1:-1;;;9724:24:2;;;;;;;-1:-1:-1;;9724:24:2;;;;;-1:-1:-1;;;9724:24:2;;;;;;;;-1:-1:-1;;9724:24:2;-1:-1:-1;;;9724:24:2;;;;;;;;;;;;;;:20;;9763;;9784:15;9724:24;9784:12;:15::i;:::-;9763:37;;;;;;;;;;;-1:-1:-1;9763:37:2;:47;9825:8;;9661:184;9862:31;9871:7;9880:12;9887:4;9880:6;:12::i;:::-;9862:8;:31::i;:::-;9855:38;9523:378;-1:-1:-1;;;9523:378:2:o;10803:407::-;10899:11;;10889:6;;10865:7;;10889:6;;;;:21;;;:50;;-1:-1:-1;10915:18:2;10931:2;10924:3;10916:11;;;10915:18;:::i;:::-;10914:25;;10889:50;10885:75;;;666:10:1;10948:12:2;587:96:1;10885:75:2;11030:5;;:40;;-1:-1:-1;;;11030:40:2;;11066:3;11058:11;;;11030:40;;;1310:25:32;11013:14:2;;-1:-1:-1;;;;;11030:5:2;;:27;;1283:18:32;;11030:40:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;11013:57;-1:-1:-1;;;;;;11135:22:2;;11131:47;;666:10:1;11159:19:2;10803:407;-1:-1:-1;;;10803:407:2:o;8094:108:5:-;8169:26;8179:2;8183:7;8169:26;;;;;;;;;;;;:9;:26::i;1801:115:24:-;1104:7;;-1:-1:-1;;;1104:7:24;;;;1347:9;1339:39;;;;-1:-1:-1;;;1339:39:24;;;;;;;:::i;:::-;1860:7:::1;:14:::0;;-1:-1:-1;;;;1860:14:24::1;-1:-1:-1::0;;;1860:14:24::1;::::0;;1889:20:::1;1896:12;666:10:1::0;;587:96;1896:12:24::1;1889:20;::::0;-1:-1:-1;;;;;2346:32:32;;;2328:51;;2316:2;2301:18;1889:20:24::1;;;;;;;1801:115::o:0;2048:117::-;1104:7;;-1:-1:-1;;;1104:7:24;;;;1606:42;;;;-1:-1:-1;;;1606:42:24;;30874:2:32;1606:42:24;;;30856:21:32;30913:2;30893:18;;;30886:30;-1:-1:-1;;;30932:18:32;;;30925:51;30993:18;;1606:42:24;30672:345:32;1606:42:24;2106:7:::1;:15:::0;;-1:-1:-1;;;;2106:15:24::1;::::0;;2136:22:::1;666:10:1::0;2145:12:24::1;587:96:1::0;6723:248:25;6933:12;;-1:-1:-1;;;;;6913:16:25;;6869:7;6913:16;;;:7;:16;;;;;;6869:7;;6948:15;;6897:32;;:13;:32;:::i;:::-;6896:49;;;;:::i;:::-;:67;;;;:::i;:::-;6889:74;6723:248;-1:-1:-1;;;;6723:248:25:o;2012:312:0:-;2126:6;2101:21;:31;;2093:73;;;;-1:-1:-1;;;2093:73:0;;31224:2:32;2093:73:0;;;31206:21:32;31263:2;31243:18;;;31236:30;31302:31;31282:18;;;31275:59;31351:18;;2093:73:0;31022:353:32;2093:73:0;2178:12;2196:9;-1:-1:-1;;;;;2196:14:0;2218:6;2196:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2177:52;;;2247:7;2239:78;;;;-1:-1:-1;;;2239:78:0;;31792:2:32;2239:78:0;;;31774:21:32;31831:2;31811:18;;;31804:30;31870:34;31850:18;;;31843:62;31941:28;31921:18;;;31914:56;31987:19;;2239:78:0;31590:422:32;7420:344:5;7513:4;7225:16;;;:7;:16;;;;;;-1:-1:-1;;;;;7225:16:5;7529:73;;;;-1:-1:-1;;;7529:73:5;;32219:2:32;7529:73:5;;;32201:21:32;32258:2;32238:18;;;32231:30;32297:34;32277:18;;;32270:62;-1:-1:-1;;;32348:18:32;;;32341:42;32400:19;;7529:73:5;32017:408:32;7529:73:5;7612:13;7628:23;7643:7;7628:14;:23::i;:::-;7612:39;;7680:5;-1:-1:-1;;;;;7669:16:5;:7;-1:-1:-1;;;;;7669:16:5;;:51;;;;7713:7;-1:-1:-1;;;;;7689:31:5;:20;7701:7;7689:11;:20::i;:::-;-1:-1:-1;;;;;7689:31:5;;7669:51;:87;;;-1:-1:-1;;;;;;4608:25:5;;;4585:4;4608:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;7661:96;7420:344;-1:-1:-1;;;;7420:344:5:o;10156:560::-;10310:4;-1:-1:-1;;;;;10283:31:5;:23;10298:7;10283:14;:23::i;:::-;-1:-1:-1;;;;;10283:31:5;;10275:85;;;;-1:-1:-1;;;10275:85:5;;32632:2:32;10275:85:5;;;32614:21:32;32671:2;32651:18;;;32644:30;32710:34;32690:18;;;32683:62;-1:-1:-1;;;32761:18:32;;;32754:39;32810:19;;10275:85:5;32430:405:32;10275:85:5;-1:-1:-1;;;;;10378:16:5;;10370:65;;;;-1:-1:-1;;;10370:65:5;;33042:2:32;10370:65:5;;;33024:21:32;33081:2;33061:18;;;33054:30;33120:34;33100:18;;;33093:62;-1:-1:-1;;;33171:18:32;;;33164:34;33215:19;;10370:65:5;32840:400:32;10370:65:5;10446:39;10467:4;10473:2;10477:7;10446:20;:39::i;:::-;10547:29;10564:1;10568:7;10547:8;:29::i;:::-;-1:-1:-1;;;;;10587:15:5;;;;;;:9;:15;;;;;:20;;10606:1;;10587:15;:20;;10606:1;;10587:20;:::i;:::-;;;;-1:-1:-1;;;;;;;10617:13:5;;;;;;:9;:13;;;;;:18;;10634:1;;10617:13;:18;;10634:1;;10617:18;:::i;:::-;;;;-1:-1:-1;;10645:16:5;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;10645:21:5;-1:-1:-1;;;;;10645:21:5;;;;;;;;;10682:27;;10645:16;;10682:27;;;;;;;10156:560;;;:::o;707:211:26:-;851:58;;;-1:-1:-1;;;;;206:32:32;;851:58:26;;;188:51:32;255:18;;;;248:34;;;851:58:26;;;;;;;;;;161:18:32;;;;851:58:26;;;;;;;;-1:-1:-1;;;;;851:58:26;-1:-1:-1;;;851:58:26;;;824:86;;844:5;;824:19;:86::i;1600:169:23:-;1674:6;;;-1:-1:-1;;;;;1690:17:23;;;-1:-1:-1;;;;;;1690:17:23;;;;;;;1722:40;;1674:6;;;1690:17;1674:6;;1722:40;;1655:16;;1722:40;1645:124;1600:169;:::o;11442:1079:2:-;11501:25;;:::i;:::-;11601:12;;;;;;;;;-1:-1:-1;;;;;11601:12:2;-1:-1:-1;;;;;11601:22:2;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;11588:37;;;;;:10;;11732:19;;11749:2;11732:19;;;11745:1;11732:19;11773:2;11764:11;;;;;11718:33;-1:-1:-1;11795:45:2;11821:6;11814:13;;11830:9;11718:33;11830:1;:9;:::i;:::-;11795:11;:45::i;:::-;11786:54;;:6;;;:54;11862:2;11853:11;;;;;11886:45;11912:6;11905:13;;11921:9;11925:5;11921:1;:9;:::i;11886:45::-;11875:56;;:8;;;:56;11953:2;11944:11;;;;;11977:45;12003:6;11996:13;;12012:9;12016:5;12012:1;:9;:::i;11977:45::-;11966:56;;:8;;;:56;12044:2;12035:11;;;;;12066:45;12092:6;12085:13;;12101:9;12105:5;12101:1;:9;:::i;12066:45::-;12057:54;;:6;;;:54;12133:2;12124:11;;;;;12155:45;12181:6;12174:13;;12190:9;12194:5;12190:1;:9;:::i;12155:45::-;12146:54;;:6;;;:54;12240:10;;12222:2;12213:11;;;;;12235:279;;12272:12;;;;;;;;;-1:-1:-1;;;;;12272:12:2;-1:-1:-1;;;;;12272:22:2;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;12267:116;;12331:4;12317:11;;;:18;;12354:9;;;:13;12267:116;12501:1;12486:12;;;:16;12235:279;11528:993;11442:1079;;;:::o;12708:477::-;12882:10;;12915:11;;;;;12949:6;;;;;12978:8;;;;13009;;;;13040:6;;;;13069;;;;13098:9;;;;13130:12;;;;;12843:318;;34177:14:32;;34170:22;34138:3;34162:31;;;12843:318:2;;;34150:44:32;34238:14;;34231:22;34223:31;;34210:11;;;34203:52;34320:15;;;-1:-1:-1;;;;;;34316:24:32;;;34303:11;;;34296:45;34374:15;;;34370:24;;34357:11;;;34350:45;34428:15;;;34424:24;;34411:11;;;34404:45;34482:15;;34478:24;;34465:11;;;34458:45;34536:15;;34532:24;;34519:11;;;34512:45;34590:15;;;34586:24;;34573:11;;;34566:45;33772:15;;;33768:35;;;34645:11;;;33756:48;12843:318:2;;;;;;;;;34673:11:32;;;;12843:318:2;;;12815:361;;;;;;12708:477::o;8423:150:5:-;8548:18;8554:2;8558:7;8548:5;:18::i;2543:572:6:-;-1:-1:-1;;;;;2742:18:6;;2738:183;;2776:40;2808:7;3924:10;:17;;3897:24;;;;:15;:24;;;;;:44;;;3951:24;;;;;;;;;;;;3821:161;2776:40;2738:183;;;2845:2;-1:-1:-1;;;;;2837:10:6;:4;-1:-1:-1;;;;;2837:10:6;;2833:88;;2863:47;2896:4;2902:7;2863:32;:47::i;:::-;-1:-1:-1;;;;;2934:16:6;;2930:179;;2966:45;3003:7;2966:36;:45::i;2930:179::-;3038:4;-1:-1:-1;;;;;3032:10:6;:2;-1:-1:-1;;;;;3032:10:6;;3028:81;;3058:40;3086:2;3090:7;3058:27;:40::i;3280:716:26:-;3704:23;3730:69;3758:4;3730:69;;;;;;;;;;;;;;;;;3738:5;-1:-1:-1;;;;;3730:27:26;;;:69;;;;;:::i;:::-;3814:17;;3704:95;;-1:-1:-1;3814:21:26;3810:179;;3911:10;3900:30;;;;;;;;;;;;:::i;:::-;3892:85;;;;-1:-1:-1;;;3892:85:26;;34897:2:32;3892:85:26;;;34879:21:32;34936:2;34916:18;;;34909:30;34975:34;34955:18;;;34948:62;-1:-1:-1;;;35026:18:32;;;35019:40;35076:19;;3892:85:26;34695:406:32;10333:142:2;10432:6;;:35;;-1:-1:-1;;;10432:35:2;;35304:6:32;35292:19;;10432:35:2;;;35274:38:32;35360:4;35348:17;;35328:18;;;35321:45;10407:5:2;;-1:-1:-1;;;;;10432:6:2;;:18;;35247::32;;10432:35:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;8895:372:5:-;-1:-1:-1;;;;;8974:16:5;;8966:61;;;;-1:-1:-1;;;8966:61:5;;35831:2:32;8966:61:5;;;35813:21:32;;;35850:18;;;35843:30;35909:34;35889:18;;;35882:62;35961:18;;8966:61:5;35629:356:32;8966:61:5;7202:4;7225:16;;;:7;:16;;;;;;-1:-1:-1;;;;;7225:16:5;:30;9037:58;;;;-1:-1:-1;;;9037:58:5;;36192:2:32;9037:58:5;;;36174:21:32;36231:2;36211:18;;;36204:30;36270;36250:18;;;36243:58;36318:18;;9037:58:5;35990:352:32;9037:58:5;9106:45;9135:1;9139:2;9143:7;9106:20;:45::i;:::-;-1:-1:-1;;;;;9162:13:5;;;;;;:9;:13;;;;;:18;;9179:1;;9162:13;:18;;9179:1;;9162:18;:::i;:::-;;;;-1:-1:-1;;9190:16:5;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;9190:21:5;-1:-1:-1;;;;;9190:21:5;;;;;;;;9227:33;;9190:16;;;9227:33;;9190:16;;9227:33;8895:372;;:::o;4599:970:6:-;4861:22;4911:1;4886:22;4903:4;4886:16;:22::i;:::-;:26;;;;:::i;:::-;4922:18;4943:26;;;:17;:26;;;;;;4861:51;;-1:-1:-1;5073:28:6;;;5069:323;;-1:-1:-1;;;;;5139:18:6;;5117:19;5139:18;;;:12;:18;;;;;;;;:34;;;;;;;;;5188:30;;;;;;:44;;;5304:30;;:17;:30;;;;;:43;;;5069:323;-1:-1:-1;5485:26:6;;;;:17;:26;;;;;;;;5478:33;;;-1:-1:-1;;;;;5528:18:6;;;;;:12;:18;;;;;:34;;;;;;;5521:41;4599:970::o;5857:1061::-;6131:10;:17;6106:22;;6131:21;;6151:1;;6131:21;:::i;:::-;6162:18;6183:24;;;:15;:24;;;;;;6551:10;:26;;6106:46;;-1:-1:-1;6183:24:6;;6106:46;;6551:26;;;;;;:::i;:::-;;;;;;;;;6529:48;;6613:11;6588:10;6599;6588:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;6692:28;;;:15;:28;;;;;;;:41;;;6861:24;;;;;6854:31;6895:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;5928:990;;;5857:1061;:::o;3409:217::-;3493:14;3510:20;3527:2;3510:16;:20::i;:::-;-1:-1:-1;;;;;3540:16:6;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;3584:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;3409:217:6:o;3461:223:0:-;3594:12;3625:52;3647:6;3655:4;3661:1;3664:12;3594;1034:20;;4828:60;;;;-1:-1:-1;;;4828:60:0;;36956:2:32;4828:60:0;;;36938:21:32;36995:2;36975:18;;;36968:30;37034:31;37014:18;;;37007:59;37083:18;;4828:60:0;36754:353:32;4828:60:0;4900:12;4914:23;4941:6;-1:-1:-1;;;;;4941:11:0;4960:5;4967:4;4941:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4899:73;;;;4989:51;5006:7;5015:10;5027:12;4989:16;:51::i;:::-;4982:58;4548:499;-1:-1:-1;;;;;;;4548:499:0:o;7161:692::-;7307:12;7335:7;7331:516;;;-1:-1:-1;7365:10:0;7358:17;;7331:516;7476:17;;:21;7472:365;;7670:10;7664:17;7730:15;7717:10;7713:2;7709:19;7702:44;7472:365;7809:12;7802:20;;-1:-1:-1;;;7802:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;293:286:32;351:6;404:2;392:9;383:7;379:23;375:32;372:52;;;420:1;417;410:12;372:52;446:23;;-1:-1:-1;;;;;;498:32:32;;488:43;;478:71;;545:1;542;535:12;776:131;-1:-1:-1;;;;;851:31:32;;841:42;;831:70;;897:1;894;887:12;912:247;971:6;1024:2;1012:9;1003:7;999:23;995:32;992:52;;;1040:1;1037;1030:12;992:52;1079:9;1066:23;1098:31;1123:5;1098:31;:::i;1346:258::-;1418:1;1428:113;1442:6;1439:1;1436:13;1428:113;;;1518:11;;;1512:18;1499:11;;;1492:39;1464:2;1457:10;1428:113;;;1559:6;1556:1;1553:13;1550:48;;;-1:-1:-1;;1594:1:32;1576:16;;1569:27;1346:258::o;1609:383::-;1758:2;1747:9;1740:21;1721:4;1790:6;1784:13;1833:6;1828:2;1817:9;1813:18;1806:34;1849:66;1908:6;1903:2;1892:9;1888:18;1883:2;1875:6;1871:15;1849:66;:::i;:::-;1976:2;1955:15;-1:-1:-1;;1951:29:32;1936:45;;;;1983:2;1932:54;;1609:383;-1:-1:-1;;1609:383:32:o;1997:180::-;2056:6;2109:2;2097:9;2088:7;2084:23;2080:32;2077:52;;;2125:1;2122;2115:12;2077:52;-1:-1:-1;2148:23:32;;1997:180;-1:-1:-1;1997:180:32:o;2390:315::-;2458:6;2466;2519:2;2507:9;2498:7;2494:23;2490:32;2487:52;;;2535:1;2532;2525:12;2487:52;2574:9;2561:23;2593:31;2618:5;2593:31;:::i;:::-;2643:5;2695:2;2680:18;;;;2667:32;;-1:-1:-1;;;2390:315:32:o;2932:118::-;3018:5;3011:13;3004:21;2997:5;2994:32;2984:60;;3040:1;3037;3030:12;3055:309;3120:6;3128;3181:2;3169:9;3160:7;3156:23;3152:32;3149:52;;;3197:1;3194;3187:12;3149:52;3233:9;3220:23;3210:33;;3293:2;3282:9;3278:18;3265:32;3306:28;3328:5;3306:28;:::i;:::-;3353:5;3343:15;;;3055:309;;;;;:::o;3369:241::-;3425:6;3478:2;3466:9;3457:7;3453:23;3449:32;3446:52;;;3494:1;3491;3484:12;3446:52;3533:9;3520:23;3552:28;3574:5;3552:28;:::i;3875:456::-;3952:6;3960;3968;4021:2;4009:9;4000:7;3996:23;3992:32;3989:52;;;4037:1;4034;4027:12;3989:52;4076:9;4063:23;4095:31;4120:5;4095:31;:::i;:::-;4145:5;-1:-1:-1;4202:2:32;4187:18;;4174:32;4215:33;4174:32;4215:33;:::i;:::-;3875:456;;4267:7;;-1:-1:-1;;;4321:2:32;4306:18;;;;4293:32;;3875:456::o;4336:367::-;4399:8;4409:6;4463:3;4456:4;4448:6;4444:17;4440:27;4430:55;;4481:1;4478;4471:12;4430:55;-1:-1:-1;4504:20:32;;-1:-1:-1;;;;;4536:30:32;;4533:50;;;4579:1;4576;4569:12;4533:50;4616:4;4608:6;4604:17;4592:29;;4676:3;4669:4;4659:6;4656:1;4652:14;4644:6;4640:27;4636:38;4633:47;4630:67;;;4693:1;4690;4683:12;4630:67;4336:367;;;;;:::o;4708:437::-;4794:6;4802;4855:2;4843:9;4834:7;4830:23;4826:32;4823:52;;;4871:1;4868;4861:12;4823:52;4911:9;4898:23;-1:-1:-1;;;;;4936:6:32;4933:30;4930:50;;;4976:1;4973;4966:12;4930:50;5015:70;5077:7;5068:6;5057:9;5053:22;5015:70;:::i;:::-;5104:8;;4989:96;;-1:-1:-1;4708:437:32;-1:-1:-1;;;;4708:437:32:o;5646:403::-;5729:6;5737;5790:2;5778:9;5769:7;5765:23;5761:32;5758:52;;;5806:1;5803;5796:12;5758:52;5845:9;5832:23;5864:31;5889:5;5864:31;:::i;:::-;5914:5;-1:-1:-1;5971:2:32;5956:18;;5943:32;5984:33;5943:32;5984:33;:::i;6470:450::-;6544:6;6552;6560;6613:2;6601:9;6592:7;6588:23;6584:32;6581:52;;;6629:1;6626;6619:12;6581:52;6668:9;6655:23;6687:31;6712:5;6687:31;:::i;:::-;6737:5;-1:-1:-1;6789:2:32;6774:18;;6761:32;;-1:-1:-1;6845:2:32;6830:18;;6817:32;6858:30;6817:32;6858:30;:::i;:::-;6907:7;6897:17;;;6470:450;;;;;:::o;6925:632::-;7096:2;7148:21;;;7218:13;;7121:18;;;7240:22;;;7067:4;;7096:2;7319:15;;;;7293:2;7278:18;;;7067:4;7362:169;7376:6;7373:1;7370:13;7362:169;;;7437:13;;7425:26;;7506:15;;;;7471:12;;;;7398:1;7391:9;7362:169;;;-1:-1:-1;7548:3:32;;6925:632;-1:-1:-1;;;;;;6925:632:32:o;7830:773::-;7952:6;7960;7968;7976;8029:2;8017:9;8008:7;8004:23;8000:32;7997:52;;;8045:1;8042;8035:12;7997:52;8085:9;8072:23;-1:-1:-1;;;;;8155:2:32;8147:6;8144:14;8141:34;;;8171:1;8168;8161:12;8141:34;8210:70;8272:7;8263:6;8252:9;8248:22;8210:70;:::i;:::-;8299:8;;-1:-1:-1;8184:96:32;-1:-1:-1;8387:2:32;8372:18;;8359:32;;-1:-1:-1;8403:16:32;;;8400:36;;;8432:1;8429;8422:12;8400:36;;8471:72;8535:7;8524:8;8513:9;8509:24;8471:72;:::i;:::-;7830:773;;;;-1:-1:-1;8562:8:32;-1:-1:-1;;;;7830:773:32:o;8697:1254::-;8857:4;8899:3;8888:9;8884:19;8876:27;;8950:6;8944:13;8937:21;8930:29;8919:9;8912:48;9030:4;9022:6;9018:17;9012:24;9005:32;8998:40;8991:4;8980:9;8976:20;8969:70;9086:4;9078:6;9074:17;9068:24;9101:61;9156:4;9145:9;9141:20;9127:12;8684:4;8673:16;8661:29;;8608:84;9101:61;;9211:4;9203:6;9199:17;9193:24;9226:63;9283:4;9272:9;9268:20;9252:14;8684:4;8673:16;8661:29;;8608:84;9226:63;;9338:4;9330:6;9326:17;9320:24;9353:63;9410:4;9399:9;9395:20;9379:14;8684:4;8673:16;8661:29;;8608:84;9353:63;;9465:4;9457:6;9453:17;9447:24;9480:63;9537:4;9526:9;9522:20;9506:14;8684:4;8673:16;8661:29;;8608:84;9480:63;;9592:4;9584:6;9580:17;9574:24;9607:63;9664:4;9653:9;9649:20;9633:14;8684:4;8673:16;8661:29;;8608:84;9607:63;;9719:4;9711:6;9707:17;9701:24;9734:63;9791:4;9780:9;9776:20;9760:14;8684:4;8673:16;8661:29;;8608:84;9734:63;-1:-1:-1;9816:6:32;9859:15;;;9853:22;8684:4;8673:16;9926:18;;;;8661:29;8697:1254;:::o;9956:382::-;10021:6;10029;10082:2;10070:9;10061:7;10057:23;10053:32;10050:52;;;10098:1;10095;10088:12;10050:52;10137:9;10124:23;10156:31;10181:5;10156:31;:::i;:::-;10206:5;-1:-1:-1;10263:2:32;10248:18;;10235:32;10276:30;10235:32;10276:30;:::i;10343:127::-;10404:10;10399:3;10395:20;10392:1;10385:31;10435:4;10432:1;10425:15;10459:4;10456:1;10449:15;10475:275;10546:2;10540:9;10611:2;10592:13;;-1:-1:-1;;10588:27:32;10576:40;;-1:-1:-1;;;;;10631:34:32;;10667:22;;;10628:62;10625:88;;;10693:18;;:::i;:::-;10729:2;10722:22;10475:275;;-1:-1:-1;10475:275:32:o;10755:186::-;10803:4;-1:-1:-1;;;;;10828:6:32;10825:30;10822:56;;;10858:18;;:::i;:::-;-1:-1:-1;10924:2:32;10903:15;-1:-1:-1;;10899:29:32;10930:4;10895:40;;10755:186::o;10946:1016::-;11041:6;11049;11057;11065;11118:3;11106:9;11097:7;11093:23;11089:33;11086:53;;;11135:1;11132;11125:12;11086:53;11174:9;11161:23;11193:31;11218:5;11193:31;:::i;:::-;11243:5;-1:-1:-1;11300:2:32;11285:18;;11272:32;11313:33;11272:32;11313:33;:::i;:::-;11365:7;-1:-1:-1;11419:2:32;11404:18;;11391:32;;-1:-1:-1;11474:2:32;11459:18;;11446:32;-1:-1:-1;;;;;11490:30:32;;11487:50;;;11533:1;11530;11523:12;11487:50;11556:22;;11609:4;11601:13;;11597:27;-1:-1:-1;11587:55:32;;11638:1;11635;11628:12;11587:55;11674:2;11661:16;11699:48;11715:31;11743:2;11715:31;:::i;:::-;11699:48;:::i;:::-;11770:2;11763:5;11756:17;11810:7;11805:2;11800;11796;11792:11;11788:20;11785:33;11782:53;;;11831:1;11828;11821:12;11782:53;11886:2;11881;11877;11873:11;11868:2;11861:5;11857:14;11844:45;11930:1;11925:2;11920;11913:5;11909:14;11905:23;11898:34;11951:5;11941:15;;;;;10946:1016;;;;;;;:::o;15146:380::-;15225:1;15221:12;;;;15268;;;15289:61;;15343:4;15335:6;15331:17;15321:27;;15289:61;15396:2;15388:6;15385:14;15365:18;15362:38;15359:161;;;15442:10;15437:3;15433:20;15430:1;15423:31;15477:4;15474:1;15467:15;15505:4;15502:1;15495:15;16771:337;16973:2;16955:21;;;17012:2;16992:18;;;16985:30;-1:-1:-1;;;17046:2:32;17031:18;;17024:43;17099:2;17084:18;;16771:337::o;17113:341::-;17315:2;17297:21;;;17354:2;17334:18;;;17327:30;-1:-1:-1;;;17388:2:32;17373:18;;17366:47;17445:2;17430:18;;17113:341::o;17459:331::-;17661:2;17643:21;;;17700:1;17680:18;;;17673:29;-1:-1:-1;;;17733:2:32;17718:18;;17711:38;17781:2;17766:18;;17459:331::o;17795:127::-;17856:10;17851:3;17847:20;17844:1;17837:31;17887:4;17884:1;17877:15;17911:4;17908:1;17901:15;17927:128;17967:3;17998:1;17994:6;17991:1;17988:13;17985:39;;;18004:18;;:::i;:::-;-1:-1:-1;18040:9:32;;17927:128::o;18060:341::-;18262:2;18244:21;;;18301:2;18281:18;;;18274:30;-1:-1:-1;;;18335:2:32;18320:18;;18313:47;18392:2;18377:18;;18060:341::o;19103:125::-;19143:4;19171:1;19168;19165:8;19162:34;;;19176:18;;:::i;:::-;-1:-1:-1;19213:9:32;;19103:125::o;19233:197::-;19271:3;19299:6;19340:2;19333:5;19329:14;19367:2;19358:7;19355:15;19352:41;;;19373:18;;:::i;:::-;19422:1;19409:15;;19233:197;-1:-1:-1;;;19233:197:32:o;19435:184::-;19505:6;19558:2;19546:9;19537:7;19533:23;19529:32;19526:52;;;19574:1;19571;19564:12;19526:52;-1:-1:-1;19597:16:32;;19435:184;-1:-1:-1;19435:184:32:o;19624:127::-;19685:10;19680:3;19676:20;19673:1;19666:31;19716:4;19713:1;19706:15;19740:4;19737:1;19730:15;19756:135;19795:3;-1:-1:-1;;19816:17:32;;19813:43;;;19836:18;;:::i;:::-;-1:-1:-1;19883:1:32;19872:13;;19756:135::o;19896:740::-;-1:-1:-1;;;;;20142:32:32;;20124:51;;20112:2;20194;20212:18;;;20205:30;;;20284:13;;20097:18;;;20306:22;;;20064:4;;20385:15;;;;20194:2;20359;20344:18;;;20064:4;20428:182;20442:6;20439:1;20436:13;20428:182;;;20507:13;;20522:6;20503:26;20491:39;;20585:15;;;;20550:12;;;;20464:1;20457:9;20428:182;;;-1:-1:-1;20627:3:32;;19896:740;-1:-1:-1;;;;;;;19896:740:32:o;20641:356::-;20843:2;20825:21;;;20862:18;;;20855:30;20921:34;20916:2;20901:18;;20894:62;20988:2;20973:18;;20641:356::o;21002:402::-;21204:2;21186:21;;;21243:2;21223:18;;;21216:30;21282:34;21277:2;21262:18;;21255:62;-1:-1:-1;;;21348:2:32;21333:18;;21326:36;21394:3;21379:19;;21002:402::o;21409:407::-;21611:2;21593:21;;;21650:2;21630:18;;;21623:30;21689:34;21684:2;21669:18;;21662:62;-1:-1:-1;;;21755:2:32;21740:18;;21733:41;21806:3;21791:19;;21409:407::o;22108:413::-;22310:2;22292:21;;;22349:2;22329:18;;;22322:30;22388:34;22383:2;22368:18;;22361:62;-1:-1:-1;;;22454:2:32;22439:18;;22432:47;22511:3;22496:19;;22108:413::o;22938:127::-;22999:10;22994:3;22990:20;22987:1;22980:31;23030:4;23027:1;23020:15;23054:4;23051:1;23044:15;23070:120;23110:1;23136;23126:35;;23141:18;;:::i;:::-;-1:-1:-1;23175:9:32;;23070:120::o;23195:168::-;23235:7;23301:1;23297;23293:6;23289:14;23286:1;23283:21;23278:1;23271:9;23264:17;23260:45;23257:71;;;23308:18;;:::i;:::-;-1:-1:-1;23348:9:32;;23195:168::o;24602:127::-;24663:10;24658:3;24654:20;24651:1;24644:31;24694:4;24691:1;24684:15;24718:4;24715:1;24708:15;25860:343;26062:2;26044:21;;;26101:2;26081:18;;;26074:30;-1:-1:-1;;;26135:2:32;26120:18;;26113:49;26194:2;26179:18;;25860:343::o;26208:346::-;26410:2;26392:21;;;26449:2;26429:18;;;26422:30;-1:-1:-1;;;26483:2:32;26468:18;;26461:52;26545:2;26530:18;;26208:346::o;28043:635::-;28123:6;28176:2;28164:9;28155:7;28151:23;28147:32;28144:52;;;28192:1;28189;28182:12;28144:52;28225:9;28219:16;-1:-1:-1;;;;;28250:6:32;28247:30;28244:50;;;28290:1;28287;28280:12;28244:50;28313:22;;28366:4;28358:13;;28354:27;-1:-1:-1;28344:55:32;;28395:1;28392;28385:12;28344:55;28424:2;28418:9;28449:48;28465:31;28493:2;28465:31;:::i;28449:48::-;28520:2;28513:5;28506:17;28560:7;28555:2;28550;28546;28542:11;28538:20;28535:33;28532:53;;;28581:1;28578;28571:12;28532:53;28594:54;28645:2;28640;28633:5;28629:14;28624:2;28620;28616:11;28594:54;:::i;:::-;28667:5;28043:635;-1:-1:-1;;;;;28043:635:32:o;29029:114::-;29113:4;29106:5;29102:16;29095:5;29092:27;29082:55;;29133:1;29130;29123:12;29148:243;29205:6;29258:2;29246:9;29237:7;29233:23;29229:32;29226:52;;;29274:1;29271;29264:12;29226:52;29313:9;29300:23;29332:29;29355:5;29332:29;:::i;30299:112::-;30331:1;30357;30347:35;;30362:18;;:::i;:::-;-1:-1:-1;30396:9:32;;30299:112::o;30416:251::-;30486:6;30539:2;30527:9;30518:7;30514:23;30510:32;30507:52;;;30555:1;30552;30545:12;30507:52;30587:9;30581:16;30606:31;30631:5;30606:31;:::i;33245:245::-;33312:6;33365:2;33353:9;33344:7;33340:23;33336:32;33333:52;;;33381:1;33378;33371:12;33333:52;33413:9;33407:16;33432:28;33454:5;33432:28;:::i;33495:204::-;33533:3;33569:4;33566:1;33562:12;33601:4;33598:1;33594:12;33636:3;33630:4;33626:14;33621:3;33618:23;33615:49;;;33644:18;;:::i;:::-;33680:13;;33495:204;-1:-1:-1;;;33495:204:32:o;35377:247::-;35445:6;35498:2;35486:9;35477:7;35473:23;35469:32;35466:52;;;35514:1;35511;35504:12;35466:52;35546:9;35540:16;35565:29;35588:5;35565:29;:::i;37112:274::-;37241:3;37279:6;37273:13;37295:53;37341:6;37336:3;37329:4;37321:6;37317:17;37295:53;:::i;:::-;37364:16;;;;;37112:274;-1:-1:-1;;37112:274:32:o

Swarm Source

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