Skip to content
Verified contractPartialMIT

UGLYUNICORNS

Address0xa548fa1d539cab8d78163cb064f7b22e6ef34b2f
Balance

0 ETH

 

Transactions

9

 

Compiler

solc 0.8.10

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.10+commit.fc410830
Language
solidity
Optimization
Yes, 200 runs
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
15,658,108
Creation transaction
0x627b49d56e…b2ed053c90

UGLYUNICORNS.sol

// SPDX-License-Identifier: MIT
//  __________________________________________________   Ugly Unicorns   ____________________________________________________
//                               
//                                   ⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⡙⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
//                                   ⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆⢠⠀⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
//                                ⠀⠀ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⢠⡾⣀⠙⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
//                                ⠀ ⠀⣿⣿⣿⣿⣿⣿⣿⠿⣿⣿⡆⢶⡟⣠⡈⢿⡿⠋⠀⠙⠿⠋⠙⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
//                                 ⠀⠀⣿⣿⣿⣿⣿⣿⣿⠀⢿⣿⣷⢰⣾⠟⢀⣤⣶⣾⡿⢃⢄⣤⢡⢈⡙⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
//                                 ⠀⠀⣿⣿⣿⣿⣿⣿⣥⡐⣠⣽⣿⡆⠡⢠⣾⢟⣫⡭⢁⢃⣾⣿⢸⠸⣿⣦⣌⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
//                                 ⠀⠀⣿⣿⣿⣿⣿⣿⣿⣇⣿⣿⡟⢃⣄⢸⡇⡿⠋⠀⠎⣾⣿⡿⣸⢰⣮⡻⣿⣦⡘⠿⣿⣿⣿⣿⣿⣿⣿⣿
//                                 ⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⠟⢋⣴⣿⣿⣌⡳⠁⢈⣿⣾⣿⣿⢃⡿⠘⢿⣷⡜⢿⢃⣶⠈⢻⣿⣿⣿⣿⣿⣿
//                                 ⠀⠀⣿⣿⣿⣿⣿⣿⠟⢁⣴⣿⣿⠿⠿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣧⣶⡌⣛⣋⣠⣾⠏⠀⣤⡉⢻⣿⣿⣿⣿
//                                 ⠀⠀⣿⣿⣿⡿⠛⣡⣶⣿⣿⡿⠁⢴⠄⠀⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠙⠟⠋⢁⢠⣶⣜⢿⣆⢻⣿⣿⣿
//                                 ⠀⠀⣿⠟⣡⣴⠂⣿⣿⣿⣿⣧⠀⠀⠀⠁⠀⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⣿⡇⣿⢸⣿⣿⠸⣿⡀⣿⣿⣿
//                                 ⠀ ⡏⣰⡀⢹⣇⢻⣿⣿⣿⣿⣷⣤⣤⣤⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢣⡿⢡⠏⡘⢿⣿⡇⣿⣇⠹⠋⢹
//                                 ⠀ ⡇⣿⣿⣿⣿⡄⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣤⣀⡋⣀⣥⡸⣿⣌⠻⢿⣌⣛⡛⢁⣼
//                                 ⠀⠀⣧⡘⢿⣿⣿⡇⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠻⣿⣷⣝⠻⢿⣶⣦⡄⣤⠘⣿
//                                 ⠀⠀⣿⣿⣦⣭⣙⣃⣨⣭⣍⣙⡛⠿⣿⣿⣿⠿⠟⠉⣸⣿⣿⣿⣿⣿⣿⣿⣧⠙⠿⣿⣿⣶⡙⣿⡇⣿⡇⢹
//                                 ⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣶⣶⣶⣶⠏⣼⣿⣿⣿⣿⣿⣿⣿⣿⠟⣸⣷⡌⠻⣿⡇⡿⠁⣿⡇⣼
//                                 ⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⢰⣿⣿⣿⣿⣿⣿⡋⠋⠥⢾⠿⢟⣵⠗⠘⢁⡔⣼⡿⢠⣿
//                                 ⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃⣿⣿⣿⣿⣿⣿⣿⣿⣶⣬⢁⣬⡍⣴⣶⣾⣿⢱⡿⢁⣾⣿
//                                 ⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣼⣿⢱⣿⣿⣿⣿⡸⠃⣿⣿⣿
//                                 ⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢻⣿⡜⣿⣿⣿⣿⣿⣶⠆⣸⣿
//                                 ⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣄⠻⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡈⢿⣿⣬⣛⠿⠿⣛⠉⣠⣿⣿
//                                 ⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣦⣬⣭⣭⣭⣭⣭⣭⣥⣴⣦⣍⣙⣛⣛⣉⣤⣾⣿⣿⣿
//
//  _______________________________________________  Founding Members Club  ________________________________________________

// __________________________________________  @website https://uglyunicorns.xyz/  _________________________________________

// ____________________________________________ All 🦄's created by Kristen Dyor __________________________________________

// ____________________________________________ Contract architect: @imthefounder __________________________________________

//                                                                                           
//
// a new era but probably nothing...
//
//
//
//
//
//  .       .       .     👾   .   .      .   🌑
//   .  .    .   .    .    .      .   .👾   .         
//      .👾 .    . 🛸 .     .  .🌙    .    .     
//
//.      .      .          🚀  .  .   .   .  .  
//                 .  .   .
//  .       .           .     .  .    .    .   .     
// .☁️☁️☁️  ☁️☁️☁️  .☁️ ☁️☁️☁️☁️☁️☁️ ☁️☁️☁️ 
//                   .  
//                 .
//                .
//               .
//              .  
//             .
//            .
//          💥
//          🌏
// 
// ────────▄█▀▄
// ──────▄██▀▀▀▀▄
// ────▄███▀▀▀▀▀▀▀▄
// ──▄████▀▀▀▀▀▀▀▀▀▀▄
// ▄█████▀▀▀▀𓀿▀▀▀▀▀▀▀▀▄𓀬𓃗𓃱𓀡𓅷𓆏𓃰𓃠𓃟𓃒𓅰𓅷𓆏𓃰𓃠𓅿𓃱𓃗𓅓𓆙𓀿𓂉𓃒𓃒𓃗𓃘𓃝𓃟𓃠𓃡𓃩𓃬𓃯𓃰𓃱𓃲𓃵𓃷𓃹𓄿𓅜𓅦𓅪𓅭𓅰𓆈𓆉𓆌𓆏𓆗𓆟𓆡𓆣𓆦𓆧𓆉
//
//
//👋 Hi, I’m The Founder ပို
//🗺️ I'm a traveling man from MI, where come you fro?
//👀 I’m interested in web3, UI/UX design & the sharing economy
//🌱 I’m currently learning all things web3
//💞️ I’m looking to collaborate on a web3 social media platform
//
//
//
//Have you ever heard of an underrepresented founder? 
// If so then you have an idea of the struggles such a
//founder faces when it comes to starting a business,
//building products or even scaling a business. If you don’t
//know what an underrepresented founder is, I'll tell you.
//These are 👦🏼👨🏾👩🏻 underrepresented founders, they
//often draw on their lived experiences and problems they 
//have witnessed in their lives and communities to create 
//solutions that meet the needs of people, especially where 
//market innovation/solutions fail to do so adequately.
//
//
//In 2020 months after the pandemic began, the founder 
//Kristen Dyor met with multiple (4) venture capital firms 
//pitching a revolutionary web3 social media platform with 
//patent pending technology that allows every single user 
//the ability to earn money for their content and engagement.
//The first of it's kind engage to earn (E2E) platform for
//creatives, influencers, brands and even those who simply 
//enjoy digital content. After these meetings and lots of 
//great feedback, investors were still on the fence about web3, 
//crypto and as well the idea of investing in a new social
//platform. Even though the investors called the patent pending
//technology genius, a great invention, a great idea and many 
//professed that they themselves would use such a platform, the
//founder still didn't get the funding needed to build out the
//application for the world to experience. Due to the lack of
//optimism and innovative thinking, The Founder decided to find 
//other ways to get the patent pending tech created and thats
//how the Ugly Unicorns project was born. Inspired by WSB The 
//Founder decided to go directly to the Web3 community in order 
//to build and scale such revolutionary tech with a goal to 
//incentivize every single person joining Ugly Unicorns.
//
//
//
//Here is an actual transcript of an email The Founder recieved 
//from a Silicon Valley VC named 'S': 
//
//
//From:****** ******** <*********@*******vc.com>
//Sent:Monday, October 19, 2020 at 10:44am 
//To:kris*@********.org
//Subject: Re: Minchyn - Social Media........ - Pre-seed
//
//
//Thanks Kris for all of your time and it was great to learn 
//more about what you're building. I am still just little 
//worried about investing in another social media company right
//now. While i do think Twitter and Facebook are in need of
//disruption, I think they are really well financed and complex 
//challengers to take on. I wish you the best of luck though
//and thank you again for your time!
//
//
//
//S*****
//
//
//
//
// MISSION BRIEF: 🏣 -> 🦄 
// 1. 📈 နဲ့CALE THE နဲ့TARTUP 
// 2. PROVE PRODUCT MARKET FIT
// 3. BUILD NEXT GEN နဲ့OCIAL - MINCHYN™ 
//
//          🦲🦱🦲🦲🦳🦲🦰
// Loading… ████         ] 22%
//
// "The only way to reach the moon  
// is by Traveling towards the Light" 
//
//                      - The Founder ပို
//  
// 📫 How to reach me:
//[🐦 Twitter](https://twitter.com/imthefounder)
//[📺 YouTube]( https://www.youtube.com/user/kstephontv?sub_confirmation=1)
//[🖼️ Instagram](https://instagram.com/imthefounder)
//[💼 Linkedin] (https://www.linkedin.com/in/kristen-stephon-c-a90512156/)
//
//
// FMC Induction 
// Phase 1 of 4 |PS, S, A, B|
// ☑️ PS , 🔲 S, 🔲 A, 🔲 B
//
// Web3 Vibes Only 
// By Us 🤹🏾‍♂️ For Us
//
// 
// Created by: Humans in a Garage 
//
//
// 
//Title: 🧬⃤ +🧠⃤ +🧪⃤  Encoded,
//Evolution Becomes Revolution
//
//───────────────▄▄───▐█
//───▄▄▄───▄██▄──█▀───█─▄
//─▄██▀█▌─██▄▄──▐█▀▄─▐█▀
//▐█▀▀▌───▄▀▌─▌─█─▌──▌─▌
//▌▀▄─▐──▀▄─▐▄─▐▄▐▄─▐▄─▐▄
//
//📅 Fri 2/2/2022 2:22 AM
//                                                                                                                                                                                                                                                             
//May your remaining chapters in this simulation we call life be fruitful, 
//may your journey be fulfilling and may your cup runneth over with love
//and that be your usual. I wish you an abundance of prosperity, peace, 
//understanding, clarity and for your mind to be free. I wish you insight 
//so that you may see, see for yourself, that right now you are exactly
//where you are meant to be. Beautiful fruit manifested by the tree,
//we all have a purpose, to give that in which was given to thee, live 
//your life but take time to enjoy the breeze, plant your seeds and give
//life to your profound dreams because fruit that never falls often times 
//becomes feast. I wish this for you, I wish this for me. May all of your 
//endeavors be met with favor, may your tears be those of joy and may you 
//always stay sucka free. - The Founder ပို                                                                                                                                                                                                                                                        
//                                    
// 
// 
//-------------------------------------------------------->                                                                                                                                                                                                                                                                
//(This may look crazy on etherscan but clarity, 
//and water, is often times purified with a 'remix'. It is 
//then 'solidified' in cold storage. [For 4k view, ctrl+a, 
//ctrl+c then ctrl+v in Github. For HD, view in VSC. For SD, 
//view on etherscan, toggle_fullscreen, squint then scroll)
//-------------------------------------------------------->                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
//   
//
//
//                                                                                                !|@@W⬛🔲SQUARE🔳⬜E`|#@#@@|`                                                                                                                                
//                                                                                              #@@@@@@@@@@@@@@@@#@@@@@@@@@@@@@#ET~                                                                                                                            
//                                                                                           ~#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##0EF*`                                                                                                                    
//                                                                               `T#@@@#EFF##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##@!                                                                                                                  
//                                                                         ;T*0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##0*`                                                                                                              
//                                                                       _0#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##E#!+'                                                                                                        
//                                                               `_/E##@@@@@@@@@@@@@@@@@@@@@I'm The Founder ပို. This is The Future.@@@@@@@@@@@@@@@@@@@@@@#E!_                                                                                                    
//                                                            .=0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#0_-                                                                                                
//                                                           -@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#1#@@@@@@@@E/                                                                                              
//                                                        . ;#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#00@@@@@@@@@*                                                                                            
//                                                       `;!#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#'E@@@@@@@@#E.                                                                                        
//                                                        _T@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E~ _|T#@@@@@#_|`                                                                                      
//                                                    -- .T#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E`      T@@@#T~                                                                                      
//                                                     :`|@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#:        ``                                                                                        
//                                                      .!@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#1.                                                                                              
//                                                    -,'I@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0`                                                                                            
//                                                  `~@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@I.                                                                                          
//                                                 ,*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#,                                                                                        
//                                                  #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#,                                                                                      
//                                                +|#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#T!.                                                                                  
//                                                 \#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#@@@@@##E-                                                                                
//                                              - ;#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+,!#@@@#E.:`                                                                            
//                                             -!#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E- !@@@@@@#1-                                                                          
//                                             ``0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@: _E@@@@@@@#T~!`                                                                      
//                                            ,!~~I#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@; -T@@@@@@@@@#0-                                                                    
//                                           -,1_#II@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0###I  #@@##@@@@@##;.                                                                  
//                                           ,_;TE##@@@@@@@@@@@@@@@@@@@@@@@@@#@@@@@@@###EE###0E0E00FE#####@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@###!  E#0=@@@@@####0.                                                                
//                                          .,.-+0_@@@@@@@@@@@@@@@@@@@@@@@@#######EETE#0|\T1||=*11\!!!_!=\T0#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@###01~      !T#@##ET1F~                                                                
//                                           .:.,T#@@@@@@@@@@@@@@@@@@@@@@@##0ETFIT\!_!+!;,;:;~~_~~~~~___!!1TI0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#E|!;'        .#_ `  ,                                                                
//                                           .--_##@@@@@@@@@@@@@@@@@@#@@##EE0E1!_~_;_;;'`.~;,',,;;~;___!!*+|||0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##E\_:,:`.      ,#;_- ;                                                              
//                                           `  1##0@@@@@@@@@@@@@@@@@###E111!~__~__;,`,`-:::':',::~;~~__!/1\11|I#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#I|_/T1`        EF;!!-                                                              
//                                        -- ~`.F*E#@@@@@@@@@@@@@@#@#0EFT|*/!_;;;::'-.,`-`'.'':'';;~__!+=1|111|TE#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##0|:'..`` `   ,,_=_                                                              
//                                          `1_|!@##@@@@@@@@@@@#####EF|1!____',:',,.``...`.``'''::~_!!!!/1||11|TFE#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@####|!_,'- .     -_,-                                                            
//                                          ;___*##@@@@@@@@@@@@##0F||1=_~;;~,,,,.`.-`.``-.-`..`':;;_!!!*11||1|TIII##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@###@@!`:,,`.                                                                      
//                                           `.`~~E#@@@@@@@@@@@##ET=*!__;~;~~;':'---``..-```--',.:~';_!!\11||11|TTF0#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#I_0@@_                                                                          
//                                         -:-!+*0#@@@@@@@@@@##E1!!!!_~__~;~::',,-`.--`.`--...--.:::;_!/+=1|||TT|F00##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#_.`;#@_                                                                          
//                                           `!E_!#@@@@@@@@###F1!!__!____~~~;:::'-`-.       .`.``-.:;;_!*1|1111||TFE0##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@T_~,!#@F.                                                                        
//                                            *IE|#@@@@@@@#0T|1/!__________~;,:,,-.`       -- -`..,:,~~;!*!!!\\\1|TEE00#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@F=1\_E#@@\`                                                                      
//                                            -,:0E@@@@@#ET|!!!!_!!!!!_____;':'''`..`` `  -``.-..`.``.''~;~_!!=11|TTTFE##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#!.;_!@##@@E-                                                                    
//                                            ,-~|0@@##0T*1!_!!!!!!!!!____~;',',;:. -   `.   .-.`..-...,';~_!!=+1|TTTTE0###@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@00@@@@@@@@!                                                                  
//                                              .-0@#EF1!_!!!!!!!!*!!!!__~;~,:,:,- .       `--.`.-.`---:,'~__!*=11=+1|TEEE#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|#@@@@@@@#\                                                                  
//                                               _I#|!!!__!!!!*==+!!!___;~:,,:`-`--         .  `:'-`--.,',;_!!11+11111|IFFE#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@;0@@@@@@@#1                                                                
//                                              ~`0#!_____!\=+=*/!!!!__~;~:''.`.  --   .` `-`---...-..`.,;~_!!+=\11|||||TTT##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#-;@@@@@@@@|                                                                
//                                               !1E;~;__!!=*\1/+!!!__~';;:':``-`--      .-.-..... ..``-:;~__!!/1|11111|TTT0#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@T  0@@@@@@@:                                                              
//                                               .;!~;;_!!+//+11*!!!__~;;~,:,-`.````-..` .-.-.`.``.``.-:::;__!\+1|111/1||TTE0#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0 !@@@@@@#                                                              
//                                                E~~__!!*1*11|+*_!___;;~~;,'':'`-`.--.`-...- `.. `.-.``:'~_!+\111!\*/*11||FI0#@@@@@@@@@@@@@@@@@@@@@@@@@@@#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@. ~#@@@@@|                                                              
//                                                T';_!!/\=+11|=!!___~;~;~;;~'''.`.-`-.`.`.--.``-`-`.--',';~_!!!!\!_!!!\111|I0#@@@@@@@@@@@@@@@@@@@@@@@@@@@|~@@@@@@@@@@@@@@@@@@@@@@@@@@@@:  `!@@@@#1-                                                            
//                                                |;;!!/+111111\!!__~~~~,'~;~~~''-.--`-.----.`--..``-`.`-';~;__~~;~~~;__!!!/1|E@@@@@@@@@@@@@@@@@@@@@@@@@@@=1#@@@@@@@@@@@@@@@@@@@@@@@@@@@~    ,#@@E_;                                                            
//                                               `E;_!!!*1|1|11/!___~~~;:':~;~',`-.``-`...--`..--..-.-```,':;~;;,,:,:,;;~;_!+1I#@@@@@@@@@@@@@@@@@@@@@@@@@@##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_    _@#!+1                                                            
//                                                I_!*!\11||11\1!__!_;~,:,:~':':''```--..---``--`.-.`-.-..'`.',,,,,'~!!_,',~_!|0#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#FE@#,    |##||_                                                          
//                                               -E__!/11|T|111*/!!___;~;:':'~::,::,`--`-````-`..`..`.``..``..:'::~__*1+\:,:;_*T##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0T1I@@     |#T/!,                                                          
//                                               -0!_!+11||||111=!!!!__~~;~,;~:','`-.`-.-.-`-`.-.`   `  ` ...`,__!\|IE1_~,:,,~_*F#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E#@@#1!_1@#    .0|E|!                                                          
//                                                E!_!/1||TTT||1\!!!!!__;~;:'~,,::-...-````-.-.`.        `-`:~*1|IFFFE|_:-`'::;_!F#@@@@@@@@@@@@@@@@@#@@@@@@@@@@@@@@@@@@@@@@@@@@@@#_E@@01;:-T*    !@#0-                                                          
//                                                0+!!!1TTITTT|1\+\!!!!__;;;~~;~::-..-..-.`...``       `--'-;10######|___~:,'`,,~*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|:,FE1::;!E`   `##1.                                                          
//                                                #|!_!1|TIFFF|T|*1*+!____;~~;~,,''-'''--.`   --     ..-,~_1|00##EI_,--.`:,~,~:,;_|#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#;;!##|!;1#,    -,                                                            
//                                                TT\_/|TIEEETTT|\1\1+!_;;;_;:;~,':`.```-.`. .      `..`'_1TE#TFT~.`     `-',;___!10@@@@@@@@@#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@1;~@@@TT!#T                                                                  
//                                                !F+_\|TIEEEEFI||**=!_~_;;;',-..`-``.`--`-.``   `..-`.,;!||0E\!;'-`      .`...';_+|#@@@@@@@##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0#@@#,``#@##E#@:                                                                
//                                                '0/_\1TFEEEEEI|11/!!_~;~,,,:.`-````--`.`-`--`  ---.:'~_+T|1!!_;:``-.`-.--`--`.';~!F@@@@@@@@#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#_  !@@@@@@@,                                                                
//                                                 0*!/1|IEEE0EIT1+!__~,;,':-.`````.`-`-..`.`.-.--,.':!!!||/!*11/;~~___;;,:'',:::;_/E#@@@@@@@@#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#@|  !@@@@@@@@,                                                              
//                                                 T+!!1|TF0EEET|//!__;:,'`.``.`..``.---.-`....--`--,'1!=T1/TE##000####0FT\/____!!\T0#@@@@@@@##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#' /#@@@@@@@#                                                              
//                                                 -E/+1|TIEEFI|1+!__;~,```.`..`  `...-..`-.-``.`.``,;!_!|0##@@@@@@@@@####@@@@####000#@@@@@@@@##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#` E@@@@@@@@1                                                              
//                                                 .#/*11|IEEE|1\__~,':'``--``.`  -`-``.`.`.-`.-`-`''~=1T0#@@@@@@@#\_~,';!|E##@@@#####@@@@@@@@###@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@!E@@@@@@@@@#-                                                            
//                                                  1|\*1|T|TF|\!_;,,.`..-.--.-.-``-..`--.''-````-';_/TE##@@@@@@#|+!;',:;_=T0#########@@@@@@@@@###@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#@@@@@@@@@@#                                                            
//                                                  ,01111||||+_~~,,-.-:`-``.`-,-`--'',:,,,,`.-,'';_1TE##@@@@@@#T|1!;~.-.;!1|E0########@@@@@@@@####@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=                                                          
//                                                   I=111111/!__;;:,,,:-:,',`,,::',::::,',,':`-,;~!|E##@@@@@@#ETTT11T#@@@@@@@@@@@@###@@@@@@@@@#E00#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@!                                                          
//                                                   'F+\1111\*\!!!!!!!!;~~;_~'~'::,,:,::::,:,'''~_+T####@@@@##00##@@@@@@@@@@@@@@@@@###@@@@@@@@@EII0#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#0@@@@@@#:                                                        
//                                                    /++/*11|||T00000ETT|+1/!!!_~;:,,:,,,,,':'.,;_10###@@@######@##@@@@@@@@@T0@@@###EE0#@@@@@@@01=*F#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#`E@@@@@@@T                                                      
//                                                     !_!*\1T0##@@@@@@@@##0EEF|+!_;;~~~~~'::::`,;_10#EF#@#####@@1`-#@@@@@@@TTE##@#F/~~_T#@@@@@@#E111T#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,F@@@@@@@=                                                      
//                                                     `!=*1E#@@@@@@@@@@@@@@@####I|\!!__~'',:`.`:;!T0T*|##0E0#@@0'.-`~0@@@T+_!T#@#E!~:.':T@@@@@@@#1+/|F#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@!`@@@@@@@@;                                                    
//                                                      '!!1#@@@@@@@@@@@@@@@@@@@@###0T+!_;',`--`.~+TT*_!0E!TF#@#I;:'''~_,`,;TI###01;`-.-._F@@@@@@#1!/1T#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=-1@@@@@@@#_                                                    
//                                                       !_1#@@@@@@@@@@@@@@@@@@@@@@@@##F=!~'..-`-'_+=_~_T/',|#T*T|=!!!\|1|1TE###1!;'.-.``'_#@@@@@@01\!*E#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=-#@@@@@@@E                                                    
//                                                       ~~1#@@####@@@@@@@@@@@@@@@@@@@@@0=;:`` `-:_!!;:'!_-`_;'1T0EFFTTFIEEEE1!,-`-``--`.-,T@@@@@@@E111T0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_:#@@@@@@@I                                                  
//                                                        ~+#@#0E0##@@@@@@@@@@@@@@@@@@@@@F!~-`  `,;;~~:,';-`~!_*1E######EF/~:.-.`.-.--.``-`,#@@@@@@#I|11E#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0-E#@@@@@@@_                                                  
//                                                        .F##0FE##@@@@@@@@#F_1@@@@@@@@@@#/;'.  .`,,~~~:,~~,;`,,',.';~'',.``-.`  - .``-`.-`.|@@@@@@@0111FE#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_ -|@@@@@@#!                                                
//                                                         E##0###@@@###00|0@@@@@@@@@@@@@@=_:`   ..::,;;~,;~;~.`-.-..`---``      `   -..`. `~#@@@@@@0|FTTF0#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#.  _@@@@@@F'                                                
//                                                         T#####@@@@##E#@@@@@#@@@@@#@@#@@=_'-   .`.':,:':,;,,':'. .--`.-`          .-   .`--=@@@@@@@ET1|E0##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E   -@@@@@=_~                                              
//                                                         1F####@@@@##@@@@@@@@@@@@/_0##0E\~:-     --`.:,,:,::`.`-```                    ``-'~E@@@@@@#E||I0###@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,    F@@@@E:.-                                            
//                                                        ~@I|##@@@@#@@@@E#@@@@@@@EYE1!EYE_;`..     `--.`-:,:,..`...-``-                 `-.':!#@@@@@@E0EF00##@@@@@@@@@@@@@@@@@@@@@@@#@@@@@@@@@@@@@@@#~    `#@@#;;*'                                            
//                                                        /@@_I#@@@@@@@#0/_!#@@@@|,;10EIEE_~--`     `.-..-.`-,.```                     ...``:,_|@@@@@@@T|TEE0##@@@@@@@@@@@@@@@@@###@@@@@@@@@@@@@0@@@@@@-      -#0+I1+                                          
//                                                        1@@E|#@@@@@@@/+1;-,:_!/TF0##EEET_;,`-     .--..```-..--`-                    ``-.`:'_!0@@@@@@#EITE0E##@@@@@@@@@@@@@@@@@E0##@@@@@@@@@@@#!@@@@@#.       --#0T,                                          
//                                                       0@@@#=E#@@@@@@@#0F!*TTE#####ETTT|_;.`.     -..--.`.-`.'.`.                   ``---,,'~_1@@@@@@@EETIEE0##@@@@@@@@@@@@@@####@#E@@@@@@@@@@@T_@@@@@:                                                      
//                                                      ;@@@@1=F#@@@@@@#@######0###0T111T1_;,,-.     -``-```.-`.`-.                   -....`:,;_=0@@@@@@#IFT0E0###@@@@@@@@@@@@@#II#;1|@@@@@@@@@@@@!#@@@@I                                                      
//                                                      _@@@@_.T0#@@@@@#@@########|!\==*|+_;,:`.     .`..':--,`..-...                 .`.`.-';~;_T#@@@@@@EIFFII0##@@@@@@@@@@@@@_;E0!_,!@@@@@@@@@@@##@@@@@,                                                      
//                                                      '@@@@T !|###@##########0T=!!!!!!1!!;,'..     -`.-.,'',,''.-.`-.              `-.-`.,;;;__=I@@@@@@0FETTE00##@@@@@@@@@@@#'_E+:_!_#@@@@#@@@@@@T@@@@@@-                                                    
//                                                       #@@@0 :TIE##IE####0E|\++!!_!___=\!_'::.     `---,',':,;''~:'-``..           ..`.-,,,~~__!\#@@@@@#0FTFE00###@@@@@@@@@@#=E@#1!1\@@@@@1#@@@@@@@@@@@@@!                                                    
//                                                     .#@@@@0  |*|TF1|EET1*!___!!!__~~_!\*!;,..      `-``''';~~~;~_~'':-`..        ```.`,:''';~__|#@@@@@@#ETTTTE####@@@@@@@@@@@#1'_F!E@@@@@E|@@@@@@@@@@@@@@T                                                  
//                                                     !@@@@@_  ;*+\/+11=!__~___!!__~~;_!/!_',.-       --`,,'~;;~~!_;;;::-.--       ````-'-,:';;__1E@@@@@@#0EE||TE##@@@@@@@@@@@@@#|FT#@@@@@@@,|@@@@@@@@@@@@@#                                                  
//                                                     -@@@@@;   /_!!__~________!!_;:,'_!11~:`.-.       -.-:,:',:;~__;;;',.-``-..`-.`.....--:,,~__10#@@@@@@#EFFT|I###@@@@@@@@@@@@@@@@@@@@@@@@~!@@@@@@@@@@@@@0                                                  
//                                                      ,@@@@'   ~___~~;~~~~______;,,':~!|T~'.-.-       .-`-''':',';!;;'~:::...-.`--.``-`-.`',:;_!1|#@@@@@@#EEF|TF####@@@@@@@@@@@@@@@@@@@@@@@; E@@@@@@@@@@@@                                                    
//                                                      _@@@@`    __~~;;~;~~~___~~:,,''~_=E~'-..-       -`-``,``..';~!;,',,-...`-`--``.`--.'::;~_!110@@@@@@@#00ETT####@@@@@@@@@@@@@@@@@@@@@@@~  F@@@@@@@@@@#                                                    
//                                                      T@@@#     :~;~~;;;;~~;;;~~',.';,;_|~::``.`      .--``````-':_/+:.-`--..`--..``.```','''~;_!\F@@@@@@@###0TF0#@@@@@@@@@@@@@@@@@@@@@@@@@   .@@@@@@@@@@#`                                                  
//                                                      1@@@@-    `!;_;~;~;~~~;,''':.,':'~!_':..`-      `..':'',:;~!1IE:,- `.``--.``--.---`',';;~_!*T@@@@@@@#000IF0#@@@@@@@@@@@@@@@@@@@@@@@@@    F@@@@@@@@@@                                                    
//                                                      0@@@@_     ;____;~;~_;;''::::'::'~;_:'--`-     -`,:~~_!/E0#####_``    -    --.---:,''';~_!!\1#@@@@@@#0EIEFE###@@@@@@@@@@@@@@@@@@@@@@@,   `@@@@@@@@@@'                                                  
//                                                     ;@@@@@#     `*!!!__;;;~;':':::.---:;__~::.`-.``.',;_=T#@@@@@@@@#'`       -`---`.,-`',:,';_!!+|#@@@@@@@EIIFTE###@@@@@@@@@@@@@@@@@@@@@@@!    E@@@@@@@@@~                                                  
//                                                     ~@@@@@#      \!!+!__;~~~'':''','.`';_+=!_',,:.`,;~_/0@@@@@@@@@#_-`       -.-`--``-,''::;;!1111E#@@@@@@@#ETF###@@@@@@@@@@@@@@@@@@@@@@@@@!   -#@@@@@@@#'                                                  
//                                                     `@@@@@@;     -*!*\!_~~~;;:':`.``--.;=I##E1_~',,~_!+F#@@@@@@@0_-`.`...  . ..`-````'',,',;_11111|0@@@@@@@#EEE###@@@@@@@@@@@@@@@@@@@@@@@@@@.   _@@@@@@@T                                                    
//                                                      #@@@@@I      !/!!!____~:',-.```---,E######I1*=\1TE#@@##E1;:'----```--.-..--`:`-:',,~~;;;_//*1|T#@@@@@@@E0###@@@@@@@@@@@@@@@@@@@@@@@@@@@|   ./@@@@@@#`                                                  
//                                                     ._@@@@@|      !!\*!____;~~','.`---``,E@@@@@@########@@#!,'-``...`..-`'-.:::;;~';,'::~~~,;__*!1|TE@@@@@@@#####@@@@@@@@@@@@@@@@@@@@@@@@@@@#.    #@@@@@@I                                                  
//                                                       @@@@@_     ;@E=+\!!___;~:':..-`.'',!#@@@@@@@@@@@@##F*,':,,~``,`:-:,~\~;+!!+\!~_~~:;;;~;_!!11||I#@@@@@@#####@@@@@@@@@@@@@@@@@@@@@@@@@@@@|   -@@@@@@@@1                                                  
//                                                       #@@@@0     #@@11+*!!!__~;,:'-``-'''=#@@@@@@@@@@@@@0*_~_;',~;',;!=\1|0E\TFT#@0|__~~,'~;~_!/+1IITE@@@@@@@###@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@;  ;@@@@@@@@@1                                                
//                                                       0@@@@@-   .#@@@11*\\=!!!_~':,.``'';_E#@@@@@@@@@@@E1\|T=1_./!~_/|0ET0#@0E0E####11=_;;;~__!+1TEEE#@@@@@@@@#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@;,-@@@@@@@@@@_                                                
//                                                       1@@@@@.   ;@@@@#/1\++/!!_;~'~',:,'~;/F##@@@@@@@@#T|FF###|!*1_1=||F|11!!T!TEIIEE||!;~;;_*|FTE0EE#@@@@@@@@#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@T'@@@@@@@@@@@`                                              
//                                                       :@@@@@`   +@@@@@_\=/*=!/!_~~~;'';;;____1F0#@@@@##E1\F#E#!.'',,.,;:'-`';_+1|I|TEE|!___~_/F000####@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#@@@@@@@@@@@!                                              
//                                                       -#@@@@;   @@@@@_ |1*=/*11!__~~;~;;;___!*/E#@#@@#0|__:_;..-...`:'':,:~!|######0IF1!!!__!/E########@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=                                              
//                                                        !@@@@_  #@@@@|   E*=11111*!!_;;~~~!1=*|##@@@@#T;-.'''.```,;_!|EE0###@@@@@###0T|!!__!!*T0########@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#                                              
//                                                        .@@@@I _@@@@@    -T|11TT/=!!*11GGGTI0E#@@@@#T_'.-:,::'';!=FE#@@@@@@@@@F~E##0FT1\!/!\11E###@@####@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_                                              
//                                                         #@@@@`@@@@@*     ~1|TIT|1\\//++|I0###@@@@|;*+*!!=+*+T00##@@@@@@@@@#|-~|#0IT||1!!*11|F0#########@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#@@@@@@@@@@@'@@@@@@E                                              
//                                                         I@@@@#@@@@@~     !E||ITT||11/1I##@@#@###+/FE0E#####@@@@@@@@@@#E~_T:;!|00|!\1=!=1111|TE##########@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@./@@@@@@@@# #@@@@@#                                              
//                                                         !@@@@@@@@@=      !@IE00EF|11+T0@@#@@#T11E####@@@@@@@@@@@@@E~`;_'~;!1E##|1|11!!!+1|||||0########@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@T~#@@@@@@@@.`@@@@@I                                              
//                                                         '@@@@@@@@0       0@@00#0IT|11F0##@##EIE#@@@@@@@@@@@@@@#=~`-.;!!__1I0##E=*!!1!!!!!=\1|FE#0####@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@~-F@@@@1                                              
//                                                          #@@@@@@#       `@@@@###EIIT1|##@@###@@@@@@@@@@@#E*!_~- -.'~_=\!|I###I=*+!!!_!!!\++1|TE00####@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@- F@@@@#                                              
//                                                          1@@@@@@-        #@@@@####EE||E0#@@@@@@@@@@@#|!~~':``',,'_\1+1E0###0F1!!!_=+11\!!\=1=1TIE###@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#: #@@@@E                                              
//                                                          #@@@@@@_        E@@@@@@@##0E1T0##@@@@@###0ETIT!_~~~~;!_!+1\F#####0F\!!!!!*!\11|=+!!*1|F0##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#@@@@@F                                              
//                                                         E@@@@@@@#        F@@@@@@@@##EIII0###@@@@#00EEEEEI|11/=\|1|F#@@@@@#I!!_______!!!_____/1|0##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@`                                              
//                                                        T@@@@@@@@@.     _#@@@@@@@@@@##0EEIE00#####@@@##E000IFFE0#@@@@@@@@#E1!_~_~;~~~~,:;~~__!1T#@@@@@@@@@@@@@@@@@@@@@@@@@###@@@@@@@@@@@@@@@@#@@@@@@@@@@@@@@@@@T                                              
//                                                       F@@@@@@@@@@T  ;#@@@@@@@@@@@@@@@##0E000#00###@@@@@@####@@@@@@@@@@@#F1\_____~;;~,,',~~~__!|#@@@@@@@@@@@@@@@@@@@@@@@@@F|0@@@@@@@@@@@@@#@@@@@@@@@@@@@@@@@@@@@@1                                            
//                                                     '0@@@@@#F@@@@@@@@@@@@@@@@@@@@@@@@@@########0##@@@@@@@@@@@@@@@@@@@@#F1___~~;;',''.:,:~;~_!|0@@@@@@@@@@@@@@@@#@@@@@@@@@@#\E#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@F~                                        
//                                                    :@@@@@@_  #@@@@@@@@@@@@@@@@@@@@@@@@@@@@######0###@@@@@@@@@@@@@@@@@0T1_,'`.----`.`,'''~;_!TE#@@@@@@@@@@@@@@@@@@@@@@@@@@@;-:I@@@@@@@@@@@@@@#@@@@@@@@@@@@@@@@@@@@@@@@|-                                      
//                                                   ~#@@@@@_   `@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#####00##@@@@@@@@@@@@@#E*!~'`..`-`.-`.:,,,~~~_=E#@@@@@@@@@@@@@@@@@@@#@@@@@@@@|`_:!@@@@@@0@@@@@@##@@@@@@@@@@@@@@@@@@@@@@@@@#~                                    
//                                                   \0@@@@_    ~@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#####000###@@@@@@@#0T1!_~;:.`'':`-:':';~;_!1F#@@@@@@@@@@@@@@@@@##|_#@@@@@@@#|IF|#E@@###@@@@@#|E@@@@@@@@@@@@@@@@@@@@@@@@@@@0`                                  
//                                                 :!#@@/     T@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#####00000####0I|!!!___~';~__;~''',:;_!!T1#@@@@@@@@@@@@@@@@@@I*+!~1@@@@@@@@#~*##E@E@#0@@@@##!0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0'                                
//                                                  `.      '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@####0I|T|EIT/____!*1_;~*|EIT!_~'~~_!/=T#@@@@@@@@@@@@@@@@@@@@01`,.T@@@@@@@@@#,*0E#@@@0@@@#___#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#!                              
//                                                       .1#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@###0I|*1|1!!_;;!!|IEE0###E|__~!!!|TE0#@@@@@@@@@@@@@@@@@@@@@#\-!!#@@@@@@@@@@@@@@@@@@@@@@I'',#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E-                          
//                                                    `|#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##EF|=!!!!!!\|TEE#@@@@#I=T1+/|EI#@@@@@@@@@@@@@@@@@@@@@@@@@|;. -#@@@@@@@@@@@@@@@@@@@@@@@1\!@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0+                        
//                                                `;E#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#0|1/!_!=TTE0EE0####FT10##00#@##@@@@@@@@@@@@@@@@@@@@@@@@1`.- 1@@@@@@@@@@@@@@@@@@@@@@@@E#1@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0;                    
//                                           `_T##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#0IT/!!_!=T|=/T/|##0E##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#~_'`!@@@@@@@@@@@@@@@@@@@@@@@@@@0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@F`                
//                                       _E#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##E|!=!=0TI1IEE#@###@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0;~``#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0_              
//                                  -~T#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#0ETE0######@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E='!@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#E!`          
//                               ,|#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#E,      
//                            'T#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#1    
//                         _0#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#:  
//                      !0#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##/
//                   !#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0E0##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//                :E@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##!T1E#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//                !#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#=F#!_!#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//           -E@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#@@#TEI#E;_#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//         ;#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##@@@@@##@#+;||IE##@####@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//       -0#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#@@####@E1#@@@@@@#####@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// 
//  
//
// 
//           Gm... (¯`v´¯)♥
//           WAGMI .•.¸.•´ 
//           ....¸.•´
//           ...(
//            ☻/
//           /▌
//           /\
// █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
// █░░╦─╦╔╗╦─╔╗╔╗╔╦╗╔╗░░█
// █░░║║║╠─║─║─║║║║║╠─░░█
// █░░╚╩╝╚╝╚╝╚╝╚╝╩─╩╚╝░░█
// █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ 
//
//
//
//T🤘E 🖇️T👽RT🤘P NFT
//Ugly Unicorns (UU)
//
//
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

// OpenZeppelin Contracts v4.4.0 (utils/cryptography/MerkleProof.sol)

pragma solidity  ^0.8.4;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

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

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

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

// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

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


pragma solidity ^0.8.0;

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128.
 *
 * Does not support burning tokens to address(0).
 */

 
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

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

    uint256 private _totalShares;
    uint256 private _totalReleased;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

contract ERC721A is
  Context,
  ERC165,
  IERC721,
  IERC721Metadata,
  IERC721Enumerable
{
  using Address for address;
  using Strings for uint256;

  struct TokenOwnership {
    address addr;
    uint64 startTimestamp;
  }

  struct AddressData {
    uint128 balance;
    uint128 numberMinted;
  }

  string public uriSuffix = ".json";

  // Token name
  string private _name;

  // Token symbol
  string private _symbol;

  uint256 private currentIndex = 1;

  uint256 internal immutable collectionSize;
  uint256 internal immutable maxBatchSize;

  // Mapping from token ID to ownership details
  // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
  mapping(uint256 => TokenOwnership) private _ownerships;

  // Mapping owner address to address data
  mapping(address => AddressData) private _addressData;

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

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

  /**
   * @dev
   * `maxBatchSize` refers to how much a minter can mint at a time.
   * `collectionSize_` refers to how many tokens are in the collection.
   */
  constructor(
    string memory name_, 
    string memory symbol_,
    uint256 maxBatchSize_,
    uint256 collectionSize_
  ) {
    require(
      collectionSize_ > 0,
      "ERC721A: collection must have a nonzero supply"
    );
    require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
    _name = name_;
    _symbol = symbol_;
    maxBatchSize = maxBatchSize_;
    collectionSize = collectionSize_;
  }

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

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

  /**
   * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
   * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first.
   * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
   */
  function tokenOfOwnerByIndex(address owner, uint256 index)
    public
    view
    override
    returns (uint256)
  {
    require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
    uint256 numMintedSoFar = totalSupply();
    uint256 tokenIdsIdx = 0;
    address currOwnershipAddr = address(0);
    for (uint256 i = 0; i < numMintedSoFar; i++) {
      TokenOwnership memory ownership = _ownerships[i];
      if (ownership.addr != address(0)) {
        currOwnershipAddr = ownership.addr;
      }
      if (currOwnershipAddr == owner) {
        if (tokenIdsIdx == index) {
          return i;
        }
        tokenIdsIdx++;
      }
    }
    revert("ERC721A: unable to get token of owner by index");
  }

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

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

  function _numberMinted(address owner) internal view returns (uint256) {
    require(
      owner != address(0),
      "ERC721A: number minted query for the zero address"
    );
    return uint256(_addressData[owner].numberMinted);
  }

  function ownershipOf(uint256 tokenId)
    internal
    view
    returns (TokenOwnership memory)
  {
    require(_exists(tokenId), "ERC721A: owner query for nonexistent token");

    uint256 lowestTokenToCheck;
    if (tokenId >= maxBatchSize) {
      lowestTokenToCheck = tokenId - maxBatchSize + 1;
    }

    for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
      TokenOwnership memory ownership = _ownerships[curr];
      if (ownership.addr != address(0)) {
        return ownership;
      }
    }

    revert("ERC721A: unable to determine the owner of token");
  }

  /**
   * @dev See {IERC721-ownerOf}.
   */
  function ownerOf(uint256 tokenId) public view override returns (address) {
    return ownershipOf(tokenId).addr;
  }

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

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

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

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

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

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

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

    _approve(to, tokenId, owner);
  }

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

    return _tokenApprovals[tokenId];
  }

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

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

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

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

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

  /**
   * @dev See {IERC721-safeTransferFrom}.
   */
  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId,
    bytes memory _data
  ) public override {
    _transfer(from, to, tokenId);
    require(
      _checkOnERC721Received(from, to, tokenId, _data),
      "ERC721A: transfer to non ERC721Receiver implementer"
    );
  }

  /**
   * @dev Returns whether `tokenId` exists.
   *
   * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
   *
   * Tokens start existing when they are minted (`_mint`),
   */
  function _exists(uint256 tokenId) internal view returns (bool) {
    return tokenId < currentIndex;
  }

  function _safeMint(address to, uint256 quantity) internal {
    _safeMint(to, quantity, "");
  }

  /**
   * @dev Mints `quantity` tokens and transfers them to `to`.
   *
   * Requirements:
   *
   * - there must be `quantity` tokens remaining unminted in the total collection.
   * - `to` cannot be the zero address.
   * - `quantity` cannot be larger than the max batch size.
   *
   * Emits a {Transfer} event.
   */
  function _safeMint(
    address to,
    uint256 quantity,
    bytes memory _data
  ) internal {
    uint256 startTokenId = currentIndex;
    require(to != address(0), "ERC721A: mint to the zero address");
    // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
    require(!_exists(startTokenId), "ERC721A: token already minted");
    require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");

    _beforeTokenTransfers(address(0), to, startTokenId, quantity);

    AddressData memory addressData = _addressData[to];
    _addressData[to] = AddressData(
      addressData.balance + uint128(quantity),
      addressData.numberMinted + uint128(quantity)
    );
    _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

    uint256 updatedIndex = startTokenId;

    for (uint256 i = 0; i < quantity; i++) {
      emit Transfer(address(0), to, updatedIndex);
      require(
        _checkOnERC721Received(address(0), to, updatedIndex, _data),
        "ERC721A: transfer to non ERC721Receiver implementer"
      );
      updatedIndex++;
    }

    currentIndex = updatedIndex;
    _afterTokenTransfers(address(0), to, startTokenId, quantity);
  }

  /**
   * @dev Transfers `tokenId` from `from` to `to`.
   *
   * Requirements:
   *
   * - `to` cannot be the zero address.
   * - `tokenId` token must be owned by `from`.
   *
   * Emits a {Transfer} event.
   */
  function _transfer(
    address from,
    address to,
    uint256 tokenId
  ) private {
    TokenOwnership memory prevOwnership = ownershipOf(tokenId);

    bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
      getApproved(tokenId) == _msgSender() ||
      isApprovedForAll(prevOwnership.addr, _msgSender()));

    require(
      isApprovedOrOwner,
      "ERC721A: transfer caller is not owner nor approved"
    );

    require(
      prevOwnership.addr == from,
      "ERC721A: transfer from incorrect owner"
    );
    require(to != address(0), "ERC721A: transfer to the zero address");

    _beforeTokenTransfers(from, to, tokenId, 1);

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

    _addressData[from].balance -= 1;
    _addressData[to].balance += 1;
    _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

    // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
    // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
    uint256 nextTokenId = tokenId + 1;
    if (_ownerships[nextTokenId].addr == address(0)) {
      if (_exists(nextTokenId)) {
        _ownerships[nextTokenId] = TokenOwnership(
          prevOwnership.addr,
          prevOwnership.startTimestamp
        );
      }
    }

    emit Transfer(from, to, tokenId);
    _afterTokenTransfers(from, to, tokenId, 1);
  }

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

  uint256 public nextOwnerToExplicitlySet = 0;

  /**
   * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
   */
  function _setOwnersExplicit(uint256 quantity) internal {
    uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
    require(quantity > 0, "quantity must be nonzero");
    uint256 endIndex = oldNextOwnerToSet + quantity - 1;
    if (endIndex > collectionSize - 1) {
      endIndex = collectionSize - 1;
    }
    // We know if the last one in the group exists, all in the group exist, due to serial ordering.
    require(_exists(endIndex), "not enough minted yet for this cleanup");
    for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
      if (_ownerships[i].addr == address(0)) {
        TokenOwnership memory ownership = ownershipOf(i);
        _ownerships[i] = TokenOwnership(
          ownership.addr,
          ownership.startTimestamp
        );
      }
    }
    nextOwnerToExplicitlySet = endIndex + 1;
  }

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

  /**
   * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
   *
   * startTokenId - the first token id to be transferred
   * quantity - the amount to be transferred
   *
   * Calling conditions:
   *
   * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
   * transferred to `to`.
   * - When `from` is zero, `tokenId` will be minted for `to`.
   */
  function _beforeTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}

  /**
   * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
   * minting.
   *
   * startTokenId - the first token id to be transferred
   * quantity - the amount to be transferred
   *
   * Calling conditions:
   *
   * - when `from` and `to` are both non-zero.
   * - `from` and `to` are never both zero.
   */
  function _afterTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}
}

// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol)

pragma solidity  ^0.8.4;

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

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

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

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

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

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

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

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

 // OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity  ^0.8.4;

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

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

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

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

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

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

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

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

// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

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

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

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

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

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

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

// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

pragma solidity  ^0.8.4;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

pragma solidity ^0.8.10;

interface StandardToken {
    function updateRewardOnMint(address _to, uint256 _amount) external;

    function updateReward(address _from, address _to) external;

    function getReward(address _to) external;

    function spend(address _from, uint256 _amount) external;
}

pragma solidity ^0.8.10;

contract UGLYUNICORNS is ERC721A, PaymentSplitter, Ownable, ReentrancyGuard {
    //setup
    using SafeMath for uint256;
    using Address for address;
    using MerkleProof for bytes32[];
    using Strings for uint256;
    using Counters for Counters.Counter;
    Counters.Counter private _tokenSupply;

    event SetRoyaltyInfo(address royaltyRecipient, uint256 royaltyAmountNumerator);

    //public properties
    uint256 public MAX_TOKENS = 22222;
    uint256 private constant MAX_PER_MINT = 1222; // honorary member - initial airdrop cap
    uint256 public constant RESERVED_SUPPLY = 222;
    uint256 public price = 0.2 ether;
    uint256 public maxPerWallet = 61; // honorary member - initial airdrop cap
    uint256 public constant ROYALTY_AMOUNT_DENOMINATOR = 1e18;
    bytes4 private constant INTERFACE_ID_ERC2981 = 0x2a55205a;

    StandardToken public standardToken;

     /// @notice The recipient of ERC-2981 royalties.
    address public _royaltyRecipient;

    /// @notice The royalty rate for ERC-2981 royalties, as a fraction of ROYALTY_AMOUNT_DENOMINATOR.
    uint256 public _royaltyAmountNumerator;

    bool public mintEnabled;
    bool public allowListMintEnabled;

    mapping (address => uint256) public _minted;
    mapping(address => uint256) public allowListMintCount;

    bytes32 public merkleRoot;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

//private properties

//gratitude tree
address private founderWallet = 0xa4Cd575392CaB84a804cdcef3C3fDcE134B451ed; //kd
address private member1 = 0xf890146713FfAF432fF070bB9F2749005052B318; //midnight
address private member2 = 0xFFc31d0726eDe046D1356FceaCfACffaFA6BF7E1; //aaron
address private member3 = 0x9a0f0a228CC558224D0a9Cb3B92e3fF795080553; //milan
address private member4 = 0x6Ce9F49239E8adAf5BDa1154262A3A054FAD9DB3; //terrell
address private member5 = 0x1324427E278bC9fC462AeA1D7aF289c3580Be609; //rozwell
address private member6 = 0x7d44B5BFcD927Fa96a75003285aEFba1e0293295; //gamo
address private member7 = 0x87772fF7C65B5c93Be52e3504670c6407271F829; //dasher
address private member8 = 0x16950B325d69286795DC77De0e357387EDB3fCDD; //niah
address private member9 = 0x43eed5B175de78Fc9cF6372B10D4b96d0a4516D6; //sati
address private member10 = 0xD4D721aCCf818F611F23e4b0A332204325A2df1A; //bushra
address private member11 = 0x864dEBda1dDF1a9E565a8CEc92e2f6f383Ac2c42; //waheed
address private member12 = 0xB59CFfbd4De4A6eF831D93162633dcC909F89D88; //grotke
address private member13 = 0x8A518f0741ACB6D91767Cae892fef6268683023B; //cliffballin
address private member14 = 0xfD22004806A6846EA67ad883356be810F0428793; //6529
address private member15 = 0xA4A8d44646e2F4C4a74b892303A13c85fb876338; //dezb  
address private member16 = 0x1cBb87BB9a4Dd0316189EEde2277a58590dc124A; //bigdog 
address private member17 = 0xCF74E42266dE87Aa1A3DFe1E1C5f46db0Ac752B2; //gmoney 
address private member18 = 0xf3f1984383A3fBb66898B846dC23602c04A9e56f; //guru
address private member19 = 0x0678a9F258855ca974e2e0A7f5Cb1Be98486215D; //19keys  
address private member20 = 0x8c31696dE04076ed01Ba6A61bf553FDEC84e22A6; //jaime  
address private member21 = 0x6eF2376fA6e12Dabb3a3ED0Fb44E4ff29847Af68; //jdh 
address private member22 = 0x597c7a2a8a3aa0AcE889Ec4C7198a88e6403f61a; //bevlove 
address private member23 = 0x7A0ACc8C8927f33aDcd59591D596F813c952a644; //laylafromtexas 
address private member24 = 0xC322E8Ec33e9b0a34c7cD185C616087D9842ad50; //ldf   
address private member25 = 0xc86B12d850FdBBF3260a7BAAE862F85857aAdBBa; //lilbaby   
address private member26 = 0x1353E148b500E4B45FA8F8716D81eF5f3cf4B414; //lucasbean 
address private member27 = 0x293Ed38530005620e4B28600f196a97E1125dAAc; //markcuban
address private member28 = 0x54B174179Ae825Ed630Da40b625Bb3C883CD40ae; //naterivers 
address private member29 = 0x5f8b9B4541Ecef965424f1dB923806aAD626Add2; //niftish
address private member30 = 0x8c2b143b0276Bafd2613bB41D7058583Cf6706C7; //vonmiller 
address private member31 = 0x4dfdA666CcE4b0f26C49900Ded45f42F705398C7; //benah
address private member32 = 0x7Df89AA9e9665335b474b79a1640bCdabfb037af; //boredbecky
address private member33 = 0xA2232D8Fe1f848DaE59F7Bf90301B16C6d52381c; //digigal
address private member34 = 0x02aEB12821C2c18A61373B1931dE24b0c4f2e7f0; //paulj
address private member35 = 0xeB1c22baACAFac7836f20f684C946228401FF01C; //richerd
address private member36 = 0x9bc30460C09Cc0E284B03A73DAAD649e7686266B; //richerdintern
address private member37 = 0x0864224F3cC570AB909EBF619f7583EF4a50b826; //serena
address private member38 = 0xe0FA212aaFB8E4eD051767ffB755871C6Af9b819; //alexis
address private member39 = 0x3C6aEFF92b4B35C2e1b196B57d0f8FFB56884A17; //manofdominance
address private member40 = 0x3bEcf83939f34311b6bEe143197872d877501B11; //stephc
address private member41 = 0x049aE3487543DcD0d3CE5329D713e3a8E6AA1F20; //steveaoki
address private member42 = 0x63422Bc74f9E63E634936C561fc71aB711CB6E0c; //willybullish
address private member43 = 0x90a27636185791dA13e786A4A9DafCf2E2490F2e; //xiorcal
address private member44 = 0x87a8C74DFA32e09700369584F5dFAD1b5b653E2C; //marlonh
address private member45 = 0x333de39B80690a6db1626fB21471499C375b548c; //cameronJ
address private member46 = 0x79dd8Fab0661Da2Cd4131BB454bAb060576ce2ee; //chriscantino
address private member47 = 0xC12cf1b206162E481e9320A5090B8a14B24e45B3; //kryptokaliafrotech
address private member48 = 0x1ba6019fB018A800bc9a4Bdd46Baf36af0406cc4; //meta4 
address private member49 = 0xdCF0a934865B720EDdc6983EfC9b05351212Bf43; //izzya 
address private member50 = 0xaDadfA4213cB8BAaAd1ABE99C8A863a4d0a94cc5; //thaliburton
address private member51 = 0x906F8c3305ED677748A2B207D10Bf992bC5b327E; //tobiash 
address private member52 = 0x98AB144e1cC97C83FCA2413F0D41B737b8785E1f; //bigbag
address private member53 = 0x759C4eBeBE5071DB56C78B6c7bae53c15CB2F6D8; //ambervittoria
address private member54 = 0xbAF42448bCe7De9e50534259B9f0e487B224282e; //brandonHC
address private member55 = 0x02Ac4F265e76a93fE2DAef1Df57BFCaDae313aA6; //maxdoes
address private member56 = 0x6E9b3B781bed2e206232F8bAA4aA6F9C42b82728; //andrewwang 
address private member57 = 0x4b49b7f4b2Ba9471A4Af03BCeD9ec2Ef735c18b6; //ryano
address private member58 = 0x0b8F4C4E7626A91460dac057eB43e0de59d5b44F; //artchick
address private member59 = 0xCe90a7949bb78892F159F428D0dC23a8E3584d75; //Coz
address private member60 = 0xed2ab4948bA6A909a7751DEc4F34f303eB8c7236; //franklin
address private member61 = 0x6Cc435F69fbac8cCdDc8757E46A9D4376FDB16b5; //timpers
address private member62 = 0x172e6Ab1D36462e42EEDC57A8f2f95845C099EEE; //insight
address private member63 = 0xC629777F62401C96499135327992733648B97694; //stockz 
address private member64 = 0x21AF60AB6E58dB48c6A25Fe25a26d4Ac918b4160; //laricia
address private member65 = 0x5a19C6d9846db6E95A2bA8F523A91F2B62189341; //blackat
address private member66 = 0xE076E510D4Da2133207d26090C4FDf0961efE53d; //winksy
address private member67 = 0x7Bb4e62469Ed4AEB0fa39Bc46020D619945f8E84; //shiralazar
address private member68 = 0xe16dCE8e44b310953255FfEAa9086f1E3600e999; //vickij
address private member69 = 0x377EEAE6F82fC5775dd75c6d501F23e491Ea6de9; //majestique
address private member70 = 0x7B6f2f3032664691586AEDfeadBd60D6F5d88DA6; //jaimelyn
address private member71 = 0xDef5dce85966199F96a6dE42EcB492c73ACE9F7d; //britmorin
address private member72 = 0x0ad763cB4e063E69901451fD9cef7B5e6a00f114; //christinehall
address private member73 = 0xca455d49865424Ab6e41e0A9349c8115938eeFee; //bytesizebuddha
address private member74 = 0xd640C898B0902bD02f69dE0FE8d0bd560956DB76; //chrismaddern
address private member75 = 0x799E1Fe921d587D7C956e73E95fF6103DC3E7883; //justinv
address private member76 = 0x9D727911B54C455B0071A7B682FcF4Bc444B5596; //zachxbt
address private member77 = 0x355671Aa122887C1b349A84EE79805E22E62F4F9; //2pmflow
address private member78 = 0x1F5D295778796a8b9f29600A585Ab73D452AcB1c; //vectorized
address private member79 = 0xA515051eE58474a5C99bd8979118f4493B8fF92c; //locationtba
address private member80 = 0x6dacb7352B4eC1e2B979a05E3cF1F126AD641110; //cygaar
address private member81 = 0xbc9815E53cac298Dc4d8E02e594A59CfC8Af831A; //ishverduzco
address private member82 = 0x9ce9A83955bE9acA9D4B4DD14287fA507651921b; //nftaylor
address private member83 = 0x30905B34Ddd66C4BEC74a24B447c944A6f1c236F; //tmas
address private member84 = 0xff567d26a66a556AFE5b9183dB01370aa78d7BDa; //boredlucky
address private member85 = 0xea39c551834D07EE2EE87f1cEFF843c308e089AF; //dfarmer
address private member86 = 0x1a677d15b8f28c26ad3cF257518AC69cc1ab5178; //ffvv1211
address private member87 = 0x591F8a2deCC1c86cce0c7Bea22Fa921c2c72fb95; //vondoom
address private member88 = 0x9F390953BA31bb521A650Fa736B726d72Cdf2c41; //degentraland
address private member89 = 0x5012d68f846BEf12d8c8cE6aD3De311afC0706a5; //nftprincess
address private member90 = 0x0F0eAE91990140C560D4156DB4f00c854Dc8F09E; //vvd
address private member91 = 0x974CaA59e49682CdA0AD2bbe82983419A2ECC400; //milli
address private member92 = 0x1493258152D791F4FA8Bbb5Ede3619476F92f75A; //alexander42
address private member93 = 0x5990Cf218B31ea534ff3346725E34afA7dE247b6; //eyl

//minchyn fund. creator. team member.
    address[] private addressList = [
		0x6A18ebB2E2D48ff4CcC18E620F7F8465F4216C6D,
		0xa4Cd575392CaB84a804cdcef3C3fDcE134B451ed,
    0x4b49b7f4b2Ba9471A4Af03BCeD9ec2Ef735c18b6];  

  	uint256[] private shareList = [85, 12, 3];

    string private baseURI;

    // Modifiers

    modifier isNotPaused(bool _enabled) { 
        require(_enabled, "Mint paused");
        _;
    }
    
        constructor(string memory _newBaseURI) ERC721A("Ugly Unicorns", "Ugly", MAX_PER_MINT,MAX_TOKENS) PaymentSplitter(addressList, shareList) {
        baseURI = _newBaseURI;
        _safeMint(founderWallet, 10); 
        _safeMint(member1, 10); _safeMint(member2, 10); _safeMint(member3, 10); _safeMint(member4, 10); _safeMint(member5, 10); 
        _safeMint(member6, 10); _safeMint(member7, 10); _safeMint(member8, 10); _safeMint(member9, 10); _safeMint(member10, 10); 
        _safeMint(member11, 10); _safeMint(member12, 10); _safeMint(member13, 10); _safeMint(member14, 10); _safeMint(member15, 10); 
        _safeMint(member16, 10); _safeMint(member17, 10); _safeMint(member18, 10); _safeMint(member19, 19); _safeMint(member20, 10); 
        _safeMint(member21, 10); _safeMint(member22, 10); _safeMint(member23, 10); _safeMint(member24, 10); _safeMint(member25, 10); 
        _safeMint(member26, 10); _safeMint(member27, 10); _safeMint(member28, 10); _safeMint(member29, 10); _safeMint(member30, 10); 
        _safeMint(member31, 10); _safeMint(member32, 10); _safeMint(member33, 10); _safeMint(member34, 10); _safeMint(member35, 10); 
        _safeMint(member36, 10); _safeMint(member37, 10); _safeMint(member38, 10); _safeMint(member39, 10); _safeMint(member40, 10); 
        _safeMint(member41, 10); _safeMint(member42, 10); _safeMint(member43, 22); _safeMint(member44, 10); _safeMint(member45, 10); 
        _safeMint(member46, 10); _safeMint(member47, 10); _safeMint(member48, 10); _safeMint(member49, 10); _safeMint(member50, 10); 
        _safeMint(member51, 10); _safeMint(member52, 10); _safeMint(member53, 10); _safeMint(member54, 10); _safeMint(member55, 10); 
        _safeMint(member56, 10); _safeMint(member57, 10); _safeMint(member58, 10); _safeMint(member59, 10); _safeMint(member60, 61); 
        _safeMint(member61, 10); _safeMint(member62, 10); _safeMint(member63, 10); _safeMint(member64, 10); _safeMint(member65, 10);
        _safeMint(member66, 10); _safeMint(member67, 10); _safeMint(member68, 10); _safeMint(member69, 10); _safeMint(member70, 10); 
        _safeMint(member71, 10); _safeMint(member72, 10); _safeMint(member73, 10); _safeMint(member74, 10); _safeMint(member75, 10); 
        _safeMint(member76, 10); _safeMint(member77, 10); _safeMint(member78, 10); _safeMint(member79, 10); _safeMint(member80, 10); 
        _safeMint(member81, 10); _safeMint(member82, 10); _safeMint(member83, 10); _safeMint(member84, 10); _safeMint(member85, 10); 
        _safeMint(member86, 10); _safeMint(member87, 10); _safeMint(member88, 10); _safeMint(member89, 10); _safeMint(member90, 10); 
        _safeMint(member91, 10); _safeMint(member92, 10); _safeMint(member93, 10);
        
    }


    // Functions
    //
    // gmgmgmgm gmgmgmgmgm
    // gm    gm gm  gm  gm
    // gm    gm gm  gm  gm
    // gmgmgmgm gm  gm  gm
    //       gm
    // gmgmgmgm
    //
    //
    // Function requires a Merkle proof and will only work if called from the minting site.
    // Allows the allowList minter to come back and mint again if they mint under 3 max mints in the first transaction(s).
    function allowListMint(bytes32[] calldata _merkleProof, uint256 tokens) external payable isNotPaused(allowListMintEnabled) {
        require((tokens > 0 && tokens < 3), "Wrong amount");
        require(totalSupply() + tokens < 22_223, 'Exceeds max supply');
        require(allowListMintCount[msg.sender] + tokens < 3, "Can only mint 2");
        require(price * tokens == msg.value, "Wrong ETH amount");

        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), 'Not on the list');

        allowListMintCount[msg.sender] = allowListMintCount[msg.sender] + tokens;

        _safeMint(_msgSender(), tokens);
        standardToken.updateRewardOnMint(msg.sender, tokens);
    }

    // Public mint functions

    /**
     * @dev Gm! This is the public minting function.
     */
    function mint(uint256 tokens) external payable isNotPaused(mintEnabled) {
        require(tokens <= MAX_PER_MINT, " UU: Cannot purchase this many tokens in a transaction");
        require(_minted[_msgSender()] + tokens <= maxPerWallet, "Incorrect amount!");
        require(totalSupply() + tokens <= MAX_TOKENS, " UU: Minting would exceed max supply");
        require(tokens > 0, " UU: Must mint at least one token");
        require(price * tokens == msg.value, " UU: ETH amount is incorrect");

        _safeMint(_msgSender(), tokens);
        standardToken.updateRewardOnMint(msg.sender, tokens);
            
    }

    // Allows the team to mint tokens to a destination address
    function promoMint(address _to, uint256 tokens) external onlyOwner {
        require(tokens > 0, "Mint 1");
        require(totalSupply() + tokens < 22_222, 'Exceeds max supply');
        _safeMint(_to, tokens);
        standardToken.updateRewardOnMint(address(0), tokens);
    }

    //reserved mint function
    function mintReservedTokens(address _to, uint256 tokens) external onlyOwner {
        require(
            totalSupply() + tokens <= RESERVED_SUPPLY,
            "Mint would exceed reserved supply"
        );

        _safeMint(_to, tokens);
        standardToken.updateRewardOnMint(address(0), tokens);
    }

    function setAllowListMintEnabled(bool _val) external onlyOwner {
        allowListMintEnabled = _val;
    }

    function setMintEnabled(bool _val) external onlyOwner {
        mintEnabled = _val;
    }

    // Ownable Functions

    function setBaseURI(string memory _newBaseURI) external onlyOwner {
        baseURI = _newBaseURI;
    }

    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

    function setMerkleRoot(bytes32 _root) external onlyOwner {
        merkleRoot = _root;
    }
    
    function setMaxPerWallet(uint256 max) external onlyOwner {
        maxPerWallet = max;
    }

    function setToken(address _contract) external onlyOwner {
        standardToken = StandardToken(_contract);
    }

     /**
     * @dev WAGMI! Claim your rewards here.
     */
    function claimTokens() external {
        standardToken.updateReward(msg.sender, address(0));
        standardToken.getReward(msg.sender);
    }

    function spendTokens(uint256 _amount) external {
        standardToken.spend(msg.sender, _amount);
    }

    function mintedTotalOf(address _owner) public view returns (uint256) {
        return _numberMinted(_owner);
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 tokenId,
        uint256 quantity
    ) internal virtual override {
        super._beforeTokenTransfers(from, to, tokenId, quantity);
        if (from != address(0)) {
            standardToken.updateReward(from, to);
        }
    }

    function decreaseMAX_TOKENS(uint256 newMAX_TOKENS) external onlyOwner {
		require(newMAX_TOKENS < MAX_TOKENS, "decrease only");
		MAX_TOKENS = newMAX_TOKENS;
	}

    function setRoyaltyInfo(address royaltyRecipient, uint256 royaltyAmountNumerator) external onlyOwner {
        _royaltyRecipient = royaltyRecipient;
        _royaltyAmountNumerator = royaltyAmountNumerator;
        emit SetRoyaltyInfo(royaltyRecipient, royaltyAmountNumerator);
    }

    /**
     * @notice Implements ERC-2981 royalty info interface.
     */
    function royaltyInfo(uint256 /* tokenId */, uint256 salePrice) external view returns (address, uint256) {
        return (_royaltyRecipient, salePrice * _royaltyAmountNumerator / ROYALTY_AMOUNT_DENOMINATOR);
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return (
            interfaceId == INTERFACE_ID_ERC2981 ||
            super.supportsInterface(interfaceId)
        );
    }

    // Important: Set new price in wei (i.e. 10000000000000000 for 0.1 ETH)
    function setPrice(uint256 _newPrice) external onlyOwner {
        price = _newPrice;
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.