ETH Price: $3,116.18 (-0.56%)

Token

DONUT404 (DONUT404)
 

Overview

Max Total Supply

10,000 DONUT404

Holders

22

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
13.809136039466274425 DONUT404

Value
$0.00
0xed5511f763f66db7861f98b9f7df873db6b89fe9
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x6eb718C3...2c938830d
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
DONUT404

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2024-02-13
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

library SafeTransferLib {
    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                       CUSTOM ERRORS                        */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The ETH transfer has failed.
    error ETHTransferFailed();

    /// @dev The ERC20 `transferFrom` has failed.
    error TransferFromFailed();

    /// @dev The ERC20 `transfer` has failed.
    error TransferFailed();

    /// @dev The ERC20 `approve` has failed.
    error ApproveFailed();

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                         CONSTANTS                          */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Suggested gas stipend for contract receiving ETH that disallows any storage writes.
    uint256 internal constant GAS_STIPEND_NO_STORAGE_WRITES = 2300;

    /// @dev Suggested gas stipend for contract receiving ETH to perform a few
    /// storage reads and writes, but low enough to prevent griefing.
    uint256 internal constant GAS_STIPEND_NO_GRIEF = 100000;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                       ETH OPERATIONS                       */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    // If the ETH transfer MUST succeed with a reasonable gas budget, use the force variants.
    //
    // The regular variants:
    // - Forwards all remaining gas to the target.
    // - Reverts if the target reverts.
    // - Reverts if the current contract has insufficient balance.
    //
    // The force variants:
    // - Forwards with an optional gas stipend
    //   (defaults to `GAS_STIPEND_NO_GRIEF`, which is sufficient for most cases).
    // - If the target reverts, or if the gas stipend is exhausted,
    //   creates a temporary contract to force send the ETH via `SELFDESTRUCT`.
    //   Future compatible with `SENDALL`: https://eips.ethereum.org/EIPS/eip-4758.
    // - Reverts if the current contract has insufficient balance.
    //
    // The try variants:
    // - Forwards with a mandatory gas stipend.
    // - Instead of reverting, returns whether the transfer succeeded.

    /// @dev Sends `amount` (in wei) ETH to `to`.
    function safeTransferETH(address to, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            if iszero(call(gas(), to, amount, codesize(), 0x00, codesize(), 0x00)) {
                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.
                revert(0x1c, 0x04)
            }
        }
    }

    /// @dev Sends all the ETH in the current contract to `to`.
    function safeTransferAllETH(address to) internal {
        /// @solidity memory-safe-assembly
        assembly {
            // Transfer all the ETH and check if it succeeded or not.
            if iszero(call(gas(), to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {
                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.
                revert(0x1c, 0x04)
            }
        }
    }

    /// @dev Force sends `amount` (in wei) ETH to `to`, with a `gasStipend`.
    function forceSafeTransferETH(address to, uint256 amount, uint256 gasStipend) internal {
        /// @solidity memory-safe-assembly
        assembly {
            if lt(selfbalance(), amount) {
                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.
                revert(0x1c, 0x04)
            }
            if iszero(call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)) {
                mstore(0x00, to) // Store the address in scratch space.
                mstore8(0x0b, 0x73) // Opcode `PUSH20`.
                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.
                if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.
            }
        }
    }

    /// @dev Force sends all the ETH in the current contract to `to`, with a `gasStipend`.
    function forceSafeTransferAllETH(address to, uint256 gasStipend) internal {
        /// @solidity memory-safe-assembly
        assembly {
            if iszero(call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {
                mstore(0x00, to) // Store the address in scratch space.
                mstore8(0x0b, 0x73) // Opcode `PUSH20`.
                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.
                if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.
            }
        }
    }

    /// @dev Force sends `amount` (in wei) ETH to `to`, with `GAS_STIPEND_NO_GRIEF`.
    function forceSafeTransferETH(address to, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            if lt(selfbalance(), amount) {
                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.
                revert(0x1c, 0x04)
            }
            if iszero(call(GAS_STIPEND_NO_GRIEF, to, amount, codesize(), 0x00, codesize(), 0x00)) {
                mstore(0x00, to) // Store the address in scratch space.
                mstore8(0x0b, 0x73) // Opcode `PUSH20`.
                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.
                if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.
            }
        }
    }

    /// @dev Force sends all the ETH in the current contract to `to`, with `GAS_STIPEND_NO_GRIEF`.
    function forceSafeTransferAllETH(address to) internal {
        /// @solidity memory-safe-assembly
        assembly {
            // forgefmt: disable-next-item
            if iszero(call(GAS_STIPEND_NO_GRIEF, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {
                mstore(0x00, to) // Store the address in scratch space.
                mstore8(0x0b, 0x73) // Opcode `PUSH20`.
                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.
                if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.
            }
        }
    }

    /// @dev Sends `amount` (in wei) ETH to `to`, with a `gasStipend`.
    function trySafeTransferETH(address to, uint256 amount, uint256 gasStipend)
        internal
        returns (bool success)
    {
        /// @solidity memory-safe-assembly
        assembly {
            success := call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)
        }
    }

    /// @dev Sends all the ETH in the current contract to `to`, with a `gasStipend`.
    function trySafeTransferAllETH(address to, uint256 gasStipend)
        internal
        returns (bool success)
    {
        /// @solidity memory-safe-assembly
        assembly {
            success := call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                      ERC20 OPERATIONS                      */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.
    /// Reverts upon failure.
    ///
    /// The `from` account must have at least `amount` approved for
    /// the current contract to manage.
    function safeTransferFrom(address token, address from, address to, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40) // Cache the free memory pointer.
            mstore(0x60, amount) // Store the `amount` argument.
            mstore(0x40, to) // Store the `to` argument.
            mstore(0x2c, shl(96, from)) // Store the `from` argument.
            mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.
            // Perform the transfer, reverting upon failure.
            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.
                    call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)
                )
            ) {
                mstore(0x00, 0x7939f424) // `TransferFromFailed()`.
                revert(0x1c, 0x04)
            }
            mstore(0x60, 0) // Restore the zero slot to zero.
            mstore(0x40, m) // Restore the free memory pointer.
        }
    }

    /// @dev Sends all of ERC20 `token` from `from` to `to`.
    /// Reverts upon failure.
    ///
    /// The `from` account must have their entire balance approved for
    /// the current contract to manage.
    function safeTransferAllFrom(address token, address from, address to)
        internal
        returns (uint256 amount)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40) // Cache the free memory pointer.
            mstore(0x40, to) // Store the `to` argument.
            mstore(0x2c, shl(96, from)) // Store the `from` argument.
            mstore(0x0c, 0x70a08231000000000000000000000000) // `balanceOf(address)`.
            // Read the balance, reverting upon failure.
            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.
                    staticcall(gas(), token, 0x1c, 0x24, 0x60, 0x20)
                )
            ) {
                mstore(0x00, 0x7939f424) // `TransferFromFailed()`.
                revert(0x1c, 0x04)
            }
            mstore(0x00, 0x23b872dd) // `transferFrom(address,address,uint256)`.
            amount := mload(0x60) // The `amount` is already at 0x60. We'll need to return it.
            // Perform the transfer, reverting upon failure.
            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.
                    call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)
                )
            ) {
                mstore(0x00, 0x7939f424) // `TransferFromFailed()`.
                revert(0x1c, 0x04)
            }
            mstore(0x60, 0) // Restore the zero slot to zero.
            mstore(0x40, m) // Restore the free memory pointer.
        }
    }

    /// @dev Sends `amount` of ERC20 `token` from the current contract to `to`.
    /// Reverts upon failure.
    function safeTransfer(address token, address to, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x14, to) // Store the `to` argument.
            mstore(0x34, amount) // Store the `amount` argument.
            mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.
            // Perform the transfer, reverting upon failure.
            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.
                    call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)
                )
            ) {
                mstore(0x00, 0x90b8ec18) // `TransferFailed()`.
                revert(0x1c, 0x04)
            }
            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.
        }
    }

    /// @dev Sends all of ERC20 `token` from the current contract to `to`.
    /// Reverts upon failure.
    function safeTransferAll(address token, address to) internal returns (uint256 amount) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.
            mstore(0x20, address()) // Store the address of the current contract.
            // Read the balance, reverting upon failure.
            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.
                    staticcall(gas(), token, 0x1c, 0x24, 0x34, 0x20)
                )
            ) {
                mstore(0x00, 0x90b8ec18) // `TransferFailed()`.
                revert(0x1c, 0x04)
            }
            mstore(0x14, to) // Store the `to` argument.
            amount := mload(0x34) // The `amount` is already at 0x34. We'll need to return it.
            mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.
            // Perform the transfer, reverting upon failure.
            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.
                    call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)
                )
            ) {
                mstore(0x00, 0x90b8ec18) // `TransferFailed()`.
                revert(0x1c, 0x04)
            }
            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.
        }
    }

    /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.
    /// Reverts upon failure.
    function safeApprove(address token, address to, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x14, to) // Store the `to` argument.
            mstore(0x34, amount) // Store the `amount` argument.
            mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.
            // Perform the approval, reverting upon failure.
            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.
                    call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)
                )
            ) {
                mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.
                revert(0x1c, 0x04)
            }
            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.
        }
    }

    /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.
    /// If the initial attempt to approve fails, attempts to reset the approved amount to zero,
    /// then retries the approval again (some tokens, e.g. USDT, requires this).
    /// Reverts upon failure.
    function safeApproveWithRetry(address token, address to, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x14, to) // Store the `to` argument.
            mstore(0x34, amount) // Store the `amount` argument.
            mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.
            // Perform the approval, retrying upon failure.
            if iszero(
                and( // The arguments of `and` are evaluated from right to left.
                    or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.
                    call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)
                )
            ) {
                mstore(0x34, 0) // Store 0 for the `amount`.
                mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.
                pop(call(gas(), token, 0, 0x10, 0x44, codesize(), 0x00)) // Reset the approval.
                mstore(0x34, amount) // Store back the original `amount`.
                // Retry the approval, reverting upon failure.
                if iszero(
                    and(
                        or(eq(mload(0x00), 1), iszero(returndatasize())), // Returned 1 or nothing.
                        call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)
                    )
                ) {
                    mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.
                    revert(0x1c, 0x04)
                }
            }
            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.
        }
    }

    /// @dev Returns the amount of ERC20 `token` owned by `account`.
    /// Returns zero if the `token` does not exist.
    function balanceOf(address token, address account) internal view returns (uint256 amount) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x14, account) // Store the `account` argument.
            mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.
            amount :=
                mul(
                    mload(0x20),
                    and( // The arguments of `and` are evaluated from right to left.
                        gt(returndatasize(), 0x1f), // At least 32 bytes returned.
                        staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)
                    )
                )
        }
    }
}


library LibString {
    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                        CUSTOM ERRORS                       */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The length of the output is too small to contain all the hex digits.
    error HexLengthInsufficient();

    /// @dev The length of the string is more than 32 bytes.
    error TooBigForSmallString();

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                         CONSTANTS                          */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The constant returned when the `search` is not found in the string.
    uint256 internal constant NOT_FOUND = type(uint256).max;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                     DECIMAL OPERATIONS                     */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Returns the base 10 decimal representation of `value`.
    function toString(uint256 value) internal pure returns (string memory str) {
        /// @solidity memory-safe-assembly
        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.
            str := add(mload(0x40), 0x80)
            // Update the free memory pointer to allocate.
            mstore(0x40, add(str, 0x20))
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            let w := not(0) // Tsk.
            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            for { let temp := value } 1 {} {
                str := add(str, w) // `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)
                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)
        }
    }

    /// @dev Returns the base 10 decimal representation of `value`.
    function toString(int256 value) internal pure returns (string memory str) {
        if (value >= 0) {
            return toString(uint256(value));
        }
        unchecked {
            str = toString(~uint256(value) + 1);
        }
        /// @solidity memory-safe-assembly
        assembly {
            // We still have some spare memory space on the left,
            // as we have allocated 3 words (96 bytes) for up to 78 digits.
            let length := mload(str) // Load the string length.
            mstore(str, 0x2d) // Store the '-' character.
            str := sub(str, 1) // Move back the string pointer by a byte.
            mstore(str, add(length, 1)) // Update the string length.
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                   HEXADECIMAL OPERATIONS                   */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Returns the hexadecimal representation of `value`,
    /// left-padded to an input length of `length` bytes.
    /// The output is prefixed with "0x" encoded using 2 hexadecimal digits per byte,
    /// giving a total length of `length * 2 + 2` bytes.
    /// Reverts if `length` is too small for the output to contain all the digits.
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory str) {
        str = toHexStringNoPrefix(value, length);
        /// @solidity memory-safe-assembly
        assembly {
            let strLength := add(mload(str), 2) // Compute the length.
            mstore(str, 0x3078) // Write the "0x" prefix.
            str := sub(str, 2) // Move the pointer.
            mstore(str, strLength) // Write the length.
        }
    }

    /// @dev Returns the hexadecimal representation of `value`,
    /// left-padded to an input length of `length` bytes.
    /// The output is prefixed with "0x" encoded using 2 hexadecimal digits per byte,
    /// giving a total length of `length * 2` bytes.
    /// Reverts if `length` is too small for the output to contain all the digits.
    function toHexStringNoPrefix(uint256 value, uint256 length)
        internal
        pure
        returns (string memory str)
    {
        /// @solidity memory-safe-assembly
        assembly {
            // We need 0x20 bytes for the trailing zeros padding, `length * 2` bytes
            // for the digits, 0x02 bytes for the prefix, and 0x20 bytes for the length.
            // We add 0x20 to the total and round down to a multiple of 0x20.
            // (0x20 + 0x20 + 0x02 + 0x20) = 0x62.
            str := add(mload(0x40), and(add(shl(1, length), 0x42), not(0x1f)))
            // Allocate the memory.
            mstore(0x40, add(str, 0x20))
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end to calculate the length later.
            let end := str
            // Store "0123456789abcdef" in scratch space.
            mstore(0x0f, 0x30313233343536373839616263646566)

            let start := sub(str, add(length, length))
            let w := not(1) // Tsk.
            let temp := value
            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            for {} 1 {} {
                str := add(str, w) // `sub(str, 2)`.
                mstore8(add(str, 1), mload(and(temp, 15)))
                mstore8(str, mload(and(shr(4, temp), 15)))
                temp := shr(8, temp)
                if iszero(xor(str, start)) { break }
            }

            if temp {
                mstore(0x00, 0x2194895a) // `HexLengthInsufficient()`.
                revert(0x1c, 0x04)
            }

            // Compute the string's length.
            let strLength := sub(end, str)
            // Move the pointer and write the length.
            str := sub(str, 0x20)
            mstore(str, strLength)
        }
    }

    /// @dev Returns the hexadecimal representation of `value`.
    /// The output is prefixed with "0x" and encoded using 2 hexadecimal digits per byte.
    /// As address are 20 bytes long, the output will left-padded to have
    /// a length of `20 * 2 + 2` bytes.
    function toHexString(uint256 value) internal pure returns (string memory str) {
        str = toHexStringNoPrefix(value);
        /// @solidity memory-safe-assembly
        assembly {
            let strLength := add(mload(str), 2) // Compute the length.
            mstore(str, 0x3078) // Write the "0x" prefix.
            str := sub(str, 2) // Move the pointer.
            mstore(str, strLength) // Write the length.
        }
    }

    /// @dev Returns the hexadecimal representation of `value`.
    /// The output is prefixed with "0x".
    /// The output excludes leading "0" from the `toHexString` output.
    /// `0x00: "0x0", 0x01: "0x1", 0x12: "0x12", 0x123: "0x123"`.
    function toMinimalHexString(uint256 value) internal pure returns (string memory str) {
        str = toHexStringNoPrefix(value);
        /// @solidity memory-safe-assembly
        assembly {
            let o := eq(byte(0, mload(add(str, 0x20))), 0x30) // Whether leading zero is present.
            let strLength := add(mload(str), 2) // Compute the length.
            mstore(add(str, o), 0x3078) // Write the "0x" prefix, accounting for leading zero.
            str := sub(add(str, o), 2) // Move the pointer, accounting for leading zero.
            mstore(str, sub(strLength, o)) // Write the length, accounting for leading zero.
        }
    }

    /// @dev Returns the hexadecimal representation of `value`.
    /// The output excludes leading "0" from the `toHexStringNoPrefix` output.
    /// `0x00: "0", 0x01: "1", 0x12: "12", 0x123: "123"`.
    function toMinimalHexStringNoPrefix(uint256 value) internal pure returns (string memory str) {
        str = toHexStringNoPrefix(value);
        /// @solidity memory-safe-assembly
        assembly {
            let o := eq(byte(0, mload(add(str, 0x20))), 0x30) // Whether leading zero is present.
            let strLength := mload(str) // Get the length.
            str := add(str, o) // Move the pointer, accounting for leading zero.
            mstore(str, sub(strLength, o)) // Write the length, accounting for leading zero.
        }
    }

    /// @dev Returns the hexadecimal representation of `value`.
    /// The output is encoded using 2 hexadecimal digits per byte.
    /// As address are 20 bytes long, the output will left-padded to have
    /// a length of `20 * 2` bytes.
    function toHexStringNoPrefix(uint256 value) internal pure returns (string memory str) {
        /// @solidity memory-safe-assembly
        assembly {
            // We need 0x20 bytes for the trailing zeros padding, 0x20 bytes for the length,
            // 0x02 bytes for the prefix, and 0x40 bytes for the digits.
            // The next multiple of 0x20 above (0x20 + 0x20 + 0x02 + 0x40) is 0xa0.
            str := add(mload(0x40), 0x80)
            // Allocate the memory.
            mstore(0x40, add(str, 0x20))
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end to calculate the length later.
            let end := str
            // Store "0123456789abcdef" in scratch space.
            mstore(0x0f, 0x30313233343536373839616263646566)

            let w := not(1) // Tsk.
            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            for { let temp := value } 1 {} {
                str := add(str, w) // `sub(str, 2)`.
                mstore8(add(str, 1), mload(and(temp, 15)))
                mstore8(str, mload(and(shr(4, temp), 15)))
                temp := shr(8, temp)
                if iszero(temp) { break }
            }

            // Compute the string's length.
            let strLength := sub(end, str)
            // Move the pointer and write the length.
            str := sub(str, 0x20)
            mstore(str, strLength)
        }
    }

    /// @dev Returns the hexadecimal representation of `value`.
    /// The output is prefixed with "0x", encoded using 2 hexadecimal digits per byte,
    /// and the alphabets are capitalized conditionally according to
    /// https://eips.ethereum.org/EIPS/eip-55
    function toHexStringChecksummed(address value) internal pure returns (string memory str) {
        str = toHexString(value);
        /// @solidity memory-safe-assembly
        assembly {
            let mask := shl(6, div(not(0), 255)) // `0b010000000100000000 ...`
            let o := add(str, 0x22)
            let hashed := and(keccak256(o, 40), mul(34, mask)) // `0b10001000 ... `
            let t := shl(240, 136) // `0b10001000 << 240`
            for { let i := 0 } 1 {} {
                mstore(add(i, i), mul(t, byte(i, hashed)))
                i := add(i, 1)
                if eq(i, 20) { break }
            }
            mstore(o, xor(mload(o), shr(1, and(mload(0x00), and(mload(o), mask)))))
            o := add(o, 0x20)
            mstore(o, xor(mload(o), shr(1, and(mload(0x20), and(mload(o), mask)))))
        }
    }

    /// @dev Returns the hexadecimal representation of `value`.
    /// The output is prefixed with "0x" and encoded using 2 hexadecimal digits per byte.
    function toHexString(address value) internal pure returns (string memory str) {
        str = toHexStringNoPrefix(value);
        /// @solidity memory-safe-assembly
        assembly {
            let strLength := add(mload(str), 2) // Compute the length.
            mstore(str, 0x3078) // Write the "0x" prefix.
            str := sub(str, 2) // Move the pointer.
            mstore(str, strLength) // Write the length.
        }
    }

    /// @dev Returns the hexadecimal representation of `value`.
    /// The output is encoded using 2 hexadecimal digits per byte.
    function toHexStringNoPrefix(address value) internal pure returns (string memory str) {
        /// @solidity memory-safe-assembly
        assembly {
            str := mload(0x40)

            // Allocate the memory.
            // We need 0x20 bytes for the trailing zeros padding, 0x20 bytes for the length,
            // 0x02 bytes for the prefix, and 0x28 bytes for the digits.
            // The next multiple of 0x20 above (0x20 + 0x20 + 0x02 + 0x28) is 0x80.
            mstore(0x40, add(str, 0x80))

            // Store "0123456789abcdef" in scratch space.
            mstore(0x0f, 0x30313233343536373839616263646566)

            str := add(str, 2)
            mstore(str, 40)

            let o := add(str, 0x20)
            mstore(add(o, 40), 0)

            value := shl(96, value)

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            for { let i := 0 } 1 {} {
                let p := add(o, add(i, i))
                let temp := byte(i, value)
                mstore8(add(p, 1), mload(and(temp, 15)))
                mstore8(p, mload(shr(4, temp)))
                i := add(i, 1)
                if eq(i, 20) { break }
            }
        }
    }

    /// @dev Returns the hex encoded string from the raw bytes.
    /// The output is encoded using 2 hexadecimal digits per byte.
    function toHexString(bytes memory raw) internal pure returns (string memory str) {
        str = toHexStringNoPrefix(raw);
        /// @solidity memory-safe-assembly
        assembly {
            let strLength := add(mload(str), 2) // Compute the length.
            mstore(str, 0x3078) // Write the "0x" prefix.
            str := sub(str, 2) // Move the pointer.
            mstore(str, strLength) // Write the length.
        }
    }

    /// @dev Returns the hex encoded string from the raw bytes.
    /// The output is encoded using 2 hexadecimal digits per byte.
    function toHexStringNoPrefix(bytes memory raw) internal pure returns (string memory str) {
        /// @solidity memory-safe-assembly
        assembly {
            let length := mload(raw)
            str := add(mload(0x40), 2) // Skip 2 bytes for the optional prefix.
            mstore(str, add(length, length)) // Store the length of the output.

            // Store "0123456789abcdef" in scratch space.
            mstore(0x0f, 0x30313233343536373839616263646566)

            let o := add(str, 0x20)
            let end := add(raw, length)

            for {} iszero(eq(raw, end)) {} {
                raw := add(raw, 1)
                mstore8(add(o, 1), mload(and(mload(raw), 15)))
                mstore8(o, mload(and(shr(4, mload(raw)), 15)))
                o := add(o, 2)
            }
            mstore(o, 0) // Zeroize the slot after the string.
            mstore(0x40, add(o, 0x20)) // Allocate the memory.
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                   RUNE STRING OPERATIONS                   */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Returns the number of UTF characters in the string.
    function runeCount(string memory s) internal pure returns (uint256 result) {
        /// @solidity memory-safe-assembly
        assembly {
            if mload(s) {
                mstore(0x00, div(not(0), 255))
                mstore(0x20, 0x0202020202020202020202020202020202020202020202020303030304040506)
                let o := add(s, 0x20)
                let end := add(o, mload(s))
                for { result := 1 } 1 { result := add(result, 1) } {
                    o := add(o, byte(0, mload(shr(250, mload(o)))))
                    if iszero(lt(o, end)) { break }
                }
            }
        }
    }

    /// @dev Returns if this string is a 7-bit ASCII string.
    /// (i.e. all characters codes are in [0..127])
    function is7BitASCII(string memory s) internal pure returns (bool result) {
        /// @solidity memory-safe-assembly
        assembly {
            let mask := shl(7, div(not(0), 255))
            result := 1
            let n := mload(s)
            if n {
                let o := add(s, 0x20)
                let end := add(o, n)
                let last := mload(end)
                mstore(end, 0)
                for {} 1 {} {
                    if and(mask, mload(o)) {
                        result := 0
                        break
                    }
                    o := add(o, 0x20)
                    if iszero(lt(o, end)) { break }
                }
                mstore(end, last)
            }
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                   BYTE STRING OPERATIONS                   */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    // For performance and bytecode compactness, byte string operations are restricted
    // to 7-bit ASCII strings. All offsets are byte offsets, not UTF character offsets.
    // Usage of byte string operations on charsets with runes spanning two or more bytes
    // can lead to undefined behavior.

    /// @dev Returns `subject` all occurrences of `search` replaced with `replacement`.
    function replace(string memory subject, string memory search, string memory replacement)
        internal
        pure
        returns (string memory result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let subjectLength := mload(subject)
            let searchLength := mload(search)
            let replacementLength := mload(replacement)

            subject := add(subject, 0x20)
            search := add(search, 0x20)
            replacement := add(replacement, 0x20)
            result := add(mload(0x40), 0x20)

            let subjectEnd := add(subject, subjectLength)
            if iszero(gt(searchLength, subjectLength)) {
                let subjectSearchEnd := add(sub(subjectEnd, searchLength), 1)
                let h := 0
                if iszero(lt(searchLength, 0x20)) { h := keccak256(search, searchLength) }
                let m := shl(3, sub(0x20, and(searchLength, 0x1f)))
                let s := mload(search)
                for {} 1 {} {
                    let t := mload(subject)
                    // Whether the first `searchLength % 32` bytes of
                    // `subject` and `search` matches.
                    if iszero(shr(m, xor(t, s))) {
                        if h {
                            if iszero(eq(keccak256(subject, searchLength), h)) {
                                mstore(result, t)
                                result := add(result, 1)
                                subject := add(subject, 1)
                                if iszero(lt(subject, subjectSearchEnd)) { break }
                                continue
                            }
                        }
                        // Copy the `replacement` one word at a time.
                        for { let o := 0 } 1 {} {
                            mstore(add(result, o), mload(add(replacement, o)))
                            o := add(o, 0x20)
                            if iszero(lt(o, replacementLength)) { break }
                        }
                        result := add(result, replacementLength)
                        subject := add(subject, searchLength)
                        if searchLength {
                            if iszero(lt(subject, subjectSearchEnd)) { break }
                            continue
                        }
                    }
                    mstore(result, t)
                    result := add(result, 1)
                    subject := add(subject, 1)
                    if iszero(lt(subject, subjectSearchEnd)) { break }
                }
            }

            let resultRemainder := result
            result := add(mload(0x40), 0x20)
            let k := add(sub(resultRemainder, result), sub(subjectEnd, subject))
            // Copy the rest of the string one word at a time.
            for {} lt(subject, subjectEnd) {} {
                mstore(resultRemainder, mload(subject))
                resultRemainder := add(resultRemainder, 0x20)
                subject := add(subject, 0x20)
            }
            result := sub(result, 0x20)
            let last := add(add(result, 0x20), k) // Zeroize the slot after the string.
            mstore(last, 0)
            mstore(0x40, add(last, 0x20)) // Allocate the memory.
            mstore(result, k) // Store the length.
        }
    }

    /// @dev Returns the byte index of the first location of `search` in `subject`,
    /// searching from left to right, starting from `from`.
    /// Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.
    function indexOf(string memory subject, string memory search, uint256 from)
        internal
        pure
        returns (uint256 result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            for { let subjectLength := mload(subject) } 1 {} {
                if iszero(mload(search)) {
                    if iszero(gt(from, subjectLength)) {
                        result := from
                        break
                    }
                    result := subjectLength
                    break
                }
                let searchLength := mload(search)
                let subjectStart := add(subject, 0x20)

                result := not(0) // Initialize to `NOT_FOUND`.

                subject := add(subjectStart, from)
                let end := add(sub(add(subjectStart, subjectLength), searchLength), 1)

                let m := shl(3, sub(0x20, and(searchLength, 0x1f)))
                let s := mload(add(search, 0x20))

                if iszero(and(lt(subject, end), lt(from, subjectLength))) { break }

                if iszero(lt(searchLength, 0x20)) {
                    for { let h := keccak256(add(search, 0x20), searchLength) } 1 {} {
                        if iszero(shr(m, xor(mload(subject), s))) {
                            if eq(keccak256(subject, searchLength), h) {
                                result := sub(subject, subjectStart)
                                break
                            }
                        }
                        subject := add(subject, 1)
                        if iszero(lt(subject, end)) { break }
                    }
                    break
                }
                for {} 1 {} {
                    if iszero(shr(m, xor(mload(subject), s))) {
                        result := sub(subject, subjectStart)
                        break
                    }
                    subject := add(subject, 1)
                    if iszero(lt(subject, end)) { break }
                }
                break
            }
        }
    }

    /// @dev Returns the byte index of the first location of `search` in `subject`,
    /// searching from left to right.
    /// Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.
    function indexOf(string memory subject, string memory search)
        internal
        pure
        returns (uint256 result)
    {
        result = indexOf(subject, search, 0);
    }

    /// @dev Returns the byte index of the first location of `search` in `subject`,
    /// searching from right to left, starting from `from`.
    /// Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.
    function lastIndexOf(string memory subject, string memory search, uint256 from)
        internal
        pure
        returns (uint256 result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            for {} 1 {} {
                result := not(0) // Initialize to `NOT_FOUND`.
                let searchLength := mload(search)
                if gt(searchLength, mload(subject)) { break }
                let w := result

                let fromMax := sub(mload(subject), searchLength)
                if iszero(gt(fromMax, from)) { from := fromMax }

                let end := add(add(subject, 0x20), w)
                subject := add(add(subject, 0x20), from)
                if iszero(gt(subject, end)) { break }
                // As this function is not too often used,
                // we shall simply use keccak256 for smaller bytecode size.
                for { let h := keccak256(add(search, 0x20), searchLength) } 1 {} {
                    if eq(keccak256(subject, searchLength), h) {
                        result := sub(subject, add(end, 1))
                        break
                    }
                    subject := add(subject, w) // `sub(subject, 1)`.
                    if iszero(gt(subject, end)) { break }
                }
                break
            }
        }
    }

    /// @dev Returns the byte index of the first location of `search` in `subject`,
    /// searching from right to left.
    /// Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.
    function lastIndexOf(string memory subject, string memory search)
        internal
        pure
        returns (uint256 result)
    {
        result = lastIndexOf(subject, search, uint256(int256(-1)));
    }

    /// @dev Returns true if `search` is found in `subject`, false otherwise.
    function contains(string memory subject, string memory search) internal pure returns (bool) {
        return indexOf(subject, search) != NOT_FOUND;
    }

    /// @dev Returns whether `subject` starts with `search`.
    function startsWith(string memory subject, string memory search)
        internal
        pure
        returns (bool result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let searchLength := mload(search)
            // Just using keccak256 directly is actually cheaper.
            // forgefmt: disable-next-item
            result := and(
                iszero(gt(searchLength, mload(subject))),
                eq(
                    keccak256(add(subject, 0x20), searchLength),
                    keccak256(add(search, 0x20), searchLength)
                )
            )
        }
    }

    /// @dev Returns whether `subject` ends with `search`.
    function endsWith(string memory subject, string memory search)
        internal
        pure
        returns (bool result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let searchLength := mload(search)
            let subjectLength := mload(subject)
            // Whether `search` is not longer than `subject`.
            let withinRange := iszero(gt(searchLength, subjectLength))
            // Just using keccak256 directly is actually cheaper.
            // forgefmt: disable-next-item
            result := and(
                withinRange,
                eq(
                    keccak256(
                        // `subject + 0x20 + max(subjectLength - searchLength, 0)`.
                        add(add(subject, 0x20), mul(withinRange, sub(subjectLength, searchLength))),
                        searchLength
                    ),
                    keccak256(add(search, 0x20), searchLength)
                )
            )
        }
    }

    /// @dev Returns `subject` repeated `times`.
    function repeat(string memory subject, uint256 times)
        internal
        pure
        returns (string memory result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let subjectLength := mload(subject)
            if iszero(or(iszero(times), iszero(subjectLength))) {
                subject := add(subject, 0x20)
                result := mload(0x40)
                let output := add(result, 0x20)
                for {} 1 {} {
                    // Copy the `subject` one word at a time.
                    for { let o := 0 } 1 {} {
                        mstore(add(output, o), mload(add(subject, o)))
                        o := add(o, 0x20)
                        if iszero(lt(o, subjectLength)) { break }
                    }
                    output := add(output, subjectLength)
                    times := sub(times, 1)
                    if iszero(times) { break }
                }
                mstore(output, 0) // Zeroize the slot after the string.
                let resultLength := sub(output, add(result, 0x20))
                mstore(result, resultLength) // Store the length.
                // Allocate the memory.
                mstore(0x40, add(result, add(resultLength, 0x20)))
            }
        }
    }

    /// @dev Returns a copy of `subject` sliced from `start` to `end` (exclusive).
    /// `start` and `end` are byte offsets.
    function slice(string memory subject, uint256 start, uint256 end)
        internal
        pure
        returns (string memory result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let subjectLength := mload(subject)
            if iszero(gt(subjectLength, end)) { end := subjectLength }
            if iszero(gt(subjectLength, start)) { start := subjectLength }
            if lt(start, end) {
                result := mload(0x40)
                let resultLength := sub(end, start)
                mstore(result, resultLength)
                subject := add(subject, start)
                let w := not(0x1f)
                // Copy the `subject` one word at a time, backwards.
                for { let o := and(add(resultLength, 0x1f), w) } 1 {} {
                    mstore(add(result, o), mload(add(subject, o)))
                    o := add(o, w) // `sub(o, 0x20)`.
                    if iszero(o) { break }
                }
                // Zeroize the slot after the string.
                mstore(add(add(result, 0x20), resultLength), 0)
                // Allocate memory for the length and the bytes,
                // rounded up to a multiple of 32.
                mstore(0x40, add(result, and(add(resultLength, 0x3f), w)))
            }
        }
    }

    /// @dev Returns a copy of `subject` sliced from `start` to the end of the string.
    /// `start` is a byte offset.
    function slice(string memory subject, uint256 start)
        internal
        pure
        returns (string memory result)
    {
        result = slice(subject, start, uint256(int256(-1)));
    }

    /// @dev Returns all the indices of `search` in `subject`.
    /// The indices are byte offsets.
    function indicesOf(string memory subject, string memory search)
        internal
        pure
        returns (uint256[] memory result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let subjectLength := mload(subject)
            let searchLength := mload(search)

            if iszero(gt(searchLength, subjectLength)) {
                subject := add(subject, 0x20)
                search := add(search, 0x20)
                result := add(mload(0x40), 0x20)

                let subjectStart := subject
                let subjectSearchEnd := add(sub(add(subject, subjectLength), searchLength), 1)
                let h := 0
                if iszero(lt(searchLength, 0x20)) { h := keccak256(search, searchLength) }
                let m := shl(3, sub(0x20, and(searchLength, 0x1f)))
                let s := mload(search)
                for {} 1 {} {
                    let t := mload(subject)
                    // Whether the first `searchLength % 32` bytes of
                    // `subject` and `search` matches.
                    if iszero(shr(m, xor(t, s))) {
                        if h {
                            if iszero(eq(keccak256(subject, searchLength), h)) {
                                subject := add(subject, 1)
                                if iszero(lt(subject, subjectSearchEnd)) { break }
                                continue
                            }
                        }
                        // Append to `result`.
                        mstore(result, sub(subject, subjectStart))
                        result := add(result, 0x20)
                        // Advance `subject` by `searchLength`.
                        subject := add(subject, searchLength)
                        if searchLength {
                            if iszero(lt(subject, subjectSearchEnd)) { break }
                            continue
                        }
                    }
                    subject := add(subject, 1)
                    if iszero(lt(subject, subjectSearchEnd)) { break }
                }
                let resultEnd := result
                // Assign `result` to the free memory pointer.
                result := mload(0x40)
                // Store the length of `result`.
                mstore(result, shr(5, sub(resultEnd, add(result, 0x20))))
                // Allocate memory for result.
                // We allocate one more word, so this array can be recycled for {split}.
                mstore(0x40, add(resultEnd, 0x20))
            }
        }
    }

    /// @dev Returns a arrays of strings based on the `delimiter` inside of the `subject` string.
    function split(string memory subject, string memory delimiter)
        internal
        pure
        returns (string[] memory result)
    {
        uint256[] memory indices = indicesOf(subject, delimiter);
        /// @solidity memory-safe-assembly
        assembly {
            let w := not(0x1f)
            let indexPtr := add(indices, 0x20)
            let indicesEnd := add(indexPtr, shl(5, add(mload(indices), 1)))
            mstore(add(indicesEnd, w), mload(subject))
            mstore(indices, add(mload(indices), 1))
            let prevIndex := 0
            for {} 1 {} {
                let index := mload(indexPtr)
                mstore(indexPtr, 0x60)
                if iszero(eq(index, prevIndex)) {
                    let element := mload(0x40)
                    let elementLength := sub(index, prevIndex)
                    mstore(element, elementLength)
                    // Copy the `subject` one word at a time, backwards.
                    for { let o := and(add(elementLength, 0x1f), w) } 1 {} {
                        mstore(add(element, o), mload(add(add(subject, prevIndex), o)))
                        o := add(o, w) // `sub(o, 0x20)`.
                        if iszero(o) { break }
                    }
                    // Zeroize the slot after the string.
                    mstore(add(add(element, 0x20), elementLength), 0)
                    // Allocate memory for the length and the bytes,
                    // rounded up to a multiple of 32.
                    mstore(0x40, add(element, and(add(elementLength, 0x3f), w)))
                    // Store the `element` into the array.
                    mstore(indexPtr, element)
                }
                prevIndex := add(index, mload(delimiter))
                indexPtr := add(indexPtr, 0x20)
                if iszero(lt(indexPtr, indicesEnd)) { break }
            }
            result := indices
            if iszero(mload(delimiter)) {
                result := add(indices, 0x20)
                mstore(result, sub(mload(indices), 2))
            }
        }
    }

    /// @dev Returns a concatenated string of `a` and `b`.
    /// Cheaper than `string.concat()` and does not de-align the free memory pointer.
    function concat(string memory a, string memory b)
        internal
        pure
        returns (string memory result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let w := not(0x1f)
            result := mload(0x40)
            let aLength := mload(a)
            // Copy `a` one word at a time, backwards.
            for { let o := and(add(aLength, 0x20), w) } 1 {} {
                mstore(add(result, o), mload(add(a, o)))
                o := add(o, w) // `sub(o, 0x20)`.
                if iszero(o) { break }
            }
            let bLength := mload(b)
            let output := add(result, aLength)
            // Copy `b` one word at a time, backwards.
            for { let o := and(add(bLength, 0x20), w) } 1 {} {
                mstore(add(output, o), mload(add(b, o)))
                o := add(o, w) // `sub(o, 0x20)`.
                if iszero(o) { break }
            }
            let totalLength := add(aLength, bLength)
            let last := add(add(result, 0x20), totalLength)
            // Zeroize the slot after the string.
            mstore(last, 0)
            // Stores the length.
            mstore(result, totalLength)
            // Allocate memory for the length and the bytes,
            // rounded up to a multiple of 32.
            mstore(0x40, and(add(last, 0x1f), w))
        }
    }

    /// @dev Returns a copy of the string in either lowercase or UPPERCASE.
    /// WARNING! This function is only compatible with 7-bit ASCII strings.
    function toCase(string memory subject, bool toUpper)
        internal
        pure
        returns (string memory result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let length := mload(subject)
            if length {
                result := add(mload(0x40), 0x20)
                subject := add(subject, 1)
                let flags := shl(add(70, shl(5, toUpper)), 0x3ffffff)
                let w := not(0)
                for { let o := length } 1 {} {
                    o := add(o, w)
                    let b := and(0xff, mload(add(subject, o)))
                    mstore8(add(result, o), xor(b, and(shr(b, flags), 0x20)))
                    if iszero(o) { break }
                }
                result := mload(0x40)
                mstore(result, length) // Store the length.
                let last := add(add(result, 0x20), length)
                mstore(last, 0) // Zeroize the slot after the string.
                mstore(0x40, add(last, 0x20)) // Allocate the memory.
            }
        }
    }

    /// @dev Returns a string from a small bytes32 string.
    /// `s` must be null-terminated, or behavior will be undefined.
    function fromSmallString(bytes32 s) internal pure returns (string memory result) {
        /// @solidity memory-safe-assembly
        assembly {
            result := mload(0x40)
            let n := 0
            for {} byte(n, s) { n := add(n, 1) } {} // Scan for '\0'.
            mstore(result, n)
            let o := add(result, 0x20)
            mstore(o, s)
            mstore(add(o, n), 0)
            mstore(0x40, add(result, 0x40))
        }
    }

    /// @dev Returns the small string, with all bytes after the first null byte zeroized.
    function normalizeSmallString(bytes32 s) internal pure returns (bytes32 result) {
        /// @solidity memory-safe-assembly
        assembly {
            for {} byte(result, s) { result := add(result, 1) } {} // Scan for '\0'.
            mstore(0x00, s)
            mstore(result, 0x00)
            result := mload(0x00)
        }
    }

    /// @dev Returns the string as a normalized null-terminated small string.
    function toSmallString(string memory s) internal pure returns (bytes32 result) {
        /// @solidity memory-safe-assembly
        assembly {
            result := mload(s)
            if iszero(lt(result, 33)) {
                mstore(0x00, 0xec92f9a3) // `TooBigForSmallString()`.
                revert(0x1c, 0x04)
            }
            result := shl(shl(3, sub(32, result)), mload(add(s, result)))
        }
    }

    /// @dev Returns a lowercased copy of the string.
    /// WARNING! This function is only compatible with 7-bit ASCII strings.
    function lower(string memory subject) internal pure returns (string memory result) {
        result = toCase(subject, false);
    }

    /// @dev Returns an UPPERCASED copy of the string.
    /// WARNING! This function is only compatible with 7-bit ASCII strings.
    function upper(string memory subject) internal pure returns (string memory result) {
        result = toCase(subject, true);
    }

    /// @dev Escapes the string to be used within HTML tags.
    function escapeHTML(string memory s) internal pure returns (string memory result) {
        /// @solidity memory-safe-assembly
        assembly {
            let end := add(s, mload(s))
            result := add(mload(0x40), 0x20)
            // Store the bytes of the packed offsets and strides into the scratch space.
            // `packed = (stride << 5) | offset`. Max offset is 20. Max stride is 6.
            mstore(0x1f, 0x900094)
            mstore(0x08, 0xc0000000a6ab)
            // Store "&quot;&amp;&#39;&lt;&gt;" into the scratch space.
            mstore(0x00, shl(64, 0x2671756f743b26616d703b262333393b266c743b2667743b))
            for {} iszero(eq(s, end)) {} {
                s := add(s, 1)
                let c := and(mload(s), 0xff)
                // Not in `["\"","'","&","<",">"]`.
                if iszero(and(shl(c, 1), 0x500000c400000000)) {
                    mstore8(result, c)
                    result := add(result, 1)
                    continue
                }
                let t := shr(248, mload(c))
                mstore(result, mload(and(t, 0x1f)))
                result := add(result, shr(5, t))
            }
            let last := result
            mstore(last, 0) // Zeroize the slot after the string.
            result := mload(0x40)
            mstore(result, sub(last, add(result, 0x20))) // Store the length.
            mstore(0x40, add(last, 0x20)) // Allocate the memory.
        }
    }

    /// @dev Escapes the string to be used within double-quotes in a JSON.
    /// If `addDoubleQuotes` is true, the result will be enclosed in double-quotes.
    function escapeJSON(string memory s, bool addDoubleQuotes)
        internal
        pure
        returns (string memory result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let end := add(s, mload(s))
            result := add(mload(0x40), 0x20)
            if addDoubleQuotes {
                mstore8(result, 34)
                result := add(1, result)
            }
            // Store "\\u0000" in scratch space.
            // Store "0123456789abcdef" in scratch space.
            // Also, store `{0x08:"b", 0x09:"t", 0x0a:"n", 0x0c:"f", 0x0d:"r"}`.
            // into the scratch space.
            mstore(0x15, 0x5c75303030303031323334353637383961626364656662746e006672)
            // Bitmask for detecting `["\"","\\"]`.
            let e := or(shl(0x22, 1), shl(0x5c, 1))
            for {} iszero(eq(s, end)) {} {
                s := add(s, 1)
                let c := and(mload(s), 0xff)
                if iszero(lt(c, 0x20)) {
                    if iszero(and(shl(c, 1), e)) {
                        // Not in `["\"","\\"]`.
                        mstore8(result, c)
                        result := add(result, 1)
                        continue
                    }
                    mstore8(result, 0x5c) // "\\".
                    mstore8(add(result, 1), c)
                    result := add(result, 2)
                    continue
                }
                if iszero(and(shl(c, 1), 0x3700)) {
                    // Not in `["\b","\t","\n","\f","\d"]`.
                    mstore8(0x1d, mload(shr(4, c))) // Hex value.
                    mstore8(0x1e, mload(and(c, 15))) // Hex value.
                    mstore(result, mload(0x19)) // "\\u00XX".
                    result := add(result, 6)
                    continue
                }
                mstore8(result, 0x5c) // "\\".
                mstore8(add(result, 1), mload(add(c, 8)))
                result := add(result, 2)
            }
            if addDoubleQuotes {
                mstore8(result, 34)
                result := add(1, result)
            }
            let last := result
            mstore(last, 0) // Zeroize the slot after the string.
            result := mload(0x40)
            mstore(result, sub(last, add(result, 0x20))) // Store the length.
            mstore(0x40, add(last, 0x20)) // Allocate the memory.
        }
    }

    /// @dev Escapes the string to be used within double-quotes in a JSON.
    function escapeJSON(string memory s) internal pure returns (string memory result) {
        result = escapeJSON(s, false);
    }

    /// @dev Returns whether `a` equals `b`.
    function eq(string memory a, string memory b) internal pure returns (bool result) {
        /// @solidity memory-safe-assembly
        assembly {
            result := eq(keccak256(add(a, 0x20), mload(a)), keccak256(add(b, 0x20), mload(b)))
        }
    }

    /// @dev Returns whether `a` equals `b`, where `b` is a null-terminated small string.
    function eqs(string memory a, bytes32 b) internal pure returns (bool result) {
        /// @solidity memory-safe-assembly
        assembly {
            // These should be evaluated on compile time, as far as possible.
            let m := not(shl(7, div(not(iszero(b)), 255))) // `0x7f7f ...`.
            let x := not(or(m, or(b, add(m, and(b, m)))))
            let r := shl(7, iszero(iszero(shr(128, x))))
            r := or(r, shl(6, iszero(iszero(shr(64, shr(r, x))))))
            r := or(r, shl(5, lt(0xffffffff, shr(r, x))))
            r := or(r, shl(4, lt(0xffff, shr(r, x))))
            r := or(r, shl(3, lt(0xff, shr(r, x))))
            // forgefmt: disable-next-item
            result := gt(eq(mload(a), add(iszero(x), xor(31, shr(3, r)))),
                xor(shr(add(8, r), b), shr(add(8, r), mload(add(a, 0x20)))))
        }
    }

    /// @dev Packs a single string with its length into a single word.
    /// Returns `bytes32(0)` if the length is zero or greater than 31.
    function packOne(string memory a) internal pure returns (bytes32 result) {
        /// @solidity memory-safe-assembly
        assembly {
            // We don't need to zero right pad the string,
            // since this is our own custom non-standard packing scheme.
            result :=
                mul(
                    // Load the length and the bytes.
                    mload(add(a, 0x1f)),
                    // `length != 0 && length < 32`. Abuses underflow.
                    // Assumes that the length is valid and within the block gas limit.
                    lt(sub(mload(a), 1), 0x1f)
                )
        }
    }

    /// @dev Unpacks a string packed using {packOne}.
    /// Returns the empty string if `packed` is `bytes32(0)`.
    /// If `packed` is not an output of {packOne}, the output behavior is undefined.
    function unpackOne(bytes32 packed) internal pure returns (string memory result) {
        /// @solidity memory-safe-assembly
        assembly {
            // Grab the free memory pointer.
            result := mload(0x40)
            // Allocate 2 words (1 for the length, 1 for the bytes).
            mstore(0x40, add(result, 0x40))
            // Zeroize the length slot.
            mstore(result, 0)
            // Store the length and bytes.
            mstore(add(result, 0x1f), packed)
            // Right pad with zeroes.
            mstore(add(add(result, 0x20), mload(result)), 0)
        }
    }

    /// @dev Packs two strings with their lengths into a single word.
    /// Returns `bytes32(0)` if combined length is zero or greater than 30.
    function packTwo(string memory a, string memory b) internal pure returns (bytes32 result) {
        /// @solidity memory-safe-assembly
        assembly {
            let aLength := mload(a)
            // We don't need to zero right pad the strings,
            // since this is our own custom non-standard packing scheme.
            result :=
                mul(
                    // Load the length and the bytes of `a` and `b`.
                    or(
                        shl(shl(3, sub(0x1f, aLength)), mload(add(a, aLength))),
                        mload(sub(add(b, 0x1e), aLength))
                    ),
                    // `totalLength != 0 && totalLength < 31`. Abuses underflow.
                    // Assumes that the lengths are valid and within the block gas limit.
                    lt(sub(add(aLength, mload(b)), 1), 0x1e)
                )
        }
    }

    /// @dev Unpacks strings packed using {packTwo}.
    /// Returns the empty strings if `packed` is `bytes32(0)`.
    /// If `packed` is not an output of {packTwo}, the output behavior is undefined.
    function unpackTwo(bytes32 packed)
        internal
        pure
        returns (string memory resultA, string memory resultB)
    {
        /// @solidity memory-safe-assembly
        assembly {
            // Grab the free memory pointer.
            resultA := mload(0x40)
            resultB := add(resultA, 0x40)
            // Allocate 2 words for each string (1 for the length, 1 for the byte). Total 4 words.
            mstore(0x40, add(resultB, 0x40))
            // Zeroize the length slots.
            mstore(resultA, 0)
            mstore(resultB, 0)
            // Store the lengths and bytes.
            mstore(add(resultA, 0x1f), packed)
            mstore(add(resultB, 0x1f), mload(add(add(resultA, 0x20), mload(resultA))))
            // Right pad with zeroes.
            mstore(add(add(resultA, 0x20), mload(resultA)), 0)
            mstore(add(add(resultB, 0x20), mload(resultB)), 0)
        }
    }

    /// @dev Directly returns `a` without copying.
    function directReturn(string memory a) internal pure {
        assembly {
            // Assumes that the string does not start from the scratch space.
            let retStart := sub(a, 0x20)
            let retSize := add(mload(a), 0x40)
            // Right pad with zeroes. Just in case the string is produced
            // by a method that doesn't zero right pad.
            mstore(add(retStart, retSize), 0)
            // Store the return offset.
            mstore(retStart, 0x20)
            // End the transaction, returning the string.
            return(retStart, retSize)
        }
    }
}

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();

    /// @dev Cannot double-initialize.
    error AlreadyInitialized();

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                           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:
    /// `bytes32(~uint256(uint32(bytes4(keccak256("_OWNER_SLOT_NOT")))))`.
    /// It is intentionally chosen 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.
    bytes32 internal constant _OWNER_SLOT =
        0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927;

    /// 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 Override to return true to make `_initializeOwner` prevent double-initialization.
    function _guardInitializeOwner() internal pure virtual returns (bool guard) {}

    /// @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 {
        if (_guardInitializeOwner()) {
            /// @solidity memory-safe-assembly
            assembly {
                let ownerSlot := _OWNER_SLOT
                if sload(ownerSlot) {
                    mstore(0x00, 0x0dc149f0) // `AlreadyInitialized()`.
                    revert(0x1c, 0x04)
                }
                // Clean the upper 96 bits.
                newOwner := shr(96, shl(96, newOwner))
                // Store the new value.
                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))
                // Emit the {OwnershipTransferred} event.
                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)
            }
        } else {
            /// @solidity memory-safe-assembly
            assembly {
                // Clean the upper 96 bits.
                newOwner := shr(96, shl(96, newOwner))
                // Store the new value.
                sstore(_OWNER_SLOT, 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 {
        if (_guardInitializeOwner()) {
            /// @solidity memory-safe-assembly
            assembly {
                let ownerSlot := _OWNER_SLOT
                // 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, or(newOwner, shl(255, iszero(newOwner))))
            }
        } else {
            /// @solidity memory-safe-assembly
            assembly {
                let ownerSlot := _OWNER_SLOT
                // 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(_OWNER_SLOT))) {
                mstore(0x00, 0x82b42900) // `Unauthorized()`.
                revert(0x1c, 0x04)
            }
        }
    }

    /// @dev Returns how long a two-step ownership handover is valid for in seconds.
    /// Override to return a different value if needed.
    /// Made internal to conserve bytecode. Wrap it in a public function if needed.
    function _ownershipHandoverValidFor() internal view virtual returns (uint64) {
        return 48 * 3600;
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                  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 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(_OWNER_SLOT)
        }
    }

    /// @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))
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                         MODIFIERS                          */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Marks a function as only callable by the owner.
    modifier onlyOwner() virtual {
        _checkOwner();
        _;
    }
}

contract DN404Mirror {
    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                           EVENTS                           */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Emitted when token `id` is transferred from `from` to `to`.
    event Transfer(address indexed from, address indexed to, uint256 indexed id);

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

    /// @dev Emitted when `owner` enables or disables `operator` to manage all of their tokens.
    event ApprovalForAll(address indexed owner, address indexed operator, bool isApproved);

    /// @dev `keccak256(bytes("Transfer(address,address,uint256)"))`.
    uint256 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    /// @dev `keccak256(bytes("Approval(address,address,uint256)"))`.
    uint256 private constant _APPROVAL_EVENT_SIGNATURE =
        0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925;

    /// @dev `keccak256(bytes("ApprovalForAll(address,address,bool)"))`.
    uint256 private constant _APPROVAL_FOR_ALL_EVENT_SIGNATURE =
        0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31;

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                        CUSTOM ERRORS                       */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Thrown when a call for an NFT function did not originate
    /// from the base DN404 contract.
    error SenderNotBase();

    /// @dev Thrown when a call for an NFT function did not originate from the deployer.
    error SenderNotDeployer();

    /// @dev Thrown when transferring an NFT to a contract address that
    /// does not implement ERC721Receiver.
    error TransferToNonERC721ReceiverImplementer();

    /// @dev Thrown when linking to the DN404 base contract and the
    /// DN404 supportsInterface check fails or the call reverts.
    error CannotLink();

    /// @dev Thrown when a linkMirrorContract call is received and the
    /// NFT mirror contract has already been linked to a DN404 base contract.
    error AlreadyLinked();

    /// @dev Thrown when retrieving the base DN404 address when a link has not
    /// been established.
    error NotLinked();

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                          STORAGE                           */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Struct contain the NFT mirror contract storage.
    struct DN404NFTStorage {
        address baseERC20;
        address deployer;
    }

    /// @dev Returns a storage pointer for DN404NFTStorage.
    function _getDN404NFTStorage() internal pure virtual returns (DN404NFTStorage storage $) {
        /// @solidity memory-safe-assembly
        assembly {
            // `uint72(bytes9(keccak256("DN404_MIRROR_STORAGE")))`.
            $.slot := 0x3602298b8c10b01230 // Truncate to 9 bytes to reduce bytecode size.
        }
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                        CONSTRUCTOR                         */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    constructor(address deployer) {
        // For non-proxies, we will store the deployer so that only the deployer can
        // link the base contract.
        _getDN404NFTStorage().deployer = deployer;
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                     ERC721 OPERATIONS                      */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns the token collection name from the base DN404 contract.
    function name() public view virtual returns (string memory result) {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            result := mload(0x40)
            mstore(0x00, 0x06fdde03) // `name()`.
            if iszero(staticcall(gas(), base, 0x1c, 0x04, 0x00, 0x00)) {
                returndatacopy(result, 0x00, returndatasize())
                revert(result, returndatasize())
            }
            returndatacopy(0x00, 0x00, 0x20)
            returndatacopy(result, mload(0x00), 0x20)
            returndatacopy(add(result, 0x20), add(mload(0x00), 0x20), mload(result))
            mstore(0x40, add(add(result, 0x20), mload(result)))
        }
    }

    /// @dev Returns the token collection symbol from the base DN404 contract.
    function symbol() public view virtual returns (string memory result) {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            result := mload(0x40)
            mstore(0x00, 0x95d89b41) // `symbol()`.
            if iszero(staticcall(gas(), base, 0x1c, 0x04, 0x00, 0x00)) {
                returndatacopy(result, 0x00, returndatasize())
                revert(result, returndatasize())
            }
            returndatacopy(0x00, 0x00, 0x20)
            returndatacopy(result, mload(0x00), 0x20)
            returndatacopy(add(result, 0x20), add(mload(0x00), 0x20), mload(result))
            mstore(0x40, add(add(result, 0x20), mload(result)))
        }
    }

    /// @dev Returns the Uniform Resource Identifier (URI) for token `id` from
    /// the base DN404 contract.
    function tokenURI(uint256 id) public view virtual returns (string memory result) {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            result := mload(0x40)
            mstore(0x20, id)
            mstore(0x00, 0xc87b56dd) // `tokenURI()`.
            if iszero(staticcall(gas(), base, 0x1c, 0x24, 0x00, 0x00)) {
                returndatacopy(result, 0x00, returndatasize())
                revert(result, returndatasize())
            }
            returndatacopy(0x00, 0x00, 0x20)
            returndatacopy(result, mload(0x00), 0x20)
            returndatacopy(add(result, 0x20), add(mload(0x00), 0x20), mload(result))
            mstore(0x40, add(add(result, 0x20), mload(result)))
        }
    }

    /// @dev Returns the total NFT supply from the base DN404 contract.
    function totalSupply() public view virtual returns (uint256 result) {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0xe2c79281) // `totalNFTSupply()`.
            if iszero(
                and(gt(returndatasize(), 0x1f), staticcall(gas(), base, 0x1c, 0x04, 0x00, 0x20))
            ) {
                returndatacopy(mload(0x40), 0x00, returndatasize())
                revert(mload(0x40), returndatasize())
            }
            result := mload(0x00)
        }
    }

    /// @dev Returns the number of NFT tokens owned by `owner` from the base DN404 contract.
    ///
    /// Requirements:
    /// - `owner` must not be the zero address.
    function balanceOf(address owner) public view virtual returns (uint256 result) {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x20, shr(96, shl(96, owner)))
            mstore(0x00, 0xf5b100ea) // `balanceOfNFT(address)`.
            if iszero(
                and(gt(returndatasize(), 0x1f), staticcall(gas(), base, 0x1c, 0x24, 0x00, 0x20))
            ) {
                returndatacopy(mload(0x40), 0x00, returndatasize())
                revert(mload(0x40), returndatasize())
            }
            result := mload(0x00)
        }
    }

    /// @dev Returns the owner of token `id` from the base DN404 contract.
    ///
    /// Requirements:
    /// - Token `id` must exist.
    function ownerOf(uint256 id) public view virtual returns (address result) {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0x6352211e) // `ownerOf(uint256)`.
            mstore(0x20, id)
            if iszero(
                and(gt(returndatasize(), 0x1f), staticcall(gas(), base, 0x1c, 0x24, 0x00, 0x20))
            ) {
                returndatacopy(mload(0x40), 0x00, returndatasize())
                revert(mload(0x40), returndatasize())
            }
            result := shr(96, mload(0x0c))
        }
    }

    /// @dev Sets `spender` as the approved account to manage token `id` in
    /// the base DN404 contract.
    ///
    /// Requirements:
    /// - Token `id` must exist.
    /// - The caller must be the owner of the token,
    ///   or an approved operator for the token owner.
    ///
    /// Emits an {Approval} event.
    function approve(address spender, uint256 id) public virtual {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            spender := shr(96, shl(96, spender))
            let m := mload(0x40)
            mstore(0x00, 0xd10b6e0c) // `approveNFT(address,uint256,address)`.
            mstore(0x20, spender)
            mstore(0x40, id)
            mstore(0x60, caller())
            if iszero(
                and(
                    gt(returndatasize(), 0x1f),
                    call(gas(), base, callvalue(), 0x1c, 0x64, 0x00, 0x20)
                )
            ) {
                returndatacopy(m, 0x00, returndatasize())
                revert(m, returndatasize())
            }
            mstore(0x40, m) // Restore the free memory pointer.
            mstore(0x60, 0) // Restore the zero pointer.
            // Emit the {Approval} event.
            log4(codesize(), 0x00, _APPROVAL_EVENT_SIGNATURE, shr(96, mload(0x0c)), spender, id)
        }
    }

    /// @dev Returns the account approved to manage token `id` from
    /// the base DN404 contract.
    ///
    /// Requirements:
    /// - Token `id` must exist.
    function getApproved(uint256 id) public view virtual returns (address result) {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0x081812fc) // `getApproved(uint256)`.
            mstore(0x20, id)
            if iszero(
                and(gt(returndatasize(), 0x1f), staticcall(gas(), base, 0x1c, 0x24, 0x00, 0x20))
            ) {
                returndatacopy(mload(0x40), 0x00, returndatasize())
                revert(mload(0x40), returndatasize())
            }
            result := shr(96, mload(0x0c))
        }
    }

    /// @dev Sets whether `operator` is approved to manage the tokens of the caller in
    /// the base DN404 contract.
    ///
    /// Emits an {ApprovalForAll} event.
    function setApprovalForAll(address operator, bool approved) public virtual {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            operator := shr(96, shl(96, operator))
            let m := mload(0x40)
            mstore(0x00, 0x813500fc) // `setApprovalForAll(address,bool,address)`.
            mstore(0x20, operator)
            mstore(0x40, iszero(iszero(approved)))
            mstore(0x60, caller())
            if iszero(
                and(eq(mload(0x00), 1), call(gas(), base, callvalue(), 0x1c, 0x64, 0x00, 0x20))
            ) {
                returndatacopy(m, 0x00, returndatasize())
                revert(m, returndatasize())
            }
            // Emit the {ApprovalForAll} event.
            log3(0x40, 0x20, _APPROVAL_FOR_ALL_EVENT_SIGNATURE, caller(), operator)
            mstore(0x40, m) // Restore the free memory pointer.
            mstore(0x60, 0) // Restore the zero pointer.
        }
    }

    /// @dev Returns whether `operator` is approved to manage the tokens of `owner` from
    /// the base DN404 contract.
    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        returns (bool result)
    {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40)
            mstore(0x40, operator)
            mstore(0x2c, shl(96, owner))
            mstore(0x0c, 0xe985e9c5000000000000000000000000) // `isApprovedForAll(address,address)`.
            if iszero(
                and(gt(returndatasize(), 0x1f), staticcall(gas(), base, 0x1c, 0x44, 0x00, 0x20))
            ) {
                returndatacopy(m, 0x00, returndatasize())
                revert(m, returndatasize())
            }
            mstore(0x40, m) // Restore the free memory pointer.
            result := iszero(iszero(mload(0x00)))
        }
    }

    /// @dev Transfers token `id` from `from` to `to`.
    ///
    /// Requirements:
    ///
    /// - Token `id` must exist.
    /// - `from` must be the owner of the token.
    /// - `to` cannot be the zero address.
    /// - The caller must be the owner of the token, or be approved to manage the token.
    ///
    /// Emits a {Transfer} event.
    function transferFrom(address from, address to, uint256 id) public virtual {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            from := shr(96, shl(96, from))
            to := shr(96, shl(96, to))
            let m := mload(0x40)
            mstore(m, 0xe5eb36c8) // `transferFromNFT(address,address,uint256,address)`.
            mstore(add(m, 0x20), from)
            mstore(add(m, 0x40), to)
            mstore(add(m, 0x60), id)
            mstore(add(m, 0x80), caller())
            if iszero(
                and(eq(mload(m), 1), call(gas(), base, callvalue(), add(m, 0x1c), 0x84, m, 0x20))
            ) {
                returndatacopy(m, 0x00, returndatasize())
                revert(m, returndatasize())
            }
            // Emit the {Transfer} event.
            log4(codesize(), 0x00, _TRANSFER_EVENT_SIGNATURE, from, to, id)
        }
    }

    /// @dev Equivalent to `safeTransferFrom(from, to, id, "")`.
    function safeTransferFrom(address from, address to, uint256 id) public payable virtual {
        transferFrom(from, to, id);

        if (_hasCode(to)) _checkOnERC721Received(from, to, id, "");
    }

    /// @dev Transfers token `id` from `from` to `to`.
    ///
    /// Requirements:
    ///
    /// - Token `id` must exist.
    /// - `from` must be the owner of the token.
    /// - `to` cannot be the zero address.
    /// - The caller must be the owner of the token, or be approved to manage the token.
    /// - 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 id, bytes calldata data)
        public
        virtual
    {
        transferFrom(from, to, id);

        if (_hasCode(to)) _checkOnERC721Received(from, to, id, data);
    }

    /// @dev Returns true if this contract implements the interface defined by `interfaceId`.
    /// See: https://eips.ethereum.org/EIPS/eip-165
    /// This function call must use less than 30000 gas.
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool result) {
        /// @solidity memory-safe-assembly
        assembly {
            let s := shr(224, interfaceId)
            // ERC165: 0x01ffc9a7, ERC721: 0x80ac58cd, ERC721Metadata: 0x5b5e139f.
            result := or(or(eq(s, 0x01ffc9a7), eq(s, 0x80ac58cd)), eq(s, 0x5b5e139f))
        }
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                     MIRROR OPERATIONS                      */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns the address of the base DN404 contract.
    function baseERC20() public view virtual returns (address base) {
        base = _getDN404NFTStorage().baseERC20;
        if (base == address(0)) revert NotLinked();
    }

    /// @dev Fallback modifier to execute calls from the base DN404 contract.
    modifier dn404NFTFallback() virtual {
        DN404NFTStorage storage $ = _getDN404NFTStorage();

        uint256 fnSelector = _calldataload(0x00) >> 224;

        // `logTransfer(uint256[])`.
        if (fnSelector == 0x263c69d6) {
            if (msg.sender != $.baseERC20) revert SenderNotBase();
            /// @solidity memory-safe-assembly
            assembly {
                // When returndatacopy copies 1 or more out-of-bounds bytes, it reverts.
                returndatacopy(0x00, returndatasize(), lt(calldatasize(), 0x20))
                let o := add(0x24, calldataload(0x04)) // Packed logs offset.
                returndatacopy(0x00, returndatasize(), lt(calldatasize(), o))
                let end := add(o, shl(5, calldataload(sub(o, 0x20))))
                returndatacopy(0x00, returndatasize(), lt(calldatasize(), end))

                for {} iszero(eq(o, end)) { o := add(0x20, o) } {
                    let d := calldataload(o) // Entry in the packed logs.
                    let a := shr(96, d) // The address.
                    let b := and(1, d) // Whether it is a burn.
                    log4(
                        codesize(),
                        0x00,
                        _TRANSFER_EVENT_SIGNATURE,
                        mul(a, b),
                        mul(a, iszero(b)),
                        shr(168, shl(160, d))
                    )
                }
                mstore(0x00, 0x01)
                return(0x00, 0x20)
            }
        }
        // `linkMirrorContract(address)`.
        if (fnSelector == 0x0f4599e5) {
            if ($.deployer != address(0)) {
                if (address(uint160(_calldataload(0x04))) != $.deployer) {
                    revert SenderNotDeployer();
                }
            }
            if ($.baseERC20 != address(0)) revert AlreadyLinked();
            $.baseERC20 = msg.sender;
            /// @solidity memory-safe-assembly
            assembly {
                mstore(0x00, 0x01)
                return(0x00, 0x20)
            }
        }
        _;
    }

    /// @dev Fallback function for calls from base DN404 contract.
    fallback() external payable virtual dn404NFTFallback {}

    receive() external payable virtual {}

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                      PRIVATE HELPERS                       */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns the calldata value at `offset`.
    function _calldataload(uint256 offset) private pure returns (uint256 value) {
        /// @solidity memory-safe-assembly
        assembly {
            value := calldataload(offset)
        }
    }

    /// @dev Returns if `a` has bytecode of non-zero length.
    function _hasCode(address a) private view returns (bool result) {
        /// @solidity memory-safe-assembly
        assembly {
            result := extcodesize(a) // Can handle dirty upper bits.
        }
    }

    /// @dev Perform a call to invoke {IERC721Receiver-onERC721Received} on `to`.
    /// Reverts if the target does not support the function correctly.
    function _checkOnERC721Received(address from, address to, uint256 id, bytes memory data)
        private
    {
        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the calldata.
            let m := mload(0x40)
            let onERC721ReceivedSelector := 0x150b7a02
            mstore(m, onERC721ReceivedSelector)
            mstore(add(m, 0x20), caller()) // The `operator`, which is always `msg.sender`.
            mstore(add(m, 0x40), shr(96, shl(96, from)))
            mstore(add(m, 0x60), id)
            mstore(add(m, 0x80), 0x80)
            let n := mload(data)
            mstore(add(m, 0xa0), n)
            if n { pop(staticcall(gas(), 4, add(data, 0x20), n, add(m, 0xc0), n)) }
            // Revert if the call reverts.
            if iszero(call(gas(), to, 0, add(m, 0x1c), add(n, 0xa4), m, 0x20)) {
                if returndatasize() {
                    // Bubble up the revert if the call reverts.
                    returndatacopy(m, 0x00, returndatasize())
                    revert(m, returndatasize())
                }
            }
            // Load the returndata and compare it.
            if iszero(eq(mload(m), shl(224, onERC721ReceivedSelector))) {
                mstore(0x00, 0xd1a57ed6) // `TransferToNonERC721ReceiverImplementer()`.
                revert(0x1c, 0x04)
            }
        }
    }
}


abstract contract DN404 {
    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                           EVENTS                           */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Emitted when `amount` tokens is transferred from `from` to `to`.
    event Transfer(address indexed from, address indexed to, uint256 amount);

    /// @dev Emitted when `amount` tokens is approved by `owner` to be used by `spender`.
    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /// @dev Emitted when `target` sets their skipNFT flag to `status`.
    event SkipNFTSet(address indexed target, bool status);

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                        CUSTOM ERRORS                       */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Thrown when attempting to double-initialize the contract.
    error DNAlreadyInitialized();

    /// @dev Thrown when attempting to transfer or burn more tokens than sender's balance.
    error InsufficientBalance();

    /// @dev Thrown when a spender attempts to transfer tokens with an insufficient allowance.
    error InsufficientAllowance();

    /// @dev Thrown when minting an amount of tokens that would overflow the max tokens.
    error TotalSupplyOverflow();

    /// @dev Thrown when the caller for a fallback NFT function is not the mirror contract.
    error SenderNotMirror();

    /// @dev Thrown when attempting to transfer tokens to the zero address.
    error TransferToZeroAddress();

    /// @dev Thrown when the mirror address provided for initialization is the zero address.
    error MirrorAddressIsZero();

    /// @dev Thrown when the link call to the mirror contract reverts.
    error LinkMirrorContractFailed();

    /// @dev Thrown when setting an NFT token approval
    /// and the caller is not the owner or an approved operator.
    error ApprovalCallerNotOwnerNorApproved();

    /// @dev Thrown when transferring an NFT
    /// and the caller is not the owner or an approved operator.
    error TransferCallerNotOwnerNorApproved();

    /// @dev Thrown when transferring an NFT and the from address is not the current owner.
    error TransferFromIncorrectOwner();

    /// @dev Thrown when checking the owner or approved address for an non-existent NFT.
    error TokenDoesNotExist();

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                         CONSTANTS                          */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Amount of token balance that is equal to one NFT.
    uint256 internal constant _WAD = 10 ** 18;

    /// @dev The maximum token ID allowed for an NFT.
    uint256 internal constant _MAX_TOKEN_ID = 0xffffffff;

    /// @dev The maximum possible token supply.
    uint256 internal constant _MAX_SUPPLY = 10 ** 18 * 0xffffffff - 1;

    /// @dev The flag to denote that the address data is initialized.
    uint8 internal constant _ADDRESS_DATA_INITIALIZED_FLAG = 1 << 0;

    /// @dev The flag to denote that the address should skip NFTs.
    uint8 internal constant _ADDRESS_DATA_SKIP_NFT_FLAG = 1 << 1;

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                          STORAGE                           */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Struct containing an address's token data and settings.
    struct AddressData {
        // Auxiliary data.
        uint88 aux;
        // Flags for `initialized` and `skipNFT`.
        uint8 flags;
        // The alias for the address. Zero means absence of an alias.
        uint32 addressAlias;
        // The number of NFT tokens.
        uint32 ownedLength;
        // The token balance in wei.
        uint96 balance;
    }

    /// @dev A uint32 map in storage.
    struct Uint32Map {
        mapping(uint256 => uint256) map;
    }

    /// @dev Struct containing the base token contract storage.
    struct DN404Storage {
        // Current number of address aliases assigned.
        uint32 numAliases;
        // Next token ID to assign for an NFT mint.
        uint32 nextTokenId;
        // Total supply of minted NFTs.
        uint32 totalNFTSupply;
        // Total supply of tokens.
        uint96 totalSupply;
        // Address of the NFT mirror contract.
        address mirrorERC721;
        // Mapping of a user alias number to their address.
        mapping(uint32 => address) aliasToAddress;
        // Mapping of user operator approvals for NFTs.
        mapping(address => mapping(address => bool)) operatorApprovals;
        // Mapping of NFT token approvals to approved operators.
        mapping(uint256 => address) tokenApprovals;
        // Mapping of user allowances for token spenders.
        mapping(address => mapping(address => uint256)) allowance;
        // Mapping of NFT token IDs owned by an address.
        mapping(address => Uint32Map) owned;
        // Even indices: owner aliases. Odd indices: owned indices.
        Uint32Map oo;
        // Mapping of user account AddressData
        mapping(address => AddressData) addressData;
    }

    /// @dev Returns a storage pointer for DN404Storage.
    function _getDN404Storage() internal pure virtual returns (DN404Storage storage $) {
        /// @solidity memory-safe-assembly
        assembly {
            // `uint72(bytes9(keccak256("DN404_STORAGE")))`.
            $.slot := 0xa20d6e21d0e5255308 // Truncate to 9 bytes to reduce bytecode size.
        }
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                         INITIALIZER                        */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Initializes the DN404 contract with an
    /// `initialTokenSupply`, `initialTokenOwner` and `mirror` NFT contract address.
    function _initializeDN404(
        uint256 initialTokenSupply,
        address initialSupplyOwner,
        address mirror
    ) internal virtual {
        DN404Storage storage $ = _getDN404Storage();

        if ($.nextTokenId != 0) revert DNAlreadyInitialized();

        if (mirror == address(0)) revert MirrorAddressIsZero();
        _linkMirrorContract(mirror);

        $.nextTokenId = 1;
        $.mirrorERC721 = mirror;

        if (initialTokenSupply > 0) {
            if (initialSupplyOwner == address(0)) revert TransferToZeroAddress();
            if (initialTokenSupply > _MAX_SUPPLY) revert TotalSupplyOverflow();

            $.totalSupply = uint96(initialTokenSupply);
            AddressData storage initialOwnerAddressData = _addressData(initialSupplyOwner);
            initialOwnerAddressData.balance = uint96(initialTokenSupply);

            emit Transfer(address(0), initialSupplyOwner, initialTokenSupply);

            _setSkipNFT(initialSupplyOwner, true);
        }
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*               METADATA FUNCTIONS TO OVERRIDE               */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns the name of the token.
    function name() public view virtual returns (string memory);

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

    /// @dev Returns the Uniform Resource Identifier (URI) for token `id`.
    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                      ERC20 OPERATIONS                      */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns the decimals places of the token. Always 18.
    function decimals() public pure returns (uint8) {
        return 18;
    }

    /// @dev Returns the amount of tokens in existence.
    function totalSupply() public view virtual returns (uint256) {
        return uint256(_getDN404Storage().totalSupply);
    }

    /// @dev Returns the amount of tokens owned by `owner`.
    function balanceOf(address owner) public view virtual returns (uint256) {
        return _getDN404Storage().addressData[owner].balance;
    }

    /// @dev Returns the amount of tokens that `spender` can spend on behalf of `owner`.
    function allowance(address owner, address spender) public view returns (uint256) {
        return _getDN404Storage().allowance[owner][spender];
    }

    /// @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
    ///
    /// Emits a {Approval} event.
    function approve(address spender, uint256 amount) public virtual returns (bool) {
        DN404Storage storage $ = _getDN404Storage();

        $.allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    /// @dev Transfer `amount` tokens from the caller to `to`.
    ///
    /// Will burn sender NFTs if balance after transfer is less than
    /// the amount required to support the current NFT balance.
    ///
    /// Will mint NFTs to `to` if the recipient's new balance supports
    /// additional NFTs ***AND*** the `to` address's skipNFT flag is
    /// set to false.
    ///
    /// Requirements:
    /// - `from` must at least have `amount`.
    ///
    /// Emits a {Transfer} event.
    function transfer(address to, uint256 amount) public virtual returns (bool) {
        _transfer(msg.sender, to, amount);
        return true;
    }

    /// @dev Transfers `amount` tokens from `from` to `to`.
    ///
    /// Note: Does not update the allowance if it is the maximum uint256 value.
    ///
    /// Will burn sender NFTs if balance after transfer is less than
    /// the amount required to support the current NFT balance.
    ///
    /// Will mint NFTs to `to` if the recipient's new balance supports
    /// additional NFTs ***AND*** the `to` address's skipNFT flag is
    /// set to false.
    ///
    /// Requirements:
    /// - `from` must at least have `amount`.
    /// - The caller must have at least `amount` of allowance to transfer the tokens of `from`.
    ///
    /// Emits a {Transfer} event.
    function transferFrom(address from, address to, uint256 amount) public virtual returns (bool) {
        DN404Storage storage $ = _getDN404Storage();

        uint256 allowed = $.allowance[from][msg.sender];

        if (allowed != type(uint256).max) {
            if (amount > allowed) revert InsufficientAllowance();
            unchecked {
                $.allowance[from][msg.sender] = allowed - amount;
            }
        }

        _transfer(from, to, amount);

        return true;
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                  INTERNAL MINT FUNCTIONS                   */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Mints `amount` tokens to `to`, increasing the total supply.
    ///
    /// Will mint NFTs to `to` if the recipient's new balance supports
    /// additional NFTs ***AND*** the `to` address's skipNFT flag is
    /// set to false.
    ///
    /// Emits a {Transfer} event.
    function _mint(address to, uint256 amount) internal virtual {
        if (to == address(0)) revert TransferToZeroAddress();

        DN404Storage storage $ = _getDN404Storage();

        AddressData storage toAddressData = _addressData(to);

        unchecked {
            uint256 currentTokenSupply = uint256($.totalSupply) + amount;
            if (amount > _MAX_SUPPLY || currentTokenSupply > _MAX_SUPPLY) {
                revert TotalSupplyOverflow();
            }
            $.totalSupply = uint96(currentTokenSupply);

            uint256 toBalance = toAddressData.balance + amount;
            toAddressData.balance = uint96(toBalance);

            if (toAddressData.flags & _ADDRESS_DATA_SKIP_NFT_FLAG == 0) {
                Uint32Map storage toOwned = $.owned[to];
                uint256 toIndex = toAddressData.ownedLength;
                uint256 toEnd = toBalance / _WAD;
                _PackedLogs memory packedLogs = _packedLogsMalloc(_zeroFloorSub(toEnd, toIndex));

                if (packedLogs.logs.length != 0) {
                    uint256 maxNFTId = $.totalSupply / _WAD;
                    uint32 toAlias = _registerAndResolveAlias(toAddressData, to);
                    uint256 id = $.nextTokenId;
                    $.totalNFTSupply += uint32(packedLogs.logs.length);
                    toAddressData.ownedLength = uint32(toEnd);
                    // Mint loop.
                    do {
                        while (_get($.oo, _ownershipIndex(id)) != 0) {
                            if (++id > maxNFTId) id = 1;
                        }
                        _set(toOwned, toIndex, uint32(id));
                        _setOwnerAliasAndOwnedIndex($.oo, id, toAlias, uint32(toIndex++));
                        _packedLogsAppend(packedLogs, to, id, 0);
                        if (++id > maxNFTId) id = 1;
                    } while (toIndex != toEnd);
                    $.nextTokenId = uint32(id);
                    _packedLogsSend(packedLogs, $.mirrorERC721);
                }
            }
        }
        emit Transfer(address(0), to, amount);
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                  INTERNAL BURN FUNCTIONS                   */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Burns `amount` tokens from `from`, reducing the total supply.
    ///
    /// Will burn sender NFTs if balance after transfer is less than
    /// the amount required to support the current NFT balance.
    ///
    /// Emits a {Transfer} event.
    function _burn(address from, uint256 amount) internal virtual {
        DN404Storage storage $ = _getDN404Storage();

        AddressData storage fromAddressData = _addressData(from);

        uint256 fromBalance = fromAddressData.balance;
        if (amount > fromBalance) revert InsufficientBalance();

        uint256 currentTokenSupply = $.totalSupply;

        unchecked {
            fromBalance -= amount;
            fromAddressData.balance = uint96(fromBalance);
            currentTokenSupply -= amount;
            $.totalSupply = uint96(currentTokenSupply);

            Uint32Map storage fromOwned = $.owned[from];
            uint256 fromIndex = fromAddressData.ownedLength;
            uint256 nftAmountToBurn = _zeroFloorSub(fromIndex, fromBalance / _WAD);

            if (nftAmountToBurn != 0) {
                $.totalNFTSupply -= uint32(nftAmountToBurn);

                _PackedLogs memory packedLogs = _packedLogsMalloc(nftAmountToBurn);

                uint256 fromEnd = fromIndex - nftAmountToBurn;
                // Burn loop.
                do {
                    uint256 id = _get(fromOwned, --fromIndex);
                    _setOwnerAliasAndOwnedIndex($.oo, id, 0, 0);
                    delete $.tokenApprovals[id];
                    _packedLogsAppend(packedLogs, from, id, 1);
                } while (fromIndex != fromEnd);

                fromAddressData.ownedLength = uint32(fromIndex);
                _packedLogsSend(packedLogs, $.mirrorERC721);
            }
        }
        emit Transfer(from, address(0), amount);
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                INTERNAL TRANSFER FUNCTIONS                 */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Moves `amount` of tokens from `from` to `to`.
    ///
    /// Will burn sender NFTs if balance after transfer is less than
    /// the amount required to support the current NFT balance.
    ///
    /// Will mint NFTs to `to` if the recipient's new balance supports
    /// additional NFTs ***AND*** the `to` address's skipNFT flag is
    /// set to false.
    ///
    /// Emits a {Transfer} event.
    function _transfer(address from, address to, uint256 amount) internal virtual {
        if (to == address(0)) revert TransferToZeroAddress();

        DN404Storage storage $ = _getDN404Storage();

        AddressData storage fromAddressData = _addressData(from);
        AddressData storage toAddressData = _addressData(to);

        _TransferTemps memory t;
        t.fromOwnedLength = fromAddressData.ownedLength;
        t.toOwnedLength = toAddressData.ownedLength;
        t.fromBalance = fromAddressData.balance;

        if (amount > t.fromBalance) revert InsufficientBalance();

        unchecked {
            t.fromBalance -= amount;
            fromAddressData.balance = uint96(t.fromBalance);
            toAddressData.balance = uint96(t.toBalance = toAddressData.balance + amount);

            t.nftAmountToBurn = _zeroFloorSub(t.fromOwnedLength, t.fromBalance / _WAD);

            if (toAddressData.flags & _ADDRESS_DATA_SKIP_NFT_FLAG == 0) {
                if (from == to) t.toOwnedLength = t.fromOwnedLength - t.nftAmountToBurn;
                t.nftAmountToMint = _zeroFloorSub(t.toBalance / _WAD, t.toOwnedLength);
            }

            _PackedLogs memory packedLogs = _packedLogsMalloc(t.nftAmountToBurn + t.nftAmountToMint);

            if (t.nftAmountToBurn != 0) {
                Uint32Map storage fromOwned = $.owned[from];
                uint256 fromIndex = t.fromOwnedLength;
                uint256 fromEnd = fromIndex - t.nftAmountToBurn;
                $.totalNFTSupply -= uint32(t.nftAmountToBurn);
                fromAddressData.ownedLength = uint32(fromEnd);
                // Burn loop.
                do {
                    uint256 id = _get(fromOwned, --fromIndex);
                    _setOwnerAliasAndOwnedIndex($.oo, id, 0, 0);
                    delete $.tokenApprovals[id];
                    _packedLogsAppend(packedLogs, from, id, 1);
                } while (fromIndex != fromEnd);
            }

            if (t.nftAmountToMint != 0) {
                Uint32Map storage toOwned = $.owned[to];
                uint256 toIndex = t.toOwnedLength;
                uint256 toEnd = toIndex + t.nftAmountToMint;
                uint32 toAlias = _registerAndResolveAlias(toAddressData, to);
                uint256 maxNFTId = $.totalSupply / _WAD;
                uint256 id = $.nextTokenId;
                $.totalNFTSupply += uint32(t.nftAmountToMint);
                toAddressData.ownedLength = uint32(toEnd);
                // Mint loop.
                do {
                    while (_get($.oo, _ownershipIndex(id)) != 0) {
                        if (++id > maxNFTId) id = 1;
                    }
                    _set(toOwned, toIndex, uint32(id));
                    _setOwnerAliasAndOwnedIndex($.oo, id, toAlias, uint32(toIndex++));
                    _packedLogsAppend(packedLogs, to, id, 0);
                    if (++id > maxNFTId) id = 1;
                } while (toIndex != toEnd);
                $.nextTokenId = uint32(id);
            }

            if (packedLogs.logs.length != 0) {
                _packedLogsSend(packedLogs, $.mirrorERC721);
            }
        }
        emit Transfer(from, to, amount);
    }

    /// @dev Transfers token `id` from `from` to `to`.
    ///
    /// Requirements:
    ///
    /// - Call must originate from the mirror contract.
    /// - Token `id` must exist.
    /// - `from` must be the owner of the token.
    /// - `to` cannot be the zero address.
    ///   `msgSender` must be the owner of the token, or be approved to manage the token.
    ///
    /// Emits a {Transfer} event.
    function _transferFromNFT(address from, address to, uint256 id, address msgSender)
        internal
        virtual
    {
        DN404Storage storage $ = _getDN404Storage();

        if (to == address(0)) revert TransferToZeroAddress();

        address owner = $.aliasToAddress[_get($.oo, _ownershipIndex(id))];

        if (from != owner) revert TransferFromIncorrectOwner();

        if (msgSender != from) {
            if (!$.operatorApprovals[from][msgSender]) {
                if (msgSender != $.tokenApprovals[id]) {
                    revert TransferCallerNotOwnerNorApproved();
                }
            }
        }

        AddressData storage fromAddressData = _addressData(from);
        AddressData storage toAddressData = _addressData(to);

        fromAddressData.balance -= uint96(_WAD);

        unchecked {
            toAddressData.balance += uint96(_WAD);

            _set($.oo, _ownershipIndex(id), _registerAndResolveAlias(toAddressData, to));
            delete $.tokenApprovals[id];

            uint256 updatedId = _get($.owned[from], --fromAddressData.ownedLength);
            _set($.owned[from], _get($.oo, _ownedIndex(id)), uint32(updatedId));

            uint256 n = toAddressData.ownedLength++;
            _set($.oo, _ownedIndex(updatedId), _get($.oo, _ownedIndex(id)));
            _set($.owned[to], n, uint32(id));
            _set($.oo, _ownedIndex(id), uint32(n));
        }

        emit Transfer(from, to, _WAD);
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                 DATA HITCHHIKING FUNCTIONS                 */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns the auxiliary data for `owner`.
    /// Minting, transferring, burning the tokens of `owner` will not change the auxiliary data.
    /// Auxiliary data can be set for any address, even if it does not have any tokens.
    function _getAux(address owner) internal view virtual returns (uint88) {
        return _getDN404Storage().addressData[owner].aux;
    }

    /// @dev Set the auxiliary data for `owner` to `value`.
    /// Minting, transferring, burning the tokens of `owner` will not change the auxiliary data.
    /// Auxiliary data can be set for any address, even if it does not have any tokens.
    function _setAux(address owner, uint88 value) internal virtual {
        _getDN404Storage().addressData[owner].aux = value;
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                     SKIP NFT FUNCTIONS                     */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns true if account `a` will skip NFT minting on token mints and transfers.
    /// Returns false if account `a` will mint NFTs on token mints and transfers.
    function getSkipNFT(address a) public view virtual returns (bool) {
        AddressData storage d = _getDN404Storage().addressData[a];
        if (d.flags & _ADDRESS_DATA_INITIALIZED_FLAG == 0) return _hasCode(a);
        return d.flags & _ADDRESS_DATA_SKIP_NFT_FLAG != 0;
    }

    /// @dev Sets the caller's skipNFT flag to `skipNFT`
    ///
    /// Emits a {SkipNFTSet} event.
    function setSkipNFT(bool skipNFT) public virtual {
        _setSkipNFT(msg.sender, skipNFT);
    }

    /// @dev Internal function to set account `a` skipNFT flag to `state`
    ///
    /// Initializes account `a` AddressData if it is not currently initialized.
    ///
    /// Emits a {SkipNFTSet} event.
    function _setSkipNFT(address a, bool state) internal virtual {
        AddressData storage d = _addressData(a);
        if ((d.flags & _ADDRESS_DATA_SKIP_NFT_FLAG != 0) != state) {
            d.flags ^= _ADDRESS_DATA_SKIP_NFT_FLAG;
        }
        emit SkipNFTSet(a, state);
    }

    /// @dev Returns a storage data pointer for account `a` AddressData
    ///
    /// Initializes account `a` AddressData if it is not currently initialized.
    function _addressData(address a) internal virtual returns (AddressData storage d) {
        DN404Storage storage $ = _getDN404Storage();
        d = $.addressData[a];

        if (d.flags & _ADDRESS_DATA_INITIALIZED_FLAG == 0) {
            uint8 flags = _ADDRESS_DATA_INITIALIZED_FLAG;
            if (_hasCode(a)) flags |= _ADDRESS_DATA_SKIP_NFT_FLAG;
            d.flags = flags;
        }
    }

    /// @dev Returns the `addressAlias` of account `to`.
    ///
    /// Assigns and registers the next alias if `to` alias was not previously registered.
    function _registerAndResolveAlias(AddressData storage toAddressData, address to)
        internal
        virtual
        returns (uint32 addressAlias)
    {
        DN404Storage storage $ = _getDN404Storage();
        addressAlias = toAddressData.addressAlias;
        if (addressAlias == 0) {
            addressAlias = ++$.numAliases;
            toAddressData.addressAlias = addressAlias;
            $.aliasToAddress[addressAlias] = to;
        }
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                     MIRROR OPERATIONS                      */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns the address of the mirror NFT contract.
    function mirrorERC721() public view virtual returns (address) {
        return _getDN404Storage().mirrorERC721;
    }

    /// @dev Returns the total NFT supply.
    function _totalNFTSupply() internal view virtual returns (uint256) {
        return _getDN404Storage().totalNFTSupply;
    }

    /// @dev Returns `owner` NFT balance.
    function _balanceOfNFT(address owner) internal view virtual returns (uint256) {
        return _getDN404Storage().addressData[owner].ownedLength;
    }

    /// @dev Returns the owner of token `id`.
    /// Returns the zero address instead of reverting if the token does not exist.
    function _ownerAt(uint256 id) internal view virtual returns (address) {
        DN404Storage storage $ = _getDN404Storage();
        return $.aliasToAddress[_get($.oo, _ownershipIndex(id))];
    }

    /// @dev Returns the owner of token `id`.
    ///
    /// Requirements:
    /// - Token `id` must exist.
    function _ownerOf(uint256 id) internal view virtual returns (address) {
        if (!_exists(id)) revert TokenDoesNotExist();
        return _ownerAt(id);
    }

    /// @dev Returns if token `id` exists.
    function _exists(uint256 id) internal view virtual returns (bool) {
        return _ownerAt(id) != address(0);
    }

    /// @dev Returns the account approved to manage token `id`.
    ///
    /// Requirements:
    /// - Token `id` must exist.
    function _getApproved(uint256 id) internal view virtual returns (address) {
        if (!_exists(id)) revert TokenDoesNotExist();
        return _getDN404Storage().tokenApprovals[id];
    }

    /// @dev Sets `spender` as the approved account to manage token `id`, using `msgSender`.
    ///
    /// Requirements:
    /// - `msgSender` must be the owner or an approved operator for the token owner.
    function _approveNFT(address spender, uint256 id, address msgSender)
        internal
        virtual
        returns (address)
    {
        DN404Storage storage $ = _getDN404Storage();

        address owner = $.aliasToAddress[_get($.oo, _ownershipIndex(id))];

        if (msgSender != owner) {
            if (!$.operatorApprovals[owner][msgSender]) {
                revert ApprovalCallerNotOwnerNorApproved();
            }
        }

        $.tokenApprovals[id] = spender;

        return owner;
    }

    /// @dev Approve or remove the `operator` as an operator for `msgSender`,
    /// without authorization checks.
    function _setApprovalForAll(address operator, bool approved, address msgSender)
        internal
        virtual
    {
        _getDN404Storage().operatorApprovals[msgSender][operator] = approved;
    }

    /// @dev Calls the mirror contract to link it to this contract.
    ///
    /// Reverts if the call to the mirror contract reverts.
    function _linkMirrorContract(address mirror) internal virtual {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0x0f4599e5) // `linkMirrorContract(address)`.
            mstore(0x20, caller())
            if iszero(and(eq(mload(0x00), 1), call(gas(), mirror, 0, 0x1c, 0x24, 0x00, 0x20))) {
                mstore(0x00, 0xd125259c) // `LinkMirrorContractFailed()`.
                revert(0x1c, 0x04)
            }
        }
    }

    /// @dev Fallback modifier to dispatch calls from the mirror NFT contract
    /// to internal functions in this contract.
    modifier dn404Fallback() virtual {
        DN404Storage storage $ = _getDN404Storage();

        uint256 fnSelector = _calldataload(0x00) >> 224;

        // `isApprovedForAll(address,address)`.
        if (fnSelector == 0xe985e9c5) {
            if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
            if (msg.data.length < 0x44) revert();

            address owner = address(uint160(_calldataload(0x04)));
            address operator = address(uint160(_calldataload(0x24)));

            _return($.operatorApprovals[owner][operator] ? 1 : 0);
        }
        // `ownerOf(uint256)`.
        if (fnSelector == 0x6352211e) {
            if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
            if (msg.data.length < 0x24) revert();

            uint256 id = _calldataload(0x04);

            _return(uint160(_ownerOf(id)));
        }
        // `transferFromNFT(address,address,uint256,address)`.
        if (fnSelector == 0xe5eb36c8) {
            if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
            if (msg.data.length < 0x84) revert();

            address from = address(uint160(_calldataload(0x04)));
            address to = address(uint160(_calldataload(0x24)));
            uint256 id = _calldataload(0x44);
            address msgSender = address(uint160(_calldataload(0x64)));

            _transferFromNFT(from, to, id, msgSender);
            _return(1);
        }
        // `setApprovalForAll(address,bool,address)`.
        if (fnSelector == 0x813500fc) {
            if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
            if (msg.data.length < 0x64) revert();

            address spender = address(uint160(_calldataload(0x04)));
            bool status = _calldataload(0x24) != 0;
            address msgSender = address(uint160(_calldataload(0x44)));

            _setApprovalForAll(spender, status, msgSender);
            _return(1);
        }
        // `approveNFT(address,uint256,address)`.
        if (fnSelector == 0xd10b6e0c) {
            if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
            if (msg.data.length < 0x64) revert();

            address spender = address(uint160(_calldataload(0x04)));
            uint256 id = _calldataload(0x24);
            address msgSender = address(uint160(_calldataload(0x44)));

            _return(uint160(_approveNFT(spender, id, msgSender)));
        }
        // `getApproved(uint256)`.
        if (fnSelector == 0x081812fc) {
            if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
            if (msg.data.length < 0x24) revert();

            uint256 id = _calldataload(0x04);

            _return(uint160(_getApproved(id)));
        }
        // `balanceOfNFT(address)`.
        if (fnSelector == 0xf5b100ea) {
            if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
            if (msg.data.length < 0x24) revert();

            address owner = address(uint160(_calldataload(0x04)));

            _return(_balanceOfNFT(owner));
        }
        // `totalNFTSupply()`.
        if (fnSelector == 0xe2c79281) {
            if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
            if (msg.data.length < 0x04) revert();

            _return(_totalNFTSupply());
        }
        // `implementsDN404()`.
        if (fnSelector == 0xb7a94eb8) {
            _return(1);
        }
        _;
    }

    /// @dev Fallback function for calls from mirror NFT contract.
    fallback() external payable virtual dn404Fallback {}

    receive() external payable virtual {}

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                      PRIVATE HELPERS                       */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Struct containing packed log data for `Transfer` events to be
    /// emitted by the mirror NFT contract.
    struct _PackedLogs {
        uint256[] logs;
        uint256 offset;
    }

    /// @dev Initiates memory allocation for packed logs with `n` log items.
    function _packedLogsMalloc(uint256 n) private pure returns (_PackedLogs memory p) {
        /// @solidity memory-safe-assembly
        assembly {
            let logs := add(mload(0x40), 0x40) // Offset by 2 words for `_packedLogsSend`.
            mstore(logs, n)
            let offset := add(0x20, logs)
            mstore(0x40, add(offset, shl(5, n)))
            mstore(p, logs)
            mstore(add(0x20, p), offset)
        }
    }

    /// @dev Adds a packed log item to `p` with address `a`, token `id` and burn flag `burnBit`.
    function _packedLogsAppend(_PackedLogs memory p, address a, uint256 id, uint256 burnBit)
        private
        pure
    {
        /// @solidity memory-safe-assembly
        assembly {
            let offset := mload(add(0x20, p))
            mstore(offset, or(or(shl(96, a), shl(8, id)), burnBit))
            mstore(add(0x20, p), add(offset, 0x20))
        }
    }

    /// @dev Calls the `mirror` NFT contract to emit Transfer events for packed logs `p`.
    function _packedLogsSend(_PackedLogs memory p, address mirror) private {
        /// @solidity memory-safe-assembly
        assembly {
            let logs := mload(p)
            let o := sub(logs, 0x40) // Start of calldata to send.
            mstore(o, 0x263c69d6) // `logTransfer(uint256[])`.
            mstore(add(o, 0x20), 0x20) // Offset of `logs` in the calldata to send.
            let n := add(0x44, shl(5, mload(logs))) // Length of calldata to send.
            if iszero(and(eq(mload(o), 1), call(gas(), mirror, 0, add(o, 0x1c), n, o, 0x20))) {
                revert(o, 0x00)
            }
        }
    }

    /// @dev Struct of temporary variables for transfers.
    struct _TransferTemps {
        uint256 nftAmountToBurn;
        uint256 nftAmountToMint;
        uint256 fromBalance;
        uint256 toBalance;
        uint256 fromOwnedLength;
        uint256 toOwnedLength;
    }

    /// @dev Returns if `a` has bytecode of non-zero length.
    function _hasCode(address a) private view returns (bool result) {
        /// @solidity memory-safe-assembly
        assembly {
            result := extcodesize(a) // Can handle dirty upper bits.
        }
    }

    /// @dev Returns the calldata value at `offset`.
    function _calldataload(uint256 offset) private pure returns (uint256 value) {
        /// @solidity memory-safe-assembly
        assembly {
            value := calldataload(offset)
        }
    }

    /// @dev Executes a return opcode to return `x` and end the current call frame.
    function _return(uint256 x) private pure {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, x)
            return(0x00, 0x20)
        }
    }

    /// @dev Returns `max(0, x - y)`.
    function _zeroFloorSub(uint256 x, uint256 y) private pure returns (uint256 z) {
        /// @solidity memory-safe-assembly
        assembly {
            z := mul(gt(x, y), sub(x, y))
        }
    }

    /// @dev Returns `i << 1`.
    function _ownershipIndex(uint256 i) private pure returns (uint256) {
        return i << 1;
    }

    /// @dev Returns `(i << 1) + 1`.
    function _ownedIndex(uint256 i) private pure returns (uint256) {
        unchecked {
            return (i << 1) + 1;
        }
    }

    /// @dev Returns the uint32 value at `index` in `map`.
    function _get(Uint32Map storage map, uint256 index) private view returns (uint32 result) {
        result = uint32(map.map[index >> 3] >> ((index & 7) << 5));
    }

    /// @dev Updates the uint32 value at `index` in `map`.
    function _set(Uint32Map storage map, uint256 index, uint32 value) private {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x20, map.slot)
            mstore(0x00, shr(3, index))
            let s := keccak256(0x00, 0x40) // Storage slot.
            let o := shl(5, and(index, 7)) // Storage slot offset (bits).
            let v := sload(s) // Storage slot value.
            let m := 0xffffffff // Value mask.
            sstore(s, xor(v, shl(o, and(m, xor(shr(o, v), value)))))
        }
    }

    /// @dev Sets the owner alias and the owned index together.
    function _setOwnerAliasAndOwnedIndex(
        Uint32Map storage map,
        uint256 id,
        uint32 ownership,
        uint32 ownedIndex
    ) private {
        /// @solidity memory-safe-assembly
        assembly {
            let value := or(shl(32, ownedIndex), and(0xffffffff, ownership))
            mstore(0x20, map.slot)
            mstore(0x00, shr(2, id))
            let s := keccak256(0x00, 0x40) // Storage slot.
            let o := shl(6, and(id, 3)) // Storage slot offset (bits).
            let v := sload(s) // Storage slot value.
            let m := 0xffffffffffffffff // Value mask.
            sstore(s, xor(v, shl(o, and(m, xor(shr(o, v), value)))))
        }
    }
}

contract DONUT404 is DN404, Ownable {
    string private _name;
    string private _symbol;
    string private _baseURI;
    string private _fallbackURI;

    constructor(
        string memory name_,
        string memory symbol_,
        uint96 initialTokenSupply,
        address initialSupplyOwner
    ) {
        _initializeOwner(msg.sender);

        _name = name_;
        _symbol = symbol_;

        address mirror = address(new DN404Mirror(msg.sender));
        _initializeDN404(initialTokenSupply, initialSupplyOwner, mirror);
    }

    function name() public view override returns (string memory) {
        return _name;
    }

    function symbol() public view override returns (string memory) {
        return _symbol;
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory result) {
        if (bytes(_baseURI).length != 0) {
            result = string(abi.encodePacked(_baseURI, LibString.toString(tokenId)));
        }

        string memory jsonPreImage = string(abi.encodePacked(
                string(abi.encodePacked(
                    string(abi.encodePacked("{\"name\": \"Donut404 #", LibString.toString(tokenId))),
                    ",\"description\":\"10,000 scrumptious replicant donuts, baked with DN404\",\"image\":\""
                )),
                _fallbackURI
            ));


            string memory jsonPostImage = "\",\"attributes\":[]}';";

            result = string(abi.encodePacked(
                    "data:application/json;utf8,",
                    string(abi.encodePacked(jsonPreImage, jsonPostImage))
                ));
    }



    function setBaseURI(string calldata baseURI_) public onlyOwner {
        _baseURI = baseURI_;
    }

    function setFallbackURI(string calldata fallbackURI_) public onlyOwner {
        _fallbackURI = fallbackURI_;
    }

    function withdraw() public onlyOwner {
        SafeTransferLib.safeTransferAllETH(msg.sender);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint96","name":"initialTokenSupply","type":"uint96"},{"internalType":"address","name":"initialSupplyOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyInitialized","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"DNAlreadyInitialized","type":"error"},{"inputs":[],"name":"InsufficientAllowance","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"LinkMirrorContractFailed","type":"error"},{"inputs":[],"name":"MirrorAddressIsZero","type":"error"},{"inputs":[],"name":"NewOwnerIsZeroAddress","type":"error"},{"inputs":[],"name":"NoHandoverRequest","type":"error"},{"inputs":[],"name":"SenderNotMirror","type":"error"},{"inputs":[],"name":"TokenDoesNotExist","type":"error"},{"inputs":[],"name":"TotalSupplyOverflow","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","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":"address","name":"target","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"SkipNFTSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"cancelOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"completeOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"getSkipNFT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mirrorERC721","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"result","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":"renounceOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"requestOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"fallbackURI_","type":"string"}],"name":"setFallbackURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"skipNFT","type":"bool"}],"name":"setSkipNFT","outputs":[],"stateMutability":"nonpayable","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":"result","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b506040516200546a3803806200546a833981810160405281019062000037919062000802565b6200004833620000e360201b60201c565b836000908051906020019062000060929190620006a4565b50826001908051906020019062000079929190620006a4565b506000336040516200008b9062000735565b620000979190620008d3565b604051809103906000f080158015620000b4573d6000803e3d6000fd5b509050620000d8836bffffffffffffffffffffffff168383620001c960201b60201c565b505050505062000b30565b620000f3620004c960201b60201c565b1562000171577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278054156200013057630dc149f06000526004601cfd5b8160601b60601c9150811560ff1b821781558160007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a350620001c6565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a35b50565b6000620001db620004ce60201b60201c565b905060008160000160049054906101000a900463ffffffff1663ffffffff161462000232576040517fead4d2e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200029a576040517f39a84a7b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620002ab82620004df60201b60201c565b60018160000160046101000a81548163ffffffff021916908363ffffffff160217905550818160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000841115620004c357600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141562000384576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6b0de0b6b39983494c589bffff841115620003cb576040517fe5cfe95700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8381600001600c6101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550600062000411846200051560201b60201c565b9050848160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055508373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef87604051620004a691906200090d565b60405180910390a3620004c1846001620005d760201b60201c565b505b50505050565b600090565b600068a20d6e21d0e5255308905090565b630f4599e560005233602052602060006024601c6000855af160016000511416620005125763d125259c6000526004601cfd5b50565b60008062000528620004ce60201b60201c565b90508060080160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002091506000600183600001600b9054906101000a900460ff161660ff161415620005d157600060019050620005a5846200069960201b60201c565b15620005b2576002811790505b8083600001600b6101000a81548160ff021916908360ff160217905550505b50919050565b6000620005ea836200051560201b60201c565b90508115156000600283600001600b9054906101000a900460ff161660ff1614151515146200064457600281600001600b8282829054906101000a900460ff161892506101000a81548160ff021916908360ff1602179055505b8273ffffffffffffffffffffffffffffffffffffffff167fb5a1de456fff688115a4f75380060c23c8532d14ff85f687cc871456d6420393836040516200068c9190620008f0565b60405180910390a2505050565b6000813b9050919050565b828054620006b29062000a21565b90600052602060002090601f016020900481019282620006d6576000855562000722565b82601f10620006f157805160ff191683800117855562000722565b8280016001018555821562000722579182015b828111156200072157825182559160200191906001019062000704565b5b50905062000731919062000743565b5090565b611339806200413183390190565b5b808211156200075e57600081600090555060010162000744565b5090565b600062000779620007738462000953565b6200092a565b9050828152602081018484840111156200079257600080fd5b6200079f848285620009eb565b509392505050565b600081519050620007b88162000afc565b92915050565b600082601f830112620007d057600080fd5b8151620007e284826020860162000762565b91505092915050565b600081519050620007fc8162000b16565b92915050565b600080600080608085870312156200081957600080fd5b600085015167ffffffffffffffff8111156200083457600080fd5b6200084287828801620007be565b945050602085015167ffffffffffffffff8111156200086057600080fd5b6200086e87828801620007be565b93505060406200088187828801620007eb565b92505060606200089487828801620007a7565b91505092959194509250565b620008ab8162000989565b82525050565b620008bc816200099d565b82525050565b620008cd81620009c9565b82525050565b6000602082019050620008ea6000830184620008a0565b92915050565b6000602082019050620009076000830184620008b1565b92915050565b6000602082019050620009246000830184620008c2565b92915050565b60006200093662000949565b905062000944828262000a57565b919050565b6000604051905090565b600067ffffffffffffffff82111562000971576200097062000abc565b5b6200097c8262000aeb565b9050602081019050919050565b60006200099682620009a9565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006bffffffffffffffffffffffff82169050919050565b60005b8381101562000a0b578082015181840152602081019050620009ee565b8381111562000a1b576000848401525b50505050565b6000600282049050600182168062000a3a57607f821691505b6020821081141562000a515762000a5062000a8d565b5b50919050565b62000a628262000aeb565b810181811067ffffffffffffffff8211171562000a845762000a8362000abc565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b62000b078162000989565b811462000b1357600080fd5b50565b62000b2181620009d3565b811462000b2d57600080fd5b50565b6135f18062000b406000396000f3fe6080604052600436106101445760003560e01c806354d1f13d116100b6578063a9059cbb1161006f578063a9059cbb14610bb6578063c87b56dd14610bf3578063dd62ed3e14610c30578063f04e283e14610c6d578063f2fde38b14610c89578063fee81cf414610ca55761014b565b806354d1f13d14610ae657806355f804b314610af057806370a0823114610b19578063715018a614610b565780638da5cb5b14610b6057806395d89b4114610b8b5761014b565b806325692962116101085780632569296214610a09578063274e430b14610a135780632a6a935d14610a50578063313ce56714610a795780633ccfd60b14610aa45780634ef41efc14610abb5761014b565b806306fdde0314610910578063095ea7b31461093b57806318160ddd1461097857806318249af7146109a357806323b872dd146109cc5761014b565b3661014b57005b6000610155610ce2565b9050600060e06101656000610cf3565b901c905063e985e9c58114156102d4578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101fe576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60446000369050101561021057600080fd5b600061021c6004610cf3565b9050600061022a6024610cf3565b90506102d18460030160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166102c65760006102c9565b60015b60ff16610cfe565b50505b636352211e8114156103b2578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610369576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60246000369050101561037b57600080fd5b60006103876004610cf3565b90506103b061039582610d08565b73ffffffffffffffffffffffffffffffffffffffff16610cfe565b505b63e5eb36c88114156104ac578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610447576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60846000369050101561045957600080fd5b60006104656004610cf3565b905060006104736024610cf3565b905060006104816044610cf3565b9050600061048f6064610cf3565b905061049d84848484610d59565b6104a76001610cfe565b505050505b63813500fc811415610599578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610541576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60646000369050101561055357600080fd5b600061055f6004610cf3565b905060008061056e6024610cf3565b14159050600061057e6044610cf3565b905061058b838383611354565b6105956001610cfe565b5050505b63d10b6e0c811415610697578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461062e576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60646000369050101561064057600080fd5b600061064c6004610cf3565b9050600061065a6024610cf3565b905060006106686044610cf3565b90506106936106788484846113f6565b73ffffffffffffffffffffffffffffffffffffffff16610cfe565b5050505b63081812fc811415610775578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461072c576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60246000369050101561073e57600080fd5b600061074a6004610cf3565b9050610773610758826115b3565b73ffffffffffffffffffffffffffffffffffffffff16610cfe565b505b63f5b100ea81141561083d578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461080a576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60246000369050101561081c57600080fd5b60006108286004610cf3565b905061083b61083682611638565b610cfe565b505b63e2c792818114156108f5578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146108d2576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6004600036905010156108e457600080fd5b6108f46108ef6116a3565b610cfe565b5b63b7a94eb881141561090c5761090b6001610cfe565b5b5050005b34801561091c57600080fd5b506109256116cc565b6040516109329190613269565b60405180910390f35b34801561094757600080fd5b50610962600480360381019061095d9190612f00565b61175e565b60405161096f919061324e565b60405180910390f35b34801561098457600080fd5b5061098d61185e565b60405161099a919061328b565b60405180910390f35b3480156109af57600080fd5b506109ca60048036038101906109c59190612f65565b611897565b005b3480156109d857600080fd5b506109f360048036038101906109ee9190612eb1565b6118b5565b604051610a00919061324e565b60405180910390f35b610a11611a44565b005b348015610a1f57600080fd5b50610a3a6004803603810190610a359190612e4c565b611a98565b604051610a47919061324e565b60405180910390f35b348015610a5c57600080fd5b50610a776004803603810190610a729190612f3c565b611b3b565b005b348015610a8557600080fd5b50610a8e611b48565b604051610a9b91906132a6565b60405180910390f35b348015610ab057600080fd5b50610ab9611b51565b005b348015610ac757600080fd5b50610ad0611b64565b604051610add9190613233565b60405180910390f35b610aee611b97565b005b348015610afc57600080fd5b50610b176004803603810190610b129190612f65565b611bd3565b005b348015610b2557600080fd5b50610b406004803603810190610b3b9190612e4c565b611bf1565b604051610b4d919061328b565b60405180910390f35b610b5e611c6c565b005b348015610b6c57600080fd5b50610b75611c80565b604051610b829190613233565b60405180910390f35b348015610b9757600080fd5b50610ba0611ca9565b604051610bad9190613269565b60405180910390f35b348015610bc257600080fd5b50610bdd6004803603810190610bd89190612f00565b611d3b565b604051610bea919061324e565b60405180910390f35b348015610bff57600080fd5b50610c1a6004803603810190610c159190612faa565b611d52565b604051610c279190613269565b60405180910390f35b348015610c3c57600080fd5b50610c576004803603810190610c529190612e75565b611e89565b604051610c64919061328b565b60405180910390f35b610c876004803603810190610c829190612e4c565b611f19565b005b610ca36004803603810190610c9e9190612e4c565b611f5a565b005b348015610cb157600080fd5b50610ccc6004803603810190610cc79190612e4c565b611f84565b604051610cd9919061328b565b60405180910390f35b600068a20d6e21d0e5255308905090565b600081359050919050565b8060005260206000f35b6000610d1382611f9f565b610d49576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d5282611fe0565b9050919050565b6000610d63610ce2565b9050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610dcc576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000816002016000610de984600701610de48861204b565b612059565b63ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614610e8b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610fea578160030160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610fe95781600401600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610fe8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6000610ff587612087565b9050600061100287612087565b9050670de0b6b3a76400008260000160148282829054906101000a90046bffffffffffffffffffffffff1661103791906132fd565b92506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550670de0b6b3a76400008160000160148282829054906101000a90046bffffffffffffffffffffffff160192506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055506110dc846007016110cd8861204b565b6110d7848b612137565b612234565b83600401600087815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600061119d8560060160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002084600001601081819054906101000a900463ffffffff166001900391906101000a81548163ffffffff021916908363ffffffff160217905563ffffffff16612059565b63ffffffff16905061120a8560060160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206111fe876007016111f98b612268565b612059565b63ffffffff1683612234565b600082600001601081819054906101000a900463ffffffff168092919060010191906101000a81548163ffffffff021916908363ffffffff16021790555063ffffffff16905061127a8660070161126084612268565b611275896007016112708d612268565b612059565b612234565b6112c58660060160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828a612234565b6112db866007016112d58a612268565b83612234565b50508673ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef670de0b6b3a7640000604051611342919061328b565b60405180910390a35050505050505050565b8161135d610ce2565b60030160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b600080611401610ce2565b905060008160020160006114208460070161141b8961204b565b612059565b63ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614611553578160030160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611552576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8582600401600087815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080925050509392505050565b60006115be82611f9f565b6115f4576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6115fc610ce2565b600401600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000611642610ce2565b60080160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a900463ffffffff1663ffffffff169050919050565b60006116ad610ce2565b60000160089054906101000a900463ffffffff1663ffffffff16905090565b6060600080546116db906133e1565b80601f0160208091040260200160405190810160405280929190818152602001828054611707906133e1565b80156117545780601f1061172957610100808354040283529160200191611754565b820191906000526020600020905b81548152906001019060200180831161173757829003601f168201915b5050505050905090565b600080611769610ce2565b9050828160050160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258560405161184b919061328b565b60405180910390a3600191505092915050565b6000611868610ce2565b600001600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16905090565b61189f612278565b8181600391906118b0929190612cd0565b505050565b6000806118c0610ce2565b905060008160050160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611a2c57808411156119a6576040517f13be252b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8381038260050160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b611a378686866122b0565b6001925050509392505050565b6000611a4e6129d9565b67ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b600080611aa3610ce2565b60080160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600182600001600b9054906101000a900460ff161660ff161415611b1657611b0e836129e4565b915050611b36565b6000600282600001600b9054906101000a900460ff161660ff1614159150505b919050565b611b4533826129ef565b50565b60006012905090565b611b59612278565b611b6233612aa6565b565b6000611b6e610ce2565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b611bdb612278565b818160029190611bec929190612cd0565b505050565b6000611bfb610ce2565b60080160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff169050919050565b611c74612278565b611c7e6000612ac5565b565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b606060018054611cb8906133e1565b80601f0160208091040260200160405190810160405280929190818152602001828054611ce4906133e1565b8015611d315780601f10611d0657610100808354040283529160200191611d31565b820191906000526020600020905b815481529060010190602001808311611d1457829003601f168201915b5050505050905090565b6000611d483384846122b0565b6001905092915050565b6060600060028054611d63906133e1565b905014611d98576002611d7583612b8d565b604051602001611d869291906131cb565b60405160208183030381529060405290505b6000611da383612b8d565b604051602001611db39190613211565b604051602081830303815290604052604051602001611dd291906131a9565b6040516020818303038152906040526003604051602001611df4929190613185565b604051602081830303815290604052905060006040518060400160405280601481526020017f222c2261747472696275746573223a5b5d7d273b00000000000000000000000081525090508181604051602001611e52929190613161565b604051602081830303815290604052604051602001611e7191906131ef565b60405160208183030381529060405292505050919050565b6000611e93610ce2565b60050160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611f21612278565b63389a75e1600c52806000526020600c208054421115611f4957636f5e88186000526004601cfd5b6000815550611f5781612ac5565b50565b611f62612278565b8060601b611f7857637448fbae6000526004601cfd5b611f8181612ac5565b50565b600063389a75e1600c52816000526020600c20549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff16611fc183611fe0565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600080611feb610ce2565b9050806002016000612008836007016120038761204b565b612059565b63ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050919050565b6000600182901b9050919050565b6000600560078316901b836000016000600385901c815260200190815260200160002054901c905092915050565b600080612092610ce2565b90508060080160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002091506000600183600001600b9054906101000a900460ff161660ff16141561213157600060019050612106846129e4565b15612112576002811790505b8083600001600b6101000a81548160ff021916908360ff160217905550505b50919050565b600080612142610ce2565b905083600001600c9054906101000a900463ffffffff16915060008263ffffffff16141561222d5780600001600081819054906101000a900463ffffffff1661218a90613413565b91906101000a81548163ffffffff021916908363ffffffff160217905591508184600001600c6101000a81548163ffffffff021916908363ffffffff160217905550828160020160008463ffffffff1663ffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5092915050565b826020528160031c60005260406000206007831660051b815463ffffffff8482841c188116831b8218845550505050505050565b600060018083901b019050919050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275433146122ae576382b429006000526004601cfd5b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612317576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612321610ce2565b9050600061232e85612087565b9050600061233b85612087565b9050612345612d56565b8260000160109054906101000a900463ffffffff1663ffffffff168160800181815250508160000160109054906101000a900463ffffffff1663ffffffff168160a00181815250508260000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1681604001818152505080604001518511156123ff576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8481604001818151039150818152505080604001518360000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550848260000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff160181606001818152508260000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055506124fd8160800151670de0b6b3a76400008360400151816124f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b04612be7565b8160000181815250506000600283600001600b9054906101000a900460ff161660ff1614156125c9578573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16141561256f5780600001518160800151038160a00181815250505b6125bf670de0b6b3a76400008260600151816125b4577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b048260a00151612be7565b8160200181815250505b60006125de8260200151836000015101612bf8565b905060008260000151146127225760008560060160008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600083608001519050600084600001518203905084600001518860000160088282829054906101000a900463ffffffff160392506101000a81548163ffffffff021916908363ffffffff160217905550808760000160106101000a81548163ffffffff021916908363ffffffff1602179055505b60006126b8848460019003945084612059565b63ffffffff1690506126d08960070182600080612c25565b88600401600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055612715858d836001612c6b565b50808214156126a5575050505b600082602001511461292e5760008560060160008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008360a00151905060008460200151820190506000612793878c612137565b90506000670de0b6b3a76400008a600001600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16816127ff577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b04905060008a60000160049054906101000a900463ffffffff1663ffffffff16905087602001518b60000160088282829054906101000a900463ffffffff160192506101000a81548163ffffffff021916908363ffffffff160217905550838960000160106101000a81548163ffffffff021916908363ffffffff1602179055505b5b60006128998c6007016128948461204b565b612059565b63ffffffff16146128bc57818160010191508111156128b757600190505b612882565b6128c7868683612234565b6128dc8b600701828588806001019950612c25565b6128e9878e836000612c6b565b818160010191508111156128fc57600190505b8385141561288157808b60000160046101000a81548163ffffffff021916908363ffffffff1602179055505050505050505b60008160000151511461296a57612969818660010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612c8d565b5b508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef876040516129c8919061328b565b60405180910390a350505050505050565b60006202a300905090565b6000813b9050919050565b60006129fa83612087565b90508115156000600283600001600b9054906101000a900460ff161660ff161415151514612a5357600281600001600b8282829054906101000a900460ff161892506101000a81548160ff021916908360ff1602179055505b8273ffffffffffffffffffffffffffffffffffffffff167fb5a1de456fff688115a4f75380060c23c8532d14ff85f687cc871456d642039383604051612a99919061324e565b60405180910390a2505050565b60003860003847855af1612ac25763b12d13eb6000526004601cfd5b50565b612acd612ccb565b15612b33577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3811560ff1b8217815550612b8a565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3818155505b50565b60606080604051019050602081016040526000815280600019835b600115612bd2578184019350600a81066030018453600a8104905080612bcd57612bd2565b612ba8565b50828203602084039350808452505050919050565b600081830382841102905092915050565b612c00612d8c565b6040805101828152806020018360051b81016040528183528083602001525050919050565b8163ffffffff168160201b17846020528360021c60005260406000206003851660061b815467ffffffffffffffff8482841c188116831b82188455505050505050505050565b8360200151818360081b8560601b171781526020810185602001525050505050565b81516040810363263c69d68152602080820152815160051b60440160208282601c85016000885af1600183511416612cc457600082fd5b5050505050565b600090565b828054612cdc906133e1565b90600052602060002090601f016020900481019282612cfe5760008555612d45565b82601f10612d1757803560ff1916838001178555612d45565b82800160010185558215612d45579182015b82811115612d44578235825591602001919060010190612d29565b5b509050612d529190612da6565b5090565b6040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b604051806040016040528060608152602001600081525090565b5b80821115612dbf576000816000905550600101612da7565b5090565b600081359050612dd281613576565b92915050565b600081359050612de78161358d565b92915050565b60008083601f840112612dff57600080fd5b8235905067ffffffffffffffff811115612e1857600080fd5b602083019150836001820283011115612e3057600080fd5b9250929050565b600081359050612e46816135a4565b92915050565b600060208284031215612e5e57600080fd5b6000612e6c84828501612dc3565b91505092915050565b60008060408385031215612e8857600080fd5b6000612e9685828601612dc3565b9250506020612ea785828601612dc3565b9150509250929050565b600080600060608486031215612ec657600080fd5b6000612ed486828701612dc3565b9350506020612ee586828701612dc3565b9250506040612ef686828701612e37565b9150509250925092565b60008060408385031215612f1357600080fd5b6000612f2185828601612dc3565b9250506020612f3285828601612e37565b9150509250929050565b600060208284031215612f4e57600080fd5b6000612f5c84828501612dd8565b91505092915050565b60008060208385031215612f7857600080fd5b600083013567ffffffffffffffff811115612f9257600080fd5b612f9e85828601612ded565b92509250509250929050565b600060208284031215612fbc57600080fd5b6000612fca84828501612e37565b91505092915050565b612fdc81613331565b82525050565b612feb81613343565b82525050565b6000612ffc826132d6565b61300681856132e1565b93506130168185602086016133ae565b61301f8161349e565b840191505092915050565b6000613035826132d6565b61303f81856132f2565b935061304f8185602086016133ae565b80840191505092915050565b60008154613068816133e1565b61307281866132f2565b9450600182166000811461308d576001811461309e576130d1565b60ff198316865281860193506130d1565b6130a7856132c1565b60005b838110156130c9578154818901526001820191506020810190506130aa565b838801955050505b50505092915050565b60006130e7601b836132f2565b91506130f2826134af565b601b82019050919050565b600061310a6014836132f2565b9150613115826134d8565b601482019050919050565b600061312d6050836132f2565b915061313882613501565b605082019050919050565b61314c8161336f565b82525050565b61315b81613389565b82525050565b600061316d828561302a565b9150613179828461302a565b91508190509392505050565b6000613191828561302a565b915061319d828461305b565b91508190509392505050565b60006131b5828461302a565b91506131c082613120565b915081905092915050565b60006131d7828561305b565b91506131e3828461302a565b91508190509392505050565b60006131fa826130da565b9150613206828461302a565b915081905092915050565b600061321c826130fd565b9150613228828461302a565b915081905092915050565b60006020820190506132486000830184612fd3565b92915050565b60006020820190506132636000830184612fe2565b92915050565b600060208201905081810360008301526132838184612ff1565b905092915050565b60006020820190506132a06000830184613143565b92915050565b60006020820190506132bb6000830184613152565b92915050565b60008190508160005260206000209050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600061330882613396565b915061331383613396565b92508282101561332657613325613440565b5b828203905092915050565b600061333c8261334f565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b60006bffffffffffffffffffffffff82169050919050565b60005b838110156133cc5780820151818401526020810190506133b1565b838111156133db576000848401525b50505050565b600060028204905060018216806133f957607f821691505b6020821081141561340d5761340c61346f565b5b50919050565b600061341e82613379565b915063ffffffff82141561343557613434613440565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c0000000000600082015250565b7f7b226e616d65223a2022446f6e75743430342023000000000000000000000000600082015250565b7f2c226465736372697074696f6e223a2231302c30303020736372756d7074696f60008201527f7573207265706c6963616e7420646f6e7574732c2062616b656420776974682060208201527f444e343034222c22696d616765223a2200000000000000000000000000000000604082015250565b61357f81613331565b811461358a57600080fd5b50565b61359681613343565b81146135a157600080fd5b50565b6135ad8161336f565b81146135b857600080fd5b5056fea26469706673582212204a5118da72e27b8f5a172f250bc8473340e39b281b724969a5884ee3964dd6db64736f6c6343000804003360806040523480156200001157600080fd5b5060405162001339380380620013398339818101604052810190620000379190620000b8565b80620000486200009060201b60201c565b60010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000132565b6000683602298b8c10b01230905090565b600081519050620000b28162000118565b92915050565b600060208284031215620000cb57600080fd5b6000620000db84828501620000a1565b91505092915050565b6000620000f182620000f8565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6200012381620000e4565b81146200012f57600080fd5b50565b6111f780620001426000396000f3fe6080604052600436106100ec5760003560e01c80636352211e1161008a578063a22cb46511610059578063a22cb4651461060b578063b88d4fde14610634578063c87b56dd1461065d578063e985e9c51461069a576100f3565b80636352211e1461053b57806370a082311461057857806395d89b41146105b557806397e5311c146105e0576100f3565b8063095ea7b3116100c6578063095ea7b3146104a257806318160ddd146104cb57806323b872dd146104f657806342842e0e1461051f576100f3565b806301ffc9a7146103fd57806306fdde031461043a578063081812fc14610465576100f3565b366100f357005b60006100fd6106d7565b9050600060e061010d60006106e8565b901c905063263c69d681141561022a578160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101a6576040517f363cb31200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b602036103d60003e6004356024018036103d60003e602081033560051b81018036103d60003e5b80821461021f5781358060601c816001168260a01b60a81c811583028284027fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600038a45050508160200191506101cd565b600160005260206000f35b630f4599e58114156103f957600073ffffffffffffffffffffffffffffffffffffffff168260010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610321578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166102d360046106e8565b73ffffffffffffffffffffffffffffffffffffffff1614610320576040517fc59ec47a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146103ab576040517fbf656a4600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b338260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160005260206000f35b5050005b34801561040957600080fd5b50610424600480360381019061041f9190610f66565b6106f3565b6040516104319190611039565b60405180910390f35b34801561044657600080fd5b5061044f610718565b60405161045c9190611054565b60405180910390f35b34801561047157600080fd5b5061048c60048036038101906104879190610f8f565b610772565b604051610499919061101e565b60405180910390f35b3480156104ae57600080fd5b506104c960048036038101906104c49190610f2a565b6107ba565b005b3480156104d757600080fd5b506104e0610840565b6040516104ed9190611076565b60405180910390f35b34801561050257600080fd5b5061051d60048036038101906105189190610e1f565b61087f565b005b61053960048036038101906105349190610e1f565b61090e565b005b34801561054757600080fd5b50610562600480360381019061055d9190610f8f565b610948565b60405161056f919061101e565b60405180910390f35b34801561058457600080fd5b5061059f600480360381019061059a9190610dba565b610990565b6040516105ac9190611076565b60405180910390f35b3480156105c157600080fd5b506105ca6109db565b6040516105d79190611054565b60405180910390f35b3480156105ec57600080fd5b506105f5610a35565b604051610602919061101e565b60405180910390f35b34801561061757600080fd5b50610632600480360381019061062d9190610eee565b610acf565b005b34801561064057600080fd5b5061065b60048036038101906106569190610e6e565b610b54565b005b34801561066957600080fd5b50610684600480360381019061067f9190610f8f565b610bc5565b6040516106919190611054565b60405180910390f35b3480156106a657600080fd5b506106c160048036038101906106bc9190610de3565b610c25565b6040516106ce9190611039565b60405180910390f35b6000683602298b8c10b01230905090565b600081359050919050565b60008160e01c635b5e139f81146380ac58cd82146301ffc9a783141717915050919050565b60606000610724610a35565b905060405191506306fdde036000526000806004601c845afa61074a573d6000833e3d82fd5b60206000803e6020600051833e8151602060005101602084013e815160208301016040525090565b60008061077d610a35565b905063081812fc60005282602052602060006024601c845afa601f3d11166107ac573d60006040513e3d604051fd5b600c5160601c915050919050565b60006107c4610a35565b90508260601b60601c925060405163d10b6e0c600052836020528260405233606052602060006064601c34865af1601f3d1116610804573d6000823e3d81fd5b8060405260006060528284600c5160601c7f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600038a450505050565b60008061084b610a35565b905063e2c79281600052602060006004601c845afa601f3d1116610876573d60006040513e3d604051fd5b60005191505090565b6000610889610a35565b90508360601b60601c93508260601b60601c925060405163e5eb36c881528460208201528360408201528260608201523360808201526020816084601c840134865af16001825114166108df573d6000823e3d81fd5b8284867fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600038a45050505050565b61091983838361087f565b61092282610c84565b156109435761094283838360405180602001604052806000815250610c8f565b5b505050565b600080610953610a35565b9050636352211e60005282602052602060006024601c845afa601f3d1116610982573d60006040513e3d604051fd5b600c5160601c915050919050565b60008061099b610a35565b90508260601b60601c60205263f5b100ea600052602060006024601c845afa601f3d11166109d0573d60006040513e3d604051fd5b600051915050919050565b606060006109e7610a35565b905060405191506395d89b416000526000806004601c845afa610a0d573d6000833e3d82fd5b60206000803e6020600051833e8151602060005101602084013e815160208301016040525090565b6000610a3f6106d7565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610acc576040517f5b2a47ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b90565b6000610ad9610a35565b90508260601b60601c925060405163813500fc6000528360205282151560405233606052602060006064601c34865af160016000511416610b1d573d6000823e3d81fd5b83337f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160206040a380604052600060605250505050565b610b5f85858561087f565b610b6884610c84565b15610bbe57610bbd85858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610c8f565b5b5050505050565b60606000610bd1610a35565b905060405191508260205263c87b56dd6000526000806024601c845afa610bfb573d6000833e3d82fd5b60206000803e6020600051833e8151602060005101602084013e8151602083010160405250919050565b600080610c30610a35565b9050604051836040528460601b602c526fe985e9c5000000000000000000000000600c52602060006044601c855afa601f3d1116610c71573d6000823e3d81fd5b8060405260005115159250505092915050565b6000813b9050919050565b60405163150b7a028082523360208301528560601b60601c604083015283606083015260808083015282518060a08401528015610cd6578060c08401826020870160045afa505b60208360a48301601c860160008a5af1610cfa573d15610cf9573d6000843e3d83fd5b5b8160e01b835114610d135763d1a57ed66000526004601cfd5b50505050505050565b600081359050610d2b81611165565b92915050565b600081359050610d408161117c565b92915050565b600081359050610d5581611193565b92915050565b60008083601f840112610d6d57600080fd5b8235905067ffffffffffffffff811115610d8657600080fd5b602083019150836001820283011115610d9e57600080fd5b9250929050565b600081359050610db4816111aa565b92915050565b600060208284031215610dcc57600080fd5b6000610dda84828501610d1c565b91505092915050565b60008060408385031215610df657600080fd5b6000610e0485828601610d1c565b9250506020610e1585828601610d1c565b9150509250929050565b600080600060608486031215610e3457600080fd5b6000610e4286828701610d1c565b9350506020610e5386828701610d1c565b9250506040610e6486828701610da5565b9150509250925092565b600080600080600060808688031215610e8657600080fd5b6000610e9488828901610d1c565b9550506020610ea588828901610d1c565b9450506040610eb688828901610da5565b935050606086013567ffffffffffffffff811115610ed357600080fd5b610edf88828901610d5b565b92509250509295509295909350565b60008060408385031215610f0157600080fd5b6000610f0f85828601610d1c565b9250506020610f2085828601610d31565b9150509250929050565b60008060408385031215610f3d57600080fd5b6000610f4b85828601610d1c565b9250506020610f5c85828601610da5565b9150509250929050565b600060208284031215610f7857600080fd5b6000610f8684828501610d46565b91505092915050565b600060208284031215610fa157600080fd5b6000610faf84828501610da5565b91505092915050565b610fc1816110ad565b82525050565b610fd0816110bf565b82525050565b6000610fe182611091565b610feb818561109c565b9350610ffb818560208601611121565b61100481611154565b840191505092915050565b61101881611117565b82525050565b60006020820190506110336000830184610fb8565b92915050565b600060208201905061104e6000830184610fc7565b92915050565b6000602082019050818103600083015261106e8184610fd6565b905092915050565b600060208201905061108b600083018461100f565b92915050565b600081519050919050565b600082825260208201905092915050565b60006110b8826110f7565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101561113f578082015181840152602081019050611124565b8381111561114e576000848401525b50505050565b6000601f19601f8301169050919050565b61116e816110ad565b811461117957600080fd5b50565b611185816110bf565b811461119057600080fd5b50565b61119c816110cb565b81146111a757600080fd5b50565b6111b381611117565b81146111be57600080fd5b5056fea2646970667358221220d461d56c87bc6a5604c8997eb4d6f878da628bdb981246f55d69addcca44fb8964736f6c63430008040033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000271000000000000000000000000034d8034debd6c440c0ad64237861565f5ab321fd0000000000000000000000000000000000000000000000000000000000000008444f4e55543430340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008444f4e5554343034000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101445760003560e01c806354d1f13d116100b6578063a9059cbb1161006f578063a9059cbb14610bb6578063c87b56dd14610bf3578063dd62ed3e14610c30578063f04e283e14610c6d578063f2fde38b14610c89578063fee81cf414610ca55761014b565b806354d1f13d14610ae657806355f804b314610af057806370a0823114610b19578063715018a614610b565780638da5cb5b14610b6057806395d89b4114610b8b5761014b565b806325692962116101085780632569296214610a09578063274e430b14610a135780632a6a935d14610a50578063313ce56714610a795780633ccfd60b14610aa45780634ef41efc14610abb5761014b565b806306fdde0314610910578063095ea7b31461093b57806318160ddd1461097857806318249af7146109a357806323b872dd146109cc5761014b565b3661014b57005b6000610155610ce2565b9050600060e06101656000610cf3565b901c905063e985e9c58114156102d4578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101fe576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60446000369050101561021057600080fd5b600061021c6004610cf3565b9050600061022a6024610cf3565b90506102d18460030160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166102c65760006102c9565b60015b60ff16610cfe565b50505b636352211e8114156103b2578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610369576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60246000369050101561037b57600080fd5b60006103876004610cf3565b90506103b061039582610d08565b73ffffffffffffffffffffffffffffffffffffffff16610cfe565b505b63e5eb36c88114156104ac578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610447576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60846000369050101561045957600080fd5b60006104656004610cf3565b905060006104736024610cf3565b905060006104816044610cf3565b9050600061048f6064610cf3565b905061049d84848484610d59565b6104a76001610cfe565b505050505b63813500fc811415610599578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610541576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60646000369050101561055357600080fd5b600061055f6004610cf3565b905060008061056e6024610cf3565b14159050600061057e6044610cf3565b905061058b838383611354565b6105956001610cfe565b5050505b63d10b6e0c811415610697578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461062e576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60646000369050101561064057600080fd5b600061064c6004610cf3565b9050600061065a6024610cf3565b905060006106686044610cf3565b90506106936106788484846113f6565b73ffffffffffffffffffffffffffffffffffffffff16610cfe565b5050505b63081812fc811415610775578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461072c576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60246000369050101561073e57600080fd5b600061074a6004610cf3565b9050610773610758826115b3565b73ffffffffffffffffffffffffffffffffffffffff16610cfe565b505b63f5b100ea81141561083d578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461080a576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60246000369050101561081c57600080fd5b60006108286004610cf3565b905061083b61083682611638565b610cfe565b505b63e2c792818114156108f5578160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146108d2576040517fce5a776b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6004600036905010156108e457600080fd5b6108f46108ef6116a3565b610cfe565b5b63b7a94eb881141561090c5761090b6001610cfe565b5b5050005b34801561091c57600080fd5b506109256116cc565b6040516109329190613269565b60405180910390f35b34801561094757600080fd5b50610962600480360381019061095d9190612f00565b61175e565b60405161096f919061324e565b60405180910390f35b34801561098457600080fd5b5061098d61185e565b60405161099a919061328b565b60405180910390f35b3480156109af57600080fd5b506109ca60048036038101906109c59190612f65565b611897565b005b3480156109d857600080fd5b506109f360048036038101906109ee9190612eb1565b6118b5565b604051610a00919061324e565b60405180910390f35b610a11611a44565b005b348015610a1f57600080fd5b50610a3a6004803603810190610a359190612e4c565b611a98565b604051610a47919061324e565b60405180910390f35b348015610a5c57600080fd5b50610a776004803603810190610a729190612f3c565b611b3b565b005b348015610a8557600080fd5b50610a8e611b48565b604051610a9b91906132a6565b60405180910390f35b348015610ab057600080fd5b50610ab9611b51565b005b348015610ac757600080fd5b50610ad0611b64565b604051610add9190613233565b60405180910390f35b610aee611b97565b005b348015610afc57600080fd5b50610b176004803603810190610b129190612f65565b611bd3565b005b348015610b2557600080fd5b50610b406004803603810190610b3b9190612e4c565b611bf1565b604051610b4d919061328b565b60405180910390f35b610b5e611c6c565b005b348015610b6c57600080fd5b50610b75611c80565b604051610b829190613233565b60405180910390f35b348015610b9757600080fd5b50610ba0611ca9565b604051610bad9190613269565b60405180910390f35b348015610bc257600080fd5b50610bdd6004803603810190610bd89190612f00565b611d3b565b604051610bea919061324e565b60405180910390f35b348015610bff57600080fd5b50610c1a6004803603810190610c159190612faa565b611d52565b604051610c279190613269565b60405180910390f35b348015610c3c57600080fd5b50610c576004803603810190610c529190612e75565b611e89565b604051610c64919061328b565b60405180910390f35b610c876004803603810190610c829190612e4c565b611f19565b005b610ca36004803603810190610c9e9190612e4c565b611f5a565b005b348015610cb157600080fd5b50610ccc6004803603810190610cc79190612e4c565b611f84565b604051610cd9919061328b565b60405180910390f35b600068a20d6e21d0e5255308905090565b600081359050919050565b8060005260206000f35b6000610d1382611f9f565b610d49576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d5282611fe0565b9050919050565b6000610d63610ce2565b9050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610dcc576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000816002016000610de984600701610de48861204b565b612059565b63ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614610e8b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610fea578160030160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610fe95781600401600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610fe8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6000610ff587612087565b9050600061100287612087565b9050670de0b6b3a76400008260000160148282829054906101000a90046bffffffffffffffffffffffff1661103791906132fd565b92506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550670de0b6b3a76400008160000160148282829054906101000a90046bffffffffffffffffffffffff160192506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055506110dc846007016110cd8861204b565b6110d7848b612137565b612234565b83600401600087815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600061119d8560060160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002084600001601081819054906101000a900463ffffffff166001900391906101000a81548163ffffffff021916908363ffffffff160217905563ffffffff16612059565b63ffffffff16905061120a8560060160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206111fe876007016111f98b612268565b612059565b63ffffffff1683612234565b600082600001601081819054906101000a900463ffffffff168092919060010191906101000a81548163ffffffff021916908363ffffffff16021790555063ffffffff16905061127a8660070161126084612268565b611275896007016112708d612268565b612059565b612234565b6112c58660060160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828a612234565b6112db866007016112d58a612268565b83612234565b50508673ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef670de0b6b3a7640000604051611342919061328b565b60405180910390a35050505050505050565b8161135d610ce2565b60030160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b600080611401610ce2565b905060008160020160006114208460070161141b8961204b565b612059565b63ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614611553578160030160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611552576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8582600401600087815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080925050509392505050565b60006115be82611f9f565b6115f4576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6115fc610ce2565b600401600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000611642610ce2565b60080160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a900463ffffffff1663ffffffff169050919050565b60006116ad610ce2565b60000160089054906101000a900463ffffffff1663ffffffff16905090565b6060600080546116db906133e1565b80601f0160208091040260200160405190810160405280929190818152602001828054611707906133e1565b80156117545780601f1061172957610100808354040283529160200191611754565b820191906000526020600020905b81548152906001019060200180831161173757829003601f168201915b5050505050905090565b600080611769610ce2565b9050828160050160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258560405161184b919061328b565b60405180910390a3600191505092915050565b6000611868610ce2565b600001600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16905090565b61189f612278565b8181600391906118b0929190612cd0565b505050565b6000806118c0610ce2565b905060008160050160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611a2c57808411156119a6576040517f13be252b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8381038260050160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b611a378686866122b0565b6001925050509392505050565b6000611a4e6129d9565b67ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b600080611aa3610ce2565b60080160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600182600001600b9054906101000a900460ff161660ff161415611b1657611b0e836129e4565b915050611b36565b6000600282600001600b9054906101000a900460ff161660ff1614159150505b919050565b611b4533826129ef565b50565b60006012905090565b611b59612278565b611b6233612aa6565b565b6000611b6e610ce2565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b611bdb612278565b818160029190611bec929190612cd0565b505050565b6000611bfb610ce2565b60080160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff169050919050565b611c74612278565b611c7e6000612ac5565b565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b606060018054611cb8906133e1565b80601f0160208091040260200160405190810160405280929190818152602001828054611ce4906133e1565b8015611d315780601f10611d0657610100808354040283529160200191611d31565b820191906000526020600020905b815481529060010190602001808311611d1457829003601f168201915b5050505050905090565b6000611d483384846122b0565b6001905092915050565b6060600060028054611d63906133e1565b905014611d98576002611d7583612b8d565b604051602001611d869291906131cb565b60405160208183030381529060405290505b6000611da383612b8d565b604051602001611db39190613211565b604051602081830303815290604052604051602001611dd291906131a9565b6040516020818303038152906040526003604051602001611df4929190613185565b604051602081830303815290604052905060006040518060400160405280601481526020017f222c2261747472696275746573223a5b5d7d273b00000000000000000000000081525090508181604051602001611e52929190613161565b604051602081830303815290604052604051602001611e7191906131ef565b60405160208183030381529060405292505050919050565b6000611e93610ce2565b60050160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611f21612278565b63389a75e1600c52806000526020600c208054421115611f4957636f5e88186000526004601cfd5b6000815550611f5781612ac5565b50565b611f62612278565b8060601b611f7857637448fbae6000526004601cfd5b611f8181612ac5565b50565b600063389a75e1600c52816000526020600c20549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff16611fc183611fe0565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600080611feb610ce2565b9050806002016000612008836007016120038761204b565b612059565b63ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050919050565b6000600182901b9050919050565b6000600560078316901b836000016000600385901c815260200190815260200160002054901c905092915050565b600080612092610ce2565b90508060080160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002091506000600183600001600b9054906101000a900460ff161660ff16141561213157600060019050612106846129e4565b15612112576002811790505b8083600001600b6101000a81548160ff021916908360ff160217905550505b50919050565b600080612142610ce2565b905083600001600c9054906101000a900463ffffffff16915060008263ffffffff16141561222d5780600001600081819054906101000a900463ffffffff1661218a90613413565b91906101000a81548163ffffffff021916908363ffffffff160217905591508184600001600c6101000a81548163ffffffff021916908363ffffffff160217905550828160020160008463ffffffff1663ffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5092915050565b826020528160031c60005260406000206007831660051b815463ffffffff8482841c188116831b8218845550505050505050565b600060018083901b019050919050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275433146122ae576382b429006000526004601cfd5b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612317576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612321610ce2565b9050600061232e85612087565b9050600061233b85612087565b9050612345612d56565b8260000160109054906101000a900463ffffffff1663ffffffff168160800181815250508160000160109054906101000a900463ffffffff1663ffffffff168160a00181815250508260000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1681604001818152505080604001518511156123ff576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8481604001818151039150818152505080604001518360000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550848260000160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff160181606001818152508260000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055506124fd8160800151670de0b6b3a76400008360400151816124f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b04612be7565b8160000181815250506000600283600001600b9054906101000a900460ff161660ff1614156125c9578573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16141561256f5780600001518160800151038160a00181815250505b6125bf670de0b6b3a76400008260600151816125b4577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b048260a00151612be7565b8160200181815250505b60006125de8260200151836000015101612bf8565b905060008260000151146127225760008560060160008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600083608001519050600084600001518203905084600001518860000160088282829054906101000a900463ffffffff160392506101000a81548163ffffffff021916908363ffffffff160217905550808760000160106101000a81548163ffffffff021916908363ffffffff1602179055505b60006126b8848460019003945084612059565b63ffffffff1690506126d08960070182600080612c25565b88600401600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055612715858d836001612c6b565b50808214156126a5575050505b600082602001511461292e5760008560060160008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008360a00151905060008460200151820190506000612793878c612137565b90506000670de0b6b3a76400008a600001600c9054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16816127ff577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b04905060008a60000160049054906101000a900463ffffffff1663ffffffff16905087602001518b60000160088282829054906101000a900463ffffffff160192506101000a81548163ffffffff021916908363ffffffff160217905550838960000160106101000a81548163ffffffff021916908363ffffffff1602179055505b5b60006128998c6007016128948461204b565b612059565b63ffffffff16146128bc57818160010191508111156128b757600190505b612882565b6128c7868683612234565b6128dc8b600701828588806001019950612c25565b6128e9878e836000612c6b565b818160010191508111156128fc57600190505b8385141561288157808b60000160046101000a81548163ffffffff021916908363ffffffff1602179055505050505050505b60008160000151511461296a57612969818660010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612c8d565b5b508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef876040516129c8919061328b565b60405180910390a350505050505050565b60006202a300905090565b6000813b9050919050565b60006129fa83612087565b90508115156000600283600001600b9054906101000a900460ff161660ff161415151514612a5357600281600001600b8282829054906101000a900460ff161892506101000a81548160ff021916908360ff1602179055505b8273ffffffffffffffffffffffffffffffffffffffff167fb5a1de456fff688115a4f75380060c23c8532d14ff85f687cc871456d642039383604051612a99919061324e565b60405180910390a2505050565b60003860003847855af1612ac25763b12d13eb6000526004601cfd5b50565b612acd612ccb565b15612b33577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3811560ff1b8217815550612b8a565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3818155505b50565b60606080604051019050602081016040526000815280600019835b600115612bd2578184019350600a81066030018453600a8104905080612bcd57612bd2565b612ba8565b50828203602084039350808452505050919050565b600081830382841102905092915050565b612c00612d8c565b6040805101828152806020018360051b81016040528183528083602001525050919050565b8163ffffffff168160201b17846020528360021c60005260406000206003851660061b815467ffffffffffffffff8482841c188116831b82188455505050505050505050565b8360200151818360081b8560601b171781526020810185602001525050505050565b81516040810363263c69d68152602080820152815160051b60440160208282601c85016000885af1600183511416612cc457600082fd5b5050505050565b600090565b828054612cdc906133e1565b90600052602060002090601f016020900481019282612cfe5760008555612d45565b82601f10612d1757803560ff1916838001178555612d45565b82800160010185558215612d45579182015b82811115612d44578235825591602001919060010190612d29565b5b509050612d529190612da6565b5090565b6040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b604051806040016040528060608152602001600081525090565b5b80821115612dbf576000816000905550600101612da7565b5090565b600081359050612dd281613576565b92915050565b600081359050612de78161358d565b92915050565b60008083601f840112612dff57600080fd5b8235905067ffffffffffffffff811115612e1857600080fd5b602083019150836001820283011115612e3057600080fd5b9250929050565b600081359050612e46816135a4565b92915050565b600060208284031215612e5e57600080fd5b6000612e6c84828501612dc3565b91505092915050565b60008060408385031215612e8857600080fd5b6000612e9685828601612dc3565b9250506020612ea785828601612dc3565b9150509250929050565b600080600060608486031215612ec657600080fd5b6000612ed486828701612dc3565b9350506020612ee586828701612dc3565b9250506040612ef686828701612e37565b9150509250925092565b60008060408385031215612f1357600080fd5b6000612f2185828601612dc3565b9250506020612f3285828601612e37565b9150509250929050565b600060208284031215612f4e57600080fd5b6000612f5c84828501612dd8565b91505092915050565b60008060208385031215612f7857600080fd5b600083013567ffffffffffffffff811115612f9257600080fd5b612f9e85828601612ded565b92509250509250929050565b600060208284031215612fbc57600080fd5b6000612fca84828501612e37565b91505092915050565b612fdc81613331565b82525050565b612feb81613343565b82525050565b6000612ffc826132d6565b61300681856132e1565b93506130168185602086016133ae565b61301f8161349e565b840191505092915050565b6000613035826132d6565b61303f81856132f2565b935061304f8185602086016133ae565b80840191505092915050565b60008154613068816133e1565b61307281866132f2565b9450600182166000811461308d576001811461309e576130d1565b60ff198316865281860193506130d1565b6130a7856132c1565b60005b838110156130c9578154818901526001820191506020810190506130aa565b838801955050505b50505092915050565b60006130e7601b836132f2565b91506130f2826134af565b601b82019050919050565b600061310a6014836132f2565b9150613115826134d8565b601482019050919050565b600061312d6050836132f2565b915061313882613501565b605082019050919050565b61314c8161336f565b82525050565b61315b81613389565b82525050565b600061316d828561302a565b9150613179828461302a565b91508190509392505050565b6000613191828561302a565b915061319d828461305b565b91508190509392505050565b60006131b5828461302a565b91506131c082613120565b915081905092915050565b60006131d7828561305b565b91506131e3828461302a565b91508190509392505050565b60006131fa826130da565b9150613206828461302a565b915081905092915050565b600061321c826130fd565b9150613228828461302a565b915081905092915050565b60006020820190506132486000830184612fd3565b92915050565b60006020820190506132636000830184612fe2565b92915050565b600060208201905081810360008301526132838184612ff1565b905092915050565b60006020820190506132a06000830184613143565b92915050565b60006020820190506132bb6000830184613152565b92915050565b60008190508160005260206000209050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600061330882613396565b915061331383613396565b92508282101561332657613325613440565b5b828203905092915050565b600061333c8261334f565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b60006bffffffffffffffffffffffff82169050919050565b60005b838110156133cc5780820151818401526020810190506133b1565b838111156133db576000848401525b50505050565b600060028204905060018216806133f957607f821691505b6020821081141561340d5761340c61346f565b5b50919050565b600061341e82613379565b915063ffffffff82141561343557613434613440565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c0000000000600082015250565b7f7b226e616d65223a2022446f6e75743430342023000000000000000000000000600082015250565b7f2c226465736372697074696f6e223a2231302c30303020736372756d7074696f60008201527f7573207265706c6963616e7420646f6e7574732c2062616b656420776974682060208201527f444e343034222c22696d616765223a2200000000000000000000000000000000604082015250565b61357f81613331565b811461358a57600080fd5b50565b61359681613343565b81146135a157600080fd5b50565b6135ad8161336f565b81146135b857600080fd5b5056fea26469706673582212204a5118da72e27b8f5a172f250bc8473340e39b281b724969a5884ee3964dd6db64736f6c63430008040033

Deployed Bytecode Sourcemap

142958:2021:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133785:22;133810:18;:16;:18::i;:::-;133785:43;;133841:18;133885:3;133862:19;133876:4;133862:13;:19::i;:::-;:26;;133841:47;;133968:10;133954;:24;133950:377;;;134013:1;:14;;;;;;;;;;;;133999:28;;:10;:28;;;133995:58;;134036:17;;;;;;;;;;;;;;133995:58;134090:4;134072:8;;:15;;:22;134068:36;;;134096:8;;;134068:36;134121:13;134153:19;134167:4;134153:13;:19::i;:::-;134121:53;;134189:16;134224:19;134238:4;134224:13;:19::i;:::-;134189:56;;134262:53;134270:1;:19;;:26;134290:5;134270:26;;;;;;;;;;;;;;;:36;134297:8;134270:36;;;;;;;;;;;;;;;;;;;;;;;;;:44;;134313:1;134270:44;;;134309:1;134270:44;134262:53;;:7;:53::i;:::-;133950:377;;;134387:10;134373;:24;134369:262;;;134432:1;:14;;;;;;;;;;;;134418:28;;:10;:28;;;134414:58;;134455:17;;;;;;;;;;;;;;134414:58;134509:4;134491:8;;:15;;:22;134487:36;;;134515:8;;;134487:36;134540:10;134553:19;134567:4;134553:13;:19::i;:::-;134540:32;;134589:30;134605:12;134614:2;134605:8;:12::i;:::-;134589:30;;:7;:30::i;:::-;134369:262;;134723:10;134709;:24;134705:502;;;134768:1;:14;;;;;;;;;;;;134754:28;;:10;:28;;;134750:58;;134791:17;;;;;;;;;;;;;;134750:58;134845:4;134827:8;;:15;;:22;134823:36;;;134851:8;;;134823:36;134876:12;134907:19;134921:4;134907:13;:19::i;:::-;134876:52;;134943:10;134972:19;134986:4;134972:13;:19::i;:::-;134943:50;;135008:10;135021:19;135035:4;135021:13;:19::i;:::-;135008:32;;135055:17;135091:19;135105:4;135091:13;:19::i;:::-;135055:57;;135129:41;135146:4;135152:2;135156;135160:9;135129:16;:41::i;:::-;135185:10;135193:1;135185:7;:10::i;:::-;134705:502;;;;;135290:10;135276;:24;135272:451;;;135335:1;:14;;;;;;;;;;;;135321:28;;:10;:28;;;135317:58;;135358:17;;;;;;;;;;;;;;135317:58;135412:4;135394:8;;:15;;:22;135390:36;;;135418:8;;;135390:36;135443:15;135477:19;135491:4;135477:13;:19::i;:::-;135443:55;;135513:11;135550:1;135527:19;135541:4;135527:13;:19::i;:::-;:24;;135513:38;;135566:17;135602:19;135616:4;135602:13;:19::i;:::-;135566:57;;135640:46;135659:7;135668:6;135676:9;135640:18;:46::i;:::-;135701:10;135709:1;135701:7;:10::i;:::-;135272:451;;;;135802:10;135788;:24;135784:427;;;135847:1;:14;;;;;;;;;;;;135833:28;;:10;:28;;;135829:58;;135870:17;;;;;;;;;;;;;;135829:58;135924:4;135906:8;;:15;;:22;135902:36;;;135930:8;;;135902:36;135955:15;135989:19;136003:4;135989:13;:19::i;:::-;135955:55;;136025:10;136038:19;136052:4;136038:13;:19::i;:::-;136025:32;;136072:17;136108:19;136122:4;136108:13;:19::i;:::-;136072:57;;136146:53;136162:35;136174:7;136183:2;136187:9;136162:11;:35::i;:::-;136146:53;;:7;:53::i;:::-;135784:427;;;;136275:10;136261;:24;136257:266;;;136320:1;:14;;;;;;;;;;;;136306:28;;:10;:28;;;136302:58;;136343:17;;;;;;;;;;;;;;136302:58;136397:4;136379:8;;:15;;:22;136375:36;;;136403:8;;;136375:36;136428:10;136441:19;136455:4;136441:13;:19::i;:::-;136428:32;;136477:34;136493:16;136506:2;136493:12;:16::i;:::-;136477:34;;:7;:34::i;:::-;136257:266;;136588:10;136574;:24;136570:282;;;136633:1;:14;;;;;;;;;;;;136619:28;;:10;:28;;;136615:58;;136656:17;;;;;;;;;;;;;;136615:58;136710:4;136692:8;;:15;;:22;136688:36;;;136716:8;;;136688:36;136741:13;136773:19;136787:4;136773:13;:19::i;:::-;136741:53;;136811:29;136819:20;136833:5;136819:13;:20::i;:::-;136811:7;:29::i;:::-;136570:282;;136912:10;136898;:24;136894:209;;;136957:1;:14;;;;;;;;;;;;136943:28;;:10;:28;;;136939:58;;136980:17;;;;;;;;;;;;;;136939:58;137034:4;137016:8;;:15;;:22;137012:36;;;137040:8;;;137012:36;137065:26;137073:17;:15;:17::i;:::-;137065:7;:26::i;:::-;136894:209;137164:10;137150;:24;137146:67;;;137191:10;137199:1;137191:7;:10::i;:::-;137146:67;137308:52;;142958:2021;143527:92;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;113294:275;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;112571:126;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;144749:117;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;114929:512;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;78793:630;;;:::i;:::-;;127720:282;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;128114:100;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;112430:76;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;144874:102;;;;;;;;;;;;;:::i;:::-;;130277:119;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;79508:466;;;:::i;:::-;;144640:101;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;112766:143;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;78528:102;;;:::i;:::-;;81233:187;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;143627:96;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;114082:150;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;143731:897;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;113007:151;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;80165:724;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;78102:358;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;81526:449;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;109659:320;109718:22;109893:20;109883:30;;109806:166;:::o;140273:202::-;140334:13;140450:6;140437:20;140428:29;;140413:55;;;:::o;140568:185::-;140701:1;140695:4;140688:15;140730:4;140724;140717:18;131237:163;131298:7;131323:11;131331:2;131323:7;:11::i;:::-;131318:44;;131343:19;;;;;;;;;;;;;;131318:44;131380:12;131389:2;131380:8;:12::i;:::-;131373:19;;131237:163;;;:::o;124710:1507::-;124844:22;124869:18;:16;:18::i;:::-;124844:43;;124918:1;124904:16;;:2;:16;;;124900:52;;;124929:23;;;;;;;;;;;;;;124900:52;124965:13;124981:1;:16;;:49;124998:31;125003:1;:4;;125009:19;125025:2;125009:15;:19::i;:::-;124998:4;:31::i;:::-;124981:49;;;;;;;;;;;;;;;;;;;;;;;;;124965:65;;125055:5;125047:13;;:4;:13;;;125043:54;;125069:28;;;;;;;;;;;;;;125043:54;125127:4;125114:17;;:9;:17;;;125110:250;;125153:1;:19;;:25;125173:4;125153:25;;;;;;;;;;;;;;;:36;125179:9;125153:36;;;;;;;;;;;;;;;;;;;;;;;;;125148:201;;125227:1;:16;;:20;125244:2;125227:20;;;;;;;;;;;;;;;;;;;;;125214:33;;:9;:33;;;125210:124;;125279:35;;;;;;;;;;;;;;125210:124;125148:201;125110:250;125372:35;125410:18;125423:4;125410:12;:18::i;:::-;125372:56;;125439:33;125475:16;125488:2;125475:12;:16::i;:::-;125439:52;;106950:8;125504:15;:23;;;:39;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;106950:8;125581:13;:21;;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125635:76;125640:1;:4;;125646:19;125662:2;125646:15;:19::i;:::-;125667:43;125692:13;125707:2;125667:24;:43::i;:::-;125635:4;:76::i;:::-;125733:1;:16;;:20;125750:2;125733:20;;;;;;;;;;;;125726:27;;;;;;;;;;;125770:17;125790:50;125795:1;:7;;:13;125803:4;125795:13;;;;;;;;;;;;;;;125812:15;:27;;;125810:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125790:50;;:4;:50::i;:::-;125770:70;;;;125855:67;125860:1;:7;;:13;125868:4;125860:13;;;;;;;;;;;;;;;125875:27;125880:1;:4;;125886:15;125898:2;125886:11;:15::i;:::-;125875:4;:27::i;:::-;125855:67;;125911:9;125855:4;:67::i;:::-;125939:9;125951:13;:25;;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125939:39;;;;125993:63;125998:1;:4;;126004:22;126016:9;126004:11;:22::i;:::-;126028:27;126033:1;:4;;126039:15;126051:2;126039:11;:15::i;:::-;126028:4;:27::i;:::-;125993:4;:63::i;:::-;126071:32;126076:1;:7;;:11;126084:2;126076:11;;;;;;;;;;;;;;;126089:1;126099:2;126071:4;:32::i;:::-;126118:38;126123:1;:4;;126129:15;126141:2;126129:11;:15::i;:::-;126153:1;126118:4;:38::i;:::-;124710:1507;;126200:2;126185:24;;126194:4;126185:24;;;106950:8;126185:24;;;;;;:::i;:::-;;;;;;;;124710:1507;;;;;;;;:::o;132774:207::-;132965:8;132905:18;:16;:18::i;:::-;:36;;:47;132942:9;132905:47;;;;;;;;;;;;;;;:57;132953:8;132905:57;;;;;;;;;;;;;;;;:68;;;;;;;;;;;;;;;;;;132774:207;;;:::o;132121:527::-;132243:7;132268:22;132293:18;:16;:18::i;:::-;132268:43;;132324:13;132340:1;:16;;:49;132357:31;132362:1;:4;;132368:19;132384:2;132368:15;:19::i;:::-;132357:4;:31::i;:::-;132340:49;;;;;;;;;;;;;;;;;;;;;;;;;132324:65;;132419:5;132406:18;;:9;:18;;;132402:171;;132446:1;:19;;:26;132466:5;132446:26;;;;;;;;;;;;;;;:37;132473:9;132446:37;;;;;;;;;;;;;;;;;;;;;;;;;132441:121;;132511:35;;;;;;;;;;;;;;132441:121;132402:171;132608:7;132585:1;:16;;:20;132602:2;132585:20;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;132635:5;132628:12;;;;132121:527;;;;;:::o;131709:192::-;131774:7;131799:11;131807:2;131799:7;:11::i;:::-;131794:44;;131819:19;;;;;;;;;;;;;;131794:44;131856:18;:16;:18::i;:::-;:33;;:37;131890:2;131856:37;;;;;;;;;;;;;;;;;;;;;131849:44;;131709:192;;;:::o;130625:153::-;130694:7;130721:18;:16;:18::i;:::-;:30;;:37;130752:5;130721:37;;;;;;;;;;;;;;;:49;;;;;;;;;;;;130714:56;;;;130625:153;;;:::o;130448:126::-;130506:7;130533:18;:16;:18::i;:::-;:33;;;;;;;;;;;;130526:40;;;;130448:126;:::o;143527:92::-;143573:13;143606:5;143599:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;143527:92;:::o;113294:275::-;113368:4;113385:22;113410:18;:16;:18::i;:::-;113385:43;;113476:6;113441:1;:11;;:23;113453:10;113441:23;;;;;;;;;;;;;;;:32;113465:7;113441:32;;;;;;;;;;;;;;;:41;;;;113521:7;113500:37;;113509:10;113500:37;;;113530:6;113500:37;;;;;;:::i;:::-;;;;;;;;113557:4;113550:11;;;113294:275;;;;:::o;112571:126::-;112623:7;112658:18;:16;:18::i;:::-;:30;;;;;;;;;;;;112650:39;;112643:46;;112571:126;:::o;144749:117::-;82372:13;:11;:13::i;:::-;144846:12:::1;;144831;:27;;;;;;;:::i;:::-;;144749:117:::0;;:::o;114929:512::-;115017:4;115034:22;115059:18;:16;:18::i;:::-;115034:43;;115090:15;115108:1;:11;;:17;115120:4;115108:17;;;;;;;;;;;;;;;:29;115126:10;115108:29;;;;;;;;;;;;;;;;115090:47;;115165:17;115154:7;:28;115150:220;;115212:7;115203:6;:16;115199:52;;;115228:23;;;;;;;;;;;;;;115199:52;115337:6;115327:7;:16;115295:1;:11;;:17;115307:4;115295:17;;;;;;;;;;;;;;;:29;115313:10;115295:29;;;;;;;;;;;;;;;:48;;;;115150:220;115382:27;115392:4;115398:2;115402:6;115382:9;:27::i;:::-;115429:4;115422:11;;;;114929:512;;;;;:::o;78793:630::-;78888:15;78924:28;:26;:28::i;:::-;78906:46;;:15;:46;78888:64;;79124:19;79118:4;79111:33;79175:8;79169:4;79162:22;79232:7;79225:4;79219;79209:21;79202:38;79381:8;79334:45;79331:1;79328;79323:67;79024:381;:::o;127720:282::-;127780:4;127797:21;127821:18;:16;:18::i;:::-;:30;;:33;127852:1;127821:33;;;;;;;;;;;;;;;127797:57;;127913:1;107334:6;127869:1;:7;;;;;;;;;;;;:40;:45;;;127865:69;;;127923:11;127932:1;127923:8;:11::i;:::-;127916:18;;;;;127865:69;127993:1;107471:6;127952:1;:7;;;;;;;;;;;;:37;:42;;;;127945:49;;;127720:282;;;;:::o;128114:100::-;128174:32;128186:10;128198:7;128174:11;:32::i;:::-;128114:100;:::o;112430:76::-;112471:5;112496:2;112489:9;;112430:76;:::o;144874:102::-;82372:13;:11;:13::i;:::-;144922:46:::1;144957:10;144922:34;:46::i;:::-;144874:102::o:0;130277:119::-;130330:7;130357:18;:16;:18::i;:::-;:31;;;;;;;;;;;;130350:38;;130277:119;:::o;79508:466::-;79714:19;79708:4;79701:33;79761:8;79755:4;79748:22;79814:1;79807:4;79801;79791:21;79784:32;79947:8;79901:44;79898:1;79895;79890:66;79630:337::o;144640:101::-;82372:13;:11;:13::i;:::-;144725:8:::1;;144714;:19;;;;;;;:::i;:::-;;144640:101:::0;;:::o;112766:143::-;112829:7;112856:18;:16;:18::i;:::-;:30;;:37;112887:5;112856:37;;;;;;;;;;;;;;;:45;;;;;;;;;;;;112849:52;;;;112766:143;;;:::o;78528:102::-;82372:13;:11;:13::i;:::-;78601:21:::1;78619:1;78601:9;:21::i;:::-;78528:102::o:0;81233:187::-;81279:14;81390:11;81384:18;81374:28;;81359:54;:::o;143627:96::-;143675:13;143708:7;143701:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;143627:96;:::o;114082:150::-;114152:4;114169:33;114179:10;114191:2;114195:6;114169:9;:33::i;:::-;114220:4;114213:11;;114082:150;;;;:::o;143731:897::-;143796:20;143859:1;143839:8;143833:22;;;;;:::i;:::-;;;:27;143829:132;;143910:8;143920:27;143939:7;143920:18;:27::i;:::-;143893:55;;;;;;;;;:::i;:::-;;;;;;;;;;;;;143877:72;;143829:132;143973:26;144141:27;144160:7;144141:18;:27::i;:::-;144097:72;;;;;;;;:::i;:::-;;;;;;;;;;;;;144051:250;;;;;;;;:::i;:::-;;;;;;;;;;;;;144321:12;144009:339;;;;;;;;;:::i;:::-;;;;;;;;;;;;;143973:376;;144368:27;:55;;;;;;;;;;;;;;;;;;;144571:12;144585:13;144554:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;144456:163;;;;;;;;:::i;:::-;;;;;;;;;;;;;144440:180;;143731:897;;;;;:::o;113007:151::-;113079:7;113106:18;:16;:18::i;:::-;:28;;:35;113135:5;113106:35;;;;;;;;;;;;;;;:44;113142:7;113106:44;;;;;;;;;;;;;;;;113099:51;;113007:151;;;;:::o;80165:724::-;82372:13;:11;:13::i;:::-;80403:19:::1;80397:4;80390:33;80450:12;80444:4;80437:26;80513:4;80507;80497:21;80621:12;80615:19;80602:11;80599:36;80596:2;;;80668:10;80662:4;80655:24;80736:4;80730;80723:18;80596:2;80835:1;80821:12;80814:23;80319:529;80858:23;80868:12;80858:9;:23::i;:::-;80165:724:::0;:::o;78102:358::-;82372:13;:11;:13::i;:::-;78277:8:::1;78273:2;78269:17;78259:2;;78320:10;78314:4;78307:24;78392:4;78386;78379:18;78259:2;78433:19;78443:8;78433:9;:19::i;:::-;78102:358:::0;:::o;81526:449::-;81649:14;81805:19;81799:4;81792:33;81852:12;81846:4;81839:26;81951:4;81945;81935:21;81929:28;81919:38;;81734:234;;;:::o;131452:118::-;131512:4;131560:1;131536:26;;:12;131545:2;131536:8;:12::i;:::-;:26;;;;131529:33;;131452:118;;;:::o;130917:199::-;130978:7;130998:22;131023:18;:16;:18::i;:::-;130998:43;;131059:1;:16;;:49;131076:31;131081:1;:4;;131087:19;131103:2;131087:15;:19::i;:::-;131076:4;:31::i;:::-;131059:49;;;;;;;;;;;;;;;;;;;;;;;;;131052:56;;;130917:199;;;:::o;141044:99::-;141102:7;141134:1;141129;:6;;141122:13;;141044:99;;;:::o;141394:166::-;141468:13;141549:1;141543;141535:5;:9;141534:16;;141510:3;:7;;:19;141527:1;141518:5;:10;;141510:19;;;;;;;;;;;;:41;;141494:58;;141394:166;;;;:::o;128893:407::-;128952:21;128986:22;129011:18;:16;:18::i;:::-;128986:43;;129044:1;:13;;:16;129058:1;129044:16;;;;;;;;;;;;;;;129040:20;;129121:1;107334:6;129077:1;:7;;;;;;;;;;;;:40;:45;;;129073:220;;;129139:11;107334:6;129139:44;;129202:11;129211:1;129202:8;:11::i;:::-;129198:53;;;107471:6;129215:36;;;;129198:53;129276:5;129266:1;:7;;;:15;;;;;;;;;;;;;;;;;;129073:220;;128893:407;;;;:::o;129466:469::-;129600:19;129637:22;129662:18;:16;:18::i;:::-;129637:43;;129706:13;:26;;;;;;;;;;;;129691:41;;129763:1;129747:12;:17;;;129743:185;;;129798:1;:12;;;129796:14;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;129781:29;;129854:12;129825:13;:26;;;:41;;;;;;;;;;;;;;;;;;129914:2;129881:1;:16;;:30;129898:12;129881:30;;;;;;;;;;;;;;;;:35;;;;;;;;;;;;;;;;;;129743:185;129466:469;;;;;:::o;141628:542::-;141794:8;141788:4;141781:22;141837:5;141834:1;141830:13;141824:4;141817:27;141883:4;141877;141867:21;141946:1;141939:5;141935:13;141932:1;141928:21;142009:1;142003:8;142057:10;142142:5;142138:1;142135;142131:9;142127:21;142124:1;142120:29;142117:1;142113:37;142110:1;142106:45;142103:1;142096:56;141766:397;;;;;;;:::o;141189:137::-;141243:7;141306:1;141301;141296;:6;;141295:12;141288:19;;141189:137;;;:::o;77023:364::-;77239:11;77233:18;77223:8;77220:32;77210:2;;77286:10;77280:4;77273:24;77349:4;77343;77336:18;77210:2;77132:248::o;121017:3268::-;121124:1;121110:16;;:2;:16;;;121106:52;;;121135:23;;;;;;;;;;;;;;121106:52;121171:22;121196:18;:16;:18::i;:::-;121171:43;;121227:35;121265:18;121278:4;121265:12;:18::i;:::-;121227:56;;121294:33;121330:16;121343:2;121330:12;:16::i;:::-;121294:52;;121359:23;;:::i;:::-;121413:15;:27;;;;;;;;;;;;121393:47;;:1;:17;;:47;;;;;121469:13;:25;;;;;;;;;;;;121451:43;;:1;:15;;:43;;;;;121521:15;:23;;;;;;;;;;;;121505:39;;:1;:13;;:39;;;;;121570:1;:13;;;121561:6;:22;121557:56;;;121592:21;;;;;;;;;;;;;;121557:56;121668:6;121651:1;:13;;:23;;;;;;;;;;;121722:1;:13;;;121689:15;:23;;;:47;;;;;;;;;;;;;;;;;;121820:6;121796:13;:21;;;;;;;;;;;;:30;;;121782:1;:11;;:44;;;;121751:13;:21;;;:76;;;;;;;;;;;;;;;;;;121864:54;121878:1;:17;;;106950:8;121897:1;:13;;;:20;;;;;;;;;;;;;;121864:13;:54::i;:::-;121844:1;:17;;:74;;;;;121992:1;107471:6;121939:13;:19;;;;;;;;;;;;:49;:54;;;121935:255;;;122026:2;122018:10;;:4;:10;;;122014:71;;;122068:1;:17;;;122048:1;:17;;;:37;122030:1;:15;;:55;;;;;122014:71;122124:50;106950:8;122138:1;:11;;;:18;;;;;;;;;;;;;;122158:1;:15;;;122124:13;:50::i;:::-;122104:1;:17;;:70;;;;;121935:255;122206:29;122238:56;122276:1;:17;;;122256:1;:17;;;:37;122238:17;:56::i;:::-;122206:88;;122336:1;122315;:17;;;:22;122311:703;;122358:27;122388:1;:7;;:13;122396:4;122388:13;;;;;;;;;;;;;;;122358:43;;122420:17;122440:1;:17;;;122420:37;;122476:15;122506:1;:17;;;122494:9;:29;122476:47;;122569:1;:17;;;122542:1;:16;;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;122643:7;122606:15;:27;;;:45;;;;;;;;;;;;;;;;;;122701:298;122727:10;122740:28;122745:9;122756:11;;;;;;;122740:4;:28::i;:::-;122727:41;;;;122791:43;122819:1;:4;;122825:2;122829:1;122832;122791:27;:43::i;:::-;122864:1;:16;;:20;122881:2;122864:20;;;;;;;;;;;;122857:27;;;;;;;;;;;122907:42;122925:10;122937:4;122943:2;122947:1;122907:17;:42::i;:::-;122701:298;122990:7;122977:9;:20;;122701:298;;122311:703;;;;123055:1;123034;:17;;;:22;123030:1068;;123077:25;123105:1;:7;;:11;123113:2;123105:11;;;;;;;;;;;;;;;123077:39;;123135:15;123153:1;:15;;;123135:33;;123187:13;123213:1;:17;;;123203:7;:27;123187:43;;123249:14;123266:43;123291:13;123306:2;123266:24;:43::i;:::-;123249:60;;123328:16;106950:8;123347:1;:13;;;;;;;;;;;;:20;;;;;;;;;;;;;;;;123328:39;;123386:10;123399:1;:13;;;;;;;;;;;;123386:26;;;;123458:1;:17;;;123431:1;:16;;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;123530:5;123495:13;:25;;;:41;;;;;;;;;;;;;;;;;;123586:452;123612:123;123654:1;123619:31;123624:1;:4;;123630:19;123646:2;123630:15;:19::i;:::-;123619:4;:31::i;:::-;:36;;;123612:123;;123695:8;123688:4;;;;;;:15;123684:27;;;123710:1;123705:6;;123684:27;123612:123;;;123757:34;123762:7;123771;123787:2;123757:4;:34::i;:::-;123814:65;123842:1;:4;;123848:2;123852:7;123868:9;;;;;;123814:27;:65::i;:::-;123902:40;123920:10;123932:2;123936;123940:1;123902:17;:40::i;:::-;123976:8;123969:4;;;;;;:15;123965:27;;;123991:1;123986:6;;123965:27;124031:5;124020:7;:16;;123586:452;;124079:2;124056:1;:13;;;:26;;;;;;;;;;;;;;;;;;123030:1068;;;;;;;124144:1;124118:10;:15;;;:22;:27;124114:111;;124166:43;124182:10;124194:1;:14;;;;;;;;;;;;124166:15;:43::i;:::-;124114:111;121017:3268;124266:2;124251:26;;124260:4;124251:26;;;124270:6;124251:26;;;;;;:::i;:::-;;;;;;;;121017:3268;;;;;;;:::o;77623:112::-;77692:6;77718:9;77711:16;;77623:112;:::o;139994:217::-;140045:11;140159:1;140147:14;140137:24;;140122:82;;;:::o;128433:289::-;128505:21;128529:15;128542:1;128529:12;:15::i;:::-;128505:39;;128607:5;128559:53;;128601:1;107471:6;128560:1;:7;;;;;;;;;;;;:37;:42;;;;128559:53;;;128555:124;;107471:6;128629:1;:7;;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;128555:124;128705:1;128694:20;;;128708:5;128694:20;;;;;;:::i;:::-;;;;;;;;128433:289;;;:::o;3049:415::-;3319:4;3307:10;3301:4;3289:10;3274:13;3270:2;3263:5;3258:66;3248:2;;3358:10;3352:4;3345:24;3426:4;3420;3413:18;3248:2;3162:295;:::o;75849:1113::-;75918:23;:21;:23::i;:::-;75914:1041;;;76051:11;76153:8;76149:2;76145:17;76141:2;76137:26;76125:38;;76309:8;76297:9;76291:16;76251:38;76248:1;76245;76240:78;76424:8;76417:16;76412:3;76408:26;76398:8;76395:40;76384:9;76377:59;76015:436;;;;76576:11;76678:8;76674:2;76670:17;76666:2;76662:26;76650:38;;76834:8;76822:9;76816:16;76776:38;76773:1;76770;76765:78;76920:8;76909:9;76902:27;76540:404;;75849:1113;:::o;19010:1676::-;19066:17;19518:4;19511;19505:11;19501:22;19494:29;;19619:4;19614:3;19610:14;19604:4;19597:28;19702:1;19697:3;19690:14;19806:3;19838:1;19834:6;20050:5;20032:410;20058:1;20032:410;;;20098:1;20093:3;20089:11;20082:18;;20287:2;20281:4;20277:13;20273:2;20269:22;20264:3;20256:36;20381:2;20375:4;20371:13;20363:21;;20412:4;20402:2;;20420:5;;20402:2;20032:410;;;20036:21;20481:3;20476;20472:13;20596:4;20591:3;20587:14;20580:21;;20661:6;20656:3;20649:19;19149:1530;;;;;;:::o;140800:204::-;140867:9;140983:1;140980;140976:9;140972:1;140969;140966:8;140962:24;140957:29;;140942:55;;;;:::o;137969:450::-;138029:20;;:::i;:::-;138159:4;138152;138146:11;138142:22;138235:1;138229:4;138222:15;138275:4;138269;138265:15;138326:1;138323;138319:9;138311:6;138307:22;138301:4;138294:36;138354:4;138351:1;138344:15;138394:6;138390:1;138384:4;138380:12;138373:28;138115:297;;;;;:::o;142243:708::-;142535:9;142523:10;142519:26;142506:10;142502:2;142498:19;142495:51;142573:8;142567:4;142560:22;142616:2;142613:1;142609:10;142603:4;142596:24;142659:4;142653;142643:21;142719:1;142715:2;142711:10;142708:1;142704:18;142782:1;142776:8;142830:18;142923:5;142919:1;142916;142912:9;142908:21;142905:1;142901:29;142898:1;142894:37;142891:1;142887:45;142884:1;142877:56;142467:477;;;;;;;;;:::o;138525:377::-;138759:1;138753:4;138749:12;138743:19;138822:7;138816:2;138813:1;138809:10;138805:1;138801:2;138797:10;138794:26;138791:39;138783:6;138776:55;138878:4;138870:6;138866:17;138862:1;138856:4;138852:12;138845:39;138714:181;;;;;:::o;139001:634::-;139169:1;139163:8;139204:4;139198;139194:15;139263:10;139260:1;139253:21;139338:4;139331;139328:1;139324:12;139317:26;139434:4;139428:11;139425:1;139421:19;139415:4;139411:30;139560:4;139557:1;139554;139547:4;139544:1;139540:12;139537:1;139529:6;139522:5;139517:48;139513:1;139509;139503:8;139500:15;139496:70;139486:2;;139597:4;139594:1;139587:15;139486:2;139136:492;;;;;:::o;74013:78::-;74077:10;74013:78;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;7:139:1:-;53:5;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;59:87;;;;:::o;152:133::-;195:5;233:6;220:20;211:29;;249:30;273:5;249:30;:::i;:::-;201:84;;;;:::o;305:352::-;363:8;373:6;423:3;416:4;408:6;404:17;400:27;390:2;;441:1;438;431:12;390:2;477:6;464:20;454:30;;507:18;499:6;496:30;493:2;;;539:1;536;529:12;493:2;576:4;568:6;564:17;552:29;;630:3;622:4;614:6;610:17;600:8;596:32;593:41;590:2;;;647:1;644;637:12;590:2;380:277;;;;;:::o;663:139::-;709:5;747:6;734:20;725:29;;763:33;790:5;763:33;:::i;:::-;715:87;;;;:::o;808:262::-;867:6;916:2;904:9;895:7;891:23;887:32;884:2;;;932:1;929;922:12;884:2;975:1;1000:53;1045:7;1036:6;1025:9;1021:22;1000:53;:::i;:::-;990:63;;946:117;874:196;;;;:::o;1076:407::-;1144:6;1152;1201:2;1189:9;1180:7;1176:23;1172:32;1169:2;;;1217:1;1214;1207:12;1169:2;1260:1;1285:53;1330:7;1321:6;1310:9;1306:22;1285:53;:::i;:::-;1275:63;;1231:117;1387:2;1413:53;1458:7;1449:6;1438:9;1434:22;1413:53;:::i;:::-;1403:63;;1358:118;1159:324;;;;;:::o;1489:552::-;1566:6;1574;1582;1631:2;1619:9;1610:7;1606:23;1602:32;1599:2;;;1647:1;1644;1637:12;1599:2;1690:1;1715:53;1760:7;1751:6;1740:9;1736:22;1715:53;:::i;:::-;1705:63;;1661:117;1817:2;1843:53;1888:7;1879:6;1868:9;1864:22;1843:53;:::i;:::-;1833:63;;1788:118;1945:2;1971:53;2016:7;2007:6;1996:9;1992:22;1971:53;:::i;:::-;1961:63;;1916:118;1589:452;;;;;:::o;2047:407::-;2115:6;2123;2172:2;2160:9;2151:7;2147:23;2143:32;2140:2;;;2188:1;2185;2178:12;2140:2;2231:1;2256:53;2301:7;2292:6;2281:9;2277:22;2256:53;:::i;:::-;2246:63;;2202:117;2358:2;2384:53;2429:7;2420:6;2409:9;2405:22;2384:53;:::i;:::-;2374:63;;2329:118;2130:324;;;;;:::o;2460:256::-;2516:6;2565:2;2553:9;2544:7;2540:23;2536:32;2533:2;;;2581:1;2578;2571:12;2533:2;2624:1;2649:50;2691:7;2682:6;2671:9;2667:22;2649:50;:::i;:::-;2639:60;;2595:114;2523:193;;;;:::o;2722:395::-;2793:6;2801;2850:2;2838:9;2829:7;2825:23;2821:32;2818:2;;;2866:1;2863;2856:12;2818:2;2937:1;2926:9;2922:17;2909:31;2967:18;2959:6;2956:30;2953:2;;;2999:1;2996;2989:12;2953:2;3035:65;3092:7;3083:6;3072:9;3068:22;3035:65;:::i;:::-;3017:83;;;;2880:230;2808:309;;;;;:::o;3123:262::-;3182:6;3231:2;3219:9;3210:7;3206:23;3202:32;3199:2;;;3247:1;3244;3237:12;3199:2;3290:1;3315:53;3360:7;3351:6;3340:9;3336:22;3315:53;:::i;:::-;3305:63;;3261:117;3189:196;;;;:::o;3391:118::-;3478:24;3496:5;3478:24;:::i;:::-;3473:3;3466:37;3456:53;;:::o;3515:109::-;3596:21;3611:5;3596:21;:::i;:::-;3591:3;3584:34;3574:50;;:::o;3630:364::-;3718:3;3746:39;3779:5;3746:39;:::i;:::-;3801:71;3865:6;3860:3;3801:71;:::i;:::-;3794:78;;3881:52;3926:6;3921:3;3914:4;3907:5;3903:16;3881:52;:::i;:::-;3958:29;3980:6;3958:29;:::i;:::-;3953:3;3949:39;3942:46;;3722:272;;;;;:::o;4000:377::-;4106:3;4134:39;4167:5;4134:39;:::i;:::-;4189:89;4271:6;4266:3;4189:89;:::i;:::-;4182:96;;4287:52;4332:6;4327:3;4320:4;4313:5;4309:16;4287:52;:::i;:::-;4364:6;4359:3;4355:16;4348:23;;4110:267;;;;;:::o;4407:845::-;4510:3;4547:5;4541:12;4576:36;4602:9;4576:36;:::i;:::-;4628:89;4710:6;4705:3;4628:89;:::i;:::-;4621:96;;4748:1;4737:9;4733:17;4764:1;4759:137;;;;4910:1;4905:341;;;;4726:520;;4759:137;4843:4;4839:9;4828;4824:25;4819:3;4812:38;4879:6;4874:3;4870:16;4863:23;;4759:137;;4905:341;4972:38;5004:5;4972:38;:::i;:::-;5032:1;5046:154;5060:6;5057:1;5054:13;5046:154;;;5134:7;5128:14;5124:1;5119:3;5115:11;5108:35;5184:1;5175:7;5171:15;5160:26;;5082:4;5079:1;5075:12;5070:17;;5046:154;;;5229:6;5224:3;5220:16;5213:23;;4912:334;;4726:520;;4514:738;;;;;;:::o;5258:402::-;5418:3;5439:85;5521:2;5516:3;5439:85;:::i;:::-;5432:92;;5533:93;5622:3;5533:93;:::i;:::-;5651:2;5646:3;5642:12;5635:19;;5422:238;;;:::o;5666:402::-;5826:3;5847:85;5929:2;5924:3;5847:85;:::i;:::-;5840:92;;5941:93;6030:3;5941:93;:::i;:::-;6059:2;6054:3;6050:12;6043:19;;5830:238;;;:::o;6074:402::-;6234:3;6255:85;6337:2;6332:3;6255:85;:::i;:::-;6248:92;;6349:93;6438:3;6349:93;:::i;:::-;6467:2;6462:3;6458:12;6451:19;;6238:238;;;:::o;6482:118::-;6569:24;6587:5;6569:24;:::i;:::-;6564:3;6557:37;6547:53;;:::o;6606:112::-;6689:22;6705:5;6689:22;:::i;:::-;6684:3;6677:35;6667:51;;:::o;6724:435::-;6904:3;6926:95;7017:3;7008:6;6926:95;:::i;:::-;6919:102;;7038:95;7129:3;7120:6;7038:95;:::i;:::-;7031:102;;7150:3;7143:10;;6908:251;;;;;:::o;7165:429::-;7342:3;7364:95;7455:3;7446:6;7364:95;:::i;:::-;7357:102;;7476:92;7564:3;7555:6;7476:92;:::i;:::-;7469:99;;7585:3;7578:10;;7346:248;;;;;:::o;7600:541::-;7833:3;7855:95;7946:3;7937:6;7855:95;:::i;:::-;7848:102;;7967:148;8111:3;7967:148;:::i;:::-;7960:155;;8132:3;8125:10;;7837:304;;;;:::o;8147:429::-;8324:3;8346:92;8434:3;8425:6;8346:92;:::i;:::-;8339:99;;8455:95;8546:3;8537:6;8455:95;:::i;:::-;8448:102;;8567:3;8560:10;;8328:248;;;;;:::o;8582:541::-;8815:3;8837:148;8981:3;8837:148;:::i;:::-;8830:155;;9002:95;9093:3;9084:6;9002:95;:::i;:::-;8995:102;;9114:3;9107:10;;8819:304;;;;:::o;9129:541::-;9362:3;9384:148;9528:3;9384:148;:::i;:::-;9377:155;;9549:95;9640:3;9631:6;9549:95;:::i;:::-;9542:102;;9661:3;9654:10;;9366:304;;;;:::o;9676:222::-;9769:4;9807:2;9796:9;9792:18;9784:26;;9820:71;9888:1;9877:9;9873:17;9864:6;9820:71;:::i;:::-;9774:124;;;;:::o;9904:210::-;9991:4;10029:2;10018:9;10014:18;10006:26;;10042:65;10104:1;10093:9;10089:17;10080:6;10042:65;:::i;:::-;9996:118;;;;:::o;10120:313::-;10233:4;10271:2;10260:9;10256:18;10248:26;;10320:9;10314:4;10310:20;10306:1;10295:9;10291:17;10284:47;10348:78;10421:4;10412:6;10348:78;:::i;:::-;10340:86;;10238:195;;;;:::o;10439:222::-;10532:4;10570:2;10559:9;10555:18;10547:26;;10583:71;10651:1;10640:9;10636:17;10627:6;10583:71;:::i;:::-;10537:124;;;;:::o;10667:214::-;10756:4;10794:2;10783:9;10779:18;10771:26;;10807:67;10871:1;10860:9;10856:17;10847:6;10807:67;:::i;:::-;10761:120;;;;:::o;10887:141::-;10936:4;10959:3;10951:11;;10982:3;10979:1;10972:14;11016:4;11013:1;11003:18;10995:26;;10941:87;;;:::o;11034:99::-;11086:6;11120:5;11114:12;11104:22;;11093:40;;;:::o;11139:169::-;11223:11;11257:6;11252:3;11245:19;11297:4;11292:3;11288:14;11273:29;;11235:73;;;;:::o;11314:148::-;11416:11;11453:3;11438:18;;11428:34;;;;:::o;11468:188::-;11507:4;11527:19;11544:1;11527:19;:::i;:::-;11522:24;;11560:19;11577:1;11560:19;:::i;:::-;11555:24;;11598:1;11595;11592:8;11589:2;;;11603:18;;:::i;:::-;11589:2;11648:1;11645;11641:9;11633:17;;11512:144;;;;:::o;11662:96::-;11699:7;11728:24;11746:5;11728:24;:::i;:::-;11717:35;;11707:51;;;:::o;11764:90::-;11798:7;11841:5;11834:13;11827:21;11816:32;;11806:48;;;:::o;11860:126::-;11897:7;11937:42;11930:5;11926:54;11915:65;;11905:81;;;:::o;11992:77::-;12029:7;12058:5;12047:16;;12037:32;;;:::o;12075:93::-;12111:7;12151:10;12144:5;12140:22;12129:33;;12119:49;;;:::o;12174:86::-;12209:7;12249:4;12242:5;12238:16;12227:27;;12217:43;;;:::o;12266:109::-;12302:7;12342:26;12335:5;12331:38;12320:49;;12310:65;;;:::o;12381:307::-;12449:1;12459:113;12473:6;12470:1;12467:13;12459:113;;;12558:1;12553:3;12549:11;12543:18;12539:1;12534:3;12530:11;12523:39;12495:2;12492:1;12488:10;12483:15;;12459:113;;;12590:6;12587:1;12584:13;12581:2;;;12670:1;12661:6;12656:3;12652:16;12645:27;12581:2;12430:258;;;;:::o;12694:320::-;12738:6;12775:1;12769:4;12765:12;12755:22;;12822:1;12816:4;12812:12;12843:18;12833:2;;12899:4;12891:6;12887:17;12877:27;;12833:2;12961;12953:6;12950:14;12930:18;12927:38;12924:2;;;12980:18;;:::i;:::-;12924:2;12745:269;;;;:::o;13020:175::-;13058:3;13081:23;13098:5;13081:23;:::i;:::-;13072:32;;13126:10;13119:5;13116:21;13113:2;;;13140:18;;:::i;:::-;13113:2;13187:1;13180:5;13176:13;13169:20;;13062:133;;;:::o;13201:180::-;13249:77;13246:1;13239:88;13346:4;13343:1;13336:15;13370:4;13367:1;13360:15;13387:180;13435:77;13432:1;13425:88;13532:4;13529:1;13522:15;13556:4;13553:1;13546:15;13573:102;13614:6;13665:2;13661:7;13656:2;13649:5;13645:14;13641:28;13631:38;;13621:54;;;:::o;13681:177::-;13821:29;13817:1;13809:6;13805:14;13798:53;13787:71;:::o;13864:214::-;14004:66;14000:1;13992:6;13988:14;13981:90;13970:108;:::o;14084:384::-;14224:66;14220:1;14212:6;14208:14;14201:90;14325:34;14320:2;14312:6;14308:15;14301:59;14394:66;14389:2;14381:6;14377:15;14370:91;14190:278;:::o;14474:122::-;14547:24;14565:5;14547:24;:::i;:::-;14540:5;14537:35;14527:2;;14586:1;14583;14576:12;14527:2;14517:79;:::o;14602:116::-;14672:21;14687:5;14672:21;:::i;:::-;14665:5;14662:32;14652:2;;14708:1;14705;14698:12;14652:2;14642:76;:::o;14724:122::-;14797:24;14815:5;14797:24;:::i;:::-;14790:5;14787:35;14777:2;;14836:1;14833;14826:12;14777:2;14767:79;:::o

Swarm Source

ipfs://d461d56c87bc6a5604c8997eb4d6f878da628bdb981246f55d69addcca44fb89
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.