{"matchId":"28705268","creationMatch":"match","runtimeMatch":"match","verifiedAt":"2026-05-08T14:10:17Z","creationBytecode":{"onchainBytecode":"0x6080346100d957601f61124038819003918201601f19168301916001600160401b038311848410176100dd578084926020946040528339810103126100d957516001600160a01b038116908190036100d95760015f9081558181525f5160206112205f395f51905f52602052604090205460ff1615610088575b60405161112e90816100f28239f35b5f8181525f5160206112205f395f51905f5260205260408120805460ff191660011790553391907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8180a45f610079565b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe608080604052600436101561001c575b50361561001a575f80fd5b005b5f3560e01c90816301ffc9a7146107e757508063248a9ca3146107b45780632f2ff15d146106f857806336568abe146106c35780633a5be8cb146105815780635f6ee30c1461054757806391d14854146104fd578063a217fddf146104e3578063a58d50d314610319578063c41e829514610130578063d547741f146100ed5763ef8738d3146100ac575f61000f565b346100e95760403660031901126100e9576100c5610850565b6024356001600160a01b03811681036100e95761001a916100e4610dce565b610de6565b5f80fd5b346100e95760403660031901126100e95761001a60043561010c61083a565b9061012b610126825f526001602052600160405f20015490565b610a57565b610a9f565b346100e95760803660031901126100e957610149610850565b60243567ffffffffffffffff81116100e9576101699036906004016108ea565b906064359067ffffffffffffffff82116100e957366023830112156100e957816004013567ffffffffffffffff81116100e9576024830192602436918360061b0101116100e9576101b8610dce565b604435925f5b82811061020d57855f80878784519160208601915af16101dc610a04565b50156101e457005b60405163b3beda7360e01b815260206004820152908190610209906024830190610948565b0390fd5b6001600160a01b03610228610223838686610a33565b610a43565b161561031057602460206001600160a01b03610248610223858888610a33565b16604051928380926370a0823160e01b82523060048301525afa908115610305575f916102d4575b505b602061027f838686610a33565b0135602081018082116102c05788518082116102ab5750508701602001805190911790526001016101be565b634d3ae48d60e01b5f5260045260245260445ffd5b634e487b7160e01b5f52601160045260245ffd5b90506020813d82116102fd575b816102ee602093836108ac565b810103126100e9575187610270565b3d91506102e1565b6040513d5f823e3d90fd5b47945084610272565b346100e95760203660031901126100e95760043567ffffffffffffffff81116100e957366023820112156100e957806004013561035581610930565b9161036360405193846108ac565b8183526024602084019260051b820101903682116100e95760248101925b82841061045c5784610391610dce565b80515f5b81811061039e57005b82518110156104485760208160051b840101516020810190815151151580610435575b610419575f918160406001600160a01b0385945116910151915191602083519301915af16103ed610a04565b50156103fb57600101610395565b6040516303918b1160e61b81529283925061020991600484016109ea565b60405163388ddcc360e21b8152806102098786600484016109ea565b506001600160a01b038151163b156103c1565b634e487b7160e01b5f52603260045260245ffd5b833567ffffffffffffffff81116100e9578201606060231982360301126100e9576040519161048a8361087c565b60248201356001600160a01b03811681036100e957835260448201359267ffffffffffffffff84116100e9576064602094936104cd8695602436918401016108ea565b8584015201356040820152815201930192610381565b346100e9575f3660031901126100e95760206040515f8152f35b346100e95760403660031901126100e95761051661083a565b6004355f5260016020526001600160a01b0360405f2091165f52602052602060ff60405f2054166040519015158152f35b346100e9575f3660031901126100e95760206040517f69048ea73402a715065a3029b4059a4e97d1461c95fa4fabca1084b5f34f4abe8152f35b346100e95760803660031901126100e95761059a610850565b6105a2610866565b5060643567ffffffffffffffff81116100e9576105c39036906004016108ea565b335f9081527ff9f8a8d829de1c11fdd691724f182d954bcae2d8f44e7aab584f413f377402bd602052604090205460ff16156106155760025f54146100e95761060f9160025f55610b37565b60015f55005b6100e96020601161062533610f89565b6037836106517f69048ea73402a715065a3029b4059a4e97d1461c95fa4fabca1084b5f34f4abe61102b565b6040519586947f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000828701528051918291018587015e8401907001034b99036b4b9b9b4b733903937b6329607d1b84830152805192839101604883015e01015f83820152030190601f19820181526108ac565b346100e95760403660031901126100e9576106dc61083a565b336001600160a01b038216036100e95761001a90600435610a9f565b346100e95760403660031901126100e95760043561071461083a565b9061072e610126825f526001602052600160405f20015490565b805f52600160205260405f206001600160a01b0383165f5260205260ff60405f2054161561075857005b805f52600160205260405f206001600160a01b0383165f5260205260405f20600160ff198254161790556001600160a01b03339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d5f80a4005b346100e95760203660031901126100e95760206107df6004355f526001602052600160405f20015490565b604051908152f35b346100e95760203660031901126100e9576004359063ffffffff60e01b82168092036100e957602091637965db0b60e01b8114908115610829575b5015158152f35b6301ffc9a760e01b14905083610822565b602435906001600160a01b03821682036100e957565b600435906001600160a01b03821682036100e957565b604435906001600160a01b03821682036100e957565b6060810190811067ffffffffffffffff82111761089857604052565b634e487b7160e01b5f52604160045260245ffd5b90601f8019910116810190811067ffffffffffffffff82111761089857604052565b67ffffffffffffffff811161089857601f01601f191660200190565b81601f820112156100e957803590610901826108ce565b9261090f60405194856108ac565b828452602083830101116100e957815f926020809301838601378301015290565b67ffffffffffffffff81116108985760051b60200190565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b9080602083519182815201916020808360051b8301019401925f915b83831061099757505050505090565b9091929394602080600192601f198582030186528851906001600160a01b0382511681526040806109d5858501516060878601526060850190610948565b93015191015297019301930191939290610988565b604090610a0193928152816020820152019061096c565b90565b3d15610a2e573d90610a15826108ce565b91610a2360405193846108ac565b82523d5f602084013e565b606090565b91908110156104485760061b0190565b356001600160a01b03811681036100e95790565b805f52600160205260405f206001600160a01b0333165f5260205260ff60405f20541615610a825750565b602060116100e992603783610651610a9933610f89565b9361102b565b805f52600160205260405f206001600160a01b0383165f5260205260ff60405f205416610aca575050565b805f52600160205260405f206001600160a01b0383165f5260205260405f2060ff1981541690556001600160a01b03339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b5f80a4565b51906001600160a01b03821682036100e957565b815182019160208301905f906020818603126100e95760208101519067ffffffffffffffff82116100e957016040818603126100e957604051926040840184811067ffffffffffffffff82111761089857604052602082015167ffffffffffffffff81116100e95760209083010181601f820112156100e957805196610bbc88610930565b97610bca604051998a6108ac565b8089526020808a019160051b840101928484116100e95760208101915b848310610d1b575050505050506040610c039186855201610b23565b936001600160a01b0360208401958087521615610ccb5750928184610c82956001600160a01b039451604051610c6481610c56602082019463a58d50d360e01b865260206024840152604483019061096c565b03601f1981018352826108ac565b519082305af1610c72610a04565b5015610c84575b50511690610de6565b565b517f5296f22c5d0413b66d0bf45c479c4e2ca5b278634bdbd028b48e49502105f966610cc2848451169260405191829160208352602083019061096c565b0390a25f610c79565b9350505050303b156100e9575f610cfe916040518093819263a58d50d360e01b835260206004840152602483019061096c565b038183305af1801561030557610d115750565b5f610c82916108ac565b825167ffffffffffffffff81116100e9578201906060828603126100e95760405190610d468261087c565b610d5260208401610b23565b8252604083015167ffffffffffffffff81116100e9576020908401019188601f840112156100e957825192610d86846108ce565b94610d9460405196876108ac565b8486528a602086840101116100e9576020955f8787819882606097018386015e830101528584015201516040820152815201920191610be7565b303303610dd757565b6314e1dbf760e11b5f5260045ffd5b6001600160a01b03168015610f44576040516370a0823160e01b815230600482015291602083602481855afa928315610305575f93610f10575b5082610e2b57505050565b6001600160a01b0316610eb36040515f806020830163a9059cbb60e01b815285602485015287604485015260448452610e656064856108ac565b60405193610e746040866108ac565b602085527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65646020860152519082885af1610eac610a04565b90856110cd565b8051908115918215610eed575b5050156100e9577f74d3741ef03417659087d2ec6af11dade8713f9b7f592569d60cf1ea0c9a44555f80a4565b81925090602091810103126100e9576020015180151581036100e9575f80610ec0565b9092506020813d602011610f3c575b81610f2c602093836108ac565b810103126100e95751915f610e20565b3d9150610f1f565b50479081610f50575050565b8147106100e9575f8080936001600160a01b038294165af1610f70610a04565b50156100e957565b908151811015610448570160200190565b610f93602a6108ce565b90610fa160405192836108ac565b602a8252610faf602a6108ce565b6020830190601f19013682378251156104485760309053815160011015610448576078602183015360295b60018111610fea57506100e95790565b90600f81166010811015610448576f181899199a1a9b1b9c1cb0b131b232b360811b901a6110188385610f78565b5360041c9080156102c0575f1901610fda565b61103560426108ce565b9061104360405192836108ac565b6042825261105160426108ce565b6020830190601f19013682378251156104485760309053815160011015610448576078602183015360415b6001811161108c57506100e95790565b90600f81166010811015610448576f181899199a1a9b1b9c1cb0b131b232b360811b901a6110ba8385610f78565b5360041c9080156102c0575f190161107c565b919250156110e9578151156110e0575090565b3b156100e95790565b5080519081156100e957602001fdfea26469706673582212209db2968648e84e3a9190afa2c06caa8f03c05a9be27a9649c156320034fd026364736f6c634300081e0033a6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb490000000000000000000000009a8f92a830a5cb89a3816e3d267cb7791c16b04d","recompiledBytecode":"0x6080346100d957601f61124038819003918201601f19168301916001600160401b038311848410176100dd578084926020946040528339810103126100d957516001600160a01b038116908190036100d95760015f9081558181525f5160206112205f395f51905f52602052604090205460ff1615610088575b60405161112e90816100f28239f35b5f8181525f5160206112205f395f51905f5260205260408120805460ff191660011790553391907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8180a45f610079565b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe608080604052600436101561001c575b50361561001a575f80fd5b005b5f3560e01c90816301ffc9a7146107e757508063248a9ca3146107b45780632f2ff15d146106f857806336568abe146106c35780633a5be8cb146105815780635f6ee30c1461054757806391d14854146104fd578063a217fddf146104e3578063a58d50d314610319578063c41e829514610130578063d547741f146100ed5763ef8738d3146100ac575f61000f565b346100e95760403660031901126100e9576100c5610850565b6024356001600160a01b03811681036100e95761001a916100e4610dce565b610de6565b5f80fd5b346100e95760403660031901126100e95761001a60043561010c61083a565b9061012b610126825f526001602052600160405f20015490565b610a57565b610a9f565b346100e95760803660031901126100e957610149610850565b60243567ffffffffffffffff81116100e9576101699036906004016108ea565b906064359067ffffffffffffffff82116100e957366023830112156100e957816004013567ffffffffffffffff81116100e9576024830192602436918360061b0101116100e9576101b8610dce565b604435925f5b82811061020d57855f80878784519160208601915af16101dc610a04565b50156101e457005b60405163b3beda7360e01b815260206004820152908190610209906024830190610948565b0390fd5b6001600160a01b03610228610223838686610a33565b610a43565b161561031057602460206001600160a01b03610248610223858888610a33565b16604051928380926370a0823160e01b82523060048301525afa908115610305575f916102d4575b505b602061027f838686610a33565b0135602081018082116102c05788518082116102ab5750508701602001805190911790526001016101be565b634d3ae48d60e01b5f5260045260245260445ffd5b634e487b7160e01b5f52601160045260245ffd5b90506020813d82116102fd575b816102ee602093836108ac565b810103126100e9575187610270565b3d91506102e1565b6040513d5f823e3d90fd5b47945084610272565b346100e95760203660031901126100e95760043567ffffffffffffffff81116100e957366023820112156100e957806004013561035581610930565b9161036360405193846108ac565b8183526024602084019260051b820101903682116100e95760248101925b82841061045c5784610391610dce565b80515f5b81811061039e57005b82518110156104485760208160051b840101516020810190815151151580610435575b610419575f918160406001600160a01b0385945116910151915191602083519301915af16103ed610a04565b50156103fb57600101610395565b6040516303918b1160e61b81529283925061020991600484016109ea565b60405163388ddcc360e21b8152806102098786600484016109ea565b506001600160a01b038151163b156103c1565b634e487b7160e01b5f52603260045260245ffd5b833567ffffffffffffffff81116100e9578201606060231982360301126100e9576040519161048a8361087c565b60248201356001600160a01b03811681036100e957835260448201359267ffffffffffffffff84116100e9576064602094936104cd8695602436918401016108ea565b8584015201356040820152815201930192610381565b346100e9575f3660031901126100e95760206040515f8152f35b346100e95760403660031901126100e95761051661083a565b6004355f5260016020526001600160a01b0360405f2091165f52602052602060ff60405f2054166040519015158152f35b346100e9575f3660031901126100e95760206040517f69048ea73402a715065a3029b4059a4e97d1461c95fa4fabca1084b5f34f4abe8152f35b346100e95760803660031901126100e95761059a610850565b6105a2610866565b5060643567ffffffffffffffff81116100e9576105c39036906004016108ea565b335f9081527ff9f8a8d829de1c11fdd691724f182d954bcae2d8f44e7aab584f413f377402bd602052604090205460ff16156106155760025f54146100e95761060f9160025f55610b37565b60015f55005b6100e96020601161062533610f89565b6037836106517f69048ea73402a715065a3029b4059a4e97d1461c95fa4fabca1084b5f34f4abe61102b565b6040519586947f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000828701528051918291018587015e8401907001034b99036b4b9b9b4b733903937b6329607d1b84830152805192839101604883015e01015f83820152030190601f19820181526108ac565b346100e95760403660031901126100e9576106dc61083a565b336001600160a01b038216036100e95761001a90600435610a9f565b346100e95760403660031901126100e95760043561071461083a565b9061072e610126825f526001602052600160405f20015490565b805f52600160205260405f206001600160a01b0383165f5260205260ff60405f2054161561075857005b805f52600160205260405f206001600160a01b0383165f5260205260405f20600160ff198254161790556001600160a01b03339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d5f80a4005b346100e95760203660031901126100e95760206107df6004355f526001602052600160405f20015490565b604051908152f35b346100e95760203660031901126100e9576004359063ffffffff60e01b82168092036100e957602091637965db0b60e01b8114908115610829575b5015158152f35b6301ffc9a760e01b14905083610822565b602435906001600160a01b03821682036100e957565b600435906001600160a01b03821682036100e957565b604435906001600160a01b03821682036100e957565b6060810190811067ffffffffffffffff82111761089857604052565b634e487b7160e01b5f52604160045260245ffd5b90601f8019910116810190811067ffffffffffffffff82111761089857604052565b67ffffffffffffffff811161089857601f01601f191660200190565b81601f820112156100e957803590610901826108ce565b9261090f60405194856108ac565b828452602083830101116100e957815f926020809301838601378301015290565b67ffffffffffffffff81116108985760051b60200190565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b9080602083519182815201916020808360051b8301019401925f915b83831061099757505050505090565b9091929394602080600192601f198582030186528851906001600160a01b0382511681526040806109d5858501516060878601526060850190610948565b93015191015297019301930191939290610988565b604090610a0193928152816020820152019061096c565b90565b3d15610a2e573d90610a15826108ce565b91610a2360405193846108ac565b82523d5f602084013e565b606090565b91908110156104485760061b0190565b356001600160a01b03811681036100e95790565b805f52600160205260405f206001600160a01b0333165f5260205260ff60405f20541615610a825750565b602060116100e992603783610651610a9933610f89565b9361102b565b805f52600160205260405f206001600160a01b0383165f5260205260ff60405f205416610aca575050565b805f52600160205260405f206001600160a01b0383165f5260205260405f2060ff1981541690556001600160a01b03339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b5f80a4565b51906001600160a01b03821682036100e957565b815182019160208301905f906020818603126100e95760208101519067ffffffffffffffff82116100e957016040818603126100e957604051926040840184811067ffffffffffffffff82111761089857604052602082015167ffffffffffffffff81116100e95760209083010181601f820112156100e957805196610bbc88610930565b97610bca604051998a6108ac565b8089526020808a019160051b840101928484116100e95760208101915b848310610d1b575050505050506040610c039186855201610b23565b936001600160a01b0360208401958087521615610ccb5750928184610c82956001600160a01b039451604051610c6481610c56602082019463a58d50d360e01b865260206024840152604483019061096c565b03601f1981018352826108ac565b519082305af1610c72610a04565b5015610c84575b50511690610de6565b565b517f5296f22c5d0413b66d0bf45c479c4e2ca5b278634bdbd028b48e49502105f966610cc2848451169260405191829160208352602083019061096c565b0390a25f610c79565b9350505050303b156100e9575f610cfe916040518093819263a58d50d360e01b835260206004840152602483019061096c565b038183305af1801561030557610d115750565b5f610c82916108ac565b825167ffffffffffffffff81116100e9578201906060828603126100e95760405190610d468261087c565b610d5260208401610b23565b8252604083015167ffffffffffffffff81116100e9576020908401019188601f840112156100e957825192610d86846108ce565b94610d9460405196876108ac565b8486528a602086840101116100e9576020955f8787819882606097018386015e830101528584015201516040820152815201920191610be7565b303303610dd757565b6314e1dbf760e11b5f5260045ffd5b6001600160a01b03168015610f44576040516370a0823160e01b815230600482015291602083602481855afa928315610305575f93610f10575b5082610e2b57505050565b6001600160a01b0316610eb36040515f806020830163a9059cbb60e01b815285602485015287604485015260448452610e656064856108ac565b60405193610e746040866108ac565b602085527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65646020860152519082885af1610eac610a04565b90856110cd565b8051908115918215610eed575b5050156100e9577f74d3741ef03417659087d2ec6af11dade8713f9b7f592569d60cf1ea0c9a44555f80a4565b81925090602091810103126100e9576020015180151581036100e9575f80610ec0565b9092506020813d602011610f3c575b81610f2c602093836108ac565b810103126100e95751915f610e20565b3d9150610f1f565b50479081610f50575050565b8147106100e9575f8080936001600160a01b038294165af1610f70610a04565b50156100e957565b908151811015610448570160200190565b610f93602a6108ce565b90610fa160405192836108ac565b602a8252610faf602a6108ce565b6020830190601f19013682378251156104485760309053815160011015610448576078602183015360295b60018111610fea57506100e95790565b90600f81166010811015610448576f181899199a1a9b1b9c1cb0b131b232b360811b901a6110188385610f78565b5360041c9080156102c0575f1901610fda565b61103560426108ce565b9061104360405192836108ac565b6042825261105160426108ce565b6020830190601f19013682378251156104485760309053815160011015610448576078602183015360415b6001811161108c57506100e95790565b90600f81166010811015610448576f181899199a1a9b1b9c1cb0b131b232b360811b901a6110ba8385610f78565b5360041c9080156102c0575f190161107c565b919250156110e9578151156110e0575090565b3b156100e95790565b5080519081156100e957602001fdfea264697066735822122009640042ad352092c41b3e7829e02053539436e4415dc96f23233453f0d4fc7064736f6c634300081e0033a6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49","sourceMap":"503:1115:1:-:0;;;;;;;;;;;;;-1:-1:-1;;503:1115:1;;;;-1:-1:-1;;;;;503:1115:1;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;503:1115:1;;;;;;;;1716:1:5;-1:-1:-1;1716:1:5;;;503:1115:1;;;-1:-1:-1;;;;;;;;;;;503:1115:1;;;;;;;;7669:23:3;7665:149;;-1:-1:-1;503:1115:1;;;;;;;;;7665:149:3;-1:-1:-1;503:1115:1;;;-1:-1:-1;;;;;;;;;;;503:1115:1;;;;;;;-1:-1:-1;;503:1115:1;1716:1:5;503:1115:1;;;734:10:10;;503:1115:1;7763:40:3;-1:-1:-1;;7763:40:3;7665:149;;;503:1115:1;-1:-1:-1;503:1115:1;;;;;;-1:-1:-1;503:1115:1;;;;;-1:-1:-1;503:1115:1","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa264697066735822122009640042ad352092c41b3e7829e02053539436e4415dc96f23233453f0d4fc7064736f6c634300081e0033","offset":4587}},"transformations":[{"id":"1","type":"replace","offset":4587,"reason":"cborAuxdata"},{"type":"insert","offset":4672,"reason":"constructorArguments"}],"transformationValues":{"cborAuxdata":{"1":"0xa26469706673582212209db2968648e84e3a9190afa2c06caa8f03c05a9be27a9649c156320034fd026364736f6c634300081e0033"},"constructorArguments":"0x0000000000000000000000009a8f92a830a5cb89a3816e3d267cb7791c16b04d"}},"runtimeBytecode":{"onchainBytecode":"0x608080604052600436101561001c575b50361561001a575f80fd5b005b5f3560e01c90816301ffc9a7146107e757508063248a9ca3146107b45780632f2ff15d146106f857806336568abe146106c35780633a5be8cb146105815780635f6ee30c1461054757806391d14854146104fd578063a217fddf146104e3578063a58d50d314610319578063c41e829514610130578063d547741f146100ed5763ef8738d3146100ac575f61000f565b346100e95760403660031901126100e9576100c5610850565b6024356001600160a01b03811681036100e95761001a916100e4610dce565b610de6565b5f80fd5b346100e95760403660031901126100e95761001a60043561010c61083a565b9061012b610126825f526001602052600160405f20015490565b610a57565b610a9f565b346100e95760803660031901126100e957610149610850565b60243567ffffffffffffffff81116100e9576101699036906004016108ea565b906064359067ffffffffffffffff82116100e957366023830112156100e957816004013567ffffffffffffffff81116100e9576024830192602436918360061b0101116100e9576101b8610dce565b604435925f5b82811061020d57855f80878784519160208601915af16101dc610a04565b50156101e457005b60405163b3beda7360e01b815260206004820152908190610209906024830190610948565b0390fd5b6001600160a01b03610228610223838686610a33565b610a43565b161561031057602460206001600160a01b03610248610223858888610a33565b16604051928380926370a0823160e01b82523060048301525afa908115610305575f916102d4575b505b602061027f838686610a33565b0135602081018082116102c05788518082116102ab5750508701602001805190911790526001016101be565b634d3ae48d60e01b5f5260045260245260445ffd5b634e487b7160e01b5f52601160045260245ffd5b90506020813d82116102fd575b816102ee602093836108ac565b810103126100e9575187610270565b3d91506102e1565b6040513d5f823e3d90fd5b47945084610272565b346100e95760203660031901126100e95760043567ffffffffffffffff81116100e957366023820112156100e957806004013561035581610930565b9161036360405193846108ac565b8183526024602084019260051b820101903682116100e95760248101925b82841061045c5784610391610dce565b80515f5b81811061039e57005b82518110156104485760208160051b840101516020810190815151151580610435575b610419575f918160406001600160a01b0385945116910151915191602083519301915af16103ed610a04565b50156103fb57600101610395565b6040516303918b1160e61b81529283925061020991600484016109ea565b60405163388ddcc360e21b8152806102098786600484016109ea565b506001600160a01b038151163b156103c1565b634e487b7160e01b5f52603260045260245ffd5b833567ffffffffffffffff81116100e9578201606060231982360301126100e9576040519161048a8361087c565b60248201356001600160a01b03811681036100e957835260448201359267ffffffffffffffff84116100e9576064602094936104cd8695602436918401016108ea565b8584015201356040820152815201930192610381565b346100e9575f3660031901126100e95760206040515f8152f35b346100e95760403660031901126100e95761051661083a565b6004355f5260016020526001600160a01b0360405f2091165f52602052602060ff60405f2054166040519015158152f35b346100e9575f3660031901126100e95760206040517f69048ea73402a715065a3029b4059a4e97d1461c95fa4fabca1084b5f34f4abe8152f35b346100e95760803660031901126100e95761059a610850565b6105a2610866565b5060643567ffffffffffffffff81116100e9576105c39036906004016108ea565b335f9081527ff9f8a8d829de1c11fdd691724f182d954bcae2d8f44e7aab584f413f377402bd602052604090205460ff16156106155760025f54146100e95761060f9160025f55610b37565b60015f55005b6100e96020601161062533610f89565b6037836106517f69048ea73402a715065a3029b4059a4e97d1461c95fa4fabca1084b5f34f4abe61102b565b6040519586947f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000828701528051918291018587015e8401907001034b99036b4b9b9b4b733903937b6329607d1b84830152805192839101604883015e01015f83820152030190601f19820181526108ac565b346100e95760403660031901126100e9576106dc61083a565b336001600160a01b038216036100e95761001a90600435610a9f565b346100e95760403660031901126100e95760043561071461083a565b9061072e610126825f526001602052600160405f20015490565b805f52600160205260405f206001600160a01b0383165f5260205260ff60405f2054161561075857005b805f52600160205260405f206001600160a01b0383165f5260205260405f20600160ff198254161790556001600160a01b03339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d5f80a4005b346100e95760203660031901126100e95760206107df6004355f526001602052600160405f20015490565b604051908152f35b346100e95760203660031901126100e9576004359063ffffffff60e01b82168092036100e957602091637965db0b60e01b8114908115610829575b5015158152f35b6301ffc9a760e01b14905083610822565b602435906001600160a01b03821682036100e957565b600435906001600160a01b03821682036100e957565b604435906001600160a01b03821682036100e957565b6060810190811067ffffffffffffffff82111761089857604052565b634e487b7160e01b5f52604160045260245ffd5b90601f8019910116810190811067ffffffffffffffff82111761089857604052565b67ffffffffffffffff811161089857601f01601f191660200190565b81601f820112156100e957803590610901826108ce565b9261090f60405194856108ac565b828452602083830101116100e957815f926020809301838601378301015290565b67ffffffffffffffff81116108985760051b60200190565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b9080602083519182815201916020808360051b8301019401925f915b83831061099757505050505090565b9091929394602080600192601f198582030186528851906001600160a01b0382511681526040806109d5858501516060878601526060850190610948565b93015191015297019301930191939290610988565b604090610a0193928152816020820152019061096c565b90565b3d15610a2e573d90610a15826108ce565b91610a2360405193846108ac565b82523d5f602084013e565b606090565b91908110156104485760061b0190565b356001600160a01b03811681036100e95790565b805f52600160205260405f206001600160a01b0333165f5260205260ff60405f20541615610a825750565b602060116100e992603783610651610a9933610f89565b9361102b565b805f52600160205260405f206001600160a01b0383165f5260205260ff60405f205416610aca575050565b805f52600160205260405f206001600160a01b0383165f5260205260405f2060ff1981541690556001600160a01b03339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b5f80a4565b51906001600160a01b03821682036100e957565b815182019160208301905f906020818603126100e95760208101519067ffffffffffffffff82116100e957016040818603126100e957604051926040840184811067ffffffffffffffff82111761089857604052602082015167ffffffffffffffff81116100e95760209083010181601f820112156100e957805196610bbc88610930565b97610bca604051998a6108ac565b8089526020808a019160051b840101928484116100e95760208101915b848310610d1b575050505050506040610c039186855201610b23565b936001600160a01b0360208401958087521615610ccb5750928184610c82956001600160a01b039451604051610c6481610c56602082019463a58d50d360e01b865260206024840152604483019061096c565b03601f1981018352826108ac565b519082305af1610c72610a04565b5015610c84575b50511690610de6565b565b517f5296f22c5d0413b66d0bf45c479c4e2ca5b278634bdbd028b48e49502105f966610cc2848451169260405191829160208352602083019061096c565b0390a25f610c79565b9350505050303b156100e9575f610cfe916040518093819263a58d50d360e01b835260206004840152602483019061096c565b038183305af1801561030557610d115750565b5f610c82916108ac565b825167ffffffffffffffff81116100e9578201906060828603126100e95760405190610d468261087c565b610d5260208401610b23565b8252604083015167ffffffffffffffff81116100e9576020908401019188601f840112156100e957825192610d86846108ce565b94610d9460405196876108ac565b8486528a602086840101116100e9576020955f8787819882606097018386015e830101528584015201516040820152815201920191610be7565b303303610dd757565b6314e1dbf760e11b5f5260045ffd5b6001600160a01b03168015610f44576040516370a0823160e01b815230600482015291602083602481855afa928315610305575f93610f10575b5082610e2b57505050565b6001600160a01b0316610eb36040515f806020830163a9059cbb60e01b815285602485015287604485015260448452610e656064856108ac565b60405193610e746040866108ac565b602085527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65646020860152519082885af1610eac610a04565b90856110cd565b8051908115918215610eed575b5050156100e9577f74d3741ef03417659087d2ec6af11dade8713f9b7f592569d60cf1ea0c9a44555f80a4565b81925090602091810103126100e9576020015180151581036100e9575f80610ec0565b9092506020813d602011610f3c575b81610f2c602093836108ac565b810103126100e95751915f610e20565b3d9150610f1f565b50479081610f50575050565b8147106100e9575f8080936001600160a01b038294165af1610f70610a04565b50156100e957565b908151811015610448570160200190565b610f93602a6108ce565b90610fa160405192836108ac565b602a8252610faf602a6108ce565b6020830190601f19013682378251156104485760309053815160011015610448576078602183015360295b60018111610fea57506100e95790565b90600f81166010811015610448576f181899199a1a9b1b9c1cb0b131b232b360811b901a6110188385610f78565b5360041c9080156102c0575f1901610fda565b61103560426108ce565b9061104360405192836108ac565b6042825261105160426108ce565b6020830190601f19013682378251156104485760309053815160011015610448576078602183015360415b6001811161108c57506100e95790565b90600f81166010811015610448576f181899199a1a9b1b9c1cb0b131b232b360811b901a6110ba8385610f78565b5360041c9080156102c0575f190161107c565b919250156110e9578151156110e0575090565b3b156100e95790565b5080519081156100e957602001fdfea26469706673582212209db2968648e84e3a9190afa2c06caa8f03c05a9be27a9649c156320034fd026364736f6c634300081e0033","recompiledBytecode":"0x608080604052600436101561001c575b50361561001a575f80fd5b005b5f3560e01c90816301ffc9a7146107e757508063248a9ca3146107b45780632f2ff15d146106f857806336568abe146106c35780633a5be8cb146105815780635f6ee30c1461054757806391d14854146104fd578063a217fddf146104e3578063a58d50d314610319578063c41e829514610130578063d547741f146100ed5763ef8738d3146100ac575f61000f565b346100e95760403660031901126100e9576100c5610850565b6024356001600160a01b03811681036100e95761001a916100e4610dce565b610de6565b5f80fd5b346100e95760403660031901126100e95761001a60043561010c61083a565b9061012b610126825f526001602052600160405f20015490565b610a57565b610a9f565b346100e95760803660031901126100e957610149610850565b60243567ffffffffffffffff81116100e9576101699036906004016108ea565b906064359067ffffffffffffffff82116100e957366023830112156100e957816004013567ffffffffffffffff81116100e9576024830192602436918360061b0101116100e9576101b8610dce565b604435925f5b82811061020d57855f80878784519160208601915af16101dc610a04565b50156101e457005b60405163b3beda7360e01b815260206004820152908190610209906024830190610948565b0390fd5b6001600160a01b03610228610223838686610a33565b610a43565b161561031057602460206001600160a01b03610248610223858888610a33565b16604051928380926370a0823160e01b82523060048301525afa908115610305575f916102d4575b505b602061027f838686610a33565b0135602081018082116102c05788518082116102ab5750508701602001805190911790526001016101be565b634d3ae48d60e01b5f5260045260245260445ffd5b634e487b7160e01b5f52601160045260245ffd5b90506020813d82116102fd575b816102ee602093836108ac565b810103126100e9575187610270565b3d91506102e1565b6040513d5f823e3d90fd5b47945084610272565b346100e95760203660031901126100e95760043567ffffffffffffffff81116100e957366023820112156100e957806004013561035581610930565b9161036360405193846108ac565b8183526024602084019260051b820101903682116100e95760248101925b82841061045c5784610391610dce565b80515f5b81811061039e57005b82518110156104485760208160051b840101516020810190815151151580610435575b610419575f918160406001600160a01b0385945116910151915191602083519301915af16103ed610a04565b50156103fb57600101610395565b6040516303918b1160e61b81529283925061020991600484016109ea565b60405163388ddcc360e21b8152806102098786600484016109ea565b506001600160a01b038151163b156103c1565b634e487b7160e01b5f52603260045260245ffd5b833567ffffffffffffffff81116100e9578201606060231982360301126100e9576040519161048a8361087c565b60248201356001600160a01b03811681036100e957835260448201359267ffffffffffffffff84116100e9576064602094936104cd8695602436918401016108ea565b8584015201356040820152815201930192610381565b346100e9575f3660031901126100e95760206040515f8152f35b346100e95760403660031901126100e95761051661083a565b6004355f5260016020526001600160a01b0360405f2091165f52602052602060ff60405f2054166040519015158152f35b346100e9575f3660031901126100e95760206040517f69048ea73402a715065a3029b4059a4e97d1461c95fa4fabca1084b5f34f4abe8152f35b346100e95760803660031901126100e95761059a610850565b6105a2610866565b5060643567ffffffffffffffff81116100e9576105c39036906004016108ea565b335f9081527ff9f8a8d829de1c11fdd691724f182d954bcae2d8f44e7aab584f413f377402bd602052604090205460ff16156106155760025f54146100e95761060f9160025f55610b37565b60015f55005b6100e96020601161062533610f89565b6037836106517f69048ea73402a715065a3029b4059a4e97d1461c95fa4fabca1084b5f34f4abe61102b565b6040519586947f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000828701528051918291018587015e8401907001034b99036b4b9b9b4b733903937b6329607d1b84830152805192839101604883015e01015f83820152030190601f19820181526108ac565b346100e95760403660031901126100e9576106dc61083a565b336001600160a01b038216036100e95761001a90600435610a9f565b346100e95760403660031901126100e95760043561071461083a565b9061072e610126825f526001602052600160405f20015490565b805f52600160205260405f206001600160a01b0383165f5260205260ff60405f2054161561075857005b805f52600160205260405f206001600160a01b0383165f5260205260405f20600160ff198254161790556001600160a01b03339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d5f80a4005b346100e95760203660031901126100e95760206107df6004355f526001602052600160405f20015490565b604051908152f35b346100e95760203660031901126100e9576004359063ffffffff60e01b82168092036100e957602091637965db0b60e01b8114908115610829575b5015158152f35b6301ffc9a760e01b14905083610822565b602435906001600160a01b03821682036100e957565b600435906001600160a01b03821682036100e957565b604435906001600160a01b03821682036100e957565b6060810190811067ffffffffffffffff82111761089857604052565b634e487b7160e01b5f52604160045260245ffd5b90601f8019910116810190811067ffffffffffffffff82111761089857604052565b67ffffffffffffffff811161089857601f01601f191660200190565b81601f820112156100e957803590610901826108ce565b9261090f60405194856108ac565b828452602083830101116100e957815f926020809301838601378301015290565b67ffffffffffffffff81116108985760051b60200190565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b9080602083519182815201916020808360051b8301019401925f915b83831061099757505050505090565b9091929394602080600192601f198582030186528851906001600160a01b0382511681526040806109d5858501516060878601526060850190610948565b93015191015297019301930191939290610988565b604090610a0193928152816020820152019061096c565b90565b3d15610a2e573d90610a15826108ce565b91610a2360405193846108ac565b82523d5f602084013e565b606090565b91908110156104485760061b0190565b356001600160a01b03811681036100e95790565b805f52600160205260405f206001600160a01b0333165f5260205260ff60405f20541615610a825750565b602060116100e992603783610651610a9933610f89565b9361102b565b805f52600160205260405f206001600160a01b0383165f5260205260ff60405f205416610aca575050565b805f52600160205260405f206001600160a01b0383165f5260205260405f2060ff1981541690556001600160a01b03339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b5f80a4565b51906001600160a01b03821682036100e957565b815182019160208301905f906020818603126100e95760208101519067ffffffffffffffff82116100e957016040818603126100e957604051926040840184811067ffffffffffffffff82111761089857604052602082015167ffffffffffffffff81116100e95760209083010181601f820112156100e957805196610bbc88610930565b97610bca604051998a6108ac565b8089526020808a019160051b840101928484116100e95760208101915b848310610d1b575050505050506040610c039186855201610b23565b936001600160a01b0360208401958087521615610ccb5750928184610c82956001600160a01b039451604051610c6481610c56602082019463a58d50d360e01b865260206024840152604483019061096c565b03601f1981018352826108ac565b519082305af1610c72610a04565b5015610c84575b50511690610de6565b565b517f5296f22c5d0413b66d0bf45c479c4e2ca5b278634bdbd028b48e49502105f966610cc2848451169260405191829160208352602083019061096c565b0390a25f610c79565b9350505050303b156100e9575f610cfe916040518093819263a58d50d360e01b835260206004840152602483019061096c565b038183305af1801561030557610d115750565b5f610c82916108ac565b825167ffffffffffffffff81116100e9578201906060828603126100e95760405190610d468261087c565b610d5260208401610b23565b8252604083015167ffffffffffffffff81116100e9576020908401019188601f840112156100e957825192610d86846108ce565b94610d9460405196876108ac565b8486528a602086840101116100e9576020955f8787819882606097018386015e830101528584015201516040820152815201920191610be7565b303303610dd757565b6314e1dbf760e11b5f5260045ffd5b6001600160a01b03168015610f44576040516370a0823160e01b815230600482015291602083602481855afa928315610305575f93610f10575b5082610e2b57505050565b6001600160a01b0316610eb36040515f806020830163a9059cbb60e01b815285602485015287604485015260448452610e656064856108ac565b60405193610e746040866108ac565b602085527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65646020860152519082885af1610eac610a04565b90856110cd565b8051908115918215610eed575b5050156100e9577f74d3741ef03417659087d2ec6af11dade8713f9b7f592569d60cf1ea0c9a44555f80a4565b81925090602091810103126100e9576020015180151581036100e9575f80610ec0565b9092506020813d602011610f3c575b81610f2c602093836108ac565b810103126100e95751915f610e20565b3d9150610f1f565b50479081610f50575050565b8147106100e9575f8080936001600160a01b038294165af1610f70610a04565b50156100e957565b908151811015610448570160200190565b610f93602a6108ce565b90610fa160405192836108ac565b602a8252610faf602a6108ce565b6020830190601f19013682378251156104485760309053815160011015610448576078602183015360295b60018111610fea57506100e95790565b90600f81166010811015610448576f181899199a1a9b1b9c1cb0b131b232b360811b901a6110188385610f78565b5360041c9080156102c0575f1901610fda565b61103560426108ce565b9061104360405192836108ac565b6042825261105160426108ce565b6020830190601f19013682378251156104485760309053815160011015610448576078602183015360415b6001811161108c57506100e95790565b90600f81166010811015610448576f181899199a1a9b1b9c1cb0b131b232b360811b901a6110ba8385610f78565b5360041c9080156102c0575f190161107c565b919250156110e9578151156110e0575090565b3b156100e95790565b5080519081156100e957602001fdfea264697066735822122009640042ad352092c41b3e7829e02053539436e4415dc96f23233453f0d4fc7064736f6c634300081e0033","sourceMap":"503:1115:1:-:0;;;;;;;;;;-1:-1:-1;503:1115:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;503:1115:1;;;;;;:::i;:::-;;;-1:-1:-1;;;;;503:1115:1;;;;;;4267:11:0;1909:62;;;:::i;:::-;4267:11;:::i;503:1115:1:-;;;;;;;;;;-1:-1:-1;;503:1115:1;;;;5486:7:3;503:1115:1;;;;:::i;:::-;5438:18:3;2642:4;5438:18;;-1:-1:-1;503:1115:1;4604:6:3;503:1115:1;;4604:6:3;503:1115:1;-1:-1:-1;503:1115:1;4604:22:3;503:1115:1;4504:129:3;;5438:18;2642:4;:::i;:::-;5486:7;:::i;503:1115:1:-;;;;;;-1:-1:-1;;503:1115:1;;;;;;:::i;:::-;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1909:62:0;;:::i;:::-;503:1115:1;;5876:13:0;503:1115:1;5891:22:0;;;;;;7923:37;503:1115:1;7923:37:0;;;;;;503:1115:1;7923:37:0;;;;;;;:::i;:::-;;7974:8;7970:52;;503:1115:1;7970:52:0;503:1115:1;;-1:-1:-1;;;7991:31:0;;503:1115:1;;7991:31:0;;503:1115:1;;;;;;;;;;;:::i;:::-;7991:31:0;;;5915:3;-1:-1:-1;;;;;5967:20:0;:14;;;;;:::i;:::-;:20;:::i;:::-;503:1115:1;5967:34:0;503:1115:1;;;;-1:-1:-1;;;;;6034:20:0;:14;;;;;:::i;:20::-;503:1115:1;;;;;;;;;;6027:53:0;;6074:4;503:1115:1;6027:53:0;;503:1115:1;6027:53:0;;;;;;;503:1115:1;6027:53:0;;;5963:352;6021:59;5963:352;503:1115:1;6401:14:0;;;;;:::i;:::-;:21;503:1115:1;;;;;;;;;;;6663:24:0;;;6659:78;;-1:-1:-1;;6752:1132:0;;503:1115:1;6752:1132:0;;;;;;;;503:1115:1;;5876:13:0;;6659:78;6696:41;;;503:1115:1;6696:41:0;503:1115:1;;;;;;6696:41:0;503:1115:1;;;;;;;;;;;;6027:53:0;;;503:1115:1;6027:53:0;;;;;;;;;503:1115:1;6027:53:0;;;:::i;:::-;;;503:1115:1;;;;;6027:53:0;;;;;;-1:-1:-1;6027:53:0;;;503:1115:1;;;;;;;;;5963:352:0;6125:21;;-1:-1:-1;6125:21:0;5963:352;;503:1115:1;;;;;;-1:-1:-1;;503:1115:1;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1909:62:0;;;:::i;:::-;503:1115:1;;;3669:10:0;;;;;;503:1115:1;3681:3:0;503:1115:1;;;;;;;;;;;;;;3719:8:0;503:1115:1;3853:13:0;;;;;503:1115:1;3853:24:0;;:56;;;3681:3;3849:123;;503:1115:1;;;;-1:-1:-1;;;;;503:1115:1;;;;4030:10:0;;503:1115:1;4043:13:0;;4005:52;503:1115:1;4005:52:0;;;;;;;;;:::i;:::-;;4075:8;4071:43;;503:1115:1;;3654:13:0;;4071:43;503:1115:1;;-1:-1:-1;;;4092:22:0;;503:1115:1;;;-1:-1:-1;4092:22:0;;503:1115:1;4092:22:0;;;:::i;3849:123::-;503:1115:1;;-1:-1:-1;;;3936:21:0;;503:1115:1;3936:21:0;503:1115:1;;;3936:21:0;;;:::i;3853:56::-;503:1115:1;-1:-1:-1;;;;;503:1115:1;;;3881:23:0;:28;3853:56;;503:1115:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;503:1115:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;503:1115:1;;;;;;;;;;;;;;;;;-1:-1:-1;;503:1115:1;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;;;;;503:1115:1;;;3130:29:3;503:1115:1;-1:-1:-1;503:1115:1;;;;;;-1:-1:-1;503:1115:1;;;;;;;;;;;;;;;;;-1:-1:-1;;503:1115:1;;;;;;;688:36;503:1115;;;;;;;;;-1:-1:-1;;503:1115:1;;;;;;:::i;:::-;;;:::i;:::-;;;;;;;;;;;;;;;;:::i;:::-;734:10:10;503:1115:1;;;;;;;;;;;;;3931:23:3;3927:390;;1759:1:5;503:1115:1;;2468:19:5;503:1115:1;;2618:915:0;1759:1:5;;503:1115:1;1759:1:5;2618:915:0;:::i;:::-;503:1115:1;;1759:1:5;503:1115:1;3927:390:3;4022:252;503:1115:1;;2497:52:11;734:10:10;2497:52:11;:::i;:::-;503:1115:1;4214:38:3;;688:36:1;4214:38:3;:::i;:::-;503:1115:1;;4022:252:3;;;503:1115:1;4022:252:3;;;503:1115:1;;;;;;;;;;;;;;-1:-1:-1;;;503:1115:1;;;;;;;;;;;;;;;;;;;;;4022:252:3;;;;;;;;;;:::i;503:1115:1:-;;;;;;-1:-1:-1;;503:1115:1;;;;;;:::i;:::-;734:10:10;-1:-1:-1;;;;;503:1115:1;;6133:23:3;503:1115:1;;6237:7:3;503:1115:1;;;6237:7:3;:::i;503:1115:1:-;;;;;;-1:-1:-1;;503:1115:1;;;;;;;;:::i;:::-;5012:18:3;2642:4;5012:18;;-1:-1:-1;503:1115:1;4604:6:3;503:1115:1;;4604:6:3;503:1115:1;-1:-1:-1;503:1115:1;4604:22:3;503:1115:1;4504:129:3;;2642:4;503:1115:1;;;;;;;;;-1:-1:-1;;;;;503:1115:1;;-1:-1:-1;503:1115:1;;;;;-1:-1:-1;503:1115:1;;;7669:23:3;7665:149;;503:1115:1;7665:149:3;503:1115:1;;;;;;;;;-1:-1:-1;;;;;503:1115:1;;-1:-1:-1;503:1115:1;;;;-1:-1:-1;503:1115:1;;;;;;;;;;-1:-1:-1;;;;;734:10:10;503:1115:1;;7763:40:3;;503:1115:1;7763:40:3;;503:1115:1;;;;;;;-1:-1:-1;;503:1115:1;;;;;;;;-1:-1:-1;503:1115:1;4604:6:3;503:1115:1;;4604:6:3;503:1115:1;-1:-1:-1;503:1115:1;4604:22:3;503:1115:1;4504:129:3;;503:1115:1;;;;;;;;;;;;;-1:-1:-1;;503:1115:1;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2840:47:3;;;:87;;;;503:1115:1;;;;;;;2840:87:3;-1:-1:-1;;;937:40:12;;-1:-1:-1;2840:87:3;;;503:1115:1;;;;-1:-1:-1;;;;;503:1115:1;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;503:1115:1;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;503:1115:1;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;-1:-1:-1;503:1115:1;;;;;-1:-1:-1;503:1115:1;;;;4022:252:3;;503:1115:1;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;-1:-1:-1;;503:1115:1;;;;:::o;:::-;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;503:1115:1;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;-1:-1:-1;503:1115:1;;;;;;;;-1:-1:-1;;503:1115:1;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;503:1115:1;;;;;;;;;;;;;:::o;:::-;4022:252:3;;;;;503:1115:1;4022:252:3;503:1115:1;4022:252:3;;;503:1115:1;;;;;;;;;-1:-1:-1;;;;;503:1115:1;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::o;:::-;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;-1:-1:-1;503:1115:1;;;;:::o;:::-;;;:::o;:::-;;;;;;;;;;;;:::o;:::-;;-1:-1:-1;;;;;503:1115:1;;;;;;;:::o;3460:103:3:-;503:1115:1;-1:-1:-1;503:1115:1;3130:6:3;503:1115:1;;;-1:-1:-1;503:1115:1;-1:-1:-1;;;;;734:10:10;503:1115:1;-1:-1:-1;503:1115:1;;;;;-1:-1:-1;503:1115:1;;;3931:23:3;3927:390;;3460:103;:::o;3927:390::-;503:1115:1;;4022:252:3;734:10:10;503:1115:1;734:10:10;4214:38:3;2497:52:11;734:10:10;2497:52:11;:::i;:::-;4214:38:3;;:::i;7991:234::-;503:1115:1;-1:-1:-1;503:1115:1;3130:6:3;503:1115:1;;;-1:-1:-1;503:1115:1;-1:-1:-1;;;;;503:1115:1;;-1:-1:-1;503:1115:1;;;;;-1:-1:-1;503:1115:1;;;8070:149:3;;7991:234;;:::o;8070:149::-;503:1115:1;-1:-1:-1;503:1115:1;3130:6:3;503:1115:1;;;-1:-1:-1;503:1115:1;-1:-1:-1;;;;;503:1115:1;;-1:-1:-1;503:1115:1;;;;-1:-1:-1;503:1115:1;;;;;;;;-1:-1:-1;;;;;734:10:10;503:1115:1;;8168:40:3;;-1:-1:-1;8168:40:3;;7991:234::o;503:1115:1:-;;;-1:-1:-1;;;;;503:1115:1;;;;;;:::o;2618:915:0:-;503:1115:1;;2777:35:0;;;;;;;-1:-1:-1;503:1115:1;2777:35:0;503:1115:1;;;;;;2777:35:0;;;503:1115:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2777:35:0;503:1115:1;;;;;;;;2777:35:0;503:1115:1;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;2777:35:0;503:1115:1;;;;;;;;;;;;;;;2777:35:0;503:1115:1;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;-1:-1:-1;;;;;2777:35:0;503:1115:1;;;;;;;2914:44:0;2910:132;;3223:18;;;;3486:39;3223:18;-1:-1:-1;;;;;3223:18:0;;503:1115:1;;3188:55:0;;503:1115:1;2777:35:0;3188:55;;503:1115:1;;;;3188:55:0;;2777:35;3188:55;;;503:1115:1;;;;;;:::i;:::-;3188:55:0;4022:252:3;;3188:55:0;;;;;;:::i;:::-;3169:75;3177:4;;;3169:75;;;;:::i;:::-;;3258:8;3254:82;;503:1115:1;;;;3486:39:0;;:::i;:::-;2618:915::o;3254:82::-;3285:18;3273:63;503:1115:1;;;;;;;;;;;2777:35:0;503:1115:1;;2777:35:0;503:1115:1;;;;:::i;:::-;3273:63:0;;;3254:82;;;2910:132;2974:4;;;;;;:37;;;;-1:-1:-1;503:1115:1;;;;;;;;;;;2974:37:0;;2777:35;2974:37;;;503:1115:1;;;;;;:::i;:::-;2974:37:0;:4;;;:37;;;;;;;;3025:7;:::o;2974:37::-;-1:-1:-1;2974:37:0;;;:::i;503:1115:1:-;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2777:35:0;503:1115:1;;;:::i;:::-;;;;;;;;;;;;2777:35:0;503:1115:1;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;2777:35:0;503:1115:1;;;;;;;2777:35:0;503:1115:1;-1:-1:-1;503:1115:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8035:265:0;8270:4;8248:10;:27;8244:49;;8035:265::o;8244:49::-;8284:9;;;;;;;;4292:599;-1:-1:-1;;;;;503:1115:1;4390:19:0;;503:1115:1;;;;-1:-1:-1;;;4470:38:0;;4502:4;4470:38;;;503:1115:1;;;;4470:38:0;503:1115:1;4470:38:0;;;;;;;;4407:1;4470:38;;;4386:499;4526:10;;4522:160;;4386:499;;;4292:599::o;4522:160::-;-1:-1:-1;;;;;503:1115:1;5535:69:9;503:1115:1;;4407:1:0;1050:58:8;503:1115:1;1050:58:8;;503:1115:1;;;1050:58:8;;;4470:38:0;1050:58:8;;503:1115:1;;;;;;;1050:58:8;;;;;;:::i;:::-;503:1115:1;;;;;;;:::i;:::-;;;;;;;;;5487:31:9;;;;;;;;:::i;:::-;5535:69;;;:::i;:::-;503:1115:1;;5728:22:8;;;:56;;;;;4522:160:0;503:1115:1;;;;;4626:41:0;4407:1;4626:41;;4292:599::o;5728:56:8:-;5754:30;;;;503:1115:1;5754:30:8;;;503:1115:1;;;;;5754:30:8;503:1115:1;;;;;;;;5728:56:8;;;;4470:38:0;;;;503:1115:1;4470:38:0;;503:1115:1;4470:38:0;;;;;;503:1115:1;4470:38:0;;;:::i;:::-;;;503:1115:1;;;;;4470:38:0;;;;;;;-1:-1:-1;4470:38:0;;4386:499;4762:21;;4801:10;;4797:78;;4386:499;;4292:599::o;4797:78::-;2736:21:9;;:31;503:1115:1;;4407:1:0;503:1115:1;;;-1:-1:-1;;;;;503:1115:1;;;2831:33:9;;;;:::i;:::-;;503:1115:1;;;4292:599:0:o;503:1115:1:-;;;;;;;;;;;;;:::o;1818:437:11:-;503:1115:1;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;-1:-1:-1;;503:1115:1;;;;;;;;;1975:15:11;;;503:1115:1;;;;;;;2000:15:11;503:1115:1;;;2000:15:11;503:1115:1;2058:5:11;503:1115:1;2058:5:11;;;;2170:10;503:1115:1;;1818:437:11;:::o;2065:3::-;2105:11;2113:3;2105:11;;2096:21;;;;;;-1:-1:-1;;;2096:21:11;;2084:33;;;;:::i;:::-;;2141:1;278:18;2065:3;503:1115:1;;;;-1:-1:-1;;503:1115:1;2030:26:11;;1818:437;503:1115:1;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;-1:-1:-1;;503:1115:1;;;;;;;;;1975:15:11;;;503:1115:1;;;;;;;2000:15:11;503:1115:1;;;2000:15:11;503:1115:1;2058:5:11;503:1115:1;2058:5:11;;;;2170:10;503:1115:1;;1818:437:11;:::o;2065:3::-;2105:11;2113:3;2105:11;;2096:21;;;;;;-1:-1:-1;;;2096:21:11;;2084:33;;;;:::i;:::-;;2141:1;278:18;2065:3;503:1115:1;;;;-1:-1:-1;;503:1115:1;2030:26:11;;7671:628:9;;;-1:-1:-1;7875:418:9;;;503:1115:1;;7906:22:9;7902:286;;8201:17;;:::o;7902:286::-;1702:19;:23;503:1115:1;;8201:17:9;:::o;7875:418::-;-1:-1:-1;503:1115:1;;;8980:21:9;;;;9152:142;;","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa264697066735822122009640042ad352092c41b3e7829e02053539436e4415dc96f23233453f0d4fc7064736f6c634300081e0033","offset":4345}},"immutableReferences":{},"transformations":[{"id":"1","type":"replace","offset":4345,"reason":"cborAuxdata"}],"transformationValues":{"cborAuxdata":{"1":"0xa26469706673582212209db2968648e84e3a9190afa2c06caa8f03c05a9be27a9649c156320034fd026364736f6c634300081e0033"}}},"deployment":{"transactionHash":"0xc7f656f7ae6a105c3cef94d67c488c14b2e44037af06dd3541d13e87305b8d53","blockNumber":"25050834","transactionIndex":"191","deployer":"0x9A8f92a830A5cB89a3816e3D267CB7791c16b04D"},"sources":{"contracts/handlers/PermissionedMulticallHandler.sol":{"content":"// SPDX-License-Identifier: GPL-3.0-only\npragma solidity ^0.8.0;\n\nimport { MulticallHandler } from \"./MulticallHandler.sol\";\nimport { AccessControl } from \"@openzeppelin/contracts-v4/access/AccessControl.sol\";\n\n/**\n * @title PermissionedMulticallHandler\n * @notice Extension of MulticallHandler that restricts access to whitelisted callers\n * @dev Uses OpenZeppelin's AccessControl for caller permission management.\n * Only addresses with the WHITELISTED_CALLER_ROLE can call handleV3AcrossMessage.\n */\ncontract PermissionedMulticallHandler is MulticallHandler, AccessControl {\n    /// @notice Role identifier for whitelisted callers\n    bytes32 public constant WHITELISTED_CALLER_ROLE = keccak256(\"WHITELISTED_CALLER_ROLE\");\n\n    /**\n     * @notice Constructor that sets up the initial admin\n     * @param admin Address that will have DEFAULT_ADMIN_ROLE\n     */\n    constructor(address admin) {\n        _grantRole(DEFAULT_ADMIN_ROLE, admin);\n    }\n\n    /**\n     * @notice Overrides handleV3AcrossMessage to add caller whitelist check\n     * @dev Only addresses with WHITELISTED_CALLER_ROLE can call this function\n     * @param token The token being transferred\n     * @param amount The amount of tokens\n     * @param relayer The relayer address\n     * @param message The encoded Instructions struct\n     */\n    function handleV3AcrossMessage(\n        address token,\n        uint256 amount,\n        address relayer,\n        bytes memory message\n    ) public override onlyRole(WHITELISTED_CALLER_ROLE) {\n        // Call parent implementation\n        super.handleV3AcrossMessage(token, amount, relayer, message);\n    }\n}\n"},"contracts/handlers/MulticallHandler.sol":{"content":"// SPDX-License-Identifier: GPL-3.0-only\npragma solidity ^0.8.0;\n\nimport \"../interfaces/SpokePoolMessageHandler.sol\";\nimport \"@openzeppelin/contracts-v4/token/ERC20/IERC20.sol\";\nimport \"@openzeppelin/contracts-v4/token/ERC20/utils/SafeERC20.sol\";\nimport \"@openzeppelin/contracts-v4/utils/Address.sol\";\nimport \"@openzeppelin/contracts-v4/security/ReentrancyGuard.sol\";\n\n/**\n * @title Across Multicall contract that allows a user to specify a series of calls that should be made by the handler\n * via the message field in the deposit.\n * @dev This contract makes the calls blindly. The contract will send any remaining tokens The caller should ensure that the tokens recieved by the handler are completely consumed.\n */\ncontract MulticallHandler is AcrossMessageHandler, ReentrancyGuard {\n    using SafeERC20 for IERC20;\n    using Address for address payable;\n\n    struct Call {\n        address target;\n        bytes callData;\n        uint256 value;\n    }\n\n    struct Replacement {\n        address token;\n        uint256 offset;\n    }\n\n    struct Instructions {\n        //  Calls that will be attempted.\n        Call[] calls;\n        // Where the tokens go if any part of the call fails.\n        // Leftover tokens are sent here as well if the action succeeds.\n        address fallbackRecipient;\n    }\n\n    // Emitted when one of the calls fails. Note: all calls are reverted in this case.\n    event CallsFailed(Call[] calls, address indexed fallbackRecipient);\n\n    // Emitted when there are leftover tokens that are sent to the fallbackRecipient.\n    event DrainedTokens(address indexed recipient, address indexed token, uint256 indexed amount);\n\n    // Errors\n    error CallReverted(uint256 index, Call[] calls);\n    error NotSelf();\n    error InvalidCall(uint256 index, Call[] calls);\n    error ReplacementCallFailed(bytes callData);\n    error CalldataTooShort(uint256 callDataLength, uint256 offset);\n\n    modifier onlySelf() {\n        _requireSelf();\n        _;\n    }\n\n    /**\n     * @notice Main entrypoint for the handler called by the SpokePool contract.\n     * @dev This will execute all calls encoded in the msg. The caller is responsible for making sure all tokens are\n     * drained from this contract by the end of the series of calls. If not, they can be stolen.\n     * A drainLeftoverTokens call can be included as a way to drain any remaining tokens from this contract.\n     * @param token The token address that was received from the relay\n     * @param message abi encoded array of Call structs, containing a target, callData, and value for each call that\n     * the contract should make.\n     */\n    function handleV3AcrossMessage(address token, uint256, address, bytes memory message) public virtual nonReentrant {\n        Instructions memory instructions = abi.decode(message, (Instructions));\n\n        // If there is no fallback recipient, call and revert if the inner call fails.\n        if (instructions.fallbackRecipient == address(0)) {\n            this.attemptCalls(instructions.calls);\n            return;\n        }\n\n        // Otherwise, try the call and send to the fallback recipient if any tokens are leftover.\n        (bool success, ) = address(this).call(abi.encodeCall(this.attemptCalls, (instructions.calls)));\n        if (!success) emit CallsFailed(instructions.calls, instructions.fallbackRecipient);\n\n        // If there are leftover tokens, send them to the fallback recipient regardless of execution success.\n        _drainRemainingTokens(token, payable(instructions.fallbackRecipient));\n    }\n\n    function attemptCalls(Call[] memory calls) external onlySelf {\n        uint256 length = calls.length;\n        for (uint256 i = 0; i < length; ++i) {\n            Call memory call = calls[i];\n\n            // If we are calling an EOA with calldata, assume target was incorrectly specified and revert.\n            if (call.callData.length > 0 && call.target.code.length == 0) {\n                revert InvalidCall(i, calls);\n            }\n\n            (bool success, ) = call.target.call{ value: call.value }(call.callData);\n            if (!success) revert CallReverted(i, calls);\n        }\n    }\n\n    function drainLeftoverTokens(address token, address payable destination) external onlySelf {\n        _drainRemainingTokens(token, destination);\n    }\n\n    function _drainRemainingTokens(address token, address payable destination) internal {\n        if (token != address(0)) {\n            // ERC20 token.\n            uint256 amount = IERC20(token).balanceOf(address(this));\n            if (amount > 0) {\n                IERC20(token).safeTransfer(destination, amount);\n                emit DrainedTokens(destination, token, amount);\n            }\n        } else {\n            // Send native token\n            uint256 amount = address(this).balance;\n            if (amount > 0) {\n                destination.sendValue(amount);\n            }\n        }\n    }\n\n    /**\n     * @notice Executes a call while replacing specified calldata offsets with current token/native balances.\n     * @dev Modifies calldata in-place using OR operations. Target calldata positions must be zeroed out.\n     * Cannot handle negative balances, making it incompatible with DEXs requiring negative input amounts.\n     * For native balance (token = address(0)), the entire balance is used as call value.\n     * @param target The contract address to call\n     * @param callData The calldata to execute, with zero values at replacement positions\n     * @param value The native token value to send (ignored if native balance replacement is used)\n     * @param replacement Array of Replacement structs specifying token addresses and byte offsets for balance injection\n     */\n    function makeCallWithBalance(\n        address target,\n        bytes memory callData,\n        uint256 value,\n        Replacement[] calldata replacement\n    ) external onlySelf {\n        for (uint256 i = 0; i < replacement.length; ++i) {\n            uint256 bal = 0;\n            if (replacement[i].token != address(0)) {\n                bal = IERC20(replacement[i].token).balanceOf(address(this));\n            } else {\n                bal = address(this).balance;\n\n                // If we're using the native balance, we assume that the caller wants to send the full value to the target.\n                value = bal;\n            }\n\n            // + 32 to skip the length of the calldata\n            uint256 offset = replacement[i].offset + 32;\n\n            // 32 has already been added to the offset, and the replacement value is 32 bytes long, so\n            // we don't need to add 32 here. We just directly compare the offset with the length of the calldata.\n            if (offset > callData.length) revert CalldataTooShort(callData.length, offset);\n\n            assembly (\"memory-safe\") {\n                // Get the pointer to the offset that the caller wants to overwrite.\n                let ptr := add(callData, offset)\n                // Get the current value at the offset.\n                let current := mload(ptr)\n                // Or the current value with the new value.\n                // Reasoning:\n                // - caller should 0-out any portion that they want overwritten.\n                // - if the caller is representing the balance in a smaller integer, like a uint160 or uint128,\n                //   the higher bits will be 0 and not overwrite any other data in the calldata assuming\n                //   the balance is small enough to fit in the smaller integer.\n                // - The catch: the smaller integer where they want to store the balance must end no\n                //   earlier than the 32nd byte in their calldata. Otherwise, this would require a\n                //   negative offset, which is not possible.\n                let val := or(bal, current)\n                // Store the new value at the offset.\n                mstore(ptr, val)\n            }\n        }\n\n        (bool success, ) = target.call{ value: value }(callData);\n        if (!success) revert ReplacementCallFailed(callData);\n    }\n\n    function _requireSelf() internal view {\n        // Must be called by this contract to ensure that this cannot be triggered without the explicit consent of the\n        // depositor (for a valid relay).\n        if (msg.sender != address(this)) revert NotSelf();\n    }\n\n    // Used if the caller is trying to unwrap the native token to this contract.\n    receive() external payable {}\n}\n"},"node_modules/@openzeppelin/contracts-v4/access/AccessControl.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IAccessControl.sol\";\nimport \"../utils/Context.sol\";\nimport \"../utils/Strings.sol\";\nimport \"../utils/introspection/ERC165.sol\";\n\n/**\n * @dev Contract module that allows children to implement role-based access\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\n * members except through off-chain means by accessing the contract event logs. Some\n * applications may benefit from on-chain enumerability, for those cases see\n * {AccessControlEnumerable}.\n *\n * Roles are referred to by their `bytes32` identifier. These should be exposed\n * in the external API and be unique. The best way to achieve this is by\n * using `public constant` hash digests:\n *\n * ```solidity\n * bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\");\n * ```\n *\n * Roles can be used to represent a set of permissions. To restrict access to a\n * function call, use {hasRole}:\n *\n * ```solidity\n * function foo() public {\n *     require(hasRole(MY_ROLE, msg.sender));\n *     ...\n * }\n * ```\n *\n * Roles can be granted and revoked dynamically via the {grantRole} and\n * {revokeRole} functions. Each role has an associated admin role, and only\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\n *\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\n * that only accounts with this role will be able to grant or revoke other\n * roles. More complex role relationships can be created by using\n * {_setRoleAdmin}.\n *\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\n * grant and revoke this role. Extra precautions should be taken to secure\n * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}\n * to enforce additional security measures for this role.\n */\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\n    struct RoleData {\n        mapping(address => bool) members;\n        bytes32 adminRole;\n    }\n\n    mapping(bytes32 => RoleData) private _roles;\n\n    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\n\n    /**\n     * @dev Modifier that checks that an account has a specific role. Reverts\n     * with a standardized message including the required role.\n     *\n     * The format of the revert reason is given by the following regular expression:\n     *\n     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\n     *\n     * _Available since v4.1._\n     */\n    modifier onlyRole(bytes32 role) {\n        _checkRole(role);\n        _;\n    }\n\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\n    }\n\n    /**\n     * @dev Returns `true` if `account` has been granted `role`.\n     */\n    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\n        return _roles[role].members[account];\n    }\n\n    /**\n     * @dev Revert with a standard message if `_msgSender()` is missing `role`.\n     * Overriding this function changes the behavior of the {onlyRole} modifier.\n     *\n     * Format of the revert message is described in {_checkRole}.\n     *\n     * _Available since v4.6._\n     */\n    function _checkRole(bytes32 role) internal view virtual {\n        _checkRole(role, _msgSender());\n    }\n\n    /**\n     * @dev Revert with a standard message if `account` is missing `role`.\n     *\n     * The format of the revert reason is given by the following regular expression:\n     *\n     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\n     */\n    function _checkRole(bytes32 role, address account) internal view virtual {\n        if (!hasRole(role, account)) {\n            revert(\n                string(\n                    abi.encodePacked(\n                        \"AccessControl: account \",\n                        Strings.toHexString(account),\n                        \" is missing role \",\n                        Strings.toHexString(uint256(role), 32)\n                    )\n                )\n            );\n        }\n    }\n\n    /**\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\n     * {revokeRole}.\n     *\n     * To change a role's admin, use {_setRoleAdmin}.\n     */\n    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\n        return _roles[role].adminRole;\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     *\n     * May emit a {RoleGranted} event.\n     */\n    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\n        _grantRole(role, account);\n    }\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\n        _revokeRole(role, account);\n    }\n\n    /**\n     * @dev Revokes `role` from the calling account.\n     *\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\n     * purpose is to provide a mechanism for accounts to lose their privileges\n     * if they are compromised (such as when a trusted device is misplaced).\n     *\n     * If the calling account had been revoked `role`, emits a {RoleRevoked}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must be `account`.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function renounceRole(bytes32 role, address account) public virtual override {\n        require(account == _msgSender(), \"AccessControl: can only renounce roles for self\");\n\n        _revokeRole(role, account);\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event. Note that unlike {grantRole}, this function doesn't perform any\n     * checks on the calling account.\n     *\n     * May emit a {RoleGranted} event.\n     *\n     * [WARNING]\n     * ====\n     * This function should only be called from the constructor when setting\n     * up the initial roles for the system.\n     *\n     * Using this function in any other way is effectively circumventing the admin\n     * system imposed by {AccessControl}.\n     * ====\n     *\n     * NOTE: This function is deprecated in favor of {_grantRole}.\n     */\n    function _setupRole(bytes32 role, address account) internal virtual {\n        _grantRole(role, account);\n    }\n\n    /**\n     * @dev Sets `adminRole` as ``role``'s admin role.\n     *\n     * Emits a {RoleAdminChanged} event.\n     */\n    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\n        bytes32 previousAdminRole = getRoleAdmin(role);\n        _roles[role].adminRole = adminRole;\n        emit RoleAdminChanged(role, previousAdminRole, adminRole);\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * Internal function without access restriction.\n     *\n     * May emit a {RoleGranted} event.\n     */\n    function _grantRole(bytes32 role, address account) internal virtual {\n        if (!hasRole(role, account)) {\n            _roles[role].members[account] = true;\n            emit RoleGranted(role, account, _msgSender());\n        }\n    }\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * Internal function without access restriction.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function _revokeRole(bytes32 role, address account) internal virtual {\n        if (hasRole(role, account)) {\n            _roles[role].members[account] = false;\n            emit RoleRevoked(role, account, _msgSender());\n        }\n    }\n}\n"},"contracts/interfaces/SpokePoolMessageHandler.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n// This interface is expected to be implemented by any contract that expects to receive messages from the SpokePool.\ninterface AcrossMessageHandler {\n    function handleV3AcrossMessage(\n        address tokenSent,\n        uint256 amount,\n        address relayer,\n        bytes memory message\n    ) external;\n}\n"},"node_modules/@openzeppelin/contracts-v4/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the amount of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the amount of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves `amount` tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Moves `amount` tokens from `from` to `to` using the\n     * allowance mechanism. `amount` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 amount) external returns (bool);\n}\n"},"node_modules/@openzeppelin/contracts-v4/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\nimport \"../extensions/IERC20Permit.sol\";\nimport \"../../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    using Address for address;\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n    }\n\n    /**\n     * @dev Deprecated. This function has issues similar to the ones found in\n     * {IERC20-approve}, and its usage is discouraged.\n     *\n     * Whenever possible, use {safeIncreaseAllowance} and\n     * {safeDecreaseAllowance} instead.\n     */\n    function safeApprove(IERC20 token, address spender, uint256 value) internal {\n        // safeApprove should only be called when setting an initial allowance,\n        // or when resetting it to zero. To increase and decrease it, use\n        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n        require(\n            (value == 0) || (token.allowance(address(this), spender) == 0),\n            \"SafeERC20: approve from non-zero to non-zero allowance\"\n        );\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        unchecked {\n            uint256 oldAllowance = token.allowance(address(this), spender);\n            require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\n        }\n    }\n\n    /**\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n     * to be set to zero before setting it to a non-zero value, such as USDT.\n     */\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\n        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\n\n        if (!_callOptionalReturnBool(token, approvalCall)) {\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\n            _callOptionalReturn(token, approvalCall);\n        }\n    }\n\n    /**\n     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\n     * Revert on invalid signature.\n     */\n    function safePermit(\n        IERC20Permit token,\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        uint256 nonceBefore = token.nonces(owner);\n        token.permit(owner, spender, value, deadline, v, r, s);\n        uint256 nonceAfter = token.nonces(owner);\n        require(nonceAfter == nonceBefore + 1, \"SafeERC20: permit did not succeed\");\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     */\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n        // the target address contains contract code and also asserts for success in the low-level call.\n\n        bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n        require(returndata.length == 0 || abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     *\n     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\n     */\n    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\n        // and not revert is the subcall reverts.\n\n        (bool success, bytes memory returndata) = address(token).call(data);\n        return\n            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n    /**\n     * @dev Returns true if `account` is a contract.\n     *\n     * [IMPORTANT]\n     * ====\n     * It is unsafe to assume that an address for which this function returns\n     * false is an externally-owned account (EOA) and not a contract.\n     *\n     * Among others, `isContract` will return false for the following\n     * types of addresses:\n     *\n     *  - an externally-owned account\n     *  - a contract in construction\n     *  - an address where a contract will be created\n     *  - an address where a contract lived, but was destroyed\n     *\n     * Furthermore, `isContract` will also return true if the target contract within\n     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n     * which only has an effect at the end of a transaction.\n     * ====\n     *\n     * [IMPORTANT]\n     * ====\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\n     *\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n     * constructor.\n     * ====\n     */\n    function isContract(address account) internal view returns (bool) {\n        // This method relies on extcodesize/address.code.length, which returns 0\n        // for contracts in construction, since the code is only stored at the end\n        // of the constructor execution.\n\n        return account.code.length > 0;\n    }\n\n    /**\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n     * `recipient`, forwarding all available gas and reverting on errors.\n     *\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\n     * imposed by `transfer`, making them unable to receive funds via\n     * `transfer`. {sendValue} removes this limitation.\n     *\n     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n     *\n     * IMPORTANT: because control is transferred to `recipient`, care must be\n     * taken to not create reentrancy vulnerabilities. Consider using\n     * {ReentrancyGuard} or the\n     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n     */\n    function sendValue(address payable recipient, uint256 amount) internal {\n        require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n        (bool success, ) = recipient.call{value: amount}(\"\");\n        require(success, \"Address: unable to send value, recipient may have reverted\");\n    }\n\n    /**\n     * @dev Performs a Solidity function call using a low level `call`. A\n     * plain `call` is an unsafe replacement for a function call: use this\n     * function instead.\n     *\n     * If `target` reverts with a revert reason, it is bubbled up by this\n     * function (like regular Solidity function calls).\n     *\n     * Returns the raw returned data. To convert to the expected return value,\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n     *\n     * Requirements:\n     *\n     * - `target` must be a contract.\n     * - calling `target` with `data` must not revert.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n     * `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but also transferring `value` wei to `target`.\n     *\n     * Requirements:\n     *\n     * - the calling contract must have an ETH balance of at least `value`.\n     * - the called Solidity function must be `payable`.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(\n        address target,\n        bytes memory data,\n        uint256 value,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        require(address(this).balance >= value, \"Address: insufficient balance for call\");\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n        return functionStaticCall(target, data, \"Address: low-level static call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.staticcall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.delegatecall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n     *\n     * _Available since v4.8._\n     */\n    function verifyCallResultFromTarget(\n        address target,\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        if (success) {\n            if (returndata.length == 0) {\n                // only check isContract if the call was successful and the return data is empty\n                // otherwise we already know that it was a contract\n                require(isContract(target), \"Address: call to non-contract\");\n            }\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    /**\n     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n     * revert reason or using the provided one.\n     *\n     * _Available since v4.3._\n     */\n    function verifyCallResult(\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal pure returns (bytes memory) {\n        if (success) {\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    function _revert(bytes memory returndata, string memory errorMessage) private pure {\n        // Look for revert reason and bubble it up if present\n        if (returndata.length > 0) {\n            // The easiest way to bubble the revert reason is using memory via assembly\n            /// @solidity memory-safe-assembly\n            assembly {\n                let returndata_size := mload(returndata)\n                revert(add(32, returndata), returndata_size)\n            }\n        } else {\n            revert(errorMessage);\n        }\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/security/ReentrancyGuard.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n */\nabstract contract ReentrancyGuard {\n    // Booleans are more expensive than uint256 or any type that takes up a full\n    // word because each write operation emits an extra SLOAD to first read the\n    // slot's contents, replace the bits taken up by the boolean, and then write\n    // back. This is the compiler's defense against contract upgrades and\n    // pointer aliasing, and it cannot be disabled.\n\n    // The values being non-zero value makes deployment a bit more expensive,\n    // but in exchange the refund on every call to nonReentrant will be lower in\n    // amount. Since refunds are capped to a percentage of the total\n    // transaction's gas, it is best to keep them low in cases like this one, to\n    // increase the likelihood of the full refund coming into effect.\n    uint256 private constant _NOT_ENTERED = 1;\n    uint256 private constant _ENTERED = 2;\n\n    uint256 private _status;\n\n    constructor() {\n        _status = _NOT_ENTERED;\n    }\n\n    /**\n     * @dev Prevents a contract from calling itself, directly or indirectly.\n     * Calling a `nonReentrant` function from another `nonReentrant`\n     * function is not supported. It is possible to prevent this from happening\n     * by making the `nonReentrant` function external, and making it call a\n     * `private` function that does the actual work.\n     */\n    modifier nonReentrant() {\n        _nonReentrantBefore();\n        _;\n        _nonReentrantAfter();\n    }\n\n    function _nonReentrantBefore() private {\n        // On the first call to nonReentrant, _status will be _NOT_ENTERED\n        require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\n\n        // Any calls to nonReentrant after this point will fail\n        _status = _ENTERED;\n    }\n\n    function _nonReentrantAfter() private {\n        // By storing the original value once again, a refund is triggered (see\n        // https://eips.ethereum.org/EIPS/eip-2200)\n        _status = _NOT_ENTERED;\n    }\n\n    /**\n     * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n     * `nonReentrant` function in the call stack.\n     */\n    function _reentrancyGuardEntered() internal view returns (bool) {\n        return _status == _ENTERED;\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/access/IAccessControl.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev External interface of AccessControl declared to support ERC165 detection.\n */\ninterface IAccessControl {\n    /**\n     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\n     *\n     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\n     * {RoleAdminChanged} not being emitted signaling this.\n     *\n     * _Available since v3.1._\n     */\n    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\n\n    /**\n     * @dev Emitted when `account` is granted `role`.\n     *\n     * `sender` is the account that originated the contract call, an admin role\n     * bearer except when using {AccessControl-_setupRole}.\n     */\n    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\n\n    /**\n     * @dev Emitted when `account` is revoked `role`.\n     *\n     * `sender` is the account that originated the contract call:\n     *   - if using `revokeRole`, it is the admin role bearer\n     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)\n     */\n    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\n\n    /**\n     * @dev Returns `true` if `account` has been granted `role`.\n     */\n    function hasRole(bytes32 role, address account) external view returns (bool);\n\n    /**\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\n     * {revokeRole}.\n     *\n     * To change a role's admin, use {AccessControl-_setRoleAdmin}.\n     */\n    function getRoleAdmin(bytes32 role) external view returns (bytes32);\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     */\n    function grantRole(bytes32 role, address account) external;\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     */\n    function revokeRole(bytes32 role, address account) external;\n\n    /**\n     * @dev Revokes `role` from the calling account.\n     *\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\n     * purpose is to provide a mechanism for accounts to lose their privileges\n     * if they are compromised (such as when a trusted device is misplaced).\n     *\n     * If the calling account had been granted `role`, emits a {RoleRevoked}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must be `account`.\n     */\n    function renounceRole(bytes32 role, address account) external;\n}\n"},"node_modules/@openzeppelin/contracts-v4/utils/Context.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/utils/Strings.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/Math.sol\";\nimport \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n    bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n    uint8 private constant _ADDRESS_LENGTH = 20;\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n     */\n    function toString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            uint256 length = Math.log10(value) + 1;\n            string memory buffer = new string(length);\n            uint256 ptr;\n            /// @solidity memory-safe-assembly\n            assembly {\n                ptr := add(buffer, add(32, length))\n            }\n            while (true) {\n                ptr--;\n                /// @solidity memory-safe-assembly\n                assembly {\n                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n                }\n                value /= 10;\n                if (value == 0) break;\n            }\n            return buffer;\n        }\n    }\n\n    /**\n     * @dev Converts a `int256` to its ASCII `string` decimal representation.\n     */\n    function toString(int256 value) internal pure returns (string memory) {\n        return string(abi.encodePacked(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value))));\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            return toHexString(value, Math.log256(value) + 1);\n        }\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n     */\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n        bytes memory buffer = new bytes(2 * length + 2);\n        buffer[0] = \"0\";\n        buffer[1] = \"x\";\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\n            buffer[i] = _SYMBOLS[value & 0xf];\n            value >>= 4;\n        }\n        require(value == 0, \"Strings: hex length insufficient\");\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n     */\n    function toHexString(address addr) internal pure returns (string memory) {\n        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n    }\n\n    /**\n     * @dev Returns true if the two strings are equal.\n     */\n    function equal(string memory a, string memory b) internal pure returns (bool) {\n        return keccak256(bytes(a)) == keccak256(bytes(b));\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/utils/introspection/ERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC165.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n *\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\n */\nabstract contract ERC165 is IERC165 {\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n        return interfaceId == type(IERC165).interfaceId;\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/token/ERC20/extensions/IERC20Permit.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n *\n * ==== Security Considerations\n *\n * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature\n * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be\n * considered as an intention to spend the allowance in any specific way. The second is that because permits have\n * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should\n * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be\n * generally recommended is:\n *\n * ```solidity\n * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {\n *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}\n *     doThing(..., value);\n * }\n *\n * function doThing(..., uint256 value) public {\n *     token.safeTransferFrom(msg.sender, address(this), value);\n *     ...\n * }\n * ```\n *\n * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of\n * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also\n * {SafeERC20-safeTransferFrom}).\n *\n * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so\n * contracts should have entry points that don't rely on permit.\n */\ninterface IERC20Permit {\n    /**\n     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n     * given ``owner``'s signed approval.\n     *\n     * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n     * ordering also apply here.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     * - `deadline` must be a timestamp in the future.\n     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n     * over the EIP712-formatted function arguments.\n     * - the signature must use ``owner``'s current nonce (see {nonces}).\n     *\n     * For more information on the signature format, see the\n     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n     * section].\n     *\n     * CAUTION: See Security Considerations above.\n     */\n    function permit(\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external;\n\n    /**\n     * @dev Returns the current nonce for `owner`. This value must be\n     * included whenever a signature is generated for {permit}.\n     *\n     * Every successful call to {permit} increases ``owner``'s nonce by one. This\n     * prevents a signature from being used multiple times.\n     */\n    function nonces(address owner) external view returns (uint256);\n\n    /**\n     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n     */\n    // solhint-disable-next-line func-name-mixedcase\n    function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n"},"node_modules/@openzeppelin/contracts-v4/utils/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    enum Rounding {\n        Down, // Toward negative infinity\n        Up, // Toward infinity\n        Zero // Toward zero\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b) / 2 can overflow.\n        return (a & b) + (a ^ b) / 2;\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds up instead\n     * of rounding down.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b - 1) / b can overflow on addition, so we distribute.\n        return a == 0 ? 0 : (a - 1) / b + 1;\n    }\n\n    /**\n     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n     * with further edits by Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n            // variables such that product = prod1 * 2^256 + prod0.\n            uint256 prod0; // Least significant 256 bits of the product\n            uint256 prod1; // Most significant 256 bits of the product\n            assembly {\n                let mm := mulmod(x, y, not(0))\n                prod0 := mul(x, y)\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n            }\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (prod1 == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return prod0 / denominator;\n            }\n\n            // Make sure the result is less than 2^256. Also prevents denominator == 0.\n            require(denominator > prod1, \"Math: mulDiv overflow\");\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [prod1 prod0].\n            uint256 remainder;\n            assembly {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                prod1 := sub(prod1, gt(remainder, prod0))\n                prod0 := sub(prod0, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n            // See https://cs.stackexchange.com/q/138556/92363.\n\n            // Does not overflow because the denominator cannot be zero at this stage in the function.\n            uint256 twos = denominator & (~denominator + 1);\n            assembly {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [prod1 prod0] by twos.\n                prod0 := div(prod0, twos)\n\n                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from prod1 into prod0.\n            prod0 |= prod1 * twos;\n\n            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv = 1 mod 2^4.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n            // in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2^8\n            inverse *= 2 - denominator * inverse; // inverse mod 2^16\n            inverse *= 2 - denominator * inverse; // inverse mod 2^32\n            inverse *= 2 - denominator * inverse; // inverse mod 2^64\n            inverse *= 2 - denominator * inverse; // inverse mod 2^128\n            inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n            // is no longer required.\n            result = prod0 * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        uint256 result = mulDiv(x, y, denominator);\n        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n            result += 1;\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n     *\n     * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        if (a == 0) {\n            return 0;\n        }\n\n        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n        //\n        // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n        //\n        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n        //\n        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n        uint256 result = 1 << (log2(a) >> 1);\n\n        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n        // into the expected uint128 result.\n        unchecked {\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            return min(result, a / result);\n        }\n    }\n\n    /**\n     * @notice Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 128;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 64;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 32;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 16;\n            }\n            if (value >> 8 > 0) {\n                value >>= 8;\n                result += 8;\n            }\n            if (value >> 4 > 0) {\n                value >>= 4;\n                result += 4;\n            }\n            if (value >> 2 > 0) {\n                value >>= 2;\n                result += 2;\n            }\n            if (value >> 1 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 16;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 8;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 4;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 2;\n            }\n            if (value >> 8 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);\n        }\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/utils/math/SignedMath.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n    /**\n     * @dev Returns the largest of two signed numbers.\n     */\n    function max(int256 a, int256 b) internal pure returns (int256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two signed numbers.\n     */\n    function min(int256 a, int256 b) internal pure returns (int256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two signed numbers without overflow.\n     * The result is rounded towards zero.\n     */\n    function average(int256 a, int256 b) internal pure returns (int256) {\n        // Formula from the book \"Hacker's Delight\"\n        int256 x = (a & b) + ((a ^ b) >> 1);\n        return x + (int256(uint256(x) >> 255) & (a ^ b));\n    }\n\n    /**\n     * @dev Returns the absolute unsigned value of a signed value.\n     */\n    function abs(int256 n) internal pure returns (uint256) {\n        unchecked {\n            // must be unchecked in order to support `n = type(int256).min`\n            return uint256(n >= 0 ? n : -n);\n        }\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"}},"compilation":{"language":"Solidity","compiler":"solc","compilerVersion":"0.8.30+commit.73712a01","compilerSettings":{"debug":{"revertStrings":"strip"},"viaIR":true,"metadata":{"appendCBOR":true,"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"runs":300,"enabled":true},"evmVersion":"prague","remappings":["@across-protocol/=node_modules/@across-protocol/","@ensdomains/=node_modules/@ensdomains/","@eth-optimism/=node_modules/@eth-optimism/","@gnosis.pm/=node_modules/@gnosis.pm/","@maticnetwork/=node_modules/@maticnetwork/","@matterlabs/=node_modules/@matterlabs/","@openzeppelin/=node_modules/@openzeppelin/","@scroll-tech/=node_modules/@scroll-tech/","@uniswap/=node_modules/@uniswap/","arb-bridge-eth/=node_modules/arb-bridge-eth/","arb-bridge-peripherals/=node_modules/arb-bridge-peripherals/","arbos-precompiles/=node_modules/arbos-precompiles/","base64-sol/=node_modules/base64-sol/","eth-gas-reporter/=node_modules/eth-gas-reporter/","hardhat-deploy/=node_modules/hardhat-deploy/","hardhat/=node_modules/hardhat/","@uma/=node_modules/@uma/","forge-std/=lib/forge-std/src/"]},"name":"PermissionedMulticallHandler","fullyQualifiedName":"contracts/handlers/PermissionedMulticallHandler.sol:PermissionedMulticallHandler"},"abi":[{"type":"constructor","inputs":[{"name":"admin","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"name":"CallReverted","type":"error","inputs":[{"name":"index","type":"uint256","internalType":"uint256"},{"name":"calls","type":"tuple[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"value","type":"uint256","internalType":"uint256"}],"internalType":"struct MulticallHandler.Call[]"}]},{"name":"CalldataTooShort","type":"error","inputs":[{"name":"callDataLength","type":"uint256","internalType":"uint256"},{"name":"offset","type":"uint256","internalType":"uint256"}]},{"name":"InvalidCall","type":"error","inputs":[{"name":"index","type":"uint256","internalType":"uint256"},{"name":"calls","type":"tuple[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"value","type":"uint256","internalType":"uint256"}],"internalType":"struct MulticallHandler.Call[]"}]},{"name":"NotSelf","type":"error","inputs":[]},{"name":"ReplacementCallFailed","type":"error","inputs":[{"name":"callData","type":"bytes","internalType":"bytes"}]},{"name":"CallsFailed","type":"event","inputs":[{"name":"calls","type":"tuple[]","indexed":false,"components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"value","type":"uint256","internalType":"uint256"}],"internalType":"struct MulticallHandler.Call[]"},{"name":"fallbackRecipient","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"DrainedTokens","type":"event","inputs":[{"name":"recipient","type":"address","indexed":true,"internalType":"address"},{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"RoleAdminChanged","type":"event","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"previousAdminRole","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"newAdminRole","type":"bytes32","indexed":true,"internalType":"bytes32"}],"anonymous":false},{"name":"RoleGranted","type":"event","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"sender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"RoleRevoked","type":"event","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"sender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"DEFAULT_ADMIN_ROLE","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"WHITELISTED_CALLER_ROLE","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"attemptCalls","type":"function","inputs":[{"name":"calls","type":"tuple[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"value","type":"uint256","internalType":"uint256"}],"internalType":"struct MulticallHandler.Call[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"drainLeftoverTokens","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"destination","type":"address","internalType":"address payable"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"getRoleAdmin","type":"function","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"grantRole","type":"function","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"handleV3AcrossMessage","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"relayer","type":"address","internalType":"address"},{"name":"message","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"hasRole","type":"function","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"makeCallWithBalance","type":"function","inputs":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"value","type":"uint256","internalType":"uint256"},{"name":"replacement","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"offset","type":"uint256","internalType":"uint256"}],"internalType":"struct MulticallHandler.Replacement[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"renounceRole","type":"function","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokeRole","type":"function","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"supportsInterface","type":"function","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"receive","stateMutability":"payable"}],"metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct MulticallHandler.Call[]","name":"calls","type":"tuple[]"}],"name":"CallReverted","type":"error"},{"inputs":[{"internalType":"uint256","name":"callDataLength","type":"uint256"},{"internalType":"uint256","name":"offset","type":"uint256"}],"name":"CalldataTooShort","type":"error"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct MulticallHandler.Call[]","name":"calls","type":"tuple[]"}],"name":"InvalidCall","type":"error"},{"inputs":[],"name":"NotSelf","type":"error"},{"inputs":[{"internalType":"bytes","name":"callData","type":"bytes"}],"name":"ReplacementCallFailed","type":"error"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"indexed":false,"internalType":"struct MulticallHandler.Call[]","name":"calls","type":"tuple[]"},{"indexed":true,"internalType":"address","name":"fallbackRecipient","type":"address"}],"name":"CallsFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DrainedTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELISTED_CALLER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct MulticallHandler.Call[]","name":"calls","type":"tuple[]"}],"name":"attemptCalls","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address payable","name":"destination","type":"address"}],"name":"drainLeftoverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"relayer","type":"address"},{"internalType":"bytes","name":"message","type":"bytes"}],"name":"handleV3AcrossMessage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"offset","type":"uint256"}],"internalType":"struct MulticallHandler.Replacement[]","name":"replacement","type":"tuple[]"}],"name":"makeCallWithBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"details":"Uses OpenZeppelin's AccessControl for caller permission management. Only addresses with the WHITELISTED_CALLER_ROLE can call handleV3AcrossMessage.","events":{"RoleAdminChanged(bytes32,bytes32,bytes32)":{"details":"Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this. _Available since v3.1._"},"RoleGranted(bytes32,address,address)":{"details":"Emitted when `account` is granted `role`. `sender` is the account that originated the contract call, an admin role bearer except when using {AccessControl-_setupRole}."},"RoleRevoked(bytes32,address,address)":{"details":"Emitted when `account` is revoked `role`. `sender` is the account that originated the contract call:   - if using `revokeRole`, it is the admin role bearer   - if using `renounceRole`, it is the role bearer (i.e. `account`)"}},"kind":"dev","methods":{"constructor":{"params":{"admin":"Address that will have DEFAULT_ADMIN_ROLE"}},"getRoleAdmin(bytes32)":{"details":"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."},"grantRole(bytes32,address)":{"details":"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event."},"handleV3AcrossMessage(address,uint256,address,bytes)":{"details":"Only addresses with WHITELISTED_CALLER_ROLE can call this function","params":{"amount":"The amount of tokens","message":"The encoded Instructions struct","relayer":"The relayer address","token":"The token being transferred"}},"hasRole(bytes32,address)":{"details":"Returns `true` if `account` has been granted `role`."},"makeCallWithBalance(address,bytes,uint256,(address,uint256)[])":{"details":"Modifies calldata in-place using OR operations. Target calldata positions must be zeroed out. Cannot handle negative balances, making it incompatible with DEXs requiring negative input amounts. For native balance (token = address(0)), the entire balance is used as call value.","params":{"callData":"The calldata to execute, with zero values at replacement positions","replacement":"Array of Replacement structs specifying token addresses and byte offsets for balance injection","target":"The contract address to call","value":"The native token value to send (ignored if native balance replacement is used)"}},"renounceRole(bytes32,address)":{"details":"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. May emit a {RoleRevoked} event."},"revokeRole(bytes32,address)":{"details":"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}."}},"title":"PermissionedMulticallHandler","version":1},"userdoc":{"kind":"user","methods":{"WHITELISTED_CALLER_ROLE()":{"notice":"Role identifier for whitelisted callers"},"constructor":{"notice":"Constructor that sets up the initial admin"},"handleV3AcrossMessage(address,uint256,address,bytes)":{"notice":"Overrides handleV3AcrossMessage to add caller whitelist check"},"makeCallWithBalance(address,bytes,uint256,(address,uint256)[])":{"notice":"Executes a call while replacing specified calldata offsets with current token/native balances."}},"notice":"Extension of MulticallHandler that restricts access to whitelisted callers","version":1}},"settings":{"compilationTarget":{"contracts/handlers/PermissionedMulticallHandler.sol":"PermissionedMulticallHandler"},"debug":{"revertStrings":"strip"},"evmVersion":"prague","libraries":{},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"enabled":true,"runs":300},"remappings":[":@across-protocol/=node_modules/@across-protocol/",":@ensdomains/=node_modules/@ensdomains/",":@eth-optimism/=node_modules/@eth-optimism/",":@gnosis.pm/=node_modules/@gnosis.pm/",":@maticnetwork/=node_modules/@maticnetwork/",":@matterlabs/=node_modules/@matterlabs/",":@openzeppelin/=node_modules/@openzeppelin/",":@scroll-tech/=node_modules/@scroll-tech/",":@uma/=node_modules/@uma/",":@uniswap/=node_modules/@uniswap/",":arb-bridge-eth/=node_modules/arb-bridge-eth/",":arb-bridge-peripherals/=node_modules/arb-bridge-peripherals/",":arbos-precompiles/=node_modules/arbos-precompiles/",":base64-sol/=node_modules/base64-sol/",":eth-gas-reporter/=node_modules/eth-gas-reporter/",":forge-std/=lib/forge-std/src/",":hardhat-deploy/=node_modules/hardhat-deploy/",":hardhat/=node_modules/hardhat/"],"viaIR":true},"sources":{"contracts/handlers/MulticallHandler.sol":{"content":"// SPDX-License-Identifier: GPL-3.0-only\npragma solidity ^0.8.0;\n\nimport \"../interfaces/SpokePoolMessageHandler.sol\";\nimport \"@openzeppelin/contracts-v4/token/ERC20/IERC20.sol\";\nimport \"@openzeppelin/contracts-v4/token/ERC20/utils/SafeERC20.sol\";\nimport \"@openzeppelin/contracts-v4/utils/Address.sol\";\nimport \"@openzeppelin/contracts-v4/security/ReentrancyGuard.sol\";\n\n/**\n * @title Across Multicall contract that allows a user to specify a series of calls that should be made by the handler\n * via the message field in the deposit.\n * @dev This contract makes the calls blindly. The contract will send any remaining tokens The caller should ensure that the tokens recieved by the handler are completely consumed.\n */\ncontract MulticallHandler is AcrossMessageHandler, ReentrancyGuard {\n    using SafeERC20 for IERC20;\n    using Address for address payable;\n\n    struct Call {\n        address target;\n        bytes callData;\n        uint256 value;\n    }\n\n    struct Replacement {\n        address token;\n        uint256 offset;\n    }\n\n    struct Instructions {\n        //  Calls that will be attempted.\n        Call[] calls;\n        // Where the tokens go if any part of the call fails.\n        // Leftover tokens are sent here as well if the action succeeds.\n        address fallbackRecipient;\n    }\n\n    // Emitted when one of the calls fails. Note: all calls are reverted in this case.\n    event CallsFailed(Call[] calls, address indexed fallbackRecipient);\n\n    // Emitted when there are leftover tokens that are sent to the fallbackRecipient.\n    event DrainedTokens(address indexed recipient, address indexed token, uint256 indexed amount);\n\n    // Errors\n    error CallReverted(uint256 index, Call[] calls);\n    error NotSelf();\n    error InvalidCall(uint256 index, Call[] calls);\n    error ReplacementCallFailed(bytes callData);\n    error CalldataTooShort(uint256 callDataLength, uint256 offset);\n\n    modifier onlySelf() {\n        _requireSelf();\n        _;\n    }\n\n    /**\n     * @notice Main entrypoint for the handler called by the SpokePool contract.\n     * @dev This will execute all calls encoded in the msg. The caller is responsible for making sure all tokens are\n     * drained from this contract by the end of the series of calls. If not, they can be stolen.\n     * A drainLeftoverTokens call can be included as a way to drain any remaining tokens from this contract.\n     * @param token The token address that was received from the relay\n     * @param message abi encoded array of Call structs, containing a target, callData, and value for each call that\n     * the contract should make.\n     */\n    function handleV3AcrossMessage(address token, uint256, address, bytes memory message) public virtual nonReentrant {\n        Instructions memory instructions = abi.decode(message, (Instructions));\n\n        // If there is no fallback recipient, call and revert if the inner call fails.\n        if (instructions.fallbackRecipient == address(0)) {\n            this.attemptCalls(instructions.calls);\n            return;\n        }\n\n        // Otherwise, try the call and send to the fallback recipient if any tokens are leftover.\n        (bool success, ) = address(this).call(abi.encodeCall(this.attemptCalls, (instructions.calls)));\n        if (!success) emit CallsFailed(instructions.calls, instructions.fallbackRecipient);\n\n        // If there are leftover tokens, send them to the fallback recipient regardless of execution success.\n        _drainRemainingTokens(token, payable(instructions.fallbackRecipient));\n    }\n\n    function attemptCalls(Call[] memory calls) external onlySelf {\n        uint256 length = calls.length;\n        for (uint256 i = 0; i < length; ++i) {\n            Call memory call = calls[i];\n\n            // If we are calling an EOA with calldata, assume target was incorrectly specified and revert.\n            if (call.callData.length > 0 && call.target.code.length == 0) {\n                revert InvalidCall(i, calls);\n            }\n\n            (bool success, ) = call.target.call{ value: call.value }(call.callData);\n            if (!success) revert CallReverted(i, calls);\n        }\n    }\n\n    function drainLeftoverTokens(address token, address payable destination) external onlySelf {\n        _drainRemainingTokens(token, destination);\n    }\n\n    function _drainRemainingTokens(address token, address payable destination) internal {\n        if (token != address(0)) {\n            // ERC20 token.\n            uint256 amount = IERC20(token).balanceOf(address(this));\n            if (amount > 0) {\n                IERC20(token).safeTransfer(destination, amount);\n                emit DrainedTokens(destination, token, amount);\n            }\n        } else {\n            // Send native token\n            uint256 amount = address(this).balance;\n            if (amount > 0) {\n                destination.sendValue(amount);\n            }\n        }\n    }\n\n    /**\n     * @notice Executes a call while replacing specified calldata offsets with current token/native balances.\n     * @dev Modifies calldata in-place using OR operations. Target calldata positions must be zeroed out.\n     * Cannot handle negative balances, making it incompatible with DEXs requiring negative input amounts.\n     * For native balance (token = address(0)), the entire balance is used as call value.\n     * @param target The contract address to call\n     * @param callData The calldata to execute, with zero values at replacement positions\n     * @param value The native token value to send (ignored if native balance replacement is used)\n     * @param replacement Array of Replacement structs specifying token addresses and byte offsets for balance injection\n     */\n    function makeCallWithBalance(\n        address target,\n        bytes memory callData,\n        uint256 value,\n        Replacement[] calldata replacement\n    ) external onlySelf {\n        for (uint256 i = 0; i < replacement.length; ++i) {\n            uint256 bal = 0;\n            if (replacement[i].token != address(0)) {\n                bal = IERC20(replacement[i].token).balanceOf(address(this));\n            } else {\n                bal = address(this).balance;\n\n                // If we're using the native balance, we assume that the caller wants to send the full value to the target.\n                value = bal;\n            }\n\n            // + 32 to skip the length of the calldata\n            uint256 offset = replacement[i].offset + 32;\n\n            // 32 has already been added to the offset, and the replacement value is 32 bytes long, so\n            // we don't need to add 32 here. We just directly compare the offset with the length of the calldata.\n            if (offset > callData.length) revert CalldataTooShort(callData.length, offset);\n\n            assembly (\"memory-safe\") {\n                // Get the pointer to the offset that the caller wants to overwrite.\n                let ptr := add(callData, offset)\n                // Get the current value at the offset.\n                let current := mload(ptr)\n                // Or the current value with the new value.\n                // Reasoning:\n                // - caller should 0-out any portion that they want overwritten.\n                // - if the caller is representing the balance in a smaller integer, like a uint160 or uint128,\n                //   the higher bits will be 0 and not overwrite any other data in the calldata assuming\n                //   the balance is small enough to fit in the smaller integer.\n                // - The catch: the smaller integer where they want to store the balance must end no\n                //   earlier than the 32nd byte in their calldata. Otherwise, this would require a\n                //   negative offset, which is not possible.\n                let val := or(bal, current)\n                // Store the new value at the offset.\n                mstore(ptr, val)\n            }\n        }\n\n        (bool success, ) = target.call{ value: value }(callData);\n        if (!success) revert ReplacementCallFailed(callData);\n    }\n\n    function _requireSelf() internal view {\n        // Must be called by this contract to ensure that this cannot be triggered without the explicit consent of the\n        // depositor (for a valid relay).\n        if (msg.sender != address(this)) revert NotSelf();\n    }\n\n    // Used if the caller is trying to unwrap the native token to this contract.\n    receive() external payable {}\n}\n","keccak256":"0x502beb1937884f4877ad22486db70a5854e146d84c3bbde1f24bdf73a611a881","license":"GPL-3.0-only"},"contracts/handlers/PermissionedMulticallHandler.sol":{"content":"// SPDX-License-Identifier: GPL-3.0-only\npragma solidity ^0.8.0;\n\nimport { MulticallHandler } from \"./MulticallHandler.sol\";\nimport { AccessControl } from \"@openzeppelin/contracts-v4/access/AccessControl.sol\";\n\n/**\n * @title PermissionedMulticallHandler\n * @notice Extension of MulticallHandler that restricts access to whitelisted callers\n * @dev Uses OpenZeppelin's AccessControl for caller permission management.\n * Only addresses with the WHITELISTED_CALLER_ROLE can call handleV3AcrossMessage.\n */\ncontract PermissionedMulticallHandler is MulticallHandler, AccessControl {\n    /// @notice Role identifier for whitelisted callers\n    bytes32 public constant WHITELISTED_CALLER_ROLE = keccak256(\"WHITELISTED_CALLER_ROLE\");\n\n    /**\n     * @notice Constructor that sets up the initial admin\n     * @param admin Address that will have DEFAULT_ADMIN_ROLE\n     */\n    constructor(address admin) {\n        _grantRole(DEFAULT_ADMIN_ROLE, admin);\n    }\n\n    /**\n     * @notice Overrides handleV3AcrossMessage to add caller whitelist check\n     * @dev Only addresses with WHITELISTED_CALLER_ROLE can call this function\n     * @param token The token being transferred\n     * @param amount The amount of tokens\n     * @param relayer The relayer address\n     * @param message The encoded Instructions struct\n     */\n    function handleV3AcrossMessage(\n        address token,\n        uint256 amount,\n        address relayer,\n        bytes memory message\n    ) public override onlyRole(WHITELISTED_CALLER_ROLE) {\n        // Call parent implementation\n        super.handleV3AcrossMessage(token, amount, relayer, message);\n    }\n}\n","keccak256":"0xc9e34fa983ea9bd5a0e3a856fb2faa98510758c59d13f2d33108565701aa574d","license":"GPL-3.0-only"},"contracts/interfaces/SpokePoolMessageHandler.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n// This interface is expected to be implemented by any contract that expects to receive messages from the SpokePool.\ninterface AcrossMessageHandler {\n    function handleV3AcrossMessage(\n        address tokenSent,\n        uint256 amount,\n        address relayer,\n        bytes memory message\n    ) external;\n}\n","keccak256":"0xc522e2ee6d874df26cae297fc23fc6e8b5216fc8d1901299bb147a25a8c6c259","license":"MIT"},"node_modules/@openzeppelin/contracts-v4/access/AccessControl.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IAccessControl.sol\";\nimport \"../utils/Context.sol\";\nimport \"../utils/Strings.sol\";\nimport \"../utils/introspection/ERC165.sol\";\n\n/**\n * @dev Contract module that allows children to implement role-based access\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\n * members except through off-chain means by accessing the contract event logs. Some\n * applications may benefit from on-chain enumerability, for those cases see\n * {AccessControlEnumerable}.\n *\n * Roles are referred to by their `bytes32` identifier. These should be exposed\n * in the external API and be unique. The best way to achieve this is by\n * using `public constant` hash digests:\n *\n * ```solidity\n * bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\");\n * ```\n *\n * Roles can be used to represent a set of permissions. To restrict access to a\n * function call, use {hasRole}:\n *\n * ```solidity\n * function foo() public {\n *     require(hasRole(MY_ROLE, msg.sender));\n *     ...\n * }\n * ```\n *\n * Roles can be granted and revoked dynamically via the {grantRole} and\n * {revokeRole} functions. Each role has an associated admin role, and only\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\n *\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\n * that only accounts with this role will be able to grant or revoke other\n * roles. More complex role relationships can be created by using\n * {_setRoleAdmin}.\n *\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\n * grant and revoke this role. Extra precautions should be taken to secure\n * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}\n * to enforce additional security measures for this role.\n */\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\n    struct RoleData {\n        mapping(address => bool) members;\n        bytes32 adminRole;\n    }\n\n    mapping(bytes32 => RoleData) private _roles;\n\n    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\n\n    /**\n     * @dev Modifier that checks that an account has a specific role. Reverts\n     * with a standardized message including the required role.\n     *\n     * The format of the revert reason is given by the following regular expression:\n     *\n     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\n     *\n     * _Available since v4.1._\n     */\n    modifier onlyRole(bytes32 role) {\n        _checkRole(role);\n        _;\n    }\n\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\n    }\n\n    /**\n     * @dev Returns `true` if `account` has been granted `role`.\n     */\n    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\n        return _roles[role].members[account];\n    }\n\n    /**\n     * @dev Revert with a standard message if `_msgSender()` is missing `role`.\n     * Overriding this function changes the behavior of the {onlyRole} modifier.\n     *\n     * Format of the revert message is described in {_checkRole}.\n     *\n     * _Available since v4.6._\n     */\n    function _checkRole(bytes32 role) internal view virtual {\n        _checkRole(role, _msgSender());\n    }\n\n    /**\n     * @dev Revert with a standard message if `account` is missing `role`.\n     *\n     * The format of the revert reason is given by the following regular expression:\n     *\n     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\n     */\n    function _checkRole(bytes32 role, address account) internal view virtual {\n        if (!hasRole(role, account)) {\n            revert(\n                string(\n                    abi.encodePacked(\n                        \"AccessControl: account \",\n                        Strings.toHexString(account),\n                        \" is missing role \",\n                        Strings.toHexString(uint256(role), 32)\n                    )\n                )\n            );\n        }\n    }\n\n    /**\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\n     * {revokeRole}.\n     *\n     * To change a role's admin, use {_setRoleAdmin}.\n     */\n    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\n        return _roles[role].adminRole;\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     *\n     * May emit a {RoleGranted} event.\n     */\n    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\n        _grantRole(role, account);\n    }\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\n        _revokeRole(role, account);\n    }\n\n    /**\n     * @dev Revokes `role` from the calling account.\n     *\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\n     * purpose is to provide a mechanism for accounts to lose their privileges\n     * if they are compromised (such as when a trusted device is misplaced).\n     *\n     * If the calling account had been revoked `role`, emits a {RoleRevoked}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must be `account`.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function renounceRole(bytes32 role, address account) public virtual override {\n        require(account == _msgSender(), \"AccessControl: can only renounce roles for self\");\n\n        _revokeRole(role, account);\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event. Note that unlike {grantRole}, this function doesn't perform any\n     * checks on the calling account.\n     *\n     * May emit a {RoleGranted} event.\n     *\n     * [WARNING]\n     * ====\n     * This function should only be called from the constructor when setting\n     * up the initial roles for the system.\n     *\n     * Using this function in any other way is effectively circumventing the admin\n     * system imposed by {AccessControl}.\n     * ====\n     *\n     * NOTE: This function is deprecated in favor of {_grantRole}.\n     */\n    function _setupRole(bytes32 role, address account) internal virtual {\n        _grantRole(role, account);\n    }\n\n    /**\n     * @dev Sets `adminRole` as ``role``'s admin role.\n     *\n     * Emits a {RoleAdminChanged} event.\n     */\n    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\n        bytes32 previousAdminRole = getRoleAdmin(role);\n        _roles[role].adminRole = adminRole;\n        emit RoleAdminChanged(role, previousAdminRole, adminRole);\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * Internal function without access restriction.\n     *\n     * May emit a {RoleGranted} event.\n     */\n    function _grantRole(bytes32 role, address account) internal virtual {\n        if (!hasRole(role, account)) {\n            _roles[role].members[account] = true;\n            emit RoleGranted(role, account, _msgSender());\n        }\n    }\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * Internal function without access restriction.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function _revokeRole(bytes32 role, address account) internal virtual {\n        if (hasRole(role, account)) {\n            _roles[role].members[account] = false;\n            emit RoleRevoked(role, account, _msgSender());\n        }\n    }\n}\n","keccak256":"0x0dd6e52cb394d7f5abe5dca2d4908a6be40417914720932de757de34a99ab87f","license":"MIT"},"node_modules/@openzeppelin/contracts-v4/access/IAccessControl.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev External interface of AccessControl declared to support ERC165 detection.\n */\ninterface IAccessControl {\n    /**\n     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\n     *\n     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\n     * {RoleAdminChanged} not being emitted signaling this.\n     *\n     * _Available since v3.1._\n     */\n    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\n\n    /**\n     * @dev Emitted when `account` is granted `role`.\n     *\n     * `sender` is the account that originated the contract call, an admin role\n     * bearer except when using {AccessControl-_setupRole}.\n     */\n    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\n\n    /**\n     * @dev Emitted when `account` is revoked `role`.\n     *\n     * `sender` is the account that originated the contract call:\n     *   - if using `revokeRole`, it is the admin role bearer\n     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)\n     */\n    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\n\n    /**\n     * @dev Returns `true` if `account` has been granted `role`.\n     */\n    function hasRole(bytes32 role, address account) external view returns (bool);\n\n    /**\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\n     * {revokeRole}.\n     *\n     * To change a role's admin, use {AccessControl-_setRoleAdmin}.\n     */\n    function getRoleAdmin(bytes32 role) external view returns (bytes32);\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     */\n    function grantRole(bytes32 role, address account) external;\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     */\n    function revokeRole(bytes32 role, address account) external;\n\n    /**\n     * @dev Revokes `role` from the calling account.\n     *\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\n     * purpose is to provide a mechanism for accounts to lose their privileges\n     * if they are compromised (such as when a trusted device is misplaced).\n     *\n     * If the calling account had been granted `role`, emits a {RoleRevoked}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must be `account`.\n     */\n    function renounceRole(bytes32 role, address account) external;\n}\n","keccak256":"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57","license":"MIT"},"node_modules/@openzeppelin/contracts-v4/security/ReentrancyGuard.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n */\nabstract contract ReentrancyGuard {\n    // Booleans are more expensive than uint256 or any type that takes up a full\n    // word because each write operation emits an extra SLOAD to first read the\n    // slot's contents, replace the bits taken up by the boolean, and then write\n    // back. This is the compiler's defense against contract upgrades and\n    // pointer aliasing, and it cannot be disabled.\n\n    // The values being non-zero value makes deployment a bit more expensive,\n    // but in exchange the refund on every call to nonReentrant will be lower in\n    // amount. Since refunds are capped to a percentage of the total\n    // transaction's gas, it is best to keep them low in cases like this one, to\n    // increase the likelihood of the full refund coming into effect.\n    uint256 private constant _NOT_ENTERED = 1;\n    uint256 private constant _ENTERED = 2;\n\n    uint256 private _status;\n\n    constructor() {\n        _status = _NOT_ENTERED;\n    }\n\n    /**\n     * @dev Prevents a contract from calling itself, directly or indirectly.\n     * Calling a `nonReentrant` function from another `nonReentrant`\n     * function is not supported. It is possible to prevent this from happening\n     * by making the `nonReentrant` function external, and making it call a\n     * `private` function that does the actual work.\n     */\n    modifier nonReentrant() {\n        _nonReentrantBefore();\n        _;\n        _nonReentrantAfter();\n    }\n\n    function _nonReentrantBefore() private {\n        // On the first call to nonReentrant, _status will be _NOT_ENTERED\n        require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\n\n        // Any calls to nonReentrant after this point will fail\n        _status = _ENTERED;\n    }\n\n    function _nonReentrantAfter() private {\n        // By storing the original value once again, a refund is triggered (see\n        // https://eips.ethereum.org/EIPS/eip-2200)\n        _status = _NOT_ENTERED;\n    }\n\n    /**\n     * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n     * `nonReentrant` function in the call stack.\n     */\n    function _reentrancyGuardEntered() internal view returns (bool) {\n        return _status == _ENTERED;\n    }\n}\n","keccak256":"0xa535a5df777d44e945dd24aa43a11e44b024140fc340ad0dfe42acf4002aade1","license":"MIT"},"node_modules/@openzeppelin/contracts-v4/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the amount of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the amount of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves `amount` tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Moves `amount` tokens from `from` to `to` using the\n     * allowance mechanism. `amount` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 amount) external returns (bool);\n}\n","keccak256":"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305","license":"MIT"},"node_modules/@openzeppelin/contracts-v4/token/ERC20/extensions/IERC20Permit.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n *\n * ==== Security Considerations\n *\n * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature\n * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be\n * considered as an intention to spend the allowance in any specific way. The second is that because permits have\n * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should\n * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be\n * generally recommended is:\n *\n * ```solidity\n * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {\n *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}\n *     doThing(..., value);\n * }\n *\n * function doThing(..., uint256 value) public {\n *     token.safeTransferFrom(msg.sender, address(this), value);\n *     ...\n * }\n * ```\n *\n * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of\n * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also\n * {SafeERC20-safeTransferFrom}).\n *\n * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so\n * contracts should have entry points that don't rely on permit.\n */\ninterface IERC20Permit {\n    /**\n     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n     * given ``owner``'s signed approval.\n     *\n     * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n     * ordering also apply here.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     * - `deadline` must be a timestamp in the future.\n     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n     * over the EIP712-formatted function arguments.\n     * - the signature must use ``owner``'s current nonce (see {nonces}).\n     *\n     * For more information on the signature format, see the\n     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n     * section].\n     *\n     * CAUTION: See Security Considerations above.\n     */\n    function permit(\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external;\n\n    /**\n     * @dev Returns the current nonce for `owner`. This value must be\n     * included whenever a signature is generated for {permit}.\n     *\n     * Every successful call to {permit} increases ``owner``'s nonce by one. This\n     * prevents a signature from being used multiple times.\n     */\n    function nonces(address owner) external view returns (uint256);\n\n    /**\n     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n     */\n    // solhint-disable-next-line func-name-mixedcase\n    function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n","keccak256":"0xb264c03a3442eb37a68ad620cefd1182766b58bee6cec40343480392d6b14d69","license":"MIT"},"node_modules/@openzeppelin/contracts-v4/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\nimport \"../extensions/IERC20Permit.sol\";\nimport \"../../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    using Address for address;\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n    }\n\n    /**\n     * @dev Deprecated. This function has issues similar to the ones found in\n     * {IERC20-approve}, and its usage is discouraged.\n     *\n     * Whenever possible, use {safeIncreaseAllowance} and\n     * {safeDecreaseAllowance} instead.\n     */\n    function safeApprove(IERC20 token, address spender, uint256 value) internal {\n        // safeApprove should only be called when setting an initial allowance,\n        // or when resetting it to zero. To increase and decrease it, use\n        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n        require(\n            (value == 0) || (token.allowance(address(this), spender) == 0),\n            \"SafeERC20: approve from non-zero to non-zero allowance\"\n        );\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        unchecked {\n            uint256 oldAllowance = token.allowance(address(this), spender);\n            require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\n        }\n    }\n\n    /**\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n     * to be set to zero before setting it to a non-zero value, such as USDT.\n     */\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\n        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\n\n        if (!_callOptionalReturnBool(token, approvalCall)) {\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\n            _callOptionalReturn(token, approvalCall);\n        }\n    }\n\n    /**\n     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\n     * Revert on invalid signature.\n     */\n    function safePermit(\n        IERC20Permit token,\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        uint256 nonceBefore = token.nonces(owner);\n        token.permit(owner, spender, value, deadline, v, r, s);\n        uint256 nonceAfter = token.nonces(owner);\n        require(nonceAfter == nonceBefore + 1, \"SafeERC20: permit did not succeed\");\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     */\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n        // the target address contains contract code and also asserts for success in the low-level call.\n\n        bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n        require(returndata.length == 0 || abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     *\n     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\n     */\n    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\n        // and not revert is the subcall reverts.\n\n        (bool success, bytes memory returndata) = address(token).call(data);\n        return\n            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));\n    }\n}\n","keccak256":"0xabefac93435967b4d36a4fabcbdbb918d1f0b7ae3c3d85bc30923b326c927ed1","license":"MIT"},"node_modules/@openzeppelin/contracts-v4/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n    /**\n     * @dev Returns true if `account` is a contract.\n     *\n     * [IMPORTANT]\n     * ====\n     * It is unsafe to assume that an address for which this function returns\n     * false is an externally-owned account (EOA) and not a contract.\n     *\n     * Among others, `isContract` will return false for the following\n     * types of addresses:\n     *\n     *  - an externally-owned account\n     *  - a contract in construction\n     *  - an address where a contract will be created\n     *  - an address where a contract lived, but was destroyed\n     *\n     * Furthermore, `isContract` will also return true if the target contract within\n     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n     * which only has an effect at the end of a transaction.\n     * ====\n     *\n     * [IMPORTANT]\n     * ====\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\n     *\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n     * constructor.\n     * ====\n     */\n    function isContract(address account) internal view returns (bool) {\n        // This method relies on extcodesize/address.code.length, which returns 0\n        // for contracts in construction, since the code is only stored at the end\n        // of the constructor execution.\n\n        return account.code.length > 0;\n    }\n\n    /**\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n     * `recipient`, forwarding all available gas and reverting on errors.\n     *\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\n     * imposed by `transfer`, making them unable to receive funds via\n     * `transfer`. {sendValue} removes this limitation.\n     *\n     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n     *\n     * IMPORTANT: because control is transferred to `recipient`, care must be\n     * taken to not create reentrancy vulnerabilities. Consider using\n     * {ReentrancyGuard} or the\n     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n     */\n    function sendValue(address payable recipient, uint256 amount) internal {\n        require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n        (bool success, ) = recipient.call{value: amount}(\"\");\n        require(success, \"Address: unable to send value, recipient may have reverted\");\n    }\n\n    /**\n     * @dev Performs a Solidity function call using a low level `call`. A\n     * plain `call` is an unsafe replacement for a function call: use this\n     * function instead.\n     *\n     * If `target` reverts with a revert reason, it is bubbled up by this\n     * function (like regular Solidity function calls).\n     *\n     * Returns the raw returned data. To convert to the expected return value,\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n     *\n     * Requirements:\n     *\n     * - `target` must be a contract.\n     * - calling `target` with `data` must not revert.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n     * `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but also transferring `value` wei to `target`.\n     *\n     * Requirements:\n     *\n     * - the calling contract must have an ETH balance of at least `value`.\n     * - the called Solidity function must be `payable`.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(\n        address target,\n        bytes memory data,\n        uint256 value,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        require(address(this).balance >= value, \"Address: insufficient balance for call\");\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n        return functionStaticCall(target, data, \"Address: low-level static call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.staticcall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.delegatecall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n     *\n     * _Available since v4.8._\n     */\n    function verifyCallResultFromTarget(\n        address target,\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        if (success) {\n            if (returndata.length == 0) {\n                // only check isContract if the call was successful and the return data is empty\n                // otherwise we already know that it was a contract\n                require(isContract(target), \"Address: call to non-contract\");\n            }\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    /**\n     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n     * revert reason or using the provided one.\n     *\n     * _Available since v4.3._\n     */\n    function verifyCallResult(\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal pure returns (bytes memory) {\n        if (success) {\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    function _revert(bytes memory returndata, string memory errorMessage) private pure {\n        // Look for revert reason and bubble it up if present\n        if (returndata.length > 0) {\n            // The easiest way to bubble the revert reason is using memory via assembly\n            /// @solidity memory-safe-assembly\n            assembly {\n                let returndata_size := mload(returndata)\n                revert(add(32, returndata), returndata_size)\n            }\n        } else {\n            revert(errorMessage);\n        }\n    }\n}\n","keccak256":"0x006dd67219697fe68d7fbfdea512e7c4cb64a43565ed86171d67e844982da6fa","license":"MIT"},"node_modules/@openzeppelin/contracts-v4/utils/Context.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n","keccak256":"0xa92e4fa126feb6907daa0513ddd816b2eb91f30a808de54f63c17d0e162c3439","license":"MIT"},"node_modules/@openzeppelin/contracts-v4/utils/Strings.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/Math.sol\";\nimport \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n    bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n    uint8 private constant _ADDRESS_LENGTH = 20;\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n     */\n    function toString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            uint256 length = Math.log10(value) + 1;\n            string memory buffer = new string(length);\n            uint256 ptr;\n            /// @solidity memory-safe-assembly\n            assembly {\n                ptr := add(buffer, add(32, length))\n            }\n            while (true) {\n                ptr--;\n                /// @solidity memory-safe-assembly\n                assembly {\n                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n                }\n                value /= 10;\n                if (value == 0) break;\n            }\n            return buffer;\n        }\n    }\n\n    /**\n     * @dev Converts a `int256` to its ASCII `string` decimal representation.\n     */\n    function toString(int256 value) internal pure returns (string memory) {\n        return string(abi.encodePacked(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value))));\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            return toHexString(value, Math.log256(value) + 1);\n        }\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n     */\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n        bytes memory buffer = new bytes(2 * length + 2);\n        buffer[0] = \"0\";\n        buffer[1] = \"x\";\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\n            buffer[i] = _SYMBOLS[value & 0xf];\n            value >>= 4;\n        }\n        require(value == 0, \"Strings: hex length insufficient\");\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n     */\n    function toHexString(address addr) internal pure returns (string memory) {\n        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n    }\n\n    /**\n     * @dev Returns true if the two strings are equal.\n     */\n    function equal(string memory a, string memory b) internal pure returns (bool) {\n        return keccak256(bytes(a)) == keccak256(bytes(b));\n    }\n}\n","keccak256":"0x3088eb2868e8d13d89d16670b5f8612c4ab9ff8956272837d8e90106c59c14a0","license":"MIT"},"node_modules/@openzeppelin/contracts-v4/utils/introspection/ERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC165.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n *\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\n */\nabstract contract ERC165 is IERC165 {\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n        return interfaceId == type(IERC165).interfaceId;\n    }\n}\n","keccak256":"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b","license":"MIT"},"node_modules/@openzeppelin/contracts-v4/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n","keccak256":"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1","license":"MIT"},"node_modules/@openzeppelin/contracts-v4/utils/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    enum Rounding {\n        Down, // Toward negative infinity\n        Up, // Toward infinity\n        Zero // Toward zero\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b) / 2 can overflow.\n        return (a & b) + (a ^ b) / 2;\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds up instead\n     * of rounding down.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b - 1) / b can overflow on addition, so we distribute.\n        return a == 0 ? 0 : (a - 1) / b + 1;\n    }\n\n    /**\n     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n     * with further edits by Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n            // variables such that product = prod1 * 2^256 + prod0.\n            uint256 prod0; // Least significant 256 bits of the product\n            uint256 prod1; // Most significant 256 bits of the product\n            assembly {\n                let mm := mulmod(x, y, not(0))\n                prod0 := mul(x, y)\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n            }\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (prod1 == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return prod0 / denominator;\n            }\n\n            // Make sure the result is less than 2^256. Also prevents denominator == 0.\n            require(denominator > prod1, \"Math: mulDiv overflow\");\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [prod1 prod0].\n            uint256 remainder;\n            assembly {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                prod1 := sub(prod1, gt(remainder, prod0))\n                prod0 := sub(prod0, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n            // See https://cs.stackexchange.com/q/138556/92363.\n\n            // Does not overflow because the denominator cannot be zero at this stage in the function.\n            uint256 twos = denominator & (~denominator + 1);\n            assembly {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [prod1 prod0] by twos.\n                prod0 := div(prod0, twos)\n\n                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from prod1 into prod0.\n            prod0 |= prod1 * twos;\n\n            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv = 1 mod 2^4.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n            // in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2^8\n            inverse *= 2 - denominator * inverse; // inverse mod 2^16\n            inverse *= 2 - denominator * inverse; // inverse mod 2^32\n            inverse *= 2 - denominator * inverse; // inverse mod 2^64\n            inverse *= 2 - denominator * inverse; // inverse mod 2^128\n            inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n            // is no longer required.\n            result = prod0 * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        uint256 result = mulDiv(x, y, denominator);\n        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n            result += 1;\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n     *\n     * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        if (a == 0) {\n            return 0;\n        }\n\n        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n        //\n        // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n        //\n        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n        //\n        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n        uint256 result = 1 << (log2(a) >> 1);\n\n        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n        // into the expected uint128 result.\n        unchecked {\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            return min(result, a / result);\n        }\n    }\n\n    /**\n     * @notice Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 128;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 64;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 32;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 16;\n            }\n            if (value >> 8 > 0) {\n                value >>= 8;\n                result += 8;\n            }\n            if (value >> 4 > 0) {\n                value >>= 4;\n                result += 4;\n            }\n            if (value >> 2 > 0) {\n                value >>= 2;\n                result += 2;\n            }\n            if (value >> 1 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 16;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 8;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 4;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 2;\n            }\n            if (value >> 8 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);\n        }\n    }\n}\n","keccak256":"0xe4455ac1eb7fc497bb7402579e7b4d64d928b846fce7d2b6fde06d366f21c2b3","license":"MIT"},"node_modules/@openzeppelin/contracts-v4/utils/math/SignedMath.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n    /**\n     * @dev Returns the largest of two signed numbers.\n     */\n    function max(int256 a, int256 b) internal pure returns (int256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two signed numbers.\n     */\n    function min(int256 a, int256 b) internal pure returns (int256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two signed numbers without overflow.\n     * The result is rounded towards zero.\n     */\n    function average(int256 a, int256 b) internal pure returns (int256) {\n        // Formula from the book \"Hacker's Delight\"\n        int256 x = (a & b) + ((a ^ b) >> 1);\n        return x + (int256(uint256(x) >> 255) & (a ^ b));\n    }\n\n    /**\n     * @dev Returns the absolute unsigned value of a signed value.\n     */\n    function abs(int256 n) internal pure returns (uint256) {\n        unchecked {\n            // must be unchecked in order to support `n = type(int256).min`\n            return uint256(n >= 0 ? n : -n);\n        }\n    }\n}\n","keccak256":"0xf92515413956f529d95977adc9b0567d583c6203fc31ab1c23824c35187e3ddc","license":"MIT"}},"version":1},"storageLayout":{"types":{"t_bool":{"label":"bool","encoding":"inplace","numberOfBytes":"1"},"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_bytes32":{"label":"bytes32","encoding":"inplace","numberOfBytes":"32"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_mapping(t_address,t_bool)":{"key":"t_address","label":"mapping(address => bool)","value":"t_bool","encoding":"mapping","numberOfBytes":"32"},"t_struct(RoleData)541_storage":{"label":"struct AccessControl.RoleData","members":[{"slot":"0","type":"t_mapping(t_address,t_bool)","astId":538,"label":"members","offset":0,"contract":"contracts/handlers/PermissionedMulticallHandler.sol:PermissionedMulticallHandler"},{"slot":"1","type":"t_bytes32","astId":540,"label":"adminRole","offset":0,"contract":"contracts/handlers/PermissionedMulticallHandler.sol:PermissionedMulticallHandler"}],"encoding":"inplace","numberOfBytes":"64"},"t_mapping(t_bytes32,t_struct(RoleData)541_storage)":{"key":"t_bytes32","label":"mapping(bytes32 => struct AccessControl.RoleData)","value":"t_struct(RoleData)541_storage","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_uint256","astId":921,"label":"_status","offset":0,"contract":"contracts/handlers/PermissionedMulticallHandler.sol:PermissionedMulticallHandler"},{"slot":"1","type":"t_mapping(t_bytes32,t_struct(RoleData)541_storage)","astId":546,"label":"_roles","offset":0,"contract":"contracts/handlers/PermissionedMulticallHandler.sol:PermissionedMulticallHandler"}]},"transientStorageLayout":null,"userdoc":{"kind":"user","notice":"Extension of MulticallHandler that restricts access to whitelisted callers","methods":{"constructor":{"notice":"Constructor that sets up the initial admin"},"WHITELISTED_CALLER_ROLE()":{"notice":"Role identifier for whitelisted callers"},"handleV3AcrossMessage(address,uint256,address,bytes)":{"notice":"Overrides handleV3AcrossMessage to add caller whitelist check"},"makeCallWithBalance(address,bytes,uint256,(address,uint256)[])":{"notice":"Executes a call while replacing specified calldata offsets with current token/native balances."}},"version":1},"devdoc":{"kind":"dev","title":"PermissionedMulticallHandler","events":{"RoleGranted(bytes32,address,address)":{"details":"Emitted when `account` is granted `role`. `sender` is the account that originated the contract call, an admin role bearer except when using {AccessControl-_setupRole}."},"RoleRevoked(bytes32,address,address)":{"details":"Emitted when `account` is revoked `role`. `sender` is the account that originated the contract call:   - if using `revokeRole`, it is the admin role bearer   - if using `renounceRole`, it is the role bearer (i.e. `account`)"},"RoleAdminChanged(bytes32,bytes32,bytes32)":{"details":"Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this. _Available since v3.1._"}},"details":"Uses OpenZeppelin's AccessControl for caller permission management. Only addresses with the WHITELISTED_CALLER_ROLE can call handleV3AcrossMessage.","methods":{"constructor":{"params":{"admin":"Address that will have DEFAULT_ADMIN_ROLE"}},"getRoleAdmin(bytes32)":{"details":"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."},"hasRole(bytes32,address)":{"details":"Returns `true` if `account` has been granted `role`."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}."},"grantRole(bytes32,address)":{"details":"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event."},"revokeRole(bytes32,address)":{"details":"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event."},"renounceRole(bytes32,address)":{"details":"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. May emit a {RoleRevoked} event."},"handleV3AcrossMessage(address,uint256,address,bytes)":{"params":{"token":"The token being transferred","amount":"The amount of tokens","message":"The encoded Instructions struct","relayer":"The relayer address"},"details":"Only addresses with WHITELISTED_CALLER_ROLE can call this function"},"makeCallWithBalance(address,bytes,uint256,(address,uint256)[])":{"params":{"value":"The native token value to send (ignored if native balance replacement is used)","target":"The contract address to call","callData":"The calldata to execute, with zero values at replacement positions","replacement":"Array of Replacement structs specifying token addresses and byte offsets for balance injection"},"details":"Modifies calldata in-place using OR operations. Target calldata positions must be zeroed out. Cannot handle negative balances, making it incompatible with DEXs requiring negative input amounts. For native balance (token = address(0)), the entire balance is used as call value."}},"version":1},"sourceIds":{"contracts/handlers/MulticallHandler.sol":{"id":0},"contracts/interfaces/SpokePoolMessageHandler.sol":{"id":2},"contracts/handlers/PermissionedMulticallHandler.sol":{"id":1},"node_modules/@openzeppelin/contracts-v4/utils/Address.sol":{"id":9},"node_modules/@openzeppelin/contracts-v4/utils/Context.sol":{"id":10},"node_modules/@openzeppelin/contracts-v4/utils/Strings.sol":{"id":11},"node_modules/@openzeppelin/contracts-v4/utils/math/Math.sol":{"id":14},"node_modules/@openzeppelin/contracts-v4/token/ERC20/IERC20.sol":{"id":6},"node_modules/@openzeppelin/contracts-v4/access/AccessControl.sol":{"id":3},"node_modules/@openzeppelin/contracts-v4/access/IAccessControl.sol":{"id":4},"node_modules/@openzeppelin/contracts-v4/utils/math/SignedMath.sol":{"id":15},"node_modules/@openzeppelin/contracts-v4/security/ReentrancyGuard.sol":{"id":5},"node_modules/@openzeppelin/contracts-v4/utils/introspection/ERC165.sol":{"id":12},"node_modules/@openzeppelin/contracts-v4/token/ERC20/utils/SafeERC20.sol":{"id":8},"node_modules/@openzeppelin/contracts-v4/utils/introspection/IERC165.sol":{"id":13},"node_modules/@openzeppelin/contracts-v4/token/ERC20/extensions/IERC20Permit.sol":{"id":7}},"additionalInput":null,"stdJsonInput":{"sources":{"contracts/handlers/MulticallHandler.sol":{"content":"// SPDX-License-Identifier: GPL-3.0-only\npragma solidity ^0.8.0;\n\nimport \"../interfaces/SpokePoolMessageHandler.sol\";\nimport \"@openzeppelin/contracts-v4/token/ERC20/IERC20.sol\";\nimport \"@openzeppelin/contracts-v4/token/ERC20/utils/SafeERC20.sol\";\nimport \"@openzeppelin/contracts-v4/utils/Address.sol\";\nimport \"@openzeppelin/contracts-v4/security/ReentrancyGuard.sol\";\n\n/**\n * @title Across Multicall contract that allows a user to specify a series of calls that should be made by the handler\n * via the message field in the deposit.\n * @dev This contract makes the calls blindly. The contract will send any remaining tokens The caller should ensure that the tokens recieved by the handler are completely consumed.\n */\ncontract MulticallHandler is AcrossMessageHandler, ReentrancyGuard {\n    using SafeERC20 for IERC20;\n    using Address for address payable;\n\n    struct Call {\n        address target;\n        bytes callData;\n        uint256 value;\n    }\n\n    struct Replacement {\n        address token;\n        uint256 offset;\n    }\n\n    struct Instructions {\n        //  Calls that will be attempted.\n        Call[] calls;\n        // Where the tokens go if any part of the call fails.\n        // Leftover tokens are sent here as well if the action succeeds.\n        address fallbackRecipient;\n    }\n\n    // Emitted when one of the calls fails. Note: all calls are reverted in this case.\n    event CallsFailed(Call[] calls, address indexed fallbackRecipient);\n\n    // Emitted when there are leftover tokens that are sent to the fallbackRecipient.\n    event DrainedTokens(address indexed recipient, address indexed token, uint256 indexed amount);\n\n    // Errors\n    error CallReverted(uint256 index, Call[] calls);\n    error NotSelf();\n    error InvalidCall(uint256 index, Call[] calls);\n    error ReplacementCallFailed(bytes callData);\n    error CalldataTooShort(uint256 callDataLength, uint256 offset);\n\n    modifier onlySelf() {\n        _requireSelf();\n        _;\n    }\n\n    /**\n     * @notice Main entrypoint for the handler called by the SpokePool contract.\n     * @dev This will execute all calls encoded in the msg. The caller is responsible for making sure all tokens are\n     * drained from this contract by the end of the series of calls. If not, they can be stolen.\n     * A drainLeftoverTokens call can be included as a way to drain any remaining tokens from this contract.\n     * @param token The token address that was received from the relay\n     * @param message abi encoded array of Call structs, containing a target, callData, and value for each call that\n     * the contract should make.\n     */\n    function handleV3AcrossMessage(address token, uint256, address, bytes memory message) public virtual nonReentrant {\n        Instructions memory instructions = abi.decode(message, (Instructions));\n\n        // If there is no fallback recipient, call and revert if the inner call fails.\n        if (instructions.fallbackRecipient == address(0)) {\n            this.attemptCalls(instructions.calls);\n            return;\n        }\n\n        // Otherwise, try the call and send to the fallback recipient if any tokens are leftover.\n        (bool success, ) = address(this).call(abi.encodeCall(this.attemptCalls, (instructions.calls)));\n        if (!success) emit CallsFailed(instructions.calls, instructions.fallbackRecipient);\n\n        // If there are leftover tokens, send them to the fallback recipient regardless of execution success.\n        _drainRemainingTokens(token, payable(instructions.fallbackRecipient));\n    }\n\n    function attemptCalls(Call[] memory calls) external onlySelf {\n        uint256 length = calls.length;\n        for (uint256 i = 0; i < length; ++i) {\n            Call memory call = calls[i];\n\n            // If we are calling an EOA with calldata, assume target was incorrectly specified and revert.\n            if (call.callData.length > 0 && call.target.code.length == 0) {\n                revert InvalidCall(i, calls);\n            }\n\n            (bool success, ) = call.target.call{ value: call.value }(call.callData);\n            if (!success) revert CallReverted(i, calls);\n        }\n    }\n\n    function drainLeftoverTokens(address token, address payable destination) external onlySelf {\n        _drainRemainingTokens(token, destination);\n    }\n\n    function _drainRemainingTokens(address token, address payable destination) internal {\n        if (token != address(0)) {\n            // ERC20 token.\n            uint256 amount = IERC20(token).balanceOf(address(this));\n            if (amount > 0) {\n                IERC20(token).safeTransfer(destination, amount);\n                emit DrainedTokens(destination, token, amount);\n            }\n        } else {\n            // Send native token\n            uint256 amount = address(this).balance;\n            if (amount > 0) {\n                destination.sendValue(amount);\n            }\n        }\n    }\n\n    /**\n     * @notice Executes a call while replacing specified calldata offsets with current token/native balances.\n     * @dev Modifies calldata in-place using OR operations. Target calldata positions must be zeroed out.\n     * Cannot handle negative balances, making it incompatible with DEXs requiring negative input amounts.\n     * For native balance (token = address(0)), the entire balance is used as call value.\n     * @param target The contract address to call\n     * @param callData The calldata to execute, with zero values at replacement positions\n     * @param value The native token value to send (ignored if native balance replacement is used)\n     * @param replacement Array of Replacement structs specifying token addresses and byte offsets for balance injection\n     */\n    function makeCallWithBalance(\n        address target,\n        bytes memory callData,\n        uint256 value,\n        Replacement[] calldata replacement\n    ) external onlySelf {\n        for (uint256 i = 0; i < replacement.length; ++i) {\n            uint256 bal = 0;\n            if (replacement[i].token != address(0)) {\n                bal = IERC20(replacement[i].token).balanceOf(address(this));\n            } else {\n                bal = address(this).balance;\n\n                // If we're using the native balance, we assume that the caller wants to send the full value to the target.\n                value = bal;\n            }\n\n            // + 32 to skip the length of the calldata\n            uint256 offset = replacement[i].offset + 32;\n\n            // 32 has already been added to the offset, and the replacement value is 32 bytes long, so\n            // we don't need to add 32 here. We just directly compare the offset with the length of the calldata.\n            if (offset > callData.length) revert CalldataTooShort(callData.length, offset);\n\n            assembly (\"memory-safe\") {\n                // Get the pointer to the offset that the caller wants to overwrite.\n                let ptr := add(callData, offset)\n                // Get the current value at the offset.\n                let current := mload(ptr)\n                // Or the current value with the new value.\n                // Reasoning:\n                // - caller should 0-out any portion that they want overwritten.\n                // - if the caller is representing the balance in a smaller integer, like a uint160 or uint128,\n                //   the higher bits will be 0 and not overwrite any other data in the calldata assuming\n                //   the balance is small enough to fit in the smaller integer.\n                // - The catch: the smaller integer where they want to store the balance must end no\n                //   earlier than the 32nd byte in their calldata. Otherwise, this would require a\n                //   negative offset, which is not possible.\n                let val := or(bal, current)\n                // Store the new value at the offset.\n                mstore(ptr, val)\n            }\n        }\n\n        (bool success, ) = target.call{ value: value }(callData);\n        if (!success) revert ReplacementCallFailed(callData);\n    }\n\n    function _requireSelf() internal view {\n        // Must be called by this contract to ensure that this cannot be triggered without the explicit consent of the\n        // depositor (for a valid relay).\n        if (msg.sender != address(this)) revert NotSelf();\n    }\n\n    // Used if the caller is trying to unwrap the native token to this contract.\n    receive() external payable {}\n}\n"},"contracts/interfaces/SpokePoolMessageHandler.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n// This interface is expected to be implemented by any contract that expects to receive messages from the SpokePool.\ninterface AcrossMessageHandler {\n    function handleV3AcrossMessage(\n        address tokenSent,\n        uint256 amount,\n        address relayer,\n        bytes memory message\n    ) external;\n}\n"},"contracts/handlers/PermissionedMulticallHandler.sol":{"content":"// SPDX-License-Identifier: GPL-3.0-only\npragma solidity ^0.8.0;\n\nimport { MulticallHandler } from \"./MulticallHandler.sol\";\nimport { AccessControl } from \"@openzeppelin/contracts-v4/access/AccessControl.sol\";\n\n/**\n * @title PermissionedMulticallHandler\n * @notice Extension of MulticallHandler that restricts access to whitelisted callers\n * @dev Uses OpenZeppelin's AccessControl for caller permission management.\n * Only addresses with the WHITELISTED_CALLER_ROLE can call handleV3AcrossMessage.\n */\ncontract PermissionedMulticallHandler is MulticallHandler, AccessControl {\n    /// @notice Role identifier for whitelisted callers\n    bytes32 public constant WHITELISTED_CALLER_ROLE = keccak256(\"WHITELISTED_CALLER_ROLE\");\n\n    /**\n     * @notice Constructor that sets up the initial admin\n     * @param admin Address that will have DEFAULT_ADMIN_ROLE\n     */\n    constructor(address admin) {\n        _grantRole(DEFAULT_ADMIN_ROLE, admin);\n    }\n\n    /**\n     * @notice Overrides handleV3AcrossMessage to add caller whitelist check\n     * @dev Only addresses with WHITELISTED_CALLER_ROLE can call this function\n     * @param token The token being transferred\n     * @param amount The amount of tokens\n     * @param relayer The relayer address\n     * @param message The encoded Instructions struct\n     */\n    function handleV3AcrossMessage(\n        address token,\n        uint256 amount,\n        address relayer,\n        bytes memory message\n    ) public override onlyRole(WHITELISTED_CALLER_ROLE) {\n        // Call parent implementation\n        super.handleV3AcrossMessage(token, amount, relayer, message);\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n    /**\n     * @dev Returns true if `account` is a contract.\n     *\n     * [IMPORTANT]\n     * ====\n     * It is unsafe to assume that an address for which this function returns\n     * false is an externally-owned account (EOA) and not a contract.\n     *\n     * Among others, `isContract` will return false for the following\n     * types of addresses:\n     *\n     *  - an externally-owned account\n     *  - a contract in construction\n     *  - an address where a contract will be created\n     *  - an address where a contract lived, but was destroyed\n     *\n     * Furthermore, `isContract` will also return true if the target contract within\n     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n     * which only has an effect at the end of a transaction.\n     * ====\n     *\n     * [IMPORTANT]\n     * ====\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\n     *\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n     * constructor.\n     * ====\n     */\n    function isContract(address account) internal view returns (bool) {\n        // This method relies on extcodesize/address.code.length, which returns 0\n        // for contracts in construction, since the code is only stored at the end\n        // of the constructor execution.\n\n        return account.code.length > 0;\n    }\n\n    /**\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n     * `recipient`, forwarding all available gas and reverting on errors.\n     *\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\n     * imposed by `transfer`, making them unable to receive funds via\n     * `transfer`. {sendValue} removes this limitation.\n     *\n     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n     *\n     * IMPORTANT: because control is transferred to `recipient`, care must be\n     * taken to not create reentrancy vulnerabilities. Consider using\n     * {ReentrancyGuard} or the\n     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n     */\n    function sendValue(address payable recipient, uint256 amount) internal {\n        require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n        (bool success, ) = recipient.call{value: amount}(\"\");\n        require(success, \"Address: unable to send value, recipient may have reverted\");\n    }\n\n    /**\n     * @dev Performs a Solidity function call using a low level `call`. A\n     * plain `call` is an unsafe replacement for a function call: use this\n     * function instead.\n     *\n     * If `target` reverts with a revert reason, it is bubbled up by this\n     * function (like regular Solidity function calls).\n     *\n     * Returns the raw returned data. To convert to the expected return value,\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n     *\n     * Requirements:\n     *\n     * - `target` must be a contract.\n     * - calling `target` with `data` must not revert.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n     * `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but also transferring `value` wei to `target`.\n     *\n     * Requirements:\n     *\n     * - the calling contract must have an ETH balance of at least `value`.\n     * - the called Solidity function must be `payable`.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(\n        address target,\n        bytes memory data,\n        uint256 value,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        require(address(this).balance >= value, \"Address: insufficient balance for call\");\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n        return functionStaticCall(target, data, \"Address: low-level static call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.staticcall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.delegatecall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n     *\n     * _Available since v4.8._\n     */\n    function verifyCallResultFromTarget(\n        address target,\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        if (success) {\n            if (returndata.length == 0) {\n                // only check isContract if the call was successful and the return data is empty\n                // otherwise we already know that it was a contract\n                require(isContract(target), \"Address: call to non-contract\");\n            }\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    /**\n     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n     * revert reason or using the provided one.\n     *\n     * _Available since v4.3._\n     */\n    function verifyCallResult(\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal pure returns (bytes memory) {\n        if (success) {\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    function _revert(bytes memory returndata, string memory errorMessage) private pure {\n        // Look for revert reason and bubble it up if present\n        if (returndata.length > 0) {\n            // The easiest way to bubble the revert reason is using memory via assembly\n            /// @solidity memory-safe-assembly\n            assembly {\n                let returndata_size := mload(returndata)\n                revert(add(32, returndata), returndata_size)\n            }\n        } else {\n            revert(errorMessage);\n        }\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/utils/Context.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/utils/Strings.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/Math.sol\";\nimport \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n    bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n    uint8 private constant _ADDRESS_LENGTH = 20;\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n     */\n    function toString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            uint256 length = Math.log10(value) + 1;\n            string memory buffer = new string(length);\n            uint256 ptr;\n            /// @solidity memory-safe-assembly\n            assembly {\n                ptr := add(buffer, add(32, length))\n            }\n            while (true) {\n                ptr--;\n                /// @solidity memory-safe-assembly\n                assembly {\n                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n                }\n                value /= 10;\n                if (value == 0) break;\n            }\n            return buffer;\n        }\n    }\n\n    /**\n     * @dev Converts a `int256` to its ASCII `string` decimal representation.\n     */\n    function toString(int256 value) internal pure returns (string memory) {\n        return string(abi.encodePacked(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value))));\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            return toHexString(value, Math.log256(value) + 1);\n        }\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n     */\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n        bytes memory buffer = new bytes(2 * length + 2);\n        buffer[0] = \"0\";\n        buffer[1] = \"x\";\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\n            buffer[i] = _SYMBOLS[value & 0xf];\n            value >>= 4;\n        }\n        require(value == 0, \"Strings: hex length insufficient\");\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n     */\n    function toHexString(address addr) internal pure returns (string memory) {\n        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n    }\n\n    /**\n     * @dev Returns true if the two strings are equal.\n     */\n    function equal(string memory a, string memory b) internal pure returns (bool) {\n        return keccak256(bytes(a)) == keccak256(bytes(b));\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/utils/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    enum Rounding {\n        Down, // Toward negative infinity\n        Up, // Toward infinity\n        Zero // Toward zero\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b) / 2 can overflow.\n        return (a & b) + (a ^ b) / 2;\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds up instead\n     * of rounding down.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b - 1) / b can overflow on addition, so we distribute.\n        return a == 0 ? 0 : (a - 1) / b + 1;\n    }\n\n    /**\n     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n     * with further edits by Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n            // variables such that product = prod1 * 2^256 + prod0.\n            uint256 prod0; // Least significant 256 bits of the product\n            uint256 prod1; // Most significant 256 bits of the product\n            assembly {\n                let mm := mulmod(x, y, not(0))\n                prod0 := mul(x, y)\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n            }\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (prod1 == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return prod0 / denominator;\n            }\n\n            // Make sure the result is less than 2^256. Also prevents denominator == 0.\n            require(denominator > prod1, \"Math: mulDiv overflow\");\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [prod1 prod0].\n            uint256 remainder;\n            assembly {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                prod1 := sub(prod1, gt(remainder, prod0))\n                prod0 := sub(prod0, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n            // See https://cs.stackexchange.com/q/138556/92363.\n\n            // Does not overflow because the denominator cannot be zero at this stage in the function.\n            uint256 twos = denominator & (~denominator + 1);\n            assembly {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [prod1 prod0] by twos.\n                prod0 := div(prod0, twos)\n\n                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from prod1 into prod0.\n            prod0 |= prod1 * twos;\n\n            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv = 1 mod 2^4.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n            // in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2^8\n            inverse *= 2 - denominator * inverse; // inverse mod 2^16\n            inverse *= 2 - denominator * inverse; // inverse mod 2^32\n            inverse *= 2 - denominator * inverse; // inverse mod 2^64\n            inverse *= 2 - denominator * inverse; // inverse mod 2^128\n            inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n            // is no longer required.\n            result = prod0 * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        uint256 result = mulDiv(x, y, denominator);\n        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n            result += 1;\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n     *\n     * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        if (a == 0) {\n            return 0;\n        }\n\n        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n        //\n        // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n        //\n        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n        //\n        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n        uint256 result = 1 << (log2(a) >> 1);\n\n        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n        // into the expected uint128 result.\n        unchecked {\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            return min(result, a / result);\n        }\n    }\n\n    /**\n     * @notice Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 128;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 64;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 32;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 16;\n            }\n            if (value >> 8 > 0) {\n                value >>= 8;\n                result += 8;\n            }\n            if (value >> 4 > 0) {\n                value >>= 4;\n                result += 4;\n            }\n            if (value >> 2 > 0) {\n                value >>= 2;\n                result += 2;\n            }\n            if (value >> 1 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 16;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 8;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 4;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 2;\n            }\n            if (value >> 8 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);\n        }\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the amount of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the amount of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves `amount` tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Moves `amount` tokens from `from` to `to` using the\n     * allowance mechanism. `amount` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 amount) external returns (bool);\n}\n"},"node_modules/@openzeppelin/contracts-v4/access/AccessControl.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IAccessControl.sol\";\nimport \"../utils/Context.sol\";\nimport \"../utils/Strings.sol\";\nimport \"../utils/introspection/ERC165.sol\";\n\n/**\n * @dev Contract module that allows children to implement role-based access\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\n * members except through off-chain means by accessing the contract event logs. Some\n * applications may benefit from on-chain enumerability, for those cases see\n * {AccessControlEnumerable}.\n *\n * Roles are referred to by their `bytes32` identifier. These should be exposed\n * in the external API and be unique. The best way to achieve this is by\n * using `public constant` hash digests:\n *\n * ```solidity\n * bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\");\n * ```\n *\n * Roles can be used to represent a set of permissions. To restrict access to a\n * function call, use {hasRole}:\n *\n * ```solidity\n * function foo() public {\n *     require(hasRole(MY_ROLE, msg.sender));\n *     ...\n * }\n * ```\n *\n * Roles can be granted and revoked dynamically via the {grantRole} and\n * {revokeRole} functions. Each role has an associated admin role, and only\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\n *\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\n * that only accounts with this role will be able to grant or revoke other\n * roles. More complex role relationships can be created by using\n * {_setRoleAdmin}.\n *\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\n * grant and revoke this role. Extra precautions should be taken to secure\n * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}\n * to enforce additional security measures for this role.\n */\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\n    struct RoleData {\n        mapping(address => bool) members;\n        bytes32 adminRole;\n    }\n\n    mapping(bytes32 => RoleData) private _roles;\n\n    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\n\n    /**\n     * @dev Modifier that checks that an account has a specific role. Reverts\n     * with a standardized message including the required role.\n     *\n     * The format of the revert reason is given by the following regular expression:\n     *\n     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\n     *\n     * _Available since v4.1._\n     */\n    modifier onlyRole(bytes32 role) {\n        _checkRole(role);\n        _;\n    }\n\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\n    }\n\n    /**\n     * @dev Returns `true` if `account` has been granted `role`.\n     */\n    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\n        return _roles[role].members[account];\n    }\n\n    /**\n     * @dev Revert with a standard message if `_msgSender()` is missing `role`.\n     * Overriding this function changes the behavior of the {onlyRole} modifier.\n     *\n     * Format of the revert message is described in {_checkRole}.\n     *\n     * _Available since v4.6._\n     */\n    function _checkRole(bytes32 role) internal view virtual {\n        _checkRole(role, _msgSender());\n    }\n\n    /**\n     * @dev Revert with a standard message if `account` is missing `role`.\n     *\n     * The format of the revert reason is given by the following regular expression:\n     *\n     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\n     */\n    function _checkRole(bytes32 role, address account) internal view virtual {\n        if (!hasRole(role, account)) {\n            revert(\n                string(\n                    abi.encodePacked(\n                        \"AccessControl: account \",\n                        Strings.toHexString(account),\n                        \" is missing role \",\n                        Strings.toHexString(uint256(role), 32)\n                    )\n                )\n            );\n        }\n    }\n\n    /**\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\n     * {revokeRole}.\n     *\n     * To change a role's admin, use {_setRoleAdmin}.\n     */\n    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\n        return _roles[role].adminRole;\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     *\n     * May emit a {RoleGranted} event.\n     */\n    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\n        _grantRole(role, account);\n    }\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\n        _revokeRole(role, account);\n    }\n\n    /**\n     * @dev Revokes `role` from the calling account.\n     *\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\n     * purpose is to provide a mechanism for accounts to lose their privileges\n     * if they are compromised (such as when a trusted device is misplaced).\n     *\n     * If the calling account had been revoked `role`, emits a {RoleRevoked}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must be `account`.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function renounceRole(bytes32 role, address account) public virtual override {\n        require(account == _msgSender(), \"AccessControl: can only renounce roles for self\");\n\n        _revokeRole(role, account);\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event. Note that unlike {grantRole}, this function doesn't perform any\n     * checks on the calling account.\n     *\n     * May emit a {RoleGranted} event.\n     *\n     * [WARNING]\n     * ====\n     * This function should only be called from the constructor when setting\n     * up the initial roles for the system.\n     *\n     * Using this function in any other way is effectively circumventing the admin\n     * system imposed by {AccessControl}.\n     * ====\n     *\n     * NOTE: This function is deprecated in favor of {_grantRole}.\n     */\n    function _setupRole(bytes32 role, address account) internal virtual {\n        _grantRole(role, account);\n    }\n\n    /**\n     * @dev Sets `adminRole` as ``role``'s admin role.\n     *\n     * Emits a {RoleAdminChanged} event.\n     */\n    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\n        bytes32 previousAdminRole = getRoleAdmin(role);\n        _roles[role].adminRole = adminRole;\n        emit RoleAdminChanged(role, previousAdminRole, adminRole);\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * Internal function without access restriction.\n     *\n     * May emit a {RoleGranted} event.\n     */\n    function _grantRole(bytes32 role, address account) internal virtual {\n        if (!hasRole(role, account)) {\n            _roles[role].members[account] = true;\n            emit RoleGranted(role, account, _msgSender());\n        }\n    }\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * Internal function without access restriction.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function _revokeRole(bytes32 role, address account) internal virtual {\n        if (hasRole(role, account)) {\n            _roles[role].members[account] = false;\n            emit RoleRevoked(role, account, _msgSender());\n        }\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/access/IAccessControl.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev External interface of AccessControl declared to support ERC165 detection.\n */\ninterface IAccessControl {\n    /**\n     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\n     *\n     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\n     * {RoleAdminChanged} not being emitted signaling this.\n     *\n     * _Available since v3.1._\n     */\n    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\n\n    /**\n     * @dev Emitted when `account` is granted `role`.\n     *\n     * `sender` is the account that originated the contract call, an admin role\n     * bearer except when using {AccessControl-_setupRole}.\n     */\n    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\n\n    /**\n     * @dev Emitted when `account` is revoked `role`.\n     *\n     * `sender` is the account that originated the contract call:\n     *   - if using `revokeRole`, it is the admin role bearer\n     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)\n     */\n    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\n\n    /**\n     * @dev Returns `true` if `account` has been granted `role`.\n     */\n    function hasRole(bytes32 role, address account) external view returns (bool);\n\n    /**\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\n     * {revokeRole}.\n     *\n     * To change a role's admin, use {AccessControl-_setRoleAdmin}.\n     */\n    function getRoleAdmin(bytes32 role) external view returns (bytes32);\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     */\n    function grantRole(bytes32 role, address account) external;\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     */\n    function revokeRole(bytes32 role, address account) external;\n\n    /**\n     * @dev Revokes `role` from the calling account.\n     *\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\n     * purpose is to provide a mechanism for accounts to lose their privileges\n     * if they are compromised (such as when a trusted device is misplaced).\n     *\n     * If the calling account had been granted `role`, emits a {RoleRevoked}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must be `account`.\n     */\n    function renounceRole(bytes32 role, address account) external;\n}\n"},"node_modules/@openzeppelin/contracts-v4/utils/math/SignedMath.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n    /**\n     * @dev Returns the largest of two signed numbers.\n     */\n    function max(int256 a, int256 b) internal pure returns (int256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two signed numbers.\n     */\n    function min(int256 a, int256 b) internal pure returns (int256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two signed numbers without overflow.\n     * The result is rounded towards zero.\n     */\n    function average(int256 a, int256 b) internal pure returns (int256) {\n        // Formula from the book \"Hacker's Delight\"\n        int256 x = (a & b) + ((a ^ b) >> 1);\n        return x + (int256(uint256(x) >> 255) & (a ^ b));\n    }\n\n    /**\n     * @dev Returns the absolute unsigned value of a signed value.\n     */\n    function abs(int256 n) internal pure returns (uint256) {\n        unchecked {\n            // must be unchecked in order to support `n = type(int256).min`\n            return uint256(n >= 0 ? n : -n);\n        }\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/security/ReentrancyGuard.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n */\nabstract contract ReentrancyGuard {\n    // Booleans are more expensive than uint256 or any type that takes up a full\n    // word because each write operation emits an extra SLOAD to first read the\n    // slot's contents, replace the bits taken up by the boolean, and then write\n    // back. This is the compiler's defense against contract upgrades and\n    // pointer aliasing, and it cannot be disabled.\n\n    // The values being non-zero value makes deployment a bit more expensive,\n    // but in exchange the refund on every call to nonReentrant will be lower in\n    // amount. Since refunds are capped to a percentage of the total\n    // transaction's gas, it is best to keep them low in cases like this one, to\n    // increase the likelihood of the full refund coming into effect.\n    uint256 private constant _NOT_ENTERED = 1;\n    uint256 private constant _ENTERED = 2;\n\n    uint256 private _status;\n\n    constructor() {\n        _status = _NOT_ENTERED;\n    }\n\n    /**\n     * @dev Prevents a contract from calling itself, directly or indirectly.\n     * Calling a `nonReentrant` function from another `nonReentrant`\n     * function is not supported. It is possible to prevent this from happening\n     * by making the `nonReentrant` function external, and making it call a\n     * `private` function that does the actual work.\n     */\n    modifier nonReentrant() {\n        _nonReentrantBefore();\n        _;\n        _nonReentrantAfter();\n    }\n\n    function _nonReentrantBefore() private {\n        // On the first call to nonReentrant, _status will be _NOT_ENTERED\n        require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\n\n        // Any calls to nonReentrant after this point will fail\n        _status = _ENTERED;\n    }\n\n    function _nonReentrantAfter() private {\n        // By storing the original value once again, a refund is triggered (see\n        // https://eips.ethereum.org/EIPS/eip-2200)\n        _status = _NOT_ENTERED;\n    }\n\n    /**\n     * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n     * `nonReentrant` function in the call stack.\n     */\n    function _reentrancyGuardEntered() internal view returns (bool) {\n        return _status == _ENTERED;\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/utils/introspection/ERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC165.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n *\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\n */\nabstract contract ERC165 is IERC165 {\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n        return interfaceId == type(IERC165).interfaceId;\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\nimport \"../extensions/IERC20Permit.sol\";\nimport \"../../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    using Address for address;\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n    }\n\n    /**\n     * @dev Deprecated. This function has issues similar to the ones found in\n     * {IERC20-approve}, and its usage is discouraged.\n     *\n     * Whenever possible, use {safeIncreaseAllowance} and\n     * {safeDecreaseAllowance} instead.\n     */\n    function safeApprove(IERC20 token, address spender, uint256 value) internal {\n        // safeApprove should only be called when setting an initial allowance,\n        // or when resetting it to zero. To increase and decrease it, use\n        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n        require(\n            (value == 0) || (token.allowance(address(this), spender) == 0),\n            \"SafeERC20: approve from non-zero to non-zero allowance\"\n        );\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        unchecked {\n            uint256 oldAllowance = token.allowance(address(this), spender);\n            require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\n        }\n    }\n\n    /**\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n     * to be set to zero before setting it to a non-zero value, such as USDT.\n     */\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\n        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\n\n        if (!_callOptionalReturnBool(token, approvalCall)) {\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\n            _callOptionalReturn(token, approvalCall);\n        }\n    }\n\n    /**\n     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\n     * Revert on invalid signature.\n     */\n    function safePermit(\n        IERC20Permit token,\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        uint256 nonceBefore = token.nonces(owner);\n        token.permit(owner, spender, value, deadline, v, r, s);\n        uint256 nonceAfter = token.nonces(owner);\n        require(nonceAfter == nonceBefore + 1, \"SafeERC20: permit did not succeed\");\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     */\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n        // the target address contains contract code and also asserts for success in the low-level call.\n\n        bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n        require(returndata.length == 0 || abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     *\n     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\n     */\n    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\n        // and not revert is the subcall reverts.\n\n        (bool success, bytes memory returndata) = address(token).call(data);\n        return\n            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));\n    }\n}\n"},"node_modules/@openzeppelin/contracts-v4/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},"node_modules/@openzeppelin/contracts-v4/token/ERC20/extensions/IERC20Permit.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n *\n * ==== Security Considerations\n *\n * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature\n * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be\n * considered as an intention to spend the allowance in any specific way. The second is that because permits have\n * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should\n * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be\n * generally recommended is:\n *\n * ```solidity\n * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {\n *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}\n *     doThing(..., value);\n * }\n *\n * function doThing(..., uint256 value) public {\n *     token.safeTransferFrom(msg.sender, address(this), value);\n *     ...\n * }\n * ```\n *\n * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of\n * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also\n * {SafeERC20-safeTransferFrom}).\n *\n * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so\n * contracts should have entry points that don't rely on permit.\n */\ninterface IERC20Permit {\n    /**\n     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n     * given ``owner``'s signed approval.\n     *\n     * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n     * ordering also apply here.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     * - `deadline` must be a timestamp in the future.\n     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n     * over the EIP712-formatted function arguments.\n     * - the signature must use ``owner``'s current nonce (see {nonces}).\n     *\n     * For more information on the signature format, see the\n     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n     * section].\n     *\n     * CAUTION: See Security Considerations above.\n     */\n    function permit(\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external;\n\n    /**\n     * @dev Returns the current nonce for `owner`. This value must be\n     * included whenever a signature is generated for {permit}.\n     *\n     * Every successful call to {permit} increases ``owner``'s nonce by one. This\n     * prevents a signature from being used multiple times.\n     */\n    function nonces(address owner) external view returns (uint256);\n\n    /**\n     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n     */\n    // solhint-disable-next-line func-name-mixedcase\n    function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n"}},"language":"Solidity","settings":{"debug":{"revertStrings":"strip"},"viaIR":true,"metadata":{"appendCBOR":true,"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"runs":300,"enabled":true},"evmVersion":"prague","remappings":["@across-protocol/=node_modules/@across-protocol/","@ensdomains/=node_modules/@ensdomains/","@eth-optimism/=node_modules/@eth-optimism/","@gnosis.pm/=node_modules/@gnosis.pm/","@maticnetwork/=node_modules/@maticnetwork/","@matterlabs/=node_modules/@matterlabs/","@openzeppelin/=node_modules/@openzeppelin/","@scroll-tech/=node_modules/@scroll-tech/","@uniswap/=node_modules/@uniswap/","arb-bridge-eth/=node_modules/arb-bridge-eth/","arb-bridge-peripherals/=node_modules/arb-bridge-peripherals/","arbos-precompiles/=node_modules/arbos-precompiles/","base64-sol/=node_modules/base64-sol/","eth-gas-reporter/=node_modules/eth-gas-reporter/","hardhat-deploy/=node_modules/hardhat-deploy/","hardhat/=node_modules/hardhat/","@uma/=node_modules/@uma/","forge-std/=lib/forge-std/src/"]}},"stdJsonOutput":{"sources":{"contracts/handlers/MulticallHandler.sol":{"id":0},"contracts/interfaces/SpokePoolMessageHandler.sol":{"id":2},"contracts/handlers/PermissionedMulticallHandler.sol":{"id":1},"node_modules/@openzeppelin/contracts-v4/utils/Address.sol":{"id":9},"node_modules/@openzeppelin/contracts-v4/utils/Context.sol":{"id":10},"node_modules/@openzeppelin/contracts-v4/utils/Strings.sol":{"id":11},"node_modules/@openzeppelin/contracts-v4/utils/math/Math.sol":{"id":14},"node_modules/@openzeppelin/contracts-v4/token/ERC20/IERC20.sol":{"id":6},"node_modules/@openzeppelin/contracts-v4/access/AccessControl.sol":{"id":3},"node_modules/@openzeppelin/contracts-v4/access/IAccessControl.sol":{"id":4},"node_modules/@openzeppelin/contracts-v4/utils/math/SignedMath.sol":{"id":15},"node_modules/@openzeppelin/contracts-v4/security/ReentrancyGuard.sol":{"id":5},"node_modules/@openzeppelin/contracts-v4/utils/introspection/ERC165.sol":{"id":12},"node_modules/@openzeppelin/contracts-v4/token/ERC20/utils/SafeERC20.sol":{"id":8},"node_modules/@openzeppelin/contracts-v4/utils/introspection/IERC165.sol":{"id":13},"node_modules/@openzeppelin/contracts-v4/token/ERC20/extensions/IERC20Permit.sol":{"id":7}},"contracts":{"contracts/handlers/PermissionedMulticallHandler.sol":{"PermissionedMulticallHandler":{"abi":[{"type":"constructor","inputs":[{"name":"admin","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"name":"CallReverted","type":"error","inputs":[{"name":"index","type":"uint256","internalType":"uint256"},{"name":"calls","type":"tuple[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"value","type":"uint256","internalType":"uint256"}],"internalType":"struct MulticallHandler.Call[]"}]},{"name":"CalldataTooShort","type":"error","inputs":[{"name":"callDataLength","type":"uint256","internalType":"uint256"},{"name":"offset","type":"uint256","internalType":"uint256"}]},{"name":"InvalidCall","type":"error","inputs":[{"name":"index","type":"uint256","internalType":"uint256"},{"name":"calls","type":"tuple[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"value","type":"uint256","internalType":"uint256"}],"internalType":"struct MulticallHandler.Call[]"}]},{"name":"NotSelf","type":"error","inputs":[]},{"name":"ReplacementCallFailed","type":"error","inputs":[{"name":"callData","type":"bytes","internalType":"bytes"}]},{"name":"CallsFailed","type":"event","inputs":[{"name":"calls","type":"tuple[]","indexed":false,"components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"value","type":"uint256","internalType":"uint256"}],"internalType":"struct MulticallHandler.Call[]"},{"name":"fallbackRecipient","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"DrainedTokens","type":"event","inputs":[{"name":"recipient","type":"address","indexed":true,"internalType":"address"},{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"RoleAdminChanged","type":"event","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"previousAdminRole","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"newAdminRole","type":"bytes32","indexed":true,"internalType":"bytes32"}],"anonymous":false},{"name":"RoleGranted","type":"event","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"sender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"RoleRevoked","type":"event","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"sender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"DEFAULT_ADMIN_ROLE","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"WHITELISTED_CALLER_ROLE","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"attemptCalls","type":"function","inputs":[{"name":"calls","type":"tuple[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"value","type":"uint256","internalType":"uint256"}],"internalType":"struct MulticallHandler.Call[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"drainLeftoverTokens","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"destination","type":"address","internalType":"address payable"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"getRoleAdmin","type":"function","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"grantRole","type":"function","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"handleV3AcrossMessage","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"relayer","type":"address","internalType":"address"},{"name":"message","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"hasRole","type":"function","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"makeCallWithBalance","type":"function","inputs":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"value","type":"uint256","internalType":"uint256"},{"name":"replacement","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"offset","type":"uint256","internalType":"uint256"}],"internalType":"struct MulticallHandler.Replacement[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"renounceRole","type":"function","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokeRole","type":"function","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"supportsInterface","type":"function","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"receive","stateMutability":"payable"}],"metadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct MulticallHandler.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"CallReverted\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"callDataLength\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"}],\"name\":\"CalldataTooShort\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct MulticallHandler.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"InvalidCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotSelf\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"name\":\"ReplacementCallFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"struct MulticallHandler.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"fallbackRecipient\",\"type\":\"address\"}],\"name\":\"CallsFailed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"DrainedTokens\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WHITELISTED_CALLER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"internalType\":\"struct MulticallHandler.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"attemptCalls\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address payable\",\"name\":\"destination\",\"type\":\"address\"}],\"name\":\"drainLeftoverTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"handleV3AcrossMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"}],\"internalType\":\"struct MulticallHandler.Replacement[]\",\"name\":\"replacement\",\"type\":\"tuple[]\"}],\"name\":\"makeCallWithBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"details\":\"Uses OpenZeppelin's AccessControl for caller permission management. Only addresses with the WHITELISTED_CALLER_ROLE can call handleV3AcrossMessage.\",\"events\":{\"RoleAdminChanged(bytes32,bytes32,bytes32)\":{\"details\":\"Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this. _Available since v3.1._\"},\"RoleGranted(bytes32,address,address)\":{\"details\":\"Emitted when `account` is granted `role`. `sender` is the account that originated the contract call, an admin role bearer except when using {AccessControl-_setupRole}.\"},\"RoleRevoked(bytes32,address,address)\":{\"details\":\"Emitted when `account` is revoked `role`. `sender` is the account that originated the contract call:   - if using `revokeRole`, it is the admin role bearer   - if using `renounceRole`, it is the role bearer (i.e. `account`)\"}},\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"admin\":\"Address that will have DEFAULT_ADMIN_ROLE\"}},\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"handleV3AcrossMessage(address,uint256,address,bytes)\":{\"details\":\"Only addresses with WHITELISTED_CALLER_ROLE can call this function\",\"params\":{\"amount\":\"The amount of tokens\",\"message\":\"The encoded Instructions struct\",\"relayer\":\"The relayer address\",\"token\":\"The token being transferred\"}},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"makeCallWithBalance(address,bytes,uint256,(address,uint256)[])\":{\"details\":\"Modifies calldata in-place using OR operations. Target calldata positions must be zeroed out. Cannot handle negative balances, making it incompatible with DEXs requiring negative input amounts. For native balance (token = address(0)), the entire balance is used as call value.\",\"params\":{\"callData\":\"The calldata to execute, with zero values at replacement positions\",\"replacement\":\"Array of Replacement structs specifying token addresses and byte offsets for balance injection\",\"target\":\"The contract address to call\",\"value\":\"The native token value to send (ignored if native balance replacement is used)\"}},\"renounceRole(bytes32,address)\":{\"details\":\"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. May emit a {RoleRevoked} event.\"},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"}},\"title\":\"PermissionedMulticallHandler\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"WHITELISTED_CALLER_ROLE()\":{\"notice\":\"Role identifier for whitelisted callers\"},\"constructor\":{\"notice\":\"Constructor that sets up the initial admin\"},\"handleV3AcrossMessage(address,uint256,address,bytes)\":{\"notice\":\"Overrides handleV3AcrossMessage to add caller whitelist check\"},\"makeCallWithBalance(address,bytes,uint256,(address,uint256)[])\":{\"notice\":\"Executes a call while replacing specified calldata offsets with current token/native balances.\"}},\"notice\":\"Extension of MulticallHandler that restricts access to whitelisted callers\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/handlers/PermissionedMulticallHandler.sol\":\"PermissionedMulticallHandler\"},\"debug\":{\"revertStrings\":\"strip\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":300},\"remappings\":[\":@across-protocol/=node_modules/@across-protocol/\",\":@ensdomains/=node_modules/@ensdomains/\",\":@eth-optimism/=node_modules/@eth-optimism/\",\":@gnosis.pm/=node_modules/@gnosis.pm/\",\":@maticnetwork/=node_modules/@maticnetwork/\",\":@matterlabs/=node_modules/@matterlabs/\",\":@openzeppelin/=node_modules/@openzeppelin/\",\":@scroll-tech/=node_modules/@scroll-tech/\",\":@uma/=node_modules/@uma/\",\":@uniswap/=node_modules/@uniswap/\",\":arb-bridge-eth/=node_modules/arb-bridge-eth/\",\":arb-bridge-peripherals/=node_modules/arb-bridge-peripherals/\",\":arbos-precompiles/=node_modules/arbos-precompiles/\",\":base64-sol/=node_modules/base64-sol/\",\":eth-gas-reporter/=node_modules/eth-gas-reporter/\",\":forge-std/=lib/forge-std/src/\",\":hardhat-deploy/=node_modules/hardhat-deploy/\",\":hardhat/=node_modules/hardhat/\"],\"viaIR\":true},\"sources\":{\"contracts/handlers/MulticallHandler.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity ^0.8.0;\\n\\nimport \\\"../interfaces/SpokePoolMessageHandler.sol\\\";\\nimport \\\"@openzeppelin/contracts-v4/token/ERC20/IERC20.sol\\\";\\nimport \\\"@openzeppelin/contracts-v4/token/ERC20/utils/SafeERC20.sol\\\";\\nimport \\\"@openzeppelin/contracts-v4/utils/Address.sol\\\";\\nimport \\\"@openzeppelin/contracts-v4/security/ReentrancyGuard.sol\\\";\\n\\n/**\\n * @title Across Multicall contract that allows a user to specify a series of calls that should be made by the handler\\n * via the message field in the deposit.\\n * @dev This contract makes the calls blindly. The contract will send any remaining tokens The caller should ensure that the tokens recieved by the handler are completely consumed.\\n */\\ncontract MulticallHandler is AcrossMessageHandler, ReentrancyGuard {\\n    using SafeERC20 for IERC20;\\n    using Address for address payable;\\n\\n    struct Call {\\n        address target;\\n        bytes callData;\\n        uint256 value;\\n    }\\n\\n    struct Replacement {\\n        address token;\\n        uint256 offset;\\n    }\\n\\n    struct Instructions {\\n        //  Calls that will be attempted.\\n        Call[] calls;\\n        // Where the tokens go if any part of the call fails.\\n        // Leftover tokens are sent here as well if the action succeeds.\\n        address fallbackRecipient;\\n    }\\n\\n    // Emitted when one of the calls fails. Note: all calls are reverted in this case.\\n    event CallsFailed(Call[] calls, address indexed fallbackRecipient);\\n\\n    // Emitted when there are leftover tokens that are sent to the fallbackRecipient.\\n    event DrainedTokens(address indexed recipient, address indexed token, uint256 indexed amount);\\n\\n    // Errors\\n    error CallReverted(uint256 index, Call[] calls);\\n    error NotSelf();\\n    error InvalidCall(uint256 index, Call[] calls);\\n    error ReplacementCallFailed(bytes callData);\\n    error CalldataTooShort(uint256 callDataLength, uint256 offset);\\n\\n    modifier onlySelf() {\\n        _requireSelf();\\n        _;\\n    }\\n\\n    /**\\n     * @notice Main entrypoint for the handler called by the SpokePool contract.\\n     * @dev This will execute all calls encoded in the msg. The caller is responsible for making sure all tokens are\\n     * drained from this contract by the end of the series of calls. If not, they can be stolen.\\n     * A drainLeftoverTokens call can be included as a way to drain any remaining tokens from this contract.\\n     * @param token The token address that was received from the relay\\n     * @param message abi encoded array of Call structs, containing a target, callData, and value for each call that\\n     * the contract should make.\\n     */\\n    function handleV3AcrossMessage(address token, uint256, address, bytes memory message) public virtual nonReentrant {\\n        Instructions memory instructions = abi.decode(message, (Instructions));\\n\\n        // If there is no fallback recipient, call and revert if the inner call fails.\\n        if (instructions.fallbackRecipient == address(0)) {\\n            this.attemptCalls(instructions.calls);\\n            return;\\n        }\\n\\n        // Otherwise, try the call and send to the fallback recipient if any tokens are leftover.\\n        (bool success, ) = address(this).call(abi.encodeCall(this.attemptCalls, (instructions.calls)));\\n        if (!success) emit CallsFailed(instructions.calls, instructions.fallbackRecipient);\\n\\n        // If there are leftover tokens, send them to the fallback recipient regardless of execution success.\\n        _drainRemainingTokens(token, payable(instructions.fallbackRecipient));\\n    }\\n\\n    function attemptCalls(Call[] memory calls) external onlySelf {\\n        uint256 length = calls.length;\\n        for (uint256 i = 0; i < length; ++i) {\\n            Call memory call = calls[i];\\n\\n            // If we are calling an EOA with calldata, assume target was incorrectly specified and revert.\\n            if (call.callData.length > 0 && call.target.code.length == 0) {\\n                revert InvalidCall(i, calls);\\n            }\\n\\n            (bool success, ) = call.target.call{ value: call.value }(call.callData);\\n            if (!success) revert CallReverted(i, calls);\\n        }\\n    }\\n\\n    function drainLeftoverTokens(address token, address payable destination) external onlySelf {\\n        _drainRemainingTokens(token, destination);\\n    }\\n\\n    function _drainRemainingTokens(address token, address payable destination) internal {\\n        if (token != address(0)) {\\n            // ERC20 token.\\n            uint256 amount = IERC20(token).balanceOf(address(this));\\n            if (amount > 0) {\\n                IERC20(token).safeTransfer(destination, amount);\\n                emit DrainedTokens(destination, token, amount);\\n            }\\n        } else {\\n            // Send native token\\n            uint256 amount = address(this).balance;\\n            if (amount > 0) {\\n                destination.sendValue(amount);\\n            }\\n        }\\n    }\\n\\n    /**\\n     * @notice Executes a call while replacing specified calldata offsets with current token/native balances.\\n     * @dev Modifies calldata in-place using OR operations. Target calldata positions must be zeroed out.\\n     * Cannot handle negative balances, making it incompatible with DEXs requiring negative input amounts.\\n     * For native balance (token = address(0)), the entire balance is used as call value.\\n     * @param target The contract address to call\\n     * @param callData The calldata to execute, with zero values at replacement positions\\n     * @param value The native token value to send (ignored if native balance replacement is used)\\n     * @param replacement Array of Replacement structs specifying token addresses and byte offsets for balance injection\\n     */\\n    function makeCallWithBalance(\\n        address target,\\n        bytes memory callData,\\n        uint256 value,\\n        Replacement[] calldata replacement\\n    ) external onlySelf {\\n        for (uint256 i = 0; i < replacement.length; ++i) {\\n            uint256 bal = 0;\\n            if (replacement[i].token != address(0)) {\\n                bal = IERC20(replacement[i].token).balanceOf(address(this));\\n            } else {\\n                bal = address(this).balance;\\n\\n                // If we're using the native balance, we assume that the caller wants to send the full value to the target.\\n                value = bal;\\n            }\\n\\n            // + 32 to skip the length of the calldata\\n            uint256 offset = replacement[i].offset + 32;\\n\\n            // 32 has already been added to the offset, and the replacement value is 32 bytes long, so\\n            // we don't need to add 32 here. We just directly compare the offset with the length of the calldata.\\n            if (offset > callData.length) revert CalldataTooShort(callData.length, offset);\\n\\n            assembly (\\\"memory-safe\\\") {\\n                // Get the pointer to the offset that the caller wants to overwrite.\\n                let ptr := add(callData, offset)\\n                // Get the current value at the offset.\\n                let current := mload(ptr)\\n                // Or the current value with the new value.\\n                // Reasoning:\\n                // - caller should 0-out any portion that they want overwritten.\\n                // - if the caller is representing the balance in a smaller integer, like a uint160 or uint128,\\n                //   the higher bits will be 0 and not overwrite any other data in the calldata assuming\\n                //   the balance is small enough to fit in the smaller integer.\\n                // - The catch: the smaller integer where they want to store the balance must end no\\n                //   earlier than the 32nd byte in their calldata. Otherwise, this would require a\\n                //   negative offset, which is not possible.\\n                let val := or(bal, current)\\n                // Store the new value at the offset.\\n                mstore(ptr, val)\\n            }\\n        }\\n\\n        (bool success, ) = target.call{ value: value }(callData);\\n        if (!success) revert ReplacementCallFailed(callData);\\n    }\\n\\n    function _requireSelf() internal view {\\n        // Must be called by this contract to ensure that this cannot be triggered without the explicit consent of the\\n        // depositor (for a valid relay).\\n        if (msg.sender != address(this)) revert NotSelf();\\n    }\\n\\n    // Used if the caller is trying to unwrap the native token to this contract.\\n    receive() external payable {}\\n}\\n\",\"keccak256\":\"0x502beb1937884f4877ad22486db70a5854e146d84c3bbde1f24bdf73a611a881\",\"license\":\"GPL-3.0-only\"},\"contracts/handlers/PermissionedMulticallHandler.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity ^0.8.0;\\n\\nimport { MulticallHandler } from \\\"./MulticallHandler.sol\\\";\\nimport { AccessControl } from \\\"@openzeppelin/contracts-v4/access/AccessControl.sol\\\";\\n\\n/**\\n * @title PermissionedMulticallHandler\\n * @notice Extension of MulticallHandler that restricts access to whitelisted callers\\n * @dev Uses OpenZeppelin's AccessControl for caller permission management.\\n * Only addresses with the WHITELISTED_CALLER_ROLE can call handleV3AcrossMessage.\\n */\\ncontract PermissionedMulticallHandler is MulticallHandler, AccessControl {\\n    /// @notice Role identifier for whitelisted callers\\n    bytes32 public constant WHITELISTED_CALLER_ROLE = keccak256(\\\"WHITELISTED_CALLER_ROLE\\\");\\n\\n    /**\\n     * @notice Constructor that sets up the initial admin\\n     * @param admin Address that will have DEFAULT_ADMIN_ROLE\\n     */\\n    constructor(address admin) {\\n        _grantRole(DEFAULT_ADMIN_ROLE, admin);\\n    }\\n\\n    /**\\n     * @notice Overrides handleV3AcrossMessage to add caller whitelist check\\n     * @dev Only addresses with WHITELISTED_CALLER_ROLE can call this function\\n     * @param token The token being transferred\\n     * @param amount The amount of tokens\\n     * @param relayer The relayer address\\n     * @param message The encoded Instructions struct\\n     */\\n    function handleV3AcrossMessage(\\n        address token,\\n        uint256 amount,\\n        address relayer,\\n        bytes memory message\\n    ) public override onlyRole(WHITELISTED_CALLER_ROLE) {\\n        // Call parent implementation\\n        super.handleV3AcrossMessage(token, amount, relayer, message);\\n    }\\n}\\n\",\"keccak256\":\"0xc9e34fa983ea9bd5a0e3a856fb2faa98510758c59d13f2d33108565701aa574d\",\"license\":\"GPL-3.0-only\"},\"contracts/interfaces/SpokePoolMessageHandler.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// This interface is expected to be implemented by any contract that expects to receive messages from the SpokePool.\\ninterface AcrossMessageHandler {\\n    function handleV3AcrossMessage(\\n        address tokenSent,\\n        uint256 amount,\\n        address relayer,\\n        bytes memory message\\n    ) external;\\n}\\n\",\"keccak256\":\"0xc522e2ee6d874df26cae297fc23fc6e8b5216fc8d1901299bb147a25a8c6c259\",\"license\":\"MIT\"},\"node_modules/@openzeppelin/contracts-v4/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```solidity\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```solidity\\n * function foo() public {\\n *     require(hasRole(MY_ROLE, msg.sender));\\n *     ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}\\n * to enforce additional security measures for this role.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n    struct RoleData {\\n        mapping(address => bool) members;\\n        bytes32 adminRole;\\n    }\\n\\n    mapping(bytes32 => RoleData) private _roles;\\n\\n    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n    /**\\n     * @dev Modifier that checks that an account has a specific role. Reverts\\n     * with a standardized message including the required role.\\n     *\\n     * The format of the revert reason is given by the following regular expression:\\n     *\\n     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n     *\\n     * _Available since v4.1._\\n     */\\n    modifier onlyRole(bytes32 role) {\\n        _checkRole(role);\\n        _;\\n    }\\n\\n    /**\\n     * @dev See {IERC165-supportsInterface}.\\n     */\\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n    }\\n\\n    /**\\n     * @dev Returns `true` if `account` has been granted `role`.\\n     */\\n    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n        return _roles[role].members[account];\\n    }\\n\\n    /**\\n     * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n     * Overriding this function changes the behavior of the {onlyRole} modifier.\\n     *\\n     * Format of the revert message is described in {_checkRole}.\\n     *\\n     * _Available since v4.6._\\n     */\\n    function _checkRole(bytes32 role) internal view virtual {\\n        _checkRole(role, _msgSender());\\n    }\\n\\n    /**\\n     * @dev Revert with a standard message if `account` is missing `role`.\\n     *\\n     * The format of the revert reason is given by the following regular expression:\\n     *\\n     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n     */\\n    function _checkRole(bytes32 role, address account) internal view virtual {\\n        if (!hasRole(role, account)) {\\n            revert(\\n                string(\\n                    abi.encodePacked(\\n                        \\\"AccessControl: account \\\",\\n                        Strings.toHexString(account),\\n                        \\\" is missing role \\\",\\n                        Strings.toHexString(uint256(role), 32)\\n                    )\\n                )\\n            );\\n        }\\n    }\\n\\n    /**\\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\\n     * {revokeRole}.\\n     *\\n     * To change a role's admin, use {_setRoleAdmin}.\\n     */\\n    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n        return _roles[role].adminRole;\\n    }\\n\\n    /**\\n     * @dev Grants `role` to `account`.\\n     *\\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\\n     * event.\\n     *\\n     * Requirements:\\n     *\\n     * - the caller must have ``role``'s admin role.\\n     *\\n     * May emit a {RoleGranted} event.\\n     */\\n    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n        _grantRole(role, account);\\n    }\\n\\n    /**\\n     * @dev Revokes `role` from `account`.\\n     *\\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n     *\\n     * Requirements:\\n     *\\n     * - the caller must have ``role``'s admin role.\\n     *\\n     * May emit a {RoleRevoked} event.\\n     */\\n    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n        _revokeRole(role, account);\\n    }\\n\\n    /**\\n     * @dev Revokes `role` from the calling account.\\n     *\\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n     * purpose is to provide a mechanism for accounts to lose their privileges\\n     * if they are compromised (such as when a trusted device is misplaced).\\n     *\\n     * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n     * event.\\n     *\\n     * Requirements:\\n     *\\n     * - the caller must be `account`.\\n     *\\n     * May emit a {RoleRevoked} event.\\n     */\\n    function renounceRole(bytes32 role, address account) public virtual override {\\n        require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n        _revokeRole(role, account);\\n    }\\n\\n    /**\\n     * @dev Grants `role` to `account`.\\n     *\\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\\n     * event. Note that unlike {grantRole}, this function doesn't perform any\\n     * checks on the calling account.\\n     *\\n     * May emit a {RoleGranted} event.\\n     *\\n     * [WARNING]\\n     * ====\\n     * This function should only be called from the constructor when setting\\n     * up the initial roles for the system.\\n     *\\n     * Using this function in any other way is effectively circumventing the admin\\n     * system imposed by {AccessControl}.\\n     * ====\\n     *\\n     * NOTE: This function is deprecated in favor of {_grantRole}.\\n     */\\n    function _setupRole(bytes32 role, address account) internal virtual {\\n        _grantRole(role, account);\\n    }\\n\\n    /**\\n     * @dev Sets `adminRole` as ``role``'s admin role.\\n     *\\n     * Emits a {RoleAdminChanged} event.\\n     */\\n    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n        bytes32 previousAdminRole = getRoleAdmin(role);\\n        _roles[role].adminRole = adminRole;\\n        emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n    }\\n\\n    /**\\n     * @dev Grants `role` to `account`.\\n     *\\n     * Internal function without access restriction.\\n     *\\n     * May emit a {RoleGranted} event.\\n     */\\n    function _grantRole(bytes32 role, address account) internal virtual {\\n        if (!hasRole(role, account)) {\\n            _roles[role].members[account] = true;\\n            emit RoleGranted(role, account, _msgSender());\\n        }\\n    }\\n\\n    /**\\n     * @dev Revokes `role` from `account`.\\n     *\\n     * Internal function without access restriction.\\n     *\\n     * May emit a {RoleRevoked} event.\\n     */\\n    function _revokeRole(bytes32 role, address account) internal virtual {\\n        if (hasRole(role, account)) {\\n            _roles[role].members[account] = false;\\n            emit RoleRevoked(role, account, _msgSender());\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0x0dd6e52cb394d7f5abe5dca2d4908a6be40417914720932de757de34a99ab87f\",\"license\":\"MIT\"},\"node_modules/@openzeppelin/contracts-v4/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n    /**\\n     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n     *\\n     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n     * {RoleAdminChanged} not being emitted signaling this.\\n     *\\n     * _Available since v3.1._\\n     */\\n    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n    /**\\n     * @dev Emitted when `account` is granted `role`.\\n     *\\n     * `sender` is the account that originated the contract call, an admin role\\n     * bearer except when using {AccessControl-_setupRole}.\\n     */\\n    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n    /**\\n     * @dev Emitted when `account` is revoked `role`.\\n     *\\n     * `sender` is the account that originated the contract call:\\n     *   - if using `revokeRole`, it is the admin role bearer\\n     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n     */\\n    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n    /**\\n     * @dev Returns `true` if `account` has been granted `role`.\\n     */\\n    function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n    /**\\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\\n     * {revokeRole}.\\n     *\\n     * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n     */\\n    function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n    /**\\n     * @dev Grants `role` to `account`.\\n     *\\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\\n     * event.\\n     *\\n     * Requirements:\\n     *\\n     * - the caller must have ``role``'s admin role.\\n     */\\n    function grantRole(bytes32 role, address account) external;\\n\\n    /**\\n     * @dev Revokes `role` from `account`.\\n     *\\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n     *\\n     * Requirements:\\n     *\\n     * - the caller must have ``role``'s admin role.\\n     */\\n    function revokeRole(bytes32 role, address account) external;\\n\\n    /**\\n     * @dev Revokes `role` from the calling account.\\n     *\\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n     * purpose is to provide a mechanism for accounts to lose their privileges\\n     * if they are compromised (such as when a trusted device is misplaced).\\n     *\\n     * If the calling account had been granted `role`, emits a {RoleRevoked}\\n     * event.\\n     *\\n     * Requirements:\\n     *\\n     * - the caller must be `account`.\\n     */\\n    function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"node_modules/@openzeppelin/contracts-v4/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n    // Booleans are more expensive than uint256 or any type that takes up a full\\n    // word because each write operation emits an extra SLOAD to first read the\\n    // slot's contents, replace the bits taken up by the boolean, and then write\\n    // back. This is the compiler's defense against contract upgrades and\\n    // pointer aliasing, and it cannot be disabled.\\n\\n    // The values being non-zero value makes deployment a bit more expensive,\\n    // but in exchange the refund on every call to nonReentrant will be lower in\\n    // amount. Since refunds are capped to a percentage of the total\\n    // transaction's gas, it is best to keep them low in cases like this one, to\\n    // increase the likelihood of the full refund coming into effect.\\n    uint256 private constant _NOT_ENTERED = 1;\\n    uint256 private constant _ENTERED = 2;\\n\\n    uint256 private _status;\\n\\n    constructor() {\\n        _status = _NOT_ENTERED;\\n    }\\n\\n    /**\\n     * @dev Prevents a contract from calling itself, directly or indirectly.\\n     * Calling a `nonReentrant` function from another `nonReentrant`\\n     * function is not supported. It is possible to prevent this from happening\\n     * by making the `nonReentrant` function external, and making it call a\\n     * `private` function that does the actual work.\\n     */\\n    modifier nonReentrant() {\\n        _nonReentrantBefore();\\n        _;\\n        _nonReentrantAfter();\\n    }\\n\\n    function _nonReentrantBefore() private {\\n        // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n        require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n        // Any calls to nonReentrant after this point will fail\\n        _status = _ENTERED;\\n    }\\n\\n    function _nonReentrantAfter() private {\\n        // By storing the original value once again, a refund is triggered (see\\n        // https://eips.ethereum.org/EIPS/eip-2200)\\n        _status = _NOT_ENTERED;\\n    }\\n\\n    /**\\n     * @dev Returns true if the reentrancy guard is currently set to \\\"entered\\\", which indicates there is a\\n     * `nonReentrant` function in the call stack.\\n     */\\n    function _reentrancyGuardEntered() internal view returns (bool) {\\n        return _status == _ENTERED;\\n    }\\n}\\n\",\"keccak256\":\"0xa535a5df777d44e945dd24aa43a11e44b024140fc340ad0dfe42acf4002aade1\",\"license\":\"MIT\"},\"node_modules/@openzeppelin/contracts-v4/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n    /**\\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n     * another (`to`).\\n     *\\n     * Note that `value` may be zero.\\n     */\\n    event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n    /**\\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n     * a call to {approve}. `value` is the new allowance.\\n     */\\n    event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n    /**\\n     * @dev Returns the amount of tokens in existence.\\n     */\\n    function totalSupply() external view returns (uint256);\\n\\n    /**\\n     * @dev Returns the amount of tokens owned by `account`.\\n     */\\n    function balanceOf(address account) external view returns (uint256);\\n\\n    /**\\n     * @dev Moves `amount` tokens from the caller's account to `to`.\\n     *\\n     * Returns a boolean value indicating whether the operation succeeded.\\n     *\\n     * Emits a {Transfer} event.\\n     */\\n    function transfer(address to, uint256 amount) external returns (bool);\\n\\n    /**\\n     * @dev Returns the remaining number of tokens that `spender` will be\\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n     * zero by default.\\n     *\\n     * This value changes when {approve} or {transferFrom} are called.\\n     */\\n    function allowance(address owner, address spender) external view returns (uint256);\\n\\n    /**\\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n     *\\n     * Returns a boolean value indicating whether the operation succeeded.\\n     *\\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n     * that someone may use both the old and the new allowance by unfortunate\\n     * transaction ordering. One possible solution to mitigate this race\\n     * condition is to first reduce the spender's allowance to 0 and set the\\n     * desired value afterwards:\\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n     *\\n     * Emits an {Approval} event.\\n     */\\n    function approve(address spender, uint256 amount) external returns (bool);\\n\\n    /**\\n     * @dev Moves `amount` tokens from `from` to `to` using the\\n     * allowance mechanism. `amount` is then deducted from the caller's\\n     * allowance.\\n     *\\n     * Returns a boolean value indicating whether the operation succeeded.\\n     *\\n     * Emits a {Transfer} event.\\n     */\\n    function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305\",\"license\":\"MIT\"},\"node_modules/@openzeppelin/contracts-v4/token/ERC20/extensions/IERC20Permit.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\\n *\\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\\n * need to send a transaction, and thus is not required to hold Ether at all.\\n *\\n * ==== Security Considerations\\n *\\n * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature\\n * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be\\n * considered as an intention to spend the allowance in any specific way. The second is that because permits have\\n * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should\\n * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be\\n * generally recommended is:\\n *\\n * ```solidity\\n * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {\\n *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}\\n *     doThing(..., value);\\n * }\\n *\\n * function doThing(..., uint256 value) public {\\n *     token.safeTransferFrom(msg.sender, address(this), value);\\n *     ...\\n * }\\n * ```\\n *\\n * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of\\n * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also\\n * {SafeERC20-safeTransferFrom}).\\n *\\n * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so\\n * contracts should have entry points that don't rely on permit.\\n */\\ninterface IERC20Permit {\\n    /**\\n     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\\n     * given ``owner``'s signed approval.\\n     *\\n     * IMPORTANT: The same issues {IERC20-approve} has related to transaction\\n     * ordering also apply here.\\n     *\\n     * Emits an {Approval} event.\\n     *\\n     * Requirements:\\n     *\\n     * - `spender` cannot be the zero address.\\n     * - `deadline` must be a timestamp in the future.\\n     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\\n     * over the EIP712-formatted function arguments.\\n     * - the signature must use ``owner``'s current nonce (see {nonces}).\\n     *\\n     * For more information on the signature format, see the\\n     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\\n     * section].\\n     *\\n     * CAUTION: See Security Considerations above.\\n     */\\n    function permit(\\n        address owner,\\n        address spender,\\n        uint256 value,\\n        uint256 deadline,\\n        uint8 v,\\n        bytes32 r,\\n        bytes32 s\\n    ) external;\\n\\n    /**\\n     * @dev Returns the current nonce for `owner`. This value must be\\n     * included whenever a signature is generated for {permit}.\\n     *\\n     * Every successful call to {permit} increases ``owner``'s nonce by one. This\\n     * prevents a signature from being used multiple times.\\n     */\\n    function nonces(address owner) external view returns (uint256);\\n\\n    /**\\n     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\\n     */\\n    // solhint-disable-next-line func-name-mixedcase\\n    function DOMAIN_SEPARATOR() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0xb264c03a3442eb37a68ad620cefd1182766b58bee6cec40343480392d6b14d69\",\"license\":\"MIT\"},\"node_modules/@openzeppelin/contracts-v4/token/ERC20/utils/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\nimport \\\"../extensions/IERC20Permit.sol\\\";\\nimport \\\"../../../utils/Address.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20 {\\n    using Address for address;\\n\\n    /**\\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\\n     * non-reverting calls are assumed to be successful.\\n     */\\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n    }\\n\\n    /**\\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\\n     */\\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n    }\\n\\n    /**\\n     * @dev Deprecated. This function has issues similar to the ones found in\\n     * {IERC20-approve}, and its usage is discouraged.\\n     *\\n     * Whenever possible, use {safeIncreaseAllowance} and\\n     * {safeDecreaseAllowance} instead.\\n     */\\n    function safeApprove(IERC20 token, address spender, uint256 value) internal {\\n        // safeApprove should only be called when setting an initial allowance,\\n        // or when resetting it to zero. To increase and decrease it, use\\n        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n        require(\\n            (value == 0) || (token.allowance(address(this), spender) == 0),\\n            \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n        );\\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n    }\\n\\n    /**\\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n     * non-reverting calls are assumed to be successful.\\n     */\\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n        uint256 oldAllowance = token.allowance(address(this), spender);\\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\\n    }\\n\\n    /**\\n     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n     * non-reverting calls are assumed to be successful.\\n     */\\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n        unchecked {\\n            uint256 oldAllowance = token.allowance(address(this), spender);\\n            require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\\n        }\\n    }\\n\\n    /**\\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\\n     * to be set to zero before setting it to a non-zero value, such as USDT.\\n     */\\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\\n        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\\n\\n        if (!_callOptionalReturnBool(token, approvalCall)) {\\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\\n            _callOptionalReturn(token, approvalCall);\\n        }\\n    }\\n\\n    /**\\n     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\\n     * Revert on invalid signature.\\n     */\\n    function safePermit(\\n        IERC20Permit token,\\n        address owner,\\n        address spender,\\n        uint256 value,\\n        uint256 deadline,\\n        uint8 v,\\n        bytes32 r,\\n        bytes32 s\\n    ) internal {\\n        uint256 nonceBefore = token.nonces(owner);\\n        token.permit(owner, spender, value, deadline, v, r, s);\\n        uint256 nonceAfter = token.nonces(owner);\\n        require(nonceAfter == nonceBefore + 1, \\\"SafeERC20: permit did not succeed\\\");\\n    }\\n\\n    /**\\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\\n     * @param token The token targeted by the call.\\n     * @param data The call data (encoded using abi.encode or one of its variants).\\n     */\\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\\n        // the target address contains contract code and also asserts for success in the low-level call.\\n\\n        bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n        require(returndata.length == 0 || abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n    }\\n\\n    /**\\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\\n     * @param token The token targeted by the call.\\n     * @param data The call data (encoded using abi.encode or one of its variants).\\n     *\\n     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\\n     */\\n    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\\n        // and not revert is the subcall reverts.\\n\\n        (bool success, bytes memory returndata) = address(token).call(data);\\n        return\\n            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));\\n    }\\n}\\n\",\"keccak256\":\"0xabefac93435967b4d36a4fabcbdbb918d1f0b7ae3c3d85bc30923b326c927ed1\",\"license\":\"MIT\"},\"node_modules/@openzeppelin/contracts-v4/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n    /**\\n     * @dev Returns true if `account` is a contract.\\n     *\\n     * [IMPORTANT]\\n     * ====\\n     * It is unsafe to assume that an address for which this function returns\\n     * false is an externally-owned account (EOA) and not a contract.\\n     *\\n     * Among others, `isContract` will return false for the following\\n     * types of addresses:\\n     *\\n     *  - an externally-owned account\\n     *  - a contract in construction\\n     *  - an address where a contract will be created\\n     *  - an address where a contract lived, but was destroyed\\n     *\\n     * Furthermore, `isContract` will also return true if the target contract within\\n     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n     * which only has an effect at the end of a transaction.\\n     * ====\\n     *\\n     * [IMPORTANT]\\n     * ====\\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n     *\\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n     * constructor.\\n     * ====\\n     */\\n    function isContract(address account) internal view returns (bool) {\\n        // This method relies on extcodesize/address.code.length, which returns 0\\n        // for contracts in construction, since the code is only stored at the end\\n        // of the constructor execution.\\n\\n        return account.code.length > 0;\\n    }\\n\\n    /**\\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n     * `recipient`, forwarding all available gas and reverting on errors.\\n     *\\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n     * imposed by `transfer`, making them unable to receive funds via\\n     * `transfer`. {sendValue} removes this limitation.\\n     *\\n     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n     *\\n     * IMPORTANT: because control is transferred to `recipient`, care must be\\n     * taken to not create reentrancy vulnerabilities. Consider using\\n     * {ReentrancyGuard} or the\\n     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n     */\\n    function sendValue(address payable recipient, uint256 amount) internal {\\n        require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n        (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n        require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n    }\\n\\n    /**\\n     * @dev Performs a Solidity function call using a low level `call`. A\\n     * plain `call` is an unsafe replacement for a function call: use this\\n     * function instead.\\n     *\\n     * If `target` reverts with a revert reason, it is bubbled up by this\\n     * function (like regular Solidity function calls).\\n     *\\n     * Returns the raw returned data. To convert to the expected return value,\\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n     *\\n     * Requirements:\\n     *\\n     * - `target` must be a contract.\\n     * - calling `target` with `data` must not revert.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n        return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n     * `errorMessage` as a fallback revert reason when `target` reverts.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCall(\\n        address target,\\n        bytes memory data,\\n        string memory errorMessage\\n    ) internal returns (bytes memory) {\\n        return functionCallWithValue(target, data, 0, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n     * but also transferring `value` wei to `target`.\\n     *\\n     * Requirements:\\n     *\\n     * - the calling contract must have an ETH balance of at least `value`.\\n     * - the called Solidity function must be `payable`.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n        return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCallWithValue(\\n        address target,\\n        bytes memory data,\\n        uint256 value,\\n        string memory errorMessage\\n    ) internal returns (bytes memory) {\\n        require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n     * but performing a static call.\\n     *\\n     * _Available since v3.3._\\n     */\\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n        return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n     * but performing a static call.\\n     *\\n     * _Available since v3.3._\\n     */\\n    function functionStaticCall(\\n        address target,\\n        bytes memory data,\\n        string memory errorMessage\\n    ) internal view returns (bytes memory) {\\n        (bool success, bytes memory returndata) = target.staticcall(data);\\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n     * but performing a delegate call.\\n     *\\n     * _Available since v3.4._\\n     */\\n    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n        return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n     * but performing a delegate call.\\n     *\\n     * _Available since v3.4._\\n     */\\n    function functionDelegateCall(\\n        address target,\\n        bytes memory data,\\n        string memory errorMessage\\n    ) internal returns (bytes memory) {\\n        (bool success, bytes memory returndata) = target.delegatecall(data);\\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n     *\\n     * _Available since v4.8._\\n     */\\n    function verifyCallResultFromTarget(\\n        address target,\\n        bool success,\\n        bytes memory returndata,\\n        string memory errorMessage\\n    ) internal view returns (bytes memory) {\\n        if (success) {\\n            if (returndata.length == 0) {\\n                // only check isContract if the call was successful and the return data is empty\\n                // otherwise we already know that it was a contract\\n                require(isContract(target), \\\"Address: call to non-contract\\\");\\n            }\\n            return returndata;\\n        } else {\\n            _revert(returndata, errorMessage);\\n        }\\n    }\\n\\n    /**\\n     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n     * revert reason or using the provided one.\\n     *\\n     * _Available since v4.3._\\n     */\\n    function verifyCallResult(\\n        bool success,\\n        bytes memory returndata,\\n        string memory errorMessage\\n    ) internal pure returns (bytes memory) {\\n        if (success) {\\n            return returndata;\\n        } else {\\n            _revert(returndata, errorMessage);\\n        }\\n    }\\n\\n    function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n        // Look for revert reason and bubble it up if present\\n        if (returndata.length > 0) {\\n            // The easiest way to bubble the revert reason is using memory via assembly\\n            /// @solidity memory-safe-assembly\\n            assembly {\\n                let returndata_size := mload(returndata)\\n                revert(add(32, returndata), returndata_size)\\n            }\\n        } else {\\n            revert(errorMessage);\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0x006dd67219697fe68d7fbfdea512e7c4cb64a43565ed86171d67e844982da6fa\",\"license\":\"MIT\"},\"node_modules/@openzeppelin/contracts-v4/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n    function _msgSender() internal view virtual returns (address) {\\n        return msg.sender;\\n    }\\n\\n    function _msgData() internal view virtual returns (bytes calldata) {\\n        return msg.data;\\n    }\\n\\n    function _contextSuffixLength() internal view virtual returns (uint256) {\\n        return 0;\\n    }\\n}\\n\",\"keccak256\":\"0xa92e4fa126feb6907daa0513ddd816b2eb91f30a808de54f63c17d0e162c3439\",\"license\":\"MIT\"},\"node_modules/@openzeppelin/contracts-v4/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\nimport \\\"./math/SignedMath.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n    bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n    uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n    /**\\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n     */\\n    function toString(uint256 value) internal pure returns (string memory) {\\n        unchecked {\\n            uint256 length = Math.log10(value) + 1;\\n            string memory buffer = new string(length);\\n            uint256 ptr;\\n            /// @solidity memory-safe-assembly\\n            assembly {\\n                ptr := add(buffer, add(32, length))\\n            }\\n            while (true) {\\n                ptr--;\\n                /// @solidity memory-safe-assembly\\n                assembly {\\n                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n                }\\n                value /= 10;\\n                if (value == 0) break;\\n            }\\n            return buffer;\\n        }\\n    }\\n\\n    /**\\n     * @dev Converts a `int256` to its ASCII `string` decimal representation.\\n     */\\n    function toString(int256 value) internal pure returns (string memory) {\\n        return string(abi.encodePacked(value < 0 ? \\\"-\\\" : \\\"\\\", toString(SignedMath.abs(value))));\\n    }\\n\\n    /**\\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n     */\\n    function toHexString(uint256 value) internal pure returns (string memory) {\\n        unchecked {\\n            return toHexString(value, Math.log256(value) + 1);\\n        }\\n    }\\n\\n    /**\\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n     */\\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n        bytes memory buffer = new bytes(2 * length + 2);\\n        buffer[0] = \\\"0\\\";\\n        buffer[1] = \\\"x\\\";\\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\\n            buffer[i] = _SYMBOLS[value & 0xf];\\n            value >>= 4;\\n        }\\n        require(value == 0, \\\"Strings: hex length insufficient\\\");\\n        return string(buffer);\\n    }\\n\\n    /**\\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n     */\\n    function toHexString(address addr) internal pure returns (string memory) {\\n        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n    }\\n\\n    /**\\n     * @dev Returns true if the two strings are equal.\\n     */\\n    function equal(string memory a, string memory b) internal pure returns (bool) {\\n        return keccak256(bytes(a)) == keccak256(bytes(b));\\n    }\\n}\\n\",\"keccak256\":\"0x3088eb2868e8d13d89d16670b5f8612c4ab9ff8956272837d8e90106c59c14a0\",\"license\":\"MIT\"},\"node_modules/@openzeppelin/contracts-v4/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n    /**\\n     * @dev See {IERC165-supportsInterface}.\\n     */\\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n        return interfaceId == type(IERC165).interfaceId;\\n    }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"node_modules/@openzeppelin/contracts-v4/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n    /**\\n     * @dev Returns true if this contract implements the interface defined by\\n     * `interfaceId`. See the corresponding\\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n     * to learn more about how these ids are created.\\n     *\\n     * This function call must use less than 30 000 gas.\\n     */\\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"node_modules/@openzeppelin/contracts-v4/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n    enum Rounding {\\n        Down, // Toward negative infinity\\n        Up, // Toward infinity\\n        Zero // Toward zero\\n    }\\n\\n    /**\\n     * @dev Returns the largest of two numbers.\\n     */\\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n        return a > b ? a : b;\\n    }\\n\\n    /**\\n     * @dev Returns the smallest of two numbers.\\n     */\\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n        return a < b ? a : b;\\n    }\\n\\n    /**\\n     * @dev Returns the average of two numbers. The result is rounded towards\\n     * zero.\\n     */\\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n        // (a + b) / 2 can overflow.\\n        return (a & b) + (a ^ b) / 2;\\n    }\\n\\n    /**\\n     * @dev Returns the ceiling of the division of two numbers.\\n     *\\n     * This differs from standard division with `/` in that it rounds up instead\\n     * of rounding down.\\n     */\\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n        // (a + b - 1) / b can overflow on addition, so we distribute.\\n        return a == 0 ? 0 : (a - 1) / b + 1;\\n    }\\n\\n    /**\\n     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n     * with further edits by Uniswap Labs also under MIT license.\\n     */\\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\n        unchecked {\\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n            // variables such that product = prod1 * 2^256 + prod0.\\n            uint256 prod0; // Least significant 256 bits of the product\\n            uint256 prod1; // Most significant 256 bits of the product\\n            assembly {\\n                let mm := mulmod(x, y, not(0))\\n                prod0 := mul(x, y)\\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n            }\\n\\n            // Handle non-overflow cases, 256 by 256 division.\\n            if (prod1 == 0) {\\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\\n                // The surrounding unchecked block does not change this fact.\\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\\n                return prod0 / denominator;\\n            }\\n\\n            // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n            require(denominator > prod1, \\\"Math: mulDiv overflow\\\");\\n\\n            ///////////////////////////////////////////////\\n            // 512 by 256 division.\\n            ///////////////////////////////////////////////\\n\\n            // Make division exact by subtracting the remainder from [prod1 prod0].\\n            uint256 remainder;\\n            assembly {\\n                // Compute remainder using mulmod.\\n                remainder := mulmod(x, y, denominator)\\n\\n                // Subtract 256 bit number from 512 bit number.\\n                prod1 := sub(prod1, gt(remainder, prod0))\\n                prod0 := sub(prod0, remainder)\\n            }\\n\\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n            // See https://cs.stackexchange.com/q/138556/92363.\\n\\n            // Does not overflow because the denominator cannot be zero at this stage in the function.\\n            uint256 twos = denominator & (~denominator + 1);\\n            assembly {\\n                // Divide denominator by twos.\\n                denominator := div(denominator, twos)\\n\\n                // Divide [prod1 prod0] by twos.\\n                prod0 := div(prod0, twos)\\n\\n                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n                twos := add(div(sub(0, twos), twos), 1)\\n            }\\n\\n            // Shift in bits from prod1 into prod0.\\n            prod0 |= prod1 * twos;\\n\\n            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n            // four bits. That is, denominator * inv = 1 mod 2^4.\\n            uint256 inverse = (3 * denominator) ^ 2;\\n\\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n            // in modular arithmetic, doubling the correct bits in each step.\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n            // is no longer required.\\n            result = prod0 * inverse;\\n            return result;\\n        }\\n    }\\n\\n    /**\\n     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n     */\\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\n        uint256 result = mulDiv(x, y, denominator);\\n        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n            result += 1;\\n        }\\n        return result;\\n    }\\n\\n    /**\\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n     *\\n     * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n     */\\n    function sqrt(uint256 a) internal pure returns (uint256) {\\n        if (a == 0) {\\n            return 0;\\n        }\\n\\n        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n        //\\n        // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n        //\\n        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n        //\\n        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n        uint256 result = 1 << (log2(a) >> 1);\\n\\n        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n        // into the expected uint128 result.\\n        unchecked {\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            return min(result, a / result);\\n        }\\n    }\\n\\n    /**\\n     * @notice Calculates sqrt(a), following the selected rounding direction.\\n     */\\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n        unchecked {\\n            uint256 result = sqrt(a);\\n            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n        }\\n    }\\n\\n    /**\\n     * @dev Return the log in base 2, rounded down, of a positive value.\\n     * Returns 0 if given 0.\\n     */\\n    function log2(uint256 value) internal pure returns (uint256) {\\n        uint256 result = 0;\\n        unchecked {\\n            if (value >> 128 > 0) {\\n                value >>= 128;\\n                result += 128;\\n            }\\n            if (value >> 64 > 0) {\\n                value >>= 64;\\n                result += 64;\\n            }\\n            if (value >> 32 > 0) {\\n                value >>= 32;\\n                result += 32;\\n            }\\n            if (value >> 16 > 0) {\\n                value >>= 16;\\n                result += 16;\\n            }\\n            if (value >> 8 > 0) {\\n                value >>= 8;\\n                result += 8;\\n            }\\n            if (value >> 4 > 0) {\\n                value >>= 4;\\n                result += 4;\\n            }\\n            if (value >> 2 > 0) {\\n                value >>= 2;\\n                result += 2;\\n            }\\n            if (value >> 1 > 0) {\\n                result += 1;\\n            }\\n        }\\n        return result;\\n    }\\n\\n    /**\\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n     * Returns 0 if given 0.\\n     */\\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n        unchecked {\\n            uint256 result = log2(value);\\n            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n        }\\n    }\\n\\n    /**\\n     * @dev Return the log in base 10, rounded down, of a positive value.\\n     * Returns 0 if given 0.\\n     */\\n    function log10(uint256 value) internal pure returns (uint256) {\\n        uint256 result = 0;\\n        unchecked {\\n            if (value >= 10 ** 64) {\\n                value /= 10 ** 64;\\n                result += 64;\\n            }\\n            if (value >= 10 ** 32) {\\n                value /= 10 ** 32;\\n                result += 32;\\n            }\\n            if (value >= 10 ** 16) {\\n                value /= 10 ** 16;\\n                result += 16;\\n            }\\n            if (value >= 10 ** 8) {\\n                value /= 10 ** 8;\\n                result += 8;\\n            }\\n            if (value >= 10 ** 4) {\\n                value /= 10 ** 4;\\n                result += 4;\\n            }\\n            if (value >= 10 ** 2) {\\n                value /= 10 ** 2;\\n                result += 2;\\n            }\\n            if (value >= 10 ** 1) {\\n                result += 1;\\n            }\\n        }\\n        return result;\\n    }\\n\\n    /**\\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n     * Returns 0 if given 0.\\n     */\\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n        unchecked {\\n            uint256 result = log10(value);\\n            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);\\n        }\\n    }\\n\\n    /**\\n     * @dev Return the log in base 256, rounded down, of a positive value.\\n     * Returns 0 if given 0.\\n     *\\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n     */\\n    function log256(uint256 value) internal pure returns (uint256) {\\n        uint256 result = 0;\\n        unchecked {\\n            if (value >> 128 > 0) {\\n                value >>= 128;\\n                result += 16;\\n            }\\n            if (value >> 64 > 0) {\\n                value >>= 64;\\n                result += 8;\\n            }\\n            if (value >> 32 > 0) {\\n                value >>= 32;\\n                result += 4;\\n            }\\n            if (value >> 16 > 0) {\\n                value >>= 16;\\n                result += 2;\\n            }\\n            if (value >> 8 > 0) {\\n                result += 1;\\n            }\\n        }\\n        return result;\\n    }\\n\\n    /**\\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\\n     * Returns 0 if given 0.\\n     */\\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n        unchecked {\\n            uint256 result = log256(value);\\n            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0xe4455ac1eb7fc497bb7402579e7b4d64d928b846fce7d2b6fde06d366f21c2b3\",\"license\":\"MIT\"},\"node_modules/@openzeppelin/contracts-v4/utils/math/SignedMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard signed math utilities missing in the Solidity language.\\n */\\nlibrary SignedMath {\\n    /**\\n     * @dev Returns the largest of two signed numbers.\\n     */\\n    function max(int256 a, int256 b) internal pure returns (int256) {\\n        return a > b ? a : b;\\n    }\\n\\n    /**\\n     * @dev Returns the smallest of two signed numbers.\\n     */\\n    function min(int256 a, int256 b) internal pure returns (int256) {\\n        return a < b ? a : b;\\n    }\\n\\n    /**\\n     * @dev Returns the average of two signed numbers without overflow.\\n     * The result is rounded towards zero.\\n     */\\n    function average(int256 a, int256 b) internal pure returns (int256) {\\n        // Formula from the book \\\"Hacker's Delight\\\"\\n        int256 x = (a & b) + ((a ^ b) >> 1);\\n        return x + (int256(uint256(x) >> 255) & (a ^ b));\\n    }\\n\\n    /**\\n     * @dev Returns the absolute unsigned value of a signed value.\\n     */\\n    function abs(int256 n) internal pure returns (uint256) {\\n        unchecked {\\n            // must be unchecked in order to support `n = type(int256).min`\\n            return uint256(n >= 0 ? n : -n);\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0xf92515413956f529d95977adc9b0567d583c6203fc31ab1c23824c35187e3ddc\",\"license\":\"MIT\"}},\"version\":1}","userdoc":{"kind":"user","notice":"Extension of MulticallHandler that restricts access to whitelisted callers","methods":{"constructor":{"notice":"Constructor that sets up the initial admin"},"WHITELISTED_CALLER_ROLE()":{"notice":"Role identifier for whitelisted callers"},"handleV3AcrossMessage(address,uint256,address,bytes)":{"notice":"Overrides handleV3AcrossMessage to add caller whitelist check"},"makeCallWithBalance(address,bytes,uint256,(address,uint256)[])":{"notice":"Executes a call while replacing specified calldata offsets with current token/native balances."}},"version":1},"devdoc":{"kind":"dev","title":"PermissionedMulticallHandler","events":{"RoleGranted(bytes32,address,address)":{"details":"Emitted when `account` is granted `role`. `sender` is the account that originated the contract call, an admin role bearer except when using {AccessControl-_setupRole}."},"RoleRevoked(bytes32,address,address)":{"details":"Emitted when `account` is revoked `role`. `sender` is the account that originated the contract call:   - if using `revokeRole`, it is the admin role bearer   - if using `renounceRole`, it is the role bearer (i.e. `account`)"},"RoleAdminChanged(bytes32,bytes32,bytes32)":{"details":"Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this. _Available since v3.1._"}},"details":"Uses OpenZeppelin's AccessControl for caller permission management. Only addresses with the WHITELISTED_CALLER_ROLE can call handleV3AcrossMessage.","methods":{"constructor":{"params":{"admin":"Address that will have DEFAULT_ADMIN_ROLE"}},"getRoleAdmin(bytes32)":{"details":"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."},"hasRole(bytes32,address)":{"details":"Returns `true` if `account` has been granted `role`."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}."},"grantRole(bytes32,address)":{"details":"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event."},"revokeRole(bytes32,address)":{"details":"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event."},"renounceRole(bytes32,address)":{"details":"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. May emit a {RoleRevoked} event."},"handleV3AcrossMessage(address,uint256,address,bytes)":{"params":{"token":"The token being transferred","amount":"The amount of tokens","message":"The encoded Instructions struct","relayer":"The relayer address"},"details":"Only addresses with WHITELISTED_CALLER_ROLE can call this function"},"makeCallWithBalance(address,bytes,uint256,(address,uint256)[])":{"params":{"value":"The native token value to send (ignored if native balance replacement is used)","target":"The contract address to call","callData":"The calldata to execute, with zero values at replacement positions","replacement":"Array of Replacement structs specifying token addresses and byte offsets for balance injection"},"details":"Modifies calldata in-place using OR operations. Target calldata positions must be zeroed out. Cannot handle negative balances, making it incompatible with DEXs requiring negative input amounts. For native balance (token = address(0)), the entire balance is used as call value."}},"version":1},"storageLayout":{"types":{"t_bool":{"label":"bool","encoding":"inplace","numberOfBytes":"1"},"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_bytes32":{"label":"bytes32","encoding":"inplace","numberOfBytes":"32"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_mapping(t_address,t_bool)":{"key":"t_address","label":"mapping(address => bool)","value":"t_bool","encoding":"mapping","numberOfBytes":"32"},"t_struct(RoleData)541_storage":{"label":"struct AccessControl.RoleData","members":[{"slot":"0","type":"t_mapping(t_address,t_bool)","astId":538,"label":"members","offset":0,"contract":"contracts/handlers/PermissionedMulticallHandler.sol:PermissionedMulticallHandler"},{"slot":"1","type":"t_bytes32","astId":540,"label":"adminRole","offset":0,"contract":"contracts/handlers/PermissionedMulticallHandler.sol:PermissionedMulticallHandler"}],"encoding":"inplace","numberOfBytes":"64"},"t_mapping(t_bytes32,t_struct(RoleData)541_storage)":{"key":"t_bytes32","label":"mapping(bytes32 => struct AccessControl.RoleData)","value":"t_struct(RoleData)541_storage","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_uint256","astId":921,"label":"_status","offset":0,"contract":"contracts/handlers/PermissionedMulticallHandler.sol:PermissionedMulticallHandler"},{"slot":"1","type":"t_mapping(t_bytes32,t_struct(RoleData)541_storage)","astId":546,"label":"_roles","offset":0,"contract":"contracts/handlers/PermissionedMulticallHandler.sol:PermissionedMulticallHandler"}]},"transientStorageLayout":null,"evm":{"bytecode":{"object":"6080346100d957601f61124038819003918201601f19168301916001600160401b038311848410176100dd578084926020946040528339810103126100d957516001600160a01b038116908190036100d95760015f9081558181525f5160206112205f395f51905f52602052604090205460ff1615610088575b60405161112e90816100f28239f35b5f8181525f5160206112205f395f51905f5260205260408120805460ff191660011790553391907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8180a45f610079565b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe608080604052600436101561001c575b50361561001a575f80fd5b005b5f3560e01c90816301ffc9a7146107e757508063248a9ca3146107b45780632f2ff15d146106f857806336568abe146106c35780633a5be8cb146105815780635f6ee30c1461054757806391d14854146104fd578063a217fddf146104e3578063a58d50d314610319578063c41e829514610130578063d547741f146100ed5763ef8738d3146100ac575f61000f565b346100e95760403660031901126100e9576100c5610850565b6024356001600160a01b03811681036100e95761001a916100e4610dce565b610de6565b5f80fd5b346100e95760403660031901126100e95761001a60043561010c61083a565b9061012b610126825f526001602052600160405f20015490565b610a57565b610a9f565b346100e95760803660031901126100e957610149610850565b60243567ffffffffffffffff81116100e9576101699036906004016108ea565b906064359067ffffffffffffffff82116100e957366023830112156100e957816004013567ffffffffffffffff81116100e9576024830192602436918360061b0101116100e9576101b8610dce565b604435925f5b82811061020d57855f80878784519160208601915af16101dc610a04565b50156101e457005b60405163b3beda7360e01b815260206004820152908190610209906024830190610948565b0390fd5b6001600160a01b03610228610223838686610a33565b610a43565b161561031057602460206001600160a01b03610248610223858888610a33565b16604051928380926370a0823160e01b82523060048301525afa908115610305575f916102d4575b505b602061027f838686610a33565b0135602081018082116102c05788518082116102ab5750508701602001805190911790526001016101be565b634d3ae48d60e01b5f5260045260245260445ffd5b634e487b7160e01b5f52601160045260245ffd5b90506020813d82116102fd575b816102ee602093836108ac565b810103126100e9575187610270565b3d91506102e1565b6040513d5f823e3d90fd5b47945084610272565b346100e95760203660031901126100e95760043567ffffffffffffffff81116100e957366023820112156100e957806004013561035581610930565b9161036360405193846108ac565b8183526024602084019260051b820101903682116100e95760248101925b82841061045c5784610391610dce565b80515f5b81811061039e57005b82518110156104485760208160051b840101516020810190815151151580610435575b610419575f918160406001600160a01b0385945116910151915191602083519301915af16103ed610a04565b50156103fb57600101610395565b6040516303918b1160e61b81529283925061020991600484016109ea565b60405163388ddcc360e21b8152806102098786600484016109ea565b506001600160a01b038151163b156103c1565b634e487b7160e01b5f52603260045260245ffd5b833567ffffffffffffffff81116100e9578201606060231982360301126100e9576040519161048a8361087c565b60248201356001600160a01b03811681036100e957835260448201359267ffffffffffffffff84116100e9576064602094936104cd8695602436918401016108ea565b8584015201356040820152815201930192610381565b346100e9575f3660031901126100e95760206040515f8152f35b346100e95760403660031901126100e95761051661083a565b6004355f5260016020526001600160a01b0360405f2091165f52602052602060ff60405f2054166040519015158152f35b346100e9575f3660031901126100e95760206040517f69048ea73402a715065a3029b4059a4e97d1461c95fa4fabca1084b5f34f4abe8152f35b346100e95760803660031901126100e95761059a610850565b6105a2610866565b5060643567ffffffffffffffff81116100e9576105c39036906004016108ea565b335f9081527ff9f8a8d829de1c11fdd691724f182d954bcae2d8f44e7aab584f413f377402bd602052604090205460ff16156106155760025f54146100e95761060f9160025f55610b37565b60015f55005b6100e96020601161062533610f89565b6037836106517f69048ea73402a715065a3029b4059a4e97d1461c95fa4fabca1084b5f34f4abe61102b565b6040519586947f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000828701528051918291018587015e8401907001034b99036b4b9b9b4b733903937b6329607d1b84830152805192839101604883015e01015f83820152030190601f19820181526108ac565b346100e95760403660031901126100e9576106dc61083a565b336001600160a01b038216036100e95761001a90600435610a9f565b346100e95760403660031901126100e95760043561071461083a565b9061072e610126825f526001602052600160405f20015490565b805f52600160205260405f206001600160a01b0383165f5260205260ff60405f2054161561075857005b805f52600160205260405f206001600160a01b0383165f5260205260405f20600160ff198254161790556001600160a01b03339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d5f80a4005b346100e95760203660031901126100e95760206107df6004355f526001602052600160405f20015490565b604051908152f35b346100e95760203660031901126100e9576004359063ffffffff60e01b82168092036100e957602091637965db0b60e01b8114908115610829575b5015158152f35b6301ffc9a760e01b14905083610822565b602435906001600160a01b03821682036100e957565b600435906001600160a01b03821682036100e957565b604435906001600160a01b03821682036100e957565b6060810190811067ffffffffffffffff82111761089857604052565b634e487b7160e01b5f52604160045260245ffd5b90601f8019910116810190811067ffffffffffffffff82111761089857604052565b67ffffffffffffffff811161089857601f01601f191660200190565b81601f820112156100e957803590610901826108ce565b9261090f60405194856108ac565b828452602083830101116100e957815f926020809301838601378301015290565b67ffffffffffffffff81116108985760051b60200190565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b9080602083519182815201916020808360051b8301019401925f915b83831061099757505050505090565b9091929394602080600192601f198582030186528851906001600160a01b0382511681526040806109d5858501516060878601526060850190610948565b93015191015297019301930191939290610988565b604090610a0193928152816020820152019061096c565b90565b3d15610a2e573d90610a15826108ce565b91610a2360405193846108ac565b82523d5f602084013e565b606090565b91908110156104485760061b0190565b356001600160a01b03811681036100e95790565b805f52600160205260405f206001600160a01b0333165f5260205260ff60405f20541615610a825750565b602060116100e992603783610651610a9933610f89565b9361102b565b805f52600160205260405f206001600160a01b0383165f5260205260ff60405f205416610aca575050565b805f52600160205260405f206001600160a01b0383165f5260205260405f2060ff1981541690556001600160a01b03339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b5f80a4565b51906001600160a01b03821682036100e957565b815182019160208301905f906020818603126100e95760208101519067ffffffffffffffff82116100e957016040818603126100e957604051926040840184811067ffffffffffffffff82111761089857604052602082015167ffffffffffffffff81116100e95760209083010181601f820112156100e957805196610bbc88610930565b97610bca604051998a6108ac565b8089526020808a019160051b840101928484116100e95760208101915b848310610d1b575050505050506040610c039186855201610b23565b936001600160a01b0360208401958087521615610ccb5750928184610c82956001600160a01b039451604051610c6481610c56602082019463a58d50d360e01b865260206024840152604483019061096c565b03601f1981018352826108ac565b519082305af1610c72610a04565b5015610c84575b50511690610de6565b565b517f5296f22c5d0413b66d0bf45c479c4e2ca5b278634bdbd028b48e49502105f966610cc2848451169260405191829160208352602083019061096c565b0390a25f610c79565b9350505050303b156100e9575f610cfe916040518093819263a58d50d360e01b835260206004840152602483019061096c565b038183305af1801561030557610d115750565b5f610c82916108ac565b825167ffffffffffffffff81116100e9578201906060828603126100e95760405190610d468261087c565b610d5260208401610b23565b8252604083015167ffffffffffffffff81116100e9576020908401019188601f840112156100e957825192610d86846108ce565b94610d9460405196876108ac565b8486528a602086840101116100e9576020955f8787819882606097018386015e830101528584015201516040820152815201920191610be7565b303303610dd757565b6314e1dbf760e11b5f5260045ffd5b6001600160a01b03168015610f44576040516370a0823160e01b815230600482015291602083602481855afa928315610305575f93610f10575b5082610e2b57505050565b6001600160a01b0316610eb36040515f806020830163a9059cbb60e01b815285602485015287604485015260448452610e656064856108ac565b60405193610e746040866108ac565b602085527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65646020860152519082885af1610eac610a04565b90856110cd565b8051908115918215610eed575b5050156100e9577f74d3741ef03417659087d2ec6af11dade8713f9b7f592569d60cf1ea0c9a44555f80a4565b81925090602091810103126100e9576020015180151581036100e9575f80610ec0565b9092506020813d602011610f3c575b81610f2c602093836108ac565b810103126100e95751915f610e20565b3d9150610f1f565b50479081610f50575050565b8147106100e9575f8080936001600160a01b038294165af1610f70610a04565b50156100e957565b908151811015610448570160200190565b610f93602a6108ce565b90610fa160405192836108ac565b602a8252610faf602a6108ce565b6020830190601f19013682378251156104485760309053815160011015610448576078602183015360295b60018111610fea57506100e95790565b90600f81166010811015610448576f181899199a1a9b1b9c1cb0b131b232b360811b901a6110188385610f78565b5360041c9080156102c0575f1901610fda565b61103560426108ce565b9061104360405192836108ac565b6042825261105160426108ce565b6020830190601f19013682378251156104485760309053815160011015610448576078602183015360415b6001811161108c57506100e95790565b90600f81166010811015610448576f181899199a1a9b1b9c1cb0b131b232b360811b901a6110ba8385610f78565b5360041c9080156102c0575f190161107c565b919250156110e9578151156110e0575090565b3b156100e95790565b5080519081156100e957602001fdfea264697066735822122009640042ad352092c41b3e7829e02053539436e4415dc96f23233453f0d4fc7064736f6c634300081e0033a6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49","sourceMap":"503:1115:1:-:0;;;;;;;;;;;;;-1:-1:-1;;503:1115:1;;;;-1:-1:-1;;;;;503:1115:1;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;503:1115:1;;;;;;;;1716:1:5;-1:-1:-1;1716:1:5;;;503:1115:1;;;-1:-1:-1;;;;;;;;;;;503:1115:1;;;;;;;;7669:23:3;7665:149;;-1:-1:-1;503:1115:1;;;;;;;;;7665:149:3;-1:-1:-1;503:1115:1;;;-1:-1:-1;;;;;;;;;;;503:1115:1;;;;;;;-1:-1:-1;;503:1115:1;1716:1:5;503:1115:1;;;734:10:10;;503:1115:1;7763:40:3;-1:-1:-1;;7763:40:3;7665:149;;;503:1115:1;-1:-1:-1;503:1115:1;;;;;;-1:-1:-1;503:1115:1;;;;;-1:-1:-1;503:1115:1","linkReferences":{}},"deployedBytecode":{"object":"608080604052600436101561001c575b50361561001a575f80fd5b005b5f3560e01c90816301ffc9a7146107e757508063248a9ca3146107b45780632f2ff15d146106f857806336568abe146106c35780633a5be8cb146105815780635f6ee30c1461054757806391d14854146104fd578063a217fddf146104e3578063a58d50d314610319578063c41e829514610130578063d547741f146100ed5763ef8738d3146100ac575f61000f565b346100e95760403660031901126100e9576100c5610850565b6024356001600160a01b03811681036100e95761001a916100e4610dce565b610de6565b5f80fd5b346100e95760403660031901126100e95761001a60043561010c61083a565b9061012b610126825f526001602052600160405f20015490565b610a57565b610a9f565b346100e95760803660031901126100e957610149610850565b60243567ffffffffffffffff81116100e9576101699036906004016108ea565b906064359067ffffffffffffffff82116100e957366023830112156100e957816004013567ffffffffffffffff81116100e9576024830192602436918360061b0101116100e9576101b8610dce565b604435925f5b82811061020d57855f80878784519160208601915af16101dc610a04565b50156101e457005b60405163b3beda7360e01b815260206004820152908190610209906024830190610948565b0390fd5b6001600160a01b03610228610223838686610a33565b610a43565b161561031057602460206001600160a01b03610248610223858888610a33565b16604051928380926370a0823160e01b82523060048301525afa908115610305575f916102d4575b505b602061027f838686610a33565b0135602081018082116102c05788518082116102ab5750508701602001805190911790526001016101be565b634d3ae48d60e01b5f5260045260245260445ffd5b634e487b7160e01b5f52601160045260245ffd5b90506020813d82116102fd575b816102ee602093836108ac565b810103126100e9575187610270565b3d91506102e1565b6040513d5f823e3d90fd5b47945084610272565b346100e95760203660031901126100e95760043567ffffffffffffffff81116100e957366023820112156100e957806004013561035581610930565b9161036360405193846108ac565b8183526024602084019260051b820101903682116100e95760248101925b82841061045c5784610391610dce565b80515f5b81811061039e57005b82518110156104485760208160051b840101516020810190815151151580610435575b610419575f918160406001600160a01b0385945116910151915191602083519301915af16103ed610a04565b50156103fb57600101610395565b6040516303918b1160e61b81529283925061020991600484016109ea565b60405163388ddcc360e21b8152806102098786600484016109ea565b506001600160a01b038151163b156103c1565b634e487b7160e01b5f52603260045260245ffd5b833567ffffffffffffffff81116100e9578201606060231982360301126100e9576040519161048a8361087c565b60248201356001600160a01b03811681036100e957835260448201359267ffffffffffffffff84116100e9576064602094936104cd8695602436918401016108ea565b8584015201356040820152815201930192610381565b346100e9575f3660031901126100e95760206040515f8152f35b346100e95760403660031901126100e95761051661083a565b6004355f5260016020526001600160a01b0360405f2091165f52602052602060ff60405f2054166040519015158152f35b346100e9575f3660031901126100e95760206040517f69048ea73402a715065a3029b4059a4e97d1461c95fa4fabca1084b5f34f4abe8152f35b346100e95760803660031901126100e95761059a610850565b6105a2610866565b5060643567ffffffffffffffff81116100e9576105c39036906004016108ea565b335f9081527ff9f8a8d829de1c11fdd691724f182d954bcae2d8f44e7aab584f413f377402bd602052604090205460ff16156106155760025f54146100e95761060f9160025f55610b37565b60015f55005b6100e96020601161062533610f89565b6037836106517f69048ea73402a715065a3029b4059a4e97d1461c95fa4fabca1084b5f34f4abe61102b565b6040519586947f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000828701528051918291018587015e8401907001034b99036b4b9b9b4b733903937b6329607d1b84830152805192839101604883015e01015f83820152030190601f19820181526108ac565b346100e95760403660031901126100e9576106dc61083a565b336001600160a01b038216036100e95761001a90600435610a9f565b346100e95760403660031901126100e95760043561071461083a565b9061072e610126825f526001602052600160405f20015490565b805f52600160205260405f206001600160a01b0383165f5260205260ff60405f2054161561075857005b805f52600160205260405f206001600160a01b0383165f5260205260405f20600160ff198254161790556001600160a01b03339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d5f80a4005b346100e95760203660031901126100e95760206107df6004355f526001602052600160405f20015490565b604051908152f35b346100e95760203660031901126100e9576004359063ffffffff60e01b82168092036100e957602091637965db0b60e01b8114908115610829575b5015158152f35b6301ffc9a760e01b14905083610822565b602435906001600160a01b03821682036100e957565b600435906001600160a01b03821682036100e957565b604435906001600160a01b03821682036100e957565b6060810190811067ffffffffffffffff82111761089857604052565b634e487b7160e01b5f52604160045260245ffd5b90601f8019910116810190811067ffffffffffffffff82111761089857604052565b67ffffffffffffffff811161089857601f01601f191660200190565b81601f820112156100e957803590610901826108ce565b9261090f60405194856108ac565b828452602083830101116100e957815f926020809301838601378301015290565b67ffffffffffffffff81116108985760051b60200190565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b9080602083519182815201916020808360051b8301019401925f915b83831061099757505050505090565b9091929394602080600192601f198582030186528851906001600160a01b0382511681526040806109d5858501516060878601526060850190610948565b93015191015297019301930191939290610988565b604090610a0193928152816020820152019061096c565b90565b3d15610a2e573d90610a15826108ce565b91610a2360405193846108ac565b82523d5f602084013e565b606090565b91908110156104485760061b0190565b356001600160a01b03811681036100e95790565b805f52600160205260405f206001600160a01b0333165f5260205260ff60405f20541615610a825750565b602060116100e992603783610651610a9933610f89565b9361102b565b805f52600160205260405f206001600160a01b0383165f5260205260ff60405f205416610aca575050565b805f52600160205260405f206001600160a01b0383165f5260205260405f2060ff1981541690556001600160a01b03339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b5f80a4565b51906001600160a01b03821682036100e957565b815182019160208301905f906020818603126100e95760208101519067ffffffffffffffff82116100e957016040818603126100e957604051926040840184811067ffffffffffffffff82111761089857604052602082015167ffffffffffffffff81116100e95760209083010181601f820112156100e957805196610bbc88610930565b97610bca604051998a6108ac565b8089526020808a019160051b840101928484116100e95760208101915b848310610d1b575050505050506040610c039186855201610b23565b936001600160a01b0360208401958087521615610ccb5750928184610c82956001600160a01b039451604051610c6481610c56602082019463a58d50d360e01b865260206024840152604483019061096c565b03601f1981018352826108ac565b519082305af1610c72610a04565b5015610c84575b50511690610de6565b565b517f5296f22c5d0413b66d0bf45c479c4e2ca5b278634bdbd028b48e49502105f966610cc2848451169260405191829160208352602083019061096c565b0390a25f610c79565b9350505050303b156100e9575f610cfe916040518093819263a58d50d360e01b835260206004840152602483019061096c565b038183305af1801561030557610d115750565b5f610c82916108ac565b825167ffffffffffffffff81116100e9578201906060828603126100e95760405190610d468261087c565b610d5260208401610b23565b8252604083015167ffffffffffffffff81116100e9576020908401019188601f840112156100e957825192610d86846108ce565b94610d9460405196876108ac565b8486528a602086840101116100e9576020955f8787819882606097018386015e830101528584015201516040820152815201920191610be7565b303303610dd757565b6314e1dbf760e11b5f5260045ffd5b6001600160a01b03168015610f44576040516370a0823160e01b815230600482015291602083602481855afa928315610305575f93610f10575b5082610e2b57505050565b6001600160a01b0316610eb36040515f806020830163a9059cbb60e01b815285602485015287604485015260448452610e656064856108ac565b60405193610e746040866108ac565b602085527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65646020860152519082885af1610eac610a04565b90856110cd565b8051908115918215610eed575b5050156100e9577f74d3741ef03417659087d2ec6af11dade8713f9b7f592569d60cf1ea0c9a44555f80a4565b81925090602091810103126100e9576020015180151581036100e9575f80610ec0565b9092506020813d602011610f3c575b81610f2c602093836108ac565b810103126100e95751915f610e20565b3d9150610f1f565b50479081610f50575050565b8147106100e9575f8080936001600160a01b038294165af1610f70610a04565b50156100e957565b908151811015610448570160200190565b610f93602a6108ce565b90610fa160405192836108ac565b602a8252610faf602a6108ce565b6020830190601f19013682378251156104485760309053815160011015610448576078602183015360295b60018111610fea57506100e95790565b90600f81166010811015610448576f181899199a1a9b1b9c1cb0b131b232b360811b901a6110188385610f78565b5360041c9080156102c0575f1901610fda565b61103560426108ce565b9061104360405192836108ac565b6042825261105160426108ce565b6020830190601f19013682378251156104485760309053815160011015610448576078602183015360415b6001811161108c57506100e95790565b90600f81166010811015610448576f181899199a1a9b1b9c1cb0b131b232b360811b901a6110ba8385610f78565b5360041c9080156102c0575f190161107c565b919250156110e9578151156110e0575090565b3b156100e95790565b5080519081156100e957602001fdfea264697066735822122009640042ad352092c41b3e7829e02053539436e4415dc96f23233453f0d4fc7064736f6c634300081e0033","sourceMap":"503:1115:1:-:0;;;;;;;;;;-1:-1:-1;503:1115:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;503:1115:1;;;;;;:::i;:::-;;;-1:-1:-1;;;;;503:1115:1;;;;;;4267:11:0;1909:62;;;:::i;:::-;4267:11;:::i;503:1115:1:-;;;;;;;;;;-1:-1:-1;;503:1115:1;;;;5486:7:3;503:1115:1;;;;:::i;:::-;5438:18:3;2642:4;5438:18;;-1:-1:-1;503:1115:1;4604:6:3;503:1115:1;;4604:6:3;503:1115:1;-1:-1:-1;503:1115:1;4604:22:3;503:1115:1;4504:129:3;;5438:18;2642:4;:::i;:::-;5486:7;:::i;503:1115:1:-;;;;;;-1:-1:-1;;503:1115:1;;;;;;:::i;:::-;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1909:62:0;;:::i;:::-;503:1115:1;;5876:13:0;503:1115:1;5891:22:0;;;;;;7923:37;503:1115:1;7923:37:0;;;;;;503:1115:1;7923:37:0;;;;;;;:::i;:::-;;7974:8;7970:52;;503:1115:1;7970:52:0;503:1115:1;;-1:-1:-1;;;7991:31:0;;503:1115:1;;7991:31:0;;503:1115:1;;;;;;;;;;;:::i;:::-;7991:31:0;;;5915:3;-1:-1:-1;;;;;5967:20:0;:14;;;;;:::i;:::-;:20;:::i;:::-;503:1115:1;5967:34:0;503:1115:1;;;;-1:-1:-1;;;;;6034:20:0;:14;;;;;:::i;:20::-;503:1115:1;;;;;;;;;;6027:53:0;;6074:4;503:1115:1;6027:53:0;;503:1115:1;6027:53:0;;;;;;;503:1115:1;6027:53:0;;;5963:352;6021:59;5963:352;503:1115:1;6401:14:0;;;;;:::i;:::-;:21;503:1115:1;;;;;;;;;;;6663:24:0;;;6659:78;;-1:-1:-1;;6752:1132:0;;503:1115:1;6752:1132:0;;;;;;;;503:1115:1;;5876:13:0;;6659:78;6696:41;;;503:1115:1;6696:41:0;503:1115:1;;;;;;6696:41:0;503:1115:1;;;;;;;;;;;;6027:53:0;;;503:1115:1;6027:53:0;;;;;;;;;503:1115:1;6027:53:0;;;:::i;:::-;;;503:1115:1;;;;;6027:53:0;;;;;;-1:-1:-1;6027:53:0;;;503:1115:1;;;;;;;;;5963:352:0;6125:21;;-1:-1:-1;6125:21:0;5963:352;;503:1115:1;;;;;;-1:-1:-1;;503:1115:1;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1909:62:0;;;:::i;:::-;503:1115:1;;;3669:10:0;;;;;;503:1115:1;3681:3:0;503:1115:1;;;;;;;;;;;;;;3719:8:0;503:1115:1;3853:13:0;;;;;503:1115:1;3853:24:0;;:56;;;3681:3;3849:123;;503:1115:1;;;;-1:-1:-1;;;;;503:1115:1;;;;4030:10:0;;503:1115:1;4043:13:0;;4005:52;503:1115:1;4005:52:0;;;;;;;;;:::i;:::-;;4075:8;4071:43;;503:1115:1;;3654:13:0;;4071:43;503:1115:1;;-1:-1:-1;;;4092:22:0;;503:1115:1;;;-1:-1:-1;4092:22:0;;503:1115:1;4092:22:0;;;:::i;3849:123::-;503:1115:1;;-1:-1:-1;;;3936:21:0;;503:1115:1;3936:21:0;503:1115:1;;;3936:21:0;;;:::i;3853:56::-;503:1115:1;-1:-1:-1;;;;;503:1115:1;;;3881:23:0;:28;3853:56;;503:1115:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;503:1115:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;503:1115:1;;;;;;;;;;;;;;;;;-1:-1:-1;;503:1115:1;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;;;;;503:1115:1;;;3130:29:3;503:1115:1;-1:-1:-1;503:1115:1;;;;;;-1:-1:-1;503:1115:1;;;;;;;;;;;;;;;;;-1:-1:-1;;503:1115:1;;;;;;;688:36;503:1115;;;;;;;;;-1:-1:-1;;503:1115:1;;;;;;:::i;:::-;;;:::i;:::-;;;;;;;;;;;;;;;;:::i;:::-;734:10:10;503:1115:1;;;;;;;;;;;;;3931:23:3;3927:390;;1759:1:5;503:1115:1;;2468:19:5;503:1115:1;;2618:915:0;1759:1:5;;503:1115:1;1759:1:5;2618:915:0;:::i;:::-;503:1115:1;;1759:1:5;503:1115:1;3927:390:3;4022:252;503:1115:1;;2497:52:11;734:10:10;2497:52:11;:::i;:::-;503:1115:1;4214:38:3;;688:36:1;4214:38:3;:::i;:::-;503:1115:1;;4022:252:3;;;503:1115:1;4022:252:3;;;503:1115:1;;;;;;;;;;;;;;-1:-1:-1;;;503:1115:1;;;;;;;;;;;;;;;;;;;;;4022:252:3;;;;;;;;;;:::i;503:1115:1:-;;;;;;-1:-1:-1;;503:1115:1;;;;;;:::i;:::-;734:10:10;-1:-1:-1;;;;;503:1115:1;;6133:23:3;503:1115:1;;6237:7:3;503:1115:1;;;6237:7:3;:::i;503:1115:1:-;;;;;;-1:-1:-1;;503:1115:1;;;;;;;;:::i;:::-;5012:18:3;2642:4;5012:18;;-1:-1:-1;503:1115:1;4604:6:3;503:1115:1;;4604:6:3;503:1115:1;-1:-1:-1;503:1115:1;4604:22:3;503:1115:1;4504:129:3;;2642:4;503:1115:1;;;;;;;;;-1:-1:-1;;;;;503:1115:1;;-1:-1:-1;503:1115:1;;;;;-1:-1:-1;503:1115:1;;;7669:23:3;7665:149;;503:1115:1;7665:149:3;503:1115:1;;;;;;;;;-1:-1:-1;;;;;503:1115:1;;-1:-1:-1;503:1115:1;;;;-1:-1:-1;503:1115:1;;;;;;;;;;-1:-1:-1;;;;;734:10:10;503:1115:1;;7763:40:3;;503:1115:1;7763:40:3;;503:1115:1;;;;;;;-1:-1:-1;;503:1115:1;;;;;;;;-1:-1:-1;503:1115:1;4604:6:3;503:1115:1;;4604:6:3;503:1115:1;-1:-1:-1;503:1115:1;4604:22:3;503:1115:1;4504:129:3;;503:1115:1;;;;;;;;;;;;;-1:-1:-1;;503:1115:1;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2840:47:3;;;:87;;;;503:1115:1;;;;;;;2840:87:3;-1:-1:-1;;;937:40:12;;-1:-1:-1;2840:87:3;;;503:1115:1;;;;-1:-1:-1;;;;;503:1115:1;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;503:1115:1;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;503:1115:1;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;-1:-1:-1;503:1115:1;;;;;-1:-1:-1;503:1115:1;;;;4022:252:3;;503:1115:1;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;-1:-1:-1;;503:1115:1;;;;:::o;:::-;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;503:1115:1;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;-1:-1:-1;503:1115:1;;;;;;;;-1:-1:-1;;503:1115:1;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;503:1115:1;;;;;;;;;;;;;:::o;:::-;4022:252:3;;;;;503:1115:1;4022:252:3;503:1115:1;4022:252:3;;;503:1115:1;;;;;;;;;-1:-1:-1;;;;;503:1115:1;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::o;:::-;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;-1:-1:-1;503:1115:1;;;;:::o;:::-;;;:::o;:::-;;;;;;;;;;;;:::o;:::-;;-1:-1:-1;;;;;503:1115:1;;;;;;;:::o;3460:103:3:-;503:1115:1;-1:-1:-1;503:1115:1;3130:6:3;503:1115:1;;;-1:-1:-1;503:1115:1;-1:-1:-1;;;;;734:10:10;503:1115:1;-1:-1:-1;503:1115:1;;;;;-1:-1:-1;503:1115:1;;;3931:23:3;3927:390;;3460:103;:::o;3927:390::-;503:1115:1;;4022:252:3;734:10:10;503:1115:1;734:10:10;4214:38:3;2497:52:11;734:10:10;2497:52:11;:::i;:::-;4214:38:3;;:::i;7991:234::-;503:1115:1;-1:-1:-1;503:1115:1;3130:6:3;503:1115:1;;;-1:-1:-1;503:1115:1;-1:-1:-1;;;;;503:1115:1;;-1:-1:-1;503:1115:1;;;;;-1:-1:-1;503:1115:1;;;8070:149:3;;7991:234;;:::o;8070:149::-;503:1115:1;-1:-1:-1;503:1115:1;3130:6:3;503:1115:1;;;-1:-1:-1;503:1115:1;-1:-1:-1;;;;;503:1115:1;;-1:-1:-1;503:1115:1;;;;-1:-1:-1;503:1115:1;;;;;;;;-1:-1:-1;;;;;734:10:10;503:1115:1;;8168:40:3;;-1:-1:-1;8168:40:3;;7991:234::o;503:1115:1:-;;;-1:-1:-1;;;;;503:1115:1;;;;;;:::o;2618:915:0:-;503:1115:1;;2777:35:0;;;;;;;-1:-1:-1;503:1115:1;2777:35:0;503:1115:1;;;;;;2777:35:0;;;503:1115:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2777:35:0;503:1115:1;;;;;;;;2777:35:0;503:1115:1;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;2777:35:0;503:1115:1;;;;;;;;;;;;;;;2777:35:0;503:1115:1;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;-1:-1:-1;;;;;2777:35:0;503:1115:1;;;;;;;2914:44:0;2910:132;;3223:18;;;;3486:39;3223:18;-1:-1:-1;;;;;3223:18:0;;503:1115:1;;3188:55:0;;503:1115:1;2777:35:0;3188:55;;503:1115:1;;;;3188:55:0;;2777:35;3188:55;;;503:1115:1;;;;;;:::i;:::-;3188:55:0;4022:252:3;;3188:55:0;;;;;;:::i;:::-;3169:75;3177:4;;;3169:75;;;;:::i;:::-;;3258:8;3254:82;;503:1115:1;;;;3486:39:0;;:::i;:::-;2618:915::o;3254:82::-;3285:18;3273:63;503:1115:1;;;;;;;;;;;2777:35:0;503:1115:1;;2777:35:0;503:1115:1;;;;:::i;:::-;3273:63:0;;;3254:82;;;2910:132;2974:4;;;;;;:37;;;;-1:-1:-1;503:1115:1;;;;;;;;;;;2974:37:0;;2777:35;2974:37;;;503:1115:1;;;;;;:::i;:::-;2974:37:0;:4;;;:37;;;;;;;;3025:7;:::o;2974:37::-;-1:-1:-1;2974:37:0;;;:::i;503:1115:1:-;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2777:35:0;503:1115:1;;;:::i;:::-;;;;;;;;;;;;2777:35:0;503:1115:1;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;2777:35:0;503:1115:1;;;;;;;2777:35:0;503:1115:1;-1:-1:-1;503:1115:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8035:265:0;8270:4;8248:10;:27;8244:49;;8035:265::o;8244:49::-;8284:9;;;;;;;;4292:599;-1:-1:-1;;;;;503:1115:1;4390:19:0;;503:1115:1;;;;-1:-1:-1;;;4470:38:0;;4502:4;4470:38;;;503:1115:1;;;;4470:38:0;503:1115:1;4470:38:0;;;;;;;;4407:1;4470:38;;;4386:499;4526:10;;4522:160;;4386:499;;;4292:599::o;4522:160::-;-1:-1:-1;;;;;503:1115:1;5535:69:9;503:1115:1;;4407:1:0;1050:58:8;503:1115:1;1050:58:8;;503:1115:1;;;1050:58:8;;;4470:38:0;1050:58:8;;503:1115:1;;;;;;;1050:58:8;;;;;;:::i;:::-;503:1115:1;;;;;;;:::i;:::-;;;;;;;;;5487:31:9;;;;;;;;:::i;:::-;5535:69;;;:::i;:::-;503:1115:1;;5728:22:8;;;:56;;;;;4522:160:0;503:1115:1;;;;;4626:41:0;4407:1;4626:41;;4292:599::o;5728:56:8:-;5754:30;;;;503:1115:1;5754:30:8;;;503:1115:1;;;;;5754:30:8;503:1115:1;;;;;;;;5728:56:8;;;;4470:38:0;;;;503:1115:1;4470:38:0;;503:1115:1;4470:38:0;;;;;;503:1115:1;4470:38:0;;;:::i;:::-;;;503:1115:1;;;;;4470:38:0;;;;;;;-1:-1:-1;4470:38:0;;4386:499;4762:21;;4801:10;;4797:78;;4386:499;;4292:599::o;4797:78::-;2736:21:9;;:31;503:1115:1;;4407:1:0;503:1115:1;;;-1:-1:-1;;;;;503:1115:1;;;2831:33:9;;;;:::i;:::-;;503:1115:1;;;4292:599:0:o;503:1115:1:-;;;;;;;;;;;;;:::o;1818:437:11:-;503:1115:1;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;-1:-1:-1;;503:1115:1;;;;;;;;;1975:15:11;;;503:1115:1;;;;;;;2000:15:11;503:1115:1;;;2000:15:11;503:1115:1;2058:5:11;503:1115:1;2058:5:11;;;;2170:10;503:1115:1;;1818:437:11;:::o;2065:3::-;2105:11;2113:3;2105:11;;2096:21;;;;;;-1:-1:-1;;;2096:21:11;;2084:33;;;;:::i;:::-;;2141:1;278:18;2065:3;503:1115:1;;;;-1:-1:-1;;503:1115:1;2030:26:11;;1818:437;503:1115:1;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;-1:-1:-1;;503:1115:1;;;;;;;;;1975:15:11;;;503:1115:1;;;;;;;2000:15:11;503:1115:1;;;2000:15:11;503:1115:1;2058:5:11;503:1115:1;2058:5:11;;;;2170:10;503:1115:1;;1818:437:11;:::o;2065:3::-;2105:11;2113:3;2105:11;;2096:21;;;;;;-1:-1:-1;;;2096:21:11;;2084:33;;;;:::i;:::-;;2141:1;278:18;2065:3;503:1115:1;;;;-1:-1:-1;;503:1115:1;2030:26:11;;7671:628:9;;;-1:-1:-1;7875:418:9;;;503:1115:1;;7906:22:9;7902:286;;8201:17;;:::o;7902:286::-;1702:19;:23;503:1115:1;;8201:17:9;:::o;7875:418::-;-1:-1:-1;503:1115:1;;;8980:21:9;;;;9152:142;;","linkReferences":{},"immutableReferences":{}}}}}}},"signatures":{"function":[{"signature":"attemptCalls((address,bytes,uint256)[])","signatureHash4":"0xa58d50d3","signatureHash32":"0xa58d50d33e8ca02b44261f089a999186190e4a1a4dba8da1abcddc75e065743f"},{"signature":"DEFAULT_ADMIN_ROLE()","signatureHash4":"0xa217fddf","signatureHash32":"0xa217fddfde7807bb766525e432eeeecaaf4de889a05e8df9fb827257fb978cf4"},{"signature":"drainLeftoverTokens(address,address)","signatureHash4":"0xef8738d3","signatureHash32":"0xef8738d3ceefeb653dbdf00c2de8d99743983d4cd8c1deb34f98943e5dc97d1f"},{"signature":"getRoleAdmin(bytes32)","signatureHash4":"0x248a9ca3","signatureHash32":"0x248a9ca39e7e298ea3bbd193e7d36b87492efea84ff513fd03940aaa5bc0d98f"},{"signature":"grantRole(bytes32,address)","signatureHash4":"0x2f2ff15d","signatureHash32":"0x2f2ff15deca029b64bbc0874ae59c8f39be024a95aa718b4c13ca407db350be8"},{"signature":"handleV3AcrossMessage(address,uint256,address,bytes)","signatureHash4":"0x3a5be8cb","signatureHash32":"0x3a5be8cbfefb3e36650dbf13dc0ad48c382b4c7618c1e384069fb89d360a2b23"},{"signature":"hasRole(bytes32,address)","signatureHash4":"0x91d14854","signatureHash32":"0x91d1485424b278bc736d5d34907ed48280c7188845bc82b33370da2b4dc1194e"},{"signature":"makeCallWithBalance(address,bytes,uint256,(address,uint256)[])","signatureHash4":"0xc41e8295","signatureHash32":"0xc41e8295f9fb75260522f2a573086cf1f219fa74a8973a172f245401515ed897"},{"signature":"renounceRole(bytes32,address)","signatureHash4":"0x36568abe","signatureHash32":"0x36568abe2c7e6c1d662bad0fe1760ac72cf2f9478a86be824d68ec83895c49e9"},{"signature":"revokeRole(bytes32,address)","signatureHash4":"0xd547741f","signatureHash32":"0xd547741fd8d55981251e167708119763c372f2b41e85a1468b0a759b055a009f"},{"signature":"supportsInterface(bytes4)","signatureHash4":"0x01ffc9a7","signatureHash32":"0x01ffc9a7a5cef8baa21ed3c5c0d7e23accb804b619e9333b597f47a0d84076e2"},{"signature":"WHITELISTED_CALLER_ROLE()","signatureHash4":"0x5f6ee30c","signatureHash32":"0x5f6ee30cac2de89a5c6d1837490fabc399ba7a72e4ed8559ac4a40c8737d9e68"}],"event":[{"signature":"CallsFailed((address,bytes,uint256)[],address)","signatureHash4":"0x5296f22c","signatureHash32":"0x5296f22c5d0413b66d0bf45c479c4e2ca5b278634bdbd028b48e49502105f966"},{"signature":"DrainedTokens(address,address,uint256)","signatureHash4":"0x74d3741e","signatureHash32":"0x74d3741ef03417659087d2ec6af11dade8713f9b7f592569d60cf1ea0c9a4455"},{"signature":"RoleAdminChanged(bytes32,bytes32,bytes32)","signatureHash4":"0xbd79b86f","signatureHash32":"0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff"},{"signature":"RoleGranted(bytes32,address,address)","signatureHash4":"0x2f878811","signatureHash32":"0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d"},{"signature":"RoleRevoked(bytes32,address,address)","signatureHash4":"0xf6391f5c","signatureHash32":"0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b"}],"error":[{"signature":"CalldataTooShort(uint256,uint256)","signatureHash4":"0x4d3ae48d","signatureHash32":"0x4d3ae48d2ab42a760948ec4faff1a829e7d2ca05cdf0a7272e8dcfe6655db927"},{"signature":"CallReverted(uint256,(address,bytes,uint256)[])","signatureHash4":"0xe462c440","signatureHash32":"0xe462c44069d08b11533e3cb960b73d8b0c8437eeacb88647d0cc0f54e265bae6"},{"signature":"InvalidCall(uint256,(address,bytes,uint256)[])","signatureHash4":"0xe237730c","signatureHash32":"0xe237730cdb78225cab4c99eb8d6dba8e3f972a272632c33ae6a29e545e31c1c6"},{"signature":"NotSelf()","signatureHash4":"0x29c3b7ee","signatureHash32":"0x29c3b7ee14a7adaa7fba7b043229509fe963f719303620e91e88c61c6b12de34"},{"signature":"ReplacementCallFailed(bytes)","signatureHash4":"0xb3beda73","signatureHash32":"0xb3beda739187f9cce498dd6e6d02b7a9d87b96c02962d10a8b66a332fd933f59"}]},"proxyResolution":{"isProxy":false,"proxyType":null,"implementations":[]},"match":"match","chainId":"1","address":"0xDd52f8134f85f3979fbA24387Ce0CEC05937259E"}