Contract 0x1111111254eeb25477b68fb85ed929f73a960582 8

Contract Overview

Balance:
1 wei

AVAX Value:
Less Than $0.01 (@ $12.79/AVAX)

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x8dad71b8030b1bdd678366dbce45fb0ca647ed6179fbeb3aa2f1acd682c60dd1Swap230235192022-11-30 6:26:1314 secs ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.012792187537.500000002
0xf38af20f37794a5596f51dd4495556c992cd1084244ec6714f56cd761dace611Swap230233902022-11-30 6:21:474 mins ago0xcd5e266ded50eb872f86cf9dbf1f2cd58cf8ac69 IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.00552510929
0xd9623c839a80f67f034fd4d284d83372d50b418498dab7dac159029c6d01558aSwap230233252022-11-30 6:19:277 mins ago0xbae6f47ec72aa3c8b09f442b35f981e587796666 IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.014286525 25.000000001
0x3384fe348c98b4df2d58f54efa7a5d3a9a6332847bccaa1763d3bf855ccd40d3Swap230232592022-11-30 6:17:109 mins ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.011683762537.500000002
0xbdf5431eee1d064e0f1077c6cf5ab11d56e823d063c3cb975ffa4fa6f7a41a7bSwap230232422022-11-30 6:16:369 mins ago0xce26c35d1acb6ac5988c07a70e0eca872f2f2d93 IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.00574515 25.000000001
0x228754e2ef9016d0ce6b416f3eaddb04db426d3126fa8a73e75339f54a14449eSwap230231872022-11-30 6:14:4311 mins ago0xcd5e266ded50eb872f86cf9dbf1f2cd58cf8ac69 IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.00442313829
0xcd5fdbd72aa49b84438240fae6bef393d001cf9bb7c2505eedae5943c55b4355Swap230231382022-11-30 6:13:0413 mins ago0xcd5e266ded50eb872f86cf9dbf1f2cd58cf8ac69 IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.00491903829
0x1f790c7e86d9ece453ea380a666af75c7752cea7a865c83755d24df466007c37Swap230229702022-11-30 6:07:2519 mins ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.012596887537.500000002
0xfd9600f2d6b069cdc2db968e3de39141be20fac63ab5c8d0f54707229400c241Swap230229642022-11-30 6:07:1419 mins ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.01333522537.500000002
0x92d4603ecef5e9c75abead9ec240dd88af189c06d517098684ede8d81579e128Swap230228822022-11-30 6:04:2522 mins ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.006500062537.500000002
0xebe950b9903740d3f9e56762597ccee6d33891f9b4f5e4f905e0323ecc0f2d24Swap230228362022-11-30 6:02:4723 mins ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.0150148537.500000002
0xec88e387e2a3dba7f852376d60803f3cbf6a16d3895838284ae3412856b6b9e9Swap230228272022-11-30 6:02:3023 mins ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.006233062537.500000002
0x27e9cb3cc270b59fb20daad1d4664fb166b82401f1ff24e0f0fb7bd5329ec73eSwap230228102022-11-30 6:01:5624 mins ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.012817237.500000002
0xbc99af95d684a20f79fa12efbdcbdb51cdb571017b7ed1f625e8c9b86e404904Swap230227502022-11-30 5:59:5426 mins ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.00811072537.500000002
0x7cdb6090113b8c73583cb00050c80ca5c47e7ddda05da358d9f3d2dc474d949aSwap230227292022-11-30 5:59:1227 mins ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.007179937.500000002
0xae7df03b5d530776fd0dd1c04c27d1780bd6ca8b4791de465463e726def45b5dSwap230227142022-11-30 5:58:4127 mins ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.01282912537.500000002
0x459a4d7df078d0a558a0f552abbd9a904f9a6b44879ce9f78be77accade129faSwap230226902022-11-30 5:57:4628 mins ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.015714262537.500000002
0x9c06adb1ace761f38bbbc391eba9a5c18e8b49d6d2322fc97fe5ac519f238fadSwap230226602022-11-30 5:56:4729 mins ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.00721252537.500000002
0x492ac7a2deb0160a90c05428cd1bee5e4daf749506bb1d641014d108e04f38b7Swap230226352022-11-30 5:55:5230 mins ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.0067429537.500000002
0x5b1016b0af505ec816ed6ef27a818c952ab2b80a3c515425b1c84017b20283e2Swap230226112022-11-30 5:55:0431 mins ago0x81466e645f77e5f913c52ddc600d5bd590ed59f8 IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.0042750427.5
0xa2eed995cbe3e2ddd5e335bbd1b1581031d59828ebf38e5a2340ac9c94268897Swap230226042022-11-30 5:54:4831 mins ago0x846a0f39ad86480014607598bfafcf89ff090bb3 IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.010046349 27
0x5174b73120ba86abe58b50818011d61868e77c923f2614f8d013c4e8724a2aceSwap230225832022-11-30 5:54:0632 mins ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.0132748537.500000002
0x7dea5b4c5dba8900a31a004fc5eab532dbbb466977f9e74d2536dc372ee6f8d5Swap230225792022-11-30 5:53:5832 mins ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.00460762537.500000002
0x6f1f83d665e9175d62598d34259156202be09122cc22f6f483bfe74a12e1f716Swap230225162022-11-30 5:51:5134 mins ago0x5a4069c86f49d2454cf4ea9cda5d3bcb0f340c4b IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.008830237.500000002
0x22aab0486f86b75c94ecf93d6997ad54d595d9b4df6c313fed1b72fc8557552bSwap230224752022-11-30 5:50:2835 mins ago0x846a0f39ad86480014607598bfafcf89ff090bb3 IN  0x1111111254eeb25477b68fb85ed929f73a9605820 AVAX0.008779428 27
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x5b1016b0af505ec816ed6ef27a818c952ab2b80a3c515425b1c84017b20283e2230226112022-11-30 5:55:0431 mins ago 0x1111111254eeb25477b68fb85ed929f73a9605820x81466e645f77e5f913c52ddc600d5bd590ed59f80.977909998660788232 AVAX
0x5b1016b0af505ec816ed6ef27a818c952ab2b80a3c515425b1c84017b20283e2230226112022-11-30 5:55:0431 mins ago 0xd41b24bba51fac0e4827b6f94c0d6ddeb183cd64 0x1111111254eeb25477b68fb85ed929f73a9605820.977909998660788232 AVAX
0x25aee0051914b215361b8cf83c6ec4aebdd2bc51664777821f511200fedeb210230216892022-11-30 5:23:431 hr 2 mins ago 0x1111111254eeb25477b68fb85ed929f73a9605820xc0af16725bd379f2de5fe860ea2943b82e89121f0.780383570214255062 AVAX
0x25aee0051914b215361b8cf83c6ec4aebdd2bc51664777821f511200fedeb210230216892022-11-30 5:23:431 hr 2 mins ago 0xd41b24bba51fac0e4827b6f94c0d6ddeb183cd64 0x1111111254eeb25477b68fb85ed929f73a9605820.780383570214255062 AVAX
0x819e7acaec4e14ededb9f1ee6a35ab2bb4c9f272a7c8084ccbfbfe891026b3b6230212932022-11-30 5:10:071 hr 16 mins ago 0x1111111254eeb25477b68fb85ed929f73a9605820x88f859db067c45b114897db6920f3e4a61a5ca6619.540715055195376204 AVAX
0x819e7acaec4e14ededb9f1ee6a35ab2bb4c9f272a7c8084ccbfbfe891026b3b6230212932022-11-30 5:10:071 hr 16 mins ago 0xd41b24bba51fac0e4827b6f94c0d6ddeb183cd64 0x1111111254eeb25477b68fb85ed929f73a96058219.540715055195376204 AVAX
0x886e3c345d1d5b796b9198d696c0b8416815109bd746bced01acab42adf601a7230193262022-11-30 4:02:442 hrs 23 mins ago 0x1111111254eeb25477b68fb85ed929f73a9605820x025ee90fd50b992ffc4c5344e30f3f81a6b2325249.515648310751814294 AVAX
0x886e3c345d1d5b796b9198d696c0b8416815109bd746bced01acab42adf601a7230193262022-11-30 4:02:442 hrs 23 mins ago 0xd41b24bba51fac0e4827b6f94c0d6ddeb183cd64 0x1111111254eeb25477b68fb85ed929f73a96058249.515648310751814294 AVAX
0x38155f9cbc384d4619189632a7641c46267d23f61eda1c371d224b4387f0675d230185542022-11-30 3:36:562 hrs 49 mins ago 0x1111111254eeb25477b68fb85ed929f73a960582 0xd41b24bba51fac0e4827b6f94c0d6ddeb183cd6498 AVAX
0xbfdc224d6a991a469e39f4caae7ae7e99e133ce56700ef752a609251222ed8f4230184402022-11-30 3:32:582 hrs 53 mins ago 0x1111111254eeb25477b68fb85ed929f73a960582 0xd41b24bba51fac0e4827b6f94c0d6ddeb183cd6420.5 AVAX
0xbfdc224d6a991a469e39f4caae7ae7e99e133ce56700ef752a609251222ed8f4230184402022-11-30 3:32:582 hrs 53 mins ago 0x333be852042f435431967664e09315cc63593333 0x1111111254eeb25477b68fb85ed929f73a96058220.5 AVAX
0x9000fd689f3b1cc8b981651ad24e4eb3beb62337142ad083d3594c86cebd35d9230184362022-11-30 3:32:502 hrs 53 mins ago 0x1111111254eeb25477b68fb85ed929f73a960582 0xd41b24bba51fac0e4827b6f94c0d6ddeb183cd6467.03 AVAX
0xd99f7409d0bac538b2cc95446ebefbea3b27e156d621a9b3ccea7512686c67e8230179962022-11-30 3:17:403 hrs 8 mins ago 0xd41b24bba51fac0e4827b6f94c0d6ddeb183cd64 0x1111111254eeb25477b68fb85ed929f73a96058266.843884040049208384 AVAX
0x9b8128cd458517df9bf6ee3998a097600484d74a9098422cbeed2aaebff1c2e2230179922022-11-30 3:17:323 hrs 8 mins ago 0xd41b24bba51fac0e4827b6f94c0d6ddeb183cd64 0x1111111254eeb25477b68fb85ed929f73a96058267.539402606115930245 AVAX
0x3526b1e2680838adb6b5bc8e3465e85a41a25d4955ba39c5c7e6f931973b80e4230178082022-11-30 3:11:143 hrs 15 mins ago 0x1111111254eeb25477b68fb85ed929f73a9605820x0f10a3ae38d1f6122448f27c0db598c1d263932866.91403871817906946 AVAX
0x3526b1e2680838adb6b5bc8e3465e85a41a25d4955ba39c5c7e6f931973b80e4230178082022-11-30 3:11:143 hrs 15 mins ago 0xd41b24bba51fac0e4827b6f94c0d6ddeb183cd64 0x1111111254eeb25477b68fb85ed929f73a96058266.91403871817906946 AVAX
0x2331b045a13238cca0b48212c4bb10bdb00fdcb76afad3421c749370626cabef230169192022-11-30 2:41:003 hrs 45 mins ago 0x1111111254eeb25477b68fb85ed929f73a9605820x1118869ea46bd1673e0ac7261e85a2bcfb6764cd1.537758623208969984 AVAX
0x2331b045a13238cca0b48212c4bb10bdb00fdcb76afad3421c749370626cabef230169192022-11-30 2:41:003 hrs 45 mins ago 0xd41b24bba51fac0e4827b6f94c0d6ddeb183cd64 0x1111111254eeb25477b68fb85ed929f73a9605821.537758623208969984 AVAX
0x4e89c8d8b801fb6e8665af469d34f279b1a4420183d97e88d44da64e04288d47230160832022-11-30 2:12:354 hrs 13 mins ago 0x1111111254eeb25477b68fb85ed929f73a9605820x433fffd01f1e95d647efa151d91222270c9b3d6a1.863502107610110294 AVAX
0x4e89c8d8b801fb6e8665af469d34f279b1a4420183d97e88d44da64e04288d47230160832022-11-30 2:12:354 hrs 13 mins ago 0xd41b24bba51fac0e4827b6f94c0d6ddeb183cd64 0x1111111254eeb25477b68fb85ed929f73a9605821.863502107610110294 AVAX
0xcfb3657d62a40e685cb711ec806fd0e70b189066ea26b47d1c8cb8f496136d8a230160032022-11-30 2:09:544 hrs 16 mins ago 0x1111111254eeb25477b68fb85ed929f73a9605820xf75eca09e6f9684900c28a6969e85b28234b42ad0.015415069214194648 AVAX
0xcfb3657d62a40e685cb711ec806fd0e70b189066ea26b47d1c8cb8f496136d8a230160032022-11-30 2:09:544 hrs 16 mins ago 0xd41b24bba51fac0e4827b6f94c0d6ddeb183cd64 0x1111111254eeb25477b68fb85ed929f73a9605820.015415069214194648 AVAX
0x99773e9cb71e1c3398cd74f960d5777fc5ec74a09227caa6d78a227f4d0508a7230159702022-11-30 2:08:484 hrs 17 mins ago 0x1111111254eeb25477b68fb85ed929f73a9605820xf75eca09e6f9684900c28a6969e85b28234b42ad0.178063427354652175 AVAX
0x99773e9cb71e1c3398cd74f960d5777fc5ec74a09227caa6d78a227f4d0508a7230159702022-11-30 2:08:484 hrs 17 mins ago 0xd41b24bba51fac0e4827b6f94c0d6ddeb183cd64 0x1111111254eeb25477b68fb85ed929f73a9605820.178063427354652175 AVAX
0x921929bb263a588f2652ea7494b765590248a20a01315eb43e44dcc048f953df230150412022-11-30 1:36:564 hrs 49 mins ago 0x1111111254eeb25477b68fb85ed929f73a9605820xd374090de76627655b35f6b48cfd184f2a4bd9e82.593889357017938321 AVAX
[ Download CSV Export 
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
AggregationRouterV5

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at snowtrace.io on 2022-11-04
*/

/*
                                                           ,▄▓▓██▌   ,╓▄▄▓▓▓▓▓▓▓▓▄▄▄,,
                                                        ,▓██▓███▓▄▓███▓╬╬╬╬╬╬╬╬╬╬╬╬╬▓███▓▄,
                                                  ▄█   ▓██╬╣███████╬▓▀╬╬▓▓▓████████████▓█████▄,
                                                 ▓██▌ ▓██╬╣██████╬▓▌  ██████████████████████▌╙╙▀ⁿ
                                                ▐████████╬▓████▓▓█╨ ▄ ╟█████████▓▓╬╬╬╬╬▓▓█████▓▄
                                  └▀▓▓▄╓        ╟█▓╣█████▓██████▀ ╓█▌ ███████▓▓▓▓▓╬╬╬╬╬╬╬╬╬╬╬╬▓██▓▄
                                     └▀████▓▄╥  ▐██╬╬██████████╙ Æ▀─ ▓███▀╚╠╬╩▀▀███████▓▓╬╬╬╬╬╬╬╬╬██▄
                                        └▀██▓▀▀█████▓╬▓██████▀     ▄█████▒╠"      └╙▓██████▓╬╬╬╬╬╬╬╬██▄
                                           └▀██▄,└╙▀▀████▌└╙    ^"▀╙╙╙"╙██      @▄    ╙▀███████╬╬╬╬╬╬╬██µ
                                              └▀██▓▄, ██▌       ╒       ╙█▓     ]▓█▓╔    ▀███████▓╬╬╬╬╬▓█▌
                                                  ▀█████       ▓         ╟█▌    ]╠██▓░▒╓   ▀████████╬╬╬╬╣█▌
                                                  ▐████      ╓█▀█▌      ,██▌    ╚Å███▓▒▒╠╓  ╙█████████╬╬╬╣█▌
                                                  └████     ▓█░░▓█      ▀▀▀    φ▒╫████▒▒▒▒╠╓  █████████▓╬╬▓█µ
                                                   ╘███µ ▌▄█▓▄▓▀`     ,▀    ,╔╠░▓██████▌╠▒▒▒φ  ██████████╬╬██
                                                   ▐████µ╙▓▀`     ,▀╙,╔╔φφφ╠░▄▓███████▌░▓╙▒▒▒╠ └██╬███████╬▓█⌐
                                                   ╫██ ▓▌         ▌φ▒▒░▓██████████████▌▒░▓╚▒▒▒╠ ▓██╬▓██████╣█▌
                                                   ██▌           ▌╔▒▒▄████████████████▒▒▒░▌╠▒▒▒≥▐██▓╬╬███████▌
                                                   ██▌      ,╓φ╠▓«▒▒▓████▀  ▀█████████▌▒▒▒╟░▒▒▒▒▐███╬╬╣████▓█▌
                                                  ▐██      ╠▒▄▓▓███▓████└     ▀████████▌▒▒░▌╚▒▒▒▐███▓╬╬████ ╙▌
                                                  ███  )  ╠▒░░░▒░╬████▀        └████████░▒▒░╬∩▒▒▓████╬╬╣███
                                                 ▓██    ╠╠▒▒▐█▀▀▌`░╫██           ███████▒▒▒▒░▒▒½█████╬╬╣███
                                                ███ ,█▄ ╠▒▒▒╫▌,▄▀,▒╫██           ╟██████▒▒▒░╣⌠▒▓█████╬╬╣██▌
                                               ╘██µ ██` ╠▒▒░██╬φ╠▄▓██`            ██████░░▌φ╠░▓█████▓╬╬▓██
                                                ╟██  .φ╠▒░▄█▀░░▄██▀└              █████▌▒╣φ▒░▓██████╬╬╣██
                                                 ▀██▄▄▄╓▄███████▀                ▐█████░▓φ▒▄███████▓╬╣██
                                                   ╙▀▀▀██▀└                      ████▓▄▀φ▄▓████████╬▓█▀
                                                                                ▓███╬╩╔╣██████████▓██└
                                                                              ╓████▀▄▓████████▀████▀
                                                                            ,▓███████████████─]██╙
                                                                         ,▄▓██████████████▀└  ╙
                                                                    ,╓▄▓███████████████▀╙
                                                             `"▀▀▀████████▀▀▀▀`▄███▀▀└
                                                                              └└



                    11\   11\                     11\             11\   11\            11\                                       11\
                  1111 |  \__|                    11 |            111\  11 |           11 |                                      11 |
                  \_11 |  11\ 1111111\   1111111\ 1111111\        1111\ 11 | 111111\ 111111\   11\  11\  11\  111111\   111111\  11 |  11\
                    11 |  11 |11  __11\ 11  _____|11  __11\       11 11\11 |11  __11\\_11  _|  11 | 11 | 11 |11  __11\ 11  __11\ 11 | 11  |
                    11 |  11 |11 |  11 |11 /      11 |  11 |      11 \1111 |11111111 | 11 |    11 | 11 | 11 |11 /  11 |11 |  \__|111111  /
                    11 |  11 |11 |  11 |11 |      11 |  11 |      11 |\111 |11   ____| 11 |11\ 11 | 11 | 11 |11 |  11 |11 |      11  _11<
                  111111\ 11 |11 |  11 |\1111111\ 11 |  11 |      11 | \11 |\1111111\  \1111  |\11111\1111  |\111111  |11 |      11 | \11\
                  \______|\__|\__|  \__| \_______|\__|  \__|      \__|  \__| \_______|  \____/  \_____\____/  \______/ \__|      \__|  \__|



                               111111\                                                               11\     11\
                              11  __11\                                                              11 |    \__|
                              11 /  11 | 111111\   111111\   111111\   111111\   111111\   111111\ 111111\   11\  111111\  1111111\
                              11111111 |11  __11\ 11  __11\ 11  __11\ 11  __11\ 11  __11\  \____11\\_11  _|  11 |11  __11\ 11  __11\
                              11  __11 |11 /  11 |11 /  11 |11 |  \__|11111111 |11 /  11 | 1111111 | 11 |    11 |11 /  11 |11 |  11 |
                              11 |  11 |11 |  11 |11 |  11 |11 |      11   ____|11 |  11 |11  __11 | 11 |11\ 11 |11 |  11 |11 |  11 |
                              11 |  11 |\1111111 |\1111111 |11 |      \1111111\ \1111111 |\1111111 | \1111  |11 |\111111  |11 |  11 |
                              \__|  \__| \____11 | \____11 |\__|       \_______| \____11 | \_______|  \____/ \__| \______/ \__|  \__|
                                        11\   11 |11\   11 |                    11\   11 |
                                        \111111  |\111111  |                    \111111  |
                                         \______/  \______/                      \______/
                                                1111111\                        11\
                                                11  __11\                       11 |
                                                11 |  11 | 111111\  11\   11\ 111111\    111111\   111111\
                                                1111111  |11  __11\ 11 |  11 |\_11  _|  11  __11\ 11  __11\
                                                11  __11< 11 /  11 |11 |  11 |  11 |    11111111 |11 |  \__|
                                                11 |  11 |11 |  11 |11 |  11 |  11 |11\ 11   ____|11 |
                                                11 |  11 |\111111  |\111111  |  \1111  |\1111111\ 11 |
                                                \__|  \__| \______/  \______/    \____/  \_______|\__|
*/

// SPDX-License-Identifier: MIT

// File contracts/interfaces/IClipperExchangeInterface.sol

pragma solidity 0.8.17;

/// @title Clipper interface subset used in swaps
interface IClipperExchangeInterface {
    struct Signature {
        uint8 v;
        bytes32 r;
        bytes32 s;
    }

    function sellEthForToken(address outputToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, address destinationAddress, Signature calldata theSignature, bytes calldata auxiliaryData) external payable;
    function sellTokenForEth(address inputToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, address destinationAddress, Signature calldata theSignature, bytes calldata auxiliaryData) external;
    function swap(address inputToken, address outputToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, address destinationAddress, Signature calldata theSignature, bytes calldata auxiliaryData) external;
}


// File contracts/helpers/RouterErrors.sol


pragma solidity 0.8.17;

library RouterErrors {
    error ReturnAmountIsNotEnough();
    error InvalidMsgValue();
    error ERC20TransferFailed();
}


// File @1inch/solidity-utils/contracts/[email protected]


pragma solidity ^0.8.0;

abstract contract EthReceiver {
    error EthDepositRejected();

    receive() external payable {
        _receive();
    }

    function _receive() internal virtual {
        // solhint-disable-next-line avoid-tx-origin
        if (msg.sender == tx.origin) revert EthDepositRejected();
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}


// File @1inch/solidity-utils/contracts/interfaces/[email protected]


pragma solidity ^0.8.0;

interface IWETH is IERC20 {
    function deposit() external payable;
    function withdraw(uint256 amount) external;
}


// File @1inch/solidity-utils/contracts/interfaces/[email protected]


pragma solidity ^0.8.0;


interface IDaiLikePermit {
    function permit(address holder, address spender, uint256 nonce, uint256 expiry, bool allowed, uint8 v, bytes32 r, bytes32 s) external;
}


// File @1inch/solidity-utils/contracts/libraries/[email protected]


pragma solidity ^0.8.0;

library RevertReasonForwarder {
    function reRevert() internal pure {
        // bubble up revert reason from latest external call
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            let ptr := mload(0x40)
            returndatacopy(ptr, 0, returndatasize())
            revert(ptr, returndatasize())
        }
    }
}


// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}


// File @1inch/solidity-utils/contracts/libraries/[email protected]


pragma solidity ^0.8.0;




library SafeERC20 {
    error SafeTransferFailed();
    error SafeTransferFromFailed();
    error ForceApproveFailed();
    error SafeIncreaseAllowanceFailed();
    error SafeDecreaseAllowanceFailed();
    error SafePermitBadLength();

    // Ensures method do not revert or return boolean `true`, admits call to non-smart-contract
    function safeTransferFrom(IERC20 token, address from, address to, uint256 amount) internal {
        bytes4 selector = token.transferFrom.selector;
        bool success;
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            let data := mload(0x40)

            mstore(data, selector)
            mstore(add(data, 0x04), from)
            mstore(add(data, 0x24), to)
            mstore(add(data, 0x44), amount)
            success := call(gas(), token, 0, data, 100, 0x0, 0x20)
            if success {
                switch returndatasize()
                case 0 { success := gt(extcodesize(token), 0) }
                default { success := and(gt(returndatasize(), 31), eq(mload(0), 1)) }
            }
        }
        if (!success) revert SafeTransferFromFailed();
    }

    // Ensures method do not revert or return boolean `true`, admits call to non-smart-contract
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        if (!_makeCall(token, token.transfer.selector, to, value)) {
            revert SafeTransferFailed();
        }
    }

    // If `approve(from, to, amount)` fails, try to `approve(from, to, 0)` before retry
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        if (!_makeCall(token, token.approve.selector, spender, value)) {
            if (!_makeCall(token, token.approve.selector, spender, 0) ||
                !_makeCall(token, token.approve.selector, spender, value))
            {
                revert ForceApproveFailed();
            }
        }
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 allowance = token.allowance(address(this), spender);
        if (value > type(uint256).max - allowance) revert SafeIncreaseAllowanceFailed();
        forceApprove(token, spender, allowance + value);
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 allowance = token.allowance(address(this), spender);
        if (value > allowance) revert SafeDecreaseAllowanceFailed();
        forceApprove(token, spender, allowance - value);
    }

    function safePermit(IERC20 token, bytes calldata permit) internal {
        bool success;
        if (permit.length == 32 * 7) {
            success = _makeCalldataCall(token, IERC20Permit.permit.selector, permit);
        } else if (permit.length == 32 * 8) {
            success = _makeCalldataCall(token, IDaiLikePermit.permit.selector, permit);
        } else {
            revert SafePermitBadLength();
        }
        if (!success) RevertReasonForwarder.reRevert();
    }

    function _makeCall(IERC20 token, bytes4 selector, address to, uint256 amount) private returns(bool success) {
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            let data := mload(0x40)

            mstore(data, selector)
            mstore(add(data, 0x04), to)
            mstore(add(data, 0x24), amount)
            success := call(gas(), token, 0, data, 0x44, 0x0, 0x20)
            if success {
                switch returndatasize()
                case 0 { success := gt(extcodesize(token), 0) }
                default { success := and(gt(returndatasize(), 31), eq(mload(0), 1)) }
            }
        }
    }

    function _makeCalldataCall(IERC20 token, bytes4 selector, bytes calldata args) private returns(bool success) {
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            let len := add(4, args.length)
            let data := mload(0x40)

            mstore(data, selector)
            calldatacopy(add(data, 0x04), args.offset, args.length)
            success := call(gas(), token, 0, data, len, 0x0, 0x20)
            if success {
                switch returndatasize()
                case 0 { success := gt(extcodesize(token), 0) }
                default { success := and(gt(returndatasize(), 31), eq(mload(0), 1)) }
            }
        }
    }
}


// File contracts/routers/ClipperRouter.sol


pragma solidity 0.8.17;






/// @title Clipper router that allows to use `ClipperExchangeInterface` for swaps
contract ClipperRouter is EthReceiver {
    using SafeERC20 for IERC20;

    uint256 private constant _SIGNATURE_S_MASK = 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
    uint256 private constant _SIGNATURE_V_SHIFT = 255;
    bytes6 private constant _INCH_TAG_WITH_LENGTH_PREFIX = "\x051INCH";
    IERC20 private constant _ETH = IERC20(address(0));
    IWETH private immutable _WETH;  // solhint-disable-line var-name-mixedcase

    constructor(IWETH weth) {
        _WETH = weth;
    }

    /// @notice Same as `clipperSwapTo` but calls permit first,
    /// allowing to approve token spending and make a swap in one transaction.
    /// @dev See tests for examples
    /// @param recipient Address that will receive swap funds
    /// @param srcToken Source token
    /// @param dstToken Destination token
    /// @param inputAmount Amount of source tokens to swap
    /// @param outputAmount Amount of destination tokens to receive
    /// @param goodUntil Timestamp until the swap will be valid
    /// @param r Clipper order signature (r part)
    /// @param vs Clipper order signature (vs part)
    /// @param permit Should contain valid permit that can be used in `IERC20Permit.permit` calls.
    /// @return returnAmount Amount of destination tokens received
    function clipperSwapToWithPermit(
        IClipperExchangeInterface clipperExchange,
        address payable recipient,
        IERC20 srcToken,
        IERC20 dstToken,
        uint256 inputAmount,
        uint256 outputAmount,
        uint256 goodUntil,
        bytes32 r,
        bytes32 vs,
        bytes calldata permit
    ) external returns(uint256 returnAmount) {
        srcToken.safePermit(permit);
        return clipperSwapTo(clipperExchange, recipient, srcToken, dstToken, inputAmount, outputAmount, goodUntil, r, vs);
    }

    /// @notice Same as `clipperSwapTo` but uses `msg.sender` as recipient
    /// @param srcToken Source token
    /// @param dstToken Destination token
    /// @param inputAmount Amount of source tokens to swap
    /// @param outputAmount Amount of destination tokens to receive
    /// @param goodUntil Timestamp until the swap will be valid
    /// @param r Clipper order signature (r part)
    /// @param vs Clipper order signature (vs part)
    /// @return returnAmount Amount of destination tokens received
    function clipperSwap(
        IClipperExchangeInterface clipperExchange,
        IERC20 srcToken,
        IERC20 dstToken,
        uint256 inputAmount,
        uint256 outputAmount,
        uint256 goodUntil,
        bytes32 r,
        bytes32 vs
    ) external payable returns(uint256 returnAmount) {
        return clipperSwapTo(clipperExchange, payable(msg.sender), srcToken, dstToken, inputAmount, outputAmount, goodUntil, r, vs);
    }

    /// @notice Performs swap using Clipper exchange. Wraps and unwraps ETH if required.
    /// Sending non-zero `msg.value` for anything but ETH swaps is prohibited
    /// @param recipient Address that will receive swap funds
    /// @param srcToken Source token
    /// @param dstToken Destination token
    /// @param inputAmount Amount of source tokens to swap
    /// @param outputAmount Amount of destination tokens to receive
    /// @param goodUntil Timestamp until the swap will be valid
    /// @param r Clipper order signature (r part)
    /// @param vs Clipper order signature (vs part)
    /// @return returnAmount Amount of destination tokens received
    function clipperSwapTo(
        IClipperExchangeInterface clipperExchange,
        address payable recipient,
        IERC20 srcToken,
        IERC20 dstToken,
        uint256 inputAmount,
        uint256 outputAmount,
        uint256 goodUntil,
        bytes32 r,
        bytes32 vs
    ) public payable returns(uint256 returnAmount) {
        bool srcETH = srcToken == _ETH;
        if (srcETH) {
            if (msg.value != inputAmount) revert RouterErrors.InvalidMsgValue();
        } else if (srcToken == _WETH) {
            srcETH = true;
            if (msg.value != 0) revert RouterErrors.InvalidMsgValue();
            // _WETH.transferFrom(msg.sender, address(this), inputAmount);
            // _WETH.withdraw(inputAmount);
            address weth = address(_WETH);
            bytes4 transferFromSelector = _WETH.transferFrom.selector;
            bytes4 withdrawSelector = _WETH.withdraw.selector;
            /// @solidity memory-safe-assembly
            assembly { // solhint-disable-line no-inline-assembly
                let ptr := mload(0x40)

                mstore(ptr, transferFromSelector)
                mstore(add(ptr, 0x04), caller())
                mstore(add(ptr, 0x24), address())
                mstore(add(ptr, 0x44), inputAmount)
                if iszero(call(gas(), weth, 0, ptr, 0x64, 0, 0)) {
                    returndatacopy(ptr, 0, returndatasize())
                    revert(ptr, returndatasize())
                }

                mstore(ptr, withdrawSelector)
                mstore(add(ptr, 0x04), inputAmount)
                if iszero(call(gas(), weth, 0, ptr, 0x24, 0, 0)) {
                    returndatacopy(ptr, 0, returndatasize())
                    revert(ptr, returndatasize())
                }
            }
        } else {
            if (msg.value != 0) revert RouterErrors.InvalidMsgValue();
            srcToken.safeTransferFrom(msg.sender, address(clipperExchange), inputAmount);
        }

        if (srcETH) {
            // clipperExchange.sellEthForToken{value: inputAmount}(address(dstToken), inputAmount, outputAmount, goodUntil, recipient, signature, _INCH_TAG);
            address clipper = address(clipperExchange);
            bytes4 selector = clipperExchange.sellEthForToken.selector;
            /// @solidity memory-safe-assembly
            assembly { // solhint-disable-line no-inline-assembly
                let ptr := mload(0x40)

                mstore(ptr, selector)
                mstore(add(ptr, 0x04), dstToken)
                mstore(add(ptr, 0x24), inputAmount)
                mstore(add(ptr, 0x44), outputAmount)
                mstore(add(ptr, 0x64), goodUntil)
                mstore(add(ptr, 0x84), recipient)
                mstore(add(ptr, 0xa4), add(27, shr(_SIGNATURE_V_SHIFT, vs)))
                mstore(add(ptr, 0xc4), r)
                mstore(add(ptr, 0xe4), and(vs, _SIGNATURE_S_MASK))
                mstore(add(ptr, 0x104), 0x120)
                mstore(add(ptr, 0x143), _INCH_TAG_WITH_LENGTH_PREFIX)
                if iszero(call(gas(), clipper, inputAmount, ptr, 0x149, 0, 0)) {
                    returndatacopy(ptr, 0, returndatasize())
                    revert(ptr, returndatasize())
                }
            }
        } else if (dstToken == _ETH || dstToken == _WETH) {
            // clipperExchange.sellTokenForEth(address(srcToken), inputAmount, outputAmount, goodUntil, recipient, signature, _INCH_TAG);
            address clipper = address(clipperExchange);
            bytes4 selector = clipperExchange.sellTokenForEth.selector;
            /// @solidity memory-safe-assembly
            assembly { // solhint-disable-line no-inline-assembly
                let ptr := mload(0x40)

                mstore(ptr, selector)
                mstore(add(ptr, 0x04), srcToken)
                mstore(add(ptr, 0x24), inputAmount)
                mstore(add(ptr, 0x44), outputAmount)
                mstore(add(ptr, 0x64), goodUntil)
                switch iszero(dstToken)
                case 1 {
                    mstore(add(ptr, 0x84), recipient)
                }
                default {
                    mstore(add(ptr, 0x84), address())
                }
                mstore(add(ptr, 0xa4), add(27, shr(_SIGNATURE_V_SHIFT, vs)))
                mstore(add(ptr, 0xc4), r)
                mstore(add(ptr, 0xe4), and(vs, _SIGNATURE_S_MASK))
                mstore(add(ptr, 0x104), 0x120)
                mstore(add(ptr, 0x143), _INCH_TAG_WITH_LENGTH_PREFIX)
                if iszero(call(gas(), clipper, 0, ptr, 0x149, 0, 0)) {
                    returndatacopy(ptr, 0, returndatasize())
                    revert(ptr, returndatasize())
                }
            }

            if (dstToken == _WETH) {
                // _WETH.deposit{value: outputAmount}();
                // _WETH.transfer(recipient, outputAmount);
                address weth = address(_WETH);
                bytes4 depositSelector = _WETH.deposit.selector;
                bytes4 transferSelector = _WETH.transfer.selector;
                /// @solidity memory-safe-assembly
                assembly { // solhint-disable-line no-inline-assembly
                    let ptr := mload(0x40)

                    mstore(ptr, depositSelector)
                    if iszero(call(gas(), weth, outputAmount, ptr, 0x04, 0, 0)) {
                        returndatacopy(ptr, 0, returndatasize())
                        revert(ptr, returndatasize())
                    }

                    mstore(ptr, transferSelector)
                    mstore(add(ptr, 0x04), recipient)
                    mstore(add(ptr, 0x24), outputAmount)
                    if iszero(call(gas(), weth, 0, ptr, 0x44, 0, 0)) {
                        returndatacopy(ptr, 0, returndatasize())
                        revert(ptr, returndatasize())
                    }
                }
            }
        } else {
            // clipperExchange.swap(address(srcToken), address(dstToken), inputAmount, outputAmount, goodUntil, recipient, signature, _INCH_TAG);
            address clipper = address(clipperExchange);
            bytes4 selector = clipperExchange.swap.selector;
            /// @solidity memory-safe-assembly
            assembly { // solhint-disable-line no-inline-assembly
                let ptr := mload(0x40)

                mstore(ptr, selector)
                mstore(add(ptr, 0x04), srcToken)
                mstore(add(ptr, 0x24), dstToken)
                mstore(add(ptr, 0x44), inputAmount)
                mstore(add(ptr, 0x64), outputAmount)
                mstore(add(ptr, 0x84), goodUntil)
                mstore(add(ptr, 0xa4), recipient)
                mstore(add(ptr, 0xc4), add(27, shr(_SIGNATURE_V_SHIFT, vs)))
                mstore(add(ptr, 0xe4), r)
                mstore(add(ptr, 0x104), and(vs, _SIGNATURE_S_MASK))
                mstore(add(ptr, 0x124), 0x140)
                mstore(add(ptr, 0x163), _INCH_TAG_WITH_LENGTH_PREFIX)
                if iszero(call(gas(), clipper, 0, ptr, 0x169, 0, 0)) {
                    returndatacopy(ptr, 0, returndatasize())
                    revert(ptr, returndatasize())
                }
            }
        }

        return outputAmount;
    }
}


// File contracts/interfaces/IUniswapV3Pool.sol

pragma solidity 0.8.17;

interface IUniswapV3Pool {
    /// @notice Swap token0 for token1, or token1 for token0
    /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback
    /// @param recipient The address to receive the output of the swap
    /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0
    /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)
    /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this
    /// value after the swap. If one for zero, the price cannot be greater than this value after the swap
    /// @param data Any data to be passed through to the callback
    /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive
    /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive
    function swap(
        address recipient,
        bool zeroForOne,
        int256 amountSpecified,
        uint160 sqrtPriceLimitX96,
        bytes calldata data
    ) external returns (int256 amount0, int256 amount1);

    /// @notice The first of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token0() external view returns (address);

    /// @notice The second of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token1() external view returns (address);

    /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6
    /// @return The fee
    function fee() external view returns (uint24);
}


// File contracts/interfaces/IUniswapV3SwapCallback.sol

pragma solidity 0.8.17;

/// @title Callback for IUniswapV3PoolActions#swap
/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface
interface IUniswapV3SwapCallback {
    /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.
    /// @dev In the implementation you must pay the pool tokens owed for the swap.
    /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.
    /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.
    /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.
    /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.
    /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call
    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata data
    ) external;
}


// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File @openzeppelin/contracts/utils/math/[email protected]

// OpenZeppelin Contracts (last updated v4.7.0) (utils/math/SafeCast.sol)

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {
    /**
     * @dev Returns the downcasted uint248 from uint256, reverting on
     * overflow (when the input is greater than largest uint248).
     *
     * Counterpart to Solidity's `uint248` operator.
     *
     * Requirements:
     *
     * - input must fit into 248 bits
     *
     * _Available since v4.7._
     */
    function toUint248(uint256 value) internal pure returns (uint248) {
        require(value <= type(uint248).max, "SafeCast: value doesn't fit in 248 bits");
        return uint248(value);
    }

    /**
     * @dev Returns the downcasted uint240 from uint256, reverting on
     * overflow (when the input is greater than largest uint240).
     *
     * Counterpart to Solidity's `uint240` operator.
     *
     * Requirements:
     *
     * - input must fit into 240 bits
     *
     * _Available since v4.7._
     */
    function toUint240(uint256 value) internal pure returns (uint240) {
        require(value <= type(uint240).max, "SafeCast: value doesn't fit in 240 bits");
        return uint240(value);
    }

    /**
     * @dev Returns the downcasted uint232 from uint256, reverting on
     * overflow (when the input is greater than largest uint232).
     *
     * Counterpart to Solidity's `uint232` operator.
     *
     * Requirements:
     *
     * - input must fit into 232 bits
     *
     * _Available since v4.7._
     */
    function toUint232(uint256 value) internal pure returns (uint232) {
        require(value <= type(uint232).max, "SafeCast: value doesn't fit in 232 bits");
        return uint232(value);
    }

    /**
     * @dev Returns the downcasted uint224 from uint256, reverting on
     * overflow (when the input is greater than largest uint224).
     *
     * Counterpart to Solidity's `uint224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     *
     * _Available since v4.2._
     */
    function toUint224(uint256 value) internal pure returns (uint224) {
        require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits");
        return uint224(value);
    }

    /**
     * @dev Returns the downcasted uint216 from uint256, reverting on
     * overflow (when the input is greater than largest uint216).
     *
     * Counterpart to Solidity's `uint216` operator.
     *
     * Requirements:
     *
     * - input must fit into 216 bits
     *
     * _Available since v4.7._
     */
    function toUint216(uint256 value) internal pure returns (uint216) {
        require(value <= type(uint216).max, "SafeCast: value doesn't fit in 216 bits");
        return uint216(value);
    }

    /**
     * @dev Returns the downcasted uint208 from uint256, reverting on
     * overflow (when the input is greater than largest uint208).
     *
     * Counterpart to Solidity's `uint208` operator.
     *
     * Requirements:
     *
     * - input must fit into 208 bits
     *
     * _Available since v4.7._
     */
    function toUint208(uint256 value) internal pure returns (uint208) {
        require(value <= type(uint208).max, "SafeCast: value doesn't fit in 208 bits");
        return uint208(value);
    }

    /**
     * @dev Returns the downcasted uint200 from uint256, reverting on
     * overflow (when the input is greater than largest uint200).
     *
     * Counterpart to Solidity's `uint200` operator.
     *
     * Requirements:
     *
     * - input must fit into 200 bits
     *
     * _Available since v4.7._
     */
    function toUint200(uint256 value) internal pure returns (uint200) {
        require(value <= type(uint200).max, "SafeCast: value doesn't fit in 200 bits");
        return uint200(value);
    }

    /**
     * @dev Returns the downcasted uint192 from uint256, reverting on
     * overflow (when the input is greater than largest uint192).
     *
     * Counterpart to Solidity's `uint192` operator.
     *
     * Requirements:
     *
     * - input must fit into 192 bits
     *
     * _Available since v4.7._
     */
    function toUint192(uint256 value) internal pure returns (uint192) {
        require(value <= type(uint192).max, "SafeCast: value doesn't fit in 192 bits");
        return uint192(value);
    }

    /**
     * @dev Returns the downcasted uint184 from uint256, reverting on
     * overflow (when the input is greater than largest uint184).
     *
     * Counterpart to Solidity's `uint184` operator.
     *
     * Requirements:
     *
     * - input must fit into 184 bits
     *
     * _Available since v4.7._
     */
    function toUint184(uint256 value) internal pure returns (uint184) {
        require(value <= type(uint184).max, "SafeCast: value doesn't fit in 184 bits");
        return uint184(value);
    }

    /**
     * @dev Returns the downcasted uint176 from uint256, reverting on
     * overflow (when the input is greater than largest uint176).
     *
     * Counterpart to Solidity's `uint176` operator.
     *
     * Requirements:
     *
     * - input must fit into 176 bits
     *
     * _Available since v4.7._
     */
    function toUint176(uint256 value) internal pure returns (uint176) {
        require(value <= type(uint176).max, "SafeCast: value doesn't fit in 176 bits");
        return uint176(value);
    }

    /**
     * @dev Returns the downcasted uint168 from uint256, reverting on
     * overflow (when the input is greater than largest uint168).
     *
     * Counterpart to Solidity's `uint168` operator.
     *
     * Requirements:
     *
     * - input must fit into 168 bits
     *
     * _Available since v4.7._
     */
    function toUint168(uint256 value) internal pure returns (uint168) {
        require(value <= type(uint168).max, "SafeCast: value doesn't fit in 168 bits");
        return uint168(value);
    }

    /**
     * @dev Returns the downcasted uint160 from uint256, reverting on
     * overflow (when the input is greater than largest uint160).
     *
     * Counterpart to Solidity's `uint160` operator.
     *
     * Requirements:
     *
     * - input must fit into 160 bits
     *
     * _Available since v4.7._
     */
    function toUint160(uint256 value) internal pure returns (uint160) {
        require(value <= type(uint160).max, "SafeCast: value doesn't fit in 160 bits");
        return uint160(value);
    }

    /**
     * @dev Returns the downcasted uint152 from uint256, reverting on
     * overflow (when the input is greater than largest uint152).
     *
     * Counterpart to Solidity's `uint152` operator.
     *
     * Requirements:
     *
     * - input must fit into 152 bits
     *
     * _Available since v4.7._
     */
    function toUint152(uint256 value) internal pure returns (uint152) {
        require(value <= type(uint152).max, "SafeCast: value doesn't fit in 152 bits");
        return uint152(value);
    }

    /**
     * @dev Returns the downcasted uint144 from uint256, reverting on
     * overflow (when the input is greater than largest uint144).
     *
     * Counterpart to Solidity's `uint144` operator.
     *
     * Requirements:
     *
     * - input must fit into 144 bits
     *
     * _Available since v4.7._
     */
    function toUint144(uint256 value) internal pure returns (uint144) {
        require(value <= type(uint144).max, "SafeCast: value doesn't fit in 144 bits");
        return uint144(value);
    }

    /**
     * @dev Returns the downcasted uint136 from uint256, reverting on
     * overflow (when the input is greater than largest uint136).
     *
     * Counterpart to Solidity's `uint136` operator.
     *
     * Requirements:
     *
     * - input must fit into 136 bits
     *
     * _Available since v4.7._
     */
    function toUint136(uint256 value) internal pure returns (uint136) {
        require(value <= type(uint136).max, "SafeCast: value doesn't fit in 136 bits");
        return uint136(value);
    }

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v2.5._
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint120 from uint256, reverting on
     * overflow (when the input is greater than largest uint120).
     *
     * Counterpart to Solidity's `uint120` operator.
     *
     * Requirements:
     *
     * - input must fit into 120 bits
     *
     * _Available since v4.7._
     */
    function toUint120(uint256 value) internal pure returns (uint120) {
        require(value <= type(uint120).max, "SafeCast: value doesn't fit in 120 bits");
        return uint120(value);
    }

    /**
     * @dev Returns the downcasted uint112 from uint256, reverting on
     * overflow (when the input is greater than largest uint112).
     *
     * Counterpart to Solidity's `uint112` operator.
     *
     * Requirements:
     *
     * - input must fit into 112 bits
     *
     * _Available since v4.7._
     */
    function toUint112(uint256 value) internal pure returns (uint112) {
        require(value <= type(uint112).max, "SafeCast: value doesn't fit in 112 bits");
        return uint112(value);
    }

    /**
     * @dev Returns the downcasted uint104 from uint256, reverting on
     * overflow (when the input is greater than largest uint104).
     *
     * Counterpart to Solidity's `uint104` operator.
     *
     * Requirements:
     *
     * - input must fit into 104 bits
     *
     * _Available since v4.7._
     */
    function toUint104(uint256 value) internal pure returns (uint104) {
        require(value <= type(uint104).max, "SafeCast: value doesn't fit in 104 bits");
        return uint104(value);
    }

    /**
     * @dev Returns the downcasted uint96 from uint256, reverting on
     * overflow (when the input is greater than largest uint96).
     *
     * Counterpart to Solidity's `uint96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     *
     * _Available since v4.2._
     */
    function toUint96(uint256 value) internal pure returns (uint96) {
        require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits");
        return uint96(value);
    }

    /**
     * @dev Returns the downcasted uint88 from uint256, reverting on
     * overflow (when the input is greater than largest uint88).
     *
     * Counterpart to Solidity's `uint88` operator.
     *
     * Requirements:
     *
     * - input must fit into 88 bits
     *
     * _Available since v4.7._
     */
    function toUint88(uint256 value) internal pure returns (uint88) {
        require(value <= type(uint88).max, "SafeCast: value doesn't fit in 88 bits");
        return uint88(value);
    }

    /**
     * @dev Returns the downcasted uint80 from uint256, reverting on
     * overflow (when the input is greater than largest uint80).
     *
     * Counterpart to Solidity's `uint80` operator.
     *
     * Requirements:
     *
     * - input must fit into 80 bits
     *
     * _Available since v4.7._
     */
    function toUint80(uint256 value) internal pure returns (uint80) {
        require(value <= type(uint80).max, "SafeCast: value doesn't fit in 80 bits");
        return uint80(value);
    }

    /**
     * @dev Returns the downcasted uint72 from uint256, reverting on
     * overflow (when the input is greater than largest uint72).
     *
     * Counterpart to Solidity's `uint72` operator.
     *
     * Requirements:
     *
     * - input must fit into 72 bits
     *
     * _Available since v4.7._
     */
    function toUint72(uint256 value) internal pure returns (uint72) {
        require(value <= type(uint72).max, "SafeCast: value doesn't fit in 72 bits");
        return uint72(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v2.5._
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint56 from uint256, reverting on
     * overflow (when the input is greater than largest uint56).
     *
     * Counterpart to Solidity's `uint56` operator.
     *
     * Requirements:
     *
     * - input must fit into 56 bits
     *
     * _Available since v4.7._
     */
    function toUint56(uint256 value) internal pure returns (uint56) {
        require(value <= type(uint56).max, "SafeCast: value doesn't fit in 56 bits");
        return uint56(value);
    }

    /**
     * @dev Returns the downcasted uint48 from uint256, reverting on
     * overflow (when the input is greater than largest uint48).
     *
     * Counterpart to Solidity's `uint48` operator.
     *
     * Requirements:
     *
     * - input must fit into 48 bits
     *
     * _Available since v4.7._
     */
    function toUint48(uint256 value) internal pure returns (uint48) {
        require(value <= type(uint48).max, "SafeCast: value doesn't fit in 48 bits");
        return uint48(value);
    }

    /**
     * @dev Returns the downcasted uint40 from uint256, reverting on
     * overflow (when the input is greater than largest uint40).
     *
     * Counterpart to Solidity's `uint40` operator.
     *
     * Requirements:
     *
     * - input must fit into 40 bits
     *
     * _Available since v4.7._
     */
    function toUint40(uint256 value) internal pure returns (uint40) {
        require(value <= type(uint40).max, "SafeCast: value doesn't fit in 40 bits");
        return uint40(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v2.5._
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint24 from uint256, reverting on
     * overflow (when the input is greater than largest uint24).
     *
     * Counterpart to Solidity's `uint24` operator.
     *
     * Requirements:
     *
     * - input must fit into 24 bits
     *
     * _Available since v4.7._
     */
    function toUint24(uint256 value) internal pure returns (uint24) {
        require(value <= type(uint24).max, "SafeCast: value doesn't fit in 24 bits");
        return uint24(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v2.5._
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits
     *
     * _Available since v2.5._
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     *
     * _Available since v3.0._
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int248 from int256, reverting on
     * overflow (when the input is less than smallest int248 or
     * greater than largest int248).
     *
     * Counterpart to Solidity's `int248` operator.
     *
     * Requirements:
     *
     * - input must fit into 248 bits
     *
     * _Available since v4.7._
     */
    function toInt248(int256 value) internal pure returns (int248) {
        require(value >= type(int248).min && value <= type(int248).max, "SafeCast: value doesn't fit in 248 bits");
        return int248(value);
    }

    /**
     * @dev Returns the downcasted int240 from int256, reverting on
     * overflow (when the input is less than smallest int240 or
     * greater than largest int240).
     *
     * Counterpart to Solidity's `int240` operator.
     *
     * Requirements:
     *
     * - input must fit into 240 bits
     *
     * _Available since v4.7._
     */
    function toInt240(int256 value) internal pure returns (int240) {
        require(value >= type(int240).min && value <= type(int240).max, "SafeCast: value doesn't fit in 240 bits");
        return int240(value);
    }

    /**
     * @dev Returns the downcasted int232 from int256, reverting on
     * overflow (when the input is less than smallest int232 or
     * greater than largest int232).
     *
     * Counterpart to Solidity's `int232` operator.
     *
     * Requirements:
     *
     * - input must fit into 232 bits
     *
     * _Available since v4.7._
     */
    function toInt232(int256 value) internal pure returns (int232) {
        require(value >= type(int232).min && value <= type(int232).max, "SafeCast: value doesn't fit in 232 bits");
        return int232(value);
    }

    /**
     * @dev Returns the downcasted int224 from int256, reverting on
     * overflow (when the input is less than smallest int224 or
     * greater than largest int224).
     *
     * Counterpart to Solidity's `int224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     *
     * _Available since v4.7._
     */
    function toInt224(int256 value) internal pure returns (int224) {
        require(value >= type(int224).min && value <= type(int224).max, "SafeCast: value doesn't fit in 224 bits");
        return int224(value);
    }

    /**
     * @dev Returns the downcasted int216 from int256, reverting on
     * overflow (when the input is less than smallest int216 or
     * greater than largest int216).
     *
     * Counterpart to Solidity's `int216` operator.
     *
     * Requirements:
     *
     * - input must fit into 216 bits
     *
     * _Available since v4.7._
     */
    function toInt216(int256 value) internal pure returns (int216) {
        require(value >= type(int216).min && value <= type(int216).max, "SafeCast: value doesn't fit in 216 bits");
        return int216(value);
    }

    /**
     * @dev Returns the downcasted int208 from int256, reverting on
     * overflow (when the input is less than smallest int208 or
     * greater than largest int208).
     *
     * Counterpart to Solidity's `int208` operator.
     *
     * Requirements:
     *
     * - input must fit into 208 bits
     *
     * _Available since v4.7._
     */
    function toInt208(int256 value) internal pure returns (int208) {
        require(value >= type(int208).min && value <= type(int208).max, "SafeCast: value doesn't fit in 208 bits");
        return int208(value);
    }

    /**
     * @dev Returns the downcasted int200 from int256, reverting on
     * overflow (when the input is less than smallest int200 or
     * greater than largest int200).
     *
     * Counterpart to Solidity's `int200` operator.
     *
     * Requirements:
     *
     * - input must fit into 200 bits
     *
     * _Available since v4.7._
     */
    function toInt200(int256 value) internal pure returns (int200) {
        require(value >= type(int200).min && value <= type(int200).max, "SafeCast: value doesn't fit in 200 bits");
        return int200(value);
    }

    /**
     * @dev Returns the downcasted int192 from int256, reverting on
     * overflow (when the input is less than smallest int192 or
     * greater than largest int192).
     *
     * Counterpart to Solidity's `int192` operator.
     *
     * Requirements:
     *
     * - input must fit into 192 bits
     *
     * _Available since v4.7._
     */
    function toInt192(int256 value) internal pure returns (int192) {
        require(value >= type(int192).min && value <= type(int192).max, "SafeCast: value doesn't fit in 192 bits");
        return int192(value);
    }

    /**
     * @dev Returns the downcasted int184 from int256, reverting on
     * overflow (when the input is less than smallest int184 or
     * greater than largest int184).
     *
     * Counterpart to Solidity's `int184` operator.
     *
     * Requirements:
     *
     * - input must fit into 184 bits
     *
     * _Available since v4.7._
     */
    function toInt184(int256 value) internal pure returns (int184) {
        require(value >= type(int184).min && value <= type(int184).max, "SafeCast: value doesn't fit in 184 bits");
        return int184(value);
    }

    /**
     * @dev Returns the downcasted int176 from int256, reverting on
     * overflow (when the input is less than smallest int176 or
     * greater than largest int176).
     *
     * Counterpart to Solidity's `int176` operator.
     *
     * Requirements:
     *
     * - input must fit into 176 bits
     *
     * _Available since v4.7._
     */
    function toInt176(int256 value) internal pure returns (int176) {
        require(value >= type(int176).min && value <= type(int176).max, "SafeCast: value doesn't fit in 176 bits");
        return int176(value);
    }

    /**
     * @dev Returns the downcasted int168 from int256, reverting on
     * overflow (when the input is less than smallest int168 or
     * greater than largest int168).
     *
     * Counterpart to Solidity's `int168` operator.
     *
     * Requirements:
     *
     * - input must fit into 168 bits
     *
     * _Available since v4.7._
     */
    function toInt168(int256 value) internal pure returns (int168) {
        require(value >= type(int168).min && value <= type(int168).max, "SafeCast: value doesn't fit in 168 bits");
        return int168(value);
    }

    /**
     * @dev Returns the downcasted int160 from int256, reverting on
     * overflow (when the input is less than smallest int160 or
     * greater than largest int160).
     *
     * Counterpart to Solidity's `int160` operator.
     *
     * Requirements:
     *
     * - input must fit into 160 bits
     *
     * _Available since v4.7._
     */
    function toInt160(int256 value) internal pure returns (int160) {
        require(value >= type(int160).min && value <= type(int160).max, "SafeCast: value doesn't fit in 160 bits");
        return int160(value);
    }

    /**
     * @dev Returns the downcasted int152 from int256, reverting on
     * overflow (when the input is less than smallest int152 or
     * greater than largest int152).
     *
     * Counterpart to Solidity's `int152` operator.
     *
     * Requirements:
     *
     * - input must fit into 152 bits
     *
     * _Available since v4.7._
     */
    function toInt152(int256 value) internal pure returns (int152) {
        require(value >= type(int152).min && value <= type(int152).max, "SafeCast: value doesn't fit in 152 bits");
        return int152(value);
    }

    /**
     * @dev Returns the downcasted int144 from int256, reverting on
     * overflow (when the input is less than smallest int144 or
     * greater than largest int144).
     *
     * Counterpart to Solidity's `int144` operator.
     *
     * Requirements:
     *
     * - input must fit into 144 bits
     *
     * _Available since v4.7._
     */
    function toInt144(int256 value) internal pure returns (int144) {
        require(value >= type(int144).min && value <= type(int144).max, "SafeCast: value doesn't fit in 144 bits");
        return int144(value);
    }

    /**
     * @dev Returns the downcasted int136 from int256, reverting on
     * overflow (when the input is less than smallest int136 or
     * greater than largest int136).
     *
     * Counterpart to Solidity's `int136` operator.
     *
     * Requirements:
     *
     * - input must fit into 136 bits
     *
     * _Available since v4.7._
     */
    function toInt136(int256 value) internal pure returns (int136) {
        require(value >= type(int136).min && value <= type(int136).max, "SafeCast: value doesn't fit in 136 bits");
        return int136(value);
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128) {
        require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits");
        return int128(value);
    }

    /**
     * @dev Returns the downcasted int120 from int256, reverting on
     * overflow (when the input is less than smallest int120 or
     * greater than largest int120).
     *
     * Counterpart to Solidity's `int120` operator.
     *
     * Requirements:
     *
     * - input must fit into 120 bits
     *
     * _Available since v4.7._
     */
    function toInt120(int256 value) internal pure returns (int120) {
        require(value >= type(int120).min && value <= type(int120).max, "SafeCast: value doesn't fit in 120 bits");
        return int120(value);
    }

    /**
     * @dev Returns the downcasted int112 from int256, reverting on
     * overflow (when the input is less than smallest int112 or
     * greater than largest int112).
     *
     * Counterpart to Solidity's `int112` operator.
     *
     * Requirements:
     *
     * - input must fit into 112 bits
     *
     * _Available since v4.7._
     */
    function toInt112(int256 value) internal pure returns (int112) {
        require(value >= type(int112).min && value <= type(int112).max, "SafeCast: value doesn't fit in 112 bits");
        return int112(value);
    }

    /**
     * @dev Returns the downcasted int104 from int256, reverting on
     * overflow (when the input is less than smallest int104 or
     * greater than largest int104).
     *
     * Counterpart to Solidity's `int104` operator.
     *
     * Requirements:
     *
     * - input must fit into 104 bits
     *
     * _Available since v4.7._
     */
    function toInt104(int256 value) internal pure returns (int104) {
        require(value >= type(int104).min && value <= type(int104).max, "SafeCast: value doesn't fit in 104 bits");
        return int104(value);
    }

    /**
     * @dev Returns the downcasted int96 from int256, reverting on
     * overflow (when the input is less than smallest int96 or
     * greater than largest int96).
     *
     * Counterpart to Solidity's `int96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     *
     * _Available since v4.7._
     */
    function toInt96(int256 value) internal pure returns (int96) {
        require(value >= type(int96).min && value <= type(int96).max, "SafeCast: value doesn't fit in 96 bits");
        return int96(value);
    }

    /**
     * @dev Returns the downcasted int88 from int256, reverting on
     * overflow (when the input is less than smallest int88 or
     * greater than largest int88).
     *
     * Counterpart to Solidity's `int88` operator.
     *
     * Requirements:
     *
     * - input must fit into 88 bits
     *
     * _Available since v4.7._
     */
    function toInt88(int256 value) internal pure returns (int88) {
        require(value >= type(int88).min && value <= type(int88).max, "SafeCast: value doesn't fit in 88 bits");
        return int88(value);
    }

    /**
     * @dev Returns the downcasted int80 from int256, reverting on
     * overflow (when the input is less than smallest int80 or
     * greater than largest int80).
     *
     * Counterpart to Solidity's `int80` operator.
     *
     * Requirements:
     *
     * - input must fit into 80 bits
     *
     * _Available since v4.7._
     */
    function toInt80(int256 value) internal pure returns (int80) {
        require(value >= type(int80).min && value <= type(int80).max, "SafeCast: value doesn't fit in 80 bits");
        return int80(value);
    }

    /**
     * @dev Returns the downcasted int72 from int256, reverting on
     * overflow (when the input is less than smallest int72 or
     * greater than largest int72).
     *
     * Counterpart to Solidity's `int72` operator.
     *
     * Requirements:
     *
     * - input must fit into 72 bits
     *
     * _Available since v4.7._
     */
    function toInt72(int256 value) internal pure returns (int72) {
        require(value >= type(int72).min && value <= type(int72).max, "SafeCast: value doesn't fit in 72 bits");
        return int72(value);
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64) {
        require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits");
        return int64(value);
    }

    /**
     * @dev Returns the downcasted int56 from int256, reverting on
     * overflow (when the input is less than smallest int56 or
     * greater than largest int56).
     *
     * Counterpart to Solidity's `int56` operator.
     *
     * Requirements:
     *
     * - input must fit into 56 bits
     *
     * _Available since v4.7._
     */
    function toInt56(int256 value) internal pure returns (int56) {
        require(value >= type(int56).min && value <= type(int56).max, "SafeCast: value doesn't fit in 56 bits");
        return int56(value);
    }

    /**
     * @dev Returns the downcasted int48 from int256, reverting on
     * overflow (when the input is less than smallest int48 or
     * greater than largest int48).
     *
     * Counterpart to Solidity's `int48` operator.
     *
     * Requirements:
     *
     * - input must fit into 48 bits
     *
     * _Available since v4.7._
     */
    function toInt48(int256 value) internal pure returns (int48) {
        require(value >= type(int48).min && value <= type(int48).max, "SafeCast: value doesn't fit in 48 bits");
        return int48(value);
    }

    /**
     * @dev Returns the downcasted int40 from int256, reverting on
     * overflow (when the input is less than smallest int40 or
     * greater than largest int40).
     *
     * Counterpart to Solidity's `int40` operator.
     *
     * Requirements:
     *
     * - input must fit into 40 bits
     *
     * _Available since v4.7._
     */
    function toInt40(int256 value) internal pure returns (int40) {
        require(value >= type(int40).min && value <= type(int40).max, "SafeCast: value doesn't fit in 40 bits");
        return int40(value);
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32) {
        require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits");
        return int32(value);
    }

    /**
     * @dev Returns the downcasted int24 from int256, reverting on
     * overflow (when the input is less than smallest int24 or
     * greater than largest int24).
     *
     * Counterpart to Solidity's `int24` operator.
     *
     * Requirements:
     *
     * - input must fit into 24 bits
     *
     * _Available since v4.7._
     */
    function toInt24(int256 value) internal pure returns (int24) {
        require(value >= type(int24).min && value <= type(int24).max, "SafeCast: value doesn't fit in 24 bits");
        return int24(value);
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16) {
        require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits");
        return int16(value);
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8) {
        require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits");
        return int8(value);
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     *
     * _Available since v3.0._
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
        require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}


// File contracts/routers/UnoswapV3Router.sol


pragma solidity 0.8.17;









contract UnoswapV3Router is EthReceiver, IUniswapV3SwapCallback {
    using Address for address payable;
    using SafeERC20 for IERC20;

    error EmptyPools();
    error BadPool();

    uint256 private constant _ONE_FOR_ZERO_MASK = 1 << 255;
    uint256 private constant _WETH_UNWRAP_MASK = 1 << 253;
    bytes32 private constant _POOL_INIT_CODE_HASH = 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54;
    bytes32 private constant _FF_FACTORY = 0xff1F98431c8aD98523631AE4a59f267346ea31F9840000000000000000000000;
    // concatenation of token0(), token1() fee(), transfer() and transferFrom() selectors
    bytes32 private constant _SELECTORS = 0x0dfe1681d21220a7ddca3f43a9059cbb23b872dd000000000000000000000000;
    uint256 private constant _ADDRESS_MASK =   0x000000000000000000000000ffffffffffffffffffffffffffffffffffffffff;
    /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)
    uint160 private constant _MIN_SQRT_RATIO = 4295128739 + 1;
    /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)
    uint160 private constant _MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342 - 1;
    IWETH private immutable _WETH;  // solhint-disable-line var-name-mixedcase

    constructor(IWETH weth) {
        _WETH = weth;
    }

    /// @notice Same as `uniswapV3SwapTo` but calls permit first,
    /// allowing to approve token spending and make a swap in one transaction.
    /// @param recipient Address that will receive swap funds
    /// @param srcToken Source token
    /// @param amount Amount of source tokens to swap
    /// @param minReturn Minimal allowed returnAmount to make transaction commit
    /// @param pools Pools chain used for swaps. Pools src and dst tokens should match to make swap happen
    /// @param permit Should contain valid permit that can be used in `IERC20Permit.permit` calls.
    /// See tests for examples
    function uniswapV3SwapToWithPermit(
        address payable recipient,
        IERC20 srcToken,
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools,
        bytes calldata permit
    ) external returns(uint256 returnAmount) {
        srcToken.safePermit(permit);
        return _uniswapV3Swap(recipient, amount, minReturn, pools);
    }

    /// @notice Same as `uniswapV3SwapTo` but uses `msg.sender` as recipient
    /// @param amount Amount of source tokens to swap
    /// @param minReturn Minimal allowed returnAmount to make transaction commit
    /// @param pools Pools chain used for swaps. Pools src and dst tokens should match to make swap happen
    function uniswapV3Swap(
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools
    ) external payable returns(uint256 returnAmount) {
        return _uniswapV3Swap(payable(msg.sender), amount, minReturn, pools);
    }

    /// @notice Performs swap using Uniswap V3 exchange. Wraps and unwraps ETH if required.
    /// Sending non-zero `msg.value` for anything but ETH swaps is prohibited
    /// @param recipient Address that will receive swap funds
    /// @param amount Amount of source tokens to swap
    /// @param minReturn Minimal allowed returnAmount to make transaction commit
    /// @param pools Pools chain used for swaps. Pools src and dst tokens should match to make swap happen
    function uniswapV3SwapTo(
        address payable recipient,
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools
    ) external payable returns(uint256 returnAmount) {
        return _uniswapV3Swap(recipient, amount, minReturn, pools);
    }

    function _uniswapV3Swap(
        address payable recipient,
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools
    ) private returns(uint256 returnAmount) {
        unchecked {
            uint256 len = pools.length;
            if (len == 0) revert EmptyPools();
            uint256 lastIndex = len - 1;
            returnAmount = amount;
            bool wrapWeth = msg.value > 0;
            bool unwrapWeth = pools[lastIndex] & _WETH_UNWRAP_MASK > 0;
            if (wrapWeth) {
                if (msg.value != amount) revert RouterErrors.InvalidMsgValue();
                _WETH.deposit{value: amount}();
            }
            if (len > 1) {
                returnAmount = _makeSwap(address(this), wrapWeth ? address(this) : msg.sender, pools[0], returnAmount);

                for (uint256 i = 1; i < lastIndex; i++) {
                    returnAmount = _makeSwap(address(this), address(this), pools[i], returnAmount);
                }
                returnAmount = _makeSwap(unwrapWeth ? address(this) : recipient, address(this), pools[lastIndex], returnAmount);
            } else {
                returnAmount = _makeSwap(unwrapWeth ? address(this) : recipient, wrapWeth ? address(this) : msg.sender, pools[0], returnAmount);
            }

            if (returnAmount < minReturn) revert RouterErrors.ReturnAmountIsNotEnough();

            if (unwrapWeth) {
                _WETH.withdraw(returnAmount);
                recipient.sendValue(returnAmount);
            }
        }
    }

    /// @inheritdoc IUniswapV3SwapCallback
    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata /* data */
    ) external override {
        assembly {  // solhint-disable-line no-inline-assembly
            function reRevert() {
                returndatacopy(0, 0, returndatasize())
                revert(0, returndatasize())
            }

            function validateERC20Transfer(status) {
                if iszero(status) {
                    reRevert()
                }
                let success := or(
                    iszero(returndatasize()),                       // empty return data
                    and(gt(returndatasize(), 31), eq(mload(0), 1))  // true in return data
                )
                if iszero(success) {
                    mstore(0, 0xf27f64e400000000000000000000000000000000000000000000000000000000)  // ERC20TransferFailed()
                    revert(0, 4)
                }
            }

            let emptyPtr := mload(0x40)
            let resultPtr := add(emptyPtr, 0x15)  // 0x15 = _FF_FACTORY size

            mstore(emptyPtr, _SELECTORS)
            if iszero(staticcall(gas(), caller(), emptyPtr, 0x4, resultPtr, 0x20)) {
                reRevert()
            }
            if iszero(staticcall(gas(), caller(), add(emptyPtr, 0x4), 0x4, add(resultPtr, 0x20), 0x20)) {
                reRevert()
            }
            if iszero(staticcall(gas(), caller(), add(emptyPtr, 0x8), 0x4, add(resultPtr, 0x40), 0x20)) {
                reRevert()
            }

            let token
            let amount
            switch sgt(amount0Delta, 0)
            case 1 {
                token := mload(resultPtr)
                amount := amount0Delta
            }
            default {
                token := mload(add(resultPtr, 0x20))
                amount := amount1Delta
            }

            mstore(emptyPtr, _FF_FACTORY)
            mstore(resultPtr, keccak256(resultPtr, 0x60)) // Compute the inner hash in-place
            mstore(add(resultPtr, 0x20), _POOL_INIT_CODE_HASH)
            let pool := and(keccak256(emptyPtr, 0x55), _ADDRESS_MASK)
            if xor(pool, caller()) {
                mstore(0, 0xb2c0272200000000000000000000000000000000000000000000000000000000)  // BadPool()
                revert(0, 4)
            }

            let payer := calldataload(0x84)
            mstore(emptyPtr, _SELECTORS)
            switch eq(payer, address())
            case 1 {
                // token.safeTransfer(msg.sender,amount)
                mstore(add(emptyPtr, 0x10), caller())
                mstore(add(emptyPtr, 0x30), amount)
                validateERC20Transfer(
                    call(gas(), token, 0, add(emptyPtr, 0x0c), 0x44, 0, 0x20)
                )
            }
            default {
                // token.safeTransferFrom(payer, msg.sender, amount);
                mstore(add(emptyPtr, 0x14), payer)
                mstore(add(emptyPtr, 0x34), caller())
                mstore(add(emptyPtr, 0x54), amount)
                validateERC20Transfer(
                    call(gas(), token, 0, add(emptyPtr, 0x10), 0x64, 0, 0x20)
                )
            }
        }
    }

    function _makeSwap(address recipient, address payer, uint256 pool, uint256 amount) private returns (uint256) {
        bool zeroForOne = pool & _ONE_FOR_ZERO_MASK == 0;
        if (zeroForOne) {
            (, int256 amount1) = IUniswapV3Pool(address(uint160(pool))).swap(
                recipient,
                zeroForOne,
                SafeCast.toInt256(amount),
                _MIN_SQRT_RATIO,
                abi.encode(payer)
            );
            return SafeCast.toUint256(-amount1);
        } else {
            (int256 amount0,) = IUniswapV3Pool(address(uint160(pool))).swap(
                recipient,
                zeroForOne,
                SafeCast.toInt256(amount),
                _MAX_SQRT_RATIO,
                abi.encode(payer)
            );
            return SafeCast.toUint256(-amount0);
        }
    }
}


// File contracts/interfaces/IAggregationExecutor.sol


pragma solidity 0.8.17;

/// @title Interface for making arbitrary calls during swap
interface IAggregationExecutor {
    /// @notice propagates information about original msg.sender and executes arbitrary data
    function execute(address msgSender) external payable;  // 0x4b64e492
}


// File @1inch/solidity-utils/contracts/interfaces/[email protected]


pragma solidity ^0.8.0;


interface IERC20MetadataUppercase {
    function NAME() external view returns (string memory);  // solhint-disable-line func-name-mixedcase
    function SYMBOL() external view returns (string memory);  // solhint-disable-line func-name-mixedcase
}


// File @1inch/solidity-utils/contracts/libraries/[email protected]


pragma solidity ^0.8.0;

/// @title Library with gas-efficient string operations
library StringUtil {
    function toHex(uint256 value) internal pure returns (string memory) {
        return toHex(abi.encodePacked(value));
    }

    function toHex(address value) internal pure returns (string memory) {
        return toHex(abi.encodePacked(value));
    }

    function toHex(bytes memory data) internal pure returns (string memory result) {
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            function _toHex16(input) -> output {
                output := or(
                    and(input, 0xFFFFFFFFFFFFFFFF000000000000000000000000000000000000000000000000),
                    shr(64, and(input, 0x0000000000000000FFFFFFFFFFFFFFFF00000000000000000000000000000000))
                )
                output := or(
                    and(output, 0xFFFFFFFF000000000000000000000000FFFFFFFF000000000000000000000000),
                    shr(32, and(output, 0x00000000FFFFFFFF000000000000000000000000FFFFFFFF0000000000000000))
                )
                output := or(
                    and(output, 0xFFFF000000000000FFFF000000000000FFFF000000000000FFFF000000000000),
                    shr(16, and(output, 0x0000FFFF000000000000FFFF000000000000FFFF000000000000FFFF00000000))
                )
                output := or(
                    and(output, 0xFF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000),
                    shr(8, and(output, 0x00FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF0000))
                )
                output := or(
                    shr(4, and(output, 0xF000F000F000F000F000F000F000F000F000F000F000F000F000F000F000F000)),
                    shr(8, and(output, 0x0F000F000F000F000F000F000F000F000F000F000F000F000F000F000F000F00))
                )
                output := add(
                    add(0x3030303030303030303030303030303030303030303030303030303030303030, output),
                    mul(
                        and(
                            shr(4, add(output, 0x0606060606060606060606060606060606060606060606060606060606060606)),
                            0x0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F
                        ),
                        7   // Change 7 to 39 for lower case output
                    )
                )
            }

            result := mload(0x40)
            let length := mload(data)
            let resultLength := shl(1, length)
            let toPtr := add(result, 0x22)          // 32 bytes for length + 2 bytes for '0x'
            mstore(0x40, add(toPtr, resultLength))  // move free memory pointer
            mstore(add(result, 2), 0x3078)          // 0x3078 is right aligned so we write to `result + 2`
                                                    // to store the last 2 bytes in the beginning of the string
            mstore(result, add(resultLength, 2))    // extra 2 bytes for '0x'

            for {
                let fromPtr := add(data, 0x20)
                let endPtr := add(fromPtr, length)
            } lt(fromPtr, endPtr) {
                fromPtr := add(fromPtr, 0x20)
            } {
                let rawData := mload(fromPtr)
                let hexData := _toHex16(rawData)
                mstore(toPtr, hexData)
                toPtr := add(toPtr, 0x20)
                hexData := _toHex16(shl(128, rawData))
                mstore(toPtr, hexData)
                toPtr := add(toPtr, 0x20)
            }
        }
    }
}


// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

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

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

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


// File @1inch/solidity-utils/contracts/libraries/[email protected]


pragma solidity ^0.8.0;





library UniERC20 {
    using SafeERC20 for IERC20;

    error InsufficientBalance();
    error ApproveCalledOnETH();
    error NotEnoughValue();
    error FromIsNotSender();
    error ToIsNotThis();
    error ETHTransferFailed();

    uint256 private constant _RAW_CALL_GAS_LIMIT = 5000;
    IERC20 private constant _ETH_ADDRESS = IERC20(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
    IERC20 private constant _ZERO_ADDRESS = IERC20(address(0));

    function isETH(IERC20 token) internal pure returns (bool) {
        return (token == _ZERO_ADDRESS || token == _ETH_ADDRESS);
    }

    function uniBalanceOf(IERC20 token, address account) internal view returns (uint256) {
        if (isETH(token)) {
            return account.balance;
        } else {
            return token.balanceOf(account);
        }
    }

    /// @dev note that this function does nothing in case of zero amount
    function uniTransfer(IERC20 token, address payable to, uint256 amount) internal {
        if (amount > 0) {
            if (isETH(token)) {
                if (address(this).balance < amount) revert InsufficientBalance();
                // solhint-disable-next-line avoid-low-level-calls
                (bool success, ) = to.call{value: amount, gas: _RAW_CALL_GAS_LIMIT}("");
                if (!success) revert ETHTransferFailed();
            } else {
                token.safeTransfer(to, amount);
            }
        }
    }

    /// @dev note that this function does nothing in case of zero amount
    function uniTransferFrom(IERC20 token, address payable from, address to, uint256 amount) internal {
        if (amount > 0) {
            if (isETH(token)) {
                if (msg.value < amount) revert NotEnoughValue();
                if (from != msg.sender) revert FromIsNotSender();
                if (to != address(this)) revert ToIsNotThis();
                if (msg.value > amount) {
                    // Return remainder if exist
                    unchecked {
                        // solhint-disable-next-line avoid-low-level-calls
                        (bool success, ) = from.call{value: msg.value - amount, gas: _RAW_CALL_GAS_LIMIT}("");
                        if (!success) revert ETHTransferFailed();
                    }
                }
            } else {
                token.safeTransferFrom(from, to, amount);
            }
        }
    }

    function uniSymbol(IERC20 token) internal view returns(string memory) {
        return _uniDecode(token, IERC20Metadata.symbol.selector, IERC20MetadataUppercase.SYMBOL.selector);
    }

    function uniName(IERC20 token) internal view returns(string memory) {
        return _uniDecode(token, IERC20Metadata.name.selector, IERC20MetadataUppercase.NAME.selector);
    }

    function uniApprove(IERC20 token, address to, uint256 amount) internal {
        if (isETH(token)) revert ApproveCalledOnETH();

        token.forceApprove(to, amount);
    }

    /// 20K gas is provided to account for possible implementations of name/symbol
    /// (token implementation might be behind proxy or store the value in storage)
    function _uniDecode(IERC20 token, bytes4 lowerCaseSelector, bytes4 upperCaseSelector) private view returns(string memory result) {
        if (isETH(token)) {
            return "ETH";
        }

        (bool success, bytes memory data) = address(token).staticcall{ gas: 20000 }(
            abi.encodeWithSelector(lowerCaseSelector)
        );
        if (!success) {
            (success, data) = address(token).staticcall{ gas: 20000 }(
                abi.encodeWithSelector(upperCaseSelector)
            );
        }

        if (success && data.length >= 0x40) {
            (uint256 offset, uint256 len) = abi.decode(data, (uint256, uint256));
            if (offset == 0x20 && len > 0 && data.length == 0x40 + len) {
                /// @solidity memory-safe-assembly
                assembly { // solhint-disable-line no-inline-assembly
                    result := add(data, 0x20)
                }
                return result;
            }
        }

        if (success && data.length == 32) {
            uint256 len = 0;
            while (len < data.length && data[len] >= 0x20 && data[len] <= 0x7E) {
                unchecked {
                    len++;
                }
            }

            if (len > 0) {
                /// @solidity memory-safe-assembly
                assembly { // solhint-disable-line no-inline-assembly
                    mstore(data, len)
                }
                return string(data);
            }
        }

        return StringUtil.toHex(address(token));
    }
}


// File contracts/routers/GenericRouter.sol


pragma solidity 0.8.17;





contract GenericRouter is EthReceiver {
    using UniERC20 for IERC20;
    using SafeERC20 for IERC20;

    error ZeroMinReturn();
    error ZeroReturnAmount();

    uint256 private constant _PARTIAL_FILL = 1 << 0;
    uint256 private constant _REQUIRES_EXTRA_ETH = 1 << 1;

    struct SwapDescription {
        IERC20 srcToken;
        IERC20 dstToken;
        address payable srcReceiver;
        address payable dstReceiver;
        uint256 amount;
        uint256 minReturnAmount;
        uint256 flags;
    }

    /// @notice Performs a swap, delegating all calls encoded in `data` to `executor`. See tests for usage examples
    /// @dev router keeps 1 wei of every token on the contract balance for gas optimisations reasons. This affects first swap of every token by leaving 1 wei on the contract.
    /// @param executor Aggregation executor that executes calls described in `data`
    /// @param desc Swap description
    /// @param permit Should contain valid permit that can be used in `IERC20Permit.permit` calls.
    /// @param data Encoded calls that `caller` should execute in between of swaps
    /// @return returnAmount Resulting token amount
    /// @return spentAmount Source token amount
    function swap(
        IAggregationExecutor executor,
        SwapDescription calldata desc,
        bytes calldata permit,
        bytes calldata data
    )
        external
        payable
        returns (
            uint256 returnAmount,
            uint256 spentAmount
        )
    {
        if (desc.minReturnAmount == 0) revert ZeroMinReturn();

        IERC20 srcToken = desc.srcToken;
        IERC20 dstToken = desc.dstToken;

        bool srcETH = srcToken.isETH();
        if (desc.flags & _REQUIRES_EXTRA_ETH != 0) {
            if (msg.value <= (srcETH ? desc.amount : 0)) revert RouterErrors.InvalidMsgValue();
        } else {
            if (msg.value != (srcETH ? desc.amount : 0)) revert RouterErrors.InvalidMsgValue();
        }

        if (!srcETH) {
            if (permit.length > 0) {
                srcToken.safePermit(permit);
            }
            srcToken.safeTransferFrom(msg.sender, desc.srcReceiver, desc.amount);
        }

        _execute(executor, msg.sender, desc.amount, data);

        spentAmount = desc.amount;
        // we leave 1 wei on the router for gas optimisations reasons
        returnAmount = dstToken.uniBalanceOf(address(this));
        if (returnAmount == 0) revert ZeroReturnAmount();
        unchecked { returnAmount--; }

        if (desc.flags & _PARTIAL_FILL != 0) {
            uint256 unspentAmount = srcToken.uniBalanceOf(address(this));
            if (unspentAmount > 1) {
                // we leave 1 wei on the router for gas optimisations reasons
                unchecked { unspentAmount--; }
                spentAmount -= unspentAmount;
                srcToken.uniTransfer(payable(msg.sender), unspentAmount);
            }
            if (returnAmount * desc.amount < desc.minReturnAmount * spentAmount) revert RouterErrors.ReturnAmountIsNotEnough();
        } else {
            if (returnAmount < desc.minReturnAmount) revert RouterErrors.ReturnAmountIsNotEnough();
        }

        address payable dstReceiver = (desc.dstReceiver == address(0)) ? payable(msg.sender) : desc.dstReceiver;
        dstToken.uniTransfer(dstReceiver, returnAmount);
    }

    function _execute(
        IAggregationExecutor executor,
        address srcTokenOwner,
        uint256 inputAmount,
        bytes calldata data
    ) private {
        bytes4 executeSelector = executor.execute.selector;
        /// @solidity memory-safe-assembly
        assembly {  // solhint-disable-line no-inline-assembly
            let ptr := mload(0x40)

            mstore(ptr, executeSelector)
            mstore(add(ptr, 0x04), srcTokenOwner)
            calldatacopy(add(ptr, 0x24), data.offset, data.length)
            mstore(add(add(ptr, 0x24), data.length), inputAmount)

            if iszero(call(gas(), executor, callvalue(), ptr, add(0x44, data.length), 0, 0)) {
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
        }
    }
}


// File contracts/routers/UnoswapRouter.sol


pragma solidity 0.8.17;




contract UnoswapRouter is EthReceiver {
    using SafeERC20 for IERC20;

    error ReservesCallFailed();
    error SwapAmountTooLarge();

    bytes4 private constant _TRANSFER_FROM_CALL_SELECTOR = 0x23b872dd;
    bytes4 private constant _WETH_DEPOSIT_CALL_SELECTOR = 0xd0e30db0;
    bytes4 private constant _WETH_WITHDRAW_CALL_SELECTOR = 0x2e1a7d4d;
    bytes4 private constant _ERC20_TRANSFER_CALL_SELECTOR = 0xa9059cbb;
    uint256 private constant _ADDRESS_MASK =   0x000000000000000000000000ffffffffffffffffffffffffffffffffffffffff;
    uint256 private constant _REVERSE_MASK =   0x8000000000000000000000000000000000000000000000000000000000000000;
    uint256 private constant _WETH_MASK =      0x4000000000000000000000000000000000000000000000000000000000000000;
    uint256 private constant _NUMERATOR_MASK = 0x0000000000000000ffffffff0000000000000000000000000000000000000000;
    /// @dev WETH address is network-specific and needs to be changed before deployment.
    /// It can not be moved to immutable as immutables are not supported in assembly
    address private constant _WETH = 0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7;
    bytes4 private constant _UNISWAP_PAIR_RESERVES_CALL_SELECTOR = 0x0902f1ac;
    bytes4 private constant _UNISWAP_PAIR_SWAP_CALL_SELECTOR = 0x022c0d9f;
    uint256 private constant _DENOMINATOR = 1e9;
    uint256 private constant _NUMERATOR_OFFSET = 160;
    uint256 private constant _MAX_SWAP_AMOUNT = (1 << 112) - 1;  // type(uint112).max;

    /// @notice Same as `unoswapTo` but calls permit first,
    /// allowing to approve token spending and make a swap in one transaction.
    /// @param recipient Address that will receive swapped funds
    /// @param srcToken Source token
    /// @param amount Amount of source tokens to swap
    /// @param minReturn Minimal allowed returnAmount to make transaction commit
    /// @param pools Pools chain used for swaps. Pools src and dst tokens should match to make swap happen
    /// @param permit Should contain valid permit that can be used in `IERC20Permit.permit` calls.
    /// See tests for examples
    function unoswapToWithPermit(
        address payable recipient,
        IERC20 srcToken,
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools,
        bytes calldata permit
    ) external returns(uint256 returnAmount) {
        srcToken.safePermit(permit);
        return _unoswap(recipient, srcToken, amount, minReturn, pools);
    }

    /// @notice Performs swap using Uniswap exchange. Wraps and unwraps ETH if required.
    /// Sending non-zero `msg.value` for anything but ETH swaps is prohibited
    /// @param recipient Address that will receive swapped funds
    /// @param srcToken Source token
    /// @param amount Amount of source tokens to swap
    /// @param minReturn Minimal allowed returnAmount to make transaction commit
    /// @param pools Pools chain used for swaps. Pools src and dst tokens should match to make swap happen
    function unoswapTo(
        address payable recipient,
        IERC20 srcToken,
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools
    ) external payable returns(uint256 returnAmount) {
        return _unoswap(recipient, srcToken, amount, minReturn, pools);
    }

    /// @notice Performs swap using Uniswap exchange. Wraps and unwraps ETH if required.
    /// Sending non-zero `msg.value` for anything but ETH swaps is prohibited
    /// @param srcToken Source token
    /// @param amount Amount of source tokens to swap
    /// @param minReturn Minimal allowed returnAmount to make transaction commit
    /// @param pools Pools chain used for swaps. Pools src and dst tokens should match to make swap happen
    function unoswap(
        IERC20 srcToken,
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools
    ) external payable returns(uint256 returnAmount) {
        return _unoswap(payable(msg.sender), srcToken, amount, minReturn, pools);
    }

    function _unoswap(
        address payable recipient,
        IERC20 srcToken,
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools
    ) private returns(uint256 returnAmount) {
        assembly {  // solhint-disable-line no-inline-assembly
            function reRevert() {
                returndatacopy(0, 0, returndatasize())
                revert(0, returndatasize())
            }

            function validateERC20Transfer(status) {
                if iszero(status) {
                    reRevert()
                }
                let success := or(
                    iszero(returndatasize()),                       // empty return data
                    and(gt(returndatasize(), 31), eq(mload(0), 1))  // true in return data
                )
                if iszero(success) {
                    mstore(0, 0xf27f64e400000000000000000000000000000000000000000000000000000000)  // ERC20TransferFailed()
                    revert(0, 4)
                }
            }

            function swap(emptyPtr, swapAmount, pair, reversed, numerator, to) -> ret {
                mstore(emptyPtr, _UNISWAP_PAIR_RESERVES_CALL_SELECTOR)
                if iszero(staticcall(gas(), pair, emptyPtr, 0x4, emptyPtr, 0x40)) {
                    reRevert()
                }
                if iszero(eq(returndatasize(), 0x60)) {
                    mstore(0, 0x85cd58dc00000000000000000000000000000000000000000000000000000000)  // ReservesCallFailed()
                    revert(0, 4)
                }

                let reserve0 := mload(emptyPtr)
                let reserve1 := mload(add(emptyPtr, 0x20))
                if reversed {
                    let tmp := reserve0
                    reserve0 := reserve1
                    reserve1 := tmp
                }
                // this will not overflow as reserve0, reserve1 and ret fit to 112 bit and numerator and _DENOMINATOR fit to 32 bit
                ret := mul(swapAmount, numerator)
                ret := div(mul(ret, reserve1), add(ret, mul(reserve0, _DENOMINATOR)))

                mstore(emptyPtr, _UNISWAP_PAIR_SWAP_CALL_SELECTOR)
                reversed := iszero(reversed)
                mstore(add(emptyPtr, 0x04), mul(ret, iszero(reversed)))
                mstore(add(emptyPtr, 0x24), mul(ret, reversed))
                mstore(add(emptyPtr, 0x44), to)
                mstore(add(emptyPtr, 0x64), 0x80)
                mstore(add(emptyPtr, 0x84), 0)
                if iszero(call(gas(), pair, 0, emptyPtr, 0xa4, 0, 0)) {
                    reRevert()
                }
            }

            // make sure that input amount fits in 112 bit
            if gt(amount, _MAX_SWAP_AMOUNT) {
                mstore(0, 0xcf0b4d3a00000000000000000000000000000000000000000000000000000000)  // SwapAmountTooLarge()
                revert(0, 4)
            }

            let emptyPtr := mload(0x40)
            mstore(0x40, add(emptyPtr, 0xc0))

            let poolsEndOffset := add(pools.offset, shl(5, pools.length))
            let rawPair := calldataload(pools.offset)
            switch srcToken
            case 0 {
                if iszero(eq(amount, callvalue())) {
                    mstore(0, 0x1841b4e100000000000000000000000000000000000000000000000000000000)  // InvalidMsgValue()
                    revert(0, 4)
                }

                mstore(emptyPtr, _WETH_DEPOSIT_CALL_SELECTOR)
                if iszero(call(gas(), _WETH, amount, emptyPtr, 0x4, 0, 0)) {
                    reRevert()
                }

                mstore(emptyPtr, _ERC20_TRANSFER_CALL_SELECTOR)
                mstore(add(emptyPtr, 0x4), and(rawPair, _ADDRESS_MASK))
                mstore(add(emptyPtr, 0x24), amount)
                if iszero(call(gas(), _WETH, 0, emptyPtr, 0x44, 0, 0)) {
                    reRevert()
                }
            }
            default {
                if callvalue() {
                    mstore(0, 0x1841b4e100000000000000000000000000000000000000000000000000000000)  // InvalidMsgValue()
                    revert(0, 4)
                }

                mstore(emptyPtr, _TRANSFER_FROM_CALL_SELECTOR)
                mstore(add(emptyPtr, 0x4), caller())
                mstore(add(emptyPtr, 0x24), and(rawPair, _ADDRESS_MASK))
                mstore(add(emptyPtr, 0x44), amount)
                validateERC20Transfer(
                    call(gas(), srcToken, 0, emptyPtr, 0x64, 0, 0x20)
                )
            }

            returnAmount := amount

            for {let i := add(pools.offset, 0x20)} lt(i, poolsEndOffset) {i := add(i, 0x20)} {
                let nextRawPair := calldataload(i)

                returnAmount := swap(
                    emptyPtr,
                    returnAmount,
                    and(rawPair, _ADDRESS_MASK),
                    and(rawPair, _REVERSE_MASK),
                    shr(_NUMERATOR_OFFSET, and(rawPair, _NUMERATOR_MASK)),
                    and(nextRawPair, _ADDRESS_MASK)
                )

                rawPair := nextRawPair
            }

            switch and(rawPair, _WETH_MASK)
            case 0 {
                returnAmount := swap(
                    emptyPtr,
                    returnAmount,
                    and(rawPair, _ADDRESS_MASK),
                    and(rawPair, _REVERSE_MASK),
                    shr(_NUMERATOR_OFFSET, and(rawPair, _NUMERATOR_MASK)),
                    recipient
                )
            }
            default {
                returnAmount := swap(
                    emptyPtr,
                    returnAmount,
                    and(rawPair, _ADDRESS_MASK),
                    and(rawPair, _REVERSE_MASK),
                    shr(_NUMERATOR_OFFSET, and(rawPair, _NUMERATOR_MASK)),
                    address()
                )

                mstore(emptyPtr, _WETH_WITHDRAW_CALL_SELECTOR)
                mstore(add(emptyPtr, 0x04), returnAmount)
                if iszero(call(gas(), _WETH, 0, emptyPtr, 0x24, 0, 0)) {
                    reRevert()
                }

                if iszero(call(gas(), recipient, returnAmount, 0, 0, 0, 0)) {
                    reRevert()
                }
            }
        }
        if (returnAmount < minReturn) revert RouterErrors.ReturnAmountIsNotEnough();
    }
}


// File @openzeppelin/contracts/interfaces/[email protected]

// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 *
 * _Available since v4.1._
 */
interface IERC1271 {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with _data
     */
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}


// File @1inch/solidity-utils/contracts/libraries/[email protected]


pragma solidity ^0.8.0;

library ECDSA {
    // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
    // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
    // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
    // signatures from current libraries generate a unique signature with an s-value in the lower half order.
    //
    // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
    // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
    // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
    // these malleable signatures as well.
    uint256 private constant _S_BOUNDARY = 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0 + 1;
    uint256 private constant _COMPACT_S_MASK = 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
    uint256 private constant _COMPACT_V_SHIFT = 255;

    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal view returns(address signer) {
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            if lt(s, _S_BOUNDARY) {
                let ptr := mload(0x40)

                mstore(ptr, hash)
                mstore(add(ptr, 0x20), v)
                mstore(add(ptr, 0x40), r)
                mstore(add(ptr, 0x60), s)
                mstore(0, 0)
                pop(staticcall(gas(), 0x1, ptr, 0x80, 0, 0x20))
                signer := mload(0)
            }
        }
    }

    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal view returns(address signer) {
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            let s := and(vs, _COMPACT_S_MASK)
            if lt(s, _S_BOUNDARY) {
                let ptr := mload(0x40)

                mstore(ptr, hash)
                mstore(add(ptr, 0x20), add(27, shr(_COMPACT_V_SHIFT, vs)))
                mstore(add(ptr, 0x40), r)
                mstore(add(ptr, 0x60), s)
                mstore(0, 0)
                pop(staticcall(gas(), 0x1, ptr, 0x80, 0, 0x20))
                signer := mload(0)
            }
        }
    }

    /// WARNING!!!
    /// There is a known signature malleability issue with two representations of signatures!
    /// Even though this function is able to verify both standard 65-byte and compact 64-byte EIP-2098 signatures
    /// one should never use raw signatures for any kind of invalidation logic in their code.
    /// As the standard and compact representations are interchangeable any invalidation logic that relies on
    /// signature uniqueness will get rekt.
    /// More info: https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-4h98-2769-gh6h
    function recover(bytes32 hash, bytes calldata signature) internal view returns(address signer) {
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            let ptr := mload(0x40)

            // memory[ptr:ptr+0x80] = (hash, v, r, s)
            switch signature.length
            case 65 {
                // memory[ptr+0x20:ptr+0x80] = (v, r, s)
                mstore(add(ptr, 0x20), byte(0, calldataload(add(signature.offset, 0x40))))
                calldatacopy(add(ptr, 0x40), signature.offset, 0x40)
            }
            case 64 {
                // memory[ptr+0x20:ptr+0x80] = (v, r, s)
                let vs := calldataload(add(signature.offset, 0x20))
                mstore(add(ptr, 0x20), add(27, shr(_COMPACT_V_SHIFT, vs)))
                calldatacopy(add(ptr, 0x40), signature.offset, 0x20)
                mstore(add(ptr, 0x60), and(vs, _COMPACT_S_MASK))
            }
            default {
                ptr := 0
            }

            if ptr {
                if lt(mload(add(ptr, 0x60)), _S_BOUNDARY) {
                    // memory[ptr:ptr+0x20] = (hash)
                    mstore(ptr, hash)

                    mstore(0, 0)
                    pop(staticcall(gas(), 0x1, ptr, 0x80, 0, 0x20))
                    signer := mload(0)
                }
            }
        }
    }

    function recoverOrIsValidSignature(address signer, bytes32 hash, bytes calldata signature) internal view returns(bool success) {
        if (signer == address(0)) return false;
        if ((signature.length == 64 || signature.length == 65) && recover(hash, signature) == signer) {
            return true;
        }
        return isValidSignature(signer, hash, signature);
    }

    function recoverOrIsValidSignature(address signer, bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal view returns(bool success) {
        if (signer == address(0)) return false;
        if (recover(hash, v, r, s) == signer) {
            return true;
        }
        return isValidSignature(signer, hash, v, r, s);
    }

    function recoverOrIsValidSignature(address signer, bytes32 hash, bytes32 r, bytes32 vs) internal view returns(bool success) {
        if (signer == address(0)) return false;
        if (recover(hash, r, vs) == signer) {
            return true;
        }
        return isValidSignature(signer, hash, r, vs);
    }

    function recoverOrIsValidSignature65(address signer, bytes32 hash, bytes32 r, bytes32 vs) internal view returns(bool success) {
        if (signer == address(0)) return false;
        if (recover(hash, r, vs) == signer) {
            return true;
        }
        return isValidSignature65(signer, hash, r, vs);
    }

    function isValidSignature(address signer, bytes32 hash, bytes calldata signature) internal view returns(bool success) {
        // (bool success, bytes memory data) = signer.staticcall(abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature));
        // return success && data.length >= 4 && abi.decode(data, (bytes4)) == IERC1271.isValidSignature.selector;
        bytes4 selector = IERC1271.isValidSignature.selector;
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            let ptr := mload(0x40)

            mstore(ptr, selector)
            mstore(add(ptr, 0x04), hash)
            mstore(add(ptr, 0x24), 0x40)
            mstore(add(ptr, 0x44), signature.length)
            calldatacopy(add(ptr, 0x64), signature.offset, signature.length)
            if staticcall(gas(), signer, ptr, add(0x64, signature.length), 0, 0x20) {
                success := and(eq(selector, mload(0)), eq(returndatasize(), 0x20))
            }
        }
    }

    function isValidSignature(address signer, bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal view returns(bool success) {
        bytes4 selector = IERC1271.isValidSignature.selector;
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            let ptr := mload(0x40)

            mstore(ptr, selector)
            mstore(add(ptr, 0x04), hash)
            mstore(add(ptr, 0x24), 0x40)
            mstore(add(ptr, 0x44), 65)
            mstore(add(ptr, 0x64), r)
            mstore(add(ptr, 0x84), s)
            mstore8(add(ptr, 0xa4), v)
            if staticcall(gas(), signer, ptr, 0xa5, 0, 0x20) {
                success := and(eq(selector, mload(0)), eq(returndatasize(), 0x20))
            }
        }
    }

    function isValidSignature(address signer, bytes32 hash, bytes32 r, bytes32 vs) internal view returns(bool success) {
        // (bool success, bytes memory data) = signer.staticcall(abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, abi.encodePacked(r, vs)));
        // return success && data.length >= 4 && abi.decode(data, (bytes4)) == IERC1271.isValidSignature.selector;
        bytes4 selector = IERC1271.isValidSignature.selector;
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            let ptr := mload(0x40)

            mstore(ptr, selector)
            mstore(add(ptr, 0x04), hash)
            mstore(add(ptr, 0x24), 0x40)
            mstore(add(ptr, 0x44), 64)
            mstore(add(ptr, 0x64), r)
            mstore(add(ptr, 0x84), vs)
            if staticcall(gas(), signer, ptr, 0xa4, 0, 0x20) {
                success := and(eq(selector, mload(0)), eq(returndatasize(), 0x20))
            }
        }
    }

    function isValidSignature65(address signer, bytes32 hash, bytes32 r, bytes32 vs) internal view returns(bool success) {
        // (bool success, bytes memory data) = signer.staticcall(abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, abi.encodePacked(r, vs & ~uint256(1 << 255), uint8(vs >> 255))));
        // return success && data.length >= 4 && abi.decode(data, (bytes4)) == IERC1271.isValidSignature.selector;
        bytes4 selector = IERC1271.isValidSignature.selector;
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            let ptr := mload(0x40)

            mstore(ptr, selector)
            mstore(add(ptr, 0x04), hash)
            mstore(add(ptr, 0x24), 0x40)
            mstore(add(ptr, 0x44), 65)
            mstore(add(ptr, 0x64), r)
            mstore(add(ptr, 0x84), and(vs, _COMPACT_S_MASK))
            mstore8(add(ptr, 0xa4), add(27, shr(_COMPACT_V_SHIFT, vs)))
            if staticcall(gas(), signer, ptr, 0xa5, 0, 0x20) {
                success := and(eq(selector, mload(0)), eq(returndatasize(), 0x20))
            }
        }
    }

    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 res) {
        // 32 is the length in bytes of hash, enforced by the type signature above
        // return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            mstore(0, 0x19457468657265756d205369676e6564204d6573736167653a0a333200000000) // "\x19Ethereum Signed Message:\n32"
            mstore(28, hash)
            res := keccak256(0, 60)
        }
    }

    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 res) {
        // return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            let ptr := mload(0x40)
            mstore(ptr, 0x1901000000000000000000000000000000000000000000000000000000000000) // "\x19\x01"
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            res := keccak256(ptr, 66)
        }
    }
}


// File @1inch/limit-order-protocol/contracts/[email protected]


pragma solidity 0.8.17;

library OrderLib {
    struct Order {
        uint256 salt;
        address makerAsset;
        address takerAsset;
        address maker;
        address receiver;
        address allowedSender;  // equals to Zero address on public orders
        uint256 makingAmount;
        uint256 takingAmount;
        uint256 offsets;
        // bytes makerAssetData;
        // bytes takerAssetData;
        // bytes getMakingAmount; // this.staticcall(abi.encodePacked(bytes, swapTakerAmount)) => (swapMakerAmount)
        // bytes getTakingAmount; // this.staticcall(abi.encodePacked(bytes, swapMakerAmount)) => (swapTakerAmount)
        // bytes predicate;       // this.staticcall(bytes) => (bool)
        // bytes permit;          // On first fill: permit.1.call(abi.encodePacked(permit.selector, permit.2))
        // bytes preInteraction;
        // bytes postInteraction;
        bytes interactions; // concat(makerAssetData, takerAssetData, getMakingAmount, getTakingAmount, predicate, permit, preIntercation, postInteraction)
    }

    bytes32 constant internal _LIMIT_ORDER_TYPEHASH = keccak256(
        "Order("
            "uint256 salt,"
            "address makerAsset,"
            "address takerAsset,"
            "address maker,"
            "address receiver,"
            "address allowedSender,"
            "uint256 makingAmount,"
            "uint256 takingAmount,"
            "uint256 offsets,"
            "bytes interactions"
        ")"
    );

    enum DynamicField {
        MakerAssetData,
        TakerAssetData,
        GetMakingAmount,
        GetTakingAmount,
        Predicate,
        Permit,
        PreInteraction,
        PostInteraction
    }

    function getterIsFrozen(bytes calldata getter) internal pure returns(bool) {
        return getter.length == 1 && getter[0] == "x";
    }

    function _get(Order calldata order, DynamicField field) private pure returns(bytes calldata) {
        uint256 bitShift = uint256(field) << 5; // field * 32
        return order.interactions[
            uint32((order.offsets << 32) >> bitShift):
            uint32(order.offsets >> bitShift)
        ];
    }

    function makerAssetData(Order calldata order) internal pure returns(bytes calldata) {
        return _get(order, DynamicField.MakerAssetData);
    }

    function takerAssetData(Order calldata order) internal pure returns(bytes calldata) {
        return _get(order, DynamicField.TakerAssetData);
    }

    function getMakingAmount(Order calldata order) internal pure returns(bytes calldata) {
        return _get(order, DynamicField.GetMakingAmount);
    }

    function getTakingAmount(Order calldata order) internal pure returns(bytes calldata) {
        return _get(order, DynamicField.GetTakingAmount);
    }

    function predicate(Order calldata order) internal pure returns(bytes calldata) {
        return _get(order, DynamicField.Predicate);
    }

    function permit(Order calldata order) internal pure returns(bytes calldata) {
        return _get(order, DynamicField.Permit);
    }

    function preInteraction(Order calldata order) internal pure returns(bytes calldata) {
        return _get(order, DynamicField.PreInteraction);
    }

    function postInteraction(Order calldata order) internal pure returns(bytes calldata) {
        return _get(order, DynamicField.PostInteraction);
    }

    function hash(Order calldata order, bytes32 domainSeparator) internal pure returns(bytes32 result) {
        bytes calldata interactions = order.interactions;
        bytes32 typehash = _LIMIT_ORDER_TYPEHASH;
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            let ptr := mload(0x40)

            // keccak256(abi.encode(_LIMIT_ORDER_TYPEHASH, orderWithoutInteractions, keccak256(order.interactions)));
            calldatacopy(ptr, interactions.offset, interactions.length)
            mstore(add(ptr, 0x140), keccak256(ptr, interactions.length))
            calldatacopy(add(ptr, 0x20), order, 0x120)
            mstore(ptr, typehash)
            result := keccak256(ptr, 0x160)
        }
        result = ECDSA.toTypedDataHash(domainSeparator, result);
    }
}


// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

// File @openzeppelin/contracts/utils/cryptography/[email protected]

// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}


// File @1inch/limit-order-protocol/contracts/helpers/[email protected]


pragma solidity 0.8.17;

/// @title A helper contract for calculations related to order amounts
library AmountCalculator {
    /// @notice Calculates maker amount
    /// @return Result Floored maker amount
    function getMakingAmount(uint256 orderMakerAmount, uint256 orderTakerAmount, uint256 swapTakerAmount) internal pure returns(uint256) {
        return swapTakerAmount * orderMakerAmount / orderTakerAmount;
    }

    /// @notice Calculates taker amount
    /// @return Result Ceiled taker amount
    function getTakingAmount(uint256 orderMakerAmount, uint256 orderTakerAmount, uint256 swapMakerAmount) internal pure returns(uint256) {
        return (swapMakerAmount * orderTakerAmount + orderMakerAmount - 1) / orderMakerAmount;
    }
}


// File @1inch/limit-order-protocol/contracts/interfaces/[email protected]


pragma solidity 0.8.17;

interface IOrderMixin {
    /**
     * @notice Returns unfilled amount for order. Throws if order does not exist
     * @param orderHash Order's hash. Can be obtained by the `hashOrder` function
     * @return amount Unfilled amount
     */
    function remaining(bytes32 orderHash) external view returns(uint256 amount);

    /**
     * @notice Returns unfilled amount for order
     * @param orderHash Order's hash. Can be obtained by the `hashOrder` function
     * @return rawAmount Unfilled amount of order plus one if order exists. Otherwise 0
     */
    function remainingRaw(bytes32 orderHash) external view returns(uint256 rawAmount);

    /**
     * @notice Same as `remainingRaw` but for multiple orders
     * @param orderHashes Array of hashes
     * @return rawAmounts Array of amounts for each order plus one if order exists or 0 otherwise
     */
    function remainingsRaw(bytes32[] memory orderHashes) external view returns(uint256[] memory rawAmounts);

    /**
     * @notice Checks order predicate
     * @param order Order to check predicate for
     * @return result Predicate evaluation result. True if predicate allows to fill the order, false otherwise
     */
    function checkPredicate(OrderLib.Order calldata order) external view returns(bool result);

    /**
     * @notice Returns order hash according to EIP712 standard
     * @param order Order to get hash for
     * @return orderHash Hash of the order
     */
    function hashOrder(OrderLib.Order calldata order) external view returns(bytes32);

    /**
     * @notice Delegates execution to custom implementation. Could be used to validate if `transferFrom` works properly
     * @dev The function always reverts and returns the simulation results in revert data.
     * @param target Addresses that will be delegated
     * @param data Data that will be passed to delegatee
     */
    function simulate(address target, bytes calldata data) external;

    /**
     * @notice Cancels order.
     * @dev Order is cancelled by setting remaining amount to _ORDER_FILLED value
     * @param order Order quote to cancel
     * @return orderRemaining Unfilled amount of order before cancellation
     * @return orderHash Hash of the filled order
     */
    function cancelOrder(OrderLib.Order calldata order) external returns(uint256 orderRemaining, bytes32 orderHash);

    /**
     * @notice Fills an order. If one doesn't exist (first fill) it will be created using order.makerAssetData
     * @param order Order quote to fill
     * @param signature Signature to confirm quote ownership
     * @param interaction A call data for InteractiveNotificationReceiver. Taker may execute interaction after getting maker assets and before sending taker assets.
     * @param makingAmount Making amount
     * @param takingAmount Taking amount
     * @param skipPermitAndThresholdAmount Specifies maximum allowed takingAmount when takingAmount is zero, otherwise specifies minimum allowed makingAmount. Top-most bit specifies whether taker wants to skip maker's permit.
     * @return actualMakingAmount Actual amount transferred from maker to taker
     * @return actualTakingAmount Actual amount transferred from taker to maker
     * @return orderHash Hash of the filled order
     */
    function fillOrder(
        OrderLib.Order calldata order,
        bytes calldata signature,
        bytes calldata interaction,
        uint256 makingAmount,
        uint256 takingAmount,
        uint256 skipPermitAndThresholdAmount
    ) external payable returns(uint256 actualMakingAmount, uint256 actualTakingAmount, bytes32 orderHash);

    /**
     * @notice Same as `fillOrderTo` but calls permit first,
     * allowing to approve token spending and make a swap in one transaction.
     * Also allows to specify funds destination instead of `msg.sender`
     * @dev See tests for examples
     * @param order Order quote to fill
     * @param signature Signature to confirm quote ownership
     * @param interaction A call data for InteractiveNotificationReceiver. Taker may execute interaction after getting maker assets and before sending taker assets.
     * @param makingAmount Making amount
     * @param takingAmount Taking amount
     * @param skipPermitAndThresholdAmount Specifies maximum allowed takingAmount when takingAmount is zero, otherwise specifies minimum allowed makingAmount. Top-most bit specifies whether taker wants to skip maker's permit.
     * @param target Address that will receive swap funds
     * @param permit Should consist of abiencoded token address and encoded `IERC20Permit.permit` call.
     * @return actualMakingAmount Actual amount transferred from maker to taker
     * @return actualTakingAmount Actual amount transferred from taker to maker
     * @return orderHash Hash of the filled order
     */
    function fillOrderToWithPermit(
        OrderLib.Order calldata order,
        bytes calldata signature,
        bytes calldata interaction,
        uint256 makingAmount,
        uint256 takingAmount,
        uint256 skipPermitAndThresholdAmount,
        address target,
        bytes calldata permit
    ) external returns(uint256 actualMakingAmount, uint256 actualTakingAmount, bytes32 orderHash);

    /**
     * @notice Same as `fillOrder` but allows to specify funds destination instead of `msg.sender`
     * @param order_ Order quote to fill
     * @param signature Signature to confirm quote ownership
     * @param interaction A call data for InteractiveNotificationReceiver. Taker may execute interaction after getting maker assets and before sending taker assets.
     * @param makingAmount Making amount
     * @param takingAmount Taking amount
     * @param skipPermitAndThresholdAmount Specifies maximum allowed takingAmount when takingAmount is zero, otherwise specifies minimum allowed makingAmount. Top-most bit specifies whether taker wants to skip maker's permit.
     * @param target Address that will receive swap funds
     * @return actualMakingAmount Actual amount transferred from maker to taker
     * @return actualTakingAmount Actual amount transferred from taker to maker
     * @return orderHash Hash of the filled order
     */
    function fillOrderTo(
        OrderLib.Order calldata order_,
        bytes calldata signature,
        bytes calldata interaction,
        uint256 makingAmount,
        uint256 takingAmount,
        uint256 skipPermitAndThresholdAmount,
        address target
    ) external payable returns(uint256 actualMakingAmount, uint256 actualTakingAmount, bytes32 orderHash);
}


// File @1inch/limit-order-protocol/contracts/libraries/[email protected]


pragma solidity 0.8.17;

/// @title Library with gas efficient alternatives to `abi.decode`
library ArgumentsDecoder {
    error IncorrectDataLength();

    function decodeUint256(bytes calldata data, uint256 offset) internal pure returns(uint256 value) {
        unchecked { if (data.length < offset + 32) revert IncorrectDataLength(); }
        // no memory ops inside so this insertion is automatically memory safe
        assembly { // solhint-disable-line no-inline-assembly
            value := calldataload(add(data.offset, offset))
        }
    }

    function decodeSelector(bytes calldata data) internal pure returns(bytes4 value) {
        if (data.length < 4) revert IncorrectDataLength();
        // no memory ops inside so this insertion is automatically memory safe
        assembly { // solhint-disable-line no-inline-assembly
            value := calldataload(data.offset)
        }
    }

    function decodeTailCalldata(bytes calldata data, uint256 tailOffset) internal pure returns(bytes calldata args) {
        if (data.length < tailOffset) revert IncorrectDataLength();
        // no memory ops inside so this insertion is automatically memory safe
        assembly {  // solhint-disable-line no-inline-assembly
            args.offset := add(data.offset, tailOffset)
            args.length := sub(data.length, tailOffset)
        }
    }

    function decodeTargetAndCalldata(bytes calldata data) internal pure returns(address target, bytes calldata args) {
        if (data.length < 20) revert IncorrectDataLength();
        // no memory ops inside so this insertion is automatically memory safe
        assembly {  // solhint-disable-line no-inline-assembly
            target := shr(96, calldataload(data.offset))
            args.offset := add(data.offset, 20)
            args.length := sub(data.length, 20)
        }
    }
}


// File @1inch/limit-order-protocol/contracts/interfaces/[email protected]


pragma solidity 0.8.17;

/// @title Interface for interactor which acts between `maker => taker` and `taker => maker` transfers.
interface PreInteractionNotificationReceiver {
    function fillOrderPreInteraction(
        bytes32 orderHash,
        address maker,
        address taker,
        uint256 makingAmount,
        uint256 takingAmount,
        uint256 remainingAmount,
        bytes memory interactiveData
    ) external;
}

interface PostInteractionNotificationReceiver {
    /// @notice Callback method that gets called after taker transferred funds to maker but before
    /// the opposite transfer happened
    function fillOrderPostInteraction(
        bytes32 orderHash,
        address maker,
        address taker,
        uint256 makingAmount,
        uint256 takingAmount,
        uint256 remainingAmount,
        bytes memory interactiveData
    ) external;
}

interface InteractionNotificationReceiver {
    function fillOrderInteraction(
        address taker,
        uint256 makingAmount,
        uint256 takingAmount,
        bytes memory interactiveData
    ) external returns(uint256 offeredTakingAmount);
}


// File @1inch/limit-order-protocol/contracts/helpers/[email protected]


pragma solidity 0.8.17;

/// @title A helper contract for managing nonce of tx sender
contract NonceManager {
    error AdvanceNonceFailed();
    event NonceIncreased(address indexed maker, uint256 newNonce);

    mapping(address => uint256) public nonce;

    /// @notice Advances nonce by one
    function increaseNonce() external {
        advanceNonce(1);
    }

    /// @notice Advances nonce by specified amount
    function advanceNonce(uint8 amount) public {
        if (amount == 0) revert AdvanceNonceFailed();
        uint256 newNonce = nonce[msg.sender] + amount;
        nonce[msg.sender] = newNonce;
        emit NonceIncreased(msg.sender, newNonce);
    }

    /// @notice Checks if `makerAddress` has specified `makerNonce`
    /// @return Result True if `makerAddress` has specified nonce. Otherwise, false
    function nonceEquals(address makerAddress, uint256 makerNonce) public view returns(bool) {
        return nonce[makerAddress] == makerNonce;
    }
}


// File @1inch/limit-order-protocol/contracts/helpers/[email protected]


pragma solidity 0.8.17;


/// @title A helper contract for executing boolean functions on arbitrary target call results
contract PredicateHelper is NonceManager {
    using ArgumentsDecoder for bytes;

    error ArbitraryStaticCallFailed();

    /// @notice Calls every target with corresponding data
    /// @return Result True if call to any target returned True. Otherwise, false
    function or(uint256 offsets, bytes calldata data) public view returns(bool) {
        uint256 current;
        uint256 previous;
        for (uint256 i = 0; (current = uint32(offsets >> i)) != 0; i += 32) {
            (bool success, uint256 res) = _selfStaticCall(data[previous:current]);
            if (success && res == 1) {
                return true;
            }
            previous = current;
        }
        return false;
    }

    /// @notice Calls every target with corresponding data
    /// @return Result True if calls to all targets returned True. Otherwise, false
    function and(uint256 offsets, bytes calldata data) public view returns(bool) {
        uint256 current;
        uint256 previous;
        for (uint256 i = 0; (current = uint32(offsets >> i)) != 0; i += 32) {
            (bool success, uint256 res) = _selfStaticCall(data[previous:current]);
            if (!success || res != 1) {
                return false;
            }
            previous = current;
        }
        return true;
    }

    /// @notice Calls target with specified data and tests if it's equal to the value
    /// @param value Value to test
    /// @return Result True if call to target returns the same value as `value`. Otherwise, false
    function eq(uint256 value, bytes calldata data) public view returns(bool) {
        (bool success, uint256 res) = _selfStaticCall(data);
        return success && res == value;
    }

    /// @notice Calls target with specified data and tests if it's lower than value
    /// @param value Value to test
    /// @return Result True if call to target returns value which is lower than `value`. Otherwise, false
    function lt(uint256 value, bytes calldata data) public view returns(bool) {
        (bool success, uint256 res) = _selfStaticCall(data);
        return success && res < value;
    }

    /// @notice Calls target with specified data and tests if it's bigger than value
    /// @param value Value to test
    /// @return Result True if call to target returns value which is bigger than `value`. Otherwise, false
    function gt(uint256 value, bytes calldata data) public view returns(bool) {
        (bool success, uint256 res) = _selfStaticCall(data);
        return success && res > value;
    }

    /// @notice Checks passed time against block timestamp
    /// @return Result True if current block timestamp is lower than `time`. Otherwise, false
    function timestampBelow(uint256 time) public view returns(bool) {
        return block.timestamp < time;  // solhint-disable-line not-rely-on-time
    }

    /// @notice Performs an arbitrary call to target with data
    /// @return Result Bytes transmuted to uint256
    function arbitraryStaticCall(address target, bytes calldata data) public view returns(uint256) {
        (bool success, uint256 res) = _staticcallForUint(target, data);
        if (!success) revert ArbitraryStaticCallFailed();
        return res;
    }

    function timestampBelowAndNonceEquals(uint256 timeNonceAccount) public view returns(bool) {
        uint256 _time = uint48(timeNonceAccount >> 208);
        uint256 _nonce = uint48(timeNonceAccount >> 160);
        address _account = address(uint160(timeNonceAccount));
        return timestampBelow(_time) && nonceEquals(_account, _nonce);
    }

    function _selfStaticCall(bytes calldata data) internal view returns(bool, uint256) {
        uint256 selector = uint32(data.decodeSelector());
        uint256 arg = data.decodeUint256(4);

        // special case for the most often used predicate
        if (selector == uint32(this.timestampBelowAndNonceEquals.selector)) {  // 0x2cc2878d
            return (true, timestampBelowAndNonceEquals(arg) ? 1 : 0);
        }

        if (selector < uint32(this.arbitraryStaticCall.selector)) {  // 0xbf15fcd8
            if (selector < uint32(this.eq.selector)) {  // 0x6fe7b0ba
                if (selector == uint32(this.gt.selector)) {  // 0x4f38e2b8
                    return (true, gt(arg, data.decodeTailCalldata(100)) ? 1 : 0);
                } else if (selector == uint32(this.timestampBelow.selector)) {  // 0x63592c2b
                    return (true, timestampBelow(arg) ? 1 : 0);
                }
            } else {
                if (selector == uint32(this.eq.selector)) {  // 0x6fe7b0ba
                    return (true, eq(arg, data.decodeTailCalldata(100)) ? 1 : 0);
                } else if (selector == uint32(this.or.selector)) {  // 0x74261145
                    return (true, or(arg, data.decodeTailCalldata(100)) ? 1 : 0);
                }
            }
        } else {
            if (selector < uint32(this.lt.selector)) {  // 0xca4ece22
                if (selector == uint32(this.arbitraryStaticCall.selector)) {  // 0xbf15fcd8
                    return (true, arbitraryStaticCall(address(uint160(arg)), data.decodeTailCalldata(100)));
                } else if (selector == uint32(this.and.selector)) {  // 0xbfa75143
                    return (true, and(arg, data.decodeTailCalldata(100)) ? 1 : 0);
                }
            } else {
                if (selector == uint32(this.lt.selector)) {  // 0xca4ece22
                    return (true, lt(arg, data.decodeTailCalldata(100)) ? 1 : 0);
                } else if (selector == uint32(this.nonceEquals.selector)) {  // 0xcf6fc6e3
                    return (true, nonceEquals(address(uint160(arg)), data.decodeUint256(0x24)) ? 1 : 0);
                }
            }
        }

        return _staticcallForUint(address(this), data);
    }

    function _staticcallForUint(address target, bytes calldata input) private view returns(bool success, uint256 res) {
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            let data := mload(0x40)

            calldatacopy(data, input.offset, input.length)
            success := staticcall(gas(), target, data, input.length, 0x0, 0x20)
            success := and(success, eq(returndatasize(), 32))
            if success {
                res := mload(0)
            }
        }
    }
}


// File @1inch/limit-order-protocol/contracts/libraries/[email protected]


pragma solidity 0.8.17;

library Errors {
    error InvalidMsgValue();
    error ETHTransferFailed();
}


// File @1inch/limit-order-protocol/contracts/[email protected]


pragma solidity 0.8.17;











/// @title Regular Limit Order mixin
abstract contract OrderMixin is IOrderMixin, EIP712, PredicateHelper {
    using SafeERC20 for IERC20;
    using ArgumentsDecoder for bytes;
    using OrderLib for OrderLib.Order;

    error UnknownOrder();
    error AccessDenied();
    error AlreadyFilled();
    error PermitLengthTooLow();
    error ZeroTargetIsForbidden();
    error RemainingAmountIsZero();
    error PrivateOrder();
    error BadSignature();
    error ReentrancyDetected();
    error PredicateIsNotTrue();
    error OnlyOneAmountShouldBeZero();
    error TakingAmountTooHigh();
    error MakingAmountTooLow();
    error SwapWithZeroAmount();
    error TransferFromMakerToTakerFailed();
    error TransferFromTakerToMakerFailed();
    error WrongAmount();
    error WrongGetter();
    error GetAmountCallFailed();
    error TakingAmountIncreased();
    error SimulationResults(bool success, bytes res);

    /// @notice Emitted every time order gets filled, including partial fills
    event OrderFilled(
        address indexed maker,
        bytes32 orderHash,
        uint256 remaining
    );

    /// @notice Emitted when order gets cancelled
    event OrderCanceled(
        address indexed maker,
        bytes32 orderHash,
        uint256 remainingRaw
    );

    uint256 constant private _ORDER_DOES_NOT_EXIST = 0;
    uint256 constant private _ORDER_FILLED = 1;
    uint256 constant private _SKIP_PERMIT_FLAG = 1 << 255;
    uint256 constant private _THRESHOLD_MASK = ~_SKIP_PERMIT_FLAG;

    IWETH private immutable _WETH;  // solhint-disable-line var-name-mixedcase
    /// @notice Stores unfilled amounts for each order plus one.
    /// Therefore 0 means order doesn't exist and 1 means order was filled
    mapping(bytes32 => uint256) private _remaining;

    constructor(IWETH weth) {
        _WETH = weth;
    }

    /**
     * @notice See {IOrderMixin-remaining}.
     */
    function remaining(bytes32 orderHash) external view returns(uint256 /* amount */) {
        uint256 amount = _remaining[orderHash];
        if (amount == _ORDER_DOES_NOT_EXIST) revert UnknownOrder();
        unchecked { return amount - 1; }
    }

    /**
     * @notice See {IOrderMixin-remainingRaw}.
     */
    function remainingRaw(bytes32 orderHash) external view returns(uint256 /* rawAmount */) {
        return _remaining[orderHash];
    }

    /**
     * @notice See {IOrderMixin-remainingsRaw}.
     */
    function remainingsRaw(bytes32[] memory orderHashes) external view returns(uint256[] memory /* rawAmounts */) {
        uint256[] memory results = new uint256[](orderHashes.length);
        for (uint256 i = 0; i < orderHashes.length; i++) {
            results[i] = _remaining[orderHashes[i]];
        }
        return results;
    }

    /**
     * @notice See {IOrderMixin-simulate}.
     */
    function simulate(address target, bytes calldata data) external {
        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory result) = target.delegatecall(data);
        revert SimulationResults(success, result);
    }

    /**
     * @notice See {IOrderMixin-cancelOrder}.
     */
    function cancelOrder(OrderLib.Order calldata order) external returns(uint256 orderRemaining, bytes32 orderHash) {
        if (order.maker != msg.sender) revert AccessDenied();

        orderHash = hashOrder(order);
        orderRemaining = _remaining[orderHash];
        if (orderRemaining == _ORDER_FILLED) revert AlreadyFilled();
        emit OrderCanceled(msg.sender, orderHash, orderRemaining);
        _remaining[orderHash] = _ORDER_FILLED;
    }

    /**
     * @notice See {IOrderMixin-fillOrder}.
     */
    function fillOrder(
        OrderLib.Order calldata order,
        bytes calldata signature,
        bytes calldata interaction,
        uint256 makingAmount,
        uint256 takingAmount,
        uint256 skipPermitAndThresholdAmount
    ) external payable returns(uint256 /* actualMakingAmount */, uint256 /* actualTakingAmount */, bytes32 /* orderHash */) {
        return fillOrderTo(order, signature, interaction, makingAmount, takingAmount, skipPermitAndThresholdAmount, msg.sender);
    }

    /**
     * @notice See {IOrderMixin-fillOrderToWithPermit}.
     */
    function fillOrderToWithPermit(
        OrderLib.Order calldata order,
        bytes calldata signature,
        bytes calldata interaction,
        uint256 makingAmount,
        uint256 takingAmount,
        uint256 skipPermitAndThresholdAmount,
        address target,
        bytes calldata permit
    ) external returns(uint256 /* actualMakingAmount */, uint256 /* actualTakingAmount */, bytes32 /* orderHash */) {
        if (permit.length < 20) revert PermitLengthTooLow();
        {  // Stack too deep
            (address token, bytes calldata permitData) = permit.decodeTargetAndCalldata();
            IERC20(token).safePermit(permitData);
        }
        return fillOrderTo(order, signature, interaction, makingAmount, takingAmount, skipPermitAndThresholdAmount, target);
    }

    /**
     * @notice See {IOrderMixin-fillOrderTo}.
     */
    function fillOrderTo(
        OrderLib.Order calldata order_,
        bytes calldata signature,
        bytes calldata interaction,
        uint256 makingAmount,
        uint256 takingAmount,
        uint256 skipPermitAndThresholdAmount,
        address target
    ) public payable returns(uint256 actualMakingAmount, uint256 actualTakingAmount, bytes32 orderHash) {
        if (target == address(0)) revert ZeroTargetIsForbidden();
        orderHash = hashOrder(order_);

        OrderLib.Order calldata order = order_; // Helps with "Stack too deep"
        actualMakingAmount = makingAmount;
        actualTakingAmount = takingAmount;

        uint256 remainingMakingAmount = _remaining[orderHash];
        if (remainingMakingAmount == _ORDER_FILLED) revert RemainingAmountIsZero();
        if (order.allowedSender != address(0) && order.allowedSender != msg.sender) revert PrivateOrder();
        if (remainingMakingAmount == _ORDER_DOES_NOT_EXIST) {
            // First fill: validate order and permit maker asset
            if (!ECDSA.recoverOrIsValidSignature(order.maker, orderHash, signature)) revert BadSignature();
            remainingMakingAmount = order.makingAmount;

            bytes calldata permit = order.permit();
            if (skipPermitAndThresholdAmount & _SKIP_PERMIT_FLAG == 0 && permit.length >= 20) {
                // proceed only if taker is willing to execute permit and its length is enough to store address
                (address token, bytes calldata permitCalldata) = permit.decodeTargetAndCalldata();
                IERC20(token).safePermit(permitCalldata);
                if (_remaining[orderHash] != _ORDER_DOES_NOT_EXIST) revert ReentrancyDetected();
            }
        } else {
            unchecked { remainingMakingAmount -= 1; }
        }

        // Check if order is valid
        if (order.predicate().length > 0) {
            if (!checkPredicate(order)) revert PredicateIsNotTrue();
        }

        // Compute maker and taker assets amount
        if ((actualTakingAmount == 0) == (actualMakingAmount == 0)) {
            revert OnlyOneAmountShouldBeZero();
        } else if (actualTakingAmount == 0) {
            if (actualMakingAmount > remainingMakingAmount) {
                actualMakingAmount = remainingMakingAmount;
            }
            actualTakingAmount = _getTakingAmount(order.getTakingAmount(), order.makingAmount, actualMakingAmount, order.takingAmount, remainingMakingAmount, orderHash);
            uint256 thresholdAmount = skipPermitAndThresholdAmount & _THRESHOLD_MASK;
            // check that actual rate is not worse than what was expected
            // actualTakingAmount / actualMakingAmount <= thresholdAmount / makingAmount
            if (actualTakingAmount * makingAmount > thresholdAmount * actualMakingAmount) revert TakingAmountTooHigh();
        } else {
            actualMakingAmount = _getMakingAmount(order.getMakingAmount(), order.takingAmount, actualTakingAmount, order.makingAmount, remainingMakingAmount, orderHash);
            if (actualMakingAmount > remainingMakingAmount) {
                actualMakingAmount = remainingMakingAmount;
                actualTakingAmount = _getTakingAmount(order.getTakingAmount(), order.makingAmount, actualMakingAmount, order.takingAmount, remainingMakingAmount, orderHash);
                if (actualTakingAmount > takingAmount) revert TakingAmountIncreased();
            }
            uint256 thresholdAmount = skipPermitAndThresholdAmount & _THRESHOLD_MASK;
            // check that actual rate is not worse than what was expected
            // actualMakingAmount / actualTakingAmount >= thresholdAmount / takingAmount
            if (actualMakingAmount * takingAmount < thresholdAmount * actualTakingAmount) revert MakingAmountTooLow();
        }

        if (actualMakingAmount == 0 || actualTakingAmount == 0) revert SwapWithZeroAmount();

        // Update remaining amount in storage
        unchecked {
            remainingMakingAmount = remainingMakingAmount - actualMakingAmount;
            _remaining[orderHash] = remainingMakingAmount + 1;
        }
        emit OrderFilled(order_.maker, orderHash, remainingMakingAmount);

        // Maker can handle funds interactively
        if (order.preInteraction().length >= 20) {
            // proceed only if interaction length is enough to store address
            (address interactionTarget, bytes calldata interactionData) = order.preInteraction().decodeTargetAndCalldata();
            PreInteractionNotificationReceiver(interactionTarget).fillOrderPreInteraction(
                orderHash, order.maker, msg.sender, actualMakingAmount, actualTakingAmount, remainingMakingAmount, interactionData
            );
        }

        // Maker => Taker
        if (!_callTransferFrom(
            order.makerAsset,
            order.maker,
            target,
            actualMakingAmount,
            order.makerAssetData()
        )) revert TransferFromMakerToTakerFailed();

        if (interaction.length >= 20) {
            // proceed only if interaction length is enough to store address
            (address interactionTarget, bytes calldata interactionData) = interaction.decodeTargetAndCalldata();
            uint256 offeredTakingAmount = InteractionNotificationReceiver(interactionTarget).fillOrderInteraction(
                msg.sender, actualMakingAmount, actualTakingAmount, interactionData
            );

            if (offeredTakingAmount > actualTakingAmount &&
                !OrderLib.getterIsFrozen(order.getMakingAmount()) &&
                !OrderLib.getterIsFrozen(order.getTakingAmount()))
            {
                actualTakingAmount = offeredTakingAmount;
            }
        }

        // Taker => Maker
        if (order.takerAsset == address(_WETH) && msg.value > 0) {
            if (msg.value < actualTakingAmount) revert Errors.InvalidMsgValue();
            if (msg.value > actualTakingAmount) {
                unchecked {
                    (bool success, ) = msg.sender.call{value: msg.value - actualTakingAmount}("");  // solhint-disable-line avoid-low-level-calls
                    if (!success) revert Errors.ETHTransferFailed();
                }
            }
            _WETH.deposit{ value: actualTakingAmount }();
            _WETH.transfer(order.receiver == address(0) ? order.maker : order.receiver, actualTakingAmount);
        } else {
            if (msg.value != 0) revert Errors.InvalidMsgValue();
            if (!_callTransferFrom(
                order.takerAsset,
                msg.sender,
                order.receiver == address(0) ? order.maker : order.receiver,
                actualTakingAmount,
                order.takerAssetData()
            )) revert TransferFromTakerToMakerFailed();
        }

        // Maker can handle funds interactively
        if (order.postInteraction().length >= 20) {
            // proceed only if interaction length is enough to store address
            (address interactionTarget, bytes calldata interactionData) = order.postInteraction().decodeTargetAndCalldata();
            PostInteractionNotificationReceiver(interactionTarget).fillOrderPostInteraction(
                 orderHash, order.maker, msg.sender, actualMakingAmount, actualTakingAmount, remainingMakingAmount, interactionData
            );
        }
    }

    /**
     * @notice See {IOrderMixin-checkPredicate}.
     */
    function checkPredicate(OrderLib.Order calldata order) public view returns(bool) {
        (bool success, uint256 res) = _selfStaticCall(order.predicate());
        return success && res == 1;
    }

    /**
     * @notice See {IOrderMixin-hashOrder}.
     */
    function hashOrder(OrderLib.Order calldata order) public view returns(bytes32) {
        return order.hash(_domainSeparatorV4());
    }

    function _callTransferFrom(address asset, address from, address to, uint256 amount, bytes calldata input) private returns(bool success) {
        bytes4 selector = IERC20.transferFrom.selector;
        /// @solidity memory-safe-assembly
        assembly { // solhint-disable-line no-inline-assembly
            let data := mload(0x40)

            mstore(data, selector)
            mstore(add(data, 0x04), from)
            mstore(add(data, 0x24), to)
            mstore(add(data, 0x44), amount)
            calldatacopy(add(data, 0x64), input.offset, input.length)
            let status := call(gas(), asset, 0, data, add(0x64, input.length), 0x0, 0x20)
            success := and(status, or(iszero(returndatasize()), and(gt(returndatasize(), 31), eq(mload(0), 1))))
        }
    }

    function _getMakingAmount(
        bytes calldata getter,
        uint256 orderTakingAmount,
        uint256 requestedTakingAmount,
        uint256 orderMakingAmount,
        uint256 remainingMakingAmount,
        bytes32 orderHash
    ) private view returns(uint256) {
        if (getter.length == 0) {
            // Linear proportion
            return AmountCalculator.getMakingAmount(orderMakingAmount, orderTakingAmount, requestedTakingAmount);
        }
        return _callGetter(getter, orderTakingAmount, requestedTakingAmount, orderMakingAmount, remainingMakingAmount, orderHash);
    }

    function _getTakingAmount(
        bytes calldata getter,
        uint256 orderMakingAmount,
        uint256 requestedMakingAmount,
        uint256 orderTakingAmount,
        uint256 remainingMakingAmount,
        bytes32 orderHash
    ) private view returns(uint256) {
        if (getter.length == 0) {
            // Linear proportion
            return AmountCalculator.getTakingAmount(orderMakingAmount, orderTakingAmount, requestedMakingAmount);
        }
        return _callGetter(getter, orderMakingAmount, requestedMakingAmount, orderTakingAmount, remainingMakingAmount, orderHash);
    }

    function _callGetter(
        bytes calldata getter,
        uint256 orderExpectedAmount,
        uint256 requestedAmount,
        uint256 orderResultAmount,
        uint256 remainingMakingAmount,
        bytes32 orderHash
    ) private view returns(uint256) {
        if (getter.length == 1) {
            if (OrderLib.getterIsFrozen(getter)) {
                // On "x" getter calldata only exact amount is allowed
                if (requestedAmount != orderExpectedAmount) revert WrongAmount();
                return orderResultAmount;
            } else {
                revert WrongGetter();
            }
        } else {
            (address target, bytes calldata data) = getter.decodeTargetAndCalldata();
            (bool success, bytes memory result) = target.staticcall(abi.encodePacked(data, requestedAmount, remainingMakingAmount, orderHash));
            if (!success || result.length != 32) revert GetAmountCallFailed();
            return abi.decode(result, (uint256));
        }
    }
}


// File @1inch/solidity-utils/contracts/[email protected]


pragma solidity ^0.8.0;

abstract contract OnlyWethReceiver is EthReceiver {
    address private immutable _WETH;  // solhint-disable-line var-name-mixedcase

    constructor(address weth) {
        _WETH = address(weth);
    }

    function _receive() internal virtual override {
        if (msg.sender != _WETH) revert EthDepositRejected();
    }
}


// File @1inch/limit-order-protocol/contracts/[email protected]


pragma solidity 0.8.17;

library OrderRFQLib {
    struct OrderRFQ {
        uint256 info;  // lowest 64 bits is the order id, next 64 bits is the expiration timestamp
        address makerAsset;
        address takerAsset;
        address maker;
        address allowedSender;  // equals to Zero address on public orders
        uint256 makingAmount;
        uint256 takingAmount;
    }

    bytes32 constant internal _LIMIT_ORDER_RFQ_TYPEHASH = keccak256(
        "OrderRFQ("
            "uint256 info,"
            "address makerAsset,"
            "address takerAsset,"
            "address maker,"
            "address allowedSender,"
            "uint256 makingAmount,"
            "uint256 takingAmount"
        ")"
    );

    function hash(OrderRFQ memory order, bytes32 domainSeparator) internal pure returns(bytes32 result) {
        bytes32 typehash = _LIMIT_ORDER_RFQ_TYPEHASH;
        bytes32 orderHash;
        // this assembly is memory unsafe :(
        assembly { // solhint-disable-line no-inline-assembly
            let ptr := sub(order, 0x20)

            // keccak256(abi.encode(_LIMIT_ORDER_RFQ_TYPEHASH, order));
            let tmp := mload(ptr)
            mstore(ptr, typehash)
            orderHash := keccak256(ptr, 0x100)
            mstore(ptr, tmp)
        }
        return ECDSA.toTypedDataHash(domainSeparator, orderHash);
    }
}


// File @1inch/limit-order-protocol/contracts/[email protected]


pragma solidity 0.8.17;







/// @title RFQ Limit Order mixin
abstract contract OrderRFQMixin is EIP712, OnlyWethReceiver {
    using SafeERC20 for IERC20;
    using OrderRFQLib for OrderRFQLib.OrderRFQ;

    error RFQZeroTargetIsForbidden();
    error RFQPrivateOrder();
    error RFQBadSignature();
    error OrderExpired();
    error MakingAmountExceeded();
    error TakingAmountExceeded();
    error RFQSwapWithZeroAmount();
    error InvalidatedOrder();

    /**
     * @notice Emitted when RFQ gets filled
     * @param orderHash Hash of the order
     * @param makingAmount Amount of the maker asset that was transferred from maker to taker
     */
    event OrderFilledRFQ(
        bytes32 orderHash,
        uint256 makingAmount
    );

    uint256 private constant _RAW_CALL_GAS_LIMIT = 5000;
    uint256 private constant _MAKER_AMOUNT_FLAG = 1 << 255;
    uint256 private constant _SIGNER_SMART_CONTRACT_HINT = 1 << 254;
    uint256 private constant _IS_VALID_SIGNATURE_65_BYTES = 1 << 253;
    uint256 private constant _UNWRAP_WETH_FLAG = 1 << 252;
    uint256 private constant _AMOUNT_MASK = ~(
        _MAKER_AMOUNT_FLAG |
        _SIGNER_SMART_CONTRACT_HINT |
        _IS_VALID_SIGNATURE_65_BYTES |
        _UNWRAP_WETH_FLAG
    );

    IWETH private immutable _WETH;  // solhint-disable-line var-name-mixedcase
    mapping(address => mapping(uint256 => uint256)) private _invalidator;

    constructor(IWETH weth) OnlyWethReceiver(address(weth)) {
        _WETH = weth;
    }

    /**
     * @notice Returns bitmask for double-spend invalidators based on lowest byte of order.info and filled quotes
     * @param maker Maker address
     * @param slot Slot number to return bitmask for
     * @return result Each bit represents whether corresponding was already invalidated
     */
    function invalidatorForOrderRFQ(address maker, uint256 slot) external view returns(uint256 /* result */) {
        return _invalidator[maker][slot];
    }

    /**
     * @notice Cancels order's quote
     * @param orderInfo Order info (only order id in lowest 64 bits is used)
     */
    function cancelOrderRFQ(uint256 orderInfo) external {
        _invalidateOrder(msg.sender, orderInfo, 0);
    }

    /// @notice Cancels multiple order's quotes
    function cancelOrderRFQ(uint256 orderInfo, uint256 additionalMask) external {
        _invalidateOrder(msg.sender, orderInfo, additionalMask);
    }

    /**
     * @notice Fills order's quote, fully or partially (whichever is possible)
     * @param order Order quote to fill
     * @param signature Signature to confirm quote ownership
     * @param flagsAndAmount Fill configuration flags with amount packed in one slot
     * @return filledMakingAmount Actual amount transferred from maker to taker
     * @return filledTakingAmount Actual amount transferred from taker to maker
     * @return orderHash Hash of the filled order
     */
    function fillOrderRFQ(
        OrderRFQLib.OrderRFQ memory order,
        bytes calldata signature,
        uint256 flagsAndAmount
    ) external payable returns(uint256 /* filledMakingAmount */, uint256 /* filledTakingAmount */, bytes32 /* orderHash */) {
        return fillOrderRFQTo(order, signature, flagsAndAmount, msg.sender);
    }

    /**
     * @notice Fills order's quote, fully or partially, with compact signature
     * @param order Order quote to fill
     * @param r R component of signature
     * @param vs VS component of signature
     * @param flagsAndAmount Fill configuration flags with amount packed in one slot
     * - Bits 0-252 contain the amount to fill
     * - Bit 253 is used to indicate whether signature is 64-bit (0) or 65-bit (1)
     * - Bit 254 is used to indicate whether smart contract (1) signed the order or not (0)
     * - Bit 255 is used to indicate whether maker (1) or taker amount (0) is given in the amount parameter
     * @return filledMakingAmount Actual amount transferred from maker to taker
     * @return filledTakingAmount Actual amount transferred from taker to maker
     * @return orderHash Hash of the filled order
     */
    function fillOrderRFQCompact(
        OrderRFQLib.OrderRFQ memory order,
        bytes32 r,
        bytes32 vs,
        uint256 flagsAndAmount
    ) external payable returns(uint256 filledMakingAmount, uint256 filledTakingAmount, bytes32 orderHash) {
        orderHash = order.hash(_domainSeparatorV4());
        if (flagsAndAmount & _SIGNER_SMART_CONTRACT_HINT != 0) {
            if (flagsAndAmount & _IS_VALID_SIGNATURE_65_BYTES != 0) {
                if (!ECDSA.isValidSignature65(order.maker, orderHash, r, vs)) revert RFQBadSignature();
            } else {
                if (!ECDSA.isValidSignature(order.maker, orderHash, r, vs)) revert RFQBadSignature();
            }
        } else {
            if(!ECDSA.recoverOrIsValidSignature(order.maker, orderHash, r, vs)) revert RFQBadSignature();
        }

        (filledMakingAmount, filledTakingAmount) = _fillOrderRFQTo(order, flagsAndAmount, msg.sender);
        emit OrderFilledRFQ(orderHash, filledMakingAmount);
    }

    /**
     * @notice Same as `fillOrderRFQTo` but calls permit first.
     * It allows to approve token spending and make a swap in one transaction.
     * Also allows to specify funds destination instead of `msg.sender`
     * @param order Order quote to fill
     * @param signature Signature to confirm quote ownership
     * @param flagsAndAmount Fill configuration flags with amount packed in one slot
     * @param target Address that will receive swap funds
     * @param permit Should consist of abiencoded token address and encoded `IERC20Permit.permit` call.
     * @return filledMakingAmount Actual amount transferred from maker to taker
     * @return filledTakingAmount Actual amount transferred from taker to maker
     * @return orderHash Hash of the filled order
     * @dev See tests for examples
     */
    function fillOrderRFQToWithPermit(
        OrderRFQLib.OrderRFQ memory order,
        bytes calldata signature,
        uint256 flagsAndAmount,
        address target,
        bytes calldata permit
    ) external returns(uint256 /* filledMakingAmount */, uint256 /* filledTakingAmount */, bytes32 /* orderHash */) {
        IERC20(order.takerAsset).safePermit(permit);
        return fillOrderRFQTo(order, signature, flagsAndAmount, target);
    }

    /**
     * @notice Same as `fillOrderRFQ` but allows to specify funds destination instead of `msg.sender`
     * @param order Order quote to fill
     * @param signature Signature to confirm quote ownership
     * @param flagsAndAmount Fill configuration flags with amount packed in one slot
     * @param target Address that will receive swap funds
     * @return filledMakingAmount Actual amount transferred from maker to taker
     * @return filledTakingAmount Actual amount transferred from taker to maker
     * @return orderHash Hash of the filled order
     */
    function fillOrderRFQTo(
        OrderRFQLib.OrderRFQ memory order,
        bytes calldata signature,
        uint256 flagsAndAmount,
        address target
    ) public payable returns(uint256 filledMakingAmount, uint256 filledTakingAmount, bytes32 orderHash) {
        orderHash = order.hash(_domainSeparatorV4());
        if (flagsAndAmount & _SIGNER_SMART_CONTRACT_HINT != 0) {
            if (flagsAndAmount & _IS_VALID_SIGNATURE_65_BYTES != 0 && signature.length != 65) revert RFQBadSignature();
            if (!ECDSA.isValidSignature(order.maker, orderHash, signature)) revert RFQBadSignature();
        } else {
            if(!ECDSA.recoverOrIsValidSignature(order.maker, orderHash, signature)) revert RFQBadSignature();
        }
        (filledMakingAmount, filledTakingAmount) = _fillOrderRFQTo(order, flagsAndAmount, target);
        emit OrderFilledRFQ(orderHash, filledMakingAmount);
    }

    function _fillOrderRFQTo(
        OrderRFQLib.OrderRFQ memory order,
        uint256 flagsAndAmount,
        address target
    ) private returns(uint256 makingAmount, uint256 takingAmount) {
        if (target == address(0)) revert RFQZeroTargetIsForbidden();

        address maker = order.maker;

        // Validate order
        if (order.allowedSender != address(0) && order.allowedSender != msg.sender) revert RFQPrivateOrder();

        {  // Stack too deep
            uint256 info = order.info;
            // Check time expiration
            uint256 expiration = uint128(info) >> 64;
            if (expiration != 0 && block.timestamp > expiration) revert OrderExpired(); // solhint-disable-line not-rely-on-time
            _invalidateOrder(maker, info, 0);
        }

        {  // Stack too deep
            uint256 orderMakingAmount = order.makingAmount;
            uint256 orderTakingAmount = order.takingAmount;
            uint256 amount = flagsAndAmount & _AMOUNT_MASK;
            // Compute partial fill if needed
            if (amount == 0) {
                // zero amount means whole order
                makingAmount = orderMakingAmount;
                takingAmount = orderTakingAmount;
            }
            else if (flagsAndAmount & _MAKER_AMOUNT_FLAG != 0) {
                if (amount > orderMakingAmount) revert MakingAmountExceeded();
                makingAmount = amount;
                takingAmount = AmountCalculator.getTakingAmount(orderMakingAmount, orderTakingAmount, makingAmount);
            }
            else {
                if (amount > orderTakingAmount) revert TakingAmountExceeded();
                takingAmount = amount;
                makingAmount = AmountCalculator.getMakingAmount(orderMakingAmount, orderTakingAmount, takingAmount);
            }
        }

        if (makingAmount == 0 || takingAmount == 0) revert RFQSwapWithZeroAmount();

        // Maker => Taker
        if (order.makerAsset == address(_WETH) && flagsAndAmount & _UNWRAP_WETH_FLAG != 0) {
            _WETH.transferFrom(maker, address(this), makingAmount);
            _WETH.withdraw(makingAmount);
            // solhint-disable-next-line avoid-low-level-calls
            (bool success, ) = target.call{value: makingAmount, gas: _RAW_CALL_GAS_LIMIT}("");
            if (!success) revert Errors.ETHTransferFailed();
        } else {
            IERC20(order.makerAsset).safeTransferFrom(maker, target, makingAmount);
        }

        // Taker => Maker
        if (order.takerAsset == address(_WETH) && msg.value > 0) {
            if (msg.value != takingAmount) revert Errors.InvalidMsgValue();
            _WETH.deposit{ value: takingAmount }();
            _WETH.transfer(maker, takingAmount);
        } else {
            if (msg.value != 0) revert Errors.InvalidMsgValue();
            IERC20(order.takerAsset).safeTransferFrom(msg.sender, maker, takingAmount);
        }
    }

    function _invalidateOrder(address maker, uint256 orderInfo, uint256 additionalMask) private {
        uint256 invalidatorSlot = uint64(orderInfo) >> 8;
        uint256 invalidatorBits = (1 << uint8(orderInfo)) | additionalMask;
        mapping(uint256 => uint256) storage invalidatorStorage = _invalidator[maker];
        uint256 invalidator = invalidatorStorage[invalidatorSlot];
        if (invalidator & invalidatorBits == invalidatorBits) revert InvalidatedOrder();
        invalidatorStorage[invalidatorSlot] = invalidator | invalidatorBits;
    }
}


// File @openzeppelin/contracts/utils/[email protected]

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


// File @openzeppelin/contracts/access/[email protected]

// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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);
    }
}


// File contracts/AggregationRouterV5.sol


pragma solidity 0.8.17;









/// @notice Main contract incorporates a number of routers to perform swaps and limit orders protocol to fill limit orders
contract AggregationRouterV5 is EIP712("1inch Aggregation Router", "5"), Ownable,
    ClipperRouter, GenericRouter, UnoswapRouter, UnoswapV3Router, OrderMixin, OrderRFQMixin
{
    using UniERC20 for IERC20;

    error ZeroAddress();

    /**
     * @dev Sets the wrapped eth token and clipper exhange interface
     * Both values are immutable: they can only be set once during
     * construction.
     */
    constructor(IWETH weth)
        UnoswapV3Router(weth)
        ClipperRouter(weth)
        OrderMixin(weth)
        OrderRFQMixin(weth)
    {
        if (address(weth) == address(0)) revert ZeroAddress();
    }

    /**
     * @notice Retrieves funds accidently sent directly to the contract address
     * @param token ERC20 token to retrieve
     * @param amount amount to retrieve
     */
    function rescueFunds(IERC20 token, uint256 amount) external onlyOwner {
        token.uniTransfer(payable(msg.sender), amount);
    }

    /**
     * @notice Destroys the contract and sends eth to sender. Use with caution.
     * The only case when the use of the method is justified is if there is an exploit found.
     * And the damage from the exploit is greater than from just an urgent contract change.
     */
    function destroy() external onlyOwner {
        selfdestruct(payable(msg.sender));
    }

    function _receive() internal override(EthReceiver, OnlyWethReceiver) {
        EthReceiver._receive();
    }
}

Contract ABI

[{"inputs":[{"internalType":"contract IWETH","name":"weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessDenied","type":"error"},{"inputs":[],"name":"AdvanceNonceFailed","type":"error"},{"inputs":[],"name":"AlreadyFilled","type":"error"},{"inputs":[],"name":"ArbitraryStaticCallFailed","type":"error"},{"inputs":[],"name":"BadPool","type":"error"},{"inputs":[],"name":"BadSignature","type":"error"},{"inputs":[],"name":"ETHTransferFailed","type":"error"},{"inputs":[],"name":"ETHTransferFailed","type":"error"},{"inputs":[],"name":"EmptyPools","type":"error"},{"inputs":[],"name":"EthDepositRejected","type":"error"},{"inputs":[],"name":"GetAmountCallFailed","type":"error"},{"inputs":[],"name":"IncorrectDataLength","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"InvalidMsgValue","type":"error"},{"inputs":[],"name":"InvalidMsgValue","type":"error"},{"inputs":[],"name":"InvalidatedOrder","type":"error"},{"inputs":[],"name":"MakingAmountExceeded","type":"error"},{"inputs":[],"name":"MakingAmountTooLow","type":"error"},{"inputs":[],"name":"OnlyOneAmountShouldBeZero","type":"error"},{"inputs":[],"name":"OrderExpired","type":"error"},{"inputs":[],"name":"PermitLengthTooLow","type":"error"},{"inputs":[],"name":"PredicateIsNotTrue","type":"error"},{"inputs":[],"name":"PrivateOrder","type":"error"},{"inputs":[],"name":"RFQBadSignature","type":"error"},{"inputs":[],"name":"RFQPrivateOrder","type":"error"},{"inputs":[],"name":"RFQSwapWithZeroAmount","type":"error"},{"inputs":[],"name":"RFQZeroTargetIsForbidden","type":"error"},{"inputs":[],"name":"ReentrancyDetected","type":"error"},{"inputs":[],"name":"RemainingAmountIsZero","type":"error"},{"inputs":[],"name":"ReservesCallFailed","type":"error"},{"inputs":[],"name":"ReturnAmountIsNotEnough","type":"error"},{"inputs":[],"name":"SafePermitBadLength","type":"error"},{"inputs":[],"name":"SafeTransferFailed","type":"error"},{"inputs":[],"name":"SafeTransferFromFailed","type":"error"},{"inputs":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"res","type":"bytes"}],"name":"SimulationResults","type":"error"},{"inputs":[],"name":"SwapAmountTooLarge","type":"error"},{"inputs":[],"name":"SwapWithZeroAmount","type":"error"},{"inputs":[],"name":"TakingAmountExceeded","type":"error"},{"inputs":[],"name":"TakingAmountIncreased","type":"error"},{"inputs":[],"name":"TakingAmountTooHigh","type":"error"},{"inputs":[],"name":"TransferFromMakerToTakerFailed","type":"error"},{"inputs":[],"name":"TransferFromTakerToMakerFailed","type":"error"},{"inputs":[],"name":"UnknownOrder","type":"error"},{"inputs":[],"name":"WrongAmount","type":"error"},{"inputs":[],"name":"WrongGetter","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"inputs":[],"name":"ZeroMinReturn","type":"error"},{"inputs":[],"name":"ZeroReturnAmount","type":"error"},{"inputs":[],"name":"ZeroTargetIsForbidden","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":false,"internalType":"uint256","name":"newNonce","type":"uint256"}],"name":"NonceIncreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":false,"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"remainingRaw","type":"uint256"}],"name":"OrderCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":false,"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"remaining","type":"uint256"}],"name":"OrderFilled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"makingAmount","type":"uint256"}],"name":"OrderFilledRFQ","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"}],"name":"advanceNonce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"offsets","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"and","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"arbitraryStaticCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"address","name":"makerAsset","type":"address"},{"internalType":"address","name":"takerAsset","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"allowedSender","type":"address"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"},{"internalType":"uint256","name":"offsets","type":"uint256"},{"internalType":"bytes","name":"interactions","type":"bytes"}],"internalType":"struct OrderLib.Order","name":"order","type":"tuple"}],"name":"cancelOrder","outputs":[{"internalType":"uint256","name":"orderRemaining","type":"uint256"},{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"orderInfo","type":"uint256"}],"name":"cancelOrderRFQ","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"orderInfo","type":"uint256"},{"internalType":"uint256","name":"additionalMask","type":"uint256"}],"name":"cancelOrderRFQ","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"address","name":"makerAsset","type":"address"},{"internalType":"address","name":"takerAsset","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"allowedSender","type":"address"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"},{"internalType":"uint256","name":"offsets","type":"uint256"},{"internalType":"bytes","name":"interactions","type":"bytes"}],"internalType":"struct OrderLib.Order","name":"order","type":"tuple"}],"name":"checkPredicate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IClipperExchangeInterface","name":"clipperExchange","type":"address"},{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"contract IERC20","name":"dstToken","type":"address"},{"internalType":"uint256","name":"inputAmount","type":"uint256"},{"internalType":"uint256","name":"outputAmount","type":"uint256"},{"internalType":"uint256","name":"goodUntil","type":"uint256"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"vs","type":"bytes32"}],"name":"clipperSwap","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IClipperExchangeInterface","name":"clipperExchange","type":"address"},{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"contract IERC20","name":"dstToken","type":"address"},{"internalType":"uint256","name":"inputAmount","type":"uint256"},{"internalType":"uint256","name":"outputAmount","type":"uint256"},{"internalType":"uint256","name":"goodUntil","type":"uint256"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"vs","type":"bytes32"}],"name":"clipperSwapTo","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IClipperExchangeInterface","name":"clipperExchange","type":"address"},{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"contract IERC20","name":"dstToken","type":"address"},{"internalType":"uint256","name":"inputAmount","type":"uint256"},{"internalType":"uint256","name":"outputAmount","type":"uint256"},{"internalType":"uint256","name":"goodUntil","type":"uint256"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"vs","type":"bytes32"},{"internalType":"bytes","name":"permit","type":"bytes"}],"name":"clipperSwapToWithPermit","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"destroy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"eq","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"address","name":"makerAsset","type":"address"},{"internalType":"address","name":"takerAsset","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"allowedSender","type":"address"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"},{"internalType":"uint256","name":"offsets","type":"uint256"},{"internalType":"bytes","name":"interactions","type":"bytes"}],"internalType":"struct OrderLib.Order","name":"order","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"interaction","type":"bytes"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"},{"internalType":"uint256","name":"skipPermitAndThresholdAmount","type":"uint256"}],"name":"fillOrder","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"info","type":"uint256"},{"internalType":"address","name":"makerAsset","type":"address"},{"internalType":"address","name":"takerAsset","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"allowedSender","type":"address"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"}],"internalType":"struct OrderRFQLib.OrderRFQ","name":"order","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"flagsAndAmount","type":"uint256"}],"name":"fillOrderRFQ","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"info","type":"uint256"},{"internalType":"address","name":"makerAsset","type":"address"},{"internalType":"address","name":"takerAsset","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"allowedSender","type":"address"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"}],"internalType":"struct OrderRFQLib.OrderRFQ","name":"order","type":"tuple"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"vs","type":"bytes32"},{"internalType":"uint256","name":"flagsAndAmount","type":"uint256"}],"name":"fillOrderRFQCompact","outputs":[{"internalType":"uint256","name":"filledMakingAmount","type":"uint256"},{"internalType":"uint256","name":"filledTakingAmount","type":"uint256"},{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"info","type":"uint256"},{"internalType":"address","name":"makerAsset","type":"address"},{"internalType":"address","name":"takerAsset","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"allowedSender","type":"address"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"}],"internalType":"struct OrderRFQLib.OrderRFQ","name":"order","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"flagsAndAmount","type":"uint256"},{"internalType":"address","name":"target","type":"address"}],"name":"fillOrderRFQTo","outputs":[{"internalType":"uint256","name":"filledMakingAmount","type":"uint256"},{"internalType":"uint256","name":"filledTakingAmount","type":"uint256"},{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"info","type":"uint256"},{"internalType":"address","name":"makerAsset","type":"address"},{"internalType":"address","name":"takerAsset","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"allowedSender","type":"address"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"}],"internalType":"struct OrderRFQLib.OrderRFQ","name":"order","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"flagsAndAmount","type":"uint256"},{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"permit","type":"bytes"}],"name":"fillOrderRFQToWithPermit","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"address","name":"makerAsset","type":"address"},{"internalType":"address","name":"takerAsset","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"allowedSender","type":"address"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"},{"internalType":"uint256","name":"offsets","type":"uint256"},{"internalType":"bytes","name":"interactions","type":"bytes"}],"internalType":"struct OrderLib.Order","name":"order_","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"interaction","type":"bytes"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"},{"internalType":"uint256","name":"skipPermitAndThresholdAmount","type":"uint256"},{"internalType":"address","name":"target","type":"address"}],"name":"fillOrderTo","outputs":[{"internalType":"uint256","name":"actualMakingAmount","type":"uint256"},{"internalType":"uint256","name":"actualTakingAmount","type":"uint256"},{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"address","name":"makerAsset","type":"address"},{"internalType":"address","name":"takerAsset","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"allowedSender","type":"address"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"},{"internalType":"uint256","name":"offsets","type":"uint256"},{"internalType":"bytes","name":"interactions","type":"bytes"}],"internalType":"struct OrderLib.Order","name":"order","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"interaction","type":"bytes"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"},{"internalType":"uint256","name":"skipPermitAndThresholdAmount","type":"uint256"},{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"permit","type":"bytes"}],"name":"fillOrderToWithPermit","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"gt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"address","name":"makerAsset","type":"address"},{"internalType":"address","name":"takerAsset","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"allowedSender","type":"address"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"},{"internalType":"uint256","name":"offsets","type":"uint256"},{"internalType":"bytes","name":"interactions","type":"bytes"}],"internalType":"struct OrderLib.Order","name":"order","type":"tuple"}],"name":"hashOrder","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"increaseNonce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"maker","type":"address"},{"internalType":"uint256","name":"slot","type":"uint256"}],"name":"invalidatorForOrderRFQ","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"lt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"makerAddress","type":"address"},{"internalType":"uint256","name":"makerNonce","type":"uint256"}],"name":"nonceEquals","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"offsets","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"or","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"remaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"remainingRaw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"orderHashes","type":"bytes32[]"}],"name":"remainingsRaw","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"simulate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IAggregationExecutor","name":"executor","type":"address"},{"components":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"contract IERC20","name":"dstToken","type":"address"},{"internalType":"address payable","name":"srcReceiver","type":"address"},{"internalType":"address payable","name":"dstReceiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturnAmount","type":"uint256"},{"internalType":"uint256","name":"flags","type":"uint256"}],"internalType":"struct GenericRouter.SwapDescription","name":"desc","type":"tuple"},{"internalType":"bytes","name":"permit","type":"bytes"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"},{"internalType":"uint256","name":"spentAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"timestampBelow","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timeNonceAccount","type":"uint256"}],"name":"timestampBelowAndNonceEquals","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"uint256[]","name":"pools","type":"uint256[]"}],"name":"uniswapV3Swap","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"int256","name":"amount0Delta","type":"int256"},{"internalType":"int256","name":"amount1Delta","type":"int256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"uniswapV3SwapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"uint256[]","name":"pools","type":"uint256[]"}],"name":"uniswapV3SwapTo","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"uint256[]","name":"pools","type":"uint256[]"},{"internalType":"bytes","name":"permit","type":"bytes"}],"name":"uniswapV3SwapToWithPermit","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"uint256[]","name":"pools","type":"uint256[]"}],"name":"unoswap","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"uint256[]","name":"pools","type":"uint256[]"}],"name":"unoswapTo","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"uint256[]","name":"pools","type":"uint256[]"},{"internalType":"bytes","name":"permit","type":"bytes"}],"name":"unoswapToWithPermit","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101e06040523480156200001257600080fd5b5060405162005ab138038062005ab18339810160408190526200003591620001d3565b604080518082018252601881527f31696e6368204167677265676174696f6e20526f75746572000000000000000060208083019182528351808501855260018152603560f81b908201529151902060e08190527fceebf77a833b30520287ddd9478ff51abbdffa30aa90a8d655dba0e8a79ce0c16101008190524660a081815285517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818701819052818801959095526060810193909352608080840192909252308382018190528651808503909201825260c09384019096528051940193909320909252919052610120528080808080620001313362000183565b6001600160a01b039081166101405290811661016052908116610180529081166101a0529081166101c05281166200017c5760405163d92e233d60e01b815260040160405180910390fd5b5062000205565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620001e657600080fd5b81516001600160a01b0381168114620001fe57600080fd5b9392505050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516157d4620002dd6000396000818161375e015281816137f30152818161387701528181613976015281816139e00152613a75015260005050600081816120fd015281816121e1015261225a015260008181612f3e01526130ac01526000818161090a0152818161098601528181610acb01528181610bbb0152610c02015260006131bb0152600061320a015260006131e50152600061313e015260006131680152600061319201526157d46000f3fe6080604052600436106102f65760003560e01c80637e54f0921161018f578063bf15fcd8116100e1578063d365c6951161008a578063f2fde38b11610064578063f2fde38b14610859578063f78dc25314610879578063fa461e331461088c57600080fd5b8063d365c69514610813578063e449022e14610833578063e5d7bde61461084657600080fd5b8063c805a666116100bb578063c805a66614610799578063ca4ece22146107b9578063cf6fc6e3146107d957600080fd5b8063bf15fcd814610744578063bfa7514314610764578063c53a02921461078457600080fd5b8063942461bb11610143578063bc80f1a81161011d578063bc80f1a8146106f1578063bd61951d14610704578063bddccd351461072457600080fd5b8063942461bb146106915780639570eeee146106be578063bc1ed74c146106d157600080fd5b806383197ef01161017457806383197ef01461064157806384bd6d29146106565780638da5cb5b1461066957600080fd5b80637e54f092146105f4578063825caba11461062157600080fd5b80635a0998431161024857806370ae92d2116101fc57806372c244a8116101d657806372c244a81461059457806374261145146105b457806378e3214f146105d457600080fd5b806370ae92d21461053257806370ccbd311461055f578063715018a61461057f57600080fd5b806363592c2b1161022d57806363592c2b146104d25780636c838250146104f25780636fe7b0ba1461051257600080fd5b80635a099843146104ac57806362e238bb146104bf57600080fd5b80632d9a56f6116102aa5780633eca9c0a116102845780633eca9c0a1461041b5780634f38e2b81461044957806356f161241461046957600080fd5b80632d9a56f6146103bb57806337e7316f146103db5780633c15fd91146103fb57600080fd5b806312aa3caf116102db57806312aa3caf146103435780632521b9301461036b5780632cc2878d1461038b57600080fd5b80630502b1c51461030a578063093d4fa51461033057600080fd5b36610305576103036108ac565b005b600080fd5b61031d61031836600461483f565b6108b6565b6040519081526020015b60405180910390f35b61031d61033e3660046148a9565b6108d0565b610356610351366004614975565b610d16565b60408051928352602083019190915201610327565b34801561037757600080fd5b5061031d610386366004614a17565b610fd1565b34801561039757600080fd5b506103ab6103a6366004614abf565b611001565b6040519015158152602001610327565b3480156103c757600080fd5b506103566103d6366004614af1565b61104b565b3480156103e757600080fd5b5061031d6103f6366004614af1565b61114a565b34801561040757600080fd5b5061031d610416366004614a17565b611164565b61042e610429366004614c15565b611188565b60408051938452602084019290925290820152606001610327565b34801561045557600080fd5b506103ab610464366004614c72565b6111aa565b34801561047557600080fd5b5061031d610484366004614cbe565b6001600160a01b03919091166000908152600360209081526040808320938352929052205490565b61042e6104ba366004614cea565b6111d5565b61042e6104cd366004614d60565b61132b565b3480156104de57600080fd5b506103ab6104ed366004614abf565b421090565b3480156104fe57600080fd5b506103ab61050d366004614af1565b611355565b34801561051e57600080fd5b506103ab61052d366004614c72565b611384565b34801561053e57600080fd5b5061031d61054d366004614e0c565b60016020526000908152604090205481565b34801561056b57600080fd5b5061042e61057a366004614e29565b6113aa565b34801561058b57600080fd5b506103036113f1565b3480156105a057600080fd5b506103036105af366004614ecd565b611403565b3480156105c057600080fd5b506103ab6105cf366004614c72565b6114b2565b3480156105e057600080fd5b506103036105ef366004614cbe565b611524565b34801561060057600080fd5b5061031d61060f366004614abf565b60009081526002602052604090205490565b34801561062d57600080fd5b5061030361063c366004614abf565b611544565b34801561064d57600080fd5b50610303611553565b61031d610664366004614ef0565b61155e565b34801561067557600080fd5b506000546040516001600160a01b039091168152602001610327565b34801561069d57600080fd5b506106b16106ac366004614f67565b611571565b6040516103279190615001565b61042e6106cc366004615045565b61162a565b3480156106dd57600080fd5b5061031d6106ec366004614abf565b611767565b61031d6106ff36600461483f565b6117b7565b34801561071057600080fd5b5061030361071f366004615082565b6117c6565b34801561073057600080fd5b5061030361073f3660046150be565b611867565b34801561075057600080fd5b5061031d61075f366004615082565b611872565b34801561077057600080fd5b506103ab61077f366004614c72565b6118bd565b34801561079057600080fd5b50610303611930565b3480156107a557600080fd5b5061031d6107b43660046150e0565b61193a565b3480156107c557600080fd5b506103ab6107d4366004614c72565b611971565b3480156107e557600080fd5b506103ab6107f4366004614cbe565b6001600160a01b03919091166000908152600160205260409020541490565b34801561081f57600080fd5b5061042e61082e3660046151a4565b611998565b61031d610841366004615295565b611a2c565b61042e6108543660046152e8565b611a3b565b34801561086557600080fd5b50610303610874366004614e0c565b6124cb565b61031d6108873660046153ac565b612558565b34801561089857600080fd5b506103036108a7366004615416565b612573565b6108b4612785565b565b60006108c63387878787876127be565b9695505050505050565b60006001600160a01b0388161580156109085786341461090357604051631841b4e160e01b815260040160405180910390fd5b610a24565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316896001600160a01b0316036109f057506001341561096357604051631841b4e160e01b815260040160405180910390fd5b6040516323b872dd60e01b808252336004830152306024830152604482018990527f000000000000000000000000000000000000000000000000000000000000000091632e1a7d4d60e01b9060008060648382885af16109c6573d6000823e3d81fd5b8181528a60048201526000806024836000885af16109e7573d6000823e3d81fd5b50505050610a24565b3415610a0f57604051631841b4e160e01b815260040160405180910390fd5b610a246001600160a01b038a16338d8a612b30565b8015610ab85760008b905060006327a9b42460e01b90506040518181528a60048201528960248201528860448201528760648201528c60848201528560ff1c601b0160a48201528660c48201526001600160ff1b03861660e482015261012061010482015264a62929c86960d31b610143820152600080610149838d875af1610ab0573d6000823e3d81fd5b505050610d07565b6001600160a01b0388161580610aff57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316886001600160a01b0316145b15610c75576040517f4cb6864c00000000000000000000000000000000000000000000000000000000808252600482018b90526024820189905260448201889052606482018790528c918a1560018114610b5e57306084830152610b65565b8d60848301525b508560ff1c601b0160a48201528660c48201526001600160ff1b03861660e482015261012061010482015264a62929c86960d31b610143820152600080610149836000875af1610bb8573d6000823e3d81fd5b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168a6001600160a01b031603610c6e57604051630d0e30db60e41b8082527f00000000000000000000000000000000000000000000000000000000000000009163a9059cbb60e01b906000806004838f885af1610c42573d6000823e3d81fd5b8181528f60048201528b60248201526000806044836000885af1610c69573d6000823e3d81fd5b505050505b5050610d07565b60008b90506000632b651a6c60e01b90506040518181528b60048201528a60248201528960448201528860648201528760848201528c60a48201528560ff1c601b0160c48201528660e48201526001600160ff1b03861661010482015261014061012482015264a62929c86960d31b610163820152600080610169836000875af1610d03573d6000823e3d81fd5b5050505b50939998505050505050505050565b6000808660a00135600003610d57576040517f0262dde400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610d666020890189614e0c565b90506000610d7a60408a0160208b01614e0c565b90506000610d90836001600160a01b0316612bcd565b905060c08a013560021615610dd55780610dab576000610db1565b89608001355b3411610dd057604051631841b4e160e01b815260040160405180910390fd5b610e06565b80610de1576000610de7565b89608001355b3414610e0657604051631841b4e160e01b815260040160405180910390fd5b80610e4f578715610e2557610e256001600160a01b0384168a8a612c06565b610e4f33610e3960608d0160408e01614e0c565b6001600160a01b038616919060808e0135612b30565b610e608b338c608001358a8a612cbf565b60808a01359350610e7a6001600160a01b03831630612d1f565b945084600003610eb6576040517f28ebf24700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000199094019360c08a013560011615610f4f576000610edf6001600160a01b03851630612d1f565b90506001811115610f0e5760001901610ef88186615473565b9450610f0e6001600160a01b0385163383612dca565b610f1c8560a08d0135615486565b610f2a60808d013588615486565b1015610f495760405163f32bec2f60e01b815260040160405180910390fd5b50610f74565b8960a00135851015610f745760405163f32bec2f60e01b815260040160405180910390fd5b600080610f8760808d0160608e01614e0c565b6001600160a01b031614610faa57610fa560808c0160608d01614e0c565b610fac565b335b9050610fc26001600160a01b0384168288612dca565b50505050965096945050505050565b6000610fe76001600160a01b0389168484612c06565b610ff48988888888612eaa565b9998505050505050505050565b600060d082901c60a083901c65ffffffffffff168361101f83421090565b801561104257506001600160a01b03811660009081526001602052604090205482145b95945050505050565b6000803361105f6080850160608601614e0c565b6001600160a01b03161461109f576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110a88361114a565b6000818152600260205260409020549250905060001982016110f6576040517f41a26a6300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080518281526020810184905233917fcbfa7d191838ece7ba4783ca3a30afd316619b7f368094b57ee7ffde9a923db1910160405180910390a26000818152600260205260409020600190559092909150565b600061115e611157613131565b8390613258565b92915050565b600061117a6001600160a01b0389168484612c06565b610ff48989898989896127be565b600080600061119a87878787336111d5565b9250925092509450945094915050565b60008060006111b985856132d7565b915091508180156111c957508581115b925050505b9392505050565b60008060006112356111e5613131565b601f198a0180517f74ab4f0cde46aaf927859983f7d04002116dd057d4c4941f6dbfb775c3e31f4582526101008220915260405161190160f01b8152600281019290925260228201526042902090565b9050600160fe1b8516156112a957600160fd1b851615801590611259575060418614155b15611277576040516317c2b1f160e01b815260040160405180910390fd5b6112878860600151828989613466565b6112a4576040516317c2b1f160e01b815260040160405180910390fd5b6112d6565b6112b988606001518289896134bb565b6112d6576040516317c2b1f160e01b815260040160405180910390fd5b6112e1888686613522565b60408051848152602081018490529295509093507fc3b639f02b125bfa160e50739b8c44eb2d1b6908e2b6d5925c6d770f2ca78127910160405180910390a1955095509592505050565b60008060006113418b8b8b8b8b8b8b8b33611a3b565b925092509250985098509895505050505050565b600080600061136b61136685613b2e565b6132d7565b9150915081801561137c5750806001145b949350505050565b600080600061139385856132d7565b915091508180156111c95750909414949350505050565b60008060006113d185858c604001516001600160a01b0316612c069092919063ffffffff16565b6113de8a8a8a8a8a6111d5565b9250925092509750975097945050505050565b6113f9613b45565b6108b46000613b9f565b8060ff16600003611440576040517fbd71636d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526001602052604081205461145e9060ff84169061549d565b336000818152600160205260409081902083905551919250907ffc69110dd11eb791755e4abd6b7d281bae236de95736d38a23782814be5e10db906114a69084815260200190565b60405180910390a25050565b60008080805b63ffffffff87821c1692508215611517576000806114db61136686868a8c6154b0565b915091508180156114ec5750806001145b156114ff576001955050505050506111ce565b50839250611510905060208261549d565b90506114b8565b5060009695505050505050565b61152c613b45565b6115406001600160a01b0383163383612dca565b5050565b61155033826000613c07565b50565b61155b613b45565b33ff5b6000610ff489338a8a8a8a8a8a8a6108d0565b60606000825167ffffffffffffffff81111561158f5761158f614b26565b6040519080825280602002602001820160405280156115b8578160200160208202803683370190505b50905060005b835181101561162357600260008583815181106115dd576115dd6154da565b6020026020010151815260200190815260200160002054828281518110611606576116066154da565b60209081029190910101528061161b816154f0565b9150506115be565b5092915050565b600080600061168a61163a613131565b601f19890180517f74ab4f0cde46aaf927859983f7d04002116dd057d4c4941f6dbfb775c3e31f4582526101008220915260405161190160f01b8152600281019290925260228201526042902090565b9050600160fe1b8416156116e657600160fd1b8416156116d6576116b48760600151828888613c9b565b6116d1576040516317c2b1f160e01b815260040160405180910390fd5b611713565b6116b48760600151828888613d05565b6116f68760600151828888613d5a565b611713576040516317c2b1f160e01b815260040160405180910390fd5b61171e878533613522565b60408051848152602081018490529295509093507fc3b639f02b125bfa160e50739b8c44eb2d1b6908e2b6d5925c6d770f2ca78127910160405180910390a19450945094915050565b600081815260026020526040812054806117ad576040517fb838de9600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000190192915050565b60006108c68686868686612eaa565b600080846001600160a01b031684846040516117e3929190615509565b600060405180830381855af49150503d806000811461181e576040519150601f19603f3d011682016040523d82523d6000602084013e611823565b606091505b509150915081816040517f1934afc800000000000000000000000000000000000000000000000000000000815260040161185e929190615569565b60405180910390fd5b611540338383613c07565b6000806000611882868686613da9565b9150915081611042576040517f1f1b8f6100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008080805b63ffffffff87821c1692508215611923576000806118e661136686868a8c6154b0565b915091508115806118f8575080600114155b1561190b576000955050505050506111ce565b5083925061191c905060208261549d565b90506118c3565b5060019695505050505050565b6108b46001611403565b60006119506001600160a01b038b168484612c06565b6119618c8c8c8c8c8c8c8c8c6108d0565b9c9b505050505050505050505050565b600080600061198085856132d7565b915091508180156111c9575094909410949350505050565b6000808060148410156119d7576040517fd9e1c6dc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003660006119e68888613dd7565b91945092509050611a016001600160a01b0384168383612c06565b505050611a158e8e8e8e8e8e8e8e8e611a3b565b9250925092509b509b509b98505050505050505050565b60006110423386868686612eaa565b600080806001600160a01b038416611a7f576040517fb0c4d05f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a888c61114a565b6000818152600260205260409020548894508793509091508c906000198101611add576040517fecef366400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611aef60c0840160a08501614e0c565b6001600160a01b031614158015611b1e575033611b1260c0840160a08501614e0c565b6001600160a01b031614155b15611b55576040517fd4dfdafe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80611c5857611b75611b6d6080840160608501614e0c565b848f8f6134bb565b611bab576040517f5cd5d23300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060c0810135366000611bbd84613e15565b91509150600160ff1b89166000148015611bd8575060148110155b15611c51576000366000611bec8585613dd7565b91945092509050611c076001600160a01b0384168383612c06565b60008881526002602052604090205415611c4d576040517fc5f2be5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505b5050611c5d565b600019015b6000611c6883613b2e565b90501115611caf57611c7982611355565b611caf576040517fb6629c0200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8415841503611ce9576040517ee2a52200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600003611d795780851115611cfd578094505b611d1b611d0983613e23565b8460c00135888660e001358689613e31565b93506001600160ff1b038716611d318682615486565b611d3b8b87615486565b1115611d73576040517ffb8ae12900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50611e44565b611d97611d8583613e67565b8460e00135878660c001358689613e75565b945080851115611dec57809450611db0611d0983613e23565b935087841115611dec576040517f939c420400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160ff1b038716611e008582615486565b611e0a8a88615486565b1015611e42576040517f481ea39200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b841580611e4f575083155b15611e86576040517ffba5a27600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84810390508060010160026000858152602001908152602001600020819055508d6060016020810190611eb99190614e0c565b6001600160a01b03167fb9ed0243fdf00f0545c63a0af8850c090d86bb46682baec4bf3c496814fe4f028483604051611efc929190918252602082015260400190565b60405180910390a26014611f0f83613e89565b905010611fb2576000366000611f2c611f2786613e89565b613dd7565b919450925090506001600160a01b0383166396a10e3387611f536080890160608a01614e0c565b338c8c8a89896040518963ffffffff1660e01b8152600401611f7c9897969594939291906155ad565b600060405180830381600087803b158015611f9657600080fd5b505af1158015611faa573d6000803e3d6000fd5b505050505050505b611fe5611fc56040840160208501614e0c565b611fd56080850160608601614e0c565b8888611fe087613e97565b613ea5565b61201b576040517f70a03f4800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60148a106120f35760003660006120328e8e613dd7565b9250925092506000836001600160a01b031663ccee33d7338b8b87876040518663ffffffff1660e01b815260040161206e959493929190615600565b6020604051808303816000875af115801561208d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120b1919061562f565b905087811180156120d057506120ce6120c987613e67565b613f00565b155b80156120e557506120e36120c987613e23565b155b156120ee578097505b505050505b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661212d6060840160408501614e0c565b6001600160a01b03161480156121435750600034115b15612359578334101561216957604051631841b4e160e01b815260040160405180910390fd5b833411156121df57604051600090339034879003908381818185875af1925050503d80600081146121b6576040519150601f19603f3d011682016040523d82523d6000602084013e6121bb565b606091505b50509050806121dd5760405163b12d13eb60e01b815260040160405180910390fd5b505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561223a57600080fd5b505af115801561224e573d6000803e3d6000fd5b50506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016925063a9059cbb91506000905061229760a0860160808701614e0c565b6001600160a01b0316146122ba576122b560a0850160808601614e0c565b6122ca565b6122ca6080850160608601614e0c565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602481018790526044016020604051808303816000875af115801561232f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123539190615648565b50612411565b341561237857604051631841b4e160e01b815260040160405180910390fd5b6123db61238b6060840160408501614e0c565b33600061239e60a0870160808801614e0c565b6001600160a01b0316146123c1576123bc60a0860160808701614e0c565b6123d1565b6123d16080860160608701614e0c565b87611fe087613f75565b612411576040517f478a520500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601461241c83613f83565b9050106124ba576000366000612434611f2786613f83565b919450925090506001600160a01b038316633504ed628761245b6080890160608a01614e0c565b338c8c8a89896040518963ffffffff1660e01b81526004016124849897969594939291906155ad565b600060405180830381600087803b15801561249e57600080fd5b505af11580156124b2573d6000803e3d6000fd5b505050505050505b505099509950999650505050505050565b6124d3613b45565b6001600160a01b03811661254f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161185e565b61155081613b9f565b60006125688787878787876127be565b979650505050505050565b6125cc565b3d6000803e3d6000fd5b8061258f5761258f612578565b600160005114601f3d11163d151780611540577ff27f64e40000000000000000000000000000000000000000000000000000000060005260046000fd5b604051601581017f0dfe1681d21220a7ddca3f43a9059cbb23b872dd0000000000000000000000008252602081600484335afa61260b5761260b612578565b60208082016004808501335afa61262457612624612578565b602060408201600460088501335afa61263f5761263f612578565b600080600088136001811461265d5760208401519250879150612665565b835192508891505b507fff1f98431c8ad98523631ae4a59f267346ea31f984000000000000000000000084526060832083527fe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b5460208401526001600160a01b0360558520169250338318156126f6577fb2c027220000000000000000000000000000000000000000000000000000000060005260046000fd5b60843592507f0dfe1681d21220a7ddca3f43a9059cbb23b872dd00000000000000000000000084523083146001811461275757836014860152336034860152816054860152612752602060006064601089016000885af1612582565b61277a565b33601086015281603086015261277a602060006044600c89016000885af1612582565b505050505050505050565b3233036108b4576040517f1b10b0f900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006128b9565b7f0902f1ac0000000000000000000000000000000000000000000000000000000081526000604082600484875afa6127ff576127ff612578565b60603d14612831577f85cd58dc0000000000000000000000000000000000000000000000000000000060005260046000fd5b81516020830151861561284057905b8785029250633b9aca008202830181840204925050507f022c0d9f000000000000000000000000000000000000000000000000000000008252841594508415810260048301528481026024830152866044830152608060648301526000608483015260008060a4846000885af16108c6576108c6612578565b6dffffffffffffffffffffffffffff8511156128f9577fcf0b4d3a0000000000000000000000000000000000000000000000000000000060005260046000fd5b60405160c081016040528260051b84018435886000811461296957341561292b57631841b4e160e01b60005260046000fd5b6323b872dd60e01b84523360048501526001600160a01b03821660248501528860448501526129646020600060648760008f5af1612582565b6129ff565b34891461298157631841b4e160e01b60005260046000fd5b630d0e30db60e41b84526000806004868c73b31f66aa3c1e785363f0875a1b74e27b85fd66c75af16129b5576129b5612578565b63a9059cbb60e01b84526001600160a01b0382166004850152886024850152600080604486600073b31f66aa3c1e785363f0875a1b74e27b85fd66c75af16129ff576129ff612578565b50879350602086015b82811015612a50578035612a446001600160a01b03821663ffffffff60a01b851660a01c600160ff1b86166001600160a01b0387168a8a6127c5565b95509150602001612a08565b50600160fe1b81168015612adf57612a873063ffffffff60a01b841660a01c600160ff1b85166001600160a01b03861689896127c5565b9450632e1a7d4d60e01b8452846004850152600080602486600073b31f66aa3c1e785363f0875a1b74e27b85fd66c75af1612ac457612ac4612578565b600080600080888f5af1612ada57612ada612578565b612b0b565b612b088b63ffffffff60a01b841660a01c600160ff1b85166001600160a01b03861689896127c5565b94505b50505050838110156108c65760405163f32bec2f60e01b815260040160405180910390fd5b60006323b872dd60e01b905060006040518281528560048201528460248201528360448201526020600060648360008b5af19150508015612b8e573d8015612b8457600160005114601f3d11169150612b8c565b6000873b1191505b505b80612bc5576040517ff405907100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b60006001600160a01b038216158061115e57506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1492915050565b600060e0829003612c4457612c3d847fd505accf000000000000000000000000000000000000000000000000000000008585613f91565b9050612cac565b610100829003612c7a57612c3d847f8fcbaf0c000000000000000000000000000000000000000000000000000000008585613f91565b6040517f6827585700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80612cb957612cb9613fe3565b50505050565b6040517f4b64e4920000000000000000000000000000000000000000000000000000000080825260048201869052908284602483013784836024830101526000808460440183348b5af1612d16573d6000823e3d81fd5b50505050505050565b6000612d2a83612bcd565b15612d4057506001600160a01b0381163161115e565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301528416906370a0823190602401602060405180830381865afa158015612d9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dc3919061562f565b905061115e565b8015612ea557612dd983612bcd565b15612e915780471015612e18576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000826001600160a01b03168261138890604051600060405180830381858888f193505050503d8060008114612e6a576040519150601f19603f3d011682016040523d82523d6000602084013e612e6f565b606091505b5050905080612cb95760405163b12d13eb60e01b815260040160405180910390fd5b612ea56001600160a01b0384168383613fef565b505050565b600081808203612ee6576040517f67e7c0f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8591506000198101341515600080600160fd1b888886818110612f0b57612f0b6154da565b90506020020135161190508115612fb157883414612f3c57604051631841b4e160e01b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db08a6040518263ffffffff1660e01b81526004016000604051808303818588803b158015612f9757600080fd5b505af1158015612fab573d6000803e3d6000fd5b50505050505b600184111561305157612feb3083612fc95733612fcb565b305b89896000818110612fde57612fde6154da565b9050602002013588614038565b945060015b838110156130265761301c30308a8a8581811061300f5761300f6154da565b9050602002013589614038565b9550600101612ff0565b5061304a81613035578a613037565b305b30898987818110612fde57612fde6154da565b945061306f565b61306c8161305f578a613061565b305b83612fc95733612fcb565b94505b878510156130905760405163f32bec2f60e01b815260040160405180910390fd5b801561312457604051632e1a7d4d60e01b8152600481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b1580156130f857600080fd5b505af115801561310c573d6000803e3d6000fd5b50613124925050506001600160a01b038b16866141d4565b5050505095945050505050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561318a57507f000000000000000000000000000000000000000000000000000000000000000046145b156131b457507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000368161326a61012086018661566a565b60405191935091507f0a244ca8a150ac294c14fcff9277051ced9a5b23e966a0ff0522e989da23116c9082848237828120610140820152610120876020830137818152610160902060405161190160f01b81526002810187905260228101829052604290209094506108c6565b60008060006132e685856142ed565b60e01c905060006132f986866004614317565b9050632cc2878c19820161333057600161331282611001565b61331d576000613320565b60015b90945060ff16925061345f915050565b63bf15fcd88210156133be57636fe7b0ba82101561338257634f38e2b71982016133665760016133128261046489896064614348565b6363592c2a19820161337d57600161331282421090565b61344d565b636fe7b0b91982016133a05760016133128261052d89896064614348565b637426114419820161337d576001613312826105cf89896064614348565b63ca4ece228210156134115763bf15fcd71982016133f35760016133e88261075f89896064614348565b93509350505061345f565b63bfa7514219820161337d5760016133128261077f89896064614348565b63ca4ece2119820161342f576001613312826107d489896064614348565b63cf6fc6e219820161344d576001613312826107f489896024614317565b613458308787613da9565b9350935050505b9250929050565b600080631626ba7e60e01b905060405181815285600482015260406024820152836044820152838560648301376020600085606401838a5afa156134b15760203d1460005183141692505b5050949350505050565b60006001600160a01b0385166134d35750600061137c565b60408214806134e25750604182145b80156135095750846001600160a01b03166134fe858585614378565b6001600160a01b0316145b156135165750600161137c565b61104285858585613466565b6000806001600160a01b038316613565576040517f692e45e000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606085015160808601516001600160a01b031615801590613593575060808601516001600160a01b03163314155b156135ca576040517fe8c6632100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b855167ffffffffffffffff604082901c1680158015906135e957508042115b15613620576040517fc56873ba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61362c83836000613c07565b505060a086015160c08701517f0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8716600081900361366f57829550819450613715565b600160ff1b8816156136ca57828111156136b5576040517faa34b69600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8095506136c383838861442d565b9450613715565b81811115613704576040517f7f902a9300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80945061371283838761445b565b95505b5050508260001480613725575081155b1561375c576040517f07b6e79f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031686602001516001600160a01b03161480156137c257507f1000000000000000000000000000000000000000000000000000000000000000851615155b1561395a576040516323b872dd60e01b81526001600160a01b038281166004830152306024830152604482018590527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906064016020604051808303816000875af115801561383c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138609190615648565b50604051632e1a7d4d60e01b8152600481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b1580156138c357600080fd5b505af11580156138d7573d6000803e3d6000fd5b505050506000846001600160a01b03168461138890604051600060405180830381858888f193505050503d806000811461392d576040519150601f19603f3d011682016040523d82523d6000602084013e613932565b606091505b50509050806139545760405163b12d13eb60e01b815260040160405180910390fd5b50613974565b6020860151613974906001600160a01b0316828686612b30565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031686604001516001600160a01b03161480156139b95750600034115b15613aec578134146139de57604051631841b4e160e01b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b158015613a3957600080fd5b505af1158015613a4d573d6000803e3d6000fd5b505060405163a9059cbb60e01b81526001600160a01b038581166004830152602482018790527f000000000000000000000000000000000000000000000000000000000000000016935063a9059cbb925060440190506020604051808303816000875af1158015613ac2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ae69190615648565b50613b25565b3415613b0b57604051631841b4e160e01b815260040160405180910390fd5b6040860151613b25906001600160a01b0316338385612b30565b50935093915050565b366000613b3c836004614468565b91509150915091565b6000546001600160a01b031633146108b45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161185e565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038316600090815260036020908152604080832066ffffffffffffff600887901c16808552928190529220549091600160ff86161b841791808316839003613c82576040517ff71fbda200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000938452602091909152604090922091179055505050565b600080631626ba7e60e01b905060405181815285600482015260406024820152604160448201528460648201526001600160ff1b03841660848201528360ff1c601b0160a48201536020600060a5838a5afa156134b15750600051143d6020141695945050505050565b600080631626ba7e60e01b905060405181815285600482015260406024820152604060448201528460648201528360848201526020600060a4838a5afa156134b15750600051143d6020141695945050505050565b60006001600160a01b038516613d725750600061137c565b846001600160a01b0316613d878585856144c3565b6001600160a01b031603613d9d5750600161137c565b61104285858585613d05565b60008060405183858237602060008583895afa3d602014169250508115613dcf57506000515b935093915050565b600036816014841015613dfd5760405163779ab6bd60e11b815260040160405180910390fd5b505050813560601c9260149092019160131990910190565b366000613b3c836005614468565b366000613b3c836003614468565b6000868103613e4c57613e4586858761442d565b9050612568565b613e5b88888888888888614532565b98975050505050505050565b366000613b3c836002614468565b6000868103613e4c57613e4584878761445b565b366000613b3c836006614468565b366000613b3c836000614468565b6040516323b872dd60e01b8082526004820187905260248201869052604482018590526000918385606483013760206000856064018360008d5af19050600160005114601f3d11163d15178116925050509695505050505050565b60006001821480156111ce575082826000818110613f2057613f206154da565b9050013560f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f7800000000000000000000000000000000000000000000000000000000000000149392505050565b366000613b3c836001614468565b366000613b3c836007614468565b6000816004016040518581528385600483013760206000838360008b5af192505050801561137c573d8015613fd257600160005114601f3d11169150613fda565b6000863b1191505b50949350505050565b6040513d6000823e3d81fd5b6140028363a9059cbb60e01b84846146be565b612ea5576040517ffb7f507900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600160ff1b831615801561410e576000846001600160a01b031663128acb08888461406488614700565b604080516001600160a01b038d1660208201526401000276a491016040516020818303038152906040526040518663ffffffff1660e01b81526004016140ae9594939291906156b1565b60408051808303816000875af11580156140cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140f091906156eb565b915050614105816141009061570f565b614783565b9250505061137c565b6000846001600160a01b031663128acb08888461412a88614700565b604080516001600160a01b038d16602082015273fffd8963efd1fc6a506488495d951d5263988d2591016040516020818303038152906040526040518663ffffffff1660e01b81526004016141839594939291906156b1565b60408051808303816000875af11580156141a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141c591906156eb565b5090506141056141008261570f565b804710156142245760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161185e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114614271576040519150601f19603f3d011682016040523d82523d6000602084013e614276565b606091505b5050905080612ea55760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161185e565b600060048210156143115760405163779ab6bd60e11b815260040160405180910390fd5b50503590565b60006020820183101561433d5760405163779ab6bd60e11b815260040160405180910390fd5b509190910135919050565b3660008284101561436c5760405163779ab6bd60e11b815260040160405180910390fd5b50509182019291900390565b6000604051826041811461439757604081146143b157600091506143d9565b604085013560001a602083015260408560408401376143d9565b60208501358060ff1c601b01602084015260208660408501376001600160ff1b031660608301525b508015614425577f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a16060820151101561442557848152600080526020600060808360015afa5060005191505b509392505050565b60008360018161443d8686615486565b614447919061549d565b6144519190615473565b61137c919061572b565b6000826144518584615486565b3660008060058460078111156144805761448061574d565b901b905061449261012086018661566a565b6144b79161010088013580851c63ffffffff9081169360209290921b861c16916154b0565b92509250509250929050565b60006001600160ff1b0382167f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a1811015614425576040518581528360ff1c601b016020820152846040820152816060820152600080526020600060808360015afa505060005195945050505050565b600060018790036145be576145478888613f00565b1561458c57858514614585576040517f49986e7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5082612568565b6040517fbec74c8500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003660006145cd8b8b613dd7565b925092509250600080846001600160a01b031684848c8b8b6040516020016145f9959493929190615763565b60408051601f198184030181529082905261461391615782565b600060405180830381855afa9150503d806000811461464e576040519150601f19603f3d011682016040523d82523d6000602084013e614653565b606091505b509150915081158061466757508051602014155b1561469e576040517f110b8e7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808060200190518101906146b2919061562f565b95505050505050612568565b60006040518481528360048201528260248201526020600060448360008a5af1915050801561137c573d8015613fd257600160005114601f3d11169150613fda565b60006001600160ff1b0382111561477f5760405162461bcd60e51b815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e206160448201527f6e20696e74323536000000000000000000000000000000000000000000000000606482015260840161185e565b5090565b60008082121561477f5760405162461bcd60e51b815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f736974697665604482015260640161185e565b6001600160a01b038116811461155057600080fd5b80356147f5816147d5565b919050565b60008083601f84011261480c57600080fd5b50813567ffffffffffffffff81111561482457600080fd5b6020830191508360208260051b850101111561345f57600080fd5b60008060008060006080868803121561485757600080fd5b8535614862816147d5565b94506020860135935060408601359250606086013567ffffffffffffffff81111561488c57600080fd5b614898888289016147fa565b969995985093965092949392505050565b60008060008060008060008060006101208a8c0312156148c857600080fd5b89356148d3816147d5565b985060208a01356148e3816147d5565b975060408a01356148f3816147d5565b965060608a0135614903816147d5565b989b979a50959860808101359760a0820135975060c0820135965060e08201359550610100909101359350915050565b60008083601f84011261494557600080fd5b50813567ffffffffffffffff81111561495d57600080fd5b60208301915083602082850101111561345f57600080fd5b60008060008060008086880361014081121561499057600080fd5b873561499b816147d5565b965060e0601f19820112156149af57600080fd5b5060208701945061010087013567ffffffffffffffff808211156149d257600080fd5b6149de8a838b01614933565b90965094506101208901359150808211156149f857600080fd5b50614a0589828a01614933565b979a9699509497509295939492505050565b60008060008060008060008060c0898b031215614a3357600080fd5b8835614a3e816147d5565b97506020890135614a4e816147d5565b96506040890135955060608901359450608089013567ffffffffffffffff80821115614a7957600080fd5b614a858c838d016147fa565b909650945060a08b0135915080821115614a9e57600080fd5b50614aab8b828c01614933565b999c989b5096995094979396929594505050565b600060208284031215614ad157600080fd5b5035919050565b60006101408284031215614aeb57600080fd5b50919050565b600060208284031215614b0357600080fd5b813567ffffffffffffffff811115614b1a57600080fd5b61137c84828501614ad8565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614b6557614b65614b26565b604052919050565b600060e08284031215614b7f57600080fd5b60405160e0810181811067ffffffffffffffff82111715614ba257614ba2614b26565b604052823581529050806020830135614bba816147d5565b60208201526040830135614bcd816147d5565b60408201526060830135614be0816147d5565b60608201526080830135614bf3816147d5565b8060808301525060a083013560a082015260c083013560c08201525092915050565b6000806000806101208587031215614c2c57600080fd5b614c368686614b6d565b935060e085013567ffffffffffffffff811115614c5257600080fd5b614c5e87828801614933565b959890975094956101000135949350505050565b600080600060408486031215614c8757600080fd5b83359250602084013567ffffffffffffffff811115614ca557600080fd5b614cb186828701614933565b9497909650939450505050565b60008060408385031215614cd157600080fd5b8235614cdc816147d5565b946020939093013593505050565b60008060008060006101408688031215614d0357600080fd5b614d0d8787614b6d565b945060e086013567ffffffffffffffff811115614d2957600080fd5b614d3588828901614933565b9095509350506101008601359150610120860135614d52816147d5565b809150509295509295909350565b60008060008060008060008060c0898b031215614d7c57600080fd5b883567ffffffffffffffff80821115614d9457600080fd5b614da08c838d01614ad8565b995060208b0135915080821115614db657600080fd5b614dc28c838d01614933565b909950975060408b0135915080821115614ddb57600080fd5b50614de88b828c01614933565b999c989b5096999698976060880135976080810135975060a0013595509350505050565b600060208284031215614e1e57600080fd5b81356111ce816147d5565b6000806000806000806000610160888a031215614e4557600080fd5b614e4f8989614b6d565b965060e088013567ffffffffffffffff80821115614e6c57600080fd5b614e788b838c01614933565b90985096506101008a013595506101208a01359150614e96826147d5565b9093506101408901359080821115614ead57600080fd5b50614eba8a828b01614933565b989b979a50959850939692959293505050565b600060208284031215614edf57600080fd5b813560ff811681146111ce57600080fd5b600080600080600080600080610100898b031215614f0d57600080fd5b8835614f18816147d5565b97506020890135614f28816147d5565b96506040890135614f38816147d5565b979a96995096976060810135975060808101359660a0820135965060c0820135955060e0909101359350915050565b60006020808385031215614f7a57600080fd5b823567ffffffffffffffff80821115614f9257600080fd5b818501915085601f830112614fa657600080fd5b813581811115614fb857614fb8614b26565b8060051b9150614fc9848301614b3c565b8181529183018401918481019088841115614fe357600080fd5b938501935b83851015613e5b57843582529385019390850190614fe8565b6020808252825182820181905260009190848201906040850190845b818110156150395783518352928401929184019160010161501d565b50909695505050505050565b600080600080610140858703121561505c57600080fd5b6150668686614b6d565b9660e08601359650610100860135956101200135945092505050565b60008060006040848603121561509757600080fd5b83356150a2816147d5565b9250602084013567ffffffffffffffff811115614ca557600080fd5b600080604083850312156150d157600080fd5b50508035926020909101359150565b60008060008060008060008060008060006101408c8e03121561510257600080fd5b8b3561510d816147d5565b9a5060208c013561511d816147d5565b995060408c013561512d816147d5565b985060608c013561513d816147d5565b975060808c0135965060a08c0135955060c08c0135945060e08c013593506101008c013592506101208c013567ffffffffffffffff81111561517e57600080fd5b61518a8e828f01614933565b915080935050809150509295989b509295989b9093969950565b60008060008060008060008060008060006101008c8e0312156151c657600080fd5b67ffffffffffffffff808d3511156151dd57600080fd5b6151ea8e8e358f01614ad8565b9b508060208e013511156151fd57600080fd5b61520d8e60208f01358f01614933565b909b50995060408d013581101561522357600080fd5b6152338e60408f01358f01614933565b909950975060608d0135965060808d0135955060a08d0135945061525960c08e016147ea565b93508060e08e0135111561526c57600080fd5b5061527d8d60e08e01358e01614933565b81935080925050509295989b509295989b9093969950565b600080600080606085870312156152ab57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156152d057600080fd5b6152dc878288016147fa565b95989497509550505050565b600080600080600080600080600060e08a8c03121561530657600080fd5b893567ffffffffffffffff8082111561531e57600080fd5b61532a8d838e01614ad8565b9a5060208c013591508082111561534057600080fd5b61534c8d838e01614933565b909a50985060408c013591508082111561536557600080fd5b506153728c828d01614933565b90975095505060608a0135935060808a0135925060a08a0135915060c08a013561539b816147d5565b809150509295985092959850929598565b60008060008060008060a087890312156153c557600080fd5b86356153d0816147d5565b955060208701356153e0816147d5565b94506040870135935060608701359250608087013567ffffffffffffffff81111561540a57600080fd5b614a0589828a016147fa565b6000806000806060858703121561542c57600080fd5b8435935060208501359250604085013567ffffffffffffffff81111561545157600080fd5b6152dc87828801614933565b634e487b7160e01b600052601160045260246000fd5b8181038181111561115e5761115e61545d565b808202811582820484141761115e5761115e61545d565b8082018082111561115e5761115e61545d565b600080858511156154c057600080fd5b838611156154cd57600080fd5b5050820193919092039150565b634e487b7160e01b600052603260045260246000fd5b6000600182016155025761550261545d565b5060010190565b8183823760009101908152919050565b60005b8381101561553457818101518382015260200161551c565b50506000910152565b60008151808452615555816020860160208601615519565b601f01601f19169290920160200192915050565b821515815260406020820152600061137c604083018461553d565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b88815260006001600160a01b03808a1660208401528089166040840152508660608301528560808301528460a083015260e060c08301526155f260e083018486615584565b9a9950505050505050505050565b6001600160a01b0386168152846020820152836040820152608060608201526000612568608083018486615584565b60006020828403121561564157600080fd5b5051919050565b60006020828403121561565a57600080fd5b815180151581146111ce57600080fd5b6000808335601e1984360301811261568157600080fd5b83018035915067ffffffffffffffff82111561569c57600080fd5b60200191503681900382131561345f57600080fd5b60006001600160a01b038088168352861515602084015285604084015280851660608401525060a0608083015261256860a083018461553d565b600080604083850312156156fe57600080fd5b505080516020909101519092909150565b6000600160ff1b82036157245761572461545d565b5060000390565b60008261574857634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fd5b8486823790930191825260208201526040810191909152606001919050565b60008251615794818460208701615519565b919091019291505056fea2646970667358221220e17eb10607c47490963d8145faf10dda95cdcafd39cb519e4d209b4a30f5bc4b64736f6c63430008110033000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7

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

000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7

-----Decoded View---------------
Arg [0] : weth (address): 0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7


Deployed ByteCode Sourcemap

192300:1473:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10505:10;:8;:10::i;:::-;192300:1473;;;;;109237:276;;;;;;:::i;:::-;;:::i;:::-;;;1590:25:1;;;1578:2;1563:18;109237:276:0;;;;;;;;25378:7384;;;;;;:::i;:::-;;:::i;102315:2189::-;;;;;;:::i;:::-;;:::i;:::-;;;;4335:25:1;;;4391:2;4376:18;;4369:34;;;;4308:18;102315:2189:0;4161:248:1;83377:378:0;;;;;;;;;;-1:-1:-1;83377:378:0;;;;;:::i;:::-;;:::i;155043:351::-;;;;;;;;;;-1:-1:-1;155043:351:0;;;;;:::i;:::-;;:::i;:::-;;;5967:14:1;;5960:22;5942:41;;5930:2;5915:18;155043:351:0;5802:187:1;161816:459:0;;;;;;;;;;-1:-1:-1;161816:459:0;;;;;:::i;:::-;;:::i;171650:137::-;;;;;;;;;;-1:-1:-1;171650:137:0;;;;;:::i;:::-;;:::i;107571:376::-;;;;;;;;;;-1:-1:-1;107571:376:0;;;;;:::i;:::-;;:::i;179886:345::-;;;;;;:::i;:::-;;:::i;:::-;;;;9356:25:1;;;9412:2;9397:18;;9390:34;;;;9440:18;;;9433:34;9344:2;9329:18;179886:345:0;9154:319:1;154154:184:0;;;;;;;;;;-1:-1:-1;154154:184:0;;;;;:::i;:::-;;:::i;178760:156::-;;;;;;;;;;-1:-1:-1;178760:156:0;;;;;:::i;:::-;-1:-1:-1;;;;;178883:19:0;;;;178843:7;178883:19;;;:12;:19;;;;;;;;:25;;;;;;;;;178760:156;183991:920;;;;;;:::i;:::-;;:::i;162346:503::-;;;;;;:::i;:::-;;:::i;154501:154::-;;;;;;;;;;-1:-1:-1;154501:154:0;;;;;:::i;:::-;154583:15;:22;;154501:154;171378:201;;;;;;;;;;-1:-1:-1;171378:201:0;;;;;:::i;:::-;;:::i;153311:185::-;;;;;;;;;;-1:-1:-1;153311:185:0;;;;;:::i;:::-;;:::i;150739:40::-;;;;;;;;;;-1:-1:-1;150739:40:0;;;;;:::i;:::-;;;;;;;;;;;;;;182945:456;;;;;;;;;;-1:-1:-1;182945:456:0;;;;;:::i;:::-;;:::i;191267:103::-;;;;;;;;;;;;;:::i;150955:253::-;;;;;;;;;;-1:-1:-1;150955:253:0;;;;;:::i;:::-;;:::i;152022:452::-;;;;;;;;;;-1:-1:-1;152022:452:0;;;;;:::i;:::-;;:::i;193132:135::-;;;;;;;;;;-1:-1:-1;193132:135:0;;;;;:::i;:::-;;:::i;160866:::-;;;;;;;;;;-1:-1:-1;160866:135:0;;;;;:::i;:::-;160929:7;160972:21;;;:10;:21;;;;;;;160866:135;179058:113;;;;;;;;;;-1:-1:-1;179058:113:0;;;;;:::i;:::-;;:::i;193562:90::-;;;;;;;;;;;;;:::i;24240:451::-;;;;;;:::i;:::-;;:::i;190619:87::-;;;;;;;;;;-1:-1:-1;190665:7:0;190692:6;190619:87;;-1:-1:-1;;;;;190692:6:0;;;15418:74:1;;15406:2;15391:18;190619:87:0;15272:226:1;161076:339:0;;;;;;;;;;-1:-1:-1;161076:339:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;181097:1002::-;;;;;;:::i;:::-;;:::i;160542:250::-;;;;;;;;;;-1:-1:-1;160542:250:0;;;;;:::i;:::-;;:::i;84826:280::-;;;;;;:::i;:::-;;:::i;161485:258::-;;;;;;;;;;-1:-1:-1;161485:258:0;;;;;:::i;:::-;;:::i;179228:150::-;;;;;;;;;;-1:-1:-1;179228:150:0;;;;;:::i;:::-;;:::i;154779:256::-;;;;;;;;;;-1:-1:-1;154779:256:0;;;;;:::i;:::-;;:::i;152627:454::-;;;;;;;;;;-1:-1:-1;152627:454:0;;;;;:::i;:::-;;:::i;150827:68::-;;;;;;;;;;;;;:::i;23158:551::-;;;;;;;;;;-1:-1:-1;23158:551:0;;;;;:::i;:::-;;:::i;153732:184::-;;;;;;;;;;-1:-1:-1;153732:184:0;;;;;:::i;:::-;;:::i;151370:148::-;;;;;;;;;;-1:-1:-1;151370:148:0;;;;;:::i;:::-;-1:-1:-1;;;;;151477:19:0;;;;151453:4;151477:19;;;:5;:19;;;;;;:33;;151370:148;162932:806;;;;;;;;;;-1:-1:-1;162932:806:0;;;;;:::i;:::-;;:::i;84086:252::-;;;;;;:::i;:::-;;:::i;163811:7491::-;;;;;;:::i;:::-;;:::i;191525:201::-;;;;;;;;;;-1:-1:-1;191525:201:0;;;;;:::i;:::-;;:::i;108473:304::-;;;;;;:::i;:::-;;:::i;86739:3278::-;;;;;;;;;;-1:-1:-1;86739:3278:0;;;;;:::i;:::-;;:::i;193660:110::-;193740:22;:20;:22::i;:::-;193660:110::o;109237:276::-;109400:20;109440:65;109457:10;109470:8;109480:6;109488:9;109499:5;;109440:8;:65::i;:::-;109433:72;109237:276;-1:-1:-1;;;;;;109237:276:0:o;25378:7384::-;25701:20;-1:-1:-1;;;;;25748:16:0;;;25775:1608;;;;25819:11;25806:9;:24;25802:67;;25839:30;;-1:-1:-1;;;25839:30:0;;;;;;;;;;;25802:67;25775:1608;;;25903:5;-1:-1:-1;;;;;25891:17:0;:8;-1:-1:-1;;;;;25891:17:0;;25887:1496;;-1:-1:-1;25934:4:0;25957:9;:14;25953:57;;25980:30;;-1:-1:-1;;;25980:30:0;;;;;;;;;;;25953:57;26462:4;26456:11;-1:-1:-1;;;26487:33:0;;;26561:8;26554:4;26545:14;;26538:32;26611:9;26604:4;26595:14;;26588:33;26655:4;26646:14;;26639:35;;;26169:5;;-1:-1:-1;;;26288:23:0;26146:12;;26728:4;26456:11;26146:12;26169:5;26707;26702:37;26692:182;;26787:16;26784:1;26779:3;26764:40;26838:16;26833:3;26826:29;26692:182;26906:16;26901:3;26894:29;26964:11;26957:4;26952:3;26948:14;26941:35;27039:1;27036;27030:4;27025:3;27022:1;27016:4;27009:5;27004:37;26994:182;;27089:16;27086:1;27081:3;27066:40;27140:16;27135:3;27128:29;26994:182;;26383:808;;;25887:1496;;;27227:9;:14;27223:57;;27250:30;;-1:-1:-1;;;27250:30:0;;;;;;;;;;;27223:57;27295:76;-1:-1:-1;;;;;27295:25:0;;27321:10;27341:15;27359:11;27295:25;:76::i;:::-;27399:6;27395:5328;;;27581:15;27607;27581:42;;27638:15;27656:40;;;27638:58;;27847:4;27841:11;27884:8;27879:3;27872:21;27934:8;27927:4;27922:3;27918:14;27911:32;27984:11;27977:4;27972:3;27968:14;27961:35;28037:12;28030:4;28025:3;28021:14;28014:36;28091:9;28084:4;28079:3;28075:14;28068:33;28142:9;28135:4;28130:3;28126:14;28119:33;28225:2;28205:18;28201:27;28197:2;28193:36;28186:4;28181:3;28177:14;28170:60;28271:1;28264:4;28259:3;28255:14;28248:25;-1:-1:-1;;;;;28318:2:0;28314:26;28307:4;28302:3;28298:14;28291:50;28383:5;28375;28370:3;28366:15;28359:30;-1:-1:-1;;;28423:5:0;28418:3;28414:15;28407:53;28537:1;28534;28527:5;28522:3;28509:11;28500:7;28493:5;28488:51;28478:196;;28587:16;28584:1;28579:3;28564:40;28638:16;28633:3;28626:29;28478:196;;27768:921;;27395:5328;;;-1:-1:-1;;;;;28710:16:0;;;;:37;;;28742:5;-1:-1:-1;;;;;28730:17:0;:8;-1:-1:-1;;;;;28730:17:0;;28710:37;28706:4017;;;29169:4;29163:11;28978:40;29194:21;;;29249:4;29240:14;;29233:32;;;29299:4;29290:14;;29283:35;;;29352:4;29343:14;;29336:36;;;29406:4;29397:14;;29390:33;;;28929:15;;29448:16;;29487:1;29482:82;;;;29636:9;29629:4;29624:3;29620:14;29613:33;29441:224;;29482:82;29535:9;29528:4;29523:3;29519:14;29512:33;29441:224;;29738:2;29718:18;29714:27;29710:2;29706:36;29699:4;29694:3;29690:14;29683:60;29784:1;29777:4;29772:3;29768:14;29761:25;-1:-1:-1;;;;;29831:2:0;29827:26;29820:4;29815:3;29811:14;29804:50;29896:5;29888;29883:3;29879:15;29872:30;-1:-1:-1;;;29936:5:0;29931:3;29927:15;29920:53;30040:1;30037;30030:5;30025:3;30022:1;30013:7;30006:5;30001:41;29991:186;;30090:16;30087:1;30082:3;30067:40;30141:16;30136:3;30129:29;29991:186;;30224:5;-1:-1:-1;;;;;30212:17:0;:8;-1:-1:-1;;;;;30212:17:0;;30208:1187;;30695:4;30689:11;-1:-1:-1;;;30724:28:0;;;30392:5;;-1:-1:-1;;;30509:23:0;30369:12;;30821:4;30689:11;30802:12;30392:5;30789;30784:48;30774:205;;30884:16;30881:1;30876:3;30861:40;30939:16;30934:3;30927:29;30774:205;31015:16;31010:3;31003:29;31077:9;31070:4;31065:3;31061:14;31054:33;31132:12;31125:4;31120:3;31116:14;31109:36;31212:1;31209;31203:4;31198:3;31195:1;31189:4;31182:5;31177:37;31167:194;;31266:16;31263:1;31258:3;31243:40;31321:16;31316:3;31309:29;31167:194;;30612:768;;;30208:1187;28749:2657;;28706:4017;;;31574:15;31600;31574:42;;31631:15;31649:29;;;31631:47;;31829:4;31823:11;31866:8;31861:3;31854:21;31916:8;31909:4;31904:3;31900:14;31893:32;31966:8;31959:4;31954:3;31950:14;31943:32;32016:11;32009:4;32004:3;32000:14;31993:35;32069:12;32062:4;32057:3;32053:14;32046:36;32123:9;32116:4;32111:3;32107:14;32100:33;32174:9;32167:4;32162:3;32158:14;32151:33;32257:2;32237:18;32233:27;32229:2;32225:36;32218:4;32213:3;32209:14;32202:60;32303:1;32296:4;32291:3;32287:14;32280:25;-1:-1:-1;;;;;32351:2:0;32347:26;32339:5;32334:3;32330:15;32323:51;32416:5;32408;32403:3;32399:15;32392:30;-1:-1:-1;;;32456:5:0;32451:3;32447:15;32440:53;32560:1;32557;32550:5;32545:3;32542:1;32533:7;32526:5;32521:41;32511:186;;32610:16;32607:1;32602:3;32587:40;32661:16;32656:3;32649:29;32511:186;;31750:962;;28706:4017;-1:-1:-1;32742:12:0;;25378:7384;-1:-1:-1;;;;;;;;;25378:7384:0:o;102315:2189::-;102545:20;102580:19;102631:4;:20;;;102655:1;102631:25;102627:53;;102665:15;;;;;;;;;;;;;;102627:53;102693:15;102711:13;;;;:4;:13;:::i;:::-;102693:31;-1:-1:-1;102735:15:0;102753:13;;;;;;;;:::i;:::-;102735:31;;102779:11;102793:16;:8;-1:-1:-1;;;;;102793:14:0;;:16::i;:::-;102779:30;-1:-1:-1;102824:10:0;;;;101347:6;102824:32;:37;102820:267;;102896:6;:24;;102919:1;102896:24;;;102905:4;:11;;;102896:24;102882:9;:39;102878:82;;102930:30;;-1:-1:-1;;;102930:30:0;;;;;;;;;;;102878:82;102820:267;;;103011:6;:24;;103034:1;103011:24;;;103020:4;:11;;;103011:24;102997:9;:39;102993:82;;103045:30;;-1:-1:-1;;;103045:30:0;;;;;;;;;;;102993:82;103104:6;103099:207;;103131:17;;103127:85;;103169:27;-1:-1:-1;;;;;103169:19:0;;103189:6;;103169:19;:27::i;:::-;103226:68;103252:10;103264:16;;;;;;;;:::i;:::-;-1:-1:-1;;;;;103226:25:0;;;:68;103282:11;;;;103226:25;:68::i;:::-;103318:49;103327:8;103337:10;103349:4;:11;;;103362:4;;103318:8;:49::i;:::-;103394:11;;;;;-1:-1:-1;103502:36:0;-1:-1:-1;;;;;103502:21:0;;103532:4;103502:21;:36::i;:::-;103487:51;;103553:12;103569:1;103553:17;103549:48;;103579:18;;;;;;;;;;;;;;103549:48;-1:-1:-1;;103620:14:0;;;;103653:10;;;;103620:14;103653:26;:31;103649:674;;103701:21;103725:36;-1:-1:-1;;;;;103725:21:0;;103755:4;103725:21;:36::i;:::-;103701:60;;103796:1;103780:13;:17;103776:288;;;-1:-1:-1;;103909:15:0;103945:28;103909:15;103945:28;;:::i;:::-;;-1:-1:-1;103992:56:0;-1:-1:-1;;;;;103992:20:0;;104021:10;104034:13;103992:20;:56::i;:::-;104111:34;104134:11;104111:20;;;;:34;:::i;:::-;104082:26;104097:11;;;;104082:12;:26;:::i;:::-;:63;104078:114;;;104154:38;;-1:-1:-1;;;104154:38:0;;;;;;;;;;;104078:114;103686:518;103649:674;;;104244:4;:20;;;104229:12;:35;104225:86;;;104273:38;;-1:-1:-1;;;104273:38:0;;;;;;;;;;;104225:86;104335:27;;104366:16;;;;;;;;:::i;:::-;-1:-1:-1;;;;;104366:30:0;;104365:73;;104422:16;;;;;;;;:::i;:::-;104365:73;;;104408:10;104365:73;104335:103;-1:-1:-1;104449:47:0;-1:-1:-1;;;;;104449:20:0;;104335:103;104483:12;104449:20;:47::i;:::-;102616:1888;;;;102315:2189;;;;;;;;;:::o;83377:378::-;83618:20;83651:27;-1:-1:-1;;;;;83651:19:0;;83671:6;;83651:19;:27::i;:::-;83696:51;83711:9;83722:6;83730:9;83741:5;;83696:14;:51::i;:::-;83689:58;83377:378;-1:-1:-1;;;;;;;;;83377:378:0:o;155043:351::-;155127:4;155187:3;155167:23;;;155246:3;155226:23;;;155144:47;155202:48;155167:16;155332:21;155167:23;154583:15;:22;;154501:154;155332:21;:54;;;;-1:-1:-1;;;;;;151477:19:0;;151453:4;151477:19;;;:5;:19;;;;;;:33;;155357:29;155325:61;155043:351;-1:-1:-1;;;;;155043:351:0:o;161816:459::-;161885:22;;161958:10;161943:11;;;;;;;;:::i;:::-;-1:-1:-1;;;;;161943:25:0;;161939:52;;161977:14;;;;;;;;;;;;;;161939:52;162016:16;162026:5;162016:9;:16::i;:::-;162060:21;;;;:10;:21;;;;;;;-1:-1:-1;162004:28:0;-1:-1:-1;;;162096:31:0;;162092:59;;162136:15;;;;;;;;;;;;;;162092:59;162167:52;;;4335:25:1;;;4391:2;4376:18;;4369:34;;;162181:10:0;;162167:52;;4308:18:1;162167:52:0;;;;;;;162230:21;;;;:10;:21;;;;;160001:1;162230:37;;161816:459;;162241:9;;-1:-1:-1;161816:459:0:o;171650:137::-;171720:7;171747:32;171758:20;:18;:20::i;:::-;171747:5;;:10;:32::i;:::-;171740:39;171650:137;-1:-1:-1;;171650:137:0:o;107571:376::-;107806:20;107839:27;-1:-1:-1;;;;;107839:19:0;;107859:6;;107839:19;:27::i;:::-;107884:55;107893:9;107904:8;107914:6;107922:9;107933:5;;107884:8;:55::i;179886:345::-;180052:7;180086;180120;180163:60;180178:5;180185:9;;180196:14;180212:10;180163:14;:60::i;:::-;180156:67;;;;;;179886:345;;;;;;;;:::o;154154:184::-;154222:4;154240:12;154254:11;154269:21;154285:4;;154269:15;:21::i;:::-;154239:51;;;;154308:7;:22;;;;;154325:5;154319:3;:11;154308:22;154301:29;;;;154154:184;;;;;;:::o;183991:920::-;184182:26;184210;184238:17;184280:32;184291:20;:18;:20::i;:::-;-1:-1:-1;;176478:16:0;;176594:10;;175860:291;176618:21;;176681:5;176666:21;;176701:16;;127645:4;127639:11;-1:-1:-1;;;127664:79:0;;127787:4;127778:14;;127771:39;;;;127840:4;127831:14;;127824:34;127894:2;127879:18;;;176160:642;184280:32;184268:44;-1:-1:-1;;;;184327:44:0;;:49;184323:420;;-1:-1:-1;;;184397:45:0;;:50;;;;:76;;-1:-1:-1;184471:2:0;184451:22;;;184397:76;184393:106;;;184482:17;;-1:-1:-1;;;184482:17:0;;;;;;;;;;;184393:106;184519:57;184542:5;:11;;;184555:9;184566;;184519:22;:57::i;:::-;184514:88;;184585:17;;-1:-1:-1;;;184585:17:0;;;;;;;;;;;184514:88;184323:420;;;184639:66;184671:5;:11;;;184684:9;184695;;184639:31;:66::i;:::-;184635:96;;184714:17;;-1:-1:-1;;;184714:17:0;;;;;;;;;;;184635:96;184796:46;184812:5;184819:14;184835:6;184796:15;:46::i;:::-;184858:45;;;4335:25:1;;;4391:2;4376:18;;4369:34;;;184753:89:0;;-1:-1:-1;184753:89:0;;-1:-1:-1;184858:45:0;;4308:18:1;184858:45:0;;;;;;;183991:920;;;;;;;;;:::o;162346:503::-;162618:7;162652;162686;162729:112;162741:5;162748:9;;162759:11;;162772:12;162786;162800:28;162830:10;162729:11;:112::i;:::-;162722:119;;;;;;162346:503;;;;;;;;;;;;:::o;171378:201::-;171453:4;171471:12;171485:11;171500:34;171516:17;:5;:15;:17::i;:::-;171500:15;:34::i;:::-;171470:64;;;;171552:7;:19;;;;;171563:3;171570:1;171563:8;171552:19;171545:26;171378:201;-1:-1:-1;;;;171378:201:0:o;153311:185::-;153379:4;153397:12;153411:11;153426:21;153442:4;;153426:15;:21::i;:::-;153396:51;;;;153465:7;:23;;;;-1:-1:-1;153476:12:0;;;;153311:185;-1:-1:-1;;;;153311:185:0:o;182945:456::-;183172:7;183206;183240;183276:43;183312:6;;183283:5;:16;;;-1:-1:-1;;;;;183276:35:0;;;:43;;;;;:::i;:::-;183337:56;183352:5;183359:9;;183370:14;183386:6;183337:14;:56::i;:::-;183330:63;;;;;;182945:456;;;;;;;;;;;:::o;191267:103::-;190505:13;:11;:13::i;:::-;191332:30:::1;191359:1;191332:18;:30::i;150955:253::-:0;151013:6;:11;;151023:1;151013:11;151009:44;;151033:20;;;;;;;;;;;;;;151009:44;151089:10;151064:16;151083:17;;;:5;:17;;;;;;:26;;;;;;;:::i;:::-;151126:10;151120:17;;;;:5;:17;;;;;;;:28;;;151164:36;151064:45;;-1:-1:-1;151126:10:0;151164:36;;;;151064:45;1590:25:1;;1578:2;1563:18;;1444:177;151164:36:0;;;;;;;;150998:210;150955:253;:::o;152022:452::-;152092:4;;;;152162:282;152183:30;152200:12;;;152183:30;;-1:-1:-1;152182:37:0;;152162:282;;152246:12;;152275:39;152291:22;152305:7;152296:8;152291:4;;:22;:::i;152275:39::-;152245:69;;;;152333:7;:19;;;;;152344:3;152351:1;152344:8;152333:19;152329:71;;;152380:4;152373:11;;;;;;;;;152329:71;-1:-1:-1;152425:7:0;;-1:-1:-1;152221:7:0;;-1:-1:-1;152226:2:0;152221:7;;:::i;:::-;;;152162:282;;;-1:-1:-1;152461:5:0;;152022:452;-1:-1:-1;;;;;;152022:452:0:o;193132:135::-;190505:13;:11;:13::i;:::-;193213:46:::1;-1:-1:-1::0;;;;;193213:17:0;::::1;193239:10;193252:6:::0;193213:17:::1;:46::i;:::-;193132:135:::0;;:::o;179058:113::-;179121:42;179138:10;179150:9;179161:1;179121:16;:42::i;:::-;179058:113;:::o;193562:90::-;190505:13;:11;:13::i;:::-;193632:10:::1;193611:33;24240:451:::0;24527:20;24567:116;24581:15;24606:10;24619:8;24629;24639:11;24652:12;24666:9;24677:1;24680:2;24567:13;:116::i;161076:339::-;161151:16;161197:24;161238:11;:18;161224:33;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;161224:33:0;;161197:60;;161273:9;161268:115;161292:11;:18;161288:1;:22;161268:115;;;161345:10;:26;161356:11;161368:1;161356:14;;;;;;;;:::i;:::-;;;;;;;161345:26;;;;;;;;;;;;161332:7;161340:1;161332:10;;;;;;;;:::i;:::-;;;;;;;;;;:39;161312:3;;;;:::i;:::-;;;;161268:115;;;-1:-1:-1;161400:7:0;161076:339;-1:-1:-1;;161076:339:0:o;181097:1002::-;181276:26;181304;181332:17;181374:32;181385:20;:18;:20::i;:::-;-1:-1:-1;;176478:16:0;;176594:10;;175860:291;176618:21;;176681:5;176666:21;;176701:16;;127645:4;127639:11;-1:-1:-1;;;127664:79:0;;127787:4;127778:14;;127771:39;;;;127840:4;127831:14;;127824:34;127894:2;127879:18;;;176160:642;181374:32;181362:44;-1:-1:-1;;;;181421:44:0;;:49;181417:508;;-1:-1:-1;;;181491:45:0;;:50;181487:302;;181567:55;181592:5;:11;;;181605:9;181616:1;181619:2;181567:24;:55::i;:::-;181562:86;;181631:17;;-1:-1:-1;;;181631:17:0;;;;;;;;;;;181562:86;181417:508;;181487:302;181694:53;181717:5;:11;;;181730:9;181741:1;181744:2;181694:22;:53::i;181417:508::-;181825:62;181857:5;:11;;;181870:9;181881:1;181884:2;181825:31;:62::i;:::-;181821:92;;181896:17;;-1:-1:-1;;;181896:17:0;;;;;;;;;;;181821:92;181980:50;181996:5;182003:14;182019:10;181980:15;:50::i;:::-;182046:45;;;4335:25:1;;;4391:2;4376:18;;4369:34;;;181937:93:0;;-1:-1:-1;181937:93:0;;-1:-1:-1;182046:45:0;;4308:18:1;182046:45:0;;;;;;;181097:1002;;;;;;;;:::o;160542:250::-;160602:7;160652:21;;;:10;:21;;;;;;;160684:58;;160728:14;;;;;;;;;;;;;;160684:58;-1:-1:-1;;160772:10:0;;160542:250;-1:-1:-1;;160542:250:0:o;84826:280::-;85007:20;85047:51;85062:9;85073:6;85081:9;85092:5;;85047:14;:51::i;161485:258::-;161621:12;161635:19;161658:6;-1:-1:-1;;;;;161658:19:0;161678:4;;161658:25;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;161620:63;;;;161719:7;161728:6;161701:34;;;;;;;;;;;;:::i;:::-;;;;;;;;179228:150;179315:55;179332:10;179344:9;179355:14;179315:16;:55::i;154779:256::-;154865:7;154886:12;154900:11;154915:32;154934:6;154942:4;;154915:18;:32::i;:::-;154885:62;;;;154963:7;154958:48;;154979:27;;;;;;;;;;;;;;152627:454;152698:4;;;;152768:284;152789:30;152806:12;;;152789:30;;-1:-1:-1;152788:37:0;;152768:284;;152852:12;;152881:39;152897:22;152911:7;152902:8;152897:4;;:22;:::i;152881:39::-;152851:69;;;;152940:7;152939:8;:20;;;;152951:3;152958:1;152951:8;;152939:20;152935:73;;;152987:5;152980:12;;;;;;;;;152935:73;-1:-1:-1;153033:7:0;;-1:-1:-1;152827:7:0;;-1:-1:-1;152832:2:0;152827:7;;:::i;:::-;;;152768:284;;;-1:-1:-1;153069:4:0;;152627:454;-1:-1:-1;;;;;;152627:454:0:o;150827:68::-;150872:15;150885:1;150872:12;:15::i;23158:551::-;23517:20;23550:27;-1:-1:-1;;;;;23550:19:0;;23570:6;;23550:19;:27::i;:::-;23595:106;23609:15;23626:9;23637:8;23647;23657:11;23670:12;23684:9;23695:1;23698:2;23595:13;:106::i;:::-;23588:113;23158:551;-1:-1:-1;;;;;;;;;;;;23158:551:0:o;153732:184::-;153800:4;153818:12;153832:11;153847:21;153863:4;;153847:15;:21::i;:::-;153817:51;;;;153886:7;:22;;;;-1:-1:-1;153897:11:0;;;;;153732:184;-1:-1:-1;;;;153732:184:0:o;162932:806::-;163265:7;;;163389:2;163373:18;;163369:51;;;163400:20;;;;;;;;;;;;;;163369:51;163466:13;163481:25;;163510:32;:6;;:30;:32::i;:::-;163465:77;;-1:-1:-1;163465:77:0;-1:-1:-1;163465:77:0;-1:-1:-1;163557:36:0;-1:-1:-1;;;;;163557:24:0;;163465:77;;163557:24;:36::i;:::-;163431:174;;;163622:108;163634:5;163641:9;;163652:11;;163665:12;163679;163693:28;163723:6;163622:11;:108::i;:::-;163615:115;;;;;;162932:806;;;;;;;;;;;;;;;:::o;84086:252::-;84229:20;84269:61;84292:10;84305:6;84313:9;84324:5;;84269:14;:61::i;163811:7491::-;164109:26;;;-1:-1:-1;;;;;164199:20:0;;164195:56;;164228:23;;;;;;;;;;;;;;164195:56;164274:17;164284:6;164274:9;:17::i;:::-;164474:29;164506:21;;;:10;:21;;;;;;164405:12;;-1:-1:-1;164449:12:0;;-1:-1:-1;164262:29:0;;-1:-1:-1;164336:6:0;;-1:-1:-1;;164542:38:0;;164538:74;;164589:23;;;;;;;;;;;;;;164538:74;164658:1;164627:19;;;;;;;;:::i;:::-;-1:-1:-1;;;;;164627:33:0;;;:70;;;;-1:-1:-1;164687:10:0;164664:19;;;;;;;;:::i;:::-;-1:-1:-1;;;;;164664:33:0;;;164627:70;164623:97;;;164706:14;;;;;;;;;;;;;;164623:97;164735:21;164731:906;;164869:66;164901:11;;;;;;;;:::i;:::-;164914:9;164925;;164869:31;:66::i;:::-;164864:94;;164944:14;;;;;;;;;;;;;;164864:94;-1:-1:-1;164997:18:0;;;;165032:21;;165056:14;164997:5;165056:12;:14::i;:::-;165032:38;;;;-1:-1:-1;;;165089:28:0;:48;165141:1;165089:53;:76;;;;-1:-1:-1;165163:2:0;165146:19;;;165089:76;165085:468;;;165300:13;165315:29;;165348:32;:6;;:30;:32::i;:::-;165299:81;;-1:-1:-1;165299:81:0;-1:-1:-1;165299:81:0;-1:-1:-1;165399:40:0;-1:-1:-1;;;;;165399:24:0;;165299:81;;165399:24;:40::i;:::-;159952:1;165462:21;;;:10;:21;;;;;;:46;165458:79;;165517:20;;;;;;;;;;;;;;165458:79;165167:386;;;165085:468;164783:781;;164731:906;;;-1:-1:-1;;165597:26:0;164731:906;165716:1;165689:17;:5;:15;:17::i;:::-;:24;;:28;165685:116;;;165739:21;165754:5;165739:14;:21::i;:::-;165734:55;;165769:20;;;;;;;;;;;;;;165734:55;165897:23;;165868;;165867:54;165863:1814;;165945:27;;;;;;;;;;;;;;165863:1814;165994:18;166016:1;165994:23;165990:1687;;166059:21;166038:18;:42;166034:125;;;166122:21;166101:42;;166034:125;166194:135;166211:23;:5;:21;:23::i;:::-;166236:5;:18;;;166256;166276:5;:18;;;166296:21;166319:9;166194:16;:135::i;:::-;166173:156;-1:-1:-1;;;;;;166370:46:0;;166636:36;166654:18;166370:46;166636:36;:::i;:::-;166600:33;166621:12;166600:18;:33;:::i;:::-;:72;166596:106;;;166681:21;;;;;;;;;;;;;;166596:106;166019:695;165990:1687;;;166756:135;166773:23;:5;:21;:23::i;:::-;166798:5;:18;;;166818;166838:5;:18;;;166858:21;166881:9;166756:16;:135::i;:::-;166735:156;;166931:21;166910:18;:42;166906:388;;;166994:21;166973:42;;167055:135;167072:23;:5;:21;:23::i;167055:135::-;167034:156;;167234:12;167213:18;:33;167209:69;;;167255:23;;;;;;;;;;;;;;167209:69;-1:-1:-1;;;;;167334:46:0;;167600:36;167618:18;167334:46;167600:36;:::i;:::-;167564:33;167585:12;167564:18;:33;:::i;:::-;:72;167560:105;;;167645:20;;;;;;;;;;;;;;167560:105;166720:957;165990:1687;167693:23;;;:50;;-1:-1:-1;167720:23:0;;167693:50;167689:83;;;167752:20;;;;;;;;;;;;;;167689:83;167905:18;167881:21;:42;167857:66;;167962:21;167986:1;167962:25;167938:10;:21;167949:9;167938:21;;;;;;;;;;;:49;;;;168026:6;:12;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;168014:59:0;;168040:9;168051:21;168014:59;;;;;;4335:25:1;;;4391:2;4376:18;;4369:34;4323:2;4308:18;;4161:248;168014:59:0;;;;;;;;168172:2;168139:22;:5;:20;:22::i;:::-;:29;;:35;168135:496;;168270:25;168297:30;;168331:48;:22;:5;:20;:22::i;:::-;:46;:48::i;:::-;168269:110;;-1:-1:-1;168269:110:0;-1:-1:-1;168269:110:0;-1:-1:-1;;;;;;168394:77:0;;;168490:9;168501:11;;;;;;;;:::i;:::-;168514:10;168526:18;168546;168566:21;168589:15;;168394:225;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;168176:455;;;168135:496;168675:176;168707:16;;;;;;;;:::i;:::-;168738:11;;;;;;;;:::i;:::-;168764:6;168785:18;168818:22;:5;:20;:22::i;:::-;168675:17;:176::i;:::-;168670:222;;168860:32;;;;;;;;;;;;;;168670:222;168931:2;168909:24;;168905:741;;169029:25;169056:30;;169090:37;:11;;:35;:37::i;:::-;169028:99;;;;;;169142:27;169204:17;-1:-1:-1;;;;;169172:71:0;;169262:10;169274:18;169294;169314:15;;169172:172;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;169142:202;;169387:18;169365:19;:40;:110;;;;;169427:48;169451:23;:5;:21;:23::i;:::-;169427;:48::i;:::-;169426:49;169365:110;:180;;;;;169497:48;169521:23;:5;:21;:23::i;169497:48::-;169496:49;169365:180;169361:274;;;169600:19;169579:40;;169361:274;168935:711;;;;168905:741;-1:-1:-1;;;;;169717:5:0;169689:34;:16;;;;;;;;:::i;:::-;-1:-1:-1;;;;;169689:34:0;;:51;;;;;169739:1;169727:9;:13;169689:51;169685:1048;;;169773:18;169761:9;:30;169757:67;;;169800:24;;-1:-1:-1;;;169800:24:0;;;;;;;;;;;169757:67;169855:18;169843:9;:30;169839:317;;;169946:58;;169928:12;;169946:10;;169969:9;:30;;;;169928:12;169946:58;169928:12;169946:58;169969:30;169946:10;:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;169927:77;;;170079:7;170074:47;;170095:26;;-1:-1:-1;;;170095:26:0;;;;;;;;;;;170074:47;169894:247;169839:317;170170:5;-1:-1:-1;;;;;170170:13:0;;170192:18;170170:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;170229:5:0;:14;;-1:-1:-1;170229:14:0;;-1:-1:-1;170270:1:0;;-1:-1:-1;170244:14:0;;;;;;;;:::i;:::-;-1:-1:-1;;;;;170244:28:0;;:59;;170289:14;;;;;;;;:::i;:::-;170244:59;;;170275:11;;;;;;;;:::i;:::-;170229:95;;;;;;;;;;-1:-1:-1;;;;;30643:55:1;;;170229:95:0;;;30625:74:1;30715:18;;;30708:34;;;30598:18;;170229:95:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;169685:1048;;;170361:9;:14;170357:51;;170384:24;;-1:-1:-1;;;170384:24:0;;;;;;;;;;;170357:51;170428:252;170464:16;;;;;;;;:::i;:::-;170499:10;170554:1;170528:14;;;;;;;;:::i;:::-;-1:-1:-1;;;;;170528:28:0;;:59;;170573:14;;;;;;;;:::i;:::-;170528:59;;;170559:11;;;;;;;;:::i;:::-;170606:18;170643:22;:5;:20;:22::i;170428:252::-;170423:298;;170689:32;;;;;;;;;;;;;;170423:298;170832:2;170798:23;:5;:21;:23::i;:::-;:30;;:36;170794:501;;170930:25;170957:30;;170991:49;:23;:5;:21;:23::i;:49::-;170929:111;;-1:-1:-1;170929:111:0;-1:-1:-1;170929:111:0;-1:-1:-1;;;;;;171055:79:0;;;171154:9;171165:11;;;;;;;;:::i;:::-;171178:10;171190:18;171210;171230:21;171253:15;;171055:228;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;170836:459;;;170794:501;164184:7118;;163811:7491;;;;;;;;;;;;;:::o;191525:201::-;190505:13;:11;:13::i;:::-;-1:-1:-1;;;;;191614:22:0;::::1;191606:73;;;::::0;-1:-1:-1;;;191606:73:0;;31237:2:1;191606:73:0::1;::::0;::::1;31219:21:1::0;31276:2;31256:18;;;31249:30;31315:34;31295:18;;;31288:62;31386:8;31366:18;;;31359:36;31412:19;;191606:73:0::1;31035:402:1::0;191606:73:0::1;191690:28;191709:8;191690:18;:28::i;108473:304::-:0;108674:20;108714:55;108723:9;108734:8;108744:6;108752:9;108763:5;;108714:8;:55::i;:::-;108707:62;108473:304;-1:-1:-1;;;;;;;108473:304:0:o;86739:3278::-;86970:137;;;87030:16;87027:1;87024;87009:38;87075:16;87072:1;87065:27;87123:596;87191:6;87181:70;;87222:10;;:::i;:::-;87442:1;87438;87432:8;87429:15;87424:2;87406:16;87403:24;87399:46;87316:16;87309:24;87284:204;87516:7;87506:198;;87558:66;87555:1;87548:77;87683:1;87680;87673:12;87123:596;87757:4;87751:11;87807:4;87797:8;87793:19;87873:10;87863:8;87856:28;87962:4;87951:9;87946:3;87936:8;87926;87919:5;87908:59;87898:115;;87988:10;;:::i;:::-;88112:4;88105;88094:9;88090:20;88085:3;88079;88069:8;88065:18;88055:8;88048:5;88037:80;88027:136;;88138:10;;:::i;:::-;88262:4;88255;88244:9;88240:20;88235:3;88229;88219:8;88215:18;88205:8;88198:5;88187:80;88177:136;;88288:10;;:::i;:::-;88329:9;88352:10;88401:1;88387:12;88383:20;88422:1;88417:106;;;;88594:4;88583:9;88579:20;88573:27;88564:36;;88628:12;88618:22;;88376:279;;88417:106;88458:9;88452:16;88443:25;;88496:12;88486:22;;88376:279;;88688:11;88678:8;88671:29;88753:4;88742:9;88732:26;88721:9;88714:45;88837:20;88830:4;88819:9;88815:20;88808:50;-1:-1:-1;;;;;88908:4:0;88898:8;88888:25;88884:45;88872:57;;88956:8;88950:4;88946:19;88943:178;;;88995:66;88992:1;88985:77;89104:1;89101;89094:12;88943:178;89163:4;89150:18;89137:31;;89199:10;89189:8;89182:28;89241:9;89234:5;89231:20;89270:1;89265:327;;;;89732:5;89725:4;89715:8;89711:19;89704:34;89784:8;89777:4;89767:8;89763:19;89756:37;89839:6;89832:4;89822:8;89818:19;89811:35;89864:120;89960:4;89957:1;89951:4;89944;89934:8;89930:19;89927:1;89920:5;89913;89908:57;89864:120;:::i;:::-;89224:775;;89265:327;89377:8;89370:4;89360:8;89356:19;89349:37;89432:6;89425:4;89415:8;89411:19;89404:35;89457:120;89553:4;89550:1;89544:4;89537;89527:8;89523:19;89520:1;89513:5;89506;89501:57;89457:120;:::i;:::-;89224:775;;;;;86739:3278;;;;:::o;10531:166::-;10651:9;10637:10;:23;10633:56;;10669:20;;;;;;;;;;;;;;109521:6462;109712:20;109813:137;;110578:1610;110688:36;110678:8;110671:54;110648:3;110802:4;110792:8;110787:3;110777:8;110771:4;110764:5;110753:54;110743:118;;110832:10;;:::i;:::-;110910:4;110892:16;110889:26;110879:216;;110950:66;110947:1;110940:77;111074:1;111071;111064:12;110879:216;111137:8;111131:15;111200:4;111190:8;111186:19;111180:26;111227:8;111224:152;;;111312:8;111224:152;111550:9;111538:10;111534:26;111527:33;;111632:12;111622:8;111618:27;111613:3;111609:37;111598:8;111593:3;111589:18;111585:62;111578:69;;;;111684:32;111674:8;111667:50;111754:8;111747:16;111735:28;;111825:8;111818:16;111813:3;111809:26;111802:4;111792:8;111788:19;111781:55;111891:8;111886:3;111882:18;111875:4;111865:8;111861:19;111854:47;111947:2;111940:4;111930:8;111926:19;111919:31;111996:4;111989;111979:8;111975:19;111968:33;112047:1;112040:4;112030:8;112026:19;112019:30;112117:1;112114;112108:4;112098:8;112095:1;112089:4;112082:5;112077:42;112067:106;;112144:10;;:::i;110578:1610::-;112278:16;112270:6;112267:28;112264:198;;;112325:66;112322:1;112315:77;112445:1;112442;112435:12;112264:198;112500:4;112494:11;112546:4;112536:8;112532:19;112526:4;112519:33;112615:12;112612:1;112608:20;112594:12;112590:39;112671:12;112658:26;112705:8;112732:1;112727:763;;;;113534:11;113531:190;;;-1:-1:-1;;;113576:1:0;113569:77;113700:1;113697;113690:12;113531:190;-1:-1:-1;;;113748:8:0;113741:46;113832:8;113826:3;113816:8;113812:18;113805:36;-1:-1:-1;;;;;113891:7:0;113887:27;113880:4;113870:8;113866:19;113859:56;113961:6;113954:4;113944:8;113940:19;113933:35;113986:112;114074:4;114071:1;114065:4;114055:8;114052:1;114042:8;114035:5;114030:49;113986:112;:::i;:::-;112698:1415;;112727:763;112774:11;112766:6;112763:23;112753:210;;-1:-1:-1;;;112818:1:0;112811:77;112942:1;112939;112932:12;112753:210;-1:-1:-1;;;112990:8:0;112983:45;113101:1;113098;113093:3;113083:8;113075:6;113068:5;113061;113056:47;113046:111;;113128:10;;:::i;:::-;-1:-1:-1;;;113184:8:0;113177:47;-1:-1:-1;;;;;113273:7:0;113269:27;113263:3;113253:8;113249:18;113242:55;113343:6;113336:4;113326:8;113322:19;113315:35;113419:1;113416;113410:4;113400:8;113397:1;113390:5;113383;113378:43;113368:107;;113446:10;;:::i;:::-;112698:1415;114145:6;114129:22;;114199:4;114185:12;114181:23;114167:546;114212:14;114209:1;114206:21;114167:546;;;114299:1;114286:15;114337:319;-1:-1:-1;;;;;114610:11:0;114606:31;-1:-1:-1;;;114557:7:0;114553:29;114534:17;114530:53;-1:-1:-1;;;114484:7:0;114480:27;-1:-1:-1;;;;;114434:7:0;114430:27;114395:12;114364:8;114337:319;:::i;:::-;114321:335;-1:-1:-1;114687:11:0;-1:-1:-1;114241:4:0;114234:12;114167:546;;;-1:-1:-1;;;;114736:24:0;;114774:354;;;;115185:297;115454:9;-1:-1:-1;;;115405:7:0;115401:29;115382:17;115378:53;-1:-1:-1;;;115332:7:0;115328:27;-1:-1:-1;;;;;115282:7:0;115278:27;115243:12;115212:8;115185:297;:::i;:::-;115169:313;;-1:-1:-1;;;115509:8:0;115502:46;115594:12;115587:4;115577:8;115573:19;115566:41;115676:1;115673;115667:4;115657:8;115654:1;115647:5;115640;115635:43;115625:107;;115703:10;;:::i;:::-;115808:1;115805;115802;115799;115785:12;115774:9;115767:5;115762:48;115752:112;;115835:10;;:::i;:::-;114729:1150;;114774:354;114816:297;115085:9;-1:-1:-1;;;115036:7:0;115032:29;115013:17;115009:53;-1:-1:-1;;;114963:7:0;114959:27;-1:-1:-1;;;;;114913:7:0;114909:27;114874:12;114843:8;114816:297;:::i;:::-;114800:313;;114729:1150;;;;;115919:9;115904:12;:24;115900:75;;;115937:38;;-1:-1:-1;;;115937:38:0;;;;;;;;;;;17445:858;17547:15;17565:27;;;17547:45;;17603:12;17755:4;17749:11;17789:8;17783:4;17776:22;17836:4;17829;17823;17819:15;17812:29;17879:2;17872:4;17866;17862:15;17855:27;17920:6;17913:4;17907;17903:15;17896:31;17990:4;17985:3;17980;17974:4;17971:1;17964:5;17957;17952:43;17941:54;;;18012:7;18009:220;;;18046:16;18080:47;;;;18209:1;18205;18199:8;18196:15;18191:2;18173:16;18170:24;18166:46;18155:57;;18039:175;;18080:47;18123:1;18115:5;18103:18;18100:25;18089:36;;18039:175;;18009:220;18255:7;18250:45;;18271:24;;;;;;;;;;;;;;18250:45;17536:767;;17445:858;;;;:::o;96685:133::-;96737:4;-1:-1:-1;;;;;96762:22:0;;;;:47;;-1:-1:-1;;;;;;96788:21:0;;96568:42;96788:21;96754:56;96685:133;-1:-1:-1;;96685:133:0:o;19732:489::-;19809:12;19853:6;19836:23;;;19832:325;;19886:62;19904:5;19911:28;19941:6;;19886:17;:62::i;:::-;19876:72;;19832:325;;;19987:6;19970:23;;;19966:191;;20020:64;20038:5;20045:30;20077:6;;20020:17;:64::i;19966:191::-;20124:21;;;;;;;;;;;;;;19966:191;20172:7;20167:46;;20181:32;:30;:32::i;:::-;19798:423;19732:489;;;:::o;104512:837::-;104878:4;104872:11;104713:25;104899:28;;;104957:4;104948:14;;104941:37;;;104713:25;105034:11;105021;105014:4;105005:14;;104992:54;105101:11;105087;105080:4;105075:3;105071:14;105067:32;105060:53;105206:1;105203;105189:11;105183:4;105179:22;105174:3;105161:11;105151:8;105144:5;105139:69;105129:202;;105252:16;105249:1;105244:3;105229:40;105299:16;105294:3;105287:29;105129:202;;104802:540;104512:837;;;;;:::o;96826:234::-;96902:7;96926:12;96932:5;96926;:12::i;:::-;96922:131;;;-1:-1:-1;;;;;;96962:15:0;;;96955:22;;96922:131;97017:24;;;;;-1:-1:-1;;;;;15436:55:1;;;97017:24:0;;;15418:74:1;97017:15:0;;;;;15391:18:1;;97017:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;97010:31;;;;97142:545;97237:10;;97233:447;;97268:12;97274:5;97268;:12::i;:::-;97264:405;;;97329:6;97305:21;:30;97301:64;;;97344:21;;;;;;;;;;;;;;97301:64;97453:12;97471:2;-1:-1:-1;;;;;97471:7:0;97486:6;96511:4;97471:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;97452:71;;;97547:7;97542:40;;97563:19;;-1:-1:-1;;;97563:19:0;;;;;;;;;;;97264:405;97623:30;-1:-1:-1;;;;;97623:18:0;;97642:2;97646:6;97623:18;:30::i;:::-;97142:545;;;:::o;85114:1573::-;85285:20;85357:5;85388:8;;;85384:33;;85405:12;;;;;;;;;;;;;;85384:33;85489:6;;-1:-1:-1;;;85452:7:0;;85526:9;:13;;85432:17;;-1:-1:-1;;;85572:5:0;;85452:7;85572:16;;;;;;;:::i;:::-;;;;;;;:36;:40;85554:58;;85631:8;85627:160;;;85677:6;85664:9;:19;85660:62;;85692:30;;-1:-1:-1;;;85692:30:0;;;;;;;;;;;85660:62;85741:5;-1:-1:-1;;;;;85741:13:0;;85762:6;85741:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85627:160;85811:1;85805:3;:7;85801:629;;;85848:87;85866:4;85873:8;:37;;85900:10;85873:37;;;85892:4;85873:37;85912:5;;85918:1;85912:8;;;;;;;:::i;:::-;;;;;;;85922:12;85848:9;:87::i;:::-;85833:102;-1:-1:-1;85973:1:0;85956:161;85980:9;85976:1;:13;85956:161;;;86034:63;86052:4;86067;86074:5;;86080:1;86074:8;;;;;;;:::i;:::-;;;;;;;86084:12;86034:9;:63::i;:::-;86019:78;-1:-1:-1;85991:3:0;;85956:161;;;;86150:96;86160:10;:38;;86189:9;86160:38;;;86181:4;86160:38;86208:4;86215:5;;86221:9;86215:16;;;;;;;:::i;86150:96::-;86135:111;;85801:629;;;86302:112;86312:10;:38;;86341:9;86312:38;;;86333:4;86312:38;86352:8;:37;;86379:10;86352:37;;86302:112;86287:127;;85801:629;86465:9;86450:12;:24;86446:75;;;86483:38;;-1:-1:-1;;;86483:38:0;;;;;;;;;;;86446:75;86542:10;86538:131;;;86573:28;;-1:-1:-1;;;86573:28:0;;;;;1590:25:1;;;86573:5:0;-1:-1:-1;;;;;86573:14:0;;;;1563:18:1;;86573:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;86620:33:0;;-1:-1:-1;;;;;;;;86620:19:0;;86640:12;86620:19;:33::i;:::-;85318:1362;;;;85114:1573;;;;;;;:::o;138060:314::-;138113:7;138145:4;-1:-1:-1;;;;;138154:12:0;138137:29;;:66;;;;;138187:16;138170:13;:33;138137:66;138133:234;;;-1:-1:-1;138227:24:0;;138060:314::o;138133:234::-;-1:-1:-1;138563:73:0;;;138313:10;138563:73;;;;34816:25:1;;;;138325:12:0;34857:18:1;;;34850:34;138339:15:0;34900:18:1;;;34893:34;138607:13:0;34943:18:1;;;34936:34;138630:4:0;34986:19:1;;;;34979:84;;;;138563:73:0;;;;;;;;;;34788:19:1;;;;138563:73:0;;;138553:84;;;;;;138060:314::o;131477:841::-;131560:14;131587:27;131560:14;131617:18;;;;:5;:18;:::i;:::-;131825:4;131819:11;131587:48;;-1:-1:-1;131587:48:0;-1:-1:-1;129143:388:0;;131587:48;;131819:11;131965:59;132077:19;132072:3;132062:35;132054:5;132049:3;132045:15;132038:60;132148:5;132141;132134:4;132129:3;132125:14;132112:42;132168:21;;;132228:5;132213:21;;127645:4;127639:11;-1:-1:-1;;;127664:79:0;;127787:4;127778:14;;127771:39;;;127840:4;127831:14;;127824:34;;;127894:2;127879:18;;132213:21;;-1:-1:-1;132264:46:0;127311:604;155402:2271;155470:4;155476:7;155496:16;155522:21;:4;;:19;:21::i;:::-;155515:29;;;-1:-1:-1;155555:11:0;155569:21;:4;;155588:1;155569:18;:21::i;:::-;155555:35;-1:-1:-1;;;155666:62:0;;155662:166;;155768:4;155774:33;155803:3;155774:28;:33::i;:::-;:41;;155814:1;155774:41;;;155810:1;155774:41;155760:56;;-1:-1:-1;155760:56:0;;;-1:-1:-1;155760:56:0;;-1:-1:-1;;155760:56:0;155662:166;155862:33;155844:52;;155840:1767;;;155950:16;155932:35;;155928:776;;;-1:-1:-1;;156007:36:0;;156003:320;;156091:4;156097:37;156100:3;156105:28;:4;;156129:3;156105:23;:28::i;156003:320::-;-1:-1:-1;;156173:48:0;;156169:154;;156269:4;156275:19;156290:3;154583:15;:22;;154501:154;156169;155840:1767;;155928:776;-1:-1:-1;;156367:36:0;;156363:326;;156451:4;156457:37;156460:3;156465:28;:4;;156489:3;156465:23;:28::i;156363:326::-;-1:-1:-1;;156533:36:0;;156529:160;;156617:4;156623:37;156626:3;156631:28;:4;;156655:3;156631:23;:28::i;155840:1767::-;156758:16;156740:35;;156736:860;;;-1:-1:-1;;156815:53:0;;156811:372;;156916:4;156922:72;156958:3;156965:28;:4;;156989:3;156965:23;:28::i;156922:72::-;156908:87;;;;;;;;156811:372;-1:-1:-1;;157025:37:0;;157021:162;;157110:4;157116:38;157120:3;157125:28;:4;;157149:3;157125:23;:28::i;156736:860::-;-1:-1:-1;;157227:36:0;;157223:358;;157311:4;157317:37;157320:3;157325:28;:4;;157349:3;157325:23;:28::i;157223:358::-;-1:-1:-1;;157393:45:0;;157389:192;;157486:4;157492:60;157520:3;157527:24;:4;;157546;157527:18;:24::i;157389:192::-;157626:39;157653:4;157660;;157626:18;:39::i;:::-;157619:46;;;;;;155402:2271;;;;;;:::o;122691:1042::-;122795:12;123080:15;123098:34;;;123080:52;;123271:4;123265:11;123304:8;123299:3;123292:21;123350:4;123343;123338:3;123334:14;123327:28;123392:4;123385;123380:3;123376:14;123369:28;123434:16;123427:4;123422:3;123418:14;123411:40;123512:16;123494;123487:4;123482:3;123478:14;123465:64;123609:4;123606:1;123587:16;123581:4;123577:27;123572:3;123564:6;123557:5;123546:68;123543:172;;;123694:4;123676:16;123673:26;123668:1;123662:8;123652;123649:22;123645:55;123634:66;;123543:172;;123196:530;122691:1042;;;;;;:::o;121298:385::-;121411:12;-1:-1:-1;;;;;121440:20:0;;121436:38;;-1:-1:-1;121469:5:0;121462:12;;121436:38;121510:2;121490:22;;;:48;;-1:-1:-1;121536:2:0;121516:22;;121490:48;121489:88;;;;;121571:6;-1:-1:-1;;;;;121543:34:0;:24;121551:4;121557:9;;121543:7;:24::i;:::-;-1:-1:-1;;;;;121543:34:0;;121489:88;121485:132;;;-1:-1:-1;121601:4:0;121594:11;;121485:132;121634:41;121651:6;121659:4;121665:9;;121634:16;:41::i;184919:2988::-;185069:20;;-1:-1:-1;;;;;185128:20:0;;185124:59;;185157:26;;;;;;;;;;;;;;185124:59;185212:11;;;;185267:19;;;;-1:-1:-1;;;;;185267:33:0;;;;;:70;;-1:-1:-1;185304:19:0;;;;-1:-1:-1;;;;;185304:33:0;185327:10;185304:33;;185267:70;185263:100;;;185346:17;;;;;;;;;;;;;;185263:100;185425:10;;185509:19;185526:2;185509:19;;;;185547:15;;;;;:47;;;185584:10;185566:15;:28;185547:47;185543:74;;;185603:14;;;;;;;;;;;;;;185543:74;185673:32;185690:5;185697:4;185703:1;185673:16;:32::i;:::-;-1:-1:-1;;185791:18:0;;;;185852;;;;178043:145;185902:29;;185763:25;185997:11;;;185993:777;;186094:17;186079:32;;186145:17;186130:32;;185993:777;;;-1:-1:-1;;;186201:35:0;;:40;186197:573;;186275:17;186266:6;:26;186262:61;;;186301:22;;;;;;;;;;;;;;186262:61;186357:6;186342:21;;186397:84;186430:17;186449;186468:12;186397:32;:84::i;:::-;186382:99;;186197:573;;;186548:17;186539:6;:26;186535:61;;;186574:22;;;;;;;;;;;;;;186535:61;186630:6;186615:21;;186670:84;186703:17;186722;186741:12;186670:32;:84::i;:::-;186655:99;;186197:573;185729:1052;;;186797:12;186813:1;186797:17;:38;;;-1:-1:-1;186818:17:0;;186797:38;186793:74;;;186844:23;;;;;;;;;;;;;;186793:74;186939:5;-1:-1:-1;;;;;186911:34:0;:5;:16;;;-1:-1:-1;;;;;186911:34:0;;:77;;;;-1:-1:-1;177988:8:0;186949:34;;:39;;186911:77;186907:532;;;187005:54;;-1:-1:-1;;;187005:54:0;;-1:-1:-1;;;;;32249:15:1;;;187005:54:0;;;32231:34:1;187039:4:0;32281:18:1;;;32274:43;32333:18;;;32326:34;;;187005:5:0;:18;;;;32143::1;;187005:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;187074:28:0;;-1:-1:-1;;;187074:28:0;;;;;1590:25:1;;;187074:5:0;-1:-1:-1;;;;;187074:14:0;;;;1563:18:1;;187074:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;187182:12;187200:6;-1:-1:-1;;;;;187200:11:0;187219:12;177730:4;187200:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;187181:81;;;187282:7;187277:47;;187298:26;;-1:-1:-1;;;187298:26:0;;;;;;;;;;;187277:47;186990:346;186907:532;;;187364:16;;;;187357:70;;-1:-1:-1;;;;;187357:41:0;187399:5;187406:6;187414:12;187357:41;:70::i;:::-;187510:5;-1:-1:-1;;;;;187482:34:0;:5;:16;;;-1:-1:-1;;;;;187482:34:0;;:51;;;;;187532:1;187520:9;:13;187482:51;187478:422;;;187567:12;187554:9;:25;187550:62;;187588:24;;-1:-1:-1;;;187588:24:0;;;;;;;;;;;187550:62;187627:5;-1:-1:-1;;;;;187627:13:0;;187649:12;187627:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;187680:35:0;;-1:-1:-1;;;187680:35:0;;-1:-1:-1;;;;;30643:55:1;;;187680:35:0;;;30625:74:1;30715:18;;;30708:34;;;187680:5:0;:14;;-1:-1:-1;187680:14:0;;-1:-1:-1;30598:18:1;;;-1:-1:-1;187680:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;187478:422;;;187752:9;:14;187748:51;;187775:24;;-1:-1:-1;;;187775:24:0;;;;;;;;;;;187748:51;187821:16;;;;187814:74;;-1:-1:-1;;;;;187814:41:0;187856:10;187868:5;187875:12;187814:41;:74::i;:::-;185113:2794;184919:2988;;;;;;:::o;130869:140::-;130932:14;;130966:35;130971:5;130978:22;130966:4;:35::i;:::-;130959:42;;;;130869:140;;;:::o;190784:132::-;190665:7;190692:6;-1:-1:-1;;;;;190692:6:0;189246:10;190848:23;190840:68;;;;-1:-1:-1;;;190840:68:0;;32573:2:1;190840:68:0;;;32555:21:1;;;32592:18;;;32585:30;32651:34;32631:18;;;32624:62;32703:18;;190840:68:0;32371:356:1;191886:191:0;191960:16;191979:6;;-1:-1:-1;;;;;191996:17:0;;;;;;;;;;192029:40;;191979:6;;;;;;;192029:40;;191960:16;192029:40;191949:128;191886:191;:::o;187915:559::-;-1:-1:-1;;;;;188211:19:0;;188018:23;188211:19;;;:12;:19;;;;;;;;188044:22;188065:1;188044:22;;;;188263:35;;;;;;;;;;188044:22;;188104:1;:21;;;;188103:40;;;188313:29;;;:48;;;188309:79;;188370:18;;;;;;;;;;;;;;188309:79;188399:35;;;;;;;;;;;;;188437:29;;188399:67;;-1:-1:-1;;;187915:559:0:o;125564:1153::-;125667:12;126005:15;126023:34;;;126005:52;;126196:4;126190:11;126229:8;126224:3;126217:21;126275:4;126268;126263:3;126259:14;126252:28;126317:4;126310;126305:3;126301:14;126294:28;126359:2;126352:4;126347:3;126343:14;126336:26;126399:1;126392:4;126387:3;126383:14;126376:25;-1:-1:-1;;;;;126442:2:0;126438:24;126431:4;126426:3;126422:14;126415:48;126531:2;126513:16;126509:25;126505:2;126501:34;126494:4;126489:3;126485:14;126477:59;126593:4;126590:1;126584:4;126579:3;126571:6;126564:5;126553:45;126550:149;;;-1:-1:-1;126652:1:0;126646:8;126633:22;126660:16;126678:4;126657:26;126629:55;;125564:1153;-1:-1:-1;;;;;125564:1153:0:o;124539:1017::-;124640:12;124939:15;124957:34;;;124939:52;;125130:4;125124:11;125163:8;125158:3;125151:21;125209:4;125202;125197:3;125193:14;125186:28;125251:4;125244;125239:3;125235:14;125228:28;125293:2;125286:4;125281:3;125277:14;125270:26;125333:1;125326:4;125321:3;125317:14;125310:25;125372:2;125365:4;125360:3;125356:14;125349:26;125432:4;125429:1;125423:4;125418:3;125410:6;125403:5;125392:45;125389:149;;;-1:-1:-1;125491:1:0;125485:8;125472:22;125499:16;125517:4;125496:26;125468:55;;124539:1017;-1:-1:-1;;;;;124539:1017:0:o;122031:320::-;122141:12;-1:-1:-1;;;;;122170:20:0;;122166:38;;-1:-1:-1;122199:5:0;122192:12;;122166:38;122243:6;-1:-1:-1;;;;;122219:30:0;:20;122227:4;122233:1;122236:2;122219:7;:20::i;:::-;-1:-1:-1;;;;;122219:30:0;;122215:74;;-1:-1:-1;122273:4:0;122266:11;;122215:74;122306:37;122323:6;122331:4;122337:1;122340:2;122306:16;:37::i;157681:557::-;157768:12;157782:11;157935:4;157929:11;157989:12;157975;157969:4;157956:46;158078:4;158073:3;158059:12;158053:4;158045:6;158038:5;158027:56;158124:16;158142:2;158121:24;158108:38;;-1:-1:-1;;158160:60:0;;;;-1:-1:-1;158203:1:0;158197:8;158160:60;157681:557;;;;;;:::o;148639:493::-;148715:14;148731:19;148715:14;148781:2;148767:16;;148763:50;;;148792:21;;-1:-1:-1;;;148792:21:0;;;;;;;;;;;148763:50;-1:-1:-1;;;148990:25:0;;148986:2;148982:34;;149062:2;149045:20;;;;-1:-1:-1;;149094:20:0;;;;148639:493::o;131017:134::-;131077:14;;131111:32;131116:5;131123:19;131111:4;:32::i;130709:152::-;130778:14;;130812:41;130817:5;130824:28;130812:4;:41::i;173220:610::-;173486:7;173510:18;;;173506:185;;173586:93;173619:17;173638;173657:21;173586:32;:93::i;:::-;173579:100;;;;173506:185;173708:114;173720:6;;173728:17;173747:21;173770:17;173789:21;173812:9;173708:11;:114::i;:::-;173701:121;173220:610;-1:-1:-1;;;;;;;;173220:610:0:o;130549:152::-;130618:14;;130652:41;130657:5;130664:28;130652:4;:41::i;172602:610::-;172868:7;172892:18;;;172888:185;;172968:93;173001:17;173020;173039:21;172968:32;:93::i;131159:150::-;131227:14;;131261:40;131266:5;131273:27;131261:4;:40::i;130233:150::-;130301:14;;130335:40;130340:5;130347:27;130335:4;:40::i;171795:799::-;172128:4;172122:11;-1:-1:-1;;;172149:22:0;;;172202:4;172192:15;;172185:29;;;172245:4;172235:15;;172228:27;;;172286:4;172276:15;;172269:31;;;171917:12;;172358;172344;172337:4;172327:15;;172314:57;172457:4;172452:3;172437:12;172431:4;172427:23;172421:4;172418:1;172411:5;172404;172399:63;172385:77;;172571:1;172567;172561:8;172558:15;172553:2;172535:16;172532:24;172528:46;172509:16;172502:24;172499:76;172491:6;172487:89;172476:100;;;172052:535;171795:799;;;;;;;;:::o;129763:139::-;129832:4;129873:1;129856:18;;:38;;;;;129878:6;;129885:1;129878:9;;;;;;;:::i;:::-;;;;;;;;;:16;;;;;129849:45;129763:139;-1:-1:-1;;;129763:139:0:o;130391:150::-;130459:14;;130493:40;130498:5;130505:27;130493:4;:40::i;131317:152::-;131386:14;;131420:41;131425:5;131432:28;131420:4;:41::i;20935:725::-;21030:12;21184:11;21181:1;21177:19;21228:4;21222:11;21262:8;21256:4;21249:22;21328:11;21315;21308:4;21302;21298:15;21285:55;21403:4;21398:3;21393;21387:4;21384:1;21377:5;21370;21365:43;21354:54;;;;21425:7;21422:220;;;21459:16;21493:47;;;;21622:1;21618;21612:8;21609:15;21604:2;21586:16;21583:24;21579:46;21568:57;;21452:175;;21493:47;21536:1;21528:5;21516:18;21513:25;21502:36;;21452:175;;20935:725;;;;;;:::o;14256:355::-;14491:4;14485:11;14533:16;14530:1;14525:3;14510:40;14576:16;14571:3;14564:29;18408:203;18496:52;18506:5;-1:-1:-1;;;18538:2:0;18542:5;18496:9;:52::i;:::-;18491:113;;18572:20;;;;;;;;;;;;;;90025:861;90125:7;-1:-1:-1;;;90163:25:0;;:30;90204:675;;;;90238:14;90287:4;-1:-1:-1;;;;;90256:43:0;;90318:9;90346:10;90375:25;90393:6;90375:17;:25::i;:::-;90453:17;;;-1:-1:-1;;;;;15436:55:1;;90453:17:0;;;15418:74:1;82361:14:0;;15391:18:1;90453:17:0;;;;;;;;;;;;90256:229;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;90235:250;;;90507:28;90527:7;90526:8;;;:::i;:::-;90507:18;:28::i;:::-;90500:35;;;;;;90204:675;90569:14;90619:4;-1:-1:-1;;;;;90588:43:0;;90650:9;90678:10;90707:25;90725:6;90707:17;:25::i;:::-;90785:17;;;-1:-1:-1;;;;;15436:55:1;;90785:17:0;;;15418:74:1;82547:53:0;;15391:18:1;90785:17:0;;;;;;;;;;;;90588:229;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;90568:249:0;-1:-1:-1;90839:28:0;90858:8;90568:249;90858:8;:::i;38474:317::-;38589:6;38564:21;:31;;38556:73;;;;-1:-1:-1;;;38556:73:0;;33974:2:1;38556:73:0;;;33956:21:1;34013:2;33993:18;;;33986:30;34052:31;34032:18;;;34025:59;34101:18;;38556:73:0;33772:353:1;38556:73:0;38643:12;38661:9;-1:-1:-1;;;;;38661:14:0;38683:6;38661:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38642:52;;;38713:7;38705:78;;;;-1:-1:-1;;;38705:78:0;;34332:2:1;38705:78:0;;;34314:21:1;34371:2;34351:18;;;34344:30;34410:34;34390:18;;;34383:62;34481:28;34461:18;;;34454:56;34527:19;;38705:78:0;34130:422:1;147814:351:0;147881:12;147924:1;147910:15;;147906:49;;;147934:21;;-1:-1:-1;;;147934:21:0;;;;;;;;;;;147906:49;-1:-1:-1;;148122:25:0;;147814:351::o;147402:404::-;147484:13;147549:2;147540:11;;147526:25;;147522:59;;;147560:21;;-1:-1:-1;;;147560:21:0;;;;;;;;;;;147522:59;-1:-1:-1;147763:24:0;;;;147750:38;;147402:404;-1:-1:-1;147402:404:0:o;148173:458::-;148264:19;;148300:24;;;148296:58;;;148333:21;;-1:-1:-1;;;148333:21:0;;;;;;;;;;;148296:58;-1:-1:-1;;148528:28:0;;;;148585;;;;148173:458::o;119883:1407::-;119962:14;120117:4;120111:11;120200:16;120235:2;120230:244;;;;120493:2;120488:363;;;;120899:1;120892:8;;120193:722;;120230:244;120381:4;120363:16;120359:27;120346:41;120343:1;120338:50;120331:4;120326:3;120322:14;120315:74;120454:4;120436:16;120429:4;120424:3;120420:14;120407:52;120230:244;;120488:363;120618:4;120600:16;120596:27;120583:41;120695:2;120677:16;120673:25;120669:2;120665:34;120658:4;120653:3;120649:14;120642:58;120765:4;120747:16;120740:4;120735:3;120731:14;120718:52;-1:-1:-1;;;;;120811:24:0;120804:4;120795:14;;120788:48;120193:722;;120934:3;120931:341;;;120986:11;120978:4;120973:3;120969:14;120963:21;120960:38;120957:300;;;121088:4;121083:3;121076:17;121127:1;121124;121117:12;121192:4;121189:1;121183:4;121178:3;121173;121166:5;121155:42;121151:47;121236:1;121230:8;121220:18;;120957:300;120931:341;119883:1407;;;;;:::o;140083:237::-;140207:7;140296:16;140291:1;140296:16;140235:34;140253:16;140235:15;:34;:::i;:::-;:53;;;;:::i;:::-;:57;;;;:::i;:::-;140234:78;;;;:::i;139778:212::-;139902:7;139966:16;139929:34;139947:16;139929:15;:34;:::i;129910:315::-;129987:14;;130014:16;130051:1;130041:5;130033:14;;;;;;;;:::i;:::-;:19;;;-1:-1:-1;130084:18:0;;;;:5;:18;:::i;:::-;:133;;130125:13;;;;130180:25;;;130084:133;;;;;130142:2;130125:19;;;;130124:33;;130084:133;;;:::i;:::-;130077:140;;;;;129910:315;;;;;:::o;118592:687::-;118668:14;-1:-1:-1;;;;;118819:2:0;118815:24;118862:11;118859:1;118856:18;118853:408;;;118911:4;118905:11;118948:4;118943:3;118936:17;119024:2;119006:16;119002:25;118998:2;118994:34;118987:4;118982:3;118978:14;118971:58;119070:1;119063:4;119058:3;119054:14;119047:25;119113:1;119106:4;119101:3;119097:14;119090:25;119143:1;119140;119133:12;119204:4;119201:1;119195:4;119190:3;119185;119178:5;119167:42;-1:-1:-1;;119244:1:0;119238:8;;118592:687;-1:-1:-1;;;;;118592:687:0:o;173838:1027::-;174095:7;174136:1;174119:18;;;174115:743;;174158:31;174182:6;;174158:23;:31::i;:::-;174154:312;;;174305:19;174286:15;:38;174282:64;;174333:13;;;;;;;;;;;;;;174282:64;-1:-1:-1;174372:17:0;174365:24;;174154:312;174437:13;;;;;;;;;;;;;;174115:743;174499:14;174515:19;;174538:32;:6;;:30;:32::i;:::-;174498:72;;;;;;174586:12;174600:19;174623:6;-1:-1:-1;;;;;174623:17:0;174658:4;;174664:15;174681:21;174704:9;174641:73;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;174641:73:0;;;;;;;;;;174623:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;174585:130;;;;174735:7;174734:8;:31;;;;174746:6;:13;174763:2;174746:19;;174734:31;174730:65;;;174774:21;;;;;;;;;;;;;;174730:65;174828:6;174817:29;;;;;;;;;;;;:::i;:::-;174810:36;;;;;;;;;20229:698;20323:12;20477:4;20471:11;20511:8;20505:4;20498:22;20558:2;20551:4;20545;20541:15;20534:27;20599:6;20592:4;20586;20582:15;20575:31;20670:4;20665:3;20659:4;20653;20650:1;20643:5;20636;20631:44;20620:55;;;20692:7;20689:220;;;20726:16;20760:47;;;;20889:1;20885;20879:8;20876:15;20871:2;20853:16;20850:24;20846:46;20835:57;;20719:175;;80925:301;80981:6;-1:-1:-1;;;;;81108:5:0;:34;;81100:87;;;;-1:-1:-1;;;81100:87:0;;36482:2:1;81100:87:0;;;36464:21:1;36521:2;36501:18;;;36494:30;36560:34;36540:18;;;36533:62;36631:10;36611:18;;;36604:38;36659:19;;81100:87:0;36280:404:1;81100:87:0;-1:-1:-1;81212:5:0;80925:301::o;62227:171::-;62283:7;62320:1;62311:5;:10;;62303:55;;;;-1:-1:-1;;;62303:55:0;;36891:2:1;62303:55:0;;;36873:21:1;;;36910:18;;;36903:30;36969:34;36949:18;;;36942:62;37021:18;;62303:55:0;36689:356:1;14:162;-1:-1:-1;;;;;101:5:1;97:54;90:5;87:65;77:93;;166:1;163;156:12;181:150;257:20;;286:39;257:20;286:39;:::i;:::-;181:150;;;:::o;336:367::-;399:8;409:6;463:3;456:4;448:6;444:17;440:27;430:55;;481:1;478;471:12;430:55;-1:-1:-1;504:20:1;;547:18;536:30;;533:50;;;579:1;576;569:12;533:50;616:4;608:6;604:17;592:29;;676:3;669:4;659:6;656:1;652:14;644:6;640:27;636:38;633:47;630:67;;;693:1;690;683:12;708:731;835:6;843;851;859;867;920:3;908:9;899:7;895:23;891:33;888:53;;;937:1;934;927:12;888:53;976:9;963:23;995:39;1028:5;995:39;:::i;:::-;1053:5;-1:-1:-1;1105:2:1;1090:18;;1077:32;;-1:-1:-1;1156:2:1;1141:18;;1128:32;;-1:-1:-1;1211:2:1;1196:18;;1183:32;1238:18;1227:30;;1224:50;;;1270:1;1267;1260:12;1224:50;1309:70;1371:7;1362:6;1351:9;1347:22;1309:70;:::i;:::-;708:731;;;;-1:-1:-1;708:731:1;;-1:-1:-1;1398:8:1;;1283:96;708:731;-1:-1:-1;;;708:731:1:o;1626:1116::-;1825:6;1833;1841;1849;1857;1865;1873;1881;1889;1942:3;1930:9;1921:7;1917:23;1913:33;1910:53;;;1959:1;1956;1949:12;1910:53;1998:9;1985:23;2017:39;2050:5;2017:39;:::i;:::-;2075:5;-1:-1:-1;2132:2:1;2117:18;;2104:32;2145:41;2104:32;2145:41;:::i;:::-;2205:7;-1:-1:-1;2264:2:1;2249:18;;2236:32;2277:41;2236:32;2277:41;:::i;:::-;2337:7;-1:-1:-1;2396:2:1;2381:18;;2368:32;2409:41;2368:32;2409:41;:::i;:::-;1626:1116;;;;-1:-1:-1;1626:1116:1;;2523:3;2508:19;;2495:33;;2575:3;2560:19;;2547:33;;-1:-1:-1;2627:3:1;2612:19;;2599:33;;-1:-1:-1;2679:3:1;2664:19;;2651:33;;-1:-1:-1;2731:3:1;2716:19;;;2703:33;;-1:-1:-1;1626:1116:1;-1:-1:-1;;1626:1116:1:o;2747:347::-;2798:8;2808:6;2862:3;2855:4;2847:6;2843:17;2839:27;2829:55;;2880:1;2877;2870:12;2829:55;-1:-1:-1;2903:20:1;;2946:18;2935:30;;2932:50;;;2978:1;2975;2968:12;2932:50;3015:4;3007:6;3003:17;2991:29;;3067:3;3060:4;3051:6;3043;3039:19;3035:30;3032:39;3029:59;;;3084:1;3081;3074:12;3099:1057;3271:6;3279;3287;3295;3303;3311;3355:9;3346:7;3342:23;3385:3;3381:2;3377:12;3374:32;;;3402:1;3399;3392:12;3374:32;3441:9;3428:23;3460:39;3493:5;3460:39;:::i;:::-;3518:5;-1:-1:-1;3557:3:1;-1:-1:-1;;3539:16:1;;3535:26;3532:46;;;3574:1;3571;3564:12;3532:46;;3612:2;3601:9;3597:18;3587:28;;3666:3;3655:9;3651:19;3638:33;3690:18;3731:2;3723:6;3720:14;3717:34;;;3747:1;3744;3737:12;3717:34;3786:58;3836:7;3827:6;3816:9;3812:22;3786:58;:::i;:::-;3863:8;;-1:-1:-1;3760:84:1;-1:-1:-1;3951:3:1;3936:19;;3923:33;;-1:-1:-1;3968:16:1;;;3965:36;;;3997:1;3994;3987:12;3965:36;;4036:60;4088:7;4077:8;4066:9;4062:24;4036:60;:::i;:::-;3099:1057;;;;-1:-1:-1;3099:1057:1;;-1:-1:-1;3099:1057:1;;4115:8;;3099:1057;-1:-1:-1;;;3099:1057:1:o;4414:1198::-;4578:6;4586;4594;4602;4610;4618;4626;4634;4687:3;4675:9;4666:7;4662:23;4658:33;4655:53;;;4704:1;4701;4694:12;4655:53;4743:9;4730:23;4762:39;4795:5;4762:39;:::i;:::-;4820:5;-1:-1:-1;4877:2:1;4862:18;;4849:32;4890:41;4849:32;4890:41;:::i;:::-;4950:7;-1:-1:-1;5004:2:1;4989:18;;4976:32;;-1:-1:-1;5055:2:1;5040:18;;5027:32;;-1:-1:-1;5110:3:1;5095:19;;5082:33;5134:18;5164:14;;;5161:34;;;5191:1;5188;5181:12;5161:34;5230:70;5292:7;5283:6;5272:9;5268:22;5230:70;:::i;:::-;5319:8;;-1:-1:-1;5204:96:1;-1:-1:-1;5407:3:1;5392:19;;5379:33;;-1:-1:-1;5424:16:1;;;5421:36;;;5453:1;5450;5443:12;5421:36;;5492:60;5544:7;5533:8;5522:9;5518:24;5492:60;:::i;:::-;4414:1198;;;;-1:-1:-1;4414:1198:1;;-1:-1:-1;4414:1198:1;;;;;;5571:8;-1:-1:-1;;;4414:1198:1:o;5617:180::-;5676:6;5729:2;5717:9;5708:7;5704:23;5700:32;5697:52;;;5745:1;5742;5735:12;5697:52;-1:-1:-1;5768:23:1;;5617:180;-1:-1:-1;5617:180:1:o;5994:154::-;6052:5;6097:3;6088:6;6083:3;6079:16;6075:26;6072:46;;;6114:1;6111;6104:12;6072:46;-1:-1:-1;6136:6:1;5994:154;-1:-1:-1;5994:154:1:o;6153:352::-;6237:6;6290:2;6278:9;6269:7;6265:23;6261:32;6258:52;;;6306:1;6303;6296:12;6258:52;6346:9;6333:23;6379:18;6371:6;6368:30;6365:50;;;6411:1;6408;6401:12;6365:50;6434:65;6491:7;6482:6;6471:9;6467:22;6434:65;:::i;6945:184::-;-1:-1:-1;;;6994:1:1;6987:88;7094:4;7091:1;7084:15;7118:4;7115:1;7108:15;7134:275;7205:2;7199:9;7270:2;7251:13;;-1:-1:-1;;7247:27:1;7235:40;;7305:18;7290:34;;7326:22;;;7287:62;7284:88;;;7352:18;;:::i;:::-;7388:2;7381:22;7134:275;;-1:-1:-1;7134:275:1:o;7414:1133::-;7469:5;7517:4;7505:9;7500:3;7496:19;7492:30;7489:50;;;7535:1;7532;7525:12;7489:50;7568:2;7562:9;7610:4;7602:6;7598:17;7681:6;7669:10;7666:22;7645:18;7633:10;7630:34;7627:62;7624:88;;;7692:18;;:::i;:::-;7728:2;7721:22;7791:23;;7776:39;;7761:6;-1:-1:-1;7761:6:1;7867:2;7852:18;;7839:32;7880:41;7839:32;7880:41;:::i;:::-;7949:2;7937:15;;7930:32;8014:2;7999:18;;7986:32;8027:41;7986:32;8027:41;:::i;:::-;8096:2;8084:15;;8077:32;8161:2;8146:18;;8133:32;8174:41;8133:32;8174:41;:::i;:::-;8243:2;8231:15;;8224:32;8308:3;8293:19;;8280:33;8322:41;8280:33;8322:41;:::i;:::-;8397:7;8391:3;8383:6;8379:16;8372:33;;8467:3;8456:9;8452:19;8439:33;8433:3;8425:6;8421:16;8414:59;8535:3;8524:9;8520:19;8507:33;8501:3;8493:6;8489:16;8482:59;;7414:1133;;;;:::o;8552:597::-;8666:6;8674;8682;8690;8743:3;8731:9;8722:7;8718:23;8714:33;8711:53;;;8760:1;8757;8750:12;8711:53;8783:46;8821:7;8810:9;8783:46;:::i;:::-;8773:56;;8880:3;8869:9;8865:19;8852:33;8908:18;8900:6;8897:30;8894:50;;;8940:1;8937;8930:12;8894:50;8979:58;9029:7;9020:6;9009:9;9005:22;8979:58;:::i;:::-;8552:597;;9056:8;;-1:-1:-1;8953:84:1;;9138:3;9123:19;9110:33;;8552:597;-1:-1:-1;;;;8552:597:1:o;9478:477::-;9557:6;9565;9573;9626:2;9614:9;9605:7;9601:23;9597:32;9594:52;;;9642:1;9639;9632:12;9594:52;9678:9;9665:23;9655:33;;9739:2;9728:9;9724:18;9711:32;9766:18;9758:6;9755:30;9752:50;;;9798:1;9795;9788:12;9752:50;9837:58;9887:7;9878:6;9867:9;9863:22;9837:58;:::i;:::-;9478:477;;9914:8;;-1:-1:-1;9811:84:1;;-1:-1:-1;;;;9478:477:1:o;9960:323::-;10028:6;10036;10089:2;10077:9;10068:7;10064:23;10060:32;10057:52;;;10105:1;10102;10095:12;10057:52;10144:9;10131:23;10163:39;10196:5;10163:39;:::i;:::-;10221:5;10273:2;10258:18;;;;10245:32;;-1:-1:-1;;;9960:323:1:o;10288:741::-;10411:6;10419;10427;10435;10443;10496:3;10484:9;10475:7;10471:23;10467:33;10464:53;;;10513:1;10510;10503:12;10464:53;10536:46;10574:7;10563:9;10536:46;:::i;:::-;10526:56;;10633:3;10622:9;10618:19;10605:33;10661:18;10653:6;10650:30;10647:50;;;10693:1;10690;10683:12;10647:50;10732:58;10782:7;10773:6;10762:9;10758:22;10732:58;:::i;:::-;10809:8;;-1:-1:-1;10706:84:1;-1:-1:-1;;10891:3:1;10876:19;;10863:33;;-1:-1:-1;10946:3:1;10931:19;;10918:33;10960:39;10918:33;10960:39;:::i;:::-;11018:5;11008:15;;;10288:741;;;;;;;;:::o;11034:1154::-;11185:6;11193;11201;11209;11217;11225;11233;11241;11294:3;11282:9;11273:7;11269:23;11265:33;11262:53;;;11311:1;11308;11301:12;11262:53;11351:9;11338:23;11380:18;11421:2;11413:6;11410:14;11407:34;;;11437:1;11434;11427:12;11407:34;11460:65;11517:7;11508:6;11497:9;11493:22;11460:65;:::i;:::-;11450:75;;11578:2;11567:9;11563:18;11550:32;11534:48;;11607:2;11597:8;11594:16;11591:36;;;11623:1;11620;11613:12;11591:36;11662:60;11714:7;11703:8;11692:9;11688:24;11662:60;:::i;:::-;11741:8;;-1:-1:-1;11636:86:1;-1:-1:-1;11829:2:1;11814:18;;11801:32;;-1:-1:-1;11845:16:1;;;11842:36;;;11874:1;11871;11864:12;11842:36;;11913:60;11965:7;11954:8;11943:9;11939:24;11913:60;:::i;:::-;11034:1154;;;;-1:-1:-1;11034:1154:1;;11992:8;;11887:86;12074:2;12059:18;;12046:32;;12125:3;12110:19;;12097:33;;-1:-1:-1;12177:3:1;12162:19;12149:33;;-1:-1:-1;11034:1154:1;-1:-1:-1;;;;11034:1154:1:o;12193:255::-;12252:6;12305:2;12293:9;12284:7;12280:23;12276:32;12273:52;;;12321:1;12318;12311:12;12273:52;12360:9;12347:23;12379:39;12412:5;12379:39;:::i;12453:1050::-;12596:6;12604;12612;12620;12628;12636;12644;12697:3;12685:9;12676:7;12672:23;12668:33;12665:53;;;12714:1;12711;12704:12;12665:53;12737:46;12775:7;12764:9;12737:46;:::i;:::-;12727:56;;12834:3;12823:9;12819:19;12806:33;12858:18;12899:2;12891:6;12888:14;12885:34;;;12915:1;12912;12905:12;12885:34;12954:58;13004:7;12995:6;12984:9;12980:22;12954:58;:::i;:::-;13031:8;;-1:-1:-1;12928:84:1;-1:-1:-1;13113:3:1;13098:19;;13085:33;;-1:-1:-1;13168:3:1;13153:19;;13140:33;;-1:-1:-1;13182:39:1;13140:33;13182:39;:::i;:::-;13240:5;;-1:-1:-1;13298:3:1;13283:19;;13270:33;;13315:16;;;13312:36;;;13344:1;13341;13334:12;13312:36;;13383:60;13435:7;13424:8;13413:9;13409:24;13383:60;:::i;:::-;12453:1050;;;;-1:-1:-1;12453:1050:1;;-1:-1:-1;12453:1050:1;;;;13357:86;;-1:-1:-1;;;12453:1050:1:o;13508:269::-;13565:6;13618:2;13606:9;13597:7;13593:23;13589:32;13586:52;;;13634:1;13631;13624:12;13586:52;13673:9;13660:23;13723:4;13716:5;13712:16;13705:5;13702:27;13692:55;;13743:1;13740;13733:12;14309:958;14491:6;14499;14507;14515;14523;14531;14539;14547;14600:3;14588:9;14579:7;14575:23;14571:33;14568:53;;;14617:1;14614;14607:12;14568:53;14656:9;14643:23;14675:39;14708:5;14675:39;:::i;:::-;14733:5;-1:-1:-1;14790:2:1;14775:18;;14762:32;14803:41;14762:32;14803:41;:::i;:::-;14863:7;-1:-1:-1;14922:2:1;14907:18;;14894:32;14935:41;14894:32;14935:41;:::i;:::-;14309:958;;;;-1:-1:-1;14995:7:1;;15049:2;15034:18;;15021:32;;-1:-1:-1;15100:3:1;15085:19;;15072:33;;15152:3;15137:19;;15124:33;;-1:-1:-1;15204:3:1;15189:19;;15176:33;;-1:-1:-1;15256:3:1;15241:19;;;15228:33;;-1:-1:-1;14309:958:1;-1:-1:-1;;14309:958:1:o;15503:946::-;15587:6;15618:2;15661;15649:9;15640:7;15636:23;15632:32;15629:52;;;15677:1;15674;15667:12;15629:52;15717:9;15704:23;15746:18;15787:2;15779:6;15776:14;15773:34;;;15803:1;15800;15793:12;15773:34;15841:6;15830:9;15826:22;15816:32;;15886:7;15879:4;15875:2;15871:13;15867:27;15857:55;;15908:1;15905;15898:12;15857:55;15944:2;15931:16;15966:2;15962;15959:10;15956:36;;;15972:18;;:::i;:::-;16018:2;16015:1;16011:10;16001:20;;16041:28;16065:2;16061;16057:11;16041:28;:::i;:::-;16103:15;;;16173:11;;;16169:20;;;16134:12;;;;16201:19;;;16198:39;;;16233:1;16230;16223:12;16198:39;16257:11;;;;16277:142;16293:6;16288:3;16285:15;16277:142;;;16359:17;;16347:30;;16310:12;;;;16397;;;;16277:142;;16454:632;16625:2;16677:21;;;16747:13;;16650:18;;;16769:22;;;16596:4;;16625:2;16848:15;;;;16822:2;16807:18;;;16596:4;16891:169;16905:6;16902:1;16899:13;16891:169;;;16966:13;;16954:26;;17035:15;;;;17000:12;;;;16927:1;16920:9;16891:169;;;-1:-1:-1;17077:3:1;;16454:632;-1:-1:-1;;;;;;16454:632:1:o;17091:437::-;17203:6;17211;17219;17227;17280:3;17268:9;17259:7;17255:23;17251:33;17248:53;;;17297:1;17294;17287:12;17248:53;17320:46;17358:7;17347:9;17320:46;:::i;:::-;17310:56;17413:3;17398:19;;17385:33;;-1:-1:-1;17465:3:1;17450:19;;17437:33;;17517:3;17502:19;17489:33;;-1:-1:-1;17091:437:1;-1:-1:-1;;;17091:437:1:o;18263:552::-;18342:6;18350;18358;18411:2;18399:9;18390:7;18386:23;18382:32;18379:52;;;18427:1;18424;18417:12;18379:52;18466:9;18453:23;18485:39;18518:5;18485:39;:::i;:::-;18543:5;-1:-1:-1;18599:2:1;18584:18;;18571:32;18626:18;18615:30;;18612:50;;;18658:1;18655;18648:12;18820:248;18888:6;18896;18949:2;18937:9;18928:7;18924:23;18920:32;18917:52;;;18965:1;18962;18955:12;18917:52;-1:-1:-1;;18988:23:1;;;19058:2;19043:18;;;19030:32;;-1:-1:-1;18820:248:1:o;19073:1418::-;19292:6;19300;19308;19316;19324;19332;19340;19348;19356;19364;19372:7;19426:3;19414:9;19405:7;19401:23;19397:33;19394:53;;;19443:1;19440;19433:12;19394:53;19482:9;19469:23;19501:39;19534:5;19501:39;:::i;:::-;19559:5;-1:-1:-1;19616:2:1;19601:18;;19588:32;19629:41;19588:32;19629:41;:::i;:::-;19689:7;-1:-1:-1;19748:2:1;19733:18;;19720:32;19761:41;19720:32;19761:41;:::i;:::-;19821:7;-1:-1:-1;19880:2:1;19865:18;;19852:32;19893:41;19852:32;19893:41;:::i;:::-;19953:7;-1:-1:-1;20007:3:1;19992:19;;19979:33;;-1:-1:-1;20059:3:1;20044:19;;20031:33;;-1:-1:-1;20111:3:1;20096:19;;20083:33;;-1:-1:-1;20163:3:1;20148:19;;20135:33;;-1:-1:-1;20215:3:1;20200:19;;20187:33;;-1:-1:-1;20271:3:1;20256:19;;20243:33;20299:18;20288:30;;20285:50;;;20331:1;20328;20321:12;20285:50;20371:58;20421:7;20412:6;20401:9;20397:22;20371:58;:::i;:::-;20344:85;;20448:8;20438:18;;;20476:9;20465:20;;;19073:1418;;;;;;;;;;;;;;:::o;20496:1491::-;20676:6;20684;20692;20700;20708;20716;20724;20732;20740;20748;20756:7;20810:3;20798:9;20789:7;20785:23;20781:33;20778:53;;;20827:1;20824;20817:12;20778:53;20850:18;20908:2;20896:9;20883:23;20880:31;20877:51;;;20924:1;20921;20914:12;20877:51;20947:82;21021:7;21008:9;20995:23;20984:9;20980:39;20947:82;:::i;:::-;20937:92;;21078:2;21072;21061:9;21057:18;21044:32;21041:40;21038:60;;;21094:1;21091;21084:12;21038:60;21133:84;21209:7;21202:2;21191:9;21187:18;21174:32;21163:9;21159:48;21133:84;:::i;:::-;21236:8;;-1:-1:-1;21263:8:1;-1:-1:-1;21314:2:1;21299:18;;21286:32;21283:40;-1:-1:-1;21280:60:1;;;21336:1;21333;21326:12;21280:60;21375:84;21451:7;21444:2;21433:9;21429:18;21416:32;21405:9;21401:48;21375:84;:::i;:::-;21478:8;;-1:-1:-1;21505:8:1;-1:-1:-1;21560:2:1;21545:18;;21532:32;;-1:-1:-1;21611:3:1;21596:19;;21583:33;;-1:-1:-1;21663:3:1;21648:19;;21635:33;;-1:-1:-1;21687:47:1;21729:3;21714:19;;21687:47;:::i;:::-;21677:57;;21784:2;21777:3;21766:9;21762:19;21749:33;21746:41;21743:61;;;21800:1;21797;21790:12;21743:61;;21840:85;21917:7;21909:3;21898:9;21894:19;21881:33;21870:9;21866:49;21840:85;:::i;:::-;21944:8;21934:18;;21972:9;21961:20;;;;20496:1491;;;;;;;;;;;;;;:::o;21992:573::-;22096:6;22104;22112;22120;22173:2;22161:9;22152:7;22148:23;22144:32;22141:52;;;22189:1;22186;22179:12;22141:52;22225:9;22212:23;22202:33;;22282:2;22271:9;22267:18;22254:32;22244:42;;22337:2;22326:9;22322:18;22309:32;22364:18;22356:6;22353:30;22350:50;;;22396:1;22393;22386:12;22350:50;22435:70;22497:7;22488:6;22477:9;22473:22;22435:70;:::i;:::-;21992:573;;;;-1:-1:-1;22524:8:1;-1:-1:-1;;;;21992:573:1:o;22570:1298::-;22730:6;22738;22746;22754;22762;22770;22778;22786;22794;22847:3;22835:9;22826:7;22822:23;22818:33;22815:53;;;22864:1;22861;22854:12;22815:53;22904:9;22891:23;22933:18;22974:2;22966:6;22963:14;22960:34;;;22990:1;22987;22980:12;22960:34;23013:65;23070:7;23061:6;23050:9;23046:22;23013:65;:::i;:::-;23003:75;;23131:2;23120:9;23116:18;23103:32;23087:48;;23160:2;23150:8;23147:16;23144:36;;;23176:1;23173;23166:12;23144:36;23215:60;23267:7;23256:8;23245:9;23241:24;23215:60;:::i;:::-;23294:8;;-1:-1:-1;23189:86:1;-1:-1:-1;23382:2:1;23367:18;;23354:32;;-1:-1:-1;23398:16:1;;;23395:36;;;23427:1;23424;23417:12;23395:36;;23466:60;23518:7;23507:8;23496:9;23492:24;23466:60;:::i;:::-;23545:8;;-1:-1:-1;23440:86:1;-1:-1:-1;;23627:2:1;23612:18;;23599:32;;-1:-1:-1;23678:3:1;23663:19;;23650:33;;-1:-1:-1;23730:3:1;23715:19;;23702:33;;-1:-1:-1;23785:3:1;23770:19;;23757:33;23799:39;23757:33;23799:39;:::i;:::-;23857:5;23847:15;;;22570:1298;;;;;;;;;;;:::o;23873:889::-;24017:6;24025;24033;24041;24049;24057;24110:3;24098:9;24089:7;24085:23;24081:33;24078:53;;;24127:1;24124;24117:12;24078:53;24166:9;24153:23;24185:39;24218:5;24185:39;:::i;:::-;24243:5;-1:-1:-1;24300:2:1;24285:18;;24272:32;24313:41;24272:32;24313:41;:::i;:::-;24373:7;-1:-1:-1;24427:2:1;24412:18;;24399:32;;-1:-1:-1;24478:2:1;24463:18;;24450:32;;-1:-1:-1;24533:3:1;24518:19;;24505:33;24561:18;24550:30;;24547:50;;;24593:1;24590;24583:12;24547:50;24632:70;24694:7;24685:6;24674:9;24670:22;24632:70;:::i;24767:543::-;24853:6;24861;24869;24877;24930:2;24918:9;24909:7;24905:23;24901:32;24898:52;;;24946:1;24943;24936:12;24898:52;24982:9;24969:23;24959:33;;25039:2;25028:9;25024:18;25011:32;25001:42;;25094:2;25083:9;25079:18;25066:32;25121:18;25113:6;25110:30;25107:50;;;25153:1;25150;25143:12;25107:50;25192:58;25242:7;25233:6;25222:9;25218:22;25192:58;:::i;25857:184::-;-1:-1:-1;;;25906:1:1;25899:88;26006:4;26003:1;25996:15;26030:4;26027:1;26020:15;26046:128;26113:9;;;26134:11;;;26131:37;;;26148:18;;:::i;26179:168::-;26252:9;;;26283;;26300:15;;;26294:22;;26280:37;26270:71;;26321:18;;:::i;26605:125::-;26670:9;;;26691:10;;;26688:36;;;26704:18;;:::i;26735:331::-;26840:9;26851;26893:8;26881:10;26878:24;26875:44;;;26915:1;26912;26905:12;26875:44;26944:6;26934:8;26931:20;26928:40;;;26964:1;26961;26954:12;26928:40;-1:-1:-1;;26990:23:1;;;27035:25;;;;;-1:-1:-1;26735:331:1:o;27071:184::-;-1:-1:-1;;;27120:1:1;27113:88;27220:4;27217:1;27210:15;27244:4;27241:1;27234:15;27260:135;27299:3;27320:17;;;27317:43;;27340:18;;:::i;:::-;-1:-1:-1;27387:1:1;27376:13;;27260:135::o;27400:271::-;27583:6;27575;27570:3;27557:33;27539:3;27609:16;;27634:13;;;27609:16;27400:271;-1:-1:-1;27400:271:1:o;27676:250::-;27761:1;27771:113;27785:6;27782:1;27779:13;27771:113;;;27861:11;;;27855:18;27842:11;;;27835:39;27807:2;27800:10;27771:113;;;-1:-1:-1;;27918:1:1;27900:16;;27893:27;27676:250::o;27931:270::-;27972:3;28010:5;28004:12;28037:6;28032:3;28025:19;28053:76;28122:6;28115:4;28110:3;28106:14;28099:4;28092:5;28088:16;28053:76;:::i;:::-;28183:2;28162:15;-1:-1:-1;;28158:29:1;28149:39;;;;28190:4;28145:50;;27931:270;-1:-1:-1;;27931:270:1:o;28206:298::-;28389:6;28382:14;28375:22;28364:9;28357:41;28434:2;28429;28418:9;28414:18;28407:30;28338:4;28454:44;28494:2;28483:9;28479:18;28471:6;28454:44;:::i;28509:266::-;28597:6;28592:3;28585:19;28649:6;28642:5;28635:4;28630:3;28626:14;28613:43;-1:-1:-1;28701:1:1;28676:16;;;28694:4;28672:27;;;28665:38;;;;28757:2;28736:15;;;-1:-1:-1;;28732:29:1;28723:39;;;28719:50;;28509:266::o;28780:754::-;29105:6;29094:9;29087:25;29068:4;-1:-1:-1;;;;;29221:2:1;29213:6;29209:15;29204:2;29193:9;29189:18;29182:43;29273:2;29265:6;29261:15;29256:2;29245:9;29241:18;29234:43;;29313:6;29308:2;29297:9;29293:18;29286:34;29357:6;29351:3;29340:9;29336:19;29329:35;29401:6;29395:3;29384:9;29380:19;29373:35;29445:3;29439;29428:9;29424:19;29417:32;29466:62;29523:3;29512:9;29508:19;29500:6;29492;29466:62;:::i;:::-;29458:70;28780:754;-1:-1:-1;;;;;;;;;;28780:754:1:o;29539:508::-;-1:-1:-1;;;;;29784:6:1;29780:55;29769:9;29762:74;29872:6;29867:2;29856:9;29852:18;29845:34;29915:6;29910:2;29899:9;29895:18;29888:34;29958:3;29953:2;29942:9;29938:18;29931:31;29743:4;29979:62;30036:3;30025:9;30021:19;30013:6;30005;29979:62;:::i;30052:184::-;30122:6;30175:2;30163:9;30154:7;30150:23;30146:32;30143:52;;;30191:1;30188;30181:12;30143:52;-1:-1:-1;30214:16:1;;30052:184;-1:-1:-1;30052:184:1:o;30753:277::-;30820:6;30873:2;30861:9;30852:7;30848:23;30844:32;30841:52;;;30889:1;30886;30879:12;30841:52;30921:9;30915:16;30974:5;30967:13;30960:21;30953:5;30950:32;30940:60;;30996:1;30993;30986:12;31442:521;31519:4;31525:6;31585:11;31572:25;31679:2;31675:7;31664:8;31648:14;31644:29;31640:43;31620:18;31616:68;31606:96;;31698:1;31695;31688:12;31606:96;31725:33;;31777:20;;;-1:-1:-1;31820:18:1;31809:30;;31806:50;;;31852:1;31849;31842:12;31806:50;31885:4;31873:17;;-1:-1:-1;31916:14:1;31912:27;;;31902:38;;31899:58;;;31953:1;31950;31943:12;32732:591;32946:4;-1:-1:-1;;;;;33056:2:1;33048:6;33044:15;33033:9;33026:34;33110:6;33103:14;33096:22;33091:2;33080:9;33076:18;33069:50;33155:6;33150:2;33139:9;33135:18;33128:34;33210:2;33202:6;33198:15;33193:2;33182:9;33178:18;33171:43;;33251:3;33245;33234:9;33230:19;33223:32;33272:45;33312:3;33301:9;33297:19;33289:6;33272:45;:::i;33328:243::-;33405:6;33413;33466:2;33454:9;33445:7;33441:23;33437:32;33434:52;;;33482:1;33479;33472:12;33434:52;-1:-1:-1;;33505:16:1;;33561:2;33546:18;;;33540:25;33505:16;;33540:25;;-1:-1:-1;33328:243:1:o;33576:191::-;33611:3;-1:-1:-1;;;33635:5:1;33632:77;33629:103;;33712:18;;:::i;:::-;-1:-1:-1;33752:1:1;33748:13;;33576:191::o;35074:274::-;35114:1;35140;35130:189;;-1:-1:-1;;;35172:1:1;35165:88;35276:4;35273:1;35266:15;35304:4;35301:1;35294:15;35130:189;-1:-1:-1;35333:9:1;;35074:274::o;35353:184::-;-1:-1:-1;;;35402:1:1;35395:88;35502:4;35499:1;35492:15;35526:4;35523:1;35516:15;35542:441;35809:6;35801;35796:3;35783:33;35835:16;;;35860:18;;;35902:2;35894:11;;35887:27;35938:2;35930:11;;35923:27;;;;35974:2;35966:11;;35542:441;-1:-1:-1;35542:441:1:o;35988:287::-;36117:3;36155:6;36149:13;36171:66;36230:6;36225:3;36218:4;36210:6;36206:17;36171:66;:::i;:::-;36253:16;;;;;35988:287;-1:-1:-1;;35988:287:1:o

Swarm Source

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