Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
191 ANFTs
Holders
41
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
10 ANFTsLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AmericanaToken
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-02-14 */ /** *Submitted for verification at Etherscan.io on 2024-02-13 */ /** *Submitted for verification at Etherscan.io on 2024-01-10 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.17; // ERC721A Contracts v4.2.3 // Creator: Chiru Labs // ERC721A Contracts v4.2.3 // Creator: Chiru Labs /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` 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 payable; /** * @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 payable; /** * @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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } /// @notice Gas optimized ECDSA wrapper. /// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/ECDSA.sol) /// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/ECDSA.sol) /// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/ECDSA.sol) library ECDSA { /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* CUSTOM ERRORS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The signature is invalid. error InvalidSignature(); /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* CONSTANTS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The number which `s` must not exceed in order for /// the signature to be non-malleable. bytes32 private constant _MALLEABILITY_THRESHOLD = 0x7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0; /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* RECOVERY OPERATIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ // Note: as of Solady version 0.0.68, these functions will // revert upon recovery failure for more safety by default. /// @dev Recovers the signer's address from a message digest `hash`, /// and the `signature`. /// /// This function does NOT accept EIP-2098 short form signatures. /// Use `recover(bytes32 hash, bytes32 r, bytes32 vs)` for EIP-2098 /// short form signatures instead. function recover(bytes32 hash, bytes memory signature) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { // Copy the free memory pointer so that we can restore it later. let m := mload(0x40) // Copy `r` and `s`. mstore(0x40, mload(add(signature, 0x20))) // `r`. let s := mload(add(signature, 0x40)) mstore(0x60, s) // Store the `hash` in the scratch space. mstore(0x00, hash) // Compute `v` and store it in the scratch space. mstore(0x20, byte(0, mload(add(signature, 0x60)))) pop( staticcall( gas(), // Amount of gas left for the transaction. and( // If the signature is exactly 65 bytes in length. eq(mload(signature), 65), // If `s` in lower half order, such that the signature is not malleable. lt(s, add(_MALLEABILITY_THRESHOLD, 1)) ), // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x00, // Start of output. 0x20 // Size of output. ) ) result := mload(0x00) // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. if iszero(returndatasize()) { // Store the function selector of `InvalidSignature()`. mstore(0x00, 0x8baa579f) // Revert with (offset, size). revert(0x1c, 0x04) } // Restore the zero slot. mstore(0x60, 0) // Restore the free memory pointer. mstore(0x40, m) } } /// @dev Recovers the signer's address from a message digest `hash`, /// and the `signature`. /// /// This function does NOT accept EIP-2098 short form signatures. /// Use `recover(bytes32 hash, bytes32 r, bytes32 vs)` for EIP-2098 /// short form signatures instead. function recoverCalldata(bytes32 hash, bytes calldata signature) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { // Copy the free memory pointer so that we can restore it later. let m := mload(0x40) // Directly copy `r` and `s` from the calldata. calldatacopy(0x40, signature.offset, 0x40) // Store the `hash` in the scratch space. mstore(0x00, hash) // Compute `v` and store it in the scratch space. mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) pop( staticcall( gas(), // Amount of gas left for the transaction. and( // If the signature is exactly 65 bytes in length. eq(signature.length, 65), // If `s` in lower half order, such that the signature is not malleable. lt(mload(0x60), add(_MALLEABILITY_THRESHOLD, 1)) ), // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x00, // Start of output. 0x20 // Size of output. ) ) result := mload(0x00) // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. if iszero(returndatasize()) { // Store the function selector of `InvalidSignature()`. mstore(0x00, 0x8baa579f) // Revert with (offset, size). revert(0x1c, 0x04) } // Restore the zero slot. mstore(0x60, 0) // Restore the free memory pointer. mstore(0x40, m) } } /// @dev Recovers the signer's address from a message digest `hash`, /// and the EIP-2098 short form signature defined by `r` and `vs`. /// /// This function only accepts EIP-2098 short form signatures. /// See: https://eips.ethereum.org/EIPS/eip-2098 /// /// To be honest, I do not recommend using EIP-2098 signatures /// for simplicity, performance, and security reasons. Most if not /// all clients support traditional non EIP-2098 signatures by default. /// As such, this method is intentionally not fully inlined. /// It is merely included for completeness. function recover(bytes32 hash, bytes32 r, bytes32 vs) internal view returns (address result) { uint8 v; bytes32 s; /// @solidity memory-safe-assembly assembly { s := shr(1, shl(1, vs)) v := add(shr(255, vs), 27) } result = recover(hash, v, r, s); } /// @dev Recovers the signer's address from a message digest `hash`, /// and the signature defined by `v`, `r`, `s`. function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { // Copy the free memory pointer so that we can restore it later. let m := mload(0x40) mstore(0x00, hash) mstore(0x20, and(v, 0xff)) mstore(0x40, r) mstore(0x60, s) pop( staticcall( gas(), // Amount of gas left for the transaction. // If `s` in lower half order, such that the signature is not malleable. lt(s, add(_MALLEABILITY_THRESHOLD, 1)), // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x00, // Start of output. 0x20 // Size of output. ) ) result := mload(0x00) // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. if iszero(returndatasize()) { // Store the function selector of `InvalidSignature()`. mstore(0x00, 0x8baa579f) // Revert with (offset, size). revert(0x1c, 0x04) } // Restore the zero slot. mstore(0x60, 0) // Restore the free memory pointer. mstore(0x40, m) } } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* TRY-RECOVER OPERATIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ // WARNING! // These functions will NOT revert upon recovery failure. // Instead, they will return the zero address upon recovery failure. // It is critical that the returned address is NEVER compared against // a zero address (e.g. an uninitialized address variable). /// @dev Recovers the signer's address from a message digest `hash`, /// and the `signature`. /// /// This function does NOT accept EIP-2098 short form signatures. /// Use `recover(bytes32 hash, bytes32 r, bytes32 vs)` for EIP-2098 /// short form signatures instead. function tryRecover(bytes32 hash, bytes memory signature) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { if iszero(xor(mload(signature), 65)) { // Copy the free memory pointer so that we can restore it later. let m := mload(0x40) // Copy `r` and `s`. mstore(0x40, mload(add(signature, 0x20))) // `r`. let s := mload(add(signature, 0x40)) mstore(0x60, s) // If `s` in lower half order, such that the signature is not malleable. if iszero(gt(s, _MALLEABILITY_THRESHOLD)) { // Store the `hash` in the scratch space. mstore(0x00, hash) // Compute `v` and store it in the scratch space. mstore(0x20, byte(0, mload(add(signature, 0x60)))) pop( staticcall( gas(), // Amount of gas left for the transaction. 0x01, // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x40, // Start of output. 0x20 // Size of output. ) ) // Restore the zero slot. mstore(0x60, 0) // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. result := mload(xor(0x60, returndatasize())) } // Restore the free memory pointer. mstore(0x40, m) } } } /// @dev Recovers the signer's address from a message digest `hash`, /// and the `signature`. /// /// This function does NOT accept EIP-2098 short form signatures. /// Use `recover(bytes32 hash, bytes32 r, bytes32 vs)` for EIP-2098 /// short form signatures instead. function tryRecoverCalldata(bytes32 hash, bytes calldata signature) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { if iszero(xor(signature.length, 65)) { // Copy the free memory pointer so that we can restore it later. let m := mload(0x40) // Directly copy `r` and `s` from the calldata. calldatacopy(0x40, signature.offset, 0x40) // If `s` in lower half order, such that the signature is not malleable. if iszero(gt(mload(0x60), _MALLEABILITY_THRESHOLD)) { // Store the `hash` in the scratch space. mstore(0x00, hash) // Compute `v` and store it in the scratch space. mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) pop( staticcall( gas(), // Amount of gas left for the transaction. 0x01, // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x40, // Start of output. 0x20 // Size of output. ) ) // Restore the zero slot. mstore(0x60, 0) // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. result := mload(xor(0x60, returndatasize())) } // Restore the free memory pointer. mstore(0x40, m) } } } /// @dev Recovers the signer's address from a message digest `hash`, /// and the EIP-2098 short form signature defined by `r` and `vs`. /// /// This function only accepts EIP-2098 short form signatures. /// See: https://eips.ethereum.org/EIPS/eip-2098 /// /// To be honest, I do not recommend using EIP-2098 signatures /// for simplicity, performance, and security reasons. Most if not /// all clients support traditional non EIP-2098 signatures by default. /// As such, this method is intentionally not fully inlined. /// It is merely included for completeness. function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal view returns (address result) { uint8 v; bytes32 s; /// @solidity memory-safe-assembly assembly { s := shr(1, shl(1, vs)) v := add(shr(255, vs), 27) } result = tryRecover(hash, v, r, s); } /// @dev Recovers the signer's address from a message digest `hash`, /// and the signature defined by `v`, `r`, `s`. function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { // Copy the free memory pointer so that we can restore it later. let m := mload(0x40) // If `s` in lower half order, such that the signature is not malleable. if iszero(gt(s, _MALLEABILITY_THRESHOLD)) { // Store the `hash`, `v`, `r`, `s` in the scratch space. mstore(0x00, hash) mstore(0x20, and(v, 0xff)) mstore(0x40, r) mstore(0x60, s) pop( staticcall( gas(), // Amount of gas left for the transaction. 0x01, // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x40, // Start of output. 0x20 // Size of output. ) ) // Restore the zero slot. mstore(0x60, 0) // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. result := mload(xor(0x60, returndatasize())) } // Restore the free memory pointer. mstore(0x40, m) } } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* HASHING OPERATIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Returns an Ethereum Signed Message, created from a `hash`. /// This produces a hash corresponding to the one signed with the /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign) /// JSON-RPC method as part of EIP-191. function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result) { /// @solidity memory-safe-assembly assembly { // Store into scratch space for keccak256. mstore(0x20, hash) mstore(0x00, "\x00\x00\x00\x00\x19Ethereum Signed Message:\n32") // 0x40 - 0x04 = 0x3c result := keccak256(0x04, 0x3c) } } /// @dev Returns an Ethereum Signed Message, created from `s`. /// This produces a hash corresponding to the one signed with the /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign) /// JSON-RPC method as part of EIP-191. function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32 result) { assembly { // The length of "\x19Ethereum Signed Message:\n" is 26 bytes (i.e. 0x1a). // If we reserve 2 words, we'll have 64 - 26 = 38 bytes to store the // ASCII decimal representation of the length of `s` up to about 2 ** 126. // Instead of allocating, we temporarily copy the 64 bytes before the // start of `s` data to some variables. let m := mload(sub(s, 0x20)) // The length of `s` is in bytes. let sLength := mload(s) let ptr := add(s, 0x20) let w := not(0) // `end` marks the end of the memory which we will compute the keccak256 of. let end := add(ptr, sLength) // Convert the length of the bytes to ASCII decimal representation // and store it into the memory. for { let temp := sLength } 1 {} { ptr := add(ptr, w) // `sub(ptr, 1)`. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) if iszero(temp) { break } } // Copy the header over to the memory. mstore(sub(ptr, 0x20), "\x00\x00\x00\x00\x00\x00\x19Ethereum Signed Message:\n") // Compute the keccak256 of the memory. result := keccak256(sub(ptr, 0x1a), sub(end, sub(ptr, 0x1a))) // Restore the previous memory. mstore(s, sLength) mstore(sub(s, 0x20), m) } } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* EMPTY CALLDATA HELPERS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Returns an empty calldata bytes. function emptySignature() internal pure returns (bytes calldata signature) { /// @solidity memory-safe-assembly assembly { signature.length := 0 } } } /// @notice Simple single owner authorization mixin. /// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol) /// @dev While the ownable portion follows [EIP-173](https://eips.ethereum.org/EIPS/eip-173) /// for compatibility, the nomenclature for the 2-step ownership handover /// may be unique to this codebase. abstract contract Ownable { /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* CUSTOM ERRORS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The caller is not authorized to call the function. error Unauthorized(); /// @dev The `newOwner` cannot be the zero address. error NewOwnerIsZeroAddress(); /// @dev The `pendingOwner` does not have a valid handover request. error NoHandoverRequest(); /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* EVENTS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The ownership is transferred from `oldOwner` to `newOwner`. /// This event is intentionally kept the same as OpenZeppelin's Ownable to be /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173), /// despite it not being as lightweight as a single argument event. event OwnershipTransferred(address indexed oldOwner, address indexed newOwner); /// @dev An ownership handover to `pendingOwner` has been requested. event OwnershipHandoverRequested(address indexed pendingOwner); /// @dev The ownership handover to `pendingOwner` has been canceled. event OwnershipHandoverCanceled(address indexed pendingOwner); /// @dev `keccak256(bytes("OwnershipTransferred(address,address)"))`. uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE = 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0; /// @dev `keccak256(bytes("OwnershipHandoverRequested(address)"))`. uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE = 0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d; /// @dev `keccak256(bytes("OwnershipHandoverCanceled(address)"))`. uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE = 0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92; /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* STORAGE */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The owner slot is given by: `not(_OWNER_SLOT_NOT)`. /// It is intentionally choosen to be a high value /// to avoid collision with lower slots. /// The choice of manual storage layout is to enable compatibility /// with both regular and upgradeable contracts. uint256 private constant _OWNER_SLOT_NOT = 0x8b78c6d8; /// The ownership handover slot of `newOwner` is given by: /// ``` /// mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED)) /// let handoverSlot := keccak256(0x00, 0x20) /// ``` /// It stores the expiry timestamp of the two-step ownership handover. uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1; /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* INTERNAL FUNCTIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Initializes the owner directly without authorization guard. /// This function must be called upon initialization, /// regardless of whether the contract is upgradeable or not. /// This is to enable generalization to both regular and upgradeable contracts, /// and to save gas in case the initial owner is not the caller. /// For performance reasons, this function will not check if there /// is an existing owner. function _initializeOwner(address newOwner) internal virtual { /// @solidity memory-safe-assembly assembly { // Clean the upper 96 bits. newOwner := shr(96, shl(96, newOwner)) // Store the new value. sstore(not(_OWNER_SLOT_NOT), newOwner) // Emit the {OwnershipTransferred} event. log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner) } } /// @dev Sets the owner directly without authorization guard. function _setOwner(address newOwner) internal virtual { /// @solidity memory-safe-assembly assembly { let ownerSlot := not(_OWNER_SLOT_NOT) // Clean the upper 96 bits. newOwner := shr(96, shl(96, newOwner)) // Emit the {OwnershipTransferred} event. log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner) // Store the new value. sstore(ownerSlot, newOwner) } } /// @dev Throws if the sender is not the owner. function _checkOwner() internal view virtual { /// @solidity memory-safe-assembly assembly { // If the caller is not the stored owner, revert. if iszero(eq(caller(), sload(not(_OWNER_SLOT_NOT)))) { mstore(0x00, 0x82b42900) // `Unauthorized()`. revert(0x1c, 0x04) } } } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* PUBLIC UPDATE FUNCTIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Allows the owner to transfer the ownership to `newOwner`. function transferOwnership(address newOwner) public payable virtual onlyOwner { /// @solidity memory-safe-assembly assembly { if iszero(shl(96, newOwner)) { mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`. revert(0x1c, 0x04) } } _setOwner(newOwner); } /// @dev Allows the owner to renounce their ownership. function renounceOwnership() public payable virtual onlyOwner { _setOwner(address(0)); } /// @dev Request a two-step ownership handover to the caller. /// The request will be automatically expire in 48 hours (172800 seconds) by default. function requestOwnershipHandover() public payable virtual { unchecked { uint256 expires = block.timestamp + ownershipHandoverValidFor(); /// @solidity memory-safe-assembly assembly { // Compute and set the handover slot to `expires`. mstore(0x0c, _HANDOVER_SLOT_SEED) mstore(0x00, caller()) sstore(keccak256(0x0c, 0x20), expires) // Emit the {OwnershipHandoverRequested} event. log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller()) } } } /// @dev Cancels the two-step ownership handover to the caller, if any. function cancelOwnershipHandover() public payable virtual { /// @solidity memory-safe-assembly assembly { // Compute and set the handover slot to 0. mstore(0x0c, _HANDOVER_SLOT_SEED) mstore(0x00, caller()) sstore(keccak256(0x0c, 0x20), 0) // Emit the {OwnershipHandoverCanceled} event. log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller()) } } /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`. /// Reverts if there is no existing ownership handover requested by `pendingOwner`. function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner { /// @solidity memory-safe-assembly assembly { // Compute and set the handover slot to 0. mstore(0x0c, _HANDOVER_SLOT_SEED) mstore(0x00, pendingOwner) let handoverSlot := keccak256(0x0c, 0x20) // If the handover does not exist, or has expired. if gt(timestamp(), sload(handoverSlot)) { mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`. revert(0x1c, 0x04) } // Set the handover slot to 0. sstore(handoverSlot, 0) } _setOwner(pendingOwner); } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* PUBLIC READ FUNCTIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Returns the owner of the contract. function owner() public view virtual returns (address result) { /// @solidity memory-safe-assembly assembly { result := sload(not(_OWNER_SLOT_NOT)) } } /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`. function ownershipHandoverExpiresAt(address pendingOwner) public view virtual returns (uint256 result) { /// @solidity memory-safe-assembly assembly { // Compute the handover slot. mstore(0x0c, _HANDOVER_SLOT_SEED) mstore(0x00, pendingOwner) // Load the handover slot. result := sload(keccak256(0x0c, 0x20)) } } /// @dev Returns how long a two-step ownership handover is valid for in seconds. function ownershipHandoverValidFor() public view virtual returns (uint64) { return 48 * 3600; } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* MODIFIERS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Marks a function as only callable by the owner. modifier onlyOwner() virtual { _checkOwner(); _; } } /// @notice Simple single owner and multiroles authorization mixin. /// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol) /// @dev While the ownable portion follows [EIP-173](https://eips.ethereum.org/EIPS/eip-173) /// for compatibility, the nomenclature for the 2-step ownership handover and roles /// may be unique to this codebase. abstract contract OwnableRoles is Ownable { /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* EVENTS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The `user`'s roles is updated to `roles`. /// Each bit of `roles` represents whether the role is set. event RolesUpdated(address indexed user, uint256 indexed roles); /// @dev `keccak256(bytes("RolesUpdated(address,uint256)"))`. uint256 private constant _ROLES_UPDATED_EVENT_SIGNATURE = 0x715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26; /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* STORAGE */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The role slot of `user` is given by: /// ``` /// mstore(0x00, or(shl(96, user), _ROLE_SLOT_SEED)) /// let roleSlot := keccak256(0x00, 0x20) /// ``` /// This automatically ignores the upper bits of the `user` in case /// they are not clean, as well as keep the `keccak256` under 32-bytes. /// /// Note: This is equal to `_OWNER_SLOT_NOT` in for gas efficiency. uint256 private constant _ROLE_SLOT_SEED = 0x8b78c6d8; /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* INTERNAL FUNCTIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Grants the roles directly without authorization guard. /// Each bit of `roles` represents the role to turn on. function _grantRoles(address user, uint256 roles) internal virtual { /// @solidity memory-safe-assembly assembly { // Compute the role slot. mstore(0x0c, _ROLE_SLOT_SEED) mstore(0x00, user) let roleSlot := keccak256(0x0c, 0x20) // Load the current value and `or` it with `roles`. roles := or(sload(roleSlot), roles) // Store the new value. sstore(roleSlot, roles) // Emit the {RolesUpdated} event. log3(0, 0, _ROLES_UPDATED_EVENT_SIGNATURE, shr(96, mload(0x0c)), roles) } } /// @dev Removes the roles directly without authorization guard. /// Each bit of `roles` represents the role to turn off. function _removeRoles(address user, uint256 roles) internal virtual { /// @solidity memory-safe-assembly assembly { // Compute the role slot. mstore(0x0c, _ROLE_SLOT_SEED) mstore(0x00, user) let roleSlot := keccak256(0x0c, 0x20) // Load the current value. let currentRoles := sload(roleSlot) // Use `and` to compute the intersection of `currentRoles` and `roles`, // `xor` it with `currentRoles` to flip the bits in the intersection. roles := xor(currentRoles, and(currentRoles, roles)) // Then, store the new value. sstore(roleSlot, roles) // Emit the {RolesUpdated} event. log3(0, 0, _ROLES_UPDATED_EVENT_SIGNATURE, shr(96, mload(0x0c)), roles) } } /// @dev Throws if the sender does not have any of the `roles`. function _checkRoles(uint256 roles) internal view virtual { /// @solidity memory-safe-assembly assembly { // Compute the role slot. mstore(0x0c, _ROLE_SLOT_SEED) mstore(0x00, caller()) // Load the stored value, and if the `and` intersection // of the value and `roles` is zero, revert. if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) { mstore(0x00, 0x82b42900) // `Unauthorized()`. revert(0x1c, 0x04) } } } /// @dev Throws if the sender is not the owner, /// and does not have any of the `roles`. /// Checks for ownership first, then lazily checks for roles. function _checkOwnerOrRoles(uint256 roles) internal view virtual { /// @solidity memory-safe-assembly assembly { // If the caller is not the stored owner. // Note: `_ROLE_SLOT_SEED` is equal to `_OWNER_SLOT_NOT`. if iszero(eq(caller(), sload(not(_ROLE_SLOT_SEED)))) { // Compute the role slot. mstore(0x0c, _ROLE_SLOT_SEED) mstore(0x00, caller()) // Load the stored value, and if the `and` intersection // of the value and `roles` is zero, revert. if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) { mstore(0x00, 0x82b42900) // `Unauthorized()`. revert(0x1c, 0x04) } } } } /// @dev Throws if the sender does not have any of the `roles`, /// and is not the owner. /// Checks for roles first, then lazily checks for ownership. function _checkRolesOrOwner(uint256 roles) internal view virtual { /// @solidity memory-safe-assembly assembly { // Compute the role slot. mstore(0x0c, _ROLE_SLOT_SEED) mstore(0x00, caller()) // Load the stored value, and if the `and` intersection // of the value and `roles` is zero, revert. if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) { // If the caller is not the stored owner. // Note: `_ROLE_SLOT_SEED` is equal to `_OWNER_SLOT_NOT`. if iszero(eq(caller(), sload(not(_ROLE_SLOT_SEED)))) { mstore(0x00, 0x82b42900) // `Unauthorized()`. revert(0x1c, 0x04) } } } } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* PUBLIC UPDATE FUNCTIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Allows the owner to grant `user` `roles`. /// If the `user` already has a role, then it will be an no-op for the role. function grantRoles(address user, uint256 roles) public payable virtual onlyOwner { _grantRoles(user, roles); } /// @dev Allows the owner to remove `user` `roles`. /// If the `user` does not have a role, then it will be an no-op for the role. function revokeRoles(address user, uint256 roles) public payable virtual onlyOwner { _removeRoles(user, roles); } /// @dev Allow the caller to remove their own roles. /// If the caller does not have a role, then it will be an no-op for the role. function renounceRoles(uint256 roles) public payable virtual { _removeRoles(msg.sender, roles); } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* PUBLIC READ FUNCTIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Returns whether `user` has any of `roles`. function hasAnyRole(address user, uint256 roles) public view virtual returns (bool result) { /// @solidity memory-safe-assembly assembly { // Compute the role slot. mstore(0x0c, _ROLE_SLOT_SEED) mstore(0x00, user) // Load the stored value, and set the result to whether the // `and` intersection of the value and `roles` is not zero. result := iszero(iszero(and(sload(keccak256(0x0c, 0x20)), roles))) } } /// @dev Returns whether `user` has all of `roles`. function hasAllRoles(address user, uint256 roles) public view virtual returns (bool result) { /// @solidity memory-safe-assembly assembly { // Compute the role slot. mstore(0x0c, _ROLE_SLOT_SEED) mstore(0x00, user) // Whether the stored value is contains all the set bits in `roles`. result := eq(and(sload(keccak256(0x0c, 0x20)), roles), roles) } } /// @dev Returns the roles of `user`. function rolesOf(address user) public view virtual returns (uint256 roles) { /// @solidity memory-safe-assembly assembly { // Compute the role slot. mstore(0x0c, _ROLE_SLOT_SEED) mstore(0x00, user) // Load the stored value. roles := sload(keccak256(0x0c, 0x20)) } } /// @dev Convenience function to return a `roles` bitmap from an array of `ordinals`. /// This is meant for frontends like Etherscan, and is therefore not fully optimized. /// Not recommended to be called on-chain. function rolesFromOrdinals(uint8[] memory ordinals) public pure returns (uint256 roles) { /// @solidity memory-safe-assembly assembly { for { let i := shl(5, mload(ordinals)) } i { i := sub(i, 0x20) } { // We don't need to mask the values of `ordinals`, as Solidity // cleans dirty upper bits when storing variables into memory. roles := or(shl(mload(add(ordinals, i)), 1), roles) } } } /// @dev Convenience function to return an array of `ordinals` from the `roles` bitmap. /// This is meant for frontends like Etherscan, and is therefore not fully optimized. /// Not recommended to be called on-chain. function ordinalsFromRoles(uint256 roles) public pure returns (uint8[] memory ordinals) { /// @solidity memory-safe-assembly assembly { // Grab the pointer to the free memory. ordinals := mload(0x40) let ptr := add(ordinals, 0x20) let o := 0 // The absence of lookup tables, De Bruijn, etc., here is intentional for // smaller bytecode, as this function is not meant to be called on-chain. for { let t := roles } 1 {} { mstore(ptr, o) // `shr` 5 is equivalent to multiplying by 0x20. // Push back into the ordinals array if the bit is set. ptr := add(ptr, shl(5, and(t, 1))) o := add(o, 1) t := shr(o, roles) if iszero(t) { break } } // Store the length of `ordinals`. mstore(ordinals, shr(5, sub(ptr, add(ordinals, 0x20)))) // Allocate the memory. mstore(0x40, ptr) } } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* MODIFIERS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Marks a function as only callable by an account with `roles`. modifier onlyRoles(uint256 roles) virtual { _checkRoles(roles); _; } /// @dev Marks a function as only callable by the owner or by an account /// with `roles`. Checks for ownership first, then lazily checks for roles. modifier onlyOwnerOrRoles(uint256 roles) virtual { _checkOwnerOrRoles(roles); _; } /// @dev Marks a function as only callable by an account with `roles` /// or the owner. Checks for roles first, then lazily checks for ownership. modifier onlyRolesOrOwner(uint256 roles) virtual { _checkRolesOrOwner(roles); _; } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* ROLE CONSTANTS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ // IYKYK uint256 internal constant _ROLE_0 = 1 << 0; uint256 internal constant _ROLE_1 = 1 << 1; uint256 internal constant _ROLE_2 = 1 << 2; uint256 internal constant _ROLE_3 = 1 << 3; uint256 internal constant _ROLE_4 = 1 << 4; uint256 internal constant _ROLE_5 = 1 << 5; uint256 internal constant _ROLE_6 = 1 << 6; uint256 internal constant _ROLE_7 = 1 << 7; uint256 internal constant _ROLE_8 = 1 << 8; uint256 internal constant _ROLE_9 = 1 << 9; uint256 internal constant _ROLE_10 = 1 << 10; uint256 internal constant _ROLE_11 = 1 << 11; uint256 internal constant _ROLE_12 = 1 << 12; uint256 internal constant _ROLE_13 = 1 << 13; uint256 internal constant _ROLE_14 = 1 << 14; uint256 internal constant _ROLE_15 = 1 << 15; uint256 internal constant _ROLE_16 = 1 << 16; uint256 internal constant _ROLE_17 = 1 << 17; uint256 internal constant _ROLE_18 = 1 << 18; uint256 internal constant _ROLE_19 = 1 << 19; uint256 internal constant _ROLE_20 = 1 << 20; uint256 internal constant _ROLE_21 = 1 << 21; uint256 internal constant _ROLE_22 = 1 << 22; uint256 internal constant _ROLE_23 = 1 << 23; uint256 internal constant _ROLE_24 = 1 << 24; uint256 internal constant _ROLE_25 = 1 << 25; uint256 internal constant _ROLE_26 = 1 << 26; uint256 internal constant _ROLE_27 = 1 << 27; uint256 internal constant _ROLE_28 = 1 << 28; uint256 internal constant _ROLE_29 = 1 << 29; uint256 internal constant _ROLE_30 = 1 << 30; uint256 internal constant _ROLE_31 = 1 << 31; uint256 internal constant _ROLE_32 = 1 << 32; uint256 internal constant _ROLE_33 = 1 << 33; uint256 internal constant _ROLE_34 = 1 << 34; uint256 internal constant _ROLE_35 = 1 << 35; uint256 internal constant _ROLE_36 = 1 << 36; uint256 internal constant _ROLE_37 = 1 << 37; uint256 internal constant _ROLE_38 = 1 << 38; uint256 internal constant _ROLE_39 = 1 << 39; uint256 internal constant _ROLE_40 = 1 << 40; uint256 internal constant _ROLE_41 = 1 << 41; uint256 internal constant _ROLE_42 = 1 << 42; uint256 internal constant _ROLE_43 = 1 << 43; uint256 internal constant _ROLE_44 = 1 << 44; uint256 internal constant _ROLE_45 = 1 << 45; uint256 internal constant _ROLE_46 = 1 << 46; uint256 internal constant _ROLE_47 = 1 << 47; uint256 internal constant _ROLE_48 = 1 << 48; uint256 internal constant _ROLE_49 = 1 << 49; uint256 internal constant _ROLE_50 = 1 << 50; uint256 internal constant _ROLE_51 = 1 << 51; uint256 internal constant _ROLE_52 = 1 << 52; uint256 internal constant _ROLE_53 = 1 << 53; uint256 internal constant _ROLE_54 = 1 << 54; uint256 internal constant _ROLE_55 = 1 << 55; uint256 internal constant _ROLE_56 = 1 << 56; uint256 internal constant _ROLE_57 = 1 << 57; uint256 internal constant _ROLE_58 = 1 << 58; uint256 internal constant _ROLE_59 = 1 << 59; uint256 internal constant _ROLE_60 = 1 << 60; uint256 internal constant _ROLE_61 = 1 << 61; uint256 internal constant _ROLE_62 = 1 << 62; uint256 internal constant _ROLE_63 = 1 << 63; uint256 internal constant _ROLE_64 = 1 << 64; uint256 internal constant _ROLE_65 = 1 << 65; uint256 internal constant _ROLE_66 = 1 << 66; uint256 internal constant _ROLE_67 = 1 << 67; uint256 internal constant _ROLE_68 = 1 << 68; uint256 internal constant _ROLE_69 = 1 << 69; uint256 internal constant _ROLE_70 = 1 << 70; uint256 internal constant _ROLE_71 = 1 << 71; uint256 internal constant _ROLE_72 = 1 << 72; uint256 internal constant _ROLE_73 = 1 << 73; uint256 internal constant _ROLE_74 = 1 << 74; uint256 internal constant _ROLE_75 = 1 << 75; uint256 internal constant _ROLE_76 = 1 << 76; uint256 internal constant _ROLE_77 = 1 << 77; uint256 internal constant _ROLE_78 = 1 << 78; uint256 internal constant _ROLE_79 = 1 << 79; uint256 internal constant _ROLE_80 = 1 << 80; uint256 internal constant _ROLE_81 = 1 << 81; uint256 internal constant _ROLE_82 = 1 << 82; uint256 internal constant _ROLE_83 = 1 << 83; uint256 internal constant _ROLE_84 = 1 << 84; uint256 internal constant _ROLE_85 = 1 << 85; uint256 internal constant _ROLE_86 = 1 << 86; uint256 internal constant _ROLE_87 = 1 << 87; uint256 internal constant _ROLE_88 = 1 << 88; uint256 internal constant _ROLE_89 = 1 << 89; uint256 internal constant _ROLE_90 = 1 << 90; uint256 internal constant _ROLE_91 = 1 << 91; uint256 internal constant _ROLE_92 = 1 << 92; uint256 internal constant _ROLE_93 = 1 << 93; uint256 internal constant _ROLE_94 = 1 << 94; uint256 internal constant _ROLE_95 = 1 << 95; uint256 internal constant _ROLE_96 = 1 << 96; uint256 internal constant _ROLE_97 = 1 << 97; uint256 internal constant _ROLE_98 = 1 << 98; uint256 internal constant _ROLE_99 = 1 << 99; uint256 internal constant _ROLE_100 = 1 << 100; uint256 internal constant _ROLE_101 = 1 << 101; uint256 internal constant _ROLE_102 = 1 << 102; uint256 internal constant _ROLE_103 = 1 << 103; uint256 internal constant _ROLE_104 = 1 << 104; uint256 internal constant _ROLE_105 = 1 << 105; uint256 internal constant _ROLE_106 = 1 << 106; uint256 internal constant _ROLE_107 = 1 << 107; uint256 internal constant _ROLE_108 = 1 << 108; uint256 internal constant _ROLE_109 = 1 << 109; uint256 internal constant _ROLE_110 = 1 << 110; uint256 internal constant _ROLE_111 = 1 << 111; uint256 internal constant _ROLE_112 = 1 << 112; uint256 internal constant _ROLE_113 = 1 << 113; uint256 internal constant _ROLE_114 = 1 << 114; uint256 internal constant _ROLE_115 = 1 << 115; uint256 internal constant _ROLE_116 = 1 << 116; uint256 internal constant _ROLE_117 = 1 << 117; uint256 internal constant _ROLE_118 = 1 << 118; uint256 internal constant _ROLE_119 = 1 << 119; uint256 internal constant _ROLE_120 = 1 << 120; uint256 internal constant _ROLE_121 = 1 << 121; uint256 internal constant _ROLE_122 = 1 << 122; uint256 internal constant _ROLE_123 = 1 << 123; uint256 internal constant _ROLE_124 = 1 << 124; uint256 internal constant _ROLE_125 = 1 << 125; uint256 internal constant _ROLE_126 = 1 << 126; uint256 internal constant _ROLE_127 = 1 << 127; uint256 internal constant _ROLE_128 = 1 << 128; uint256 internal constant _ROLE_129 = 1 << 129; uint256 internal constant _ROLE_130 = 1 << 130; uint256 internal constant _ROLE_131 = 1 << 131; uint256 internal constant _ROLE_132 = 1 << 132; uint256 internal constant _ROLE_133 = 1 << 133; uint256 internal constant _ROLE_134 = 1 << 134; uint256 internal constant _ROLE_135 = 1 << 135; uint256 internal constant _ROLE_136 = 1 << 136; uint256 internal constant _ROLE_137 = 1 << 137; uint256 internal constant _ROLE_138 = 1 << 138; uint256 internal constant _ROLE_139 = 1 << 139; uint256 internal constant _ROLE_140 = 1 << 140; uint256 internal constant _ROLE_141 = 1 << 141; uint256 internal constant _ROLE_142 = 1 << 142; uint256 internal constant _ROLE_143 = 1 << 143; uint256 internal constant _ROLE_144 = 1 << 144; uint256 internal constant _ROLE_145 = 1 << 145; uint256 internal constant _ROLE_146 = 1 << 146; uint256 internal constant _ROLE_147 = 1 << 147; uint256 internal constant _ROLE_148 = 1 << 148; uint256 internal constant _ROLE_149 = 1 << 149; uint256 internal constant _ROLE_150 = 1 << 150; uint256 internal constant _ROLE_151 = 1 << 151; uint256 internal constant _ROLE_152 = 1 << 152; uint256 internal constant _ROLE_153 = 1 << 153; uint256 internal constant _ROLE_154 = 1 << 154; uint256 internal constant _ROLE_155 = 1 << 155; uint256 internal constant _ROLE_156 = 1 << 156; uint256 internal constant _ROLE_157 = 1 << 157; uint256 internal constant _ROLE_158 = 1 << 158; uint256 internal constant _ROLE_159 = 1 << 159; uint256 internal constant _ROLE_160 = 1 << 160; uint256 internal constant _ROLE_161 = 1 << 161; uint256 internal constant _ROLE_162 = 1 << 162; uint256 internal constant _ROLE_163 = 1 << 163; uint256 internal constant _ROLE_164 = 1 << 164; uint256 internal constant _ROLE_165 = 1 << 165; uint256 internal constant _ROLE_166 = 1 << 166; uint256 internal constant _ROLE_167 = 1 << 167; uint256 internal constant _ROLE_168 = 1 << 168; uint256 internal constant _ROLE_169 = 1 << 169; uint256 internal constant _ROLE_170 = 1 << 170; uint256 internal constant _ROLE_171 = 1 << 171; uint256 internal constant _ROLE_172 = 1 << 172; uint256 internal constant _ROLE_173 = 1 << 173; uint256 internal constant _ROLE_174 = 1 << 174; uint256 internal constant _ROLE_175 = 1 << 175; uint256 internal constant _ROLE_176 = 1 << 176; uint256 internal constant _ROLE_177 = 1 << 177; uint256 internal constant _ROLE_178 = 1 << 178; uint256 internal constant _ROLE_179 = 1 << 179; uint256 internal constant _ROLE_180 = 1 << 180; uint256 internal constant _ROLE_181 = 1 << 181; uint256 internal constant _ROLE_182 = 1 << 182; uint256 internal constant _ROLE_183 = 1 << 183; uint256 internal constant _ROLE_184 = 1 << 184; uint256 internal constant _ROLE_185 = 1 << 185; uint256 internal constant _ROLE_186 = 1 << 186; uint256 internal constant _ROLE_187 = 1 << 187; uint256 internal constant _ROLE_188 = 1 << 188; uint256 internal constant _ROLE_189 = 1 << 189; uint256 internal constant _ROLE_190 = 1 << 190; uint256 internal constant _ROLE_191 = 1 << 191; uint256 internal constant _ROLE_192 = 1 << 192; uint256 internal constant _ROLE_193 = 1 << 193; uint256 internal constant _ROLE_194 = 1 << 194; uint256 internal constant _ROLE_195 = 1 << 195; uint256 internal constant _ROLE_196 = 1 << 196; uint256 internal constant _ROLE_197 = 1 << 197; uint256 internal constant _ROLE_198 = 1 << 198; uint256 internal constant _ROLE_199 = 1 << 199; uint256 internal constant _ROLE_200 = 1 << 200; uint256 internal constant _ROLE_201 = 1 << 201; uint256 internal constant _ROLE_202 = 1 << 202; uint256 internal constant _ROLE_203 = 1 << 203; uint256 internal constant _ROLE_204 = 1 << 204; uint256 internal constant _ROLE_205 = 1 << 205; uint256 internal constant _ROLE_206 = 1 << 206; uint256 internal constant _ROLE_207 = 1 << 207; uint256 internal constant _ROLE_208 = 1 << 208; uint256 internal constant _ROLE_209 = 1 << 209; uint256 internal constant _ROLE_210 = 1 << 210; uint256 internal constant _ROLE_211 = 1 << 211; uint256 internal constant _ROLE_212 = 1 << 212; uint256 internal constant _ROLE_213 = 1 << 213; uint256 internal constant _ROLE_214 = 1 << 214; uint256 internal constant _ROLE_215 = 1 << 215; uint256 internal constant _ROLE_216 = 1 << 216; uint256 internal constant _ROLE_217 = 1 << 217; uint256 internal constant _ROLE_218 = 1 << 218; uint256 internal constant _ROLE_219 = 1 << 219; uint256 internal constant _ROLE_220 = 1 << 220; uint256 internal constant _ROLE_221 = 1 << 221; uint256 internal constant _ROLE_222 = 1 << 222; uint256 internal constant _ROLE_223 = 1 << 223; uint256 internal constant _ROLE_224 = 1 << 224; uint256 internal constant _ROLE_225 = 1 << 225; uint256 internal constant _ROLE_226 = 1 << 226; uint256 internal constant _ROLE_227 = 1 << 227; uint256 internal constant _ROLE_228 = 1 << 228; uint256 internal constant _ROLE_229 = 1 << 229; uint256 internal constant _ROLE_230 = 1 << 230; uint256 internal constant _ROLE_231 = 1 << 231; uint256 internal constant _ROLE_232 = 1 << 232; uint256 internal constant _ROLE_233 = 1 << 233; uint256 internal constant _ROLE_234 = 1 << 234; uint256 internal constant _ROLE_235 = 1 << 235; uint256 internal constant _ROLE_236 = 1 << 236; uint256 internal constant _ROLE_237 = 1 << 237; uint256 internal constant _ROLE_238 = 1 << 238; uint256 internal constant _ROLE_239 = 1 << 239; uint256 internal constant _ROLE_240 = 1 << 240; uint256 internal constant _ROLE_241 = 1 << 241; uint256 internal constant _ROLE_242 = 1 << 242; uint256 internal constant _ROLE_243 = 1 << 243; uint256 internal constant _ROLE_244 = 1 << 244; uint256 internal constant _ROLE_245 = 1 << 245; uint256 internal constant _ROLE_246 = 1 << 246; uint256 internal constant _ROLE_247 = 1 << 247; uint256 internal constant _ROLE_248 = 1 << 248; uint256 internal constant _ROLE_249 = 1 << 249; uint256 internal constant _ROLE_250 = 1 << 250; uint256 internal constant _ROLE_251 = 1 << 251; uint256 internal constant _ROLE_252 = 1 << 252; uint256 internal constant _ROLE_253 = 1 << 253; uint256 internal constant _ROLE_254 = 1 << 254; uint256 internal constant _ROLE_255 = 1 << 255; } contract TokenData { /// @dev OwnableRoles.sol role for being an approved contract. uint256 public constant APPROVED_CONTRACT_ROLE = 1 << 1; /// @dev OwnableRoles.sol role for being able to call auth functions. uint256 public constant AUTH_ADDRESS_ROLE = 1 << 2; /// @dev OwnableRoles.sol role for being able sign bundle/redemption/transfer authSigs. uint256 public constant AUTHORIZED_MESSAGE_SIGNER_ROLE = 1 << 3; /// @dev Struct for storing bundle token information. struct BundleData { address auxTokenAddress; uint48 auxTokenId; uint48 americanaTokenId; } /// @dev Emitted when a bundle token is created. event BundleCreated( address indexed auxTokenAddress, uint48 auxTokenId, uint48 indexed americanaTokenId, uint256 indexed bundleTokenId, address bundler ); /// @dev Emitted when a bundle token is unwrapped and burned. event BundleUnwrapped( address auxTokenAddress, uint48 auxTokenId, uint48 indexed americanaTokenId, address indexed redeemer, uint256 indexed bundleTokenId ); /// @dev Emitted when a bundle auth signature is revoked. event SigCancelled( address indexed bundler, address indexed auxTokenAddress, uint48 indexed auxTokenId, uint48 americanaTokenId ); /// @dev Emitted when an auth withdrawal call fails. event FailedAuthWithdrawal(); /// @dev Emitted when token is redeemed. event TokenRedeemed(address indexed redeemer, uint256 indexed tokenId); /// @dev Emitted when contract pause status is updated. event PauseStateUpdated(bool indexed newStatus); /// @dev Emitted when contract redeemable status is updated. event RedeemStateUpdated(bool indexed newStatus); /// @dev Emitted when base URI is updated. event BaseUriUpdate(string indexed newUri); /// @dev Emitted when a bundle wrapper is burnt after auth unwrapping. event WrapperBurnt(uint256 indexed _tokenId); /// @dev Reverts when trying to set approval for an address that is /// not authorized. error UnauthorizedContract(); /// @dev Reverts when trying to call certain function when contract /// is paused. error ContractPaused(); /// @dev Reverts when trying to call certain function when redemption /// is paused. error RedemptionPaused(); /// @dev Reverts when trying to redeem a token with an expired `_sigExpirationTimestamp`. error RedeemSignatureExpired(); /// @dev Reverts when trying to call mint function with an expired `_sigExpirationTimestamp`. error MintSignatureExpired(); /// @dev Reverts when trying to unwrap a bundle token from non owner. error UnwrapByNonOwner(); /// @dev Reverts when trying to redeem a token from non owner. error RedeemByNonOwner(); /// @dev Reverts when auth sigs do not recover to an auth address. error InvalidSignerAddress(); /// @dev Reverts when trying to redeem a bundled tokenId. error CannotRedeemBundleToken(); /// @dev Reverts when trying to bundle with an invalid aux token. error InvalidAuxToken(); /// @dev Reverts when trying to bundle with an auth sig that has been /// used or cancelled. error SignatureUsedOrCancelled(); /// @dev Reverts when trying to bundle with an auth sig that has expired. error BundleSignatureExpired(); /// @dev Reverts when trying to transfer with an auth sig that has expired. error TransferSignatureExpired(); /// @dev Reverts when burnWrapperToken is called with an invalid tokenId. error CannotBurnToken(); /// @dev Reverts when trying to unwrap a bundle that has already done so. error BundleAlreadyUnwrapped(); /// @dev Reverts when trying to bundle an already bundled token. error CannotBundleAnAlreadyBundledToken(); /// @dev Reverts when calling transferFrom (without auth sig) from an /// unauthorized address. error UnauthorizedCaller(); } // @@@@@ // @@@@@ @@@@@ @@@@@ // @@@@@@ @@@@@ @@@@@@ // @@@@@@ @@@@@ @@@@@@ // @@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@ @@@@@ // @@@@@@ @@@@@ @@@@@@ @@@@@ // @@@@@@ @@@@@ @@@@@@ @@@@@ // @@@@@ @@@@@ @@@@@ @@@@@ // @@@@@ @@@@@ // @@@@@ // @@@@@ // @@@@@ @@@@@ // @@@@@ @@@@@ // @@@@@ @@@@@ // @@@@@ @@@@@ // @@@@@ @@@@@ // @@@@@ @@@@@ // @@@@@ @@@@@ // @@@@@ @@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // /// @notice ERC721A token contract to facilitate token bundling and redemption for Americana. /// @author Americana Technologies (https://Americana.io) contract AmericanaToken is ERC721A, OwnableRoles, TokenData { constructor( string memory name, string memory symbol ) ERC721A(name, symbol) { isPaused = false; redemptionPaused = false; _baseTokenURI = "https://americana.io/"; _initializeOwner(msg.sender); } using ECDSA for bytes32; // ************************************************************* // MODIFIERS // ************************************************************* /** * @dev Marks a function as only callable when the contract is not paused. */ modifier active() { if (isPaused) revert ContractPaused(); _; } /** * @dev Restricts token approvals to only authorized contracts. */ modifier authorizedContract(address contractAddress) { if (hasAnyRole(contractAddress, APPROVED_CONTRACT_ROLE)) { _; } else { revert UnauthorizedContract(); } } /** * @dev Marks a function as only callable when redemption is not paused. */ modifier redeemable() { if (redemptionPaused) revert RedemptionPaused(); _; } // ************************************************************* // STORAGE // ************************************************************* bool public isPaused; bool public redemptionPaused; string private _baseTokenURI; /** * @dev Mapping used to invalidate bundle digests. */ mapping(bytes32 => bool) public isInvalidated; /** * @dev Mapping used to track active bundle token data. */ mapping(uint256 => BundleData) public bundleDataByTokenId; // ************************************************************* // EXTERNAL FUNCTIONS // ************************************************************* /** * @dev Mints `_amount` Americana token(s) to the `_to` address. * * Requirements: * * - authSig must recover to an authorized address * - `_sigExpirationTimestamp` must be in the future * */ function mint( address _to, uint256 _amount, uint256 _sigExpirationTimestamp, bytes memory _authSig ) external { bytes32 digest = keccak256( abi.encode( msg.sender, _to, _amount, block.chainid, _sigExpirationTimestamp ) ); if (block.timestamp > _sigExpirationTimestamp) { revert MintSignatureExpired(); } if ( !hasAnyRole( digest.toEthSignedMessageHash().recover(_authSig), AUTHORIZED_MESSAGE_SIGNER_ROLE ) ) { revert InvalidSignerAddress(); } _mint(_to, _amount); } /** * @dev Burns `_tokenId` and emits a `TokenRedeemed` event. * * Requirements: * * - `redeemable` modifier must pass * - `_authSig` must recover to an authorized address * - `msg.sender` must be owner of `_tokenId` * - `_tokenId` must not be a bundle */ function redeem( uint256 _tokenId, uint256 _sigExpirationTimestamp, bytes memory _authSig ) external active redeemable { bytes32 digest = keccak256( abi.encode( _tokenId, block.chainid, _sigExpirationTimestamp, msg.sender ) ); address recoveredAuthAddress = ECDSA.tryRecover( digest.toEthSignedMessageHash(), _authSig ); if (block.timestamp > _sigExpirationTimestamp) { revert RedeemSignatureExpired(); } if (!hasAnyRole(recoveredAuthAddress, AUTHORIZED_MESSAGE_SIGNER_ROLE)) { revert InvalidSignerAddress(); } if (ownerOf(_tokenId) != msg.sender) { revert RedeemByNonOwner(); } if (bundleDataByTokenId[_tokenId].auxTokenAddress != address(0)) { revert CannotRedeemBundleToken(); } _burn(_tokenId, false); emit TokenRedeemed(msg.sender, _tokenId); } /** * @dev Bundles token `_auxTokenId` from the `_auxTokenAddress` * contract with the `_americanaTokenId` specified. * * Requirements: * * - The `_sig` recovers to an authorized address when compared * against the hash of the other encoded params. * - Msg.sender has approved Americana contract to transfer their aux token * - block.timestamp must be less than _sigExpirationDate * - The`_auxTokenAddress` cannot be address(0) or address(this) * - Sig digest must not be used or cancelled via isInvalidated mapping */ function bundle( uint256 _sigExpirationDate, address _auxTokenAddress, uint48 _auxTokenId, uint48 _americanaTokenId, uint256 _salt, bytes calldata _authSig ) external active { if ( _auxTokenAddress == address(this) || _auxTokenAddress == address(0) ) { revert InvalidAuxToken(); } // Generate sig digest for verification. bytes32 digest = keccak256( abi.encode( msg.sender, _sigExpirationDate, _auxTokenAddress, _auxTokenId, _americanaTokenId, block.chainid, _salt ) ); if ( bundleDataByTokenId[_americanaTokenId].auxTokenAddress != address(0) ) { revert CannotBundleAnAlreadyBundledToken(); } if ( !hasAnyRole( digest.toEthSignedMessageHash().recover(_authSig), AUTHORIZED_MESSAGE_SIGNER_ROLE ) ) { revert InvalidSignerAddress(); } if (isInvalidated[digest]) { revert SignatureUsedOrCancelled(); } if (_sigExpirationDate < block.timestamp) { revert BundleSignatureExpired(); } isInvalidated[digest] = true; // Transfer Americana token to this contract. ERC721A.transferFrom(msg.sender, address(this), _americanaTokenId); // Transfer aux token to this contract. IERC721A(_auxTokenAddress).transferFrom( msg.sender, address(this), _auxTokenId ); uint256 bundleTokenId = _nextTokenId(); // Store bundle data struct in `bundleDataByTokenId` mapping. bundleDataByTokenId[bundleTokenId] = BundleData( _auxTokenAddress, _auxTokenId, _americanaTokenId ); _mint(msg.sender, 1); emit BundleCreated( _auxTokenAddress, _auxTokenId, _americanaTokenId, bundleTokenId, msg.sender ); } /** * @dev Unwraps the bundle specified by the `_tokenId`. Transfers * underlying tokens to msg.sender. * * Requirements: * * - Msg.sender is ownerOf(_tokenId) */ function unwrap(uint256 _bundleTokenId) external active { if (ownerOf(_bundleTokenId) != msg.sender) { revert UnwrapByNonOwner(); } // Burn bundle token _burn(_bundleTokenId, false); BundleData memory _bundle = bundleDataByTokenId[_bundleTokenId]; // Transfer Americana token to msg.sender // Note, a check that `_bundleTokenId` is a bundle is not necessary because if it is not, this transfer call with tokenId 0 will revert with `OwnerQueryForNonexistentToken()` as there is no token with id 0. this.transferFrom(address(this), msg.sender, _bundle.americanaTokenId); // Transfer aux token to msg.sender. IERC721A(_bundle.auxTokenAddress).transferFrom( address(this), msg.sender, _bundle.auxTokenId ); delete bundleDataByTokenId[_bundleTokenId]; emit BundleUnwrapped( _bundle.auxTokenAddress, _bundle.auxTokenId, _bundle.americanaTokenId, msg.sender, _bundleTokenId ); } /** * @dev Returns the next token id that will be minted. */ function nextToken() external view returns (uint256) { return _nextTokenId(); } /** * @dev Returns the contracts baseURI. */ function baseURI() external view returns (string memory) { return _baseURI(); } // ************************************************************* // Auth Functions // ************************************************************* /** * @dev Updates paused state of contract to opposite. * * Requirements: * * - `msg.sender` must be owner */ function flipPause() external onlyOwner { isPaused = !isPaused; emit PauseStateUpdated(isPaused); } /** * @dev Updates redeemable state of contract to opposite. * * Requirements: * * - `msg.sender` must be owner */ function flipRedeemable() external onlyOwner { redemptionPaused = !redemptionPaused; emit RedeemStateUpdated(redemptionPaused); } /** * @dev Updates `_baseTokenURI` to new `baseURI`. * * Requirements: * * - `msg.sender` must be authorized or owner */ function setBaseURI(string memory baseURI) external onlyOwner { _baseTokenURI = baseURI; emit BaseUriUpdate(baseURI); } /** * @dev Force transfer out a bundles aux token in the case of emergency. * * Requirements: * * - `msg.sender` must be authorized or owner * - `_tokenId` must be a bundle * */ function authUnwrapExternalToken(uint256 _tokenId) external onlyOwner { BundleData memory _bundle = bundleDataByTokenId[_tokenId]; if (_bundle.auxTokenAddress == address(0)) { revert BundleAlreadyUnwrapped(); } try IERC721A(_bundle.auxTokenAddress).transferFrom( address(this), msg.sender, _bundle.auxTokenId ) {} catch { emit FailedAuthWithdrawal(); } } /** * @dev Force transfer out a bundles americana token in the case of emergency. * * Requirements: * * - `msg.sender` must be authorized or owner * - `_bundleTokenId` must be a bundle * */ function authUnwrapAmericanaToken( uint256 _bundleTokenId ) external onlyOwner { BundleData memory _bundle = bundleDataByTokenId[_bundleTokenId]; if (_bundle.auxTokenAddress == address(0)) { revert BundleAlreadyUnwrapped(); } this.transferFrom(address(this), msg.sender, _bundle.americanaTokenId); } /** * @dev Burns a bundle token after it is force unwrapped. * * Requirements: * * - `_bundleTokenId` must be a bundle * - both originally bundled tokens must not be held by this contract * - `msg.sender` must be authorized or owner * */ function burnWrapperToken( uint256 _bundleTokenId ) external onlyRolesOrOwner(AUTH_ADDRESS_ROLE) { BundleData memory _bundle = bundleDataByTokenId[_bundleTokenId]; if ( ERC721A(_bundle.auxTokenAddress).ownerOf(_bundle.auxTokenId) != address(this) && ownerOf(_bundle.americanaTokenId) != address(this) ) { _burn(_bundleTokenId, false); delete bundleDataByTokenId[_bundleTokenId]; emit WrapperBurnt(_bundleTokenId); } else { revert CannotBurnToken(); } } /** * @dev Cancels the digest of a bundle signature. This cancellation is checked upon bundling. */ function cancelBundleDigest( address _bundler, uint256 _sigExpirationDate, address _auxTokenAddress, uint48 _auxTokenId, uint48 _americanaTokenId, uint256 _salt ) external onlyRolesOrOwner(AUTH_ADDRESS_ROLE) { bytes32 digest = keccak256( abi.encode( _bundler, _sigExpirationDate, _auxTokenAddress, _auxTokenId, _americanaTokenId, block.chainid, _salt ) ); isInvalidated[digest] = true; emit SigCancelled( _bundler, _auxTokenAddress, _auxTokenId, _americanaTokenId ); } /** * @dev Checks if a bundle digest has been invalidated. */ function checkIfInvalidated( address _bundler, uint256 _sigExpirationDate, address _auxTokenAddress, uint48 _auxTokenId, uint48 _americanaTokenId, uint256 _salt ) external view returns (bool) { bytes32 digest = keccak256( abi.encode( _bundler, _sigExpirationDate, _auxTokenAddress, _auxTokenId, _americanaTokenId, block.chainid, _salt ) ); return isInvalidated[digest]; } /** * @dev Additional transferFrom to allow for auth signature validation. * * @notice This is the transferFrom that should be called by all EOA's. * * Requirements: * * - `_authSig` must be from an authorized address * */ function transferFrom( address from, address to, uint256 tokenId, uint256 sigExpiration, bytes memory _authSig ) public { if (block.timestamp > sigExpiration) { revert TransferSignatureExpired(); } bytes32 digest = keccak256( abi.encodePacked(from, to, tokenId, sigExpiration, block.chainid) ); address recoveredAuthAddress = ECDSA.tryRecover( digest.toEthSignedMessageHash(), _authSig ); if (!hasAnyRole(recoveredAuthAddress, AUTHORIZED_MESSAGE_SIGNER_ROLE)) { revert InvalidSignerAddress(); } ERC721A.transferFrom(from, to, tokenId); } // ************************************************************* // OVERRIDES // ************************************************************* /** * @dev Override of ERC721A transferFrom to restrict access to authorized contracts. * * @notice This function is meant to allow transferFrom calls to occur where authSigs are * not available or necessary. EX external calls coming from this contract using the `this` * keyword in order to transfer tokens held by this contract. * * Requirements: * * - `msg.sender` must be have `APPROVED_CONTRACT_ROLE` role. * */ function transferFrom( address from, address to, uint256 tokenId ) public payable override { if (!hasAnyRole(msg.sender, APPROVED_CONTRACT_ROLE)) { revert UnauthorizedCaller(); } ERC721A.transferFrom(from, to, tokenId); } /** * @dev Returns the current base URI. */ function _baseURI() internal view override returns (string memory) { return _baseTokenURI; } /** * @dev Override of ERC721A approve to restrict access to authorized contracts. * * @notice This function is meant to control what addresses can be approved to transfer * tokens. This is to prevent unauthorized contracts from being approved to * transfer tokens, EX: a marketplace contract that does not abide by royalties. * * Requirements: * * - `operator` must be have `APPROVED_CONTRACT_ROLE` role. * */ function approve( address operator, uint256 tokenId ) public payable override authorizedContract(operator) { ERC721A.approve(operator, tokenId); } /** * @dev Override of ERC721A setApprovalForAll to restrict access to authorized contracts. * * @notice This function is meant to control what addresses can be approved to transfer * tokens. This is to prevent unauthorized contracts from being approved to * transfer tokens, EX: a marketplace contract that does not abide by royalties. * * Requirements: * * - `operator` must be have `APPROVED_CONTRACT_ROLE` role. * */ function setApprovalForAll( address operator, bool _approved ) public override authorizedContract(operator) { ERC721A.setApprovalForAll(operator, _approved); } function _startTokenId() internal view override returns (uint256) { return 1; } /** * @dev Returns ERC721A ownership data. */ function ownershipOf( uint256 tokenId ) public view returns (TokenOwnership memory) { return _ownershipOf(tokenId); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"BundleAlreadyUnwrapped","type":"error"},{"inputs":[],"name":"BundleSignatureExpired","type":"error"},{"inputs":[],"name":"CannotBundleAnAlreadyBundledToken","type":"error"},{"inputs":[],"name":"CannotBurnToken","type":"error"},{"inputs":[],"name":"CannotRedeemBundleToken","type":"error"},{"inputs":[],"name":"ContractPaused","type":"error"},{"inputs":[],"name":"InvalidAuxToken","type":"error"},{"inputs":[],"name":"InvalidSignerAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintSignatureExpired","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NewOwnerIsZeroAddress","type":"error"},{"inputs":[],"name":"NoHandoverRequest","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"RedeemByNonOwner","type":"error"},{"inputs":[],"name":"RedeemSignatureExpired","type":"error"},{"inputs":[],"name":"RedemptionPaused","type":"error"},{"inputs":[],"name":"SignatureUsedOrCancelled","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferSignatureExpired","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnauthorizedCaller","type":"error"},{"inputs":[],"name":"UnauthorizedContract","type":"error"},{"inputs":[],"name":"UnwrapByNonOwner","type":"error"},{"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":"string","name":"newUri","type":"string"}],"name":"BaseUriUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"auxTokenAddress","type":"address"},{"indexed":false,"internalType":"uint48","name":"auxTokenId","type":"uint48"},{"indexed":true,"internalType":"uint48","name":"americanaTokenId","type":"uint48"},{"indexed":true,"internalType":"uint256","name":"bundleTokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"bundler","type":"address"}],"name":"BundleCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"auxTokenAddress","type":"address"},{"indexed":false,"internalType":"uint48","name":"auxTokenId","type":"uint48"},{"indexed":true,"internalType":"uint48","name":"americanaTokenId","type":"uint48"},{"indexed":true,"internalType":"address","name":"redeemer","type":"address"},{"indexed":true,"internalType":"uint256","name":"bundleTokenId","type":"uint256"}],"name":"BundleUnwrapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[],"name":"FailedAuthWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"newStatus","type":"bool"}],"name":"PauseStateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"newStatus","type":"bool"}],"name":"RedeemStateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"roles","type":"uint256"}],"name":"RolesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bundler","type":"address"},{"indexed":true,"internalType":"address","name":"auxTokenAddress","type":"address"},{"indexed":true,"internalType":"uint48","name":"auxTokenId","type":"uint48"},{"indexed":false,"internalType":"uint48","name":"americanaTokenId","type":"uint48"}],"name":"SigCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"redeemer","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenRedeemed","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":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"WrapperBurnt","type":"event"},{"inputs":[],"name":"APPROVED_CONTRACT_ROLE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUTHORIZED_MESSAGE_SIGNER_ROLE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUTH_ADDRESS_ROLE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bundleTokenId","type":"uint256"}],"name":"authUnwrapAmericanaToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"authUnwrapExternalToken","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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sigExpirationDate","type":"uint256"},{"internalType":"address","name":"_auxTokenAddress","type":"address"},{"internalType":"uint48","name":"_auxTokenId","type":"uint48"},{"internalType":"uint48","name":"_americanaTokenId","type":"uint48"},{"internalType":"uint256","name":"_salt","type":"uint256"},{"internalType":"bytes","name":"_authSig","type":"bytes"}],"name":"bundle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bundleDataByTokenId","outputs":[{"internalType":"address","name":"auxTokenAddress","type":"address"},{"internalType":"uint48","name":"auxTokenId","type":"uint48"},{"internalType":"uint48","name":"americanaTokenId","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bundleTokenId","type":"uint256"}],"name":"burnWrapperToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bundler","type":"address"},{"internalType":"uint256","name":"_sigExpirationDate","type":"uint256"},{"internalType":"address","name":"_auxTokenAddress","type":"address"},{"internalType":"uint48","name":"_auxTokenId","type":"uint48"},{"internalType":"uint48","name":"_americanaTokenId","type":"uint48"},{"internalType":"uint256","name":"_salt","type":"uint256"}],"name":"cancelBundleDigest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cancelOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_bundler","type":"address"},{"internalType":"uint256","name":"_sigExpirationDate","type":"uint256"},{"internalType":"address","name":"_auxTokenAddress","type":"address"},{"internalType":"uint48","name":"_auxTokenId","type":"uint48"},{"internalType":"uint48","name":"_americanaTokenId","type":"uint48"},{"internalType":"uint256","name":"_salt","type":"uint256"}],"name":"checkIfInvalidated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"completeOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"flipPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipRedeemable","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":"user","type":"address"},{"internalType":"uint256","name":"roles","type":"uint256"}],"name":"grantRoles","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"roles","type":"uint256"}],"name":"hasAllRoles","outputs":[{"internalType":"bool","name":"result","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"roles","type":"uint256"}],"name":"hasAnyRole","outputs":[{"internalType":"bool","name":"result","type":"bool"}],"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":"bytes32","name":"","type":"bytes32"}],"name":"isInvalidated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_sigExpirationTimestamp","type":"uint256"},{"internalType":"bytes","name":"_authSig","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"roles","type":"uint256"}],"name":"ordinalsFromRoles","outputs":[{"internalType":"uint8[]","name":"ordinals","type":"uint8[]"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"result","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":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"ownershipHandoverExpiresAt","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownershipHandoverValidFor","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_sigExpirationTimestamp","type":"uint256"},{"internalType":"bytes","name":"_authSig","type":"bytes"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redemptionPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"roles","type":"uint256"}],"name":"renounceRoles","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"requestOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"roles","type":"uint256"}],"name":"revokeRoles","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8[]","name":"ordinals","type":"uint8[]"}],"name":"rolesFromOrdinals","outputs":[{"internalType":"uint256","name":"roles","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"rolesOf","outputs":[{"internalType":"uint256","name":"roles","type":"uint256"}],"stateMutability":"view","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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"sigExpiration","type":"uint256"},{"internalType":"bytes","name":"_authSig","type":"bytes"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bundleTokenId","type":"uint256"}],"name":"unwrap","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162005815380380620058158339818101604052810190620000379190620002e3565b818181600290816200004a9190620005b3565b5080600390816200005c9190620005b3565b506200006d6200010b60201b60201c565b60008190555050506000600860006101000a81548160ff0219169083151502179055506000600860016101000a81548160ff0219169083151502179055506040518060400160405280601581526020017f68747470733a2f2f616d65726963616e612e696f2f000000000000000000000081525060099081620000f19190620005b3565b5062000103336200011460201b60201c565b50506200069a565b60006001905090565b8060601b60601c905080638b78c6d819558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a350565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620001b9826200016e565b810181811067ffffffffffffffff82111715620001db57620001da6200017f565b5b80604052505050565b6000620001f062000150565b9050620001fe8282620001ae565b919050565b600067ffffffffffffffff8211156200022157620002206200017f565b5b6200022c826200016e565b9050602081019050919050565b60005b83811015620002595780820151818401526020810190506200023c565b60008484015250505050565b60006200027c620002768462000203565b620001e4565b9050828152602081018484840111156200029b576200029a62000169565b5b620002a884828562000239565b509392505050565b600082601f830112620002c857620002c762000164565b5b8151620002da84826020860162000265565b91505092915050565b60008060408385031215620002fd57620002fc6200015a565b5b600083015167ffffffffffffffff8111156200031e576200031d6200015f565b5b6200032c85828601620002b0565b925050602083015167ffffffffffffffff81111562000350576200034f6200015f565b5b6200035e85828601620002b0565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620003bb57607f821691505b602082108103620003d157620003d062000373565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200043b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620003fc565b620004478683620003fc565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620004946200048e62000488846200045f565b62000469565b6200045f565b9050919050565b6000819050919050565b620004b08362000473565b620004c8620004bf826200049b565b84845462000409565b825550505050565b600090565b620004df620004d0565b620004ec818484620004a5565b505050565b5b81811015620005145762000508600082620004d5565b600181019050620004f2565b5050565b601f82111562000563576200052d81620003d7565b6200053884620003ec565b8101602085101562000548578190505b620005606200055785620003ec565b830182620004f1565b50505b505050565b600082821c905092915050565b6000620005886000198460080262000568565b1980831691505092915050565b6000620005a3838362000575565b9150826002028217905092915050565b620005be8262000368565b67ffffffffffffffff811115620005da57620005d96200017f565b5b620005e68254620003a2565b620005f382828562000518565b600060209050601f8311600181146200062b576000841562000616578287015190505b62000622858262000595565b86555062000692565b601f1984166200063b86620003d7565b60005b8281101562000665578489015182556001820191506020850194506020810190506200063e565b8683101562000685578489015162000681601f89168262000575565b8355505b6001600288020188555050505b505050505050565b61516b80620006aa6000396000f3fe60806040526004361061031a5760003560e01c8063660392af116101ab57806395d89b41116100f7578063d7533f0211610095578063f04e283e1161006f578063f04e283e14610b62578063f2fde38b14610b7e578063fa12129114610b9a578063fee81cf414610bc35761031a565b8063d7533f0214610ad1578063de0e9a3e14610afc578063e985e9c514610b255761031a565b8063b187bd26116100d1578063b187bd2614610a24578063b88d4fde14610a4f578063c87b56dd14610a6b578063cc92241314610aa85761031a565b806395d89b4114610991578063a22cb465146109bc578063a8b0d82a146109e55761031a565b80637359e41f116101645780638b8d9b7e1161013e5780638b8d9b7e146108e95780638da5cb5b1461091257806391df66721461093d5780639499ac54146109665761031a565b80637359e41f1461085857806373a95ddd1461089557806389f3190c146108c05761031a565b8063660392af1461077b5780636801d2f7146107a65780636c0360eb146107bd57806370a08231146107e8578063715018a614610825578063731133e91461082f5761031a565b80632a31d6811161026a578063514e62fc1161022357806355906214116101fd57806355906214146106af57806355f804b3146106ec578063605105f0146107155780636352211e1461073e5761031a565b8063514e62fc1461063d57806354d1f13d1461067a5780635504ca43146106845761031a565b80632a31d681146105495780632de948071461058657806331035c82146105c3578063385df649146105ee57806342842e0e146106055780634a4ee7b1146106215761031a565b8063140364a1116102d75780631c10893f116102b15780631c10893f146104ca5780631cd64df4146104e657806323b872dd14610523578063256929621461053f5761031a565b8063140364a11461044657806318160ddd14610483578063183a4f6e146104ae5761031a565b806301ffc9a71461031f5780630449015a1461035c57806306fdde0314610385578063081812fc146103b0578063095ea7b3146103ed57806313a661ed14610409575b600080fd5b34801561032b57600080fd5b5061034660048036038101906103419190613c9a565b610c00565b6040516103539190613ce2565b60405180910390f35b34801561036857600080fd5b50610383600480360381019061037e9190613e79565b610c92565b005b34801561039157600080fd5b5061039a610f41565b6040516103a79190613f67565b60405180910390f35b3480156103bc57600080fd5b506103d760048036038101906103d29190613f89565b610fd3565b6040516103e49190613ff7565b60405180910390f35b6104076004803603810190610402919061403e565b611052565b005b34801561041557600080fd5b50610430600480360381019061042b919061417f565b6110a9565b60405161043d91906141d7565b60405180910390f35b34801561045257600080fd5b5061046d60048036038101906104689190613f89565b6110d3565b60405161047a91906142a6565b60405180910390f35b34801561048f57600080fd5b506104986110eb565b6040516104a591906141d7565b60405180910390f35b6104c860048036038101906104c39190613f89565b611102565b005b6104e460048036038101906104df919061403e565b61110f565b005b3480156104f257600080fd5b5061050d6004803603810190610508919061403e565b611125565b60405161051a9190613ce2565b60405180910390f35b61053d600480360381019061053891906142c1565b611145565b005b610547611196565b005b34801561055557600080fd5b50610570600480360381019061056b9190614352565b6111ea565b60405161057d9190613ce2565b60405180910390f35b34801561059257600080fd5b506105ad60048036038101906105a891906143df565b611250565b6040516105ba91906141d7565b60405180910390f35b3480156105cf57600080fd5b506105d861126b565b6040516105e591906141d7565b60405180910390f35b3480156105fa57600080fd5b50610603611270565b005b61061f600480360381019061061a91906142c1565b6112e2565b005b61063b6004803603810190610636919061403e565b611302565b005b34801561064957600080fd5b50610664600480360381019061065f919061403e565b611318565b6040516106719190613ce2565b60405180910390f35b610682611338565b005b34801561069057600080fd5b50610699611374565b6040516106a691906141d7565b60405180910390f35b3480156106bb57600080fd5b506106d660048036038101906106d19190614442565b611379565b6040516106e39190613ce2565b60405180910390f35b3480156106f857600080fd5b50610713600480360381019061070e9190614510565b611399565b005b34801561072157600080fd5b5061073c60048036038101906107379190614559565b6113f6565b005b34801561074a57600080fd5b5061076560048036038101906107609190613f89565b6114ce565b6040516107729190613ff7565b60405180910390f35b34801561078757600080fd5b506107906114e0565b60405161079d91906141d7565b60405180910390f35b3480156107b257600080fd5b506107bb6114e5565b005b3480156107c957600080fd5b506107d2611557565b6040516107df9190613f67565b60405180910390f35b3480156107f457600080fd5b5061080f600480360381019061080a91906143df565b611566565b60405161081c91906141d7565b60405180910390f35b61082d61161e565b005b34801561083b57600080fd5b50610856600480360381019061085191906145f0565b611632565b005b34801561086457600080fd5b5061087f600480360381019061087a9190613f89565b61170b565b60405161088c9190614731565b60405180910390f35b3480156108a157600080fd5b506108aa611757565b6040516108b79190613ce2565b60405180910390f35b3480156108cc57600080fd5b506108e760048036038101906108e291906147ae565b61176a565b005b3480156108f557600080fd5b50610910600480360381019061090b9190613f89565b611c78565b005b34801561091e57600080fd5b50610927611f38565b6040516109349190613ff7565b60405180910390f35b34801561094957600080fd5b50610964600480360381019061095f9190613f89565b611f46565b005b34801561097257600080fd5b5061097b6120ff565b60405161098891906141d7565b60405180910390f35b34801561099d57600080fd5b506109a661210e565b6040516109b39190613f67565b60405180910390f35b3480156109c857600080fd5b506109e360048036038101906109de9190614889565b6121a0565b005b3480156109f157600080fd5b50610a0c6004803603810190610a079190613f89565b6121f7565b604051610a1b939291906148d8565b60405180910390f35b348015610a3057600080fd5b50610a39612265565b604051610a469190613ce2565b60405180910390f35b610a696004803603810190610a64919061490f565b612278565b005b348015610a7757600080fd5b50610a926004803603810190610a8d9190613f89565b6122eb565b604051610a9f9190613f67565b60405180910390f35b348015610ab457600080fd5b50610acf6004803603810190610aca9190613f89565b612389565b005b348015610add57600080fd5b50610ae6612575565b604051610af391906149a1565b60405180910390f35b348015610b0857600080fd5b50610b236004803603810190610b1e9190613f89565b612580565b005b348015610b3157600080fd5b50610b4c6004803603810190610b4791906149bc565b6128d2565b604051610b599190613ce2565b60405180910390f35b610b7c6004803603810190610b7791906143df565b612966565b005b610b986004803603810190610b9391906143df565b6129a7565b005b348015610ba657600080fd5b50610bc16004803603810190610bbc9190614352565b6129d1565b005b348015610bcf57600080fd5b50610bea6004803603810190610be591906143df565b612ab7565b604051610bf791906141d7565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c5b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c8b5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600860009054906101000a900460ff1615610cd9576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600860019054906101000a900460ff1615610d20576040517f89ae2f2300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083468433604051602001610d3994939291906149fc565b6040516020818303038152906040528051906020012090506000610d65610d5f83612ad2565b84612b04565b905083421115610da1576040517fc1c663ce00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dac816008611318565b610de2576040517f4501a91900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16610e02866114ce565b73ffffffffffffffffffffffffffffffffffffffff1614610e4f576040517fdf47ef7000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600b600087815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610eeb576040517f8e96c63e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ef6856000612b80565b843373ffffffffffffffffffffffffffffffffffffffff167fce4385affa8ad2cbec45b1660c6f6afcb691bf0a7a73ebda096ee1dfb670fe6f60405160405180910390a35050505050565b606060028054610f5090614a70565b80601f0160208091040260200160405190810160405280929190818152602001828054610f7c90614a70565b8015610fc95780601f10610f9e57610100808354040283529160200191610fc9565b820191906000526020600020905b815481529060010190602001808311610fac57829003601f168201915b5050505050905090565b6000610fde82612dd2565b611014576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8161105e816002611318565b156110725761106d8383612e31565b6110a4565b6040517f72312d7900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b6000815160051b5b80156110cd57816001828501511b1791506020810390506110b1565b50919050565b6110db613bdf565b6110e482612f75565b9050919050565b60006110f5612f95565b6001546000540303905090565b61110c3382612f9e565b50565b611117612fed565b611121828261300a565b5050565b6000638b78c6d8600c528260005281826020600c20541614905092915050565b611150336002611318565b611186576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611191838383613055565b505050565b60006111a0612575565b67ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b6000808787878787468860405160200161120a9796959493929190614aa1565b604051602081830303815290604052805190602001209050600a600082815260200190815260200160002060009054906101000a900460ff169150509695505050505050565b6000638b78c6d8600c52816000526020600c20549050919050565b600281565b611278612fed565b600860009054906101000a900460ff1615600860006101000a81548160ff021916908315150217905550600860009054906101000a900460ff1615157fb31006682779d0ac02864bee834675baf4592a679bfe75edd5e5847b52ef6f6e60405160405180910390a2565b6112fd83838360405180602001604052806000815250612278565b505050565b61130a612fed565b6113148282612f9e565b5050565b6000638b78c6d8600c5282600052816020600c2054161515905092915050565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b600881565b600a6020528060005260406000206000915054906101000a900460ff1681565b6113a1612fed565b80600990816113b09190614cbc565b50806040516113bf9190614dca565b60405180910390207fc35611e34b3940869a5132c8bc8ec4854192b0bfea25d0b9b38bcdeec2c09a7f60405160405180910390a250565b81421115611430576040517f217e660600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000858585854660405160200161144b959493929190614e4a565b604051602081830303815290604052805190602001209050600061147761147183612ad2565b84612b04565b9050611484816008611318565b6114ba576040517f4501a91900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6114c5878787613055565b50505050505050565b60006114d982613377565b9050919050565b600481565b6114ed612fed565b600860019054906101000a900460ff1615600860016101000a81548160ff021916908315150217905550600860019054906101000a900460ff1615157f1018becc3df1e1a2d1aaf91b10593d3928f7b9bb8b09b2509337709ae503336e60405160405180910390a2565b6060611561613443565b905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115cd576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611626612fed565b61163060006134d5565b565b6000338585468660405160200161164d959493929190614ea9565b6040516020818303038152906040528051906020012090508242111561169f576040517f8a46ab6900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6116c46116bd836116af84612ad2565b61351390919063ffffffff16565b6008611318565b6116fa576040517f4501a91900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117048585613598565b5050505050565b60606040519050602081016000835b600115611740578183526001811660051b8301925060018201915084821c90508061171a575b5060208301820360051c8352816040525050919050565b600860019054906101000a900460ff1681565b600860009054906101000a900460ff16156117b1576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614806118175750600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16145b1561184e576040517ff75c13df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003388888888468960405160200161186d9796959493929190614aa1565b604051602081830303815290604052805190602001209050600073ffffffffffffffffffffffffffffffffffffffff16600b60008765ffffffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611929576040517f48e9a10d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61199261198b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061197d84612ad2565b61351390919063ffffffff16565b6008611318565b6119c8576040517f4501a91900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a600082815260200190815260200160002060009054906101000a900460ff1615611a20576040517fe286cf7f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b42881015611a5a576040517f9c9de28c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600a600083815260200190815260200160002060006101000a81548160ff021916908315150217905550611a9933308765ffffffffffff16613055565b8673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330896040518463ffffffff1660e01b8152600401611ad693929190614f2d565b600060405180830381600087803b158015611af057600080fd5b505af1158015611b04573d6000803e3d6000fd5b505050506000611b12613753565b905060405180606001604052808973ffffffffffffffffffffffffffffffffffffffff1681526020018865ffffffffffff1681526020018765ffffffffffff16815250600b600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548165ffffffffffff021916908365ffffffffffff160217905550604082015181600001601a6101000a81548165ffffffffffff021916908365ffffffffffff160217905550905050611c13336001613598565b808665ffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167f1fa4c280f24907d768d15e5443122c82afbbf1ef239b6916c1f9aa57968b785d8a33604051611c65929190614f64565b60405180910390a4505050505050505050565b6004611c838161375c565b6000600b60008481526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815260200160008201601a9054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff168152505090503073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16636352211e83602001516040518263ffffffff1660e01b8152600401611dab9190614f8d565b602060405180830381865afa158015611dc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dec9190614fbd565b73ffffffffffffffffffffffffffffffffffffffff1614158015611e5057503073ffffffffffffffffffffffffffffffffffffffff16611e37826040015165ffffffffffff166114ce565b73ffffffffffffffffffffffffffffffffffffffff1614155b15611f0157611e60836000612b80565b600b6000848152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a81549065ffffffffffff021916905560008201601a6101000a81549065ffffffffffff02191690555050827f43201bb87c658ee239ad4edc73f6c6011e045a470de31501d0d7d9a034be64ba60405160405180910390a2611f33565b6040517f27c5f99d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b6000638b78c6d81954905090565b611f4e612fed565b6000600b60008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815260200160008201601a9054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603612088576040517ff02a3d4e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff166323b872dd303384604001516040518463ffffffff1660e01b81526004016120c993929190614f2d565b600060405180830381600087803b1580156120e357600080fd5b505af11580156120f7573d6000803e3d6000fd5b505050505050565b6000612109613753565b905090565b60606003805461211d90614a70565b80601f016020809104026020016040519081016040528092919081815260200182805461214990614a70565b80156121965780601f1061216b57610100808354040283529160200191612196565b820191906000526020600020905b81548152906001019060200180831161217957829003601f168201915b5050505050905090565b816121ac816002611318565b156121c0576121bb8383613793565b6121f2565b6040517f72312d7900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b600b6020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900465ffffffffffff169080600001601a9054906101000a900465ffffffffffff16905083565b600860009054906101000a900460ff1681565b612283848484611145565b60008373ffffffffffffffffffffffffffffffffffffffff163b146122e5576122ae8484848461389e565b6122e4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60606122f682612dd2565b61232c576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612336613443565b905060008151036123565760405180602001604052806000815250612381565b80612360846139ee565b604051602001612371929190614fea565b6040516020818303038152906040525b915050919050565b612391612fed565b6000600b60008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815260200160008201601a9054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036124cb576040517ff02a3d4e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000015173ffffffffffffffffffffffffffffffffffffffff166323b872dd303384602001516040518463ffffffff1660e01b815260040161251093929190614f2d565b600060405180830381600087803b15801561252a57600080fd5b505af192505050801561253b575060015b612570577f5a21048a2b36b47d338091d9b003c6f728df8b7fdf15c0ca53c1c8c5b883b69760405160405180910390a1612571565b5b5050565b60006202a300905090565b600860009054906101000a900460ff16156125c7576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166125e7826114ce565b73ffffffffffffffffffffffffffffffffffffffff1614612634576040517fb1c47e5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61263f816000612b80565b6000600b60008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815260200160008201601a9054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff168152505090503073ffffffffffffffffffffffffffffffffffffffff166323b872dd303384604001516040518463ffffffff1660e01b815260040161275093929190614f2d565b600060405180830381600087803b15801561276a57600080fd5b505af115801561277e573d6000803e3d6000fd5b50505050806000015173ffffffffffffffffffffffffffffffffffffffff166323b872dd303384602001516040518463ffffffff1660e01b81526004016127c793929190614f2d565b600060405180830381600087803b1580156127e157600080fd5b505af11580156127f5573d6000803e3d6000fd5b50505050600b6000838152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a81549065ffffffffffff021916905560008201601a6101000a81549065ffffffffffff02191690555050813373ffffffffffffffffffffffffffffffffffffffff16826040015165ffffffffffff167f37602d25e8ea42d95356abd2f143ec7f5607b18c30f6942cbd5c63e8c55df191846000015185602001516040516128c692919061500e565b60405180910390a45050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61296e612fed565b63389a75e1600c52806000526020600c20805442111561299657636f5e88186000526004601cfd5b60008155506129a4816134d5565b50565b6129af612fed565b8060601b6129c557637448fbae6000526004601cfd5b6129ce816134d5565b50565b60046129dc8161375c565b6000878787878746886040516020016129fb9796959493929190614aa1565b6040516020818303038152906040528051906020012090506001600a600083815260200190815260200160002060006101000a81548160ff0219169083151502179055508465ffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167f15dd0ff2f7088e52e4dfa8850b6f1de3fa30928ea860bb57abc7b59b4728ad5d87604051612aa59190615037565b60405180910390a45050505050505050565b600063389a75e1600c52816000526020600c20549050919050565b6000816020527b19457468657265756d205369676e6564204d6573736167653a0a3332600052603c6004209050919050565b60006041825118612b7a5760405160208301516040526040830151806060527f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08111612b735784600052606084015160001a602052602060406080600060015afa5060006060523d6060185192505b8160405250505b92915050565b6000612b8b83613377565b90506000819050600080612b9e86613a3e565b915091508415612c0757612bba8184612bb5613a65565b613a6d565b612c0657612bcf83612bca613a65565b6128d2565b612c05576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b612c15836000886001613ab1565b8015612c2057600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612cc883612c8585600088613ab7565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613adf565b600460008881526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000851603612d4e5760006001870190506000600460008381526020019081526020016000205403612d4c576000548114612d4b578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612db8836000886001613b0a565b600160008154809291906001019190505550505050505050565b600081612ddd612f95565b11158015612dec575060005482105b8015612e2a575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b6000612e3c826114ce565b90508073ffffffffffffffffffffffffffffffffffffffff16612e5d613a65565b73ffffffffffffffffffffffffffffffffffffffff1614612ec057612e8981612e84613a65565b6128d2565b612ebf576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b612f7d613bdf565b612f8e612f8983613377565b613b10565b9050919050565b60006001905090565b638b78c6d8600c52816000526020600c2080548281168118925082825582600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a350505050565b638b78c6d819543314613008576382b429006000526004601cfd5b565b638b78c6d8600c52816000526020600c2081815417915081815581600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a3505050565b600061306082613377565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146130c7576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806130d384613a3e565b915091506130e981876130e4613a65565b613a6d565b613135576130fe866130f9613a65565b6128d2565b613134576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361319b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131a88686866001613ab1565b80156131b357600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506132818561325d888887613ab7565b7c020000000000000000000000000000000000000000000000000000000017613adf565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036133075760006001850190506000600460008381526020019081526020016000205403613305576000548114613304578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461336f8686866001613b0a565b505050505050565b60008082905080613386612f95565b1161340c5760005481101561340b5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603613409575b600081036133ff5760046000836001900393508381526020019081526020016000205490506133d5565b809250505061343e565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60606009805461345290614a70565b80601f016020809104026020016040519081016040528092919081815260200182805461347e90614a70565b80156134cb5780601f106134a0576101008083540402835291602001916134cb565b820191906000526020600020905b8154815290600101906020018083116134ae57829003601f168201915b5050505050905090565b638b78c6d8198160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a38181555050565b6000604051602083015160405260408301518060605284600052606084015160001a602052602060006080600060017f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a00185106041895114165afa5060005192503d61358757638baa579f6000526004601cfd5b600060605281604052505092915050565b600080549050600082036135d8576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6135e56000848385613ab1565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061365c8361364d6000866000613ab7565b61365685613bc6565b17613adf565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146136fd57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506136c2565b5060008203613738576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061374e6000848385613b0a565b505050565b60008054905090565b638b78c6d8600c5233600052806020600c20541661379057638b78c6d81954331461378f576382b429006000526004601cfd5b5b50565b80600760006137a0613a65565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661384d613a65565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516138929190613ce2565b60405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026138c4613a65565b8786866040518563ffffffff1660e01b81526004016138e694939291906150a7565b6020604051808303816000875af192505050801561392257506040513d601f19601f8201168201806040525081019061391f9190615108565b60015b61399b573d8060008114613952576040519150601f19603f3d011682016040523d82523d6000602084013e613957565b606091505b506000815103613993576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060a060405101806040526020810391506000825281835b600115613a2957600184039350600a81066030018453600a8104905080613a07575b50828103602084039350808452505050919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8613ace868684613bd6565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b613b18613bdf565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60006001821460e11b9050919050565b60009392505050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613c7781613c42565b8114613c8257600080fd5b50565b600081359050613c9481613c6e565b92915050565b600060208284031215613cb057613caf613c38565b5b6000613cbe84828501613c85565b91505092915050565b60008115159050919050565b613cdc81613cc7565b82525050565b6000602082019050613cf76000830184613cd3565b92915050565b6000819050919050565b613d1081613cfd565b8114613d1b57600080fd5b50565b600081359050613d2d81613d07565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613d8682613d3d565b810181811067ffffffffffffffff82111715613da557613da4613d4e565b5b80604052505050565b6000613db8613c2e565b9050613dc48282613d7d565b919050565b600067ffffffffffffffff821115613de457613de3613d4e565b5b613ded82613d3d565b9050602081019050919050565b82818337600083830152505050565b6000613e1c613e1784613dc9565b613dae565b905082815260208101848484011115613e3857613e37613d38565b5b613e43848285613dfa565b509392505050565b600082601f830112613e6057613e5f613d33565b5b8135613e70848260208601613e09565b91505092915050565b600080600060608486031215613e9257613e91613c38565b5b6000613ea086828701613d1e565b9350506020613eb186828701613d1e565b925050604084013567ffffffffffffffff811115613ed257613ed1613c3d565b5b613ede86828701613e4b565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b60005b83811015613f22578082015181840152602081019050613f07565b60008484015250505050565b6000613f3982613ee8565b613f438185613ef3565b9350613f53818560208601613f04565b613f5c81613d3d565b840191505092915050565b60006020820190508181036000830152613f818184613f2e565b905092915050565b600060208284031215613f9f57613f9e613c38565b5b6000613fad84828501613d1e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613fe182613fb6565b9050919050565b613ff181613fd6565b82525050565b600060208201905061400c6000830184613fe8565b92915050565b61401b81613fd6565b811461402657600080fd5b50565b60008135905061403881614012565b92915050565b6000806040838503121561405557614054613c38565b5b600061406385828601614029565b925050602061407485828601613d1e565b9150509250929050565b600067ffffffffffffffff82111561409957614098613d4e565b5b602082029050602081019050919050565b600080fd5b600060ff82169050919050565b6140c5816140af565b81146140d057600080fd5b50565b6000813590506140e2816140bc565b92915050565b60006140fb6140f68461407e565b613dae565b9050808382526020820190506020840283018581111561411e5761411d6140aa565b5b835b81811015614147578061413388826140d3565b845260208401935050602081019050614120565b5050509392505050565b600082601f83011261416657614165613d33565b5b81356141768482602086016140e8565b91505092915050565b60006020828403121561419557614194613c38565b5b600082013567ffffffffffffffff8111156141b3576141b2613c3d565b5b6141bf84828501614151565b91505092915050565b6141d181613cfd565b82525050565b60006020820190506141ec60008301846141c8565b92915050565b6141fb81613fd6565b82525050565b600067ffffffffffffffff82169050919050565b61421e81614201565b82525050565b61422d81613cc7565b82525050565b600062ffffff82169050919050565b61424b81614233565b82525050565b60808201600082015161426760008501826141f2565b50602082015161427a6020850182614215565b50604082015161428d6040850182614224565b5060608201516142a06060850182614242565b50505050565b60006080820190506142bb6000830184614251565b92915050565b6000806000606084860312156142da576142d9613c38565b5b60006142e886828701614029565b93505060206142f986828701614029565b925050604061430a86828701613d1e565b9150509250925092565b600065ffffffffffff82169050919050565b61432f81614314565b811461433a57600080fd5b50565b60008135905061434c81614326565b92915050565b60008060008060008060c0878903121561436f5761436e613c38565b5b600061437d89828a01614029565b965050602061438e89828a01613d1e565b955050604061439f89828a01614029565b94505060606143b089828a0161433d565b93505060806143c189828a0161433d565b92505060a06143d289828a01613d1e565b9150509295509295509295565b6000602082840312156143f5576143f4613c38565b5b600061440384828501614029565b91505092915050565b6000819050919050565b61441f8161440c565b811461442a57600080fd5b50565b60008135905061443c81614416565b92915050565b60006020828403121561445857614457613c38565b5b60006144668482850161442d565b91505092915050565b600067ffffffffffffffff82111561448a57614489613d4e565b5b61449382613d3d565b9050602081019050919050565b60006144b36144ae8461446f565b613dae565b9050828152602081018484840111156144cf576144ce613d38565b5b6144da848285613dfa565b509392505050565b600082601f8301126144f7576144f6613d33565b5b81356145078482602086016144a0565b91505092915050565b60006020828403121561452657614525613c38565b5b600082013567ffffffffffffffff81111561454457614543613c3d565b5b614550848285016144e2565b91505092915050565b600080600080600060a0868803121561457557614574613c38565b5b600061458388828901614029565b955050602061459488828901614029565b94505060406145a588828901613d1e565b93505060606145b688828901613d1e565b925050608086013567ffffffffffffffff8111156145d7576145d6613c3d565b5b6145e388828901613e4b565b9150509295509295909350565b6000806000806080858703121561460a57614609613c38565b5b600061461887828801614029565b945050602061462987828801613d1e565b935050604061463a87828801613d1e565b925050606085013567ffffffffffffffff81111561465b5761465a613c3d565b5b61466787828801613e4b565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6146a8816140af565b82525050565b60006146ba838361469f565b60208301905092915050565b6000602082019050919050565b60006146de82614673565b6146e8818561467e565b93506146f38361468f565b8060005b8381101561472457815161470b88826146ae565b9750614716836146c6565b9250506001810190506146f7565b5085935050505092915050565b6000602082019050818103600083015261474b81846146d3565b905092915050565b600080fd5b60008083601f84011261476e5761476d613d33565b5b8235905067ffffffffffffffff81111561478b5761478a614753565b5b6020830191508360018202830111156147a7576147a66140aa565b5b9250929050565b600080600080600080600060c0888a0312156147cd576147cc613c38565b5b60006147db8a828b01613d1e565b97505060206147ec8a828b01614029565b96505060406147fd8a828b0161433d565b955050606061480e8a828b0161433d565b945050608061481f8a828b01613d1e565b93505060a088013567ffffffffffffffff8111156148405761483f613c3d565b5b61484c8a828b01614758565b925092505092959891949750929550565b61486681613cc7565b811461487157600080fd5b50565b6000813590506148838161485d565b92915050565b600080604083850312156148a05761489f613c38565b5b60006148ae85828601614029565b92505060206148bf85828601614874565b9150509250929050565b6148d281614314565b82525050565b60006060820190506148ed6000830186613fe8565b6148fa60208301856148c9565b61490760408301846148c9565b949350505050565b6000806000806080858703121561492957614928613c38565b5b600061493787828801614029565b945050602061494887828801614029565b935050604061495987828801613d1e565b925050606085013567ffffffffffffffff81111561497a57614979613c3d565b5b61498687828801613e4b565b91505092959194509250565b61499b81614201565b82525050565b60006020820190506149b66000830184614992565b92915050565b600080604083850312156149d3576149d2613c38565b5b60006149e185828601614029565b92505060206149f285828601614029565b9150509250929050565b6000608082019050614a1160008301876141c8565b614a1e60208301866141c8565b614a2b60408301856141c8565b614a386060830184613fe8565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a8857607f821691505b602082108103614a9b57614a9a614a41565b5b50919050565b600060e082019050614ab6600083018a613fe8565b614ac360208301896141c8565b614ad06040830188613fe8565b614add60608301876148c9565b614aea60808301866148c9565b614af760a08301856141c8565b614b0460c08301846141c8565b98975050505050505050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614b727fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614b35565b614b7c8683614b35565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614bb9614bb4614baf84613cfd565b614b94565b613cfd565b9050919050565b6000819050919050565b614bd383614b9e565b614be7614bdf82614bc0565b848454614b42565b825550505050565b600090565b614bfc614bef565b614c07818484614bca565b505050565b5b81811015614c2b57614c20600082614bf4565b600181019050614c0d565b5050565b601f821115614c7057614c4181614b10565b614c4a84614b25565b81016020851015614c59578190505b614c6d614c6585614b25565b830182614c0c565b50505b505050565b600082821c905092915050565b6000614c9360001984600802614c75565b1980831691505092915050565b6000614cac8383614c82565b9150826002028217905092915050565b614cc582613ee8565b67ffffffffffffffff811115614cde57614cdd613d4e565b5b614ce88254614a70565b614cf3828285614c2f565b600060209050601f831160018114614d265760008415614d14578287015190505b614d1e8582614ca0565b865550614d86565b601f198416614d3486614b10565b60005b82811015614d5c57848901518255600182019150602085019450602081019050614d37565b86831015614d795784890151614d75601f891682614c82565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b6000614da482613ee8565b614dae8185614d8e565b9350614dbe818560208601613f04565b80840191505092915050565b6000614dd68284614d99565b915081905092915050565b60008160601b9050919050565b6000614df982614de1565b9050919050565b6000614e0b82614dee565b9050919050565b614e23614e1e82613fd6565b614e00565b82525050565b6000819050919050565b614e44614e3f82613cfd565b614e29565b82525050565b6000614e568288614e12565b601482019150614e668287614e12565b601482019150614e768286614e33565b602082019150614e868285614e33565b602082019150614e968284614e33565b6020820191508190509695505050505050565b600060a082019050614ebe6000830188613fe8565b614ecb6020830187613fe8565b614ed860408301866141c8565b614ee560608301856141c8565b614ef260808301846141c8565b9695505050505050565b6000614f17614f12614f0d84614314565b614b94565b613cfd565b9050919050565b614f2781614efc565b82525050565b6000606082019050614f426000830186613fe8565b614f4f6020830185613fe8565b614f5c6040830184614f1e565b949350505050565b6000604082019050614f7960008301856148c9565b614f866020830184613fe8565b9392505050565b6000602082019050614fa26000830184614f1e565b92915050565b600081519050614fb781614012565b92915050565b600060208284031215614fd357614fd2613c38565b5b6000614fe184828501614fa8565b91505092915050565b6000614ff68285614d99565b91506150028284614d99565b91508190509392505050565b60006040820190506150236000830185613fe8565b61503060208301846148c9565b9392505050565b600060208201905061504c60008301846148c9565b92915050565b600081519050919050565b600082825260208201905092915050565b600061507982615052565b615083818561505d565b9350615093818560208601613f04565b61509c81613d3d565b840191505092915050565b60006080820190506150bc6000830187613fe8565b6150c96020830186613fe8565b6150d660408301856141c8565b81810360608301526150e8818461506e565b905095945050505050565b60008151905061510281613c6e565b92915050565b60006020828403121561511e5761511d613c38565b5b600061512c848285016150f3565b9150509291505056fea2646970667358221220cda718e2d65920e208d62119b988df9cef40dda9e342db738f977d626da5293e64736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000d416d65726963616e614e465473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005414e465473000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061031a5760003560e01c8063660392af116101ab57806395d89b41116100f7578063d7533f0211610095578063f04e283e1161006f578063f04e283e14610b62578063f2fde38b14610b7e578063fa12129114610b9a578063fee81cf414610bc35761031a565b8063d7533f0214610ad1578063de0e9a3e14610afc578063e985e9c514610b255761031a565b8063b187bd26116100d1578063b187bd2614610a24578063b88d4fde14610a4f578063c87b56dd14610a6b578063cc92241314610aa85761031a565b806395d89b4114610991578063a22cb465146109bc578063a8b0d82a146109e55761031a565b80637359e41f116101645780638b8d9b7e1161013e5780638b8d9b7e146108e95780638da5cb5b1461091257806391df66721461093d5780639499ac54146109665761031a565b80637359e41f1461085857806373a95ddd1461089557806389f3190c146108c05761031a565b8063660392af1461077b5780636801d2f7146107a65780636c0360eb146107bd57806370a08231146107e8578063715018a614610825578063731133e91461082f5761031a565b80632a31d6811161026a578063514e62fc1161022357806355906214116101fd57806355906214146106af57806355f804b3146106ec578063605105f0146107155780636352211e1461073e5761031a565b8063514e62fc1461063d57806354d1f13d1461067a5780635504ca43146106845761031a565b80632a31d681146105495780632de948071461058657806331035c82146105c3578063385df649146105ee57806342842e0e146106055780634a4ee7b1146106215761031a565b8063140364a1116102d75780631c10893f116102b15780631c10893f146104ca5780631cd64df4146104e657806323b872dd14610523578063256929621461053f5761031a565b8063140364a11461044657806318160ddd14610483578063183a4f6e146104ae5761031a565b806301ffc9a71461031f5780630449015a1461035c57806306fdde0314610385578063081812fc146103b0578063095ea7b3146103ed57806313a661ed14610409575b600080fd5b34801561032b57600080fd5b5061034660048036038101906103419190613c9a565b610c00565b6040516103539190613ce2565b60405180910390f35b34801561036857600080fd5b50610383600480360381019061037e9190613e79565b610c92565b005b34801561039157600080fd5b5061039a610f41565b6040516103a79190613f67565b60405180910390f35b3480156103bc57600080fd5b506103d760048036038101906103d29190613f89565b610fd3565b6040516103e49190613ff7565b60405180910390f35b6104076004803603810190610402919061403e565b611052565b005b34801561041557600080fd5b50610430600480360381019061042b919061417f565b6110a9565b60405161043d91906141d7565b60405180910390f35b34801561045257600080fd5b5061046d60048036038101906104689190613f89565b6110d3565b60405161047a91906142a6565b60405180910390f35b34801561048f57600080fd5b506104986110eb565b6040516104a591906141d7565b60405180910390f35b6104c860048036038101906104c39190613f89565b611102565b005b6104e460048036038101906104df919061403e565b61110f565b005b3480156104f257600080fd5b5061050d6004803603810190610508919061403e565b611125565b60405161051a9190613ce2565b60405180910390f35b61053d600480360381019061053891906142c1565b611145565b005b610547611196565b005b34801561055557600080fd5b50610570600480360381019061056b9190614352565b6111ea565b60405161057d9190613ce2565b60405180910390f35b34801561059257600080fd5b506105ad60048036038101906105a891906143df565b611250565b6040516105ba91906141d7565b60405180910390f35b3480156105cf57600080fd5b506105d861126b565b6040516105e591906141d7565b60405180910390f35b3480156105fa57600080fd5b50610603611270565b005b61061f600480360381019061061a91906142c1565b6112e2565b005b61063b6004803603810190610636919061403e565b611302565b005b34801561064957600080fd5b50610664600480360381019061065f919061403e565b611318565b6040516106719190613ce2565b60405180910390f35b610682611338565b005b34801561069057600080fd5b50610699611374565b6040516106a691906141d7565b60405180910390f35b3480156106bb57600080fd5b506106d660048036038101906106d19190614442565b611379565b6040516106e39190613ce2565b60405180910390f35b3480156106f857600080fd5b50610713600480360381019061070e9190614510565b611399565b005b34801561072157600080fd5b5061073c60048036038101906107379190614559565b6113f6565b005b34801561074a57600080fd5b5061076560048036038101906107609190613f89565b6114ce565b6040516107729190613ff7565b60405180910390f35b34801561078757600080fd5b506107906114e0565b60405161079d91906141d7565b60405180910390f35b3480156107b257600080fd5b506107bb6114e5565b005b3480156107c957600080fd5b506107d2611557565b6040516107df9190613f67565b60405180910390f35b3480156107f457600080fd5b5061080f600480360381019061080a91906143df565b611566565b60405161081c91906141d7565b60405180910390f35b61082d61161e565b005b34801561083b57600080fd5b50610856600480360381019061085191906145f0565b611632565b005b34801561086457600080fd5b5061087f600480360381019061087a9190613f89565b61170b565b60405161088c9190614731565b60405180910390f35b3480156108a157600080fd5b506108aa611757565b6040516108b79190613ce2565b60405180910390f35b3480156108cc57600080fd5b506108e760048036038101906108e291906147ae565b61176a565b005b3480156108f557600080fd5b50610910600480360381019061090b9190613f89565b611c78565b005b34801561091e57600080fd5b50610927611f38565b6040516109349190613ff7565b60405180910390f35b34801561094957600080fd5b50610964600480360381019061095f9190613f89565b611f46565b005b34801561097257600080fd5b5061097b6120ff565b60405161098891906141d7565b60405180910390f35b34801561099d57600080fd5b506109a661210e565b6040516109b39190613f67565b60405180910390f35b3480156109c857600080fd5b506109e360048036038101906109de9190614889565b6121a0565b005b3480156109f157600080fd5b50610a0c6004803603810190610a079190613f89565b6121f7565b604051610a1b939291906148d8565b60405180910390f35b348015610a3057600080fd5b50610a39612265565b604051610a469190613ce2565b60405180910390f35b610a696004803603810190610a64919061490f565b612278565b005b348015610a7757600080fd5b50610a926004803603810190610a8d9190613f89565b6122eb565b604051610a9f9190613f67565b60405180910390f35b348015610ab457600080fd5b50610acf6004803603810190610aca9190613f89565b612389565b005b348015610add57600080fd5b50610ae6612575565b604051610af391906149a1565b60405180910390f35b348015610b0857600080fd5b50610b236004803603810190610b1e9190613f89565b612580565b005b348015610b3157600080fd5b50610b4c6004803603810190610b4791906149bc565b6128d2565b604051610b599190613ce2565b60405180910390f35b610b7c6004803603810190610b7791906143df565b612966565b005b610b986004803603810190610b9391906143df565b6129a7565b005b348015610ba657600080fd5b50610bc16004803603810190610bbc9190614352565b6129d1565b005b348015610bcf57600080fd5b50610bea6004803603810190610be591906143df565b612ab7565b604051610bf791906141d7565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c5b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c8b5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600860009054906101000a900460ff1615610cd9576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600860019054906101000a900460ff1615610d20576040517f89ae2f2300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083468433604051602001610d3994939291906149fc565b6040516020818303038152906040528051906020012090506000610d65610d5f83612ad2565b84612b04565b905083421115610da1576040517fc1c663ce00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dac816008611318565b610de2576040517f4501a91900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16610e02866114ce565b73ffffffffffffffffffffffffffffffffffffffff1614610e4f576040517fdf47ef7000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600b600087815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610eeb576040517f8e96c63e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ef6856000612b80565b843373ffffffffffffffffffffffffffffffffffffffff167fce4385affa8ad2cbec45b1660c6f6afcb691bf0a7a73ebda096ee1dfb670fe6f60405160405180910390a35050505050565b606060028054610f5090614a70565b80601f0160208091040260200160405190810160405280929190818152602001828054610f7c90614a70565b8015610fc95780601f10610f9e57610100808354040283529160200191610fc9565b820191906000526020600020905b815481529060010190602001808311610fac57829003601f168201915b5050505050905090565b6000610fde82612dd2565b611014576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8161105e816002611318565b156110725761106d8383612e31565b6110a4565b6040517f72312d7900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b6000815160051b5b80156110cd57816001828501511b1791506020810390506110b1565b50919050565b6110db613bdf565b6110e482612f75565b9050919050565b60006110f5612f95565b6001546000540303905090565b61110c3382612f9e565b50565b611117612fed565b611121828261300a565b5050565b6000638b78c6d8600c528260005281826020600c20541614905092915050565b611150336002611318565b611186576040517f5c427cd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611191838383613055565b505050565b60006111a0612575565b67ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b6000808787878787468860405160200161120a9796959493929190614aa1565b604051602081830303815290604052805190602001209050600a600082815260200190815260200160002060009054906101000a900460ff169150509695505050505050565b6000638b78c6d8600c52816000526020600c20549050919050565b600281565b611278612fed565b600860009054906101000a900460ff1615600860006101000a81548160ff021916908315150217905550600860009054906101000a900460ff1615157fb31006682779d0ac02864bee834675baf4592a679bfe75edd5e5847b52ef6f6e60405160405180910390a2565b6112fd83838360405180602001604052806000815250612278565b505050565b61130a612fed565b6113148282612f9e565b5050565b6000638b78c6d8600c5282600052816020600c2054161515905092915050565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b600881565b600a6020528060005260406000206000915054906101000a900460ff1681565b6113a1612fed565b80600990816113b09190614cbc565b50806040516113bf9190614dca565b60405180910390207fc35611e34b3940869a5132c8bc8ec4854192b0bfea25d0b9b38bcdeec2c09a7f60405160405180910390a250565b81421115611430576040517f217e660600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000858585854660405160200161144b959493929190614e4a565b604051602081830303815290604052805190602001209050600061147761147183612ad2565b84612b04565b9050611484816008611318565b6114ba576040517f4501a91900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6114c5878787613055565b50505050505050565b60006114d982613377565b9050919050565b600481565b6114ed612fed565b600860019054906101000a900460ff1615600860016101000a81548160ff021916908315150217905550600860019054906101000a900460ff1615157f1018becc3df1e1a2d1aaf91b10593d3928f7b9bb8b09b2509337709ae503336e60405160405180910390a2565b6060611561613443565b905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115cd576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611626612fed565b61163060006134d5565b565b6000338585468660405160200161164d959493929190614ea9565b6040516020818303038152906040528051906020012090508242111561169f576040517f8a46ab6900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6116c46116bd836116af84612ad2565b61351390919063ffffffff16565b6008611318565b6116fa576040517f4501a91900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117048585613598565b5050505050565b60606040519050602081016000835b600115611740578183526001811660051b8301925060018201915084821c90508061171a575b5060208301820360051c8352816040525050919050565b600860019054906101000a900460ff1681565b600860009054906101000a900460ff16156117b1576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614806118175750600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16145b1561184e576040517ff75c13df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003388888888468960405160200161186d9796959493929190614aa1565b604051602081830303815290604052805190602001209050600073ffffffffffffffffffffffffffffffffffffffff16600b60008765ffffffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611929576040517f48e9a10d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61199261198b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061197d84612ad2565b61351390919063ffffffff16565b6008611318565b6119c8576040517f4501a91900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a600082815260200190815260200160002060009054906101000a900460ff1615611a20576040517fe286cf7f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b42881015611a5a576040517f9c9de28c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600a600083815260200190815260200160002060006101000a81548160ff021916908315150217905550611a9933308765ffffffffffff16613055565b8673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330896040518463ffffffff1660e01b8152600401611ad693929190614f2d565b600060405180830381600087803b158015611af057600080fd5b505af1158015611b04573d6000803e3d6000fd5b505050506000611b12613753565b905060405180606001604052808973ffffffffffffffffffffffffffffffffffffffff1681526020018865ffffffffffff1681526020018765ffffffffffff16815250600b600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548165ffffffffffff021916908365ffffffffffff160217905550604082015181600001601a6101000a81548165ffffffffffff021916908365ffffffffffff160217905550905050611c13336001613598565b808665ffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167f1fa4c280f24907d768d15e5443122c82afbbf1ef239b6916c1f9aa57968b785d8a33604051611c65929190614f64565b60405180910390a4505050505050505050565b6004611c838161375c565b6000600b60008481526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815260200160008201601a9054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff168152505090503073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16636352211e83602001516040518263ffffffff1660e01b8152600401611dab9190614f8d565b602060405180830381865afa158015611dc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dec9190614fbd565b73ffffffffffffffffffffffffffffffffffffffff1614158015611e5057503073ffffffffffffffffffffffffffffffffffffffff16611e37826040015165ffffffffffff166114ce565b73ffffffffffffffffffffffffffffffffffffffff1614155b15611f0157611e60836000612b80565b600b6000848152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a81549065ffffffffffff021916905560008201601a6101000a81549065ffffffffffff02191690555050827f43201bb87c658ee239ad4edc73f6c6011e045a470de31501d0d7d9a034be64ba60405160405180910390a2611f33565b6040517f27c5f99d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b6000638b78c6d81954905090565b611f4e612fed565b6000600b60008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815260200160008201601a9054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603612088576040517ff02a3d4e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff166323b872dd303384604001516040518463ffffffff1660e01b81526004016120c993929190614f2d565b600060405180830381600087803b1580156120e357600080fd5b505af11580156120f7573d6000803e3d6000fd5b505050505050565b6000612109613753565b905090565b60606003805461211d90614a70565b80601f016020809104026020016040519081016040528092919081815260200182805461214990614a70565b80156121965780601f1061216b57610100808354040283529160200191612196565b820191906000526020600020905b81548152906001019060200180831161217957829003601f168201915b5050505050905090565b816121ac816002611318565b156121c0576121bb8383613793565b6121f2565b6040517f72312d7900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b600b6020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900465ffffffffffff169080600001601a9054906101000a900465ffffffffffff16905083565b600860009054906101000a900460ff1681565b612283848484611145565b60008373ffffffffffffffffffffffffffffffffffffffff163b146122e5576122ae8484848461389e565b6122e4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60606122f682612dd2565b61232c576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612336613443565b905060008151036123565760405180602001604052806000815250612381565b80612360846139ee565b604051602001612371929190614fea565b6040516020818303038152906040525b915050919050565b612391612fed565b6000600b60008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815260200160008201601a9054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036124cb576040517ff02a3d4e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000015173ffffffffffffffffffffffffffffffffffffffff166323b872dd303384602001516040518463ffffffff1660e01b815260040161251093929190614f2d565b600060405180830381600087803b15801561252a57600080fd5b505af192505050801561253b575060015b612570577f5a21048a2b36b47d338091d9b003c6f728df8b7fdf15c0ca53c1c8c5b883b69760405160405180910390a1612571565b5b5050565b60006202a300905090565b600860009054906101000a900460ff16156125c7576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166125e7826114ce565b73ffffffffffffffffffffffffffffffffffffffff1614612634576040517fb1c47e5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61263f816000612b80565b6000600b60008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff16815260200160008201601a9054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff168152505090503073ffffffffffffffffffffffffffffffffffffffff166323b872dd303384604001516040518463ffffffff1660e01b815260040161275093929190614f2d565b600060405180830381600087803b15801561276a57600080fd5b505af115801561277e573d6000803e3d6000fd5b50505050806000015173ffffffffffffffffffffffffffffffffffffffff166323b872dd303384602001516040518463ffffffff1660e01b81526004016127c793929190614f2d565b600060405180830381600087803b1580156127e157600080fd5b505af11580156127f5573d6000803e3d6000fd5b50505050600b6000838152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a81549065ffffffffffff021916905560008201601a6101000a81549065ffffffffffff02191690555050813373ffffffffffffffffffffffffffffffffffffffff16826040015165ffffffffffff167f37602d25e8ea42d95356abd2f143ec7f5607b18c30f6942cbd5c63e8c55df191846000015185602001516040516128c692919061500e565b60405180910390a45050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61296e612fed565b63389a75e1600c52806000526020600c20805442111561299657636f5e88186000526004601cfd5b60008155506129a4816134d5565b50565b6129af612fed565b8060601b6129c557637448fbae6000526004601cfd5b6129ce816134d5565b50565b60046129dc8161375c565b6000878787878746886040516020016129fb9796959493929190614aa1565b6040516020818303038152906040528051906020012090506001600a600083815260200190815260200160002060006101000a81548160ff0219169083151502179055508465ffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167f15dd0ff2f7088e52e4dfa8850b6f1de3fa30928ea860bb57abc7b59b4728ad5d87604051612aa59190615037565b60405180910390a45050505050505050565b600063389a75e1600c52816000526020600c20549050919050565b6000816020527b19457468657265756d205369676e6564204d6573736167653a0a3332600052603c6004209050919050565b60006041825118612b7a5760405160208301516040526040830151806060527f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08111612b735784600052606084015160001a602052602060406080600060015afa5060006060523d6060185192505b8160405250505b92915050565b6000612b8b83613377565b90506000819050600080612b9e86613a3e565b915091508415612c0757612bba8184612bb5613a65565b613a6d565b612c0657612bcf83612bca613a65565b6128d2565b612c05576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b612c15836000886001613ab1565b8015612c2057600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612cc883612c8585600088613ab7565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613adf565b600460008881526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000851603612d4e5760006001870190506000600460008381526020019081526020016000205403612d4c576000548114612d4b578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612db8836000886001613b0a565b600160008154809291906001019190505550505050505050565b600081612ddd612f95565b11158015612dec575060005482105b8015612e2a575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b6000612e3c826114ce565b90508073ffffffffffffffffffffffffffffffffffffffff16612e5d613a65565b73ffffffffffffffffffffffffffffffffffffffff1614612ec057612e8981612e84613a65565b6128d2565b612ebf576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b612f7d613bdf565b612f8e612f8983613377565b613b10565b9050919050565b60006001905090565b638b78c6d8600c52816000526020600c2080548281168118925082825582600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a350505050565b638b78c6d819543314613008576382b429006000526004601cfd5b565b638b78c6d8600c52816000526020600c2081815417915081815581600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a3505050565b600061306082613377565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146130c7576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806130d384613a3e565b915091506130e981876130e4613a65565b613a6d565b613135576130fe866130f9613a65565b6128d2565b613134576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361319b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131a88686866001613ab1565b80156131b357600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506132818561325d888887613ab7565b7c020000000000000000000000000000000000000000000000000000000017613adf565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036133075760006001850190506000600460008381526020019081526020016000205403613305576000548114613304578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461336f8686866001613b0a565b505050505050565b60008082905080613386612f95565b1161340c5760005481101561340b5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603613409575b600081036133ff5760046000836001900393508381526020019081526020016000205490506133d5565b809250505061343e565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60606009805461345290614a70565b80601f016020809104026020016040519081016040528092919081815260200182805461347e90614a70565b80156134cb5780601f106134a0576101008083540402835291602001916134cb565b820191906000526020600020905b8154815290600101906020018083116134ae57829003601f168201915b5050505050905090565b638b78c6d8198160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a38181555050565b6000604051602083015160405260408301518060605284600052606084015160001a602052602060006080600060017f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a00185106041895114165afa5060005192503d61358757638baa579f6000526004601cfd5b600060605281604052505092915050565b600080549050600082036135d8576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6135e56000848385613ab1565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061365c8361364d6000866000613ab7565b61365685613bc6565b17613adf565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146136fd57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506136c2565b5060008203613738576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061374e6000848385613b0a565b505050565b60008054905090565b638b78c6d8600c5233600052806020600c20541661379057638b78c6d81954331461378f576382b429006000526004601cfd5b5b50565b80600760006137a0613a65565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661384d613a65565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516138929190613ce2565b60405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026138c4613a65565b8786866040518563ffffffff1660e01b81526004016138e694939291906150a7565b6020604051808303816000875af192505050801561392257506040513d601f19601f8201168201806040525081019061391f9190615108565b60015b61399b573d8060008114613952576040519150601f19603f3d011682016040523d82523d6000602084013e613957565b606091505b506000815103613993576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060a060405101806040526020810391506000825281835b600115613a2957600184039350600a81066030018453600a8104905080613a07575b50828103602084039350808452505050919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8613ace868684613bd6565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b613b18613bdf565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60006001821460e11b9050919050565b60009392505050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613c7781613c42565b8114613c8257600080fd5b50565b600081359050613c9481613c6e565b92915050565b600060208284031215613cb057613caf613c38565b5b6000613cbe84828501613c85565b91505092915050565b60008115159050919050565b613cdc81613cc7565b82525050565b6000602082019050613cf76000830184613cd3565b92915050565b6000819050919050565b613d1081613cfd565b8114613d1b57600080fd5b50565b600081359050613d2d81613d07565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613d8682613d3d565b810181811067ffffffffffffffff82111715613da557613da4613d4e565b5b80604052505050565b6000613db8613c2e565b9050613dc48282613d7d565b919050565b600067ffffffffffffffff821115613de457613de3613d4e565b5b613ded82613d3d565b9050602081019050919050565b82818337600083830152505050565b6000613e1c613e1784613dc9565b613dae565b905082815260208101848484011115613e3857613e37613d38565b5b613e43848285613dfa565b509392505050565b600082601f830112613e6057613e5f613d33565b5b8135613e70848260208601613e09565b91505092915050565b600080600060608486031215613e9257613e91613c38565b5b6000613ea086828701613d1e565b9350506020613eb186828701613d1e565b925050604084013567ffffffffffffffff811115613ed257613ed1613c3d565b5b613ede86828701613e4b565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b60005b83811015613f22578082015181840152602081019050613f07565b60008484015250505050565b6000613f3982613ee8565b613f438185613ef3565b9350613f53818560208601613f04565b613f5c81613d3d565b840191505092915050565b60006020820190508181036000830152613f818184613f2e565b905092915050565b600060208284031215613f9f57613f9e613c38565b5b6000613fad84828501613d1e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613fe182613fb6565b9050919050565b613ff181613fd6565b82525050565b600060208201905061400c6000830184613fe8565b92915050565b61401b81613fd6565b811461402657600080fd5b50565b60008135905061403881614012565b92915050565b6000806040838503121561405557614054613c38565b5b600061406385828601614029565b925050602061407485828601613d1e565b9150509250929050565b600067ffffffffffffffff82111561409957614098613d4e565b5b602082029050602081019050919050565b600080fd5b600060ff82169050919050565b6140c5816140af565b81146140d057600080fd5b50565b6000813590506140e2816140bc565b92915050565b60006140fb6140f68461407e565b613dae565b9050808382526020820190506020840283018581111561411e5761411d6140aa565b5b835b81811015614147578061413388826140d3565b845260208401935050602081019050614120565b5050509392505050565b600082601f83011261416657614165613d33565b5b81356141768482602086016140e8565b91505092915050565b60006020828403121561419557614194613c38565b5b600082013567ffffffffffffffff8111156141b3576141b2613c3d565b5b6141bf84828501614151565b91505092915050565b6141d181613cfd565b82525050565b60006020820190506141ec60008301846141c8565b92915050565b6141fb81613fd6565b82525050565b600067ffffffffffffffff82169050919050565b61421e81614201565b82525050565b61422d81613cc7565b82525050565b600062ffffff82169050919050565b61424b81614233565b82525050565b60808201600082015161426760008501826141f2565b50602082015161427a6020850182614215565b50604082015161428d6040850182614224565b5060608201516142a06060850182614242565b50505050565b60006080820190506142bb6000830184614251565b92915050565b6000806000606084860312156142da576142d9613c38565b5b60006142e886828701614029565b93505060206142f986828701614029565b925050604061430a86828701613d1e565b9150509250925092565b600065ffffffffffff82169050919050565b61432f81614314565b811461433a57600080fd5b50565b60008135905061434c81614326565b92915050565b60008060008060008060c0878903121561436f5761436e613c38565b5b600061437d89828a01614029565b965050602061438e89828a01613d1e565b955050604061439f89828a01614029565b94505060606143b089828a0161433d565b93505060806143c189828a0161433d565b92505060a06143d289828a01613d1e565b9150509295509295509295565b6000602082840312156143f5576143f4613c38565b5b600061440384828501614029565b91505092915050565b6000819050919050565b61441f8161440c565b811461442a57600080fd5b50565b60008135905061443c81614416565b92915050565b60006020828403121561445857614457613c38565b5b60006144668482850161442d565b91505092915050565b600067ffffffffffffffff82111561448a57614489613d4e565b5b61449382613d3d565b9050602081019050919050565b60006144b36144ae8461446f565b613dae565b9050828152602081018484840111156144cf576144ce613d38565b5b6144da848285613dfa565b509392505050565b600082601f8301126144f7576144f6613d33565b5b81356145078482602086016144a0565b91505092915050565b60006020828403121561452657614525613c38565b5b600082013567ffffffffffffffff81111561454457614543613c3d565b5b614550848285016144e2565b91505092915050565b600080600080600060a0868803121561457557614574613c38565b5b600061458388828901614029565b955050602061459488828901614029565b94505060406145a588828901613d1e565b93505060606145b688828901613d1e565b925050608086013567ffffffffffffffff8111156145d7576145d6613c3d565b5b6145e388828901613e4b565b9150509295509295909350565b6000806000806080858703121561460a57614609613c38565b5b600061461887828801614029565b945050602061462987828801613d1e565b935050604061463a87828801613d1e565b925050606085013567ffffffffffffffff81111561465b5761465a613c3d565b5b61466787828801613e4b565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6146a8816140af565b82525050565b60006146ba838361469f565b60208301905092915050565b6000602082019050919050565b60006146de82614673565b6146e8818561467e565b93506146f38361468f565b8060005b8381101561472457815161470b88826146ae565b9750614716836146c6565b9250506001810190506146f7565b5085935050505092915050565b6000602082019050818103600083015261474b81846146d3565b905092915050565b600080fd5b60008083601f84011261476e5761476d613d33565b5b8235905067ffffffffffffffff81111561478b5761478a614753565b5b6020830191508360018202830111156147a7576147a66140aa565b5b9250929050565b600080600080600080600060c0888a0312156147cd576147cc613c38565b5b60006147db8a828b01613d1e565b97505060206147ec8a828b01614029565b96505060406147fd8a828b0161433d565b955050606061480e8a828b0161433d565b945050608061481f8a828b01613d1e565b93505060a088013567ffffffffffffffff8111156148405761483f613c3d565b5b61484c8a828b01614758565b925092505092959891949750929550565b61486681613cc7565b811461487157600080fd5b50565b6000813590506148838161485d565b92915050565b600080604083850312156148a05761489f613c38565b5b60006148ae85828601614029565b92505060206148bf85828601614874565b9150509250929050565b6148d281614314565b82525050565b60006060820190506148ed6000830186613fe8565b6148fa60208301856148c9565b61490760408301846148c9565b949350505050565b6000806000806080858703121561492957614928613c38565b5b600061493787828801614029565b945050602061494887828801614029565b935050604061495987828801613d1e565b925050606085013567ffffffffffffffff81111561497a57614979613c3d565b5b61498687828801613e4b565b91505092959194509250565b61499b81614201565b82525050565b60006020820190506149b66000830184614992565b92915050565b600080604083850312156149d3576149d2613c38565b5b60006149e185828601614029565b92505060206149f285828601614029565b9150509250929050565b6000608082019050614a1160008301876141c8565b614a1e60208301866141c8565b614a2b60408301856141c8565b614a386060830184613fe8565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a8857607f821691505b602082108103614a9b57614a9a614a41565b5b50919050565b600060e082019050614ab6600083018a613fe8565b614ac360208301896141c8565b614ad06040830188613fe8565b614add60608301876148c9565b614aea60808301866148c9565b614af760a08301856141c8565b614b0460c08301846141c8565b98975050505050505050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614b727fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614b35565b614b7c8683614b35565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614bb9614bb4614baf84613cfd565b614b94565b613cfd565b9050919050565b6000819050919050565b614bd383614b9e565b614be7614bdf82614bc0565b848454614b42565b825550505050565b600090565b614bfc614bef565b614c07818484614bca565b505050565b5b81811015614c2b57614c20600082614bf4565b600181019050614c0d565b5050565b601f821115614c7057614c4181614b10565b614c4a84614b25565b81016020851015614c59578190505b614c6d614c6585614b25565b830182614c0c565b50505b505050565b600082821c905092915050565b6000614c9360001984600802614c75565b1980831691505092915050565b6000614cac8383614c82565b9150826002028217905092915050565b614cc582613ee8565b67ffffffffffffffff811115614cde57614cdd613d4e565b5b614ce88254614a70565b614cf3828285614c2f565b600060209050601f831160018114614d265760008415614d14578287015190505b614d1e8582614ca0565b865550614d86565b601f198416614d3486614b10565b60005b82811015614d5c57848901518255600182019150602085019450602081019050614d37565b86831015614d795784890151614d75601f891682614c82565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b6000614da482613ee8565b614dae8185614d8e565b9350614dbe818560208601613f04565b80840191505092915050565b6000614dd68284614d99565b915081905092915050565b60008160601b9050919050565b6000614df982614de1565b9050919050565b6000614e0b82614dee565b9050919050565b614e23614e1e82613fd6565b614e00565b82525050565b6000819050919050565b614e44614e3f82613cfd565b614e29565b82525050565b6000614e568288614e12565b601482019150614e668287614e12565b601482019150614e768286614e33565b602082019150614e868285614e33565b602082019150614e968284614e33565b6020820191508190509695505050505050565b600060a082019050614ebe6000830188613fe8565b614ecb6020830187613fe8565b614ed860408301866141c8565b614ee560608301856141c8565b614ef260808301846141c8565b9695505050505050565b6000614f17614f12614f0d84614314565b614b94565b613cfd565b9050919050565b614f2781614efc565b82525050565b6000606082019050614f426000830186613fe8565b614f4f6020830185613fe8565b614f5c6040830184614f1e565b949350505050565b6000604082019050614f7960008301856148c9565b614f866020830184613fe8565b9392505050565b6000602082019050614fa26000830184614f1e565b92915050565b600081519050614fb781614012565b92915050565b600060208284031215614fd357614fd2613c38565b5b6000614fe184828501614fa8565b91505092915050565b6000614ff68285614d99565b91506150028284614d99565b91508190509392505050565b60006040820190506150236000830185613fe8565b61503060208301846148c9565b9392505050565b600060208201905061504c60008301846148c9565b92915050565b600081519050919050565b600082825260208201905092915050565b600061507982615052565b615083818561505d565b9350615093818560208601613f04565b61509c81613d3d565b840191505092915050565b60006080820190506150bc6000830187613fe8565b6150c96020830186613fe8565b6150d660408301856141c8565b81810360608301526150e8818461506e565b905095945050505050565b60008151905061510281613c6e565b92915050565b60006020828403121561511e5761511d613c38565b5b600061512c848285016150f3565b9150509291505056fea2646970667358221220cda718e2d65920e208d62119b988df9cef40dda9e342db738f977d626da5293e64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000d416d65726963616e614e465473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005414e465473000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): AmericanaNFTs
Arg [1] : symbol (string): ANFTs
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [3] : 416d65726963616e614e46547300000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [5] : 414e465473000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
113668:18262:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18461:639;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;117105:1098;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;19363:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;25854:218;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;130701:183;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;91343:495;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;131782:145;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;15114:323;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;89204:111;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;88653:125;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;90246:446;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;129706:300;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;77843:629;;;:::i;:::-;;127339:607;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;90743:362;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;107912:55;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;123217:122;;;;;;;;;;;;;:::i;:::-;;32414:193;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;88927:127;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;89667:514;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;78557:466;;;:::i;:::-;;108203:63;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;115284:45;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;123845:144;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;128249:746;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;20756:152;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;108051:50;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;123513:152;;;;;;;;;;;;;:::i;:::-;;122766:93;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;16298:233;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;77575:102;;;:::i;:::-;;115952:781;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;92078:1077;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;115138:28;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;118885:2250;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;125738:609;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;80282:196;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;125037:371;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;122603:93;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;19539:104;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;131413:196;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;115417:57;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;115111:20;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;33205:407;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;19749:318;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;124247:520;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;81127:109;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;121384:1133;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;26803:164;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;79214:724;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;77149:358;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;126476:776;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;80584:449;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;18461:639;18546:4;18885:10;18870:25;;:11;:25;;;;:102;;;;18962:10;18947:25;;:11;:25;;;;18870:102;:179;;;;19039:10;19024:25;;:11;:25;;;;18870:179;18850:199;;18461:639;;;:::o;117105:1098::-;114350:8;;;;;;;;;;;114346:37;;;114367:16;;;;;;;;;;;;;;114346:37;114857:16:::1;;;;;;;;;;;114853:47;;;114882:18;;;;;;;;;;;;;;114853:47;117267:14:::2;117337:8;117364:13;117396:23;117438:10;117308:155;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;117284:190;;;;;;117267:207;;117487:28;117518:96;117549:31;:6;:29;:31::i;:::-;117595:8;117518:16;:96::i;:::-;117487:127;;117649:23;117631:15;:41;117627:105;;;117696:24;;;;;;;;;;;;;;117627:105;117749:64;117760:20;108260:6;117749:10;:64::i;:::-;117744:127;;117837:22;;;;;;;;;;;;;;117744:127;117908:10;117887:31;;:17;117895:8;117887:7;:17::i;:::-;:31;;;117883:89;;117942:18;;;;;;;;;;;;;;117883:89;118045:1;117988:59;;:19;:29;118008:8;117988:29;;;;;;;;;;;:45;;;;;;;;;;;;:59;;;117984:124;;118071:25;;;;;;;;;;;;;;117984:124;118120:22;118126:8;118136:5;118120;:22::i;:::-;118186:8;118174:10;118160:35;;;;;;;;;;;;117256:947;;117105:1098:::0;;;:::o;19363:100::-;19417:13;19450:5;19443:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19363:100;:::o;25854:218::-;25930:7;25955:16;25963:7;25955;:16::i;:::-;25950:64;;25980:34;;;;;;;;;;;;;;25950:64;26034:15;:24;26050:7;26034:24;;;;;;;;;;;:30;;;;;;;;;;;;26027:37;;25854:218;;;:::o;130701:183::-;130821:8;114566:51;114577:15;107961:6;114566:10;:51::i;:::-;114562:147;;;130842:34:::1;130858:8;130868:7;130842:15;:34::i;:::-;114562:147:::0;;;114675:22;;;;;;;;;;;;;;114562:147;130701:183;;;:::o;91343:495::-;91416:13;91538:8;91532:15;91529:1;91525:23;91510:310;91551:1;91510:310;;;91799:5;91795:1;91790;91780:8;91776:16;91770:23;91766:31;91763:42;91754:51;;91567:4;91564:1;91560:12;91555:17;;91510:310;;;91514:36;91343:495;;;:::o;131782:145::-;131857:21;;:::i;:::-;131898;131911:7;131898:12;:21::i;:::-;131891:28;;131782:145;;;:::o;15114:323::-;15175:7;15403:15;:13;:15::i;:::-;15388:12;;15372:13;;:28;:46;15365:53;;15114:323;:::o;89204:111::-;89276:31;89289:10;89301:5;89276:12;:31::i;:::-;89204:111;:::o;88653:125::-;81633:13;:11;:13::i;:::-;88746:24:::1;88758:4;88764:5;88746:11;:24::i;:::-;88653:125:::0;;:::o;90246:446::-;90325:11;90469:15;90463:4;90456:29;90512:4;90506;90499:18;90668:5;90660;90652:4;90646;90636:21;90630:28;90626:40;90623:51;90613:61;;90246:446;;;;:::o;129706:300::-;129845:46;129856:10;107961:6;129845:10;:46::i;:::-;129840:107;;129915:20;;;;;;;;;;;;;;129840:107;129959:39;129980:4;129986:2;129990:7;129959:20;:39::i;:::-;129706:300;;;:::o;77843:629::-;77938:15;77974:27;:25;:27::i;:::-;77956:45;;:15;:45;77938:63;;78173:19;78167:4;78160:33;78224:8;78218:4;78211:22;78281:7;78274:4;78268;78258:21;78251:38;78430:8;78383:45;78380:1;78377;78372:67;78073:381;77843:629::o;127339:607::-;127584:4;127601:14;127671:8;127698:18;127735:16;127770:11;127800:17;127836:13;127868:5;127642:246;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;127618:281;;;;;;127601:298;;127917:13;:21;127931:6;127917:21;;;;;;;;;;;;;;;;;;;;;127910:28;;;127339:607;;;;;;;;:::o;90743:362::-;90803:13;90949:15;90943:4;90936:29;90992:4;90986;90979:18;91081:4;91075;91065:21;91059:28;91050:37;;90743:362;;;:::o;107912:55::-;107961:6;107912:55;:::o;123217:122::-;81633:13;:11;:13::i;:::-;123280:8:::1;;;;;;;;;;;123279:9;123268:8;;:20;;;;;;;;;;;;;;;;;;123322:8;;;;;;;;;;;123304:27;;;;;;;;;;;;123217:122::o:0;32414:193::-;32560:39;32577:4;32583:2;32587:7;32560:39;;;;;;;;;;;;:16;:39::i;:::-;32414:193;;;:::o;88927:127::-;81633:13;:11;:13::i;:::-;89021:25:::1;89034:4;89040:5;89021:12;:25::i;:::-;88927:127:::0;;:::o;89667:514::-;89745:11;89889:15;89883:4;89876:29;89932:4;89926;89919:18;90155:5;90147:4;90141;90131:21;90125:28;90121:40;90114:48;90107:56;90097:66;;89667:514;;;;:::o;78557:466::-;78763:19;78757:4;78750:33;78810:8;78804:4;78797:22;78863:1;78856:4;78850;78840:21;78833:32;78996:8;78950:44;78947:1;78944;78939:66;78557:466::o;108203:63::-;108260:6;108203:63;:::o;115284:45::-;;;;;;;;;;;;;;;;;;;;;;:::o;123845:144::-;81633:13;:11;:13::i;:::-;123934:7:::1;123918:13;:23;;;;;;:::i;:::-;;123973:7;123959:22;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;123845:144:::0;:::o;128249:746::-;128452:13;128434:15;:31;128430:97;;;128489:26;;;;;;;;;;;;;;128430:97;128539:14;128597:4;128603:2;128607:7;128616:13;128631;128580:65;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;128556:100;;;;;;128539:117;;128669:28;128700:96;128731:31;:6;:29;:31::i;:::-;128777:8;128700:16;:96::i;:::-;128669:127;;128814:64;128825:20;108260:6;128814:10;:64::i;:::-;128809:127;;128902:22;;;;;;;;;;;;;;128809:127;128948:39;128969:4;128975:2;128979:7;128948:20;:39::i;:::-;128419:576;;128249:746;;;;;:::o;20756:152::-;20828:7;20871:27;20890:7;20871:18;:27::i;:::-;20848:52;;20756:152;;;:::o;108051:50::-;108095:6;108051:50;:::o;123513:152::-;81633:13;:11;:13::i;:::-;123589:16:::1;;;;;;;;;;;123588:17;123569:16;;:36;;;;;;;;;;;;;;;;;;123640:16;;;;;;;;;;;123621:36;;;;;;;;;;;;123513:152::o:0;122766:93::-;122808:13;122841:10;:8;:10::i;:::-;122834:17;;122766:93;:::o;16298:233::-;16370:7;16411:1;16394:19;;:5;:19;;;16390:60;;16422:28;;;;;;;;;;;;;;16390:60;10457:13;16468:18;:25;16487:5;16468:25;;;;;;;;;;;;;;;;:55;16461:62;;16298:233;;;:::o;77575:102::-;81633:13;:11;:13::i;:::-;77648:21:::1;77666:1;77648:9;:21::i;:::-;77575:102::o:0;115952:781::-;116115:14;116185:10;116214:3;116236:7;116262:13;116294:23;116156:176;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;116132:211;;;;;;116115:228;;116376:23;116358:15;:41;116354:103;;;116423:22;;;;;;;;;;;;;;116354:103;116486:142;116515:49;116555:8;116515:31;:6;:29;:31::i;:::-;:39;;:49;;;;:::i;:::-;108260:6;116486:10;:142::i;:::-;116467:229;;116662:22;;;;;;;;;;;;;;116467:229;116706:19;116712:3;116717:7;116706:5;:19::i;:::-;116104:629;115952:781;;;;:::o;92078:1077::-;92141:23;92316:4;92310:11;92298:23;;92360:4;92350:8;92346:19;92388:1;92592:5;92577:375;92600:1;92577:375;;;92636:1;92631:3;92624:14;92825:1;92822;92818:9;92815:1;92811:17;92806:3;92802:27;92795:34;;92859:1;92856;92852:9;92847:14;;92891:5;92888:1;92884:13;92879:18;;92925:1;92577:375;92915:22;92577:375;92581:18;93061:4;93051:8;93047:19;93042:3;93038:29;93035:1;93031:37;93021:8;93014:55;93133:3;93127:4;93120:17;92230:918;;92078:1077;;;:::o;115138:28::-;;;;;;;;;;;;;:::o;118885:2250::-;114350:8;;;;;;;;;;;114346:37;;;114367:16;;;;;;;;;;;;;;114346:37;119175:4:::1;119147:33;;:16;:33;;;:67;;;;119212:1;119184:30;;:16;:30;;;119147:67;119129:148;;;119248:17;;;;;;;;;;;;;;119129:148;119337:14;119407:10;119436:18;119473:16;119508:11;119538:17;119574:13;119606:5;119378:248;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;119354:283;;;;;;119337:300;;119732:1;119666:68;;:19;:38;119686:17;119666:38;;;;;;;;;;;;;:54;;;;;;;;;;;;:68;;;119648:167;;119768:35;;;;;;;;;;;;;;119648:167;119844:142;119873:49;119913:8;;119873:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:31;:6;:29;:31::i;:::-;:39;;:49;;;;:::i;:::-;108260:6;119844:10;:142::i;:::-;119825:229;;120020:22;;;;;;;;;;;;;;119825:229;120070:13;:21;120084:6;120070:21;;;;;;;;;;;;;;;;;;;;;120066:87;;;120115:26;;;;;;;;;;;;;;120066:87;120188:15;120167:18;:36;120163:100;;;120227:24;;;;;;;;;;;;;;120163:100;120299:4;120275:13;:21;120289:6;120275:21;;;;;;;;;;;;:28;;;;;;;;;;;;;;;;;;120371:66;120392:10;120412:4;120419:17;120371:66;;:20;:66::i;:::-;120508:16;120499:39;;;120553:10;120586:4;120606:11;120499:129;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;120641:21;120665:14;:12;:14::i;:::-;120641:38;;120800:110;;;;;;;;120825:16;120800:110;;;;;;120856:11;120800:110;;;;;;120882:17;120800:110;;;;::::0;120763:19:::1;:34;120783:13;120763:34;;;;;;;;;;;:147;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;120923:20;120929:10;120941:1;120923:5;:20::i;:::-;121078:13;121046:17;120961:166;;120989:16;120961:166;;;121020:11;121106:10;120961:166;;;;;;;:::i;:::-;;;;;;;;119118:2017;;118885:2250:::0;;;;;;;:::o;125738:609::-;108095:6;94113:25;94132:5;94113:18;:25::i;:::-;125860::::1;125888:19;:35;125908:14;125888:35;;;;;;;;;;;125860:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;126039:4;125954:90;;125962:7;:23;;;125954:40;;;125995:7;:18;;;125954:60;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:90;;;;:157;;;;;126106:4;126061:50;;:33;126069:7;:24;;;126061:33;;:7;:33::i;:::-;:50;;;;125954:157;125936:404;;;126138:28;126144:14;126160:5;126138;:28::i;:::-;126188:19;:35;126208:14;126188:35;;;;;;;;;;;;126181:42:::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;126256:14;126243:28;;;;;;;;;;125936:404;;;126311:17;;;;;;;;;;;;;;125936:404;125849:498;125738:609:::0;;:::o;80282:196::-;80328:14;80443:15;80439:20;80433:27;80423:37;;80282:196;:::o;125037:371::-;81633:13;:11;:13::i;:::-;125141:25:::1;125169:19;:35;125189:14;125169:35;;;;;;;;;;;125141:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;125256:1;125221:37;;:7;:23;;;:37;;::::0;125217:101:::1;;125282:24;;;;;;;;;;;;;;125217:101;125330:4;:17;;;125356:4;125363:10;125375:7;:24;;;125330:70;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;125130:278;125037:371:::0;:::o;122603:93::-;122647:7;122674:14;:12;:14::i;:::-;122667:21;;122603:93;:::o;19539:104::-;19595:13;19628:7;19621:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19539:104;:::o;131413:196::-;131534:8;114566:51;114577:15;107961:6;114566:10;:51::i;:::-;114562:147;;;131555:46:::1;131581:8;131591:9;131555:25;:46::i;:::-;114562:147:::0;;;114675:22;;;;;;;;;;;;;;114562:147;131413:196;;;:::o;115417:57::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;115111:20::-;;;;;;;;;;;;;:::o;33205:407::-;33380:31;33393:4;33399:2;33403:7;33380:12;:31::i;:::-;33444:1;33426:2;:14;;;:19;33422:183;;33465:56;33496:4;33502:2;33506:7;33515:5;33465:30;:56::i;:::-;33460:145;;33549:40;;;;;;;;;;;;;;33460:145;33422:183;33205:407;;;;:::o;19749:318::-;19822:13;19853:16;19861:7;19853;:16::i;:::-;19848:59;;19878:29;;;;;;;;;;;;;;19848:59;19920:21;19944:10;:8;:10::i;:::-;19920:34;;19997:1;19978:7;19972:21;:26;:87;;;;;;;;;;;;;;;;;20025:7;20034:18;20044:7;20034:9;:18::i;:::-;20008:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;19972:87;19965:94;;;19749:318;;;:::o;124247:520::-;81633:13;:11;:13::i;:::-;124328:25:::1;124356:19;:29;124376:8;124356:29;;;;;;;;;;;124328:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;124437:1;124402:37;;:7;:23;;;:37;;::::0;124398:101:::1;;124463:24;;;;;;;;;;;;;;124398:101;124537:7;:23;;;124528:46;;;124601:4;124625:10;124654:7;:18;;;124528:159;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;124511:249;;124726:22;;;;;;;;;;124511:249;;;;124317:450;124247:520:::0;:::o;81127:109::-;81193:6;81219:9;81212:16;;81127:109;:::o;121384:1133::-;114350:8;;;;;;;;;;;114346:37;;;114367:16;;;;;;;;;;;;;;114346:37;121482:10:::1;121455:37;;:23;121463:14;121455:7;:23::i;:::-;:37;;;121451:95;;121516:18;;;;;;;;;;;;;;121451:95;121588:28;121594:14;121610:5;121588;:28::i;:::-;121629:25;121657:19;:35;121677:14;121657:35;;;;;;;;;;;121629:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;121974:4;:17;;;122000:4;122007:10;122019:7;:24;;;121974:70;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;122112:7;:23;;;122103:46;;;122172:4;122192:10;122217:7;:18;;;122103:143;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;122266:19;:35;122286:14;122266:35;;;;;;;;;;;;122259:42:::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;122484:14;122459:10;122319:190;;122420:7;:24;;;122319:190;;;122349:7;:23;;;122387:7;:18;;;122319:190;;;;;;;:::i;:::-;;;;;;;;121440:1077;121384:1133:::0;:::o;26803:164::-;26900:4;26924:18;:25;26943:5;26924:25;;;;;;;;;;;;;;;:35;26950:8;26924:35;;;;;;;;;;;;;;;;;;;;;;;;;26917:42;;26803:164;;;;:::o;79214:724::-;81633:13;:11;:13::i;:::-;79452:19:::1;79446:4;79439:33;79499:12;79493:4;79486:26;79562:4;79556;79546:21;79670:12;79664:19;79651:11;79648:36;79645:160;;;79717:10;79711:4;79704:24;79785:4;79779;79772:18;79645:160;79884:1;79870:12;79863:23;79368:529;79907:23;79917:12;79907:9;:23::i;:::-;79214:724:::0;:::o;77149:358::-;81633:13;:11;:13::i;:::-;77324:8:::1;77320:2;77316:17;77306:153;;77367:10;77361:4;77354:24;77439:4;77433;77426:18;77306:153;77480:19;77490:8;77480:9;:19::i;:::-;77149:358:::0;:::o;126476:776::-;108095:6;94113:25;94132:5;94113:18;:25::i;:::-;126754:14:::1;126824:8;126851:18;126888:16;126923:11;126953:17;126989:13;127021:5;126795:246;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;126771:281;;;;;;126754:298;;127087:4;127063:13;:21;127077:6;127063:21;;;;;;;;;;;;:28;;;;;;;;;;;;;;;;;;127190:11;127109:135;;127159:16;127109:135;;127136:8;127109:135;;;127216:17;127109:135;;;;;;:::i;:::-;;;;;;;;126743:509;126476:776:::0;;;;;;;:::o;80584:449::-;80707:14;80863:19;80857:4;80850:33;80910:12;80904:4;80897:26;81009:4;81003;80993:21;80987:28;80977:38;;80584:449;;;:::o;68114:414::-;68183:14;68347:4;68341;68334:18;68379:50;68373:4;68366:64;68505:4;68499;68489:21;68479:31;;68114:414;;;:::o;61108:1806::-;61216:14;61348:2;61336:9;61330:16;61326:25;61316:1580;;61469:4;61463:11;61564:4;61553:9;61549:20;61543:27;61537:4;61530:41;61627:4;61616:9;61612:20;61606:27;61664:1;61658:4;61651:15;61790:23;61787:1;61784:30;61774:1021;;61915:4;61909;61902:18;62055:4;62044:9;62040:20;62034:27;62031:1;62026:36;62020:4;62013:50;62459:4;62404;62351;62297;62235;62156:5;62115:394;62085:447;62614:1;62608:4;62601:15;62758:16;62752:4;62748:27;62742:34;62732:44;;61774:1021;62879:1;62873:4;62866:15;61353:1543;;61316:1580;61108:1806;;;;:::o;44062:3081::-;44142:27;44172;44191:7;44172:18;:27::i;:::-;44142:57;;44212:12;44243:19;44212:52;;44278:27;44307:23;44334:35;44361:7;44334:26;:35::i;:::-;44277:92;;;;44386:13;44382:316;;;44507:68;44532:15;44549:4;44555:19;:17;:19::i;:::-;44507:24;:68::i;:::-;44502:184;;44599:43;44616:4;44622:19;:17;:19::i;:::-;44599:16;:43::i;:::-;44594:92;;44651:35;;;;;;;;;;;;;;44594:92;44502:184;44382:316;44710:51;44732:4;44746:1;44750:7;44759:1;44710:21;:51::i;:::-;44854:15;44851:160;;;44994:1;44973:19;44966:30;44851:160;45672:1;10722:3;45642:1;:26;;45641:32;45613:18;:24;45632:4;45613:24;;;;;;;;;;;;;;;;:60;;;;;;;;;;;45940:176;45977:4;46048:53;46063:4;46077:1;46081:19;46048:14;:53::i;:::-;11513:8;11233;46001:43;46000:101;45940:18;:176::i;:::-;45911:17;:26;45929:7;45911:26;;;;;;;;;;;:205;;;;46287:1;11513:8;46236:19;:47;:52;46232:627;;46309:19;46341:1;46331:7;:11;46309:33;;46498:1;46464:17;:30;46482:11;46464:30;;;;;;;;;;;;:35;46460:384;;46602:13;;46587:11;:28;46583:242;;46782:19;46749:17;:30;46767:11;46749:30;;;;;;;;;;;:52;;;;46583:242;46460:384;46290:569;46232:627;46914:7;46910:1;46887:35;;46896:4;46887:35;;;;;;;;;;;;46933:50;46954:4;46968:1;46972:7;46981:1;46933:20;:50::i;:::-;47110:12;;:14;;;;;;;;;;;;;44131:3012;;;;44062:3081;;:::o;27225:282::-;27290:4;27346:7;27327:15;:13;:15::i;:::-;:26;;:66;;;;;27380:13;;27370:7;:23;27327:66;:153;;;;;27479:1;11233:8;27431:17;:26;27449:7;27431:26;;;;;;;;;;;;:44;:49;27327:153;27307:173;;27225:282;;;:::o;25287:408::-;25376:13;25392:16;25400:7;25392;:16::i;:::-;25376:32;;25448:5;25425:28;;:19;:17;:19::i;:::-;:28;;;25421:175;;25473:44;25490:5;25497:19;:17;:19::i;:::-;25473:16;:44::i;:::-;25468:128;;25545:35;;;;;;;;;;;;;;25468:128;25421:175;25641:2;25608:15;:24;25624:7;25608:24;;;;;;;;;;;:30;;;:35;;;;;;;;;;;;;;;;;;25679:7;25675:2;25659:28;;25668:5;25659:28;;;;;;;;;;;;25365:330;25287:408;;:::o;21097:166::-;21167:21;;:::i;:::-;21208:47;21227:27;21246:7;21227:18;:27::i;:::-;21208:18;:47::i;:::-;21201:54;;21097:166;;;:::o;131617:93::-;131674:7;131701:1;131694:8;;131617:93;:::o;84749:851::-;84948:15;84942:4;84935:29;84991:4;84985;84978:18;85042:4;85036;85026:21;85127:8;85121:15;85363:5;85349:12;85345:24;85331:12;85327:43;85318:52;;85444:5;85434:8;85427:23;85576:5;85568:4;85562:11;85558:2;85554:20;85522:30;85519:1;85516;85511:71;84881:712;;84749:851;;:::o;76409:373::-;76629:15;76625:20;76619:27;76609:8;76606:41;76596:168;;76681:10;76675:4;76668:24;76744:4;76738;76731:18;76596:168;76409:373::o;83974:635::-;84172:15;84166:4;84159:29;84215:4;84209;84202:18;84266:4;84260;84250:21;84379:5;84368:8;84362:15;84359:26;84350:35;;84453:5;84443:8;84436:23;84585:5;84577:4;84571:11;84567:2;84563:20;84531:30;84528:1;84525;84520:71;84105:497;83974:635;;:::o;29493:2825::-;29635:27;29665;29684:7;29665:18;:27::i;:::-;29635:57;;29750:4;29709:45;;29725:19;29709:45;;;29705:86;;29763:28;;;;;;;;;;;;;;29705:86;29805:27;29834:23;29861:35;29888:7;29861:26;:35::i;:::-;29804:92;;;;29996:68;30021:15;30038:4;30044:19;:17;:19::i;:::-;29996:24;:68::i;:::-;29991:180;;30084:43;30101:4;30107:19;:17;:19::i;:::-;30084:16;:43::i;:::-;30079:92;;30136:35;;;;;;;;;;;;;;30079:92;29991:180;30202:1;30188:16;;:2;:16;;;30184:52;;30213:23;;;;;;;;;;;;;;30184:52;30249:43;30271:4;30277:2;30281:7;30290:1;30249:21;:43::i;:::-;30385:15;30382:160;;;30525:1;30504:19;30497:30;30382:160;30922:18;:24;30941:4;30922:24;;;;;;;;;;;;;;;;30920:26;;;;;;;;;;;;30991:18;:22;31010:2;30991:22;;;;;;;;;;;;;;;;30989:24;;;;;;;;;;;31313:146;31350:2;31399:45;31414:4;31420:2;31424:19;31399:14;:45::i;:::-;11513:8;31371:73;31313:18;:146::i;:::-;31284:17;:26;31302:7;31284:26;;;;;;;;;;;:175;;;;31630:1;11513:8;31579:19;:47;:52;31575:627;;31652:19;31684:1;31674:7;:11;31652:33;;31841:1;31807:17;:30;31825:11;31807:30;;;;;;;;;;;;:35;31803:384;;31945:13;;31930:11;:28;31926:242;;32125:19;32092:17;:30;32110:11;32092:30;;;;;;;;;;;:52;;;;31926:242;31803:384;31633:569;31575:627;32249:7;32245:2;32230:27;;32239:4;32230:27;;;;;;;;;;;;32268:42;32289:4;32295:2;32299:7;32308:1;32268:20;:42::i;:::-;29624:2694;;;29493:2825;;;:::o;21911:1275::-;21978:7;21998:12;22013:7;21998:22;;22081:4;22062:15;:13;:15::i;:::-;:23;22058:1061;;22115:13;;22108:4;:20;22104:1015;;;22153:14;22170:17;:23;22188:4;22170:23;;;;;;;;;;;;22153:40;;22287:1;11233:8;22259:6;:24;:29;22255:845;;22924:113;22941:1;22931:6;:11;22924:113;;22984:17;:25;23002:6;;;;;;;22984:25;;;;;;;;;;;;22975:34;;22924:113;;;23070:6;23063:13;;;;;;22255:845;22130:989;22104:1015;22058:1061;23147:31;;;;;;;;;;;;;;21911:1275;;;;:::o;130076:106::-;130128:13;130161;130154:20;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;130076:106;:::o;75842:506::-;75996:15;75992:20;76095:8;76091:2;76087:17;76083:2;76079:26;76067:38;;76243:8;76231:9;76225:16;76185:38;76182:1;76179;76174:78;76321:8;76310:9;76303:27;75960:381;75842:506;:::o;53507:1904::-;53585:14;53773:4;53767:11;53860:4;53849:9;53845:20;53839:27;53833:4;53826:41;53919:4;53908:9;53904:20;53898:27;53952:1;53946:4;53939:15;54036:4;54030;54023:18;54160:4;54149:9;54145:20;54139:27;54136:1;54131:36;54125:4;54118:50;54812:4;54765;54720;54674;54598:1;54573:23;54569:31;54566:1;54563:38;54435:2;54423:9;54417:16;54414:24;54308:316;54237:5;54204:650;54182:687;54899:4;54893:11;54883:21;;55014:16;55004:243;;55137:10;55131:4;55124:24;55227:4;55221;55214:18;55004:243;55313:1;55307:4;55300:15;55391:1;55385:4;55378:15;53665:1739;;53507:1904;;;;:::o;36874:2966::-;36947:20;36970:13;;36947:36;;37010:1;36998:8;:13;36994:44;;37020:18;;;;;;;;;;;;;;36994:44;37051:61;37081:1;37085:2;37089:12;37103:8;37051:21;:61::i;:::-;37595:1;10595:2;37565:1;:26;;37564:32;37552:8;:45;37526:18;:22;37545:2;37526:22;;;;;;;;;;;;;;;;:71;;;;;;;;;;;37874:139;37911:2;37965:33;37988:1;37992:2;37996:1;37965:14;:33::i;:::-;37932:30;37953:8;37932:20;:30::i;:::-;:66;37874:18;:139::i;:::-;37840:17;:31;37858:12;37840:31;;;;;;;;;;;:173;;;;38030:16;38061:11;38090:8;38075:12;:23;38061:37;;38611:16;38607:2;38603:25;38591:37;;38983:12;38943:8;38902:1;38840:25;38781:1;38720;38693:335;39354:1;39340:12;39336:20;39294:346;39395:3;39386:7;39383:16;39294:346;;39613:7;39603:8;39600:1;39573:25;39570:1;39567;39562:59;39448:1;39439:7;39435:15;39424:26;;39294:346;;;39298:77;39685:1;39673:8;:13;39669:45;;39695:19;;;;;;;;;;;;;;39669:45;39747:3;39731:13;:19;;;;37300:2462;;39772:60;39801:1;39805:2;39809:12;39823:8;39772:20;:60::i;:::-;36936:2904;36874:2966;;:::o;14801:103::-;14856:7;14883:13;;14876:20;;14801:103;:::o;87413:807::-;87609:15;87603:4;87596:29;87652:8;87646:4;87639:22;87846:5;87838:4;87832;87822:21;87816:28;87812:40;87802:400;;88040:15;88036:20;88030:27;88020:8;88017:41;88007:180;;88096:10;88090:4;88083:24;88163:4;88157;88150:18;88007:180;87802:400;87413:807;:::o;26412:234::-;26559:8;26507:18;:39;26526:19;:17;:19::i;:::-;26507:39;;;;;;;;;;;;;;;:49;26547:8;26507:49;;;;;;;;;;;;;;;;:60;;;;;;;;;;;;;;;;;;26619:8;26583:55;;26598:19;:17;:19::i;:::-;26583:55;;;26629:8;26583:55;;;;;;:::i;:::-;;;;;;;;26412:234;;:::o;35696:716::-;35859:4;35905:2;35880:45;;;35926:19;:17;:19::i;:::-;35947:4;35953:7;35962:5;35880:88;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;35876:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36180:1;36163:6;:13;:18;36159:235;;36209:40;;;;;;;;;;;;;;36159:235;36352:6;36346:13;36337:6;36333:2;36329:15;36322:38;35876:529;36049:54;;;36039:64;;;:6;:64;;;;36032:71;;;35696:716;;;;;;:::o;49740:1745::-;49805:17;50239:4;50232;50226:11;50222:22;50331:1;50325:4;50318:15;50406:4;50403:1;50399:12;50392:19;;50488:1;50483:3;50476:14;50592:3;50831:5;50813:428;50839:1;50813:428;;;50879:1;50874:3;50870:11;50863:18;;51050:2;51044:4;51040:13;51036:2;51032:22;51027:3;51019:36;51144:2;51138:4;51134:13;51126:21;;51211:4;50813:428;51201:25;50813:428;50817:21;51280:3;51275;51271:13;51395:4;51390:3;51386:14;51379:21;;51460:6;51455:3;51448:19;49844:1634;;;49740:1745;;;:::o;28388:485::-;28490:27;28519:23;28560:38;28601:15;:24;28617:7;28601:24;;;;;;;;;;;28560:65;;28778:18;28755:41;;28835:19;28829:26;28810:45;;28740:126;28388:485;;;:::o;49533:105::-;49593:7;49620:10;49613:17;;49533:105;:::o;27616:659::-;27765:11;27930:16;27923:5;27919:28;27910:37;;28090:16;28079:9;28075:32;28062:45;;28240:15;28229:9;28226:30;28218:5;28207:9;28204:20;28201:56;28191:66;;27616:659;;;;;:::o;34274:159::-;;;;;:::o;48842:311::-;48977:7;48997:16;11637:3;49023:19;:41;;48997:68;;11637:3;49091:31;49102:4;49108:2;49112:9;49091:10;:31::i;:::-;49083:40;;:62;;49076:69;;;48842:311;;;;;:::o;23734:450::-;23814:14;23982:16;23975:5;23971:28;23962:37;;24159:5;24145:11;24120:23;24116:41;24113:52;24106:5;24103:63;24093:73;;23734:450;;;;:::o;35098:158::-;;;;;:::o;23285:366::-;23351:31;;:::i;:::-;23428:6;23395:9;:14;;:41;;;;;;;;;;;11116:3;23481:6;:33;;23447:9;:24;;:68;;;;;;;;;;;23573:1;11233:8;23545:6;:24;:29;;23526:9;:16;;:48;;;;;;;;;;;11637:3;23614:6;:28;;23585:9;:19;;:58;;;;;;;;;;;23285:366;;;:::o;24286:324::-;24356:14;24589:1;24579:8;24576:15;24550:24;24546:46;24536:56;;24286:324;;;:::o;48543:147::-;48680:6;48543:147;;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;7:75:1:-;40:6;73:2;67:9;57:19;;7:75;:::o;88:117::-;197:1;194;187:12;211:117;320:1;317;310:12;334:149;370:7;410:66;403:5;399:78;388:89;;334:149;;;:::o;489:120::-;561:23;578:5;561:23;:::i;:::-;554:5;551:34;541:62;;599:1;596;589:12;541:62;489:120;:::o;615:137::-;660:5;698:6;685:20;676:29;;714:32;740:5;714:32;:::i;:::-;615:137;;;;:::o;758:327::-;816:6;865:2;853:9;844:7;840:23;836:32;833:119;;;871:79;;:::i;:::-;833:119;991:1;1016:52;1060:7;1051:6;1040:9;1036:22;1016:52;:::i;:::-;1006:62;;962:116;758:327;;;;:::o;1091:90::-;1125:7;1168:5;1161:13;1154:21;1143:32;;1091:90;;;:::o;1187:109::-;1268:21;1283:5;1268:21;:::i;:::-;1263:3;1256:34;1187:109;;:::o;1302:210::-;1389:4;1427:2;1416:9;1412:18;1404:26;;1440:65;1502:1;1491:9;1487:17;1478:6;1440:65;:::i;:::-;1302:210;;;;:::o;1518:77::-;1555:7;1584:5;1573:16;;1518:77;;;:::o;1601:122::-;1674:24;1692:5;1674:24;:::i;:::-;1667:5;1664:35;1654:63;;1713:1;1710;1703:12;1654:63;1601:122;:::o;1729:139::-;1775:5;1813:6;1800:20;1791:29;;1829:33;1856:5;1829:33;:::i;:::-;1729:139;;;;:::o;1874:117::-;1983:1;1980;1973:12;1997:117;2106:1;2103;2096:12;2120:102;2161:6;2212:2;2208:7;2203:2;2196:5;2192:14;2188:28;2178:38;;2120:102;;;:::o;2228:180::-;2276:77;2273:1;2266:88;2373:4;2370:1;2363:15;2397:4;2394:1;2387:15;2414:281;2497:27;2519:4;2497:27;:::i;:::-;2489:6;2485:40;2627:6;2615:10;2612:22;2591:18;2579:10;2576:34;2573:62;2570:88;;;2638:18;;:::i;:::-;2570:88;2678:10;2674:2;2667:22;2457:238;2414:281;;:::o;2701:129::-;2735:6;2762:20;;:::i;:::-;2752:30;;2791:33;2819:4;2811:6;2791:33;:::i;:::-;2701:129;;;:::o;2836:307::-;2897:4;2987:18;2979:6;2976:30;2973:56;;;3009:18;;:::i;:::-;2973:56;3047:29;3069:6;3047:29;:::i;:::-;3039:37;;3131:4;3125;3121:15;3113:23;;2836:307;;;:::o;3149:146::-;3246:6;3241:3;3236;3223:30;3287:1;3278:6;3273:3;3269:16;3262:27;3149:146;;;:::o;3301:423::-;3378:5;3403:65;3419:48;3460:6;3419:48;:::i;:::-;3403:65;:::i;:::-;3394:74;;3491:6;3484:5;3477:21;3529:4;3522:5;3518:16;3567:3;3558:6;3553:3;3549:16;3546:25;3543:112;;;3574:79;;:::i;:::-;3543:112;3664:54;3711:6;3706:3;3701;3664:54;:::i;:::-;3384:340;3301:423;;;;;:::o;3743:338::-;3798:5;3847:3;3840:4;3832:6;3828:17;3824:27;3814:122;;3855:79;;:::i;:::-;3814:122;3972:6;3959:20;3997:78;4071:3;4063:6;4056:4;4048:6;4044:17;3997:78;:::i;:::-;3988:87;;3804:277;3743:338;;;;:::o;4087:797::-;4173:6;4181;4189;4238:2;4226:9;4217:7;4213:23;4209:32;4206:119;;;4244:79;;:::i;:::-;4206:119;4364:1;4389:53;4434:7;4425:6;4414:9;4410:22;4389:53;:::i;:::-;4379:63;;4335:117;4491:2;4517:53;4562:7;4553:6;4542:9;4538:22;4517:53;:::i;:::-;4507:63;;4462:118;4647:2;4636:9;4632:18;4619:32;4678:18;4670:6;4667:30;4664:117;;;4700:79;;:::i;:::-;4664:117;4805:62;4859:7;4850:6;4839:9;4835:22;4805:62;:::i;:::-;4795:72;;4590:287;4087:797;;;;;:::o;4890:99::-;4942:6;4976:5;4970:12;4960:22;;4890:99;;;:::o;4995:169::-;5079:11;5113:6;5108:3;5101:19;5153:4;5148:3;5144:14;5129:29;;4995:169;;;;:::o;5170:246::-;5251:1;5261:113;5275:6;5272:1;5269:13;5261:113;;;5360:1;5355:3;5351:11;5345:18;5341:1;5336:3;5332:11;5325:39;5297:2;5294:1;5290:10;5285:15;;5261:113;;;5408:1;5399:6;5394:3;5390:16;5383:27;5232:184;5170:246;;;:::o;5422:377::-;5510:3;5538:39;5571:5;5538:39;:::i;:::-;5593:71;5657:6;5652:3;5593:71;:::i;:::-;5586:78;;5673:65;5731:6;5726:3;5719:4;5712:5;5708:16;5673:65;:::i;:::-;5763:29;5785:6;5763:29;:::i;:::-;5758:3;5754:39;5747:46;;5514:285;5422:377;;;;:::o;5805:313::-;5918:4;5956:2;5945:9;5941:18;5933:26;;6005:9;5999:4;5995:20;5991:1;5980:9;5976:17;5969:47;6033:78;6106:4;6097:6;6033:78;:::i;:::-;6025:86;;5805:313;;;;:::o;6124:329::-;6183:6;6232:2;6220:9;6211:7;6207:23;6203:32;6200:119;;;6238:79;;:::i;:::-;6200:119;6358:1;6383:53;6428:7;6419:6;6408:9;6404:22;6383:53;:::i;:::-;6373:63;;6329:117;6124:329;;;;:::o;6459:126::-;6496:7;6536:42;6529:5;6525:54;6514:65;;6459:126;;;:::o;6591:96::-;6628:7;6657:24;6675:5;6657:24;:::i;:::-;6646:35;;6591:96;;;:::o;6693:118::-;6780:24;6798:5;6780:24;:::i;:::-;6775:3;6768:37;6693:118;;:::o;6817:222::-;6910:4;6948:2;6937:9;6933:18;6925:26;;6961:71;7029:1;7018:9;7014:17;7005:6;6961:71;:::i;:::-;6817:222;;;;:::o;7045:122::-;7118:24;7136:5;7118:24;:::i;:::-;7111:5;7108:35;7098:63;;7157:1;7154;7147:12;7098:63;7045:122;:::o;7173:139::-;7219:5;7257:6;7244:20;7235:29;;7273:33;7300:5;7273:33;:::i;:::-;7173:139;;;;:::o;7318:474::-;7386:6;7394;7443:2;7431:9;7422:7;7418:23;7414:32;7411:119;;;7449:79;;:::i;:::-;7411:119;7569:1;7594:53;7639:7;7630:6;7619:9;7615:22;7594:53;:::i;:::-;7584:63;;7540:117;7696:2;7722:53;7767:7;7758:6;7747:9;7743:22;7722:53;:::i;:::-;7712:63;;7667:118;7318:474;;;;;:::o;7798:309::-;7873:4;7963:18;7955:6;7952:30;7949:56;;;7985:18;;:::i;:::-;7949:56;8035:4;8027:6;8023:17;8015:25;;8095:4;8089;8085:15;8077:23;;7798:309;;;:::o;8113:117::-;8222:1;8219;8212:12;8236:86;8271:7;8311:4;8304:5;8300:16;8289:27;;8236:86;;;:::o;8328:118::-;8399:22;8415:5;8399:22;:::i;:::-;8392:5;8389:33;8379:61;;8436:1;8433;8426:12;8379:61;8328:118;:::o;8452:135::-;8496:5;8534:6;8521:20;8512:29;;8550:31;8575:5;8550:31;:::i;:::-;8452:135;;;;:::o;8608:704::-;8702:5;8727:79;8743:62;8798:6;8743:62;:::i;:::-;8727:79;:::i;:::-;8718:88;;8826:5;8855:6;8848:5;8841:21;8889:4;8882:5;8878:16;8871:23;;8942:4;8934:6;8930:17;8922:6;8918:30;8971:3;8963:6;8960:15;8957:122;;;8990:79;;:::i;:::-;8957:122;9105:6;9088:218;9122:6;9117:3;9114:15;9088:218;;;9197:3;9226:35;9257:3;9245:10;9226:35;:::i;:::-;9221:3;9214:48;9291:4;9286:3;9282:14;9275:21;;9164:142;9148:4;9143:3;9139:14;9132:21;;9088:218;;;9092:21;8708:604;;8608:704;;;;;:::o;9333:366::-;9402:5;9451:3;9444:4;9436:6;9432:17;9428:27;9418:122;;9459:79;;:::i;:::-;9418:122;9576:6;9563:20;9601:92;9689:3;9681:6;9674:4;9666:6;9662:17;9601:92;:::i;:::-;9592:101;;9408:291;9333:366;;;;:::o;9705:535::-;9787:6;9836:2;9824:9;9815:7;9811:23;9807:32;9804:119;;;9842:79;;:::i;:::-;9804:119;9990:1;9979:9;9975:17;9962:31;10020:18;10012:6;10009:30;10006:117;;;10042:79;;:::i;:::-;10006:117;10147:76;10215:7;10206:6;10195:9;10191:22;10147:76;:::i;:::-;10137:86;;9933:300;9705:535;;;;:::o;10246:118::-;10333:24;10351:5;10333:24;:::i;:::-;10328:3;10321:37;10246:118;;:::o;10370:222::-;10463:4;10501:2;10490:9;10486:18;10478:26;;10514:71;10582:1;10571:9;10567:17;10558:6;10514:71;:::i;:::-;10370:222;;;;:::o;10598:108::-;10675:24;10693:5;10675:24;:::i;:::-;10670:3;10663:37;10598:108;;:::o;10712:101::-;10748:7;10788:18;10781:5;10777:30;10766:41;;10712:101;;;:::o;10819:105::-;10894:23;10911:5;10894:23;:::i;:::-;10889:3;10882:36;10819:105;;:::o;10930:99::-;11001:21;11016:5;11001:21;:::i;:::-;10996:3;10989:34;10930:99;;:::o;11035:91::-;11071:7;11111:8;11104:5;11100:20;11089:31;;11035:91;;;:::o;11132:105::-;11207:23;11224:5;11207:23;:::i;:::-;11202:3;11195:36;11132:105;;:::o;11315:872::-;11472:4;11467:3;11463:14;11559:4;11552:5;11548:16;11542:23;11578:63;11635:4;11630:3;11626:14;11612:12;11578:63;:::i;:::-;11487:164;11743:4;11736:5;11732:16;11726:23;11762:61;11817:4;11812:3;11808:14;11794:12;11762:61;:::i;:::-;11661:172;11917:4;11910:5;11906:16;11900:23;11936:57;11987:4;11982:3;11978:14;11964:12;11936:57;:::i;:::-;11843:160;12090:4;12083:5;12079:16;12073:23;12109:61;12164:4;12159:3;12155:14;12141:12;12109:61;:::i;:::-;12013:167;11441:746;11315:872;;:::o;12193:343::-;12346:4;12384:3;12373:9;12369:19;12361:27;;12398:131;12526:1;12515:9;12511:17;12502:6;12398:131;:::i;:::-;12193:343;;;;:::o;12542:619::-;12619:6;12627;12635;12684:2;12672:9;12663:7;12659:23;12655:32;12652:119;;;12690:79;;:::i;:::-;12652:119;12810:1;12835:53;12880:7;12871:6;12860:9;12856:22;12835:53;:::i;:::-;12825:63;;12781:117;12937:2;12963:53;13008:7;12999:6;12988:9;12984:22;12963:53;:::i;:::-;12953:63;;12908:118;13065:2;13091:53;13136:7;13127:6;13116:9;13112:22;13091:53;:::i;:::-;13081:63;;13036:118;12542:619;;;;;:::o;13167:97::-;13203:7;13243:14;13236:5;13232:26;13221:37;;13167:97;;;:::o;13270:120::-;13342:23;13359:5;13342:23;:::i;:::-;13335:5;13332:34;13322:62;;13380:1;13377;13370:12;13322:62;13270:120;:::o;13396:137::-;13441:5;13479:6;13466:20;13457:29;;13495:32;13521:5;13495:32;:::i;:::-;13396:137;;;;:::o;13539:1053::-;13641:6;13649;13657;13665;13673;13681;13730:3;13718:9;13709:7;13705:23;13701:33;13698:120;;;13737:79;;:::i;:::-;13698:120;13857:1;13882:53;13927:7;13918:6;13907:9;13903:22;13882:53;:::i;:::-;13872:63;;13828:117;13984:2;14010:53;14055:7;14046:6;14035:9;14031:22;14010:53;:::i;:::-;14000:63;;13955:118;14112:2;14138:53;14183:7;14174:6;14163:9;14159:22;14138:53;:::i;:::-;14128:63;;14083:118;14240:2;14266:52;14310:7;14301:6;14290:9;14286:22;14266:52;:::i;:::-;14256:62;;14211:117;14367:3;14394:52;14438:7;14429:6;14418:9;14414:22;14394:52;:::i;:::-;14384:62;;14338:118;14495:3;14522:53;14567:7;14558:6;14547:9;14543:22;14522:53;:::i;:::-;14512:63;;14466:119;13539:1053;;;;;;;;:::o;14598:329::-;14657:6;14706:2;14694:9;14685:7;14681:23;14677:32;14674:119;;;14712:79;;:::i;:::-;14674:119;14832:1;14857:53;14902:7;14893:6;14882:9;14878:22;14857:53;:::i;:::-;14847:63;;14803:117;14598:329;;;;:::o;14933:77::-;14970:7;14999:5;14988:16;;14933:77;;;:::o;15016:122::-;15089:24;15107:5;15089:24;:::i;:::-;15082:5;15079:35;15069:63;;15128:1;15125;15118:12;15069:63;15016:122;:::o;15144:139::-;15190:5;15228:6;15215:20;15206:29;;15244:33;15271:5;15244:33;:::i;:::-;15144:139;;;;:::o;15289:329::-;15348:6;15397:2;15385:9;15376:7;15372:23;15368:32;15365:119;;;15403:79;;:::i;:::-;15365:119;15523:1;15548:53;15593:7;15584:6;15573:9;15569:22;15548:53;:::i;:::-;15538:63;;15494:117;15289:329;;;;:::o;15624:308::-;15686:4;15776:18;15768:6;15765:30;15762:56;;;15798:18;;:::i;:::-;15762:56;15836:29;15858:6;15836:29;:::i;:::-;15828:37;;15920:4;15914;15910:15;15902:23;;15624:308;;;:::o;15938:425::-;16016:5;16041:66;16057:49;16099:6;16057:49;:::i;:::-;16041:66;:::i;:::-;16032:75;;16130:6;16123:5;16116:21;16168:4;16161:5;16157:16;16206:3;16197:6;16192:3;16188:16;16185:25;16182:112;;;16213:79;;:::i;:::-;16182:112;16303:54;16350:6;16345:3;16340;16303:54;:::i;:::-;16022:341;15938:425;;;;;:::o;16383:340::-;16439:5;16488:3;16481:4;16473:6;16469:17;16465:27;16455:122;;16496:79;;:::i;:::-;16455:122;16613:6;16600:20;16638:79;16713:3;16705:6;16698:4;16690:6;16686:17;16638:79;:::i;:::-;16629:88;;16445:278;16383:340;;;;:::o;16729:509::-;16798:6;16847:2;16835:9;16826:7;16822:23;16818:32;16815:119;;;16853:79;;:::i;:::-;16815:119;17001:1;16990:9;16986:17;16973:31;17031:18;17023:6;17020:30;17017:117;;;17053:79;;:::i;:::-;17017:117;17158:63;17213:7;17204:6;17193:9;17189:22;17158:63;:::i;:::-;17148:73;;16944:287;16729:509;;;;:::o;17244:1089::-;17348:6;17356;17364;17372;17380;17429:3;17417:9;17408:7;17404:23;17400:33;17397:120;;;17436:79;;:::i;:::-;17397:120;17556:1;17581:53;17626:7;17617:6;17606:9;17602:22;17581:53;:::i;:::-;17571:63;;17527:117;17683:2;17709:53;17754:7;17745:6;17734:9;17730:22;17709:53;:::i;:::-;17699:63;;17654:118;17811:2;17837:53;17882:7;17873:6;17862:9;17858:22;17837:53;:::i;:::-;17827:63;;17782:118;17939:2;17965:53;18010:7;18001:6;17990:9;17986:22;17965:53;:::i;:::-;17955:63;;17910:118;18095:3;18084:9;18080:19;18067:33;18127:18;18119:6;18116:30;18113:117;;;18149:79;;:::i;:::-;18113:117;18254:62;18308:7;18299:6;18288:9;18284:22;18254:62;:::i;:::-;18244:72;;18038:288;17244:1089;;;;;;;;:::o;18339:943::-;18434:6;18442;18450;18458;18507:3;18495:9;18486:7;18482:23;18478:33;18475:120;;;18514:79;;:::i;:::-;18475:120;18634:1;18659:53;18704:7;18695:6;18684:9;18680:22;18659:53;:::i;:::-;18649:63;;18605:117;18761:2;18787:53;18832:7;18823:6;18812:9;18808:22;18787:53;:::i;:::-;18777:63;;18732:118;18889:2;18915:53;18960:7;18951:6;18940:9;18936:22;18915:53;:::i;:::-;18905:63;;18860:118;19045:2;19034:9;19030:18;19017:32;19076:18;19068:6;19065:30;19062:117;;;19098:79;;:::i;:::-;19062:117;19203:62;19257:7;19248:6;19237:9;19233:22;19203:62;:::i;:::-;19193:72;;18988:287;18339:943;;;;;;;:::o;19288:112::-;19353:6;19387:5;19381:12;19371:22;;19288:112;;;:::o;19406:182::-;19503:11;19537:6;19532:3;19525:19;19577:4;19572:3;19568:14;19553:29;;19406:182;;;;:::o;19594:130::-;19659:4;19682:3;19674:11;;19712:4;19707:3;19703:14;19695:22;;19594:130;;;:::o;19730:102::-;19803:22;19819:5;19803:22;:::i;:::-;19798:3;19791:35;19730:102;;:::o;19838:171::-;19903:10;19924:42;19962:3;19954:6;19924:42;:::i;:::-;19998:4;19993:3;19989:14;19975:28;;19838:171;;;;:::o;20015:111::-;20083:4;20115;20110:3;20106:14;20098:22;;20015:111;;;:::o;20158:716::-;20273:3;20302:52;20348:5;20302:52;:::i;:::-;20370:84;20447:6;20442:3;20370:84;:::i;:::-;20363:91;;20478:54;20526:5;20478:54;:::i;:::-;20555:7;20586:1;20571:278;20596:6;20593:1;20590:13;20571:278;;;20672:6;20666:13;20699:59;20754:3;20739:13;20699:59;:::i;:::-;20692:66;;20781:58;20832:6;20781:58;:::i;:::-;20771:68;;20631:218;20618:1;20615;20611:9;20606:14;;20571:278;;;20575:14;20865:3;20858:10;;20278:596;;;20158:716;;;;:::o;20880:365::-;21019:4;21057:2;21046:9;21042:18;21034:26;;21106:9;21100:4;21096:20;21092:1;21081:9;21077:17;21070:47;21134:104;21233:4;21224:6;21134:104;:::i;:::-;21126:112;;20880:365;;;;:::o;21251:117::-;21360:1;21357;21350:12;21387:552;21444:8;21454:6;21504:3;21497:4;21489:6;21485:17;21481:27;21471:122;;21512:79;;:::i;:::-;21471:122;21625:6;21612:20;21602:30;;21655:18;21647:6;21644:30;21641:117;;;21677:79;;:::i;:::-;21641:117;21791:4;21783:6;21779:17;21767:29;;21845:3;21837:4;21829:6;21825:17;21815:8;21811:32;21808:41;21805:128;;;21852:79;;:::i;:::-;21805:128;21387:552;;;;;:::o;21945:1251::-;22058:6;22066;22074;22082;22090;22098;22106;22155:3;22143:9;22134:7;22130:23;22126:33;22123:120;;;22162:79;;:::i;:::-;22123:120;22282:1;22307:53;22352:7;22343:6;22332:9;22328:22;22307:53;:::i;:::-;22297:63;;22253:117;22409:2;22435:53;22480:7;22471:6;22460:9;22456:22;22435:53;:::i;:::-;22425:63;;22380:118;22537:2;22563:52;22607:7;22598:6;22587:9;22583:22;22563:52;:::i;:::-;22553:62;;22508:117;22664:2;22690:52;22734:7;22725:6;22714:9;22710:22;22690:52;:::i;:::-;22680:62;;22635:117;22791:3;22818:53;22863:7;22854:6;22843:9;22839:22;22818:53;:::i;:::-;22808:63;;22762:119;22948:3;22937:9;22933:19;22920:33;22980:18;22972:6;22969:30;22966:117;;;23002:79;;:::i;:::-;22966:117;23115:64;23171:7;23162:6;23151:9;23147:22;23115:64;:::i;:::-;23097:82;;;;22891:298;21945:1251;;;;;;;;;;:::o;23202:116::-;23272:21;23287:5;23272:21;:::i;:::-;23265:5;23262:32;23252:60;;23308:1;23305;23298:12;23252:60;23202:116;:::o;23324:133::-;23367:5;23405:6;23392:20;23383:29;;23421:30;23445:5;23421:30;:::i;:::-;23324:133;;;;:::o;23463:468::-;23528:6;23536;23585:2;23573:9;23564:7;23560:23;23556:32;23553:119;;;23591:79;;:::i;:::-;23553:119;23711:1;23736:53;23781:7;23772:6;23761:9;23757:22;23736:53;:::i;:::-;23726:63;;23682:117;23838:2;23864:50;23906:7;23897:6;23886:9;23882:22;23864:50;:::i;:::-;23854:60;;23809:115;23463:468;;;;;:::o;23937:115::-;24022:23;24039:5;24022:23;:::i;:::-;24017:3;24010:36;23937:115;;:::o;24058:434::-;24203:4;24241:2;24230:9;24226:18;24218:26;;24254:71;24322:1;24311:9;24307:17;24298:6;24254:71;:::i;:::-;24335:70;24401:2;24390:9;24386:18;24377:6;24335:70;:::i;:::-;24415;24481:2;24470:9;24466:18;24457:6;24415:70;:::i;:::-;24058:434;;;;;;:::o;24498:943::-;24593:6;24601;24609;24617;24666:3;24654:9;24645:7;24641:23;24637:33;24634:120;;;24673:79;;:::i;:::-;24634:120;24793:1;24818:53;24863:7;24854:6;24843:9;24839:22;24818:53;:::i;:::-;24808:63;;24764:117;24920:2;24946:53;24991:7;24982:6;24971:9;24967:22;24946:53;:::i;:::-;24936:63;;24891:118;25048:2;25074:53;25119:7;25110:6;25099:9;25095:22;25074:53;:::i;:::-;25064:63;;25019:118;25204:2;25193:9;25189:18;25176:32;25235:18;25227:6;25224:30;25221:117;;;25257:79;;:::i;:::-;25221:117;25362:62;25416:7;25407:6;25396:9;25392:22;25362:62;:::i;:::-;25352:72;;25147:287;24498:943;;;;;;;:::o;25447:115::-;25532:23;25549:5;25532:23;:::i;:::-;25527:3;25520:36;25447:115;;:::o;25568:218::-;25659:4;25697:2;25686:9;25682:18;25674:26;;25710:69;25776:1;25765:9;25761:17;25752:6;25710:69;:::i;:::-;25568:218;;;;:::o;25792:474::-;25860:6;25868;25917:2;25905:9;25896:7;25892:23;25888:32;25885:119;;;25923:79;;:::i;:::-;25885:119;26043:1;26068:53;26113:7;26104:6;26093:9;26089:22;26068:53;:::i;:::-;26058:63;;26014:117;26170:2;26196:53;26241:7;26232:6;26221:9;26217:22;26196:53;:::i;:::-;26186:63;;26141:118;25792:474;;;;;:::o;26272:553::-;26449:4;26487:3;26476:9;26472:19;26464:27;;26501:71;26569:1;26558:9;26554:17;26545:6;26501:71;:::i;:::-;26582:72;26650:2;26639:9;26635:18;26626:6;26582:72;:::i;:::-;26664;26732:2;26721:9;26717:18;26708:6;26664:72;:::i;:::-;26746;26814:2;26803:9;26799:18;26790:6;26746:72;:::i;:::-;26272:553;;;;;;;:::o;26831:180::-;26879:77;26876:1;26869:88;26976:4;26973:1;26966:15;27000:4;26997:1;26990:15;27017:320;27061:6;27098:1;27092:4;27088:12;27078:22;;27145:1;27139:4;27135:12;27166:18;27156:81;;27222:4;27214:6;27210:17;27200:27;;27156:81;27284:2;27276:6;27273:14;27253:18;27250:38;27247:84;;27303:18;;:::i;:::-;27247:84;27068:269;27017:320;;;:::o;27343:878::-;27600:4;27638:3;27627:9;27623:19;27615:27;;27652:71;27720:1;27709:9;27705:17;27696:6;27652:71;:::i;:::-;27733:72;27801:2;27790:9;27786:18;27777:6;27733:72;:::i;:::-;27815;27883:2;27872:9;27868:18;27859:6;27815:72;:::i;:::-;27897:70;27963:2;27952:9;27948:18;27939:6;27897:70;:::i;:::-;27977:71;28043:3;28032:9;28028:19;28019:6;27977:71;:::i;:::-;28058:73;28126:3;28115:9;28111:19;28102:6;28058:73;:::i;:::-;28141;28209:3;28198:9;28194:19;28185:6;28141:73;:::i;:::-;27343:878;;;;;;;;;;:::o;28227:141::-;28276:4;28299:3;28291:11;;28322:3;28319:1;28312:14;28356:4;28353:1;28343:18;28335:26;;28227:141;;;:::o;28374:93::-;28411:6;28458:2;28453;28446:5;28442:14;28438:23;28428:33;;28374:93;;;:::o;28473:107::-;28517:8;28567:5;28561:4;28557:16;28536:37;;28473:107;;;;:::o;28586:393::-;28655:6;28705:1;28693:10;28689:18;28728:97;28758:66;28747:9;28728:97;:::i;:::-;28846:39;28876:8;28865:9;28846:39;:::i;:::-;28834:51;;28918:4;28914:9;28907:5;28903:21;28894:30;;28967:4;28957:8;28953:19;28946:5;28943:30;28933:40;;28662:317;;28586:393;;;;;:::o;28985:60::-;29013:3;29034:5;29027:12;;28985:60;;;:::o;29051:142::-;29101:9;29134:53;29152:34;29161:24;29179:5;29161:24;:::i;:::-;29152:34;:::i;:::-;29134:53;:::i;:::-;29121:66;;29051:142;;;:::o;29199:75::-;29242:3;29263:5;29256:12;;29199:75;;;:::o;29280:269::-;29390:39;29421:7;29390:39;:::i;:::-;29451:91;29500:41;29524:16;29500:41;:::i;:::-;29492:6;29485:4;29479:11;29451:91;:::i;:::-;29445:4;29438:105;29356:193;29280:269;;;:::o;29555:73::-;29600:3;29555:73;:::o;29634:189::-;29711:32;;:::i;:::-;29752:65;29810:6;29802;29796:4;29752:65;:::i;:::-;29687:136;29634:189;;:::o;29829:186::-;29889:120;29906:3;29899:5;29896:14;29889:120;;;29960:39;29997:1;29990:5;29960:39;:::i;:::-;29933:1;29926:5;29922:13;29913:22;;29889:120;;;29829:186;;:::o;30021:543::-;30122:2;30117:3;30114:11;30111:446;;;30156:38;30188:5;30156:38;:::i;:::-;30240:29;30258:10;30240:29;:::i;:::-;30230:8;30226:44;30423:2;30411:10;30408:18;30405:49;;;30444:8;30429:23;;30405:49;30467:80;30523:22;30541:3;30523:22;:::i;:::-;30513:8;30509:37;30496:11;30467:80;:::i;:::-;30126:431;;30111:446;30021:543;;;:::o;30570:117::-;30624:8;30674:5;30668:4;30664:16;30643:37;;30570:117;;;;:::o;30693:169::-;30737:6;30770:51;30818:1;30814:6;30806:5;30803:1;30799:13;30770:51;:::i;:::-;30766:56;30851:4;30845;30841:15;30831:25;;30744:118;30693:169;;;;:::o;30867:295::-;30943:4;31089:29;31114:3;31108:4;31089:29;:::i;:::-;31081:37;;31151:3;31148:1;31144:11;31138:4;31135:21;31127:29;;30867:295;;;;:::o;31167:1395::-;31284:37;31317:3;31284:37;:::i;:::-;31386:18;31378:6;31375:30;31372:56;;;31408:18;;:::i;:::-;31372:56;31452:38;31484:4;31478:11;31452:38;:::i;:::-;31537:67;31597:6;31589;31583:4;31537:67;:::i;:::-;31631:1;31655:4;31642:17;;31687:2;31679:6;31676:14;31704:1;31699:618;;;;32361:1;32378:6;32375:77;;;32427:9;32422:3;32418:19;32412:26;32403:35;;32375:77;32478:67;32538:6;32531:5;32478:67;:::i;:::-;32472:4;32465:81;32334:222;31669:887;;31699:618;31751:4;31747:9;31739:6;31735:22;31785:37;31817:4;31785:37;:::i;:::-;31844:1;31858:208;31872:7;31869:1;31866:14;31858:208;;;31951:9;31946:3;31942:19;31936:26;31928:6;31921:42;32002:1;31994:6;31990:14;31980:24;;32049:2;32038:9;32034:18;32021:31;;31895:4;31892:1;31888:12;31883:17;;31858:208;;;32094:6;32085:7;32082:19;32079:179;;;32152:9;32147:3;32143:19;32137:26;32195:48;32237:4;32229:6;32225:17;32214:9;32195:48;:::i;:::-;32187:6;32180:64;32102:156;32079:179;32304:1;32300;32292:6;32288:14;32284:22;32278:4;32271:36;31706:611;;;31669:887;;31259:1303;;;31167:1395;;:::o;32568:148::-;32670:11;32707:3;32692:18;;32568:148;;;;:::o;32722:390::-;32828:3;32856:39;32889:5;32856:39;:::i;:::-;32911:89;32993:6;32988:3;32911:89;:::i;:::-;32904:96;;33009:65;33067:6;33062:3;33055:4;33048:5;33044:16;33009:65;:::i;:::-;33099:6;33094:3;33090:16;33083:23;;32832:280;32722:390;;;;:::o;33118:275::-;33250:3;33272:95;33363:3;33354:6;33272:95;:::i;:::-;33265:102;;33384:3;33377:10;;33118:275;;;;:::o;33399:94::-;33432:8;33480:5;33476:2;33472:14;33451:35;;33399:94;;;:::o;33499:::-;33538:7;33567:20;33581:5;33567:20;:::i;:::-;33556:31;;33499:94;;;:::o;33599:100::-;33638:7;33667:26;33687:5;33667:26;:::i;:::-;33656:37;;33599:100;;;:::o;33705:157::-;33810:45;33830:24;33848:5;33830:24;:::i;:::-;33810:45;:::i;:::-;33805:3;33798:58;33705:157;;:::o;33868:79::-;33907:7;33936:5;33925:16;;33868:79;;;:::o;33953:157::-;34058:45;34078:24;34096:5;34078:24;:::i;:::-;34058:45;:::i;:::-;34053:3;34046:58;33953:157;;:::o;34116:820::-;34340:3;34355:75;34426:3;34417:6;34355:75;:::i;:::-;34455:2;34450:3;34446:12;34439:19;;34468:75;34539:3;34530:6;34468:75;:::i;:::-;34568:2;34563:3;34559:12;34552:19;;34581:75;34652:3;34643:6;34581:75;:::i;:::-;34681:2;34676:3;34672:12;34665:19;;34694:75;34765:3;34756:6;34694:75;:::i;:::-;34794:2;34789:3;34785:12;34778:19;;34807:75;34878:3;34869:6;34807:75;:::i;:::-;34907:2;34902:3;34898:12;34891:19;;34927:3;34920:10;;34116:820;;;;;;;;:::o;34942:664::-;35147:4;35185:3;35174:9;35170:19;35162:27;;35199:71;35267:1;35256:9;35252:17;35243:6;35199:71;:::i;:::-;35280:72;35348:2;35337:9;35333:18;35324:6;35280:72;:::i;:::-;35362;35430:2;35419:9;35415:18;35406:6;35362:72;:::i;:::-;35444;35512:2;35501:9;35497:18;35488:6;35444:72;:::i;:::-;35526:73;35594:3;35583:9;35579:19;35570:6;35526:73;:::i;:::-;34942:664;;;;;;;;:::o;35612:140::-;35661:9;35694:52;35712:33;35721:23;35738:5;35721:23;:::i;:::-;35712:33;:::i;:::-;35694:52;:::i;:::-;35681:65;;35612:140;;;:::o;35758:129::-;35844:36;35874:5;35844:36;:::i;:::-;35839:3;35832:49;35758:129;;:::o;35893:440::-;36041:4;36079:2;36068:9;36064:18;36056:26;;36092:71;36160:1;36149:9;36145:17;36136:6;36092:71;:::i;:::-;36173:72;36241:2;36230:9;36226:18;36217:6;36173:72;:::i;:::-;36255:71;36322:2;36311:9;36307:18;36298:6;36255:71;:::i;:::-;35893:440;;;;;;:::o;36339:328::-;36458:4;36496:2;36485:9;36481:18;36473:26;;36509:69;36575:1;36564:9;36560:17;36551:6;36509:69;:::i;:::-;36588:72;36656:2;36645:9;36641:18;36632:6;36588:72;:::i;:::-;36339:328;;;;;:::o;36673:220::-;36765:4;36803:2;36792:9;36788:18;36780:26;;36816:70;36883:1;36872:9;36868:17;36859:6;36816:70;:::i;:::-;36673:220;;;;:::o;36899:143::-;36956:5;36987:6;36981:13;36972:22;;37003:33;37030:5;37003:33;:::i;:::-;36899:143;;;;:::o;37048:351::-;37118:6;37167:2;37155:9;37146:7;37142:23;37138:32;37135:119;;;37173:79;;:::i;:::-;37135:119;37293:1;37318:64;37374:7;37365:6;37354:9;37350:22;37318:64;:::i;:::-;37308:74;;37264:128;37048:351;;;;:::o;37405:435::-;37585:3;37607:95;37698:3;37689:6;37607:95;:::i;:::-;37600:102;;37719:95;37810:3;37801:6;37719:95;:::i;:::-;37712:102;;37831:3;37824:10;;37405:435;;;;;:::o;37846:328::-;37965:4;38003:2;37992:9;37988:18;37980:26;;38016:71;38084:1;38073:9;38069:17;38060:6;38016:71;:::i;:::-;38097:70;38163:2;38152:9;38148:18;38139:6;38097:70;:::i;:::-;37846:328;;;;;:::o;38180:218::-;38271:4;38309:2;38298:9;38294:18;38286:26;;38322:69;38388:1;38377:9;38373:17;38364:6;38322:69;:::i;:::-;38180:218;;;;:::o;38404:98::-;38455:6;38489:5;38483:12;38473:22;;38404:98;;;:::o;38508:168::-;38591:11;38625:6;38620:3;38613:19;38665:4;38660:3;38656:14;38641:29;;38508:168;;;;:::o;38682:373::-;38768:3;38796:38;38828:5;38796:38;:::i;:::-;38850:70;38913:6;38908:3;38850:70;:::i;:::-;38843:77;;38929:65;38987:6;38982:3;38975:4;38968:5;38964:16;38929:65;:::i;:::-;39019:29;39041:6;39019:29;:::i;:::-;39014:3;39010:39;39003:46;;38772:283;38682:373;;;;:::o;39061:640::-;39256:4;39294:3;39283:9;39279:19;39271:27;;39308:71;39376:1;39365:9;39361:17;39352:6;39308:71;:::i;:::-;39389:72;39457:2;39446:9;39442:18;39433:6;39389:72;:::i;:::-;39471;39539:2;39528:9;39524:18;39515:6;39471:72;:::i;:::-;39590:9;39584:4;39580:20;39575:2;39564:9;39560:18;39553:48;39618:76;39689:4;39680:6;39618:76;:::i;:::-;39610:84;;39061:640;;;;;;;:::o;39707:141::-;39763:5;39794:6;39788:13;39779:22;;39810:32;39836:5;39810:32;:::i;:::-;39707:141;;;;:::o;39854:349::-;39923:6;39972:2;39960:9;39951:7;39947:23;39943:32;39940:119;;;39978:79;;:::i;:::-;39940:119;40098:1;40123:63;40178:7;40169:6;40158:9;40154:22;40123:63;:::i;:::-;40113:73;;40069:127;39854:349;;;;:::o
Swarm Source
ipfs://cda718e2d65920e208d62119b988df9cef40dda9e342db738f977d626da5293e
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.