{"matchId":"42970172","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2026-07-28T11:43:15Z","creationBytecode":{"onchainBytecode":"0x610120604052348015610010575f5ffd5b50306080524660a05260608061005e604080518082018252600d81526c11195c1bdcda5d15d85b1b195d609a1b602080830191909152825180840190935260018352603160f81b9083015291565b815160209283012081519183019190912060c082905260e0819052604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8152938401929092529082015246606082015230608082015260a0902061010052506100ca90506100cf565b610134565b63409feecd19805460018116156100ed5763f92ee8a95f526004601cfd5b6001600160401b03808260011c1461012f578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60805160a05160c05160e0516101005161517a6101715f395f6130a501525f61315f01525f61313901525f6130e901525f6130c6015261517a5ff3fe608060405260043610610201575f3560e01c80638dc2c6891161011c578063d0f31620116100af578063e1f93ac51161007e578063e63f952f11610063578063e63f952f146105f5578063e8c8bf6414610614578063e9e371361461063357610208565b8063e1f93ac5146105c2578063e30c3978146105e157610208565b8063d0f3162014610536578063d4eec5a614610555578063d7fa476f14610569578063d8cb0d66146105a357610208565b8063affed0e0116100eb578063affed0e0146104d0578063b9ac71d6146104e4578063c45a015514610503578063c4d66de81461051757610208565b80638dc2c6891461044c578063a338d2171461046b578063adc8693e1461048a578063af640d0f146104bc57610208565b80635b48684e116101945780637ae26773116101635780637ae26773146103b95780638456cb59146103d857806384b0196e146103ec5780638da5cb5b1461041357610208565b80635b48684e1461035b5780635c975abb1461036f578063745ba8061461039157806376d0e490146103a557610208565b80632a45cacf116101d05780632a45cacf146102f55780633f4ba83a1461031457806344004cc11461032857806354d1f13d1461034757610208565b806307b18bde146102415780630a276680146102625780631626ba7e1461028157806324017fae146102d657610208565b3661020857005b5f3560e01c63bc197c81811463f23a6e6182141763150b7a028214171561023357806020526020603cf35b50633c10b94e5f526004601cfd5b34801561024c575f5ffd5b5061026061025b36600461441c565b610654565b005b34801561026d575f5ffd5b5061026061027c36600461441c565b6107cb565b34801561028c575f5ffd5b506102a061029b366004614484565b610812565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b3480156102e1575f5ffd5b506102606102f036600461441c565b6109a6565b348015610300575f5ffd5b5061026061030f3660046144cc565b610ac3565b34801561031f575f5ffd5b50610260610c90565b348015610333575f5ffd5b50610260610342366004614503565b610dfb565b348015610352575f5ffd5b50610260610f8b565b348015610366575f5ffd5b50610260610fcc565b34801561037a575f5ffd5b50610383611133565b6040519081526020016102cd565b34801561039c575f5ffd5b50610383611167565b3480156103b0575f5ffd5b50610383611175565b3480156103c4575f5ffd5b506102606103d33660046144cc565b61117e565b3480156103e3575f5ffd5b50610260611300565b3480156103f7575f5ffd5b50610400611371565b6040516102cd979695949392919061458d565b34801561041e575f5ffd5b50610427611419565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102cd565b348015610457575f5ffd5b5061026061046636600461464c565b611422565b348015610476575f5ffd5b50610260610485366004614663565b6114b0565b348015610495575f5ffd5b507f4bc04a483367e3b8d2c7dac8d60b56e696d24ef97f345830002d363ea50a2298610383565b3480156104c7575f5ffd5b506103836114ba565b3480156104db575f5ffd5b506103836114c4565b3480156104ef575f5ffd5b506103836104fe3660046146a2565b6114f1565b34801561050e575f5ffd5b5061042761152f565b348015610522575f5ffd5b506102606105313660046146a2565b611540565b348015610541575f5ffd5b5061026061055036600461464c565b6115d3565b348015610560575f5ffd5b50610260611734565b348015610574575f5ffd5b5061058861058336600461464c565b611882565b604080519384526020840192909252908201526060016102cd565b3480156105ae575f5ffd5b506102606105bd3660046146fe565b6118d5565b3480156105cd575f5ffd5b506102606105dc366004614792565b611ad4565b3480156105ec575f5ffd5b50610427611c0e565b348015610600575f5ffd5b5061026061060f3660046146a2565b611c17565b34801561061f575f5ffd5b5061026061062e3660046147bb565b611c9d565b34801561063e575f5ffd5b5061026061064d3660046146a2565b612357565b565b5f61065d611133565b9050805f03610698576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106a061152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106e8573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061070c919061480f565b6107169082614853565b421161074e576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107566124a7565b61077673ffffffffffffffffffffffffffffffffffffffff841683612513565b8273ffffffffffffffffffffffffffffffffffffffff167f2c876ecb97b3c6854f2488d373403f903eacb800e51c159a5c0c7a9c857e4827836040516107be91815260200190565b60405180910390a2505050565b333014610804576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61080e828261252c565b5050565b5f5f5f5f6108208686612682565b919450925090505f808080600187600281111561083f5761083f614866565b036108535761084c611419565b9350610967565b600287600281111561086757610867614866565b148015610872575084155b156108be57859350610883846114f1565b42106108b957507fffffffff00000000000000000000000000000000000000000000000000000000965061099f95505050505050565b610967565b60028760028111156108d2576108d2614866565b1480156108df5750600185145b15610937575f6108ee87611882565b9195509350905042811161092d57507fffffffff00000000000000000000000000000000000000000000000000000000975061099f9650505050505050565b6001915050610967565b507fffffffff00000000000000000000000000000000000000000000000000000000965061099f95505050505050565b836080528060a0528260c0528160e052610100604051101561098a576101006040525b6109958b8b8b6128a4565b9750505050505050505b9392505050565b3330146109df576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216610a2c576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b428111610a65576040517f488b16b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a6f828261290a565b8173ffffffffffffffffffffffffffffffffffffffff167fcacba9f642804cfed98e2bb1d1c05bc4c78b35a209cdffdb4674b3363bafd92b82604051610ab791815260200190565b60405180910390a25050565b5f610acc611133565b9050805f03610b07576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b0f61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b57573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b7b919061480f565b610b859082614853565b4211610bbd576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bc56124a7565b6040517fa22cb46500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301525f602483015284169063a22cb465906044015f604051808303815f87803b158015610c31575f5ffd5b505af1158015610c43573d5f5f3e3d5ffd5b505060405173ffffffffffffffffffffffffffffffffffffffff8086169350861691507ff9dfa223fca66e1e19e96ad420898db0b0ada933c1d0c0953b3d5a44176f495c905f90a3505050565b5f610c99611133565b9050805f03610cd4576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cdc61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d24573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d48919061480f565b610d529082614853565b4211610d8a576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d926124a7565b5f610dbe60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b5f81556040514281529091507f9dd715fed52c25e642f97653bb4c4339ad98fe6d6e130348be82ae5d86383a8c9060200160405180910390a15050565b5f610e04611133565b9050805f03610e3f576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e4761152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e8f573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610eb3919061480f565b610ebd9082614853565b4211610ef5576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610efd6124a7565b610f1e73ffffffffffffffffffffffffffffffffffffffff85168484612946565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f2fbb3e8dc2807d6a61feb98fc2120153f77b2c0d25ef6272e1756935dd62c84784604051610f7d91815260200190565b60405180910390a350505050565b333014610fc4576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610652612999565b5f610fd5611133565b9050805f03611010576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61101861152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611060573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611084919061480f565b61108e9082614853565b42116110c6576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110ce6124a7565b6110d6612a46565b73ffffffffffffffffffffffffffffffffffffffff16635b48684e6040518163ffffffff1660e01b81526004015f604051808303815f87803b15801561111a575f5ffd5b505af115801561112c573d5f5f3e3d5ffd5b5050505050565b5f8061116060017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b5492915050565b5f611170612b93565b905090565b5f611170612bc0565b5f611187611133565b9050805f036111c2576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111ca61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611212573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611236919061480f565b6112409082614853565b4211611278576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112806124a7565b6112a173ffffffffffffffffffffffffffffffffffffffff8416835f612bed565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8da578e4cb2672c4986388e504a6f639391986195c077e5db9f48e04c97a501b60405160405180910390a3505050565b6113086124a7565b5f61133460017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b428082556040519081529091507f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e9060200160405180910390a150565b7f0f000000000000000000000000000000000000000000000000000000000000006060805f808083611407604080518082018252600d81527f4465706f73697457616c6c6574000000000000000000000000000000000000006020808301919091528251808401909352600183527f31000000000000000000000000000000000000000000000000000000000000009083015291565b97989097965046955030945091925090565b5f611170612c36565b33301461145b576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5f61146683611882565b509092509050611478835f8080612c63565b604080518381526020810183905284917f415ca13a1f0f66d402c248f2677c40f1ec4794c656c96f71569a09831c99fb1e91016107be565b61080e8282612caa565b5f5f61099f612e95565b5f8061116060017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6614893565b5f8061151e60017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db614893565b5f9384526020525050604090205490565b5f5f611539612e95565b5092915050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156115915760018160011c14303b106115885763f92ee8a95f526004601cfd5b818160ff1b1b91505b5061159b82612f03565b801561080e576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15050565b5f6115dc611133565b9050805f03611617576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61161f61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611667573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061168b919061480f565b6116959082614853565b42116116cd576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6116d56124a7565b5f5f6116e084611882565b5090925090506116f2845f8080612c63565b604080518381526020810183905285917fad3961171307ef42f17267087f5444061f871d6b814636723504b96f1f0d36bd91015b60405180910390a250505050565b5f61173d611133565b9050805f03611778576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61178061152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117ec919061480f565b6117f69082614853565b421161182e576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118366124a7565b61183e612a46565b73ffffffffffffffffffffffffffffffffffffffff1663d4eec5a66040518163ffffffff1660e01b81526004015f604051808303815f87803b15801561111a575f5ffd5b5f8080806118b160017f3aeceb64e5bf1bc571c0f9d844588aca01e747977eb627cfe37418f8e321be26614893565b5f958652602052505060409092208054600182015460029092015490949193509150565b5f6118de611133565b9050805f03611919576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61192161152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611969573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061198d919061480f565b6119979082614853565b42116119cf576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119d76124a7565b6040517f2eb2c2d600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff881690632eb2c2d690611a339030908a908a908a908a908a906004016148ef565b5f604051808303815f87803b158015611a4a575f5ffd5b505af1158015611a5c573d5f5f3e3d5ffd5b505050508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fb790ced15183f79ade456fb39c4fc443005b36f92a7318ef6e0e9f18dc05b04087878787604051611ac3949392919061496b565b60405180910390a350505050505050565b333014611b0d576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611b178383612fc8565b83839091611b5f576040517f304d0228000000000000000000000000000000000000000000000000000000008152600481019290925260248201526044015b60405180910390fd5b5050428111611b9a576040517f488b16b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051602080820186905281830185905282518083038401815260609092019092528051910120611bce81858585612c63565b604080518581526020810185905290810183905281907fd5becded5e17b1418ca2798bb03d5ad44e2dbe712bc69040381f1cc3efffbd5390606001611726565b5f611170612fdc565b333014611c50576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c5a815f61290a565b60405173ffffffffffffffffffffffffffffffffffffffff8216907feac85989fadc30dfe2712c2308dcfecb3f9af1d15422056fc5a98ed1b49ca209905f90a250565b611ca561152f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d09576040517f0c6d42ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611d176060850185614991565b905011611d50576040517fc2e5347d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b30611d5e60208501856146a2565b73ffffffffffffffffffffffffffffffffffffffff1614611dab576040517f23455ba100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80611dd860017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6614893565b80546001810182559250905060208501358214611e21576040517f756688fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8460400135421115611e5f576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611e71611e6c87614b70565b613009565b90505f611e7d826130a3565b90507f1626ba7e00000000000000000000000000000000000000000000000000000000611eab828888610812565b7fffffffff000000000000000000000000000000000000000000000000000000001614611f04576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611f0f87876131b9565b90505f81611f1d575f611f25565b611f25612a46565b90505f5b611f3660608b018b614991565b905081101561232157821580611f9e575030611f5560608c018c614991565b83818110611f6557611f65614ce2565b9050602002810190611f779190614d0f565b611f859060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff1614155b611fd4576040517fde4e67c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b821580612049575073ffffffffffffffffffffffffffffffffffffffff821661200060608c018c614991565b8381811061201057612010614ce2565b90506020028101906120229190614d0f565b6120309060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff1614155b61207f576040517f63adb1da00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8061208e60608d018d614991565b8481811061209e5761209e614ce2565b90506020028101906120b09190614d0f565b6120be9060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff166120e160608e018e614991565b858181106120f1576120f1614ce2565b90506020028101906121039190614d0f565b6020013561211460608f018f614991565b8681811061212457612124614ce2565b90506020028101906121369190614d0f565b612144906040810190614d4b565b604051612152929190614dac565b5f6040518083038185875af1925050503d805f811461218c576040519150601f19603f3d011682016040523d82523d5f602084013e612191565b606091505b50909250905081836121a660608f018f614991565b868181106121b6576121b6614ce2565b90506020028101906121c89190614d0f565b6121d69060208101906146a2565b83909192612213576040517fb09725d2000000000000000000000000000000000000000000000000000000008152600401611b5693929190614dbb565b5061222491505060608d018d614991565b8481811061223457612234614ce2565b90506020028101906122469190614d0f565b6122549060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff167ffde9c64d8b0b21fe439285c271603188269ad7c561364f724d48e9846120d7b661229860608f018f614991565b868181106122a8576122a8614ce2565b90506020028101906122ba9190614d0f565b602001358e80606001906122ce9190614991565b878181106122de576122de614ce2565b90506020028101906122f09190614d0f565b6122fe906040810190614d4b565b8560405161230f9493929190614e36565b60405180910390a25050600101611f29565b60405187907fe9cc9bbe7de1cbb097a6357ca3182909488efe8d793e25665befc064a02d10a7905f90a250505050505050505050565b5f612360611133565b9050805f0361239b576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123a361152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156123eb573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061240f919061480f565b6124199082614853565b4211612451576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124596124a7565b612463825f61290a565b60405173ffffffffffffffffffffffffffffffffffffffff8316907f61be9e006b8f5c6e0e05905bb6a35efabbb3343c37d33552f634bd1d20f64141905f90a25050565b6124af611419565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610652576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f385f3884865af161080e5763b12d13eb5f526004601cfd5b73ffffffffffffffffffffffffffffffffffffffff8216158015906125845750612554611419565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156125a6575073ffffffffffffffffffffffffffffffffffffffff82163014155b6125dc576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80421115612616576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61261f826131e8565b6126288161321b565b5f612631613247565b604080518481526020810183905291925073ffffffffffffffffffffffffffffffffffffffff8516917f34280f73a4dfa646661714dfe2e00bc6df3de0581f552bd4420061f686d28bea91016107be565b5f8080602084101561269c5750600191505f90508061289d565b8484017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001357f6492649264926492649264926492649264926492649264926492649264926492145f80826126fe5750600194505f935083925061289d915050565b60a087101561271957505f945084935083925061289d915050565b505060408601356060808801359088359060208a013590841415806127675750612764601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff614893565b83115b1561278057505f965086955085945061289d9350505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe06127ad85601f614853565b1690506127db60a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff614893565b8111156127f757505f975087965086955061289d945050505050565b6128028160a0614853565b8a1461281d57505f975087965086955061289d945050505050565b816128665760a083901c158015612849575073ffffffffffffffffffffffffffffffffffffffff831615155b15612861575060029750909550935061289d92505050565b61288d565b60018214801561287557508215155b1561288d575060029750909550935061289d92505050565b505f975087965086955050505050505b9250925092565b5f816128e15761773961ffff8319040284036128e157507f773900010000000000000000000000000000000000000000000000000000000061099f565b5f6128f5856128f08686613283565b6132d1565b155f03631626ba7e1760e01b95945050505050565b5f61293660017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db614893565b5f93845260205250604090912055565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f51141661298f57803d853b15171061298f576390b8ec185f526004601cfd5b505f603452505050565b5f6129a2611c0e565b905073ffffffffffffffffffffffffffffffffffffffff81166129f1576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129fa5f6131e8565b612a035f61321b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92905f90a250565b5f8080612a7460017fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d51614893565b80549250905073ffffffffffffffffffffffffffffffffffffffff821615612a9c5750919050565b5f80612ac960017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd614893565b80549250905073ffffffffffffffffffffffffffffffffffffffff82163b612b1d576040517fe6e1262b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166349493a4d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b66573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b8a9190614e61565b94505050505090565b5f8061116060017fa250db4cdd0e79ff2dcd111477627e89b67cf8b26f7530ac9c97168fe892adcf614893565b5f8061116060017f83e56f89581bfd0d900ad9e7f5ffe08b050af9835151520198ecf6256538e8cb614893565b81601452806034526f095ea7b30000000000000000000000005f5260205f604460105f875af18060015f51141661298f57803d853b15171061298f57633e3f8f735f526004601cfd5b5f8061116060017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b5f612c8f60017f3aeceb64e5bf1bc571c0f9d844588aca01e747977eb627cfe37418f8e321be26614893565b5f958652602052506040909320918255600182015560020155565b5f612cb3611c0e565b905073ffffffffffffffffffffffffffffffffffffffff8116612d02576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612d0a611175565b421115612d43576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f9f22c1bf28d77bcb7ce8f5213eb18f0ddc1a5e8bd395eb34854777f52990c51782612d6e611167565b604051602001612da79392919092835273ffffffffffffffffffffffffffffffffffffffff919091166020830152604082015260600190565b6040516020818303038152906040528051906020012090505f612dc9826130a3565b9050612dd783828787613307565b612e0d576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612e16611419565b9050612e215f6131e8565b612e2a5f61321b565b612e33846134aa565b8373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f38bafbf020d44b4ca47fda166836e6a0e0a15a9d6fec166834c0125e193830ff60405160405180910390a3505050505050565b604080518181526060810182525f91829182916020820181803683370190505090503060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0823b0160208401833c81806020019051810190612ef89190614e7c565b909590945092505050565b73ffffffffffffffffffffffffffffffffffffffff8116612f50576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612f7c60017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b82815560405190915073ffffffffffffffffffffffffffffffffffffffff8316905f907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35050565b5f612fd38383613531565b90505b92915050565b5f8061116060017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770614893565b5f6040518060a00160405280606e81526020016150d7606e913980519060200120825f01518360200151846040015161304586606001516135b6565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff909416938501939093526060840191909152608083015260a082015260c0015b604051602081830303815290604052805190602001209050919050565b7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000030147f00000000000000000000000000000000000000000000000000000000000000004614166131965750604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527f000000000000000000000000000000000000000000000000000000000000000060208201527f00000000000000000000000000000000000000000000000000000000000000009181019190915246606082015230608082015260a090205b6719010000000000005f5280601a5281603a52604260182090505f603a52919050565b5f5f6131c58484612682565b50909150600290508160028111156131df576131df614866565b14949350505050565b5f61321460017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770614893565b9190915550565b5f61321460017f83e56f89581bfd0d900ad9e7f5ffe08b050af9835151520198ecf6256538e8cb614893565b5f8061327460017fa250db4cdd0e79ff2dcd111477627e89b67cf8b26f7530ac9c97168fe892adcf614893565b80546001019081905592915050565b818161649261ffff30801c1904028183017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00135036132ca57506040810135016020810190355b9250929050565b5f6132dd848484613680565b806132ee57506132ee848484613699565b806132ff57506132ff848484613911565b949350505050565b5f73ffffffffffffffffffffffffffffffffffffffff851661332a57505f6132ff565b60408214806133395750604182145b15613383578473ffffffffffffffffffffffffffffffffffffffff1661336085858561397c565b73ffffffffffffffffffffffffffffffffffffffff1603613383575060016132ff565b73ffffffffffffffffffffffffffffffffffffffff85163014806133bc575073ffffffffffffffffffffffffffffffffffffffff85163b155b156133c857505f6132ff565b5f8484846040516024016133de93929190614ea8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f1626ba7e0000000000000000000000000000000000000000000000000000000017815282519293505f928392918391908b5afa5f513d6020149091169250905081801561349e57507f1626ba7e0000000000000000000000000000000000000000000000000000000081145b98975050505050505050565b5f6134b3611419565b90505f6134e160017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b83815560405190915073ffffffffffffffffffffffffffffffffffffffff80851691908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f7fffffffff00000001000000000000000000000000ffffffffffffffffffffffff80838409817f5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b8387857fffffffff00000001000000000000000000000000fffffffffffffffffffffffc878b8c0908090894821191909310169190921416919050565b5f5f825167ffffffffffffffff8111156135d2576135d26149f5565b6040519080825280602002602001820160405280156135fb578160200160208202803683370190505b5090505f5b83518110156136505761362b84828151811061361e5761361e614ce2565b6020026020010151613a10565b82828151811061363d5761363d614ce2565b6020908102919091010152600101613600565b50806040516020016136629190614ec1565b60405160208183030381529060405280519060200120915050919050565b5f613689613a81565b1561099f576132ff848484613abd565b5f308015613705575f5f5f5f5f6136ae611371565b5060408051865160209788012081830152855195909601949094206060860152608085019290925273ffffffffffffffffffffffffffffffffffffffff1660a084015260c083015260e08201905296505050505050505b6040516002840385013560f01c8060420180860387016119015f52604081602037821582881017896042601e20181715613770575f94507f983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de85528860205260408520985050506138e8565b7f5479706564446174615369676e280000000000000000000000000000000000008452600e84018360408301823760288185019081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01515f1a602914613808575f6001858301035b6001820191506029828203515f1a14868310116137da57508085039450808560408501018337602881830153505b6f07fffffe00000000000001000000000081515f1a1c5b602882515f1a1461384557806512010000000183515f1a1c17905060018201915061381f565b7f20636f6e74656e74732c737472696e67206e616d652c737472696e670000000082527f2076657273696f6e2c75696e7432353620636861696e49642c61646472657373601c8301527f20766572696679696e67436f6e74726163742c627974657333322073616c7429603c830152605c820191508460408401833760408388379084018590038520865260e08620604052600116604201601e20985050909403935b50604052806138fd576138fa856130a3565b94505b613908858585613abd565b95945050505050565b5f3a61099f573a3a526d378edcd5b5b0a24f5342d8c1048560203a3a388461fffffa503a5161397057604051631626ba7e3a528160205260408052454561ffff0117805a10838814171561396157fe5b3a3a6064601c3085fa50506040525b506132ff848484613abd565b5f604051826040811461399757604181146139d75750613a08565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff166060526139e8565b60408501355f1a6020526040856040375b50845f526020604060805f60015afa505f6060523d606018519150806040525b509392505050565b805160208083015160408085015180519084012081517f84fa2cf05cd88e992eae77e851af68a4ee278dcff6ef504e487a55b3baadfbe59481019490945273ffffffffffffffffffffffffffffffffffffffff90941690830152606082015260808101919091525f9060a001613086565b5f613a8a61152f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b60a05160c05160e0515f9291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301613b0857613afe8783838989613b27565b935050505061099f565b613b1c613b1460805190565b888888613307565b979650505050505050565b5f5f36613b348585613b77565b9150915081801561349e575061349e88604051602001613b5691815260200190565b60405160208183030381529060405282613b6f90614ef6565b89895f613c73565b5f8260c0831015613b8a575f91506132ca565b5f613b988460808188614f8c565b613ba191614fb3565b90505f613bb18560a08189614f8c565b613bba91614fb3565b905081613bc8602087614893565b1080613bdd575080613bdb602087614893565b105b15613bec575f935050506132ca565b5f613bf98684818a614f8c565b613c0291614fb3565b90505f613c118784818b614f8c565b613c1a91614fb3565b9050816020613c29868a614893565b613c339190614893565b1080613c535750806020613c47858a614893565b613c519190614893565b105b15613c64575f9550505050506132ca565b60019550505050509250929050565b5f6024856080015151118015613ceb5750613ceb8560a0015186606001518181016020015191516014909101107fffffffffffffffffffffffffffffffffffffffffff0000000000000000000000919091167f2274797065223a22776562617574686e2e676574220000000000000000000000141690565b8015613d055750613d058560a00151866040015188613ef8565b8015613d535750613d538560800151602081518110613d2657613d26614ce2565b01602001517f01000000000000000000000000000000000000000000000000000000000000009081161490565b8015613da95750811580613da95750613da98560800151602081518110613d7c57613d7c614ce2565b01602001517f04000000000000000000000000000000000000000000000000000000000000009081161490565b8015613df65750613df68560800151602081518110613dca57613dca614ce2565b01602001517fff0000000000000000000000000000000000000000000000000000000000000016613f46565b8015613eee5750613eee6002866080015160028860a00151604051613e1b9190615006565b602060405180830381855afa158015613e36573d5f5f3e3d5ffd5b5050506040513d601f19601f82011682018060405250810190613e59919061480f565b604051602001613e6a929190615011565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052613ea291615006565b602060405180830381855afa158015613ebd573d5f5f3e3d5ffd5b5050506040513d601f19601f82011682018060405250810190613ee0919061480f565b865160208801518787613f99565b9695505050505050565b5f5f613f0383613ff1565b604051602001613f139190615029565b60405160208183030381529060405290505f613f3a8686613f35888651613ffe565b614035565b9050613eee81836140b6565b5f7f08000000000000000000000000000000000000000000000000000000000000008281161480612fd65750507f1000000000000000000000000000000000000000000000000000000000000000161590565b5f5f5f613fa988888888886140c1565b915091508015613fbb57509050613908565b6040517f42b01bce0000000000000000000000000000000000000000000000000000000081526101006004820152602401611b56565b6060612fd682600161419c565b5f828201838110159081027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808218830218613908565b606061404282855161431b565b915061404e838361431b565b92505f61405b8484614893565b67ffffffffffffffff811115614073576140736149f5565b6040519080825280601f01601f19166020018201604052801561409d576020820181803683370190505b509050838303846020870101602083015e949350505050565b5f612fd3838361432a565b5f5f6140cd868661434e565b15806140e057506140de8484613531565b155b156140f057505f90506001614192565b6140fd87878787876143b8565b1561410d57506001905080614192565b61417c7fbb5a52f42f9c9261ed4361f59422a1e30036e7c32b270c8807a419feca605023600560017fa71af64de5126a4a4e02b7922d66ce9415ce88a4c9d25514d91082c8725ac9577f5d47723c8fbe580bb369fec9c2665d8e30a435b9932645482e7c9f11e872296b6143b8565b1561418c57505f90506001614192565b505f9050805b9550959350505050565b606082515f036141ba575060408051602081019091525f8152612fd6565b5f826141ea576003845160026141d09190614853565b6141da9190615087565b6141e59060046150bf565b61420f565b6003845160046141fa91906150bf565b614205906002614853565b61420f9190615087565b905060405191507f4142434445464748494a4b4c4d4e4f505152535455565758595a616263646566601f5261067083027f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f18603f526020820181810185865187016020810180515f82525b828410156142cd576003840193508351603f8160121c16518753600187019650603f81600c1c16518753600187019650603f8160061c16518753600187019650603f81165187535060018601955061427a565b90525085905061430e576003865106600181146142f157600281146143045761430c565b603d6001840353603d600284035361430c565b603d60018403535b505b9183525060405292915050565b5f828218828410028218612fd3565b5f81518351148015612fd35750508051602091820120825192909101919091201490565b5f821580159061437d57507fffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc63255183105b801561438857508115155b8015612fd35750507f7fffffff800000007fffffffffffffffde737d56d38bcf4279dce5617e3192a81015919050565b5f6040518681528560208201528460408201528360608201528260808201525f5f5260205f60a0836101005afa6143eb57fe5b50505f5195945050505050565b73ffffffffffffffffffffffffffffffffffffffff81168114614419575f5ffd5b50565b5f5f6040838503121561442d575f5ffd5b8235614438816143f8565b946020939093013593505050565b5f5f83601f840112614456575f5ffd5b50813567ffffffffffffffff81111561446d575f5ffd5b6020830191508360208285010111156132ca575f5ffd5b5f5f5f60408486031215614496575f5ffd5b83359250602084013567ffffffffffffffff8111156144b3575f5ffd5b6144bf86828701614446565b9497909650939450505050565b5f5f604083850312156144dd575f5ffd5b82356144e8816143f8565b915060208301356144f8816143f8565b809150509250929050565b5f5f5f60608486031215614515575f5ffd5b8335614520816143f8565b92506020840135614530816143f8565b929592945050506040919091013590565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f6145c760e0830189614541565b82810360408401526145d98189614541565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b8181101561463b57835183526020938401939092019160010161461d565b50909b9a5050505050505050505050565b5f6020828403121561465c575f5ffd5b5035919050565b5f5f60208385031215614674575f5ffd5b823567ffffffffffffffff81111561468a575f5ffd5b61469685828601614446565b90969095509350505050565b5f602082840312156146b2575f5ffd5b813561099f816143f8565b5f5f83601f8401126146cd575f5ffd5b50813567ffffffffffffffff8111156146e4575f5ffd5b6020830191508360208260051b85010111156132ca575f5ffd5b5f5f5f5f5f5f60808789031215614713575f5ffd5b863561471e816143f8565b9550602087013561472e816143f8565b9450604087013567ffffffffffffffff811115614749575f5ffd5b61475589828a016146bd565b909550935050606087013567ffffffffffffffff811115614774575f5ffd5b61478089828a016146bd565b979a9699509497509295939492505050565b5f5f5f606084860312156147a4575f5ffd5b505081359360208301359350604090920135919050565b5f5f5f604084860312156147cd575f5ffd5b833567ffffffffffffffff8111156147e3575f5ffd5b8401608081870312156147f4575f5ffd5b9250602084013567ffffffffffffffff8111156144b3575f5ffd5b5f6020828403121561481f575f5ffd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115612fd657612fd6614826565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b81810381811115612fd657612fd6614826565b8183525f7f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156148d6575f5ffd5b8260051b80836020870137939093016020019392505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a060408201525f61493a60a0830186886148a6565b828103606084015261494d8185876148a6565b83810360809094019390935250505f81526020019695505050505050565b604081525f61497e6040830186886148a6565b8281036020840152613b1c8185876148a6565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126149c4575f5ffd5b83018035915067ffffffffffffffff8211156149de575f5ffd5b6020019150600581901b36038213156132ca575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff81118282101715614a4557614a456149f5565b60405290565b6040516060810167ffffffffffffffff81118282101715614a4557614a456149f5565b60405160c0810167ffffffffffffffff81118282101715614a4557614a456149f5565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614ad857614ad86149f5565b604052919050565b5f82601f830112614aef575f5ffd5b8135602083015f5f67ffffffffffffffff841115614b0f57614b0f6149f5565b50601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016602001614b4281614a91565b915050828152858383011115614b56575f5ffd5b828260208301375f92810160200192909252509392505050565b5f60808236031215614b80575f5ffd5b614b88614a22565b8235614b93816143f8565b81526020838101359082015260408084013590820152606083013567ffffffffffffffff811115614bc2575f5ffd5b830136601f820112614bd2575f5ffd5b803567ffffffffffffffff811115614bec57614bec6149f5565b8060051b614bfc60208201614a91565b91825260208184018101929081019036841115614c17575f5ffd5b6020850192505b83831015614cd257823567ffffffffffffffff811115614c3c575f5ffd5b85016060368290037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0011215614c70575f5ffd5b614c78614a4b565b6020820135614c86816143f8565b815260408201356020820152606082013567ffffffffffffffff811115614cab575f5ffd5b614cba36602083860101614ae0565b60408301525083525060209283019290910190614c1e565b6060860152509295945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa1833603018112614d41575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614d7e575f5ffd5b83018035915067ffffffffffffffff821115614d98575f5ffd5b6020019150368190038213156132ca575f5ffd5b818382375f9101908152919050565b83815273ffffffffffffffffffffffffffffffffffffffff83166020820152606060408201525f6139086060830184614541565b81835281816020850137505f602082840101525f60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b848152606060208201525f614e4f606083018587614def565b8281036040840152613b1c8185614541565b5f60208284031215614e71575f5ffd5b815161099f816143f8565b5f5f60408385031215614e8d575f5ffd5b8251614e98816143f8565b6020939093015192949293505050565b838152604060208201525f613908604083018486614def565b81515f90829060208501835b82811015614eeb578151845260209384019390910190600101614ecd565b509195945050505050565b5f60c08236031215614f06575f5ffd5b614f0e614a6e565b82358152602080840135908201526040808401359082015260608084013590820152608083013567ffffffffffffffff811115614f49575f5ffd5b614f5536828601614ae0565b60808301525060a083013567ffffffffffffffff811115614f74575f5ffd5b614f8036828601614ae0565b60a08301525092915050565b5f5f85851115614f9a575f5ffd5b83861115614fa6575f5ffd5b5050820193919092039150565b80356020831015612fd6577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602084900360031b1b1692915050565b5f81518060208401855e5f93019283525090919050565b5f612fd38284614fef565b5f61501c8285614fef565b9283525050602001919050565b7f226368616c6c656e6765223a220000000000000000000000000000000000000081525f61505a600d830184614fef565b7f220000000000000000000000000000000000000000000000000000000000000081526001019392505050565b5f826150ba577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b8082028115828204841417612fd657612fd661482656fe426174636828616464726573732077616c6c65742c75696e74323536206e6f6e63652c75696e7432353620646561646c696e652c43616c6c5b5d2063616c6c732943616c6c2861646472657373207461726765742c75696e743235362076616c75652c6279746573206461746129a26469706673582212206d19dcaff9b9dc0849f3b0fe54c3c1fcc7edb3fa2752f04846822667c2a8be1264736f6c63430008220033","recompiledBytecode":"0x610120604052348015610010575f5ffd5b50306080524660a05260608061005e604080518082018252600d81526c11195c1bdcda5d15d85b1b195d609a1b602080830191909152825180840190935260018352603160f81b9083015291565b815160209283012081519183019190912060c082905260e0819052604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8152938401929092529082015246606082015230608082015260a0902061010052506100ca90506100cf565b610134565b63409feecd19805460018116156100ed5763f92ee8a95f526004601cfd5b6001600160401b03808260011c1461012f578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60805160a05160c05160e0516101005161517a6101715f395f6130a501525f61315f01525f61313901525f6130e901525f6130c6015261517a5ff3fe608060405260043610610201575f3560e01c80638dc2c6891161011c578063d0f31620116100af578063e1f93ac51161007e578063e63f952f11610063578063e63f952f146105f5578063e8c8bf6414610614578063e9e371361461063357610208565b8063e1f93ac5146105c2578063e30c3978146105e157610208565b8063d0f3162014610536578063d4eec5a614610555578063d7fa476f14610569578063d8cb0d66146105a357610208565b8063affed0e0116100eb578063affed0e0146104d0578063b9ac71d6146104e4578063c45a015514610503578063c4d66de81461051757610208565b80638dc2c6891461044c578063a338d2171461046b578063adc8693e1461048a578063af640d0f146104bc57610208565b80635b48684e116101945780637ae26773116101635780637ae26773146103b95780638456cb59146103d857806384b0196e146103ec5780638da5cb5b1461041357610208565b80635b48684e1461035b5780635c975abb1461036f578063745ba8061461039157806376d0e490146103a557610208565b80632a45cacf116101d05780632a45cacf146102f55780633f4ba83a1461031457806344004cc11461032857806354d1f13d1461034757610208565b806307b18bde146102415780630a276680146102625780631626ba7e1461028157806324017fae146102d657610208565b3661020857005b5f3560e01c63bc197c81811463f23a6e6182141763150b7a028214171561023357806020526020603cf35b50633c10b94e5f526004601cfd5b34801561024c575f5ffd5b5061026061025b36600461441c565b610654565b005b34801561026d575f5ffd5b5061026061027c36600461441c565b6107cb565b34801561028c575f5ffd5b506102a061029b366004614484565b610812565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b3480156102e1575f5ffd5b506102606102f036600461441c565b6109a6565b348015610300575f5ffd5b5061026061030f3660046144cc565b610ac3565b34801561031f575f5ffd5b50610260610c90565b348015610333575f5ffd5b50610260610342366004614503565b610dfb565b348015610352575f5ffd5b50610260610f8b565b348015610366575f5ffd5b50610260610fcc565b34801561037a575f5ffd5b50610383611133565b6040519081526020016102cd565b34801561039c575f5ffd5b50610383611167565b3480156103b0575f5ffd5b50610383611175565b3480156103c4575f5ffd5b506102606103d33660046144cc565b61117e565b3480156103e3575f5ffd5b50610260611300565b3480156103f7575f5ffd5b50610400611371565b6040516102cd979695949392919061458d565b34801561041e575f5ffd5b50610427611419565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102cd565b348015610457575f5ffd5b5061026061046636600461464c565b611422565b348015610476575f5ffd5b50610260610485366004614663565b6114b0565b348015610495575f5ffd5b507f4bc04a483367e3b8d2c7dac8d60b56e696d24ef97f345830002d363ea50a2298610383565b3480156104c7575f5ffd5b506103836114ba565b3480156104db575f5ffd5b506103836114c4565b3480156104ef575f5ffd5b506103836104fe3660046146a2565b6114f1565b34801561050e575f5ffd5b5061042761152f565b348015610522575f5ffd5b506102606105313660046146a2565b611540565b348015610541575f5ffd5b5061026061055036600461464c565b6115d3565b348015610560575f5ffd5b50610260611734565b348015610574575f5ffd5b5061058861058336600461464c565b611882565b604080519384526020840192909252908201526060016102cd565b3480156105ae575f5ffd5b506102606105bd3660046146fe565b6118d5565b3480156105cd575f5ffd5b506102606105dc366004614792565b611ad4565b3480156105ec575f5ffd5b50610427611c0e565b348015610600575f5ffd5b5061026061060f3660046146a2565b611c17565b34801561061f575f5ffd5b5061026061062e3660046147bb565b611c9d565b34801561063e575f5ffd5b5061026061064d3660046146a2565b612357565b565b5f61065d611133565b9050805f03610698576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106a061152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106e8573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061070c919061480f565b6107169082614853565b421161074e576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107566124a7565b61077673ffffffffffffffffffffffffffffffffffffffff841683612513565b8273ffffffffffffffffffffffffffffffffffffffff167f2c876ecb97b3c6854f2488d373403f903eacb800e51c159a5c0c7a9c857e4827836040516107be91815260200190565b60405180910390a2505050565b333014610804576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61080e828261252c565b5050565b5f5f5f5f6108208686612682565b919450925090505f808080600187600281111561083f5761083f614866565b036108535761084c611419565b9350610967565b600287600281111561086757610867614866565b148015610872575084155b156108be57859350610883846114f1565b42106108b957507fffffffff00000000000000000000000000000000000000000000000000000000965061099f95505050505050565b610967565b60028760028111156108d2576108d2614866565b1480156108df5750600185145b15610937575f6108ee87611882565b9195509350905042811161092d57507fffffffff00000000000000000000000000000000000000000000000000000000975061099f9650505050505050565b6001915050610967565b507fffffffff00000000000000000000000000000000000000000000000000000000965061099f95505050505050565b836080528060a0528260c0528160e052610100604051101561098a576101006040525b6109958b8b8b6128a4565b9750505050505050505b9392505050565b3330146109df576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216610a2c576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b428111610a65576040517f488b16b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a6f828261290a565b8173ffffffffffffffffffffffffffffffffffffffff167fcacba9f642804cfed98e2bb1d1c05bc4c78b35a209cdffdb4674b3363bafd92b82604051610ab791815260200190565b60405180910390a25050565b5f610acc611133565b9050805f03610b07576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b0f61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b57573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b7b919061480f565b610b859082614853565b4211610bbd576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bc56124a7565b6040517fa22cb46500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301525f602483015284169063a22cb465906044015f604051808303815f87803b158015610c31575f5ffd5b505af1158015610c43573d5f5f3e3d5ffd5b505060405173ffffffffffffffffffffffffffffffffffffffff8086169350861691507ff9dfa223fca66e1e19e96ad420898db0b0ada933c1d0c0953b3d5a44176f495c905f90a3505050565b5f610c99611133565b9050805f03610cd4576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cdc61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d24573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d48919061480f565b610d529082614853565b4211610d8a576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d926124a7565b5f610dbe60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b5f81556040514281529091507f9dd715fed52c25e642f97653bb4c4339ad98fe6d6e130348be82ae5d86383a8c9060200160405180910390a15050565b5f610e04611133565b9050805f03610e3f576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e4761152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e8f573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610eb3919061480f565b610ebd9082614853565b4211610ef5576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610efd6124a7565b610f1e73ffffffffffffffffffffffffffffffffffffffff85168484612946565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f2fbb3e8dc2807d6a61feb98fc2120153f77b2c0d25ef6272e1756935dd62c84784604051610f7d91815260200190565b60405180910390a350505050565b333014610fc4576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610652612999565b5f610fd5611133565b9050805f03611010576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61101861152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611060573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611084919061480f565b61108e9082614853565b42116110c6576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110ce6124a7565b6110d6612a46565b73ffffffffffffffffffffffffffffffffffffffff16635b48684e6040518163ffffffff1660e01b81526004015f604051808303815f87803b15801561111a575f5ffd5b505af115801561112c573d5f5f3e3d5ffd5b5050505050565b5f8061116060017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b5492915050565b5f611170612b93565b905090565b5f611170612bc0565b5f611187611133565b9050805f036111c2576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111ca61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611212573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611236919061480f565b6112409082614853565b4211611278576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112806124a7565b6112a173ffffffffffffffffffffffffffffffffffffffff8416835f612bed565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8da578e4cb2672c4986388e504a6f639391986195c077e5db9f48e04c97a501b60405160405180910390a3505050565b6113086124a7565b5f61133460017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b428082556040519081529091507f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e9060200160405180910390a150565b7f0f000000000000000000000000000000000000000000000000000000000000006060805f808083611407604080518082018252600d81527f4465706f73697457616c6c6574000000000000000000000000000000000000006020808301919091528251808401909352600183527f31000000000000000000000000000000000000000000000000000000000000009083015291565b97989097965046955030945091925090565b5f611170612c36565b33301461145b576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5f61146683611882565b509092509050611478835f8080612c63565b604080518381526020810183905284917f415ca13a1f0f66d402c248f2677c40f1ec4794c656c96f71569a09831c99fb1e91016107be565b61080e8282612caa565b5f5f61099f612e95565b5f8061116060017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6614893565b5f8061151e60017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db614893565b5f9384526020525050604090205490565b5f5f611539612e95565b5092915050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156115915760018160011c14303b106115885763f92ee8a95f526004601cfd5b818160ff1b1b91505b5061159b82612f03565b801561080e576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15050565b5f6115dc611133565b9050805f03611617576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61161f61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611667573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061168b919061480f565b6116959082614853565b42116116cd576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6116d56124a7565b5f5f6116e084611882565b5090925090506116f2845f8080612c63565b604080518381526020810183905285917fad3961171307ef42f17267087f5444061f871d6b814636723504b96f1f0d36bd91015b60405180910390a250505050565b5f61173d611133565b9050805f03611778576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61178061152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117ec919061480f565b6117f69082614853565b421161182e576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118366124a7565b61183e612a46565b73ffffffffffffffffffffffffffffffffffffffff1663d4eec5a66040518163ffffffff1660e01b81526004015f604051808303815f87803b15801561111a575f5ffd5b5f8080806118b160017f3aeceb64e5bf1bc571c0f9d844588aca01e747977eb627cfe37418f8e321be26614893565b5f958652602052505060409092208054600182015460029092015490949193509150565b5f6118de611133565b9050805f03611919576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61192161152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611969573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061198d919061480f565b6119979082614853565b42116119cf576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119d76124a7565b6040517f2eb2c2d600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff881690632eb2c2d690611a339030908a908a908a908a908a906004016148ef565b5f604051808303815f87803b158015611a4a575f5ffd5b505af1158015611a5c573d5f5f3e3d5ffd5b505050508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fb790ced15183f79ade456fb39c4fc443005b36f92a7318ef6e0e9f18dc05b04087878787604051611ac3949392919061496b565b60405180910390a350505050505050565b333014611b0d576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611b178383612fc8565b83839091611b5f576040517f304d0228000000000000000000000000000000000000000000000000000000008152600481019290925260248201526044015b60405180910390fd5b5050428111611b9a576040517f488b16b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051602080820186905281830185905282518083038401815260609092019092528051910120611bce81858585612c63565b604080518581526020810185905290810183905281907fd5becded5e17b1418ca2798bb03d5ad44e2dbe712bc69040381f1cc3efffbd5390606001611726565b5f611170612fdc565b333014611c50576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c5a815f61290a565b60405173ffffffffffffffffffffffffffffffffffffffff8216907feac85989fadc30dfe2712c2308dcfecb3f9af1d15422056fc5a98ed1b49ca209905f90a250565b611ca561152f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d09576040517f0c6d42ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611d176060850185614991565b905011611d50576040517fc2e5347d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b30611d5e60208501856146a2565b73ffffffffffffffffffffffffffffffffffffffff1614611dab576040517f23455ba100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80611dd860017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6614893565b80546001810182559250905060208501358214611e21576040517f756688fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8460400135421115611e5f576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611e71611e6c87614b70565b613009565b90505f611e7d826130a3565b90507f1626ba7e00000000000000000000000000000000000000000000000000000000611eab828888610812565b7fffffffff000000000000000000000000000000000000000000000000000000001614611f04576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611f0f87876131b9565b90505f81611f1d575f611f25565b611f25612a46565b90505f5b611f3660608b018b614991565b905081101561232157821580611f9e575030611f5560608c018c614991565b83818110611f6557611f65614ce2565b9050602002810190611f779190614d0f565b611f859060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff1614155b611fd4576040517fde4e67c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b821580612049575073ffffffffffffffffffffffffffffffffffffffff821661200060608c018c614991565b8381811061201057612010614ce2565b90506020028101906120229190614d0f565b6120309060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff1614155b61207f576040517f63adb1da00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8061208e60608d018d614991565b8481811061209e5761209e614ce2565b90506020028101906120b09190614d0f565b6120be9060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff166120e160608e018e614991565b858181106120f1576120f1614ce2565b90506020028101906121039190614d0f565b6020013561211460608f018f614991565b8681811061212457612124614ce2565b90506020028101906121369190614d0f565b612144906040810190614d4b565b604051612152929190614dac565b5f6040518083038185875af1925050503d805f811461218c576040519150601f19603f3d011682016040523d82523d5f602084013e612191565b606091505b50909250905081836121a660608f018f614991565b868181106121b6576121b6614ce2565b90506020028101906121c89190614d0f565b6121d69060208101906146a2565b83909192612213576040517fb09725d2000000000000000000000000000000000000000000000000000000008152600401611b5693929190614dbb565b5061222491505060608d018d614991565b8481811061223457612234614ce2565b90506020028101906122469190614d0f565b6122549060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff167ffde9c64d8b0b21fe439285c271603188269ad7c561364f724d48e9846120d7b661229860608f018f614991565b868181106122a8576122a8614ce2565b90506020028101906122ba9190614d0f565b602001358e80606001906122ce9190614991565b878181106122de576122de614ce2565b90506020028101906122f09190614d0f565b6122fe906040810190614d4b565b8560405161230f9493929190614e36565b60405180910390a25050600101611f29565b60405187907fe9cc9bbe7de1cbb097a6357ca3182909488efe8d793e25665befc064a02d10a7905f90a250505050505050505050565b5f612360611133565b9050805f0361239b576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123a361152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156123eb573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061240f919061480f565b6124199082614853565b4211612451576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124596124a7565b612463825f61290a565b60405173ffffffffffffffffffffffffffffffffffffffff8316907f61be9e006b8f5c6e0e05905bb6a35efabbb3343c37d33552f634bd1d20f64141905f90a25050565b6124af611419565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610652576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f385f3884865af161080e5763b12d13eb5f526004601cfd5b73ffffffffffffffffffffffffffffffffffffffff8216158015906125845750612554611419565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156125a6575073ffffffffffffffffffffffffffffffffffffffff82163014155b6125dc576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80421115612616576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61261f826131e8565b6126288161321b565b5f612631613247565b604080518481526020810183905291925073ffffffffffffffffffffffffffffffffffffffff8516917f34280f73a4dfa646661714dfe2e00bc6df3de0581f552bd4420061f686d28bea91016107be565b5f8080602084101561269c5750600191505f90508061289d565b8484017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001357f6492649264926492649264926492649264926492649264926492649264926492145f80826126fe5750600194505f935083925061289d915050565b60a087101561271957505f945084935083925061289d915050565b505060408601356060808801359088359060208a013590841415806127675750612764601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff614893565b83115b1561278057505f965086955085945061289d9350505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe06127ad85601f614853565b1690506127db60a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff614893565b8111156127f757505f975087965086955061289d945050505050565b6128028160a0614853565b8a1461281d57505f975087965086955061289d945050505050565b816128665760a083901c158015612849575073ffffffffffffffffffffffffffffffffffffffff831615155b15612861575060029750909550935061289d92505050565b61288d565b60018214801561287557508215155b1561288d575060029750909550935061289d92505050565b505f975087965086955050505050505b9250925092565b5f816128e15761773961ffff8319040284036128e157507f773900010000000000000000000000000000000000000000000000000000000061099f565b5f6128f5856128f08686613283565b6132d1565b155f03631626ba7e1760e01b95945050505050565b5f61293660017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db614893565b5f93845260205250604090912055565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f51141661298f57803d853b15171061298f576390b8ec185f526004601cfd5b505f603452505050565b5f6129a2611c0e565b905073ffffffffffffffffffffffffffffffffffffffff81166129f1576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129fa5f6131e8565b612a035f61321b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92905f90a250565b5f8080612a7460017fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d51614893565b80549250905073ffffffffffffffffffffffffffffffffffffffff821615612a9c5750919050565b5f80612ac960017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd614893565b80549250905073ffffffffffffffffffffffffffffffffffffffff82163b612b1d576040517fe6e1262b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166349493a4d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b66573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b8a9190614e61565b94505050505090565b5f8061116060017fa250db4cdd0e79ff2dcd111477627e89b67cf8b26f7530ac9c97168fe892adcf614893565b5f8061116060017f83e56f89581bfd0d900ad9e7f5ffe08b050af9835151520198ecf6256538e8cb614893565b81601452806034526f095ea7b30000000000000000000000005f5260205f604460105f875af18060015f51141661298f57803d853b15171061298f57633e3f8f735f526004601cfd5b5f8061116060017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b5f612c8f60017f3aeceb64e5bf1bc571c0f9d844588aca01e747977eb627cfe37418f8e321be26614893565b5f958652602052506040909320918255600182015560020155565b5f612cb3611c0e565b905073ffffffffffffffffffffffffffffffffffffffff8116612d02576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612d0a611175565b421115612d43576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f9f22c1bf28d77bcb7ce8f5213eb18f0ddc1a5e8bd395eb34854777f52990c51782612d6e611167565b604051602001612da79392919092835273ffffffffffffffffffffffffffffffffffffffff919091166020830152604082015260600190565b6040516020818303038152906040528051906020012090505f612dc9826130a3565b9050612dd783828787613307565b612e0d576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612e16611419565b9050612e215f6131e8565b612e2a5f61321b565b612e33846134aa565b8373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f38bafbf020d44b4ca47fda166836e6a0e0a15a9d6fec166834c0125e193830ff60405160405180910390a3505050505050565b604080518181526060810182525f91829182916020820181803683370190505090503060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0823b0160208401833c81806020019051810190612ef89190614e7c565b909590945092505050565b73ffffffffffffffffffffffffffffffffffffffff8116612f50576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612f7c60017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b82815560405190915073ffffffffffffffffffffffffffffffffffffffff8316905f907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35050565b5f612fd38383613531565b90505b92915050565b5f8061116060017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770614893565b5f6040518060a00160405280606e81526020016150d7606e913980519060200120825f01518360200151846040015161304586606001516135b6565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff909416938501939093526060840191909152608083015260a082015260c0015b604051602081830303815290604052805190602001209050919050565b7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000030147f00000000000000000000000000000000000000000000000000000000000000004614166131965750604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527f000000000000000000000000000000000000000000000000000000000000000060208201527f00000000000000000000000000000000000000000000000000000000000000009181019190915246606082015230608082015260a090205b6719010000000000005f5280601a5281603a52604260182090505f603a52919050565b5f5f6131c58484612682565b50909150600290508160028111156131df576131df614866565b14949350505050565b5f61321460017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770614893565b9190915550565b5f61321460017f83e56f89581bfd0d900ad9e7f5ffe08b050af9835151520198ecf6256538e8cb614893565b5f8061327460017fa250db4cdd0e79ff2dcd111477627e89b67cf8b26f7530ac9c97168fe892adcf614893565b80546001019081905592915050565b818161649261ffff30801c1904028183017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00135036132ca57506040810135016020810190355b9250929050565b5f6132dd848484613680565b806132ee57506132ee848484613699565b806132ff57506132ff848484613911565b949350505050565b5f73ffffffffffffffffffffffffffffffffffffffff851661332a57505f6132ff565b60408214806133395750604182145b15613383578473ffffffffffffffffffffffffffffffffffffffff1661336085858561397c565b73ffffffffffffffffffffffffffffffffffffffff1603613383575060016132ff565b73ffffffffffffffffffffffffffffffffffffffff85163014806133bc575073ffffffffffffffffffffffffffffffffffffffff85163b155b156133c857505f6132ff565b5f8484846040516024016133de93929190614ea8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f1626ba7e0000000000000000000000000000000000000000000000000000000017815282519293505f928392918391908b5afa5f513d6020149091169250905081801561349e57507f1626ba7e0000000000000000000000000000000000000000000000000000000081145b98975050505050505050565b5f6134b3611419565b90505f6134e160017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b83815560405190915073ffffffffffffffffffffffffffffffffffffffff80851691908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f7fffffffff00000001000000000000000000000000ffffffffffffffffffffffff80838409817f5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b8387857fffffffff00000001000000000000000000000000fffffffffffffffffffffffc878b8c0908090894821191909310169190921416919050565b5f5f825167ffffffffffffffff8111156135d2576135d26149f5565b6040519080825280602002602001820160405280156135fb578160200160208202803683370190505b5090505f5b83518110156136505761362b84828151811061361e5761361e614ce2565b6020026020010151613a10565b82828151811061363d5761363d614ce2565b6020908102919091010152600101613600565b50806040516020016136629190614ec1565b60405160208183030381529060405280519060200120915050919050565b5f613689613a81565b1561099f576132ff848484613abd565b5f308015613705575f5f5f5f5f6136ae611371565b5060408051865160209788012081830152855195909601949094206060860152608085019290925273ffffffffffffffffffffffffffffffffffffffff1660a084015260c083015260e08201905296505050505050505b6040516002840385013560f01c8060420180860387016119015f52604081602037821582881017896042601e20181715613770575f94507f983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de85528860205260408520985050506138e8565b7f5479706564446174615369676e280000000000000000000000000000000000008452600e84018360408301823760288185019081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01515f1a602914613808575f6001858301035b6001820191506029828203515f1a14868310116137da57508085039450808560408501018337602881830153505b6f07fffffe00000000000001000000000081515f1a1c5b602882515f1a1461384557806512010000000183515f1a1c17905060018201915061381f565b7f20636f6e74656e74732c737472696e67206e616d652c737472696e670000000082527f2076657273696f6e2c75696e7432353620636861696e49642c61646472657373601c8301527f20766572696679696e67436f6e74726163742c627974657333322073616c7429603c830152605c820191508460408401833760408388379084018590038520865260e08620604052600116604201601e20985050909403935b50604052806138fd576138fa856130a3565b94505b613908858585613abd565b95945050505050565b5f3a61099f573a3a526d378edcd5b5b0a24f5342d8c1048560203a3a388461fffffa503a5161397057604051631626ba7e3a528160205260408052454561ffff0117805a10838814171561396157fe5b3a3a6064601c3085fa50506040525b506132ff848484613abd565b5f604051826040811461399757604181146139d75750613a08565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff166060526139e8565b60408501355f1a6020526040856040375b50845f526020604060805f60015afa505f6060523d606018519150806040525b509392505050565b805160208083015160408085015180519084012081517f84fa2cf05cd88e992eae77e851af68a4ee278dcff6ef504e487a55b3baadfbe59481019490945273ffffffffffffffffffffffffffffffffffffffff90941690830152606082015260808101919091525f9060a001613086565b5f613a8a61152f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b60a05160c05160e0515f9291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301613b0857613afe8783838989613b27565b935050505061099f565b613b1c613b1460805190565b888888613307565b979650505050505050565b5f5f36613b348585613b77565b9150915081801561349e575061349e88604051602001613b5691815260200190565b60405160208183030381529060405282613b6f90614ef6565b89895f613c73565b5f8260c0831015613b8a575f91506132ca565b5f613b988460808188614f8c565b613ba191614fb3565b90505f613bb18560a08189614f8c565b613bba91614fb3565b905081613bc8602087614893565b1080613bdd575080613bdb602087614893565b105b15613bec575f935050506132ca565b5f613bf98684818a614f8c565b613c0291614fb3565b90505f613c118784818b614f8c565b613c1a91614fb3565b9050816020613c29868a614893565b613c339190614893565b1080613c535750806020613c47858a614893565b613c519190614893565b105b15613c64575f9550505050506132ca565b60019550505050509250929050565b5f6024856080015151118015613ceb5750613ceb8560a0015186606001518181016020015191516014909101107fffffffffffffffffffffffffffffffffffffffffff0000000000000000000000919091167f2274797065223a22776562617574686e2e676574220000000000000000000000141690565b8015613d055750613d058560a00151866040015188613ef8565b8015613d535750613d538560800151602081518110613d2657613d26614ce2565b01602001517f01000000000000000000000000000000000000000000000000000000000000009081161490565b8015613da95750811580613da95750613da98560800151602081518110613d7c57613d7c614ce2565b01602001517f04000000000000000000000000000000000000000000000000000000000000009081161490565b8015613df65750613df68560800151602081518110613dca57613dca614ce2565b01602001517fff0000000000000000000000000000000000000000000000000000000000000016613f46565b8015613eee5750613eee6002866080015160028860a00151604051613e1b9190615006565b602060405180830381855afa158015613e36573d5f5f3e3d5ffd5b5050506040513d601f19601f82011682018060405250810190613e59919061480f565b604051602001613e6a929190615011565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052613ea291615006565b602060405180830381855afa158015613ebd573d5f5f3e3d5ffd5b5050506040513d601f19601f82011682018060405250810190613ee0919061480f565b865160208801518787613f99565b9695505050505050565b5f5f613f0383613ff1565b604051602001613f139190615029565b60405160208183030381529060405290505f613f3a8686613f35888651613ffe565b614035565b9050613eee81836140b6565b5f7f08000000000000000000000000000000000000000000000000000000000000008281161480612fd65750507f1000000000000000000000000000000000000000000000000000000000000000161590565b5f5f5f613fa988888888886140c1565b915091508015613fbb57509050613908565b6040517f42b01bce0000000000000000000000000000000000000000000000000000000081526101006004820152602401611b56565b6060612fd682600161419c565b5f828201838110159081027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808218830218613908565b606061404282855161431b565b915061404e838361431b565b92505f61405b8484614893565b67ffffffffffffffff811115614073576140736149f5565b6040519080825280601f01601f19166020018201604052801561409d576020820181803683370190505b509050838303846020870101602083015e949350505050565b5f612fd3838361432a565b5f5f6140cd868661434e565b15806140e057506140de8484613531565b155b156140f057505f90506001614192565b6140fd87878787876143b8565b1561410d57506001905080614192565b61417c7fbb5a52f42f9c9261ed4361f59422a1e30036e7c32b270c8807a419feca605023600560017fa71af64de5126a4a4e02b7922d66ce9415ce88a4c9d25514d91082c8725ac9577f5d47723c8fbe580bb369fec9c2665d8e30a435b9932645482e7c9f11e872296b6143b8565b1561418c57505f90506001614192565b505f9050805b9550959350505050565b606082515f036141ba575060408051602081019091525f8152612fd6565b5f826141ea576003845160026141d09190614853565b6141da9190615087565b6141e59060046150bf565b61420f565b6003845160046141fa91906150bf565b614205906002614853565b61420f9190615087565b905060405191507f4142434445464748494a4b4c4d4e4f505152535455565758595a616263646566601f5261067083027f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f18603f526020820181810185865187016020810180515f82525b828410156142cd576003840193508351603f8160121c16518753600187019650603f81600c1c16518753600187019650603f8160061c16518753600187019650603f81165187535060018601955061427a565b90525085905061430e576003865106600181146142f157600281146143045761430c565b603d6001840353603d600284035361430c565b603d60018403535b505b9183525060405292915050565b5f828218828410028218612fd3565b5f81518351148015612fd35750508051602091820120825192909101919091201490565b5f821580159061437d57507fffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc63255183105b801561438857508115155b8015612fd35750507f7fffffff800000007fffffffffffffffde737d56d38bcf4279dce5617e3192a81015919050565b5f6040518681528560208201528460408201528360608201528260808201525f5f5260205f60a0836101005afa6143eb57fe5b50505f5195945050505050565b73ffffffffffffffffffffffffffffffffffffffff81168114614419575f5ffd5b50565b5f5f6040838503121561442d575f5ffd5b8235614438816143f8565b946020939093013593505050565b5f5f83601f840112614456575f5ffd5b50813567ffffffffffffffff81111561446d575f5ffd5b6020830191508360208285010111156132ca575f5ffd5b5f5f5f60408486031215614496575f5ffd5b83359250602084013567ffffffffffffffff8111156144b3575f5ffd5b6144bf86828701614446565b9497909650939450505050565b5f5f604083850312156144dd575f5ffd5b82356144e8816143f8565b915060208301356144f8816143f8565b809150509250929050565b5f5f5f60608486031215614515575f5ffd5b8335614520816143f8565b92506020840135614530816143f8565b929592945050506040919091013590565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f6145c760e0830189614541565b82810360408401526145d98189614541565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b8181101561463b57835183526020938401939092019160010161461d565b50909b9a5050505050505050505050565b5f6020828403121561465c575f5ffd5b5035919050565b5f5f60208385031215614674575f5ffd5b823567ffffffffffffffff81111561468a575f5ffd5b61469685828601614446565b90969095509350505050565b5f602082840312156146b2575f5ffd5b813561099f816143f8565b5f5f83601f8401126146cd575f5ffd5b50813567ffffffffffffffff8111156146e4575f5ffd5b6020830191508360208260051b85010111156132ca575f5ffd5b5f5f5f5f5f5f60808789031215614713575f5ffd5b863561471e816143f8565b9550602087013561472e816143f8565b9450604087013567ffffffffffffffff811115614749575f5ffd5b61475589828a016146bd565b909550935050606087013567ffffffffffffffff811115614774575f5ffd5b61478089828a016146bd565b979a9699509497509295939492505050565b5f5f5f606084860312156147a4575f5ffd5b505081359360208301359350604090920135919050565b5f5f5f604084860312156147cd575f5ffd5b833567ffffffffffffffff8111156147e3575f5ffd5b8401608081870312156147f4575f5ffd5b9250602084013567ffffffffffffffff8111156144b3575f5ffd5b5f6020828403121561481f575f5ffd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115612fd657612fd6614826565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b81810381811115612fd657612fd6614826565b8183525f7f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156148d6575f5ffd5b8260051b80836020870137939093016020019392505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a060408201525f61493a60a0830186886148a6565b828103606084015261494d8185876148a6565b83810360809094019390935250505f81526020019695505050505050565b604081525f61497e6040830186886148a6565b8281036020840152613b1c8185876148a6565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126149c4575f5ffd5b83018035915067ffffffffffffffff8211156149de575f5ffd5b6020019150600581901b36038213156132ca575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff81118282101715614a4557614a456149f5565b60405290565b6040516060810167ffffffffffffffff81118282101715614a4557614a456149f5565b60405160c0810167ffffffffffffffff81118282101715614a4557614a456149f5565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614ad857614ad86149f5565b604052919050565b5f82601f830112614aef575f5ffd5b8135602083015f5f67ffffffffffffffff841115614b0f57614b0f6149f5565b50601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016602001614b4281614a91565b915050828152858383011115614b56575f5ffd5b828260208301375f92810160200192909252509392505050565b5f60808236031215614b80575f5ffd5b614b88614a22565b8235614b93816143f8565b81526020838101359082015260408084013590820152606083013567ffffffffffffffff811115614bc2575f5ffd5b830136601f820112614bd2575f5ffd5b803567ffffffffffffffff811115614bec57614bec6149f5565b8060051b614bfc60208201614a91565b91825260208184018101929081019036841115614c17575f5ffd5b6020850192505b83831015614cd257823567ffffffffffffffff811115614c3c575f5ffd5b85016060368290037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0011215614c70575f5ffd5b614c78614a4b565b6020820135614c86816143f8565b815260408201356020820152606082013567ffffffffffffffff811115614cab575f5ffd5b614cba36602083860101614ae0565b60408301525083525060209283019290910190614c1e565b6060860152509295945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa1833603018112614d41575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614d7e575f5ffd5b83018035915067ffffffffffffffff821115614d98575f5ffd5b6020019150368190038213156132ca575f5ffd5b818382375f9101908152919050565b83815273ffffffffffffffffffffffffffffffffffffffff83166020820152606060408201525f6139086060830184614541565b81835281816020850137505f602082840101525f60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b848152606060208201525f614e4f606083018587614def565b8281036040840152613b1c8185614541565b5f60208284031215614e71575f5ffd5b815161099f816143f8565b5f5f60408385031215614e8d575f5ffd5b8251614e98816143f8565b6020939093015192949293505050565b838152604060208201525f613908604083018486614def565b81515f90829060208501835b82811015614eeb578151845260209384019390910190600101614ecd565b509195945050505050565b5f60c08236031215614f06575f5ffd5b614f0e614a6e565b82358152602080840135908201526040808401359082015260608084013590820152608083013567ffffffffffffffff811115614f49575f5ffd5b614f5536828601614ae0565b60808301525060a083013567ffffffffffffffff811115614f74575f5ffd5b614f8036828601614ae0565b60a08301525092915050565b5f5f85851115614f9a575f5ffd5b83861115614fa6575f5ffd5b5050820193919092039150565b80356020831015612fd6577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602084900360031b1b1692915050565b5f81518060208401855e5f93019283525090919050565b5f612fd38284614fef565b5f61501c8285614fef565b9283525050602001919050565b7f226368616c6c656e6765223a220000000000000000000000000000000000000081525f61505a600d830184614fef565b7f220000000000000000000000000000000000000000000000000000000000000081526001019392505050565b5f826150ba577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b8082028115828204841417612fd657612fd661482656fe426174636828616464726573732077616c6c65742c75696e74323536206e6f6e63652c75696e7432353620646561646c696e652c43616c6c5b5d2063616c6c732943616c6c2861646472657373207461726765742c75696e743235362076616c75652c6279746573206461746129a26469706673582212206d19dcaff9b9dc0849f3b0fe54c3c1fcc7edb3fa2752f04846822667c2a8be1264736f6c63430008220033","sourceMap":"1849:30616:22:-:0;;;6074:53;;;;;;;;;-1:-1:-1;3066:4:16;3028:45;;3100:13;3083:30;;3124:18;;3240:23;32411:22:22;;;;;;;;;;;-1:-1:-1;;;32411:22:22;;;;;;;;32443:13;;;;;;;;;;;-1:-1:-1;;;32443:13:22;;;;32411:22;32241:222;3240:23:16;3340:22;;;;;;;3454:25;;;;;;;;;3489:26;;;;3525:32;;;;3737:4;3731:11;;3802:16;3792:27;;3843:12;;;3836:30;;;;3890:12;;;3883:33;3954:9;3947:4;3940:12;;3933:31;4002:9;3995:4;3988:12;;3981:31;4055:4;4042:18;;4093:34;;-1:-1:-1;6098:22:22;;-1:-1:-1;6098:20:22;:22::i;:::-;1849:30616;;7121:737:17;-1:-1:-1;;7297:8:17;;7328:1;7321:9;;7318:134;;;7362:10;7356:4;7349:24;7433:4;7427;7420:18;7318:134;-1:-1:-1;;;;;7537:9:17;7533:1;7530;7526:9;7523:24;7513:329;;7665:9;7662:1;7658:17;7655:1;7648:28;7755:9;7749:4;7742:23;7799:28;7793:4;7787;7782:46;7513:329;;;7274:578;7121:737::o;1849:30616:22:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa26469706673582212206d19dcaff9b9dc0849f3b0fe54c3c1fcc7edb3fa2752f04846822667c2a8be1264736f6c63430008220033","offset":21174}},"transformations":[],"transformationValues":{}},"runtimeBytecode":{"onchainBytecode":"0x608060405260043610610201575f3560e01c80638dc2c6891161011c578063d0f31620116100af578063e1f93ac51161007e578063e63f952f11610063578063e63f952f146105f5578063e8c8bf6414610614578063e9e371361461063357610208565b8063e1f93ac5146105c2578063e30c3978146105e157610208565b8063d0f3162014610536578063d4eec5a614610555578063d7fa476f14610569578063d8cb0d66146105a357610208565b8063affed0e0116100eb578063affed0e0146104d0578063b9ac71d6146104e4578063c45a015514610503578063c4d66de81461051757610208565b80638dc2c6891461044c578063a338d2171461046b578063adc8693e1461048a578063af640d0f146104bc57610208565b80635b48684e116101945780637ae26773116101635780637ae26773146103b95780638456cb59146103d857806384b0196e146103ec5780638da5cb5b1461041357610208565b80635b48684e1461035b5780635c975abb1461036f578063745ba8061461039157806376d0e490146103a557610208565b80632a45cacf116101d05780632a45cacf146102f55780633f4ba83a1461031457806344004cc11461032857806354d1f13d1461034757610208565b806307b18bde146102415780630a276680146102625780631626ba7e1461028157806324017fae146102d657610208565b3661020857005b5f3560e01c63bc197c81811463f23a6e6182141763150b7a028214171561023357806020526020603cf35b50633c10b94e5f526004601cfd5b34801561024c575f5ffd5b5061026061025b36600461441c565b610654565b005b34801561026d575f5ffd5b5061026061027c36600461441c565b6107cb565b34801561028c575f5ffd5b506102a061029b366004614484565b610812565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b3480156102e1575f5ffd5b506102606102f036600461441c565b6109a6565b348015610300575f5ffd5b5061026061030f3660046144cc565b610ac3565b34801561031f575f5ffd5b50610260610c90565b348015610333575f5ffd5b50610260610342366004614503565b610dfb565b348015610352575f5ffd5b50610260610f8b565b348015610366575f5ffd5b50610260610fcc565b34801561037a575f5ffd5b50610383611133565b6040519081526020016102cd565b34801561039c575f5ffd5b50610383611167565b3480156103b0575f5ffd5b50610383611175565b3480156103c4575f5ffd5b506102606103d33660046144cc565b61117e565b3480156103e3575f5ffd5b50610260611300565b3480156103f7575f5ffd5b50610400611371565b6040516102cd979695949392919061458d565b34801561041e575f5ffd5b50610427611419565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102cd565b348015610457575f5ffd5b5061026061046636600461464c565b611422565b348015610476575f5ffd5b50610260610485366004614663565b6114b0565b348015610495575f5ffd5b507f4bc04a483367e3b8d2c7dac8d60b56e696d24ef97f345830002d363ea50a2298610383565b3480156104c7575f5ffd5b506103836114ba565b3480156104db575f5ffd5b506103836114c4565b3480156104ef575f5ffd5b506103836104fe3660046146a2565b6114f1565b34801561050e575f5ffd5b5061042761152f565b348015610522575f5ffd5b506102606105313660046146a2565b611540565b348015610541575f5ffd5b5061026061055036600461464c565b6115d3565b348015610560575f5ffd5b50610260611734565b348015610574575f5ffd5b5061058861058336600461464c565b611882565b604080519384526020840192909252908201526060016102cd565b3480156105ae575f5ffd5b506102606105bd3660046146fe565b6118d5565b3480156105cd575f5ffd5b506102606105dc366004614792565b611ad4565b3480156105ec575f5ffd5b50610427611c0e565b348015610600575f5ffd5b5061026061060f3660046146a2565b611c17565b34801561061f575f5ffd5b5061026061062e3660046147bb565b611c9d565b34801561063e575f5ffd5b5061026061064d3660046146a2565b612357565b565b5f61065d611133565b9050805f03610698576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106a061152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106e8573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061070c919061480f565b6107169082614853565b421161074e576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107566124a7565b61077673ffffffffffffffffffffffffffffffffffffffff841683612513565b8273ffffffffffffffffffffffffffffffffffffffff167f2c876ecb97b3c6854f2488d373403f903eacb800e51c159a5c0c7a9c857e4827836040516107be91815260200190565b60405180910390a2505050565b333014610804576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61080e828261252c565b5050565b5f5f5f5f6108208686612682565b919450925090505f808080600187600281111561083f5761083f614866565b036108535761084c611419565b9350610967565b600287600281111561086757610867614866565b148015610872575084155b156108be57859350610883846114f1565b42106108b957507fffffffff00000000000000000000000000000000000000000000000000000000965061099f95505050505050565b610967565b60028760028111156108d2576108d2614866565b1480156108df5750600185145b15610937575f6108ee87611882565b9195509350905042811161092d57507fffffffff00000000000000000000000000000000000000000000000000000000975061099f9650505050505050565b6001915050610967565b507fffffffff00000000000000000000000000000000000000000000000000000000965061099f95505050505050565b836080528060a0528260c0528160e052610100604051101561098a576101006040525b6109958b8b8b6128a4565b9750505050505050505b9392505050565b3330146109df576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216610a2c576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b428111610a65576040517f488b16b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a6f828261290a565b8173ffffffffffffffffffffffffffffffffffffffff167fcacba9f642804cfed98e2bb1d1c05bc4c78b35a209cdffdb4674b3363bafd92b82604051610ab791815260200190565b60405180910390a25050565b5f610acc611133565b9050805f03610b07576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b0f61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b57573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b7b919061480f565b610b859082614853565b4211610bbd576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bc56124a7565b6040517fa22cb46500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301525f602483015284169063a22cb465906044015f604051808303815f87803b158015610c31575f5ffd5b505af1158015610c43573d5f5f3e3d5ffd5b505060405173ffffffffffffffffffffffffffffffffffffffff8086169350861691507ff9dfa223fca66e1e19e96ad420898db0b0ada933c1d0c0953b3d5a44176f495c905f90a3505050565b5f610c99611133565b9050805f03610cd4576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cdc61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d24573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d48919061480f565b610d529082614853565b4211610d8a576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d926124a7565b5f610dbe60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b5f81556040514281529091507f9dd715fed52c25e642f97653bb4c4339ad98fe6d6e130348be82ae5d86383a8c9060200160405180910390a15050565b5f610e04611133565b9050805f03610e3f576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e4761152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e8f573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610eb3919061480f565b610ebd9082614853565b4211610ef5576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610efd6124a7565b610f1e73ffffffffffffffffffffffffffffffffffffffff85168484612946565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f2fbb3e8dc2807d6a61feb98fc2120153f77b2c0d25ef6272e1756935dd62c84784604051610f7d91815260200190565b60405180910390a350505050565b333014610fc4576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610652612999565b5f610fd5611133565b9050805f03611010576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61101861152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611060573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611084919061480f565b61108e9082614853565b42116110c6576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110ce6124a7565b6110d6612a46565b73ffffffffffffffffffffffffffffffffffffffff16635b48684e6040518163ffffffff1660e01b81526004015f604051808303815f87803b15801561111a575f5ffd5b505af115801561112c573d5f5f3e3d5ffd5b5050505050565b5f8061116060017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b5492915050565b5f611170612b93565b905090565b5f611170612bc0565b5f611187611133565b9050805f036111c2576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111ca61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611212573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611236919061480f565b6112409082614853565b4211611278576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112806124a7565b6112a173ffffffffffffffffffffffffffffffffffffffff8416835f612bed565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8da578e4cb2672c4986388e504a6f639391986195c077e5db9f48e04c97a501b60405160405180910390a3505050565b6113086124a7565b5f61133460017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b428082556040519081529091507f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e9060200160405180910390a150565b7f0f000000000000000000000000000000000000000000000000000000000000006060805f808083611407604080518082018252600d81527f4465706f73697457616c6c6574000000000000000000000000000000000000006020808301919091528251808401909352600183527f31000000000000000000000000000000000000000000000000000000000000009083015291565b97989097965046955030945091925090565b5f611170612c36565b33301461145b576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5f61146683611882565b509092509050611478835f8080612c63565b604080518381526020810183905284917f415ca13a1f0f66d402c248f2677c40f1ec4794c656c96f71569a09831c99fb1e91016107be565b61080e8282612caa565b5f5f61099f612e95565b5f8061116060017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6614893565b5f8061151e60017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db614893565b5f9384526020525050604090205490565b5f5f611539612e95565b5092915050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156115915760018160011c14303b106115885763f92ee8a95f526004601cfd5b818160ff1b1b91505b5061159b82612f03565b801561080e576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15050565b5f6115dc611133565b9050805f03611617576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61161f61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611667573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061168b919061480f565b6116959082614853565b42116116cd576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6116d56124a7565b5f5f6116e084611882565b5090925090506116f2845f8080612c63565b604080518381526020810183905285917fad3961171307ef42f17267087f5444061f871d6b814636723504b96f1f0d36bd91015b60405180910390a250505050565b5f61173d611133565b9050805f03611778576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61178061152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117ec919061480f565b6117f69082614853565b421161182e576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118366124a7565b61183e612a46565b73ffffffffffffffffffffffffffffffffffffffff1663d4eec5a66040518163ffffffff1660e01b81526004015f604051808303815f87803b15801561111a575f5ffd5b5f8080806118b160017f3aeceb64e5bf1bc571c0f9d844588aca01e747977eb627cfe37418f8e321be26614893565b5f958652602052505060409092208054600182015460029092015490949193509150565b5f6118de611133565b9050805f03611919576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61192161152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611969573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061198d919061480f565b6119979082614853565b42116119cf576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119d76124a7565b6040517f2eb2c2d600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff881690632eb2c2d690611a339030908a908a908a908a908a906004016148ef565b5f604051808303815f87803b158015611a4a575f5ffd5b505af1158015611a5c573d5f5f3e3d5ffd5b505050508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fb790ced15183f79ade456fb39c4fc443005b36f92a7318ef6e0e9f18dc05b04087878787604051611ac3949392919061496b565b60405180910390a350505050505050565b333014611b0d576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611b178383612fc8565b83839091611b5f576040517f304d0228000000000000000000000000000000000000000000000000000000008152600481019290925260248201526044015b60405180910390fd5b5050428111611b9a576040517f488b16b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051602080820186905281830185905282518083038401815260609092019092528051910120611bce81858585612c63565b604080518581526020810185905290810183905281907fd5becded5e17b1418ca2798bb03d5ad44e2dbe712bc69040381f1cc3efffbd5390606001611726565b5f611170612fdc565b333014611c50576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c5a815f61290a565b60405173ffffffffffffffffffffffffffffffffffffffff8216907feac85989fadc30dfe2712c2308dcfecb3f9af1d15422056fc5a98ed1b49ca209905f90a250565b611ca561152f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d09576040517f0c6d42ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611d176060850185614991565b905011611d50576040517fc2e5347d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b30611d5e60208501856146a2565b73ffffffffffffffffffffffffffffffffffffffff1614611dab576040517f23455ba100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80611dd860017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6614893565b80546001810182559250905060208501358214611e21576040517f756688fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8460400135421115611e5f576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611e71611e6c87614b70565b613009565b90505f611e7d826130a3565b90507f1626ba7e00000000000000000000000000000000000000000000000000000000611eab828888610812565b7fffffffff000000000000000000000000000000000000000000000000000000001614611f04576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611f0f87876131b9565b90505f81611f1d575f611f25565b611f25612a46565b90505f5b611f3660608b018b614991565b905081101561232157821580611f9e575030611f5560608c018c614991565b83818110611f6557611f65614ce2565b9050602002810190611f779190614d0f565b611f859060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff1614155b611fd4576040517fde4e67c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b821580612049575073ffffffffffffffffffffffffffffffffffffffff821661200060608c018c614991565b8381811061201057612010614ce2565b90506020028101906120229190614d0f565b6120309060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff1614155b61207f576040517f63adb1da00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8061208e60608d018d614991565b8481811061209e5761209e614ce2565b90506020028101906120b09190614d0f565b6120be9060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff166120e160608e018e614991565b858181106120f1576120f1614ce2565b90506020028101906121039190614d0f565b6020013561211460608f018f614991565b8681811061212457612124614ce2565b90506020028101906121369190614d0f565b612144906040810190614d4b565b604051612152929190614dac565b5f6040518083038185875af1925050503d805f811461218c576040519150601f19603f3d011682016040523d82523d5f602084013e612191565b606091505b50909250905081836121a660608f018f614991565b868181106121b6576121b6614ce2565b90506020028101906121c89190614d0f565b6121d69060208101906146a2565b83909192612213576040517fb09725d2000000000000000000000000000000000000000000000000000000008152600401611b5693929190614dbb565b5061222491505060608d018d614991565b8481811061223457612234614ce2565b90506020028101906122469190614d0f565b6122549060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff167ffde9c64d8b0b21fe439285c271603188269ad7c561364f724d48e9846120d7b661229860608f018f614991565b868181106122a8576122a8614ce2565b90506020028101906122ba9190614d0f565b602001358e80606001906122ce9190614991565b878181106122de576122de614ce2565b90506020028101906122f09190614d0f565b6122fe906040810190614d4b565b8560405161230f9493929190614e36565b60405180910390a25050600101611f29565b60405187907fe9cc9bbe7de1cbb097a6357ca3182909488efe8d793e25665befc064a02d10a7905f90a250505050505050505050565b5f612360611133565b9050805f0361239b576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123a361152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156123eb573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061240f919061480f565b6124199082614853565b4211612451576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124596124a7565b612463825f61290a565b60405173ffffffffffffffffffffffffffffffffffffffff8316907f61be9e006b8f5c6e0e05905bb6a35efabbb3343c37d33552f634bd1d20f64141905f90a25050565b6124af611419565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610652576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f385f3884865af161080e5763b12d13eb5f526004601cfd5b73ffffffffffffffffffffffffffffffffffffffff8216158015906125845750612554611419565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156125a6575073ffffffffffffffffffffffffffffffffffffffff82163014155b6125dc576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80421115612616576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61261f826131e8565b6126288161321b565b5f612631613247565b604080518481526020810183905291925073ffffffffffffffffffffffffffffffffffffffff8516917f34280f73a4dfa646661714dfe2e00bc6df3de0581f552bd4420061f686d28bea91016107be565b5f8080602084101561269c5750600191505f90508061289d565b8484017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001357f6492649264926492649264926492649264926492649264926492649264926492145f80826126fe5750600194505f935083925061289d915050565b60a087101561271957505f945084935083925061289d915050565b505060408601356060808801359088359060208a013590841415806127675750612764601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff614893565b83115b1561278057505f965086955085945061289d9350505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe06127ad85601f614853565b1690506127db60a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff614893565b8111156127f757505f975087965086955061289d945050505050565b6128028160a0614853565b8a1461281d57505f975087965086955061289d945050505050565b816128665760a083901c158015612849575073ffffffffffffffffffffffffffffffffffffffff831615155b15612861575060029750909550935061289d92505050565b61288d565b60018214801561287557508215155b1561288d575060029750909550935061289d92505050565b505f975087965086955050505050505b9250925092565b5f816128e15761773961ffff8319040284036128e157507f773900010000000000000000000000000000000000000000000000000000000061099f565b5f6128f5856128f08686613283565b6132d1565b155f03631626ba7e1760e01b95945050505050565b5f61293660017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db614893565b5f93845260205250604090912055565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f51141661298f57803d853b15171061298f576390b8ec185f526004601cfd5b505f603452505050565b5f6129a2611c0e565b905073ffffffffffffffffffffffffffffffffffffffff81166129f1576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129fa5f6131e8565b612a035f61321b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92905f90a250565b5f8080612a7460017fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d51614893565b80549250905073ffffffffffffffffffffffffffffffffffffffff821615612a9c5750919050565b5f80612ac960017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd614893565b80549250905073ffffffffffffffffffffffffffffffffffffffff82163b612b1d576040517fe6e1262b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166349493a4d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b66573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b8a9190614e61565b94505050505090565b5f8061116060017fa250db4cdd0e79ff2dcd111477627e89b67cf8b26f7530ac9c97168fe892adcf614893565b5f8061116060017f83e56f89581bfd0d900ad9e7f5ffe08b050af9835151520198ecf6256538e8cb614893565b81601452806034526f095ea7b30000000000000000000000005f5260205f604460105f875af18060015f51141661298f57803d853b15171061298f57633e3f8f735f526004601cfd5b5f8061116060017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b5f612c8f60017f3aeceb64e5bf1bc571c0f9d844588aca01e747977eb627cfe37418f8e321be26614893565b5f958652602052506040909320918255600182015560020155565b5f612cb3611c0e565b905073ffffffffffffffffffffffffffffffffffffffff8116612d02576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612d0a611175565b421115612d43576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f9f22c1bf28d77bcb7ce8f5213eb18f0ddc1a5e8bd395eb34854777f52990c51782612d6e611167565b604051602001612da79392919092835273ffffffffffffffffffffffffffffffffffffffff919091166020830152604082015260600190565b6040516020818303038152906040528051906020012090505f612dc9826130a3565b9050612dd783828787613307565b612e0d576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612e16611419565b9050612e215f6131e8565b612e2a5f61321b565b612e33846134aa565b8373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f38bafbf020d44b4ca47fda166836e6a0e0a15a9d6fec166834c0125e193830ff60405160405180910390a3505050505050565b604080518181526060810182525f91829182916020820181803683370190505090503060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0823b0160208401833c81806020019051810190612ef89190614e7c565b909590945092505050565b73ffffffffffffffffffffffffffffffffffffffff8116612f50576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612f7c60017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b82815560405190915073ffffffffffffffffffffffffffffffffffffffff8316905f907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35050565b5f612fd38383613531565b90505b92915050565b5f8061116060017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770614893565b5f6040518060a00160405280606e81526020016150d7606e913980519060200120825f01518360200151846040015161304586606001516135b6565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff909416938501939093526060840191909152608083015260a082015260c0015b604051602081830303815290604052805190602001209050919050565b7fbf0ea5b224deb6fe2c39916fc0025b9e2808c4f4a5a798c09c2cbeeaafb797757f000000000000000000000000f7f27c29e60fe6325bef8da7f93250353d2e329430147f00000000000000000000000000000000000000000000000000000000000000894614166131965750604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527fd682b529a17cda19aa275f3a050608f9e9401fadd1b0d233d81519972295828b60208201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc69181019190915246606082015230608082015260a090205b6719010000000000005f5280601a5281603a52604260182090505f603a52919050565b5f5f6131c58484612682565b50909150600290508160028111156131df576131df614866565b14949350505050565b5f61321460017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770614893565b9190915550565b5f61321460017f83e56f89581bfd0d900ad9e7f5ffe08b050af9835151520198ecf6256538e8cb614893565b5f8061327460017fa250db4cdd0e79ff2dcd111477627e89b67cf8b26f7530ac9c97168fe892adcf614893565b80546001019081905592915050565b818161649261ffff30801c1904028183017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00135036132ca57506040810135016020810190355b9250929050565b5f6132dd848484613680565b806132ee57506132ee848484613699565b806132ff57506132ff848484613911565b949350505050565b5f73ffffffffffffffffffffffffffffffffffffffff851661332a57505f6132ff565b60408214806133395750604182145b15613383578473ffffffffffffffffffffffffffffffffffffffff1661336085858561397c565b73ffffffffffffffffffffffffffffffffffffffff1603613383575060016132ff565b73ffffffffffffffffffffffffffffffffffffffff85163014806133bc575073ffffffffffffffffffffffffffffffffffffffff85163b155b156133c857505f6132ff565b5f8484846040516024016133de93929190614ea8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f1626ba7e0000000000000000000000000000000000000000000000000000000017815282519293505f928392918391908b5afa5f513d6020149091169250905081801561349e57507f1626ba7e0000000000000000000000000000000000000000000000000000000081145b98975050505050505050565b5f6134b3611419565b90505f6134e160017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b83815560405190915073ffffffffffffffffffffffffffffffffffffffff80851691908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f7fffffffff00000001000000000000000000000000ffffffffffffffffffffffff80838409817f5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b8387857fffffffff00000001000000000000000000000000fffffffffffffffffffffffc878b8c0908090894821191909310169190921416919050565b5f5f825167ffffffffffffffff8111156135d2576135d26149f5565b6040519080825280602002602001820160405280156135fb578160200160208202803683370190505b5090505f5b83518110156136505761362b84828151811061361e5761361e614ce2565b6020026020010151613a10565b82828151811061363d5761363d614ce2565b6020908102919091010152600101613600565b50806040516020016136629190614ec1565b60405160208183030381529060405280519060200120915050919050565b5f613689613a81565b1561099f576132ff848484613abd565b5f308015613705575f5f5f5f5f6136ae611371565b5060408051865160209788012081830152855195909601949094206060860152608085019290925273ffffffffffffffffffffffffffffffffffffffff1660a084015260c083015260e08201905296505050505050505b6040516002840385013560f01c8060420180860387016119015f52604081602037821582881017896042601e20181715613770575f94507f983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de85528860205260408520985050506138e8565b7f5479706564446174615369676e280000000000000000000000000000000000008452600e84018360408301823760288185019081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01515f1a602914613808575f6001858301035b6001820191506029828203515f1a14868310116137da57508085039450808560408501018337602881830153505b6f07fffffe00000000000001000000000081515f1a1c5b602882515f1a1461384557806512010000000183515f1a1c17905060018201915061381f565b7f20636f6e74656e74732c737472696e67206e616d652c737472696e670000000082527f2076657273696f6e2c75696e7432353620636861696e49642c61646472657373601c8301527f20766572696679696e67436f6e74726163742c627974657333322073616c7429603c830152605c820191508460408401833760408388379084018590038520865260e08620604052600116604201601e20985050909403935b50604052806138fd576138fa856130a3565b94505b613908858585613abd565b95945050505050565b5f3a61099f573a3a526d378edcd5b5b0a24f5342d8c1048560203a3a388461fffffa503a5161397057604051631626ba7e3a528160205260408052454561ffff0117805a10838814171561396157fe5b3a3a6064601c3085fa50506040525b506132ff848484613abd565b5f604051826040811461399757604181146139d75750613a08565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff166060526139e8565b60408501355f1a6020526040856040375b50845f526020604060805f60015afa505f6060523d606018519150806040525b509392505050565b805160208083015160408085015180519084012081517f84fa2cf05cd88e992eae77e851af68a4ee278dcff6ef504e487a55b3baadfbe59481019490945273ffffffffffffffffffffffffffffffffffffffff90941690830152606082015260808101919091525f9060a001613086565b5f613a8a61152f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b60a05160c05160e0515f9291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301613b0857613afe8783838989613b27565b935050505061099f565b613b1c613b1460805190565b888888613307565b979650505050505050565b5f5f36613b348585613b77565b9150915081801561349e575061349e88604051602001613b5691815260200190565b60405160208183030381529060405282613b6f90614ef6565b89895f613c73565b5f8260c0831015613b8a575f91506132ca565b5f613b988460808188614f8c565b613ba191614fb3565b90505f613bb18560a08189614f8c565b613bba91614fb3565b905081613bc8602087614893565b1080613bdd575080613bdb602087614893565b105b15613bec575f935050506132ca565b5f613bf98684818a614f8c565b613c0291614fb3565b90505f613c118784818b614f8c565b613c1a91614fb3565b9050816020613c29868a614893565b613c339190614893565b1080613c535750806020613c47858a614893565b613c519190614893565b105b15613c64575f9550505050506132ca565b60019550505050509250929050565b5f6024856080015151118015613ceb5750613ceb8560a0015186606001518181016020015191516014909101107fffffffffffffffffffffffffffffffffffffffffff0000000000000000000000919091167f2274797065223a22776562617574686e2e676574220000000000000000000000141690565b8015613d055750613d058560a00151866040015188613ef8565b8015613d535750613d538560800151602081518110613d2657613d26614ce2565b01602001517f01000000000000000000000000000000000000000000000000000000000000009081161490565b8015613da95750811580613da95750613da98560800151602081518110613d7c57613d7c614ce2565b01602001517f04000000000000000000000000000000000000000000000000000000000000009081161490565b8015613df65750613df68560800151602081518110613dca57613dca614ce2565b01602001517fff0000000000000000000000000000000000000000000000000000000000000016613f46565b8015613eee5750613eee6002866080015160028860a00151604051613e1b9190615006565b602060405180830381855afa158015613e36573d5f5f3e3d5ffd5b5050506040513d601f19601f82011682018060405250810190613e59919061480f565b604051602001613e6a929190615011565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052613ea291615006565b602060405180830381855afa158015613ebd573d5f5f3e3d5ffd5b5050506040513d601f19601f82011682018060405250810190613ee0919061480f565b865160208801518787613f99565b9695505050505050565b5f5f613f0383613ff1565b604051602001613f139190615029565b60405160208183030381529060405290505f613f3a8686613f35888651613ffe565b614035565b9050613eee81836140b6565b5f7f08000000000000000000000000000000000000000000000000000000000000008281161480612fd65750507f1000000000000000000000000000000000000000000000000000000000000000161590565b5f5f5f613fa988888888886140c1565b915091508015613fbb57509050613908565b6040517f42b01bce0000000000000000000000000000000000000000000000000000000081526101006004820152602401611b56565b6060612fd682600161419c565b5f828201838110159081027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808218830218613908565b606061404282855161431b565b915061404e838361431b565b92505f61405b8484614893565b67ffffffffffffffff811115614073576140736149f5565b6040519080825280601f01601f19166020018201604052801561409d576020820181803683370190505b509050838303846020870101602083015e949350505050565b5f612fd3838361432a565b5f5f6140cd868661434e565b15806140e057506140de8484613531565b155b156140f057505f90506001614192565b6140fd87878787876143b8565b1561410d57506001905080614192565b61417c7fbb5a52f42f9c9261ed4361f59422a1e30036e7c32b270c8807a419feca605023600560017fa71af64de5126a4a4e02b7922d66ce9415ce88a4c9d25514d91082c8725ac9577f5d47723c8fbe580bb369fec9c2665d8e30a435b9932645482e7c9f11e872296b6143b8565b1561418c57505f90506001614192565b505f9050805b9550959350505050565b606082515f036141ba575060408051602081019091525f8152612fd6565b5f826141ea576003845160026141d09190614853565b6141da9190615087565b6141e59060046150bf565b61420f565b6003845160046141fa91906150bf565b614205906002614853565b61420f9190615087565b905060405191507f4142434445464748494a4b4c4d4e4f505152535455565758595a616263646566601f5261067083027f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f18603f526020820181810185865187016020810180515f82525b828410156142cd576003840193508351603f8160121c16518753600187019650603f81600c1c16518753600187019650603f8160061c16518753600187019650603f81165187535060018601955061427a565b90525085905061430e576003865106600181146142f157600281146143045761430c565b603d6001840353603d600284035361430c565b603d60018403535b505b9183525060405292915050565b5f828218828410028218612fd3565b5f81518351148015612fd35750508051602091820120825192909101919091201490565b5f821580159061437d57507fffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc63255183105b801561438857508115155b8015612fd35750507f7fffffff800000007fffffffffffffffde737d56d38bcf4279dce5617e3192a81015919050565b5f6040518681528560208201528460408201528360608201528260808201525f5f5260205f60a0836101005afa6143eb57fe5b50505f5195945050505050565b73ffffffffffffffffffffffffffffffffffffffff81168114614419575f5ffd5b50565b5f5f6040838503121561442d575f5ffd5b8235614438816143f8565b946020939093013593505050565b5f5f83601f840112614456575f5ffd5b50813567ffffffffffffffff81111561446d575f5ffd5b6020830191508360208285010111156132ca575f5ffd5b5f5f5f60408486031215614496575f5ffd5b83359250602084013567ffffffffffffffff8111156144b3575f5ffd5b6144bf86828701614446565b9497909650939450505050565b5f5f604083850312156144dd575f5ffd5b82356144e8816143f8565b915060208301356144f8816143f8565b809150509250929050565b5f5f5f60608486031215614515575f5ffd5b8335614520816143f8565b92506020840135614530816143f8565b929592945050506040919091013590565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f6145c760e0830189614541565b82810360408401526145d98189614541565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b8181101561463b57835183526020938401939092019160010161461d565b50909b9a5050505050505050505050565b5f6020828403121561465c575f5ffd5b5035919050565b5f5f60208385031215614674575f5ffd5b823567ffffffffffffffff81111561468a575f5ffd5b61469685828601614446565b90969095509350505050565b5f602082840312156146b2575f5ffd5b813561099f816143f8565b5f5f83601f8401126146cd575f5ffd5b50813567ffffffffffffffff8111156146e4575f5ffd5b6020830191508360208260051b85010111156132ca575f5ffd5b5f5f5f5f5f5f60808789031215614713575f5ffd5b863561471e816143f8565b9550602087013561472e816143f8565b9450604087013567ffffffffffffffff811115614749575f5ffd5b61475589828a016146bd565b909550935050606087013567ffffffffffffffff811115614774575f5ffd5b61478089828a016146bd565b979a9699509497509295939492505050565b5f5f5f606084860312156147a4575f5ffd5b505081359360208301359350604090920135919050565b5f5f5f604084860312156147cd575f5ffd5b833567ffffffffffffffff8111156147e3575f5ffd5b8401608081870312156147f4575f5ffd5b9250602084013567ffffffffffffffff8111156144b3575f5ffd5b5f6020828403121561481f575f5ffd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115612fd657612fd6614826565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b81810381811115612fd657612fd6614826565b8183525f7f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156148d6575f5ffd5b8260051b80836020870137939093016020019392505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a060408201525f61493a60a0830186886148a6565b828103606084015261494d8185876148a6565b83810360809094019390935250505f81526020019695505050505050565b604081525f61497e6040830186886148a6565b8281036020840152613b1c8185876148a6565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126149c4575f5ffd5b83018035915067ffffffffffffffff8211156149de575f5ffd5b6020019150600581901b36038213156132ca575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff81118282101715614a4557614a456149f5565b60405290565b6040516060810167ffffffffffffffff81118282101715614a4557614a456149f5565b60405160c0810167ffffffffffffffff81118282101715614a4557614a456149f5565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614ad857614ad86149f5565b604052919050565b5f82601f830112614aef575f5ffd5b8135602083015f5f67ffffffffffffffff841115614b0f57614b0f6149f5565b50601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016602001614b4281614a91565b915050828152858383011115614b56575f5ffd5b828260208301375f92810160200192909252509392505050565b5f60808236031215614b80575f5ffd5b614b88614a22565b8235614b93816143f8565b81526020838101359082015260408084013590820152606083013567ffffffffffffffff811115614bc2575f5ffd5b830136601f820112614bd2575f5ffd5b803567ffffffffffffffff811115614bec57614bec6149f5565b8060051b614bfc60208201614a91565b91825260208184018101929081019036841115614c17575f5ffd5b6020850192505b83831015614cd257823567ffffffffffffffff811115614c3c575f5ffd5b85016060368290037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0011215614c70575f5ffd5b614c78614a4b565b6020820135614c86816143f8565b815260408201356020820152606082013567ffffffffffffffff811115614cab575f5ffd5b614cba36602083860101614ae0565b60408301525083525060209283019290910190614c1e565b6060860152509295945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa1833603018112614d41575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614d7e575f5ffd5b83018035915067ffffffffffffffff821115614d98575f5ffd5b6020019150368190038213156132ca575f5ffd5b818382375f9101908152919050565b83815273ffffffffffffffffffffffffffffffffffffffff83166020820152606060408201525f6139086060830184614541565b81835281816020850137505f602082840101525f60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b848152606060208201525f614e4f606083018587614def565b8281036040840152613b1c8185614541565b5f60208284031215614e71575f5ffd5b815161099f816143f8565b5f5f60408385031215614e8d575f5ffd5b8251614e98816143f8565b6020939093015192949293505050565b838152604060208201525f613908604083018486614def565b81515f90829060208501835b82811015614eeb578151845260209384019390910190600101614ecd565b509195945050505050565b5f60c08236031215614f06575f5ffd5b614f0e614a6e565b82358152602080840135908201526040808401359082015260608084013590820152608083013567ffffffffffffffff811115614f49575f5ffd5b614f5536828601614ae0565b60808301525060a083013567ffffffffffffffff811115614f74575f5ffd5b614f8036828601614ae0565b60a08301525092915050565b5f5f85851115614f9a575f5ffd5b83861115614fa6575f5ffd5b5050820193919092039150565b80356020831015612fd6577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602084900360031b1b1692915050565b5f81518060208401855e5f93019283525090919050565b5f612fd38284614fef565b5f61501c8285614fef565b9283525050602001919050565b7f226368616c6c656e6765223a220000000000000000000000000000000000000081525f61505a600d830184614fef565b7f220000000000000000000000000000000000000000000000000000000000000081526001019392505050565b5f826150ba577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b8082028115828204841417612fd657612fd661482656fe426174636828616464726573732077616c6c65742c75696e74323536206e6f6e63652c75696e7432353620646561646c696e652c43616c6c5b5d2063616c6c732943616c6c2861646472657373207461726765742c75696e743235362076616c75652c6279746573206461746129a26469706673582212206d19dcaff9b9dc0849f3b0fe54c3c1fcc7edb3fa2752f04846822667c2a8be1264736f6c63430008220033","recompiledBytecode":"0x608060405260043610610201575f3560e01c80638dc2c6891161011c578063d0f31620116100af578063e1f93ac51161007e578063e63f952f11610063578063e63f952f146105f5578063e8c8bf6414610614578063e9e371361461063357610208565b8063e1f93ac5146105c2578063e30c3978146105e157610208565b8063d0f3162014610536578063d4eec5a614610555578063d7fa476f14610569578063d8cb0d66146105a357610208565b8063affed0e0116100eb578063affed0e0146104d0578063b9ac71d6146104e4578063c45a015514610503578063c4d66de81461051757610208565b80638dc2c6891461044c578063a338d2171461046b578063adc8693e1461048a578063af640d0f146104bc57610208565b80635b48684e116101945780637ae26773116101635780637ae26773146103b95780638456cb59146103d857806384b0196e146103ec5780638da5cb5b1461041357610208565b80635b48684e1461035b5780635c975abb1461036f578063745ba8061461039157806376d0e490146103a557610208565b80632a45cacf116101d05780632a45cacf146102f55780633f4ba83a1461031457806344004cc11461032857806354d1f13d1461034757610208565b806307b18bde146102415780630a276680146102625780631626ba7e1461028157806324017fae146102d657610208565b3661020857005b5f3560e01c63bc197c81811463f23a6e6182141763150b7a028214171561023357806020526020603cf35b50633c10b94e5f526004601cfd5b34801561024c575f5ffd5b5061026061025b36600461441c565b610654565b005b34801561026d575f5ffd5b5061026061027c36600461441c565b6107cb565b34801561028c575f5ffd5b506102a061029b366004614484565b610812565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b3480156102e1575f5ffd5b506102606102f036600461441c565b6109a6565b348015610300575f5ffd5b5061026061030f3660046144cc565b610ac3565b34801561031f575f5ffd5b50610260610c90565b348015610333575f5ffd5b50610260610342366004614503565b610dfb565b348015610352575f5ffd5b50610260610f8b565b348015610366575f5ffd5b50610260610fcc565b34801561037a575f5ffd5b50610383611133565b6040519081526020016102cd565b34801561039c575f5ffd5b50610383611167565b3480156103b0575f5ffd5b50610383611175565b3480156103c4575f5ffd5b506102606103d33660046144cc565b61117e565b3480156103e3575f5ffd5b50610260611300565b3480156103f7575f5ffd5b50610400611371565b6040516102cd979695949392919061458d565b34801561041e575f5ffd5b50610427611419565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102cd565b348015610457575f5ffd5b5061026061046636600461464c565b611422565b348015610476575f5ffd5b50610260610485366004614663565b6114b0565b348015610495575f5ffd5b507f4bc04a483367e3b8d2c7dac8d60b56e696d24ef97f345830002d363ea50a2298610383565b3480156104c7575f5ffd5b506103836114ba565b3480156104db575f5ffd5b506103836114c4565b3480156104ef575f5ffd5b506103836104fe3660046146a2565b6114f1565b34801561050e575f5ffd5b5061042761152f565b348015610522575f5ffd5b506102606105313660046146a2565b611540565b348015610541575f5ffd5b5061026061055036600461464c565b6115d3565b348015610560575f5ffd5b50610260611734565b348015610574575f5ffd5b5061058861058336600461464c565b611882565b604080519384526020840192909252908201526060016102cd565b3480156105ae575f5ffd5b506102606105bd3660046146fe565b6118d5565b3480156105cd575f5ffd5b506102606105dc366004614792565b611ad4565b3480156105ec575f5ffd5b50610427611c0e565b348015610600575f5ffd5b5061026061060f3660046146a2565b611c17565b34801561061f575f5ffd5b5061026061062e3660046147bb565b611c9d565b34801561063e575f5ffd5b5061026061064d3660046146a2565b612357565b565b5f61065d611133565b9050805f03610698576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106a061152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106e8573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061070c919061480f565b6107169082614853565b421161074e576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107566124a7565b61077673ffffffffffffffffffffffffffffffffffffffff841683612513565b8273ffffffffffffffffffffffffffffffffffffffff167f2c876ecb97b3c6854f2488d373403f903eacb800e51c159a5c0c7a9c857e4827836040516107be91815260200190565b60405180910390a2505050565b333014610804576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61080e828261252c565b5050565b5f5f5f5f6108208686612682565b919450925090505f808080600187600281111561083f5761083f614866565b036108535761084c611419565b9350610967565b600287600281111561086757610867614866565b148015610872575084155b156108be57859350610883846114f1565b42106108b957507fffffffff00000000000000000000000000000000000000000000000000000000965061099f95505050505050565b610967565b60028760028111156108d2576108d2614866565b1480156108df5750600185145b15610937575f6108ee87611882565b9195509350905042811161092d57507fffffffff00000000000000000000000000000000000000000000000000000000975061099f9650505050505050565b6001915050610967565b507fffffffff00000000000000000000000000000000000000000000000000000000965061099f95505050505050565b836080528060a0528260c0528160e052610100604051101561098a576101006040525b6109958b8b8b6128a4565b9750505050505050505b9392505050565b3330146109df576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216610a2c576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b428111610a65576040517f488b16b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a6f828261290a565b8173ffffffffffffffffffffffffffffffffffffffff167fcacba9f642804cfed98e2bb1d1c05bc4c78b35a209cdffdb4674b3363bafd92b82604051610ab791815260200190565b60405180910390a25050565b5f610acc611133565b9050805f03610b07576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b0f61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b57573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b7b919061480f565b610b859082614853565b4211610bbd576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bc56124a7565b6040517fa22cb46500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301525f602483015284169063a22cb465906044015f604051808303815f87803b158015610c31575f5ffd5b505af1158015610c43573d5f5f3e3d5ffd5b505060405173ffffffffffffffffffffffffffffffffffffffff8086169350861691507ff9dfa223fca66e1e19e96ad420898db0b0ada933c1d0c0953b3d5a44176f495c905f90a3505050565b5f610c99611133565b9050805f03610cd4576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cdc61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d24573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d48919061480f565b610d529082614853565b4211610d8a576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d926124a7565b5f610dbe60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b5f81556040514281529091507f9dd715fed52c25e642f97653bb4c4339ad98fe6d6e130348be82ae5d86383a8c9060200160405180910390a15050565b5f610e04611133565b9050805f03610e3f576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e4761152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e8f573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610eb3919061480f565b610ebd9082614853565b4211610ef5576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610efd6124a7565b610f1e73ffffffffffffffffffffffffffffffffffffffff85168484612946565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f2fbb3e8dc2807d6a61feb98fc2120153f77b2c0d25ef6272e1756935dd62c84784604051610f7d91815260200190565b60405180910390a350505050565b333014610fc4576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610652612999565b5f610fd5611133565b9050805f03611010576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61101861152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611060573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611084919061480f565b61108e9082614853565b42116110c6576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110ce6124a7565b6110d6612a46565b73ffffffffffffffffffffffffffffffffffffffff16635b48684e6040518163ffffffff1660e01b81526004015f604051808303815f87803b15801561111a575f5ffd5b505af115801561112c573d5f5f3e3d5ffd5b5050505050565b5f8061116060017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b5492915050565b5f611170612b93565b905090565b5f611170612bc0565b5f611187611133565b9050805f036111c2576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111ca61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611212573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611236919061480f565b6112409082614853565b4211611278576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112806124a7565b6112a173ffffffffffffffffffffffffffffffffffffffff8416835f612bed565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8da578e4cb2672c4986388e504a6f639391986195c077e5db9f48e04c97a501b60405160405180910390a3505050565b6113086124a7565b5f61133460017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b428082556040519081529091507f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e9060200160405180910390a150565b7f0f000000000000000000000000000000000000000000000000000000000000006060805f808083611407604080518082018252600d81527f4465706f73697457616c6c6574000000000000000000000000000000000000006020808301919091528251808401909352600183527f31000000000000000000000000000000000000000000000000000000000000009083015291565b97989097965046955030945091925090565b5f611170612c36565b33301461145b576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5f61146683611882565b509092509050611478835f8080612c63565b604080518381526020810183905284917f415ca13a1f0f66d402c248f2677c40f1ec4794c656c96f71569a09831c99fb1e91016107be565b61080e8282612caa565b5f5f61099f612e95565b5f8061116060017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6614893565b5f8061151e60017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db614893565b5f9384526020525050604090205490565b5f5f611539612e95565b5092915050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156115915760018160011c14303b106115885763f92ee8a95f526004601cfd5b818160ff1b1b91505b5061159b82612f03565b801561080e576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15050565b5f6115dc611133565b9050805f03611617576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61161f61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611667573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061168b919061480f565b6116959082614853565b42116116cd576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6116d56124a7565b5f5f6116e084611882565b5090925090506116f2845f8080612c63565b604080518381526020810183905285917fad3961171307ef42f17267087f5444061f871d6b814636723504b96f1f0d36bd91015b60405180910390a250505050565b5f61173d611133565b9050805f03611778576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61178061152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117ec919061480f565b6117f69082614853565b421161182e576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118366124a7565b61183e612a46565b73ffffffffffffffffffffffffffffffffffffffff1663d4eec5a66040518163ffffffff1660e01b81526004015f604051808303815f87803b15801561111a575f5ffd5b5f8080806118b160017f3aeceb64e5bf1bc571c0f9d844588aca01e747977eb627cfe37418f8e321be26614893565b5f958652602052505060409092208054600182015460029092015490949193509150565b5f6118de611133565b9050805f03611919576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61192161152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611969573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061198d919061480f565b6119979082614853565b42116119cf576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119d76124a7565b6040517f2eb2c2d600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff881690632eb2c2d690611a339030908a908a908a908a908a906004016148ef565b5f604051808303815f87803b158015611a4a575f5ffd5b505af1158015611a5c573d5f5f3e3d5ffd5b505050508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fb790ced15183f79ade456fb39c4fc443005b36f92a7318ef6e0e9f18dc05b04087878787604051611ac3949392919061496b565b60405180910390a350505050505050565b333014611b0d576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611b178383612fc8565b83839091611b5f576040517f304d0228000000000000000000000000000000000000000000000000000000008152600481019290925260248201526044015b60405180910390fd5b5050428111611b9a576040517f488b16b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051602080820186905281830185905282518083038401815260609092019092528051910120611bce81858585612c63565b604080518581526020810185905290810183905281907fd5becded5e17b1418ca2798bb03d5ad44e2dbe712bc69040381f1cc3efffbd5390606001611726565b5f611170612fdc565b333014611c50576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c5a815f61290a565b60405173ffffffffffffffffffffffffffffffffffffffff8216907feac85989fadc30dfe2712c2308dcfecb3f9af1d15422056fc5a98ed1b49ca209905f90a250565b611ca561152f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d09576040517f0c6d42ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611d176060850185614991565b905011611d50576040517fc2e5347d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b30611d5e60208501856146a2565b73ffffffffffffffffffffffffffffffffffffffff1614611dab576040517f23455ba100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80611dd860017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6614893565b80546001810182559250905060208501358214611e21576040517f756688fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8460400135421115611e5f576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611e71611e6c87614b70565b613009565b90505f611e7d826130a3565b90507f1626ba7e00000000000000000000000000000000000000000000000000000000611eab828888610812565b7fffffffff000000000000000000000000000000000000000000000000000000001614611f04576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611f0f87876131b9565b90505f81611f1d575f611f25565b611f25612a46565b90505f5b611f3660608b018b614991565b905081101561232157821580611f9e575030611f5560608c018c614991565b83818110611f6557611f65614ce2565b9050602002810190611f779190614d0f565b611f859060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff1614155b611fd4576040517fde4e67c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b821580612049575073ffffffffffffffffffffffffffffffffffffffff821661200060608c018c614991565b8381811061201057612010614ce2565b90506020028101906120229190614d0f565b6120309060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff1614155b61207f576040517f63adb1da00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8061208e60608d018d614991565b8481811061209e5761209e614ce2565b90506020028101906120b09190614d0f565b6120be9060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff166120e160608e018e614991565b858181106120f1576120f1614ce2565b90506020028101906121039190614d0f565b6020013561211460608f018f614991565b8681811061212457612124614ce2565b90506020028101906121369190614d0f565b612144906040810190614d4b565b604051612152929190614dac565b5f6040518083038185875af1925050503d805f811461218c576040519150601f19603f3d011682016040523d82523d5f602084013e612191565b606091505b50909250905081836121a660608f018f614991565b868181106121b6576121b6614ce2565b90506020028101906121c89190614d0f565b6121d69060208101906146a2565b83909192612213576040517fb09725d2000000000000000000000000000000000000000000000000000000008152600401611b5693929190614dbb565b5061222491505060608d018d614991565b8481811061223457612234614ce2565b90506020028101906122469190614d0f565b6122549060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff167ffde9c64d8b0b21fe439285c271603188269ad7c561364f724d48e9846120d7b661229860608f018f614991565b868181106122a8576122a8614ce2565b90506020028101906122ba9190614d0f565b602001358e80606001906122ce9190614991565b878181106122de576122de614ce2565b90506020028101906122f09190614d0f565b6122fe906040810190614d4b565b8560405161230f9493929190614e36565b60405180910390a25050600101611f29565b60405187907fe9cc9bbe7de1cbb097a6357ca3182909488efe8d793e25665befc064a02d10a7905f90a250505050505050505050565b5f612360611133565b9050805f0361239b576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123a361152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156123eb573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061240f919061480f565b6124199082614853565b4211612451576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124596124a7565b612463825f61290a565b60405173ffffffffffffffffffffffffffffffffffffffff8316907f61be9e006b8f5c6e0e05905bb6a35efabbb3343c37d33552f634bd1d20f64141905f90a25050565b6124af611419565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610652576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f385f3884865af161080e5763b12d13eb5f526004601cfd5b73ffffffffffffffffffffffffffffffffffffffff8216158015906125845750612554611419565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156125a6575073ffffffffffffffffffffffffffffffffffffffff82163014155b6125dc576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80421115612616576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61261f826131e8565b6126288161321b565b5f612631613247565b604080518481526020810183905291925073ffffffffffffffffffffffffffffffffffffffff8516917f34280f73a4dfa646661714dfe2e00bc6df3de0581f552bd4420061f686d28bea91016107be565b5f8080602084101561269c5750600191505f90508061289d565b8484017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001357f6492649264926492649264926492649264926492649264926492649264926492145f80826126fe5750600194505f935083925061289d915050565b60a087101561271957505f945084935083925061289d915050565b505060408601356060808801359088359060208a013590841415806127675750612764601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff614893565b83115b1561278057505f965086955085945061289d9350505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe06127ad85601f614853565b1690506127db60a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff614893565b8111156127f757505f975087965086955061289d945050505050565b6128028160a0614853565b8a1461281d57505f975087965086955061289d945050505050565b816128665760a083901c158015612849575073ffffffffffffffffffffffffffffffffffffffff831615155b15612861575060029750909550935061289d92505050565b61288d565b60018214801561287557508215155b1561288d575060029750909550935061289d92505050565b505f975087965086955050505050505b9250925092565b5f816128e15761773961ffff8319040284036128e157507f773900010000000000000000000000000000000000000000000000000000000061099f565b5f6128f5856128f08686613283565b6132d1565b155f03631626ba7e1760e01b95945050505050565b5f61293660017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db614893565b5f93845260205250604090912055565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f51141661298f57803d853b15171061298f576390b8ec185f526004601cfd5b505f603452505050565b5f6129a2611c0e565b905073ffffffffffffffffffffffffffffffffffffffff81166129f1576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129fa5f6131e8565b612a035f61321b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92905f90a250565b5f8080612a7460017fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d51614893565b80549250905073ffffffffffffffffffffffffffffffffffffffff821615612a9c5750919050565b5f80612ac960017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd614893565b80549250905073ffffffffffffffffffffffffffffffffffffffff82163b612b1d576040517fe6e1262b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166349493a4d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b66573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b8a9190614e61565b94505050505090565b5f8061116060017fa250db4cdd0e79ff2dcd111477627e89b67cf8b26f7530ac9c97168fe892adcf614893565b5f8061116060017f83e56f89581bfd0d900ad9e7f5ffe08b050af9835151520198ecf6256538e8cb614893565b81601452806034526f095ea7b30000000000000000000000005f5260205f604460105f875af18060015f51141661298f57803d853b15171061298f57633e3f8f735f526004601cfd5b5f8061116060017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b5f612c8f60017f3aeceb64e5bf1bc571c0f9d844588aca01e747977eb627cfe37418f8e321be26614893565b5f958652602052506040909320918255600182015560020155565b5f612cb3611c0e565b905073ffffffffffffffffffffffffffffffffffffffff8116612d02576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612d0a611175565b421115612d43576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f9f22c1bf28d77bcb7ce8f5213eb18f0ddc1a5e8bd395eb34854777f52990c51782612d6e611167565b604051602001612da79392919092835273ffffffffffffffffffffffffffffffffffffffff919091166020830152604082015260600190565b6040516020818303038152906040528051906020012090505f612dc9826130a3565b9050612dd783828787613307565b612e0d576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612e16611419565b9050612e215f6131e8565b612e2a5f61321b565b612e33846134aa565b8373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f38bafbf020d44b4ca47fda166836e6a0e0a15a9d6fec166834c0125e193830ff60405160405180910390a3505050505050565b604080518181526060810182525f91829182916020820181803683370190505090503060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0823b0160208401833c81806020019051810190612ef89190614e7c565b909590945092505050565b73ffffffffffffffffffffffffffffffffffffffff8116612f50576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612f7c60017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b82815560405190915073ffffffffffffffffffffffffffffffffffffffff8316905f907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35050565b5f612fd38383613531565b90505b92915050565b5f8061116060017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770614893565b5f6040518060a00160405280606e81526020016150d7606e913980519060200120825f01518360200151846040015161304586606001516135b6565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff909416938501939093526060840191909152608083015260a082015260c0015b604051602081830303815290604052805190602001209050919050565b7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000030147f00000000000000000000000000000000000000000000000000000000000000004614166131965750604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527f000000000000000000000000000000000000000000000000000000000000000060208201527f00000000000000000000000000000000000000000000000000000000000000009181019190915246606082015230608082015260a090205b6719010000000000005f5280601a5281603a52604260182090505f603a52919050565b5f5f6131c58484612682565b50909150600290508160028111156131df576131df614866565b14949350505050565b5f61321460017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770614893565b9190915550565b5f61321460017f83e56f89581bfd0d900ad9e7f5ffe08b050af9835151520198ecf6256538e8cb614893565b5f8061327460017fa250db4cdd0e79ff2dcd111477627e89b67cf8b26f7530ac9c97168fe892adcf614893565b80546001019081905592915050565b818161649261ffff30801c1904028183017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00135036132ca57506040810135016020810190355b9250929050565b5f6132dd848484613680565b806132ee57506132ee848484613699565b806132ff57506132ff848484613911565b949350505050565b5f73ffffffffffffffffffffffffffffffffffffffff851661332a57505f6132ff565b60408214806133395750604182145b15613383578473ffffffffffffffffffffffffffffffffffffffff1661336085858561397c565b73ffffffffffffffffffffffffffffffffffffffff1603613383575060016132ff565b73ffffffffffffffffffffffffffffffffffffffff85163014806133bc575073ffffffffffffffffffffffffffffffffffffffff85163b155b156133c857505f6132ff565b5f8484846040516024016133de93929190614ea8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f1626ba7e0000000000000000000000000000000000000000000000000000000017815282519293505f928392918391908b5afa5f513d6020149091169250905081801561349e57507f1626ba7e0000000000000000000000000000000000000000000000000000000081145b98975050505050505050565b5f6134b3611419565b90505f6134e160017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b83815560405190915073ffffffffffffffffffffffffffffffffffffffff80851691908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f7fffffffff00000001000000000000000000000000ffffffffffffffffffffffff80838409817f5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b8387857fffffffff00000001000000000000000000000000fffffffffffffffffffffffc878b8c0908090894821191909310169190921416919050565b5f5f825167ffffffffffffffff8111156135d2576135d26149f5565b6040519080825280602002602001820160405280156135fb578160200160208202803683370190505b5090505f5b83518110156136505761362b84828151811061361e5761361e614ce2565b6020026020010151613a10565b82828151811061363d5761363d614ce2565b6020908102919091010152600101613600565b50806040516020016136629190614ec1565b60405160208183030381529060405280519060200120915050919050565b5f613689613a81565b1561099f576132ff848484613abd565b5f308015613705575f5f5f5f5f6136ae611371565b5060408051865160209788012081830152855195909601949094206060860152608085019290925273ffffffffffffffffffffffffffffffffffffffff1660a084015260c083015260e08201905296505050505050505b6040516002840385013560f01c8060420180860387016119015f52604081602037821582881017896042601e20181715613770575f94507f983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de85528860205260408520985050506138e8565b7f5479706564446174615369676e280000000000000000000000000000000000008452600e84018360408301823760288185019081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01515f1a602914613808575f6001858301035b6001820191506029828203515f1a14868310116137da57508085039450808560408501018337602881830153505b6f07fffffe00000000000001000000000081515f1a1c5b602882515f1a1461384557806512010000000183515f1a1c17905060018201915061381f565b7f20636f6e74656e74732c737472696e67206e616d652c737472696e670000000082527f2076657273696f6e2c75696e7432353620636861696e49642c61646472657373601c8301527f20766572696679696e67436f6e74726163742c627974657333322073616c7429603c830152605c820191508460408401833760408388379084018590038520865260e08620604052600116604201601e20985050909403935b50604052806138fd576138fa856130a3565b94505b613908858585613abd565b95945050505050565b5f3a61099f573a3a526d378edcd5b5b0a24f5342d8c1048560203a3a388461fffffa503a5161397057604051631626ba7e3a528160205260408052454561ffff0117805a10838814171561396157fe5b3a3a6064601c3085fa50506040525b506132ff848484613abd565b5f604051826040811461399757604181146139d75750613a08565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff166060526139e8565b60408501355f1a6020526040856040375b50845f526020604060805f60015afa505f6060523d606018519150806040525b509392505050565b805160208083015160408085015180519084012081517f84fa2cf05cd88e992eae77e851af68a4ee278dcff6ef504e487a55b3baadfbe59481019490945273ffffffffffffffffffffffffffffffffffffffff90941690830152606082015260808101919091525f9060a001613086565b5f613a8a61152f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b60a05160c05160e0515f9291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301613b0857613afe8783838989613b27565b935050505061099f565b613b1c613b1460805190565b888888613307565b979650505050505050565b5f5f36613b348585613b77565b9150915081801561349e575061349e88604051602001613b5691815260200190565b60405160208183030381529060405282613b6f90614ef6565b89895f613c73565b5f8260c0831015613b8a575f91506132ca565b5f613b988460808188614f8c565b613ba191614fb3565b90505f613bb18560a08189614f8c565b613bba91614fb3565b905081613bc8602087614893565b1080613bdd575080613bdb602087614893565b105b15613bec575f935050506132ca565b5f613bf98684818a614f8c565b613c0291614fb3565b90505f613c118784818b614f8c565b613c1a91614fb3565b9050816020613c29868a614893565b613c339190614893565b1080613c535750806020613c47858a614893565b613c519190614893565b105b15613c64575f9550505050506132ca565b60019550505050509250929050565b5f6024856080015151118015613ceb5750613ceb8560a0015186606001518181016020015191516014909101107fffffffffffffffffffffffffffffffffffffffffff0000000000000000000000919091167f2274797065223a22776562617574686e2e676574220000000000000000000000141690565b8015613d055750613d058560a00151866040015188613ef8565b8015613d535750613d538560800151602081518110613d2657613d26614ce2565b01602001517f01000000000000000000000000000000000000000000000000000000000000009081161490565b8015613da95750811580613da95750613da98560800151602081518110613d7c57613d7c614ce2565b01602001517f04000000000000000000000000000000000000000000000000000000000000009081161490565b8015613df65750613df68560800151602081518110613dca57613dca614ce2565b01602001517fff0000000000000000000000000000000000000000000000000000000000000016613f46565b8015613eee5750613eee6002866080015160028860a00151604051613e1b9190615006565b602060405180830381855afa158015613e36573d5f5f3e3d5ffd5b5050506040513d601f19601f82011682018060405250810190613e59919061480f565b604051602001613e6a929190615011565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052613ea291615006565b602060405180830381855afa158015613ebd573d5f5f3e3d5ffd5b5050506040513d601f19601f82011682018060405250810190613ee0919061480f565b865160208801518787613f99565b9695505050505050565b5f5f613f0383613ff1565b604051602001613f139190615029565b60405160208183030381529060405290505f613f3a8686613f35888651613ffe565b614035565b9050613eee81836140b6565b5f7f08000000000000000000000000000000000000000000000000000000000000008281161480612fd65750507f1000000000000000000000000000000000000000000000000000000000000000161590565b5f5f5f613fa988888888886140c1565b915091508015613fbb57509050613908565b6040517f42b01bce0000000000000000000000000000000000000000000000000000000081526101006004820152602401611b56565b6060612fd682600161419c565b5f828201838110159081027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808218830218613908565b606061404282855161431b565b915061404e838361431b565b92505f61405b8484614893565b67ffffffffffffffff811115614073576140736149f5565b6040519080825280601f01601f19166020018201604052801561409d576020820181803683370190505b509050838303846020870101602083015e949350505050565b5f612fd3838361432a565b5f5f6140cd868661434e565b15806140e057506140de8484613531565b155b156140f057505f90506001614192565b6140fd87878787876143b8565b1561410d57506001905080614192565b61417c7fbb5a52f42f9c9261ed4361f59422a1e30036e7c32b270c8807a419feca605023600560017fa71af64de5126a4a4e02b7922d66ce9415ce88a4c9d25514d91082c8725ac9577f5d47723c8fbe580bb369fec9c2665d8e30a435b9932645482e7c9f11e872296b6143b8565b1561418c57505f90506001614192565b505f9050805b9550959350505050565b606082515f036141ba575060408051602081019091525f8152612fd6565b5f826141ea576003845160026141d09190614853565b6141da9190615087565b6141e59060046150bf565b61420f565b6003845160046141fa91906150bf565b614205906002614853565b61420f9190615087565b905060405191507f4142434445464748494a4b4c4d4e4f505152535455565758595a616263646566601f5261067083027f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f18603f526020820181810185865187016020810180515f82525b828410156142cd576003840193508351603f8160121c16518753600187019650603f81600c1c16518753600187019650603f8160061c16518753600187019650603f81165187535060018601955061427a565b90525085905061430e576003865106600181146142f157600281146143045761430c565b603d6001840353603d600284035361430c565b603d60018403535b505b9183525060405292915050565b5f828218828410028218612fd3565b5f81518351148015612fd35750508051602091820120825192909101919091201490565b5f821580159061437d57507fffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc63255183105b801561438857508115155b8015612fd35750507f7fffffff800000007fffffffffffffffde737d56d38bcf4279dce5617e3192a81015919050565b5f6040518681528560208201528460408201528360608201528260808201525f5f5260205f60a0836101005afa6143eb57fe5b50505f5195945050505050565b73ffffffffffffffffffffffffffffffffffffffff81168114614419575f5ffd5b50565b5f5f6040838503121561442d575f5ffd5b8235614438816143f8565b946020939093013593505050565b5f5f83601f840112614456575f5ffd5b50813567ffffffffffffffff81111561446d575f5ffd5b6020830191508360208285010111156132ca575f5ffd5b5f5f5f60408486031215614496575f5ffd5b83359250602084013567ffffffffffffffff8111156144b3575f5ffd5b6144bf86828701614446565b9497909650939450505050565b5f5f604083850312156144dd575f5ffd5b82356144e8816143f8565b915060208301356144f8816143f8565b809150509250929050565b5f5f5f60608486031215614515575f5ffd5b8335614520816143f8565b92506020840135614530816143f8565b929592945050506040919091013590565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f6145c760e0830189614541565b82810360408401526145d98189614541565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b8181101561463b57835183526020938401939092019160010161461d565b50909b9a5050505050505050505050565b5f6020828403121561465c575f5ffd5b5035919050565b5f5f60208385031215614674575f5ffd5b823567ffffffffffffffff81111561468a575f5ffd5b61469685828601614446565b90969095509350505050565b5f602082840312156146b2575f5ffd5b813561099f816143f8565b5f5f83601f8401126146cd575f5ffd5b50813567ffffffffffffffff8111156146e4575f5ffd5b6020830191508360208260051b85010111156132ca575f5ffd5b5f5f5f5f5f5f60808789031215614713575f5ffd5b863561471e816143f8565b9550602087013561472e816143f8565b9450604087013567ffffffffffffffff811115614749575f5ffd5b61475589828a016146bd565b909550935050606087013567ffffffffffffffff811115614774575f5ffd5b61478089828a016146bd565b979a9699509497509295939492505050565b5f5f5f606084860312156147a4575f5ffd5b505081359360208301359350604090920135919050565b5f5f5f604084860312156147cd575f5ffd5b833567ffffffffffffffff8111156147e3575f5ffd5b8401608081870312156147f4575f5ffd5b9250602084013567ffffffffffffffff8111156144b3575f5ffd5b5f6020828403121561481f575f5ffd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115612fd657612fd6614826565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b81810381811115612fd657612fd6614826565b8183525f7f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156148d6575f5ffd5b8260051b80836020870137939093016020019392505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a060408201525f61493a60a0830186886148a6565b828103606084015261494d8185876148a6565b83810360809094019390935250505f81526020019695505050505050565b604081525f61497e6040830186886148a6565b8281036020840152613b1c8185876148a6565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126149c4575f5ffd5b83018035915067ffffffffffffffff8211156149de575f5ffd5b6020019150600581901b36038213156132ca575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff81118282101715614a4557614a456149f5565b60405290565b6040516060810167ffffffffffffffff81118282101715614a4557614a456149f5565b60405160c0810167ffffffffffffffff81118282101715614a4557614a456149f5565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614ad857614ad86149f5565b604052919050565b5f82601f830112614aef575f5ffd5b8135602083015f5f67ffffffffffffffff841115614b0f57614b0f6149f5565b50601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016602001614b4281614a91565b915050828152858383011115614b56575f5ffd5b828260208301375f92810160200192909252509392505050565b5f60808236031215614b80575f5ffd5b614b88614a22565b8235614b93816143f8565b81526020838101359082015260408084013590820152606083013567ffffffffffffffff811115614bc2575f5ffd5b830136601f820112614bd2575f5ffd5b803567ffffffffffffffff811115614bec57614bec6149f5565b8060051b614bfc60208201614a91565b91825260208184018101929081019036841115614c17575f5ffd5b6020850192505b83831015614cd257823567ffffffffffffffff811115614c3c575f5ffd5b85016060368290037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0011215614c70575f5ffd5b614c78614a4b565b6020820135614c86816143f8565b815260408201356020820152606082013567ffffffffffffffff811115614cab575f5ffd5b614cba36602083860101614ae0565b60408301525083525060209283019290910190614c1e565b6060860152509295945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa1833603018112614d41575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614d7e575f5ffd5b83018035915067ffffffffffffffff821115614d98575f5ffd5b6020019150368190038213156132ca575f5ffd5b818382375f9101908152919050565b83815273ffffffffffffffffffffffffffffffffffffffff83166020820152606060408201525f6139086060830184614541565b81835281816020850137505f602082840101525f60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b848152606060208201525f614e4f606083018587614def565b8281036040840152613b1c8185614541565b5f60208284031215614e71575f5ffd5b815161099f816143f8565b5f5f60408385031215614e8d575f5ffd5b8251614e98816143f8565b6020939093015192949293505050565b838152604060208201525f613908604083018486614def565b81515f90829060208501835b82811015614eeb578151845260209384019390910190600101614ecd565b509195945050505050565b5f60c08236031215614f06575f5ffd5b614f0e614a6e565b82358152602080840135908201526040808401359082015260608084013590820152608083013567ffffffffffffffff811115614f49575f5ffd5b614f5536828601614ae0565b60808301525060a083013567ffffffffffffffff811115614f74575f5ffd5b614f8036828601614ae0565b60a08301525092915050565b5f5f85851115614f9a575f5ffd5b83861115614fa6575f5ffd5b5050820193919092039150565b80356020831015612fd6577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602084900360031b1b1692915050565b5f81518060208401855e5f93019283525090919050565b5f612fd38284614fef565b5f61501c8285614fef565b9283525050602001919050565b7f226368616c6c656e6765223a220000000000000000000000000000000000000081525f61505a600d830184614fef565b7f220000000000000000000000000000000000000000000000000000000000000081526001019392505050565b5f826150ba577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b8082028115828204841417612fd657612fd661482656fe426174636828616464726573732077616c6c65742c75696e74323536206e6f6e63652c75696e7432353620646561646c696e652c43616c6c5b5d2063616c6c732943616c6c2861646472657373207461726765742c75696e743235362076616c75652c6279746573206461746129a26469706673582212206d19dcaff9b9dc0849f3b0fe54c3c1fcc7edb3fa2752f04846822667c2a8be1264736f6c63430008220033","sourceMap":"1849:30616:22:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1815:1:10;1802:15;1797:3;1793:25;2161:10;2158:1;2155:17;2142:10;2139:1;2136:17;2133:40;2120:10;2117:1;2114:17;2111:63;2108:298;;;2306:1;2300:4;2293:15;2300:4;2356;2349:18;2108:298;;1408:10:::1;1402:4;1395:24;1477:4;1471;1464:18;18349:175:22::0;;;;;;;;;;-1:-1:-1;18349:175:22;;;;;:::i;:::-;;:::i;:::-;;16063:140;;;;;;;;;;-1:-1:-1;16063:140:22;;;;;:::i;:::-;;:::i;28476:1778::-;;;;;;;;;;-1:-1:-1;28476:1778:22;;;;;:::i;:::-;;:::i;:::-;;;1599:66:34;1587:79;;;1569:98;;1557:2;1542:18;28476:1778:22;;;;;;;;13879:357;;;;;;;;;;-1:-1:-1;13879:357:22;;;;;:::i;:::-;;:::i;20458:219::-;;;;;;;;;;-1:-1:-1;20458:219:22;;;;;:::i;:::-;;:::i;17887:207::-;;;;;;;;;;;;;:::i;18820:230::-;;;;;;;;;;-1:-1:-1;18820:230:22;;;;;:::i;:::-;;:::i;16331:96::-;;;;;;;;;;;;;:::i;24442:81::-;;;;;;;;;;;;;:::i;7216:180::-;;;;;;;;;;;;;:::i;:::-;;;2730:25:34;;;2718:2;2703:18;7216:180:22;2584:177:34;10186:187:22;;;;;;;;;;;;;:::i;9854:193::-;;;;;;;;;;;;;:::i;20009:187::-;;;;;;;;;;-1:-1:-1;20009:187:22;;;;;:::i;:::-;;:::i;17556:202::-;;;;;;;;;;;;;:::i;11383:596:16:-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:::i;9242:127:22:-;;;;;;;;;;;;;:::i;:::-;;;4614:42:34;4602:55;;;4584:74;;4572:2;4557:18;9242:127:22;4438:226:34;15245:283:22;;;;;;;;;;-1:-1:-1;15245:283:22;;;;;:::i;:::-;;:::i;17020:126::-;;;;;;;;;;-1:-1:-1;17020:126:22;;;;;:::i;:::-;;:::i;10587:105::-;;;;;;;;;;-1:-1:-1;4721:37:22;10587:105;;8730:119;;;;;;;;;;;;;:::i;6895:176::-;;;;;;;;;;;;;:::i;7635:343::-;;;;;;;;;;-1:-1:-1;7635:343:22;;;;;:::i;:::-;;:::i;9004:133::-;;;;;;;;;;;;;:::i;6509:98::-;;;;;;;;;;-1:-1:-1;6509:98:22;;;;;:::i;:::-;;:::i;21191:313::-;;;;;;;;;;-1:-1:-1;21191:313:22;;;;;:::i;:::-;;:::i;22836:83::-;;;;;;;;;;;;;:::i;8072:496::-;;;;;;;;;;-1:-1:-1;8072:496:22;;;;;:::i;:::-;;:::i;:::-;;;;5950:25:34;;;6006:2;5991:18;;5984:34;;;;6034:18;;;6027:34;5938:2;5923:18;8072:496:22;5748:319:34;19401:337:22;;;;;;;;;;-1:-1:-1;19401:337:22;;;;;:::i;:::-;;:::i;14680:493::-;;;;;;;;;;-1:-1:-1;14680:493:22;;;;;:::i;:::-;;:::i;9522:141::-;;;;;;;;;;;;;:::i;14434:176::-;;;;;;;;;;-1:-1:-1;14434:176:22;;;;;:::i;:::-;;:::i;11423:1971::-;;;;;;;;;;-1:-1:-1;11423:1971:22;;;;;:::i;:::-;;:::i;20900:206::-;;;;;;;;;;-1:-1:-1;20900:206:22;;;;;:::i;:::-;;:::i;2751:58:10:-;:::o;18349:175:22:-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;18443:28:::2;:19;::::0;::::2;18463:7:::0;18443:19:::2;:28::i;:::-;18504:3;18487:30;;;18509:7;18487:30;;;;2730:25:34::0;;2718:2;2703:18;;2584:177;18487:30:22::2;;;;;;;;5425:258:::0;18349:175;;:::o;16063:140::-;5253:10;5275:4;5253:27;5245:48;;;;;;;;;;;;;;;;;16156:40:::1;16175:9;16186;16156:18;:40::i;:::-;16063:140:::0;;:::o;28476:1778::-;28631:13;28661:36;28699:16;28717:18;28751:32;:10;;:30;:32::i;:::-;28660:123;;-1:-1:-1;28660:123:22;-1:-1:-1;28660:123:22;-1:-1:-1;28794:14:22;;;;28957:40;28939:14;:58;;;;;;;;:::i;:::-;;28935:927;;29022:7;:5;:7::i;:::-;29013:16;;28935:927;;;29081:40;29063:14;:58;;;;;;;;:::i;:::-;;:121;;;;-1:-1:-1;29141:43:22;;29063:121;29046:816;;;29242:8;;-1:-1:-1;29290:36:22;29242:8;29290:28;:36::i;:::-;29271:15;:55;29267:122;;-1:-1:-1;29353:21:22;;-1:-1:-1;29346:28:22;;-1:-1:-1;;;;;;29346:28:22;29267:122;29046:816;;;29440:40;29422:14;:58;;;;;;;;:::i;:::-;;:116;;;;;561:1:30;29500:10:22;:38;29422:116;29405:457;;;29563:18;29630:30;29651:8;29630:20;:30::i;:::-;29595:65;;-1:-1:-1;29595:65:22;-1:-1:-1;29595:65:22;-1:-1:-1;29678:15:22;:29;-1:-1:-1;29674:63:22;;-1:-1:-1;29716:21:22;;-1:-1:-1;29709:28:22;;-1:-1:-1;;;;;;;29709:28:22;29674:63;561:1:30;29751:41:22;;29549:254;29405:457;;;-1:-1:-1;29830:21:22;;-1:-1:-1;29823:28:22;;-1:-1:-1;;;;;;29823:28:22;29405:457;29928:6;29902:24;29895:40;29986:14;29955:29;29948:53;30050:8;30021:27;30014:45;30108:8;30079:27;30072:45;30149:5;30142:4;30136:11;30133:22;30130:49;;;30171:5;30165:4;30158:19;30130:49;30206:41;30229:5;30236:10;;30206:22;:41::i;:::-;30199:48;;;;;;;;;28476:1778;;;;;;:::o;13879:357::-;5253:10;5275:4;5253:27;5245:48;;;;;;;;;;;;;;;;;13992:28:::1;::::0;::::1;13984:52;;;;;;;;;;;;;;;;;14068:15;14054:11;:29;14046:59;;;;;;;;;;;;;;;;;14115:46;14133:14;14149:11;14115:17;:46::i;:::-;14201:14;14177:52;;;14217:11;14177:52;;;;2730:25:34::0;;2718:2;2703:18;;2584:177;14177:52:22::1;;;;;;;;13879:357:::0;;:::o;20458:219::-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;20563:51:::2;::::0;;;;:33:::2;9542:55:34::0;;;20563:51:22::2;::::0;::::2;9524:74:34::0;20608:5:22::2;9614:18:34::0;;;9607:50;20563:33:22;::::2;::::0;::::2;::::0;9497:18:34;;20563:51:22::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;20630:40:22::2;::::0;::::2;::::0;;::::2;::::0;-1:-1:-1;20630:40:22;::::2;::::0;-1:-1:-1;20630:40:22::2;::::0;;;::::2;5425:258:::0;20458:219;;:::o;17887:207::-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;17946:12:::2;2914:46;2959:1;2922:33;2914:46;:::i;:::-;2906:55;18022:15:::0;;18062:25:::2;::::0;18071:15:::2;2730:25:34::0;;2906:55:22;;-1:-1:-1;18062:25:22::2;::::0;2718:2:34;2703:18;18062:25:22::2;;;;;;;17936:158;5425:258:::0;17887:207::o;18820:230::-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;18957:33:::2;:19;::::0;::::2;18977:3:::0;18982:7;18957:19:::2;:33::i;:::-;19030:3;19006:37;;19022:6;19006:37;;;19035:7;19006:37;;;;2730:25:34::0;;2718:2;2703:18;;2584:177;19006:37:22::2;;;;;;;;5425:258:::0;18820:230;;;:::o;16331:96::-;5253:10;5275:4;5253:27;5245:48;;;;;;;;;;;;;;;;;16394:26:::1;:24;:26::i;24442:81::-:0;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;24499:9:::2;:7;:9::i;:::-;:15;;;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5425:258:::0;24442:81::o;7216:180::-;7255:15;;2914:46;2959:1;2922:33;2914:46;:::i;:::-;7369:11;;7216:180;-1:-1:-1;;7216:180:22:o;10186:187::-;10302:14;10339:27;:25;:27::i;:::-;10332:34;;10186:187;:::o;9854:193::-;9973:14;10010:30;:28;:30::i;20009:187::-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;20108:31:::2;:18;::::0;::::2;20127:8:::0;20137:1:::2;20108:18;:31::i;:::-;20180:8;20155:34;;20172:6;20155:34;;;;;;;;;;;;5425:258:::0;20009:187;;:::o;17556:202::-;5771:13;:11;:13::i;:::-;17602:12:::1;2914:46;2959:1;2922:33;2914:46;:::i;:::-;17691:11;17678:25:::0;;;17728:23:::1;::::0;2730:25:34;;;2906:55:22;;-1:-1:-1;17728:23:22::1;::::0;2718:2:34;2703:18;17728:23:22::1;;;;;;;17592:166;17556:202::o:0;11383:596:16:-;11721:16;11508:18;;11481:13;;;11508:18;11779:23;32411:22:22;;;;;;;;;;;;;;;;;;;;32443:13;;;;;;;;;;;;;;;;32411:22;32241:222;11779:23:16;11383:596;;11761:41;;;-1:-1:-1;11822:13:16;;-1:-1:-1;11873:4:16;;-1:-1:-1;11383:596:16;;-1:-1:-1;11383:596:16;:::o;9242:127:22:-;9314:14;9347:15;:13;:15::i;15245:283::-;5253:10;5275:4;5253:27;5245:48;;;;;;;;;;;;;;;;;15330:9:::1;15341;15355:32;15376:10;15355:20;:32::i;:::-;-1:-1:-1::0;15329:58:22;;-1:-1:-1;15329:58:22;-1:-1:-1;15397:63:22::1;15422:10:::0;15442:1:::1;::::0;;15397:24:::1;:63::i;:::-;15476:45;::::0;;9975:25:34;;;10031:2;10016:18;;10009:34;;;15504:10:22;;15476:45:::1;::::0;9948:18:34;15476:45:22::1;9801:248:34::0;17020:126:22;17101:38;17128:10;;17101:26;:38::i;8730:119::-;8765:7;8787:11;8802:20;:18;:20::i;6895:176::-;6933:14;;2723:45;2767:1;2731:32;2723:45;:::i;7635:343::-;7735:19;;3163:68;3230:1;3171:55;3163:68;:::i;:::-;3155:77;7854:21;;;7895:4;7888:18;-1:-1:-1;;7956:4:22;7940:21;;7934:28;;7635:343::o;9004:133::-;9044:7;9064:16;9085:20;:18;:20::i;:::-;-1:-1:-1;9063:42:22;9004:133;-1:-1:-1;;9004:133:22:o;6509:98::-;2002:66:17;3769:8;;3867:1;3857:12;;3951:398;;;;4111:1;4107;4104;4100:9;4097:16;4085:9;4073:22;4070:44;4060:189;;4151:10;4145:4;4138:24;4226:4;4220;4213:18;4060:189;4288:1;4284;4279:3;4275:11;4271:19;4266:24;;3951:398;;6576:24:22::1;6593:6;6576:16;:24::i;:::-;4448:1:17::0;4445:264;;;4549:1;4546;4539:12;4630:1;4624:4;4617:15;4666:28;4660:4;4654;4649:46;4431:288;6509:98:22;:::o;21191:313::-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;21297:9:::2;21308;21322:32;21343:10;21322:20;:32::i;:::-;-1:-1:-1::0;21296:58:22;;-1:-1:-1;21296:58:22;-1:-1:-1;21364:63:22::2;21389:10:::0;21409:1:::2;::::0;;21364:24:::2;:63::i;:::-;21443:54;::::0;;9975:25:34;;;10031:2;10016:18;;10009:34;;;21480:10:22;;21443:54:::2;::::0;9948:18:34;21443:54:22::2;;;;;;;;21286:218;;5425:258:::0;21191:313;:::o;22836:83::-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;22894:9:::2;:7;:9::i;:::-;:16;;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8072:496:::0;8167:9;;;;3438:60;3497:1;3446:47;3438:60;:::i;:::-;3430:69;8315:24;;;8359:4;8352:18;-1:-1:-1;;8417:4:22;8401:21;;;8440:17;;8497:1;8481:18;;8475:25;8549:1;8533:18;;;8527:25;8440:17;;8475:25;;-1:-1:-1;8527:25:22;-1:-1:-1;8072:496:22:o;19401:337::-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;19587:77:::2;::::0;;;;:37:::2;::::0;::::2;::::0;::::2;::::0;:77:::2;::::0;19633:4:::2;::::0;19640:3;;19645:4;;;;19651:8;;;;19587:77:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19711:3;19680:51;;19703:6;19680:51;;;19716:4;;19722:8;;19680:51;;;;;;;;;:::i;:::-;;;;;;;;5425:258:::0;19401:337;;;;;;:::o;14680:493::-;5253:10;5275:4;5253:27;5245:48;;;;;;;;;;;;;;;;;14820:41:::1;14854:2;14858;14820:33;:41::i;:::-;14887:2;14891;14812:83;;;;;::::0;::::1;::::0;;::::1;::::0;::::1;9975:25:34::0;;;;10016:18;;;10009:34;9948:18;;14812:83:22::1;;;;;;;;;;;14927:15;14913:11;:29;14905:59;;;;;;;;;;;;;;;;;540:20:29::0;;;;;;;21059:19:34;;;21094:12;;;21087:28;;;540:20:29;;;;;;;;;21131:12:34;;;;540:20:29;;;530:31;;;;;15032:56:22::1;15057:9;15068:2;15072;15076:11;15032:24;:56::i;:::-;15104:62;::::0;;5950:25:34;;;6006:2;5991:18;;5984:34;;;6034:18;;;6027:34;;;15135:9:22;;15104:62:::1;::::0;5938:2:34;5923:18;15104:62:22::1;5748:319:34::0;9522:141:22;9601:14;9634:22;:20;:22::i;14434:176::-;5253:10;5275:4;5253:27;5245:48;;;;;;;;;;;;;;;;;14515:36:::1;14533:14;14549:1;14515:17;:36::i;:::-;14567;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;;::::1;14434:176:::0;:::o;11423:1971::-;5055:9;:7;:9::i;:::-;5041:23;;:10;:23;;;5033:47;;;;;;;;;;;;;;;;;11551:1:::1;11529:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;:19;;:23;11521:46;;;;;;;;;;;;;;;;;11610:4;11585:13;;::::0;::::1;:6:::0;:13:::1;:::i;:::-;:30;;;11577:56;;;;;;;;;;;;;;;;;11643:21;::::0;2723:45:::1;2767:1;2731:32;2723:45;:::i;:::-;11771:16:::0;;11837:1:::1;11818:21:::0;::::1;11800:40:::0;;11771:16;-1:-1:-1;2715:54:22;-1:-1:-1;11867:12:22::1;::::0;::::1;;:29:::0;::::1;11859:54;;;;;;;;;;;;;;;;;11950:6;:15;;;11931;:34;;11923:54;;;;;;;;;;;;;;;;;11988:17;12008:13;:11;:6:::0;:11:::1;:::i;:::-;;:13::i;:::-;11988:33;;12031:19;12053:25;12068:9;12053:14;:25::i;:::-;12031:47:::0;-1:-1:-1;12155:19:22;12110:41:::1;12031:47:::0;12140:10;;12110:16:::1;:41::i;:::-;:64:::0;::::1;;12089:115;;;;;;;;;;;;;;;;;12215:20;12238:37;:10;;:35;:37::i;:::-;12215:60;;12460:14;12477:15;:49;;12524:1;12477:49;;;12503:9;:7;:9::i;:::-;12460:66;;12537:9;12556:788;12567:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;:19;;12563:1;:23;12556:788;;;12629:15;12628:16;:59;;;-1:-1:-1::0;12682:4:22::1;12648:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;12661:1;12648:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:22;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;:39;;;;12628:59;12603:149;;;;;;;;;;;;;;;;;12792:15;12791:16;:52;;;-1:-1:-1::0;12811:32:22::1;::::0;::::1;:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;12824:1;12811:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:22;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;:32;;;;12791:52;12766:140;;;;;;;;;;;;;;;;;12922:12;::::0;12975::::1;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;12988:1;12975:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:22;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;:27;;13010:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;13023:1;13010:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:21;;;13033:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;13046:1;13033:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:20;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;12975:79;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;12921:133:22;;-1:-1:-1;12921:133:22;-1:-1:-1;12921:133:22;13102:1;13105:12:::1;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;13118:1;13105:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:22;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;13129:6;13069:68;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;13184:12:22::1;::::0;-1:-1:-1;;13184:12:22::1;::::0;::::1;:6:::0;:12:::1;:::i;:::-;13197:1;13184:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:22;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;13157:116;;;13208:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;13221:1;13208:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:21;;;13231:6;:12;;;;;;;;:::i;:::-;13244:1;13231:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:20;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;13253:6;13157:116;;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1::0;;13316:3:22::1;;12556:788;;;13359:28;::::0;13373:13;;13359:28:::1;::::0;;;::::1;11511:1883;;;;;;;11423:1971:::0;;;:::o;20900:206::-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;21002:36:::2;21020:14;21036:1;21002:17;:36::i;:::-;21054:45;::::0;::::2;::::0;::::2;::::0;::::2;::::0;;;::::2;5425:258:::0;20900:206;:::o;5846:108:28:-;5923:7;:5;:7::i;:::-;5909:21;;:10;:21;;;5901:46;;;;;;;;;;;;;;;;4505:342:19;4707:4;4695:10;4689:4;4677:10;4669:6;4665:2;4658:5;4653:59;4643:188;;4745:10;4739:4;4732:24;4812:4;4806;4799:18;6753:509:28;6867:23;;;;;;;:47;;;6907:7;:5;:7::i;:::-;6894:20;;:9;:20;;;;6867:47;:77;;;;-1:-1:-1;6918:26:28;;;6939:4;6918:26;;6867:77;6846:136;;;;;;;;;;;;;;;;;7019:9;7000:15;:28;;6992:48;;;;;;;;;;;;;;;;;7051:27;7068:9;7051:16;:27::i;:::-;7088:35;7113:9;7088:24;:35::i;:::-;7133:16;7152:29;:27;:29::i;:::-;7197:58;;;9975:25:34;;;10031:2;10016:18;;10009:34;;;7133:48:28;;-1:-1:-1;7197:58:28;;;;;;9948:18:34;7197:58:28;9801:248:34;1774:2517:30;1877:28;;;1983:4;1963:24;;1959:119;;;-1:-1:-1;2011:40:30;;-1:-1:-1;2061:1:30;;-1:-1:-1;2061:1:30;2003:64;;1959:119;2255:52;;;2278:28;2255:52;2242:66;2326:26;2222:144;2088:13;;2222:144;2385:104;;-1:-1:-1;2422:40:30;;-1:-1:-1;2472:1:30;;-1:-1:-1;2472:1:30;;-1:-1:-1;2414:64:30;;-1:-1:-1;;2414:64:30;2385:104;2522:4;2502:24;;2498:118;;;-1:-1:-1;2550:39:30;;-1:-1:-1;2550:39:30;;-1:-1:-1;2550:39:30;;-1:-1:-1;2542:63:30;;-1:-1:-1;;2542:63:30;2498:118;-1:-1:-1;;2933:4:30;2910:28;;2897:42;3003:4;2980:28;;;2967:42;;2758:31;;;2861:4;2838:28;;2825:42;;3033:21;;;;:63;;-1:-1:-1;3072:24:30;3092:4;3072:17;:24;:::i;:::-;3058:11;:38;3033:63;3029:157;;;-1:-1:-1;3120:39:30;;-1:-1:-1;3120:39:30;;-1:-1:-1;3120:39:30;;-1:-1:-1;3112:63:30;;-1:-1:-1;;;;3112:63:30;3029:157;3196:25;3247:14;3225:18;:11;3256:4;3225:18;:::i;:::-;3224:37;;-1:-1:-1;3295:24:30;3315:4;3295:17;:24;:::i;:::-;3275:17;:44;3271:138;;;-1:-1:-1;3343:39:30;;-1:-1:-1;3343:39:30;;-1:-1:-1;3343:39:30;;-1:-1:-1;3335:63:30;;-1:-1:-1;;;;;3335:63:30;3271:138;3443:24;3450:17;3443:4;:24;:::i;:::-;3422:45;;3418:139;;-1:-1:-1;3491:39:30;;-1:-1:-1;3491:39:30;;-1:-1:-1;3491:39:30;;-1:-1:-1;3483:63:30;;-1:-1:-1;;;;;3483:63:30;3418:139;3571:19;3567:644;;3690:3;3660:33;;;:38;:120;;;;-1:-1:-1;3722:58:30;;;;;3660:120;3639:316;;;-1:-1:-1;3842:40:30;;-1:-1:-1;3884:17:30;;-1:-1:-1;3903:19:30;-1:-1:-1;3813:127:30;;-1:-1:-1;;;3813:127:30;3639:316;3567:644;;;561:1;3988:19;:47;:82;;;;-1:-1:-1;4039:31:30;;;3988:82;3971:240;;;-1:-1:-1;4119:40:30;;-1:-1:-1;4161:17:30;;-1:-1:-1;4180:19:30;-1:-1:-1;4095:105:30;;-1:-1:-1;;;4095:105:30;3971:240;-1:-1:-1;4229:39:30;;-1:-1:-1;4229:39:30;;-1:-1:-1;4229:39:30;;-1:-1:-1;;;;;;1774:2517:30;;;;;;:::o;1237:1144:9:-;1364:13;1721:9;1717:222;;1899:6;1890;1870:17;;:26;:35;1853:52;;1849:75;;-1:-1:-1;1907:17:9;;;1849:75;1958:12;1973:66;1998:4;2004:34;2028:9;;2004:23;:34::i;:::-;1973:24;:66::i;:::-;2347:15;2344:1;2340:23;2328:10;2325:39;2320:3;2316:49;;1237:1144;-1:-1:-1;;;;;1237:1144:9:o;26113:291:22:-;26197:12;3163:68;3230:1;3171:55;3163:68;:::i;:::-;3155:77;26281:21;;;26322:4;26315:18;-1:-1:-1;26369:4:22;26353:21;;;26346:42;26113:291::o;16340:887:19:-;16503:2;16497:4;16490:16;16560:6;16554:4;16547:20;16625:34;16619:4;16612:48;16821:4;16815;16809;16803;16800:1;16793:5;16786;16781:45;16873:7;16869:1;16862:4;16856:11;16853:18;16849:32;16839:275;;16964:7;16945:16;16936:5;16924:18;16917:26;16914:48;16911:61;16901:199;;17009:10;17003:4;16996:24;17077:4;17071;17064:18;16901:199;16839:275;17140:1;17134:4;17127:15;16340:887;;;:::o;7597:287:28:-;7660:15;7678:14;:12;:14::i;:::-;7660:32;-1:-1:-1;7711:21:28;;;7703:48;;;;;;;;;;;;;;;;;7762:28;7787:1;7762:16;:28::i;:::-;7800:27;7825:1;7800:24;:27::i;:::-;7843:34;;;;;;;;;;;7650:234;7597:287::o;25297:623:22:-;25339:19;;;3869:46;3914:1;3877:33;3869:46;:::i;:::-;25498:17;;;-1:-1:-1;3861:55:22;-1:-1:-1;25538:22:22;;;;25534:89;;-1:-1:-1;25603:8:22;25297:623;-1:-1:-1;25297:623:22:o;25534:89::-;25633:12;;4254:54;4307:1;4262:41;4254:54;:::i;:::-;25759:15;;;-1:-1:-1;4246:63:22;-1:-1:-1;25801:16:22;;;;25793:51;;;;;;;;;;;;;;;;;25898:4;25881:29;;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;25854:59;;;;;;25297:623;:::o;3484:194:28:-;3542:14;;1739:57;1795:1;1747:44;1739:57;:::i;2975:200::-;3036:14;;1540:60;1599:1;1548:47;1540:60;:::i;19032:823:19:-;19194:2;19188:4;19181:16;19251:6;19245:4;19238:20;19316:34;19310:4;19303:48;19450:4;19444;19438;19432;19429:1;19422:5;19415;19410:45;19502:7;19498:1;19491:4;19485:11;19482:18;19478:32;19468:274;;19593:7;19574:16;19565:5;19553:18;19546:26;19543:48;19540:61;19530:198;;19638:10;19632:4;19625:24;19705:4;19699;19692:18;2280:168:28;2326:14;;1091:45;1135:1;1099:32;1091:45;:::i;26466:501:22:-;26622:12;3438:60;3497:1;3446:47;3438:60;:::i;:::-;3430:69;26714:24;;;26758:4;26751:18;-1:-1:-1;26816:4:22;26800:21;;;26834:22;;;26892:1;26876:18;;26869:30;26935:1;26919:18;26912:39;26466:501::o;8429:792:28:-;8519:15;8537:14;:12;:14::i;:::-;8519:32;-1:-1:-1;8570:21:28;;;8562:48;;;;;;;;;;;;;;;;;8647:22;:20;:22::i;:::-;8628:15;:41;;8620:61;;;;;;;;;;;;;;;;;8692:18;1934:62;8776:7;8785:19;:17;:19::i;:::-;8735:70;;;;;;;;;20354:25:34;;;20427:42;20415:55;;;;20410:2;20395:18;;20388:83;20502:2;20487:18;;20480:34;20342:2;20327:18;;20152:368;8735:70:28;;;;;;;;;;;;;8725:81;;;;;;8692:114;;8816:14;8833:26;8848:10;8833:14;:26::i;:::-;8816:43;;8891:69;8932:7;8941:6;8949:10;;8891:40;:69::i;:::-;8870:132;;;;;;;;;;;;;;;;;9013:21;9037:7;:5;:7::i;:::-;9013:31;;9055:28;9080:1;9055:16;:28::i;:::-;9093:27;9118:1;9093:24;:27::i;:::-;9130:18;9140:7;9130:9;:18::i;:::-;9206:7;9164:50;;9191:13;9164:50;;;;;;;;;;;;8509:712;;;;8429:792;;:::o;27161:498:22:-;4485:2;27275:33;;;;;;;;;;27214:16;;;;;;27275:33;;;;;;;;;;-1:-1:-1;;27255:53:22;-1:-1:-1;27341:4:22;27543:22;27479:46;27483:17;;27479:46;27456:4;27446:15;;27341:4;27395:184;27627:4;27616:36;;;;;;;;;;;;:::i;:::-;27598:54;;;;-1:-1:-1;27161:498:22;-1:-1:-1;;;27161:498:22:o;4045:289:28:-;4125:23;;;4117:48;;;;;;;;;;;;;;;;;4176:12;1091:45;1135:1;1099:32;1091:45;:::i;:::-;4236:23;;;4284:43;;1083:54;;-1:-1:-1;4284:43:28;;;;1083:54;;4284:43;;1083:54;;4284:43;4107:227;4045:289;:::o;653:132:29:-;726:4;749:29;771:2;775;749:21;:29::i;:::-;742:36;;653:132;;;;;:::o;2601:183:28:-;2654:14;;1309:52;1360:1;1317:39;1309:52;:::i;2061:246:32:-;2119:7;986:19;;;;;;;;;;;;;;;;;970:37;;;;;;2212:6;:13;;;2227:6;:12;;;2241:6;:15;;;2258:18;2263:6;:12;;;2258:4;:18::i;:::-;2168:122;;;;;;21413:25:34;;;;21486:42;21474:55;;;21454:18;;;21447:83;;;;21546:18;;;21539:34;;;;21589:18;;;21582:34;21632:19;;;21625:35;21385:19;;2168:122:32;;;;;;;;;;;;;2145:155;;;;;;2138:162;;2061:246;;;:::o;6666:885:16:-;6975:22;13508:11;13649:9;13646:25;13463:14;13619:9;13616:28;13612:60;7011:73;;-1:-1:-1;12939:4:16;12933:11;;13000:16;12990:27;;12777:15;13044:4;13037:12;;13030:31;12820:18;13095:12;;;13088:33;;;;13155:9;13148:4;13141:12;;13134:31;13199:9;13192:4;13185:12;;13178:31;13248:4;13235:18;;7011:73;7218:18;7212:4;7205:32;7284:6;7278:4;7271:20;7348:10;7342:4;7335:24;7424:4;7418;7408:21;7398:31;;7533:1;7527:4;7520:15;6666:885;;;:::o;4383:240:30:-;4467:4;4484:28;4518:31;4538:10;;4518:19;:31::i;:::-;-1:-1:-1;4483:66:30;;-1:-1:-1;4576:40:30;;-1:-1:-1;4566:6:30;:50;;;;;;;;:::i;:::-;;;4383:240;-1:-1:-1;;;;4383:240:30:o;4843:187:28:-;4919:12;1309:52;1360:1;1317:39;1309:52;:::i;:::-;4987:27;;;;-1:-1:-1;4843:187:28:o;5194:196::-;5274:12;1540:60;1599:1;1548:47;1540:60;:::i;5537:237::-;5602:12;;1739:57;1795:1;1747:44;1739:57;:::i;:::-;5712:11;;5725:1;5708:19;5740:18;;;;5708:19;5537:237;-1:-1:-1;;5537:237:28:o;3600:770:9:-;3768:9;;4073:6;4117;4104:9;4089:25;;4085:30;4081:43;4069:56;4006:44;;;4025:24;4006:44;3993:58;3973:186;3970:384;;-1:-1:-1;4238:4:9;4219:24;;4206:38;4187:58;4335:4;4328:12;;;4279:15;3970:384;3600:770;;;;;:::o;4445:360::-;4582:4;4609:54;4647:4;4653:9;;4609:37;:54::i;:::-;:126;;;;4679:56;4719:4;4725:9;;4679:39;:56::i;:::-;4609:189;;;;4751:47;4782:4;4788:9;;4751:30;:47::i;:::-;4602:196;4445:360;-1:-1:-1;;;;4445:360:9:o;2479:896:31:-;2614:4;2638:21;;;2634:39;;-1:-1:-1;2668:5:31;2661:12;;2634:39;2709:2;2688:23;;;:50;;-1:-1:-1;2736:2:31;2715:23;;2688:50;2684:152;;;2805:7;2758:54;;:43;2783:5;2790:10;;2758:24;:43::i;:::-;:54;;;2754:71;;-1:-1:-1;2821:4:31;2814:11;;2754:71;2850:24;;;2869:4;2850:24;;:52;;-1:-1:-1;2878:19:31;;;;:24;2850:52;2846:70;;;-1:-1:-1;2911:5:31;2904:12;;2846:70;2927:21;2994:5;3001:10;;2951:62;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;3167:15;;2951:62;;-1:-1:-1;;;;;2951:62:31;-1:-1:-1;;3167:15:31;3137:7;3130:5;3119:76;3288:4;3282:11;3235:16;3253:4;3232:26;3219:40;;;;-1:-1:-1;3282:11:31;-1:-1:-1;3219:40:31;3319:49;;;;-1:-1:-1;3348:19:31;3330:38;;3319:49;3312:56;2479:896;-1:-1:-1;;;;;;;;2479:896:31:o;4458:257:28:-;4523:16;4542:7;:5;:7::i;:::-;4523:26;-1:-1:-1;4559:12:28;1091:45;1135:1;1099:32;1091:45;:::i;:::-;4619:23;;;4667:41;;1083:54;;-1:-1:-1;4667:41:28;;;;;;;;;;;1083:54;;4667:41;4513:202;;4458:257;:::o;9003:437:5:-;9074:11;9145:1;9183;9180;9177;9170:15;9271:1;9268;9264;9261;9257;9254;9250;9247;9244;9237:15;9230:29;9223:43;9216:57;9342:8;;-1:-1:-1;9352:8:5;;;;9338:23;9363:12;;;;9334:42;;9003:437;-1:-1:-1;9003:437:5:o;2503:292:32:-;2562:7;2581:23;2621:6;:13;2607:28;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2607:28:32;;2581:54;;2650:9;2645:92;2665:6;:13;2661:1;:17;2645:92;;;2711:15;2716:6;2723:1;2716:9;;;;;;;;:::i;:::-;;;;;;;2711:4;:15::i;:::-;2699:6;2706:1;2699:9;;;;;;;;:::i;:::-;;;;;;;;;;:27;2680:3;;2645:92;;;;2780:6;2763:24;;;;;;;;:::i;:::-;;;;;;;;;;;;;2753:35;;;;;;2746:42;;;2503:292;;;:::o;4989:273:9:-;5139:11;5170:22;:20;:22::i;:::-;5166:89;;;5203:52;5239:4;5245:9;;5203:35;:52::i;9312:5575::-;9464:11;9527:4;9642:15;;9638:911;;9709:18;9745:21;9784:15;9817:25;9860:12;9890:14;:12;:14::i;:::-;-1:-1:-1;10003:4:9;9997:11;;10198;;10191:4;10181:15;;;10171:39;10157:12;;;10150:61;10279:14;;10259:18;;;;10249:45;;;;10242:4;10235:12;;10228:67;10326:4;10319:12;;10312:29;;;;10379:35;;10372:4;10365:12;;10358:57;10446:4;10439:12;;10432:26;10495:4;10488:12;;10475:26;;9997:11;-1:-1:-1;;;;;;;9638:911:9;10639:4;10633:11;10872:1;10854:16;10850:24;10832:16;10828:47;10815:61;10810:3;10806:71;10939:1;10933:4;10929:12;11063:1;11045:16;11041:24;11023:16;11019:47;11124:6;11118:4;11111:20;11202:4;11199:1;11193:4;11180:27;11610:1;11603:9;11599:1;11581:16;11578:23;11575:38;11568:4;11561;11555;11545:21;11541:32;11538:76;11535:434;;;11642:1;11637:6;;11747:23;11744:1;11737:34;11805:4;11799;11792:18;11877:4;11874:1;11864:18;11856:26;;11946:5;;;;11535:434;12146:16;12143:1;12136:27;12251:4;12248:1;12244:12;12349:1;12342:4;12339:1;12335:12;12332:1;12319:32;12426:2;12415:9;;;12408:21;;;12503:17;;12497:24;12494:1;12489:33;12524:2;12486:41;12476:669;;12560:1;12658;12654;12651;12647:9;12643:17;12628:239;12706:1;12703;12699:9;12694:14;;12830:2;12824:1;12821;12817:9;12811:16;12808:1;12803:25;12800:33;12796:1;12793;12790:8;12787:47;12628:239;12777:68;12632:30;12900:1;12897;12893:9;12888:14;;13014:1;13010;13003:4;13000:1;12996:12;12992:20;12989:1;12976:40;13080:2;13076:1;13073;13069:9;13061:22;;12476:669;13264:33;13259:1;13253:8;13250:1;13245:17;13241:57;13395:178;13431:2;13426:1;13420:8;13417:1;13412:17;13409:25;13395:178;;13525:1;13508:14;13503:1;13497:8;13494:1;13489:17;13485:38;13482:45;13477:50;;13450:1;13447;13443:9;13438:14;;13395:178;;;13600:30;13597:1;13590:41;13704:34;13697:4;13694:1;13690:12;13683:56;13777:34;13770:4;13767:1;13763:12;13756:56;13841:4;13838:1;13834:12;13829:17;;13893:1;13886:4;13883:1;13879:12;13876:1;13863:32;14025:4;14022:1;14019;14006:24;14128:9;;;14124:17;;;14111:31;;14101:42;;14343:4;14330:18;;14324:4;14317:32;14519:1;14515:9;14509:4;14505:20;14499:4;14489:37;;-1:-1:-1;;14563:24:9;;;;10890:3760;-1:-1:-1;14670:4:9;14663:15;14737:1;14733:48;;14761:20;14776:4;14761:14;:20::i;:::-;14754:27;;14733:48;14828:52;14864:4;14870:9;;14828:35;:52::i;:::-;14819:61;9312:5575;-1:-1:-1;;;;;9312:5575:9:o;15068:2123::-;15211:11;15460;15456:1729;;15594:10;15582;15575:30;15723:42;15865:4;15853:10;15841;15829;15826:1;15818:6;15807:63;15803:68;16007:10;16001:17;15991:1095;;16057:4;16051:11;16136:10;16124;16117:30;16219:1;16213:4;16206:15;16304:4;16298;16291:18;16375:10;16362;16354:6;16350:23;16347:39;16537:9;16530:5;16527:20;16523:1;16517:4;16514:11;16511:37;16508:54;;;16551:9;16508:54;16984:10;16972;16966:4;16960;16949:9;16938;16927:68;-1:-1:-1;;17024:4:9;17017:15;15991:1095;;17122:52;17158:4;17164:9;;17122:35;:52::i;9664:1284:15:-;9779:14;9896:4;9890:11;9934:16;9972:2;9967:297;;;;10286:2;10281:204;;;;10512:5;;;9967:297;10042:4;10020:27;;;10007:41;10090:3;10086:12;;;10100:2;10082:21;10069:35;;;10146:30;;10140:4;10133:44;10219:18;;10213:4;10206:32;9967:297;;10281:204;10367:4;10349:16;10345:27;10332:41;10329:1;10324:50;10318:4;10311:64;10441:4;10423:16;10417:4;10404:42;9927:592;;10549:4;10543;10536:18;10614:4;10608;10602;10596;10593:1;10586:5;10575:44;10571:49;10650:1;10644:4;10637:15;10810:16;10804:4;10800:27;10794:34;10784:44;;10858:1;10852:4;10845:15;9875:1057;9879:24;9664:1284;;;;;:::o;2948:306:32:-;3112:12;;3142:11;;;;;3181:10;;;;;3171:21;;;;;;3053:184;;446:58;3053:184;;;22753:25:34;;;;22826:42;22814:55;;;22794:18;;;22787:83;22886:18;;;22879:34;22929:18;;;22922:34;;;;3004:7:32;;22725:19:34;;3053:184:32;22522:440:34;30670:125:22;30742:4;30779:9;:7;:9::i;:::-;30765:23;;:10;:23;;;30758:30;;30670:125;:::o;31287:695::-;31579:29;31573:36;31640:27;31634:34;31699:27;31693:34;31436:4;;31573:36;31634:34;31751:38;;;31747:136;;31812:60;31836:4;31842:8;31852;31862:9;;31812:23;:60::i;:::-;31805:67;;;;;;;31747:136;31900:75;31941:16;30472:24;30466:31;;30341:172;31941:16;31959:4;31965:9;;31900:40;:75::i;:::-;31893:82;31287:695;-1:-1:-1;;;;;;;31287:695:22:o;977:329:29:-;1106:4;1127:12;1141:35;1180:34;1203:10;;1180:22;:34::i;:::-;1126:88;;;;1231:7;:68;;;;;1242:57;1271:5;1258:19;;;;;;23096::34;;23140:2;23131:12;;22967:182;1258:19:29;;;;;;;;;;;;;1279:4;1242:57;;;:::i;:::-;1285:2;1289;1293:5;1242:15;:57::i;12020:1702:33:-;12112:12;12215;12326:4;12311:19;;12307:45;;;12340:5;12332:20;;;;12307:45;12441:31;12491:12;:5;12497:4;12491:5;;:12;:::i;:::-;12483:21;;;:::i;:::-;12475:30;-1:-1:-1;12475:30:33;12562:12;:5;12568:4;12562:5;;:12;:::i;:::-;12554:21;;;:::i;:::-;12546:30;-1:-1:-1;12850:23:33;12828:19;12843:4;12828:5;:19;:::i;:::-;:45;:107;;;-1:-1:-1;12915:20:33;12893:19;12908:4;12893:5;:19;:::i;:::-;:42;12828:107;12811:180;;;12968:5;12960:20;;;;;;12811:180;13093:31;13143;:5;13149:23;13143:5;;:31;:::i;:::-;13135:40;;;:::i;:::-;13127:49;-1:-1:-1;13127:49:33;13233:28;:5;13239:20;13233:5;;:28;:::i;:::-;13225:37;;;:::i;:::-;13217:46;-1:-1:-1;13546:23:33;13539:4;13498:38;13513:23;13498:5;:38;:::i;:::-;:45;;;;:::i;:::-;:71;:156;;;-1:-1:-1;13634:20:33;13627:4;13589:35;13604:20;13589:5;:35;:::i;:::-;:42;;;;:::i;:::-;:65;13498:156;13481:204;;;13673:5;13665:20;;;;;;;;13481:204;13704:4;13696:19;;;;;;12020:1702;;;;;:::o;5388:1221::-;5563:4;5805:2;5773:4;:22;;;:29;:34;:112;;;;;5823:62;5849:4;:19;;;5870:4;:14;;;7416:41;;;7440:4;7416:41;7410:48;7184:21;;7222:2;7207:18;;;-1:-1:-1;7460:15:33;7406:70;;;;7554:23;7244:351;7101:508;;6893:732;5823:62;5773:205;;;;;5907:71;5926:4;:19;;;5947:4;:19;;;5968:9;5907:18;:71::i;:::-;5773:281;;;;;6000:54;6027:4;:22;;;6050:2;6027:26;;;;;;;;:::i;:::-;;;;;9066:18;9035:26;;;9034:50;;8939:152;6000:54;5773:374;;;;;6078:9;6077:10;:69;;;;6091:55;6119:4;:22;;;6142:2;6119:26;;;;;;;;:::i;:::-;;;;;10147:18;10116:26;;;10115:50;;10019:153;6091:55;5773:458;;;;;6169:62;6204:4;:22;;;6227:2;6204:26;;;;;;;;:::i;:::-;;;;;;;6169:34;:62::i;:::-;5773:823;;;;;6337:259;6368:146;6418:4;:22;;;6454:34;6467:4;:19;;;6454:34;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6388:116;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;6368:146;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6528:6;;6548;;;;6568:2;6584;6337:17;:259::i;:::-;5766:830;5388:1221;-1:-1:-1;;;;;;5388:1221:33:o;7861:655::-;8019:4;8079:31;8156:27;8173:9;8156:16;:27::i;:::-;8125:64;;;;;;;;:::i;:::-;;;;;;;;;;;;;8079:110;;8199:29;8251:181;8286:14;8319;8351:67;8370:14;8392:17;8386:31;8351:18;:67::i;:::-;8251:11;:181::i;:::-;8199:243;;8460:49;8474:15;8491:17;8460:13;:49::i;11389:209::-;11469:4;11536:18;11505:26;;;11504:50;;:87;;-1:-1:-1;;11567:18:33;11559:26;11558:33;;11389:209::o;3586:328:5:-;3688:4;3705:10;3717:14;3735:33;3752:1;3755;3758;3761:2;3765;3735:16;:33::i;:::-;3704:64;;;;3782:9;3778:130;;;-1:-1:-1;3814:5:5;-1:-1:-1;3807:12:5;;3778:130;3857:40;;;;;3890:5;3857:40;;;4584:74:34;4557:18;;3857:40:5;4438:226:34;746:127:0;807:13;846:19;854:4;860;846:7;:19::i;3912:199:6:-;3980:7;1830:5;;;1859:6;;;;;1888:28;;4086:17;5328:5;;;5327:36;;5322:42;4061:43;5087:294;3858:448:1;3945:12;3995:28;4004:3;4009:6;:13;3995:8;:28::i;:::-;3989:34;;4041:20;4050:5;4057:3;4041:8;:20::i;:::-;4033:28;-1:-1:-1;4101:19:1;4133:11;4033:28;4133:3;:11;:::i;:::-;4123:22;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4123:22:1;;4101:44;;4259:5;4254:3;4250:15;4242:5;4235:4;4227:6;4223:17;4219:29;4212:4;4204:6;4200:17;4194:72;4293:6;3858:448;-1:-1:-1;;;;3858:448:1:o;4976:133:4:-;5048:4;5071:31;5089:1;5099;5071:11;:31::i;4036:1532:5:-;4187:10;4199:14;4230:24;4249:1;4252;4230:18;:24::i;:::-;4229:25;:54;;;;4259:24;4276:2;4280;4259:16;:24::i;:::-;4258:25;4229:54;4225:1337;;;-1:-1:-1;4307:5:5;;-1:-1:-1;4314:4:5;4299:20;;4225:1337;4411:25;4420:1;4423;4426;4429:2;4433;4411:8;:25::i;:::-;4407:1155;;;-1:-1:-1;4460:4:5;;-1:-1:-1;4460:4:5;4452:19;;4407:1155;4921:462;4947:66;5051;5135;5219;5303;4921:8;:462::i;:::-;4533:1029;;;-1:-1:-1;5416:5:5;;-1:-1:-1;5423:4:5;5408:20;;4533:1029;-1:-1:-1;5514:5:5;;-1:-1:-1;5514:5:5;4533:1029;4036:1532;;;;;;;;:::o;1542:5196:0:-;1625:19;1863:4;:11;1878:1;1863:16;1859:31;;-1:-1:-1;1881:9:0;;;;;;;;;-1:-1:-1;1881:9:0;;;;1859:31;2941:20;2964:18;:76;;3038:1;3019:4;:11;3033:1;3019:15;;;;:::i;:::-;3018:21;;;;:::i;:::-;3013:27;;:1;:27;:::i;:::-;2964:76;;;3009:1;2990:4;:11;2986:1;:15;;;;:::i;:::-;:19;;3004:1;2986:19;:::i;:::-;2985:25;;;;:::i;:::-;2941:99;;3106:4;3100:11;3090:21;;4065:34;4059:4;4052:48;4190:5;4170:18;4166:30;4130:34;4126:71;4120:4;4113:85;4297:4;4289:6;4285:17;4347:12;4336:9;4332:28;4388:4;4435;4429:11;4423:4;4419:22;4683:4;4675:6;4671:17;4725:8;4719:15;4764:4;4754:8;4747:22;4836:1167;4855:6;4846:7;4843:19;4836:1167;;;4943:1;4934:7;4930:15;4919:26;;4981:7;4975:14;5553:4;5545:5;5541:2;5537:14;5533:25;5527:32;5516:9;5508:52;5605:1;5594:9;5590:17;5577:30;;5680:4;5672:5;5668:2;5664:14;5660:25;5654:32;5643:9;5635:52;5732:1;5721:9;5717:17;5704:30;;5806:4;5798:5;5795:1;5791:13;5787:24;5781:31;5770:9;5762:51;5858:1;5847:9;5843:17;5830:30;;5924:4;5917:5;5913:16;5907:23;5896:9;5888:43;;5976:1;5965:9;5961:17;5948:30;;4836:1167;;;6064:28;;-1:-1:-1;6116:18:0;;-1:-1:-1;6106:461:0;;6306:1;6299:4;6293:11;6289:19;6330:1;6325:132;;;;6479:1;6474:79;;;;6282:271;;6325:132;6381:4;6377:1;6366:9;6362:17;6354:32;6434:4;6430:1;6419:9;6415:17;6407:32;6325:132;;6474:79;6530:4;6526:1;6515:9;6511:17;6503:32;6282:271;;6106:461;6658:28;;;-1:-1:-1;6706:4:0;6699:23;1542:5196;;;;:::o;5633:111:6:-;5691:7;5328:5;;;5725;;;5327:36;5322:42;;5717:20;5087:294;10418:152:1;10488:4;10523:1;:8;10511:1;:8;:20;:52;;;;-1:-1:-1;;10551:12:1;;;;;;;10535;;;;;;;;;;:28;;10418:152::o;9618:176:5:-;9690:4;9713:14;;;;;:32;;-1:-1:-1;1698:66:5;9731:14;;9713:32;:50;;;;-1:-1:-1;9749:14:5;;;9713:50;:74;;;;-1:-1:-1;;2326:66:5;-1:-1:-1;9767:20:5;;9618:176;-1:-1:-1;9618:176:5:o;5703:1121::-;5800:12;5970:4;5964:11;6000:1;5995:3;5988:14;6038:1;6031:4;6026:3;6022:14;6015:25;6076:1;6069:4;6064:3;6060:14;6053:25;6114:2;6107:4;6102:3;6098:14;6091:26;6153:2;6146:4;6141:3;6137:14;6130:26;6585:1;6579:4;6572:15;6725:4;6719;6713;6708:3;6701:5;6694;6683:47;6673:100;;6750:9;6673:100;-1:-1:-1;;6803:4:5;6797:11;;5703:1121;-1:-1:-1;;;;;5703:1121:5:o;14:154:34:-;100:42;93:5;89:54;82:5;79:65;69:93;;158:1;155;148:12;69:93;14:154;:::o;173:367::-;241:6;249;302:2;290:9;281:7;277:23;273:32;270:52;;;318:1;315;308:12;270:52;357:9;344:23;376:31;401:5;376:31;:::i;:::-;426:5;504:2;489:18;;;;476:32;;-1:-1:-1;;;173:367:34:o;545:347::-;596:8;606:6;660:3;653:4;645:6;641:17;637:27;627:55;;678:1;675;668:12;627:55;-1:-1:-1;701:20:34;;744:18;733:30;;730:50;;;776:1;773;766:12;730:50;813:4;805:6;801:17;789:29;;865:3;858:4;849:6;841;837:19;833:30;830:39;827:59;;;882:1;879;872:12;897:523;976:6;984;992;1045:2;1033:9;1024:7;1020:23;1016:32;1013:52;;;1061:1;1058;1051:12;1013:52;1106:23;;;-1:-1:-1;1204:2:34;1189:18;;1176:32;1231:18;1220:30;;1217:50;;;1263:1;1260;1253:12;1217:50;1302:58;1352:7;1343:6;1332:9;1328:22;1302:58;:::i;:::-;897:523;;1379:8;;-1:-1:-1;1276:84:34;;-1:-1:-1;;;;897:523:34:o;1678:388::-;1746:6;1754;1807:2;1795:9;1786:7;1782:23;1778:32;1775:52;;;1823:1;1820;1813:12;1775:52;1862:9;1849:23;1881:31;1906:5;1881:31;:::i;:::-;1931:5;-1:-1:-1;1988:2:34;1973:18;;1960:32;2001:33;1960:32;2001:33;:::i;:::-;2053:7;2043:17;;;1678:388;;;;;:::o;2071:508::-;2148:6;2156;2164;2217:2;2205:9;2196:7;2192:23;2188:32;2185:52;;;2233:1;2230;2223:12;2185:52;2272:9;2259:23;2291:31;2316:5;2291:31;:::i;:::-;2341:5;-1:-1:-1;2398:2:34;2383:18;;2370:32;2411:33;2370:32;2411:33;:::i;:::-;2071:508;;2463:7;;-1:-1:-1;;;2543:2:34;2528:18;;;;2515:32;;2071:508::o;2766:348::-;2808:3;2846:5;2840:12;2873:6;2868:3;2861:19;2929:6;2922:4;2915:5;2911:16;2904:4;2899:3;2895:14;2889:47;2981:1;2974:4;2965:6;2960:3;2956:16;2952:27;2945:38;3103:4;3033:66;3028:2;3020:6;3016:15;3012:88;3007:3;3003:98;2999:109;2992:116;;;2766:348;;;;:::o;3119:1314::-;3516:66;3508:6;3504:79;3493:9;3486:98;3620:3;3615:2;3604:9;3600:18;3593:31;3467:4;3647:46;3688:3;3677:9;3673:19;3665:6;3647:46;:::i;:::-;3741:9;3733:6;3729:22;3724:2;3713:9;3709:18;3702:50;3775:33;3801:6;3793;3775:33;:::i;:::-;3839:2;3824:18;;3817:34;;;3900:42;3888:55;;3882:3;3867:19;;3860:84;3975:3;3960:19;;3953:35;;;4025:22;;;4019:3;4004:19;;3997:51;4097:13;;4119:22;;;4169:2;4195:15;;;;-1:-1:-1;4157:15:34;;;;-1:-1:-1;4238:169:34;4252:6;4249:1;4246:13;4238:169;;;4313:13;;4301:26;;4356:2;4382:15;;;;4347:12;;;;4274:1;4267:9;4238:169;;;-1:-1:-1;4424:3:34;;3119:1314;-1:-1:-1;;;;;;;;;;;3119:1314:34:o;4669:226::-;4728:6;4781:2;4769:9;4760:7;4756:23;4752:32;4749:52;;;4797:1;4794;4787:12;4749:52;-1:-1:-1;4842:23:34;;4669:226;-1:-1:-1;4669:226:34:o;4900:409::-;4970:6;4978;5031:2;5019:9;5010:7;5006:23;5002:32;4999:52;;;5047:1;5044;5037:12;4999:52;5087:9;5074:23;5120:18;5112:6;5109:30;5106:50;;;5152:1;5149;5142:12;5106:50;5191:58;5241:7;5232:6;5221:9;5217:22;5191:58;:::i;:::-;5268:8;;5165:84;;-1:-1:-1;4900:409:34;-1:-1:-1;;;;4900:409:34:o;5496:247::-;5555:6;5608:2;5596:9;5587:7;5583:23;5579:32;5576:52;;;5624:1;5621;5614:12;5576:52;5663:9;5650:23;5682:31;5707:5;5682:31;:::i;6072:367::-;6135:8;6145:6;6199:3;6192:4;6184:6;6180:17;6176:27;6166:55;;6217:1;6214;6207:12;6166:55;-1:-1:-1;6240:20:34;;6283:18;6272:30;;6269:50;;;6315:1;6312;6305:12;6269:50;6352:4;6344:6;6340:17;6328:29;;6412:3;6405:4;6395:6;6392:1;6388:14;6380:6;6376:27;6372:38;6369:47;6366:67;;;6429:1;6426;6419:12;6444:1045;6584:6;6592;6600;6608;6616;6624;6677:3;6665:9;6656:7;6652:23;6648:33;6645:53;;;6694:1;6691;6684:12;6645:53;6733:9;6720:23;6752:31;6777:5;6752:31;:::i;:::-;6802:5;-1:-1:-1;6859:2:34;6844:18;;6831:32;6872:33;6831:32;6872:33;:::i;:::-;6924:7;-1:-1:-1;6982:2:34;6967:18;;6954:32;7009:18;6998:30;;6995:50;;;7041:1;7038;7031:12;6995:50;7080:70;7142:7;7133:6;7122:9;7118:22;7080:70;:::i;:::-;7169:8;;-1:-1:-1;7054:96:34;-1:-1:-1;;7257:2:34;7242:18;;7229:32;7286:18;7273:32;;7270:52;;;7318:1;7315;7308:12;7270:52;7357:72;7421:7;7410:8;7399:9;7395:24;7357:72;:::i;:::-;6444:1045;;;;-1:-1:-1;6444:1045:34;;-1:-1:-1;6444:1045:34;;7448:8;;6444:1045;-1:-1:-1;;;6444:1045:34:o;7494:466::-;7571:6;7579;7587;7640:2;7628:9;7619:7;7615:23;7611:32;7608:52;;;7656:1;7653;7646:12;7608:52;-1:-1:-1;;7701:23:34;;;7821:2;7806:18;;7793:32;;-1:-1:-1;7924:2:34;7909:18;;;7896:32;;7494:466;-1:-1:-1;7494:466:34:o;7965:689::-;8070:6;8078;8086;8139:2;8127:9;8118:7;8114:23;8110:32;8107:52;;;8155:1;8152;8145:12;8107:52;8195:9;8182:23;8228:18;8220:6;8217:30;8214:50;;;8260:1;8257;8250:12;8214:50;8283:22;;8339:3;8321:16;;;8317:26;8314:46;;;8356:1;8353;8346:12;8314:46;8379:2;-1:-1:-1;8434:2:34;8419:18;;8406:32;8463:18;8450:32;;8447:52;;;8495:1;8492;8485:12;8659:184;8729:6;8782:2;8770:9;8761:7;8757:23;8753:32;8750:52;;;8798:1;8795;8788:12;8750:52;-1:-1:-1;8821:16:34;;8659:184;-1:-1:-1;8659:184:34:o;8848:::-;8900:77;8897:1;8890:88;8997:4;8994:1;8987:15;9021:4;9018:1;9011:15;9037:125;9102:9;;;9123:10;;;9120:36;;;9136:18;;:::i;9167:184::-;9219:77;9216:1;9209:88;9316:4;9313:1;9306:15;9340:4;9337:1;9330:15;9668:128;9735:9;;;9756:11;;;9753:37;;;9770:18;;:::i;10054:358::-;10154:6;10149:3;10142:19;10124:3;10184:66;10176:6;10173:78;10170:98;;;10264:1;10261;10254:12;10170:98;10300:6;10297:1;10293:14;10352:8;10345:5;10338:4;10333:3;10329:14;10316:45;10381:18;;;;10401:4;10377:29;;10054:358;-1:-1:-1;;;10054:358:34:o;10417:985::-;10862:42;10854:6;10850:55;10839:9;10832:74;10954:42;10946:6;10942:55;10937:2;10926:9;10922:18;10915:83;11034:3;11029:2;11018:9;11014:18;11007:31;10813:4;11061:74;11130:3;11119:9;11115:19;11107:6;11099;11061:74;:::i;:::-;11183:9;11175:6;11171:22;11166:2;11155:9;11151:18;11144:50;11217:61;11271:6;11263;11255;11217:61;:::i;:::-;11315:22;;;11309:3;11294:19;;;11287:51;;;;-1:-1:-1;;11362:1:34;11347:17;;11393:2;11381:15;;10417:985;-1:-1:-1;;;;;;10417:985:34:o;11407:519::-;11684:2;11673:9;11666:21;11647:4;11710:73;11779:2;11768:9;11764:18;11756:6;11748;11710:73;:::i;:::-;11831:9;11823:6;11819:22;11814:2;11803:9;11799:18;11792:50;11859:61;11913:6;11905;11897;11859:61;:::i;11931:629::-;12049:4;12055:6;12115:11;12102:25;12205:66;12194:8;12178:14;12174:29;12170:102;12150:18;12146:127;12136:155;;12287:1;12284;12277:12;12136:155;12314:33;;12366:20;;;-1:-1:-1;12409:18:34;12398:30;;12395:50;;;12441:1;12438;12431:12;12395:50;12474:4;12462:17;;-1:-1:-1;12525:1:34;12521:14;;;12505;12501:35;12491:46;;12488:66;;;12550:1;12547;12540:12;12565:184;12617:77;12614:1;12607:88;12714:4;12711:1;12704:15;12738:4;12735:1;12728:15;12754:253;12826:2;12820:9;12868:4;12856:17;;12903:18;12888:34;;12924:22;;;12885:62;12882:88;;;12950:18;;:::i;:::-;12986:2;12979:22;12754:253;:::o;13012:251::-;13084:2;13078:9;13126:2;13114:15;;13159:18;13144:34;;13180:22;;;13141:62;13138:88;;;13206:18;;:::i;13268:253::-;13340:2;13334:9;13382:4;13370:17;;13417:18;13402:34;;13438:22;;;13399:62;13396:88;;;13464:18;;:::i;13526:334::-;13597:2;13591:9;13653:2;13643:13;;13658:66;13639:86;13627:99;;13756:18;13741:34;;13777:22;;;13738:62;13735:88;;;13803:18;;:::i;:::-;13839:2;13832:22;13526:334;;-1:-1:-1;13526:334:34:o;13865:688::-;13907:5;13960:3;13953:4;13945:6;13941:17;13937:27;13927:55;;13978:1;13975;13968:12;13927:55;14018:6;14005:20;14057:4;14049:6;14045:17;14086:1;14108;14132:18;14124:6;14121:30;14118:56;;;14154:18;;:::i;:::-;-1:-1:-1;14211:2:34;14199:15;;14216:66;14195:88;14285:4;14191:99;14310:21;14191:99;14310:21;:::i;:::-;14299:32;;;14356:6;14347:7;14340:23;14396:3;14387:6;14382:3;14378:16;14375:25;14372:45;;;14413:1;14410;14403:12;14372:45;14464:6;14459:3;14452:4;14443:7;14439:18;14426:45;14520:1;14491:20;;;14513:4;14487:31;14480:42;;;;-1:-1:-1;14495:7:34;13865:688;-1:-1:-1;;;13865:688:34:o;14558:2230::-;14658:9;14717:4;14709:5;14693:14;14689:26;14685:37;14682:57;;;14735:1;14732;14725:12;14682:57;14763:22;;:::i;:::-;14822:5;14809:19;14837:33;14862:7;14837:33;:::i;:::-;14879:24;;14972:2;14961:14;;;14948:28;14992:16;;;14985:33;15087:2;15076:14;;;15063:28;15107:16;;;15100:33;15180:2;15169:14;;15156:28;15207:18;15196:30;;15193:50;;;15239:1;15236;15229:12;15193:50;15262:18;;15318:14;15311:4;15303:13;;15299:34;15289:62;;15347:1;15344;15337:12;15289:62;15387:2;15374:16;15413:18;15405:6;15402:30;15399:56;;;15435:18;;:::i;:::-;15481:6;15478:1;15474:14;15508:28;15532:2;15528;15524:11;15508:28;:::i;:::-;15570:19;;;15614:2;15644:11;;;15640:20;;;15605:12;;;;15683:14;15672:26;;15669:46;;;15711:1;15708;15701:12;15669:46;15743:2;15739;15735:11;15724:22;;15755:958;15771:6;15766:3;15763:15;15755:958;;;15857:3;15844:17;15893:18;15880:11;15877:35;15874:55;;;15925:1;15922;15915:12;15874:55;15952:20;;16090:2;16000:14;15996:23;;;16021:66;15992:96;15988:105;15985:125;;;16106:1;16103;16096:12;15985:125;16138:22;;:::i;:::-;16209:2;16205;16201:11;16188:25;16226:33;16251:7;16226:33;:::i;:::-;16272:24;;16370:2;16362:11;;16349:25;16407:2;16394:16;;16387:33;16470:2;16462:11;;16449:25;16503:18;16490:32;;16487:52;;;16535:1;16532;16525:12;16487:52;16577:60;16622:14;16617:2;16606:8;16602:2;16598:17;16594:26;16577:60;:::i;:::-;16572:2;16559:16;;16552:86;-1:-1:-1;16651:20:34;;-1:-1:-1;16700:2:34;15788:12;;;;16691;;;;15755:958;;;16742:2;16729:16;;16722:31;-1:-1:-1;16733:7:34;;14558:2230;-1:-1:-1;;;;;14558:2230:34:o;16793:184::-;16845:77;16842:1;16835:88;16942:4;16939:1;16932:15;16966:4;16963:1;16956:15;16982:381;17073:4;17131:11;17118:25;17221:66;17210:8;17194:14;17190:29;17186:102;17166:18;17162:127;17152:155;;17303:1;17300;17293:12;17152:155;17324:33;;;;;16982:381;-1:-1:-1;;16982:381:34:o;17368:580::-;17445:4;17451:6;17511:11;17498:25;17601:66;17590:8;17574:14;17570:29;17566:102;17546:18;17542:127;17532:155;;17683:1;17680;17673:12;17532:155;17710:33;;17762:20;;;-1:-1:-1;17805:18:34;17794:30;;17791:50;;;17837:1;17834;17827:12;17791:50;17870:4;17858:17;;-1:-1:-1;17901:14:34;17897:27;;;17887:38;;17884:58;;;17938:1;17935;17928:12;17953:271;18136:6;18128;18123:3;18110:33;18092:3;18162:16;;18187:13;;;18162:16;17953:271;-1:-1:-1;17953:271:34:o;18229:409::-;18432:6;18421:9;18414:25;18487:42;18479:6;18475:55;18470:2;18459:9;18455:18;18448:83;18567:2;18562;18551:9;18547:18;18540:30;18395:4;18587:45;18628:2;18617:9;18613:18;18605:6;18587:45;:::i;18643:325::-;18731:6;18726:3;18719:19;18783:6;18776:5;18769:4;18764:3;18760:14;18747:43;;18835:1;18828:4;18819:6;18814:3;18810:16;18806:27;18799:38;18701:3;18957:4;18887:66;18882:2;18874:6;18870:15;18866:88;18861:3;18857:98;18853:109;18846:116;;18643:325;;;;:::o;18973:476::-;19204:6;19193:9;19186:25;19247:2;19242;19231:9;19227:18;19220:30;19167:4;19273:61;19330:2;19319:9;19315:18;19307:6;19299;19273:61;:::i;:::-;19382:9;19374:6;19370:22;19365:2;19354:9;19350:18;19343:50;19410:33;19436:6;19428;19410:33;:::i;19896:251::-;19966:6;20019:2;20007:9;19998:7;19994:23;19990:32;19987:52;;;20035:1;20032;20025:12;19987:52;20067:9;20061:16;20086:31;20111:5;20086:31;:::i;20525:372::-;20612:6;20620;20673:2;20661:9;20652:7;20648:23;20644:32;20641:52;;;20689:1;20686;20679:12;20641:52;20721:9;20715:16;20740:31;20765:5;20740:31;:::i;:::-;20861:2;20846:18;;;;20840:25;20790:5;;20840:25;;-1:-1:-1;;;20525:372:34:o;21671:315::-;21856:6;21845:9;21838:25;21899:2;21894;21883:9;21879:18;21872:30;21819:4;21919:61;21976:2;21965:9;21961:18;21953:6;21945;21919:61;:::i;21991:526::-;22209:13;;22152:3;;22183;;22278:4;22266:17;;22152:3;22311:179;22325:6;22322:1;22319:13;22311:179;;;22388:13;;22374:28;;22435:4;22424:16;;;;22463:17;;;;22347:1;22340:9;22311:179;;;-1:-1:-1;22506:5:34;;21991:526;-1:-1:-1;;;;;21991:526:34:o;23154:1122::-;23268:9;23327:4;23319:5;23303:14;23299:26;23295:37;23292:57;;;23345:1;23342;23335:12;23292:57;23373:22;;:::i;:::-;23440:19;;23468:24;;23561:2;23550:14;;;23537:28;23581:16;;;23574:33;23676:2;23665:14;;;23652:28;23696:16;;;23689:33;23791:2;23780:14;;;23767:28;23811:16;;;23804:33;23884:3;23873:15;;23860:29;23912:18;23901:30;;23898:50;;;23944:1;23941;23934:12;23898:50;23983:52;24020:14;24011:6;24004:5;24000:18;23983:52;:::i;:::-;23977:3;23968:7;23964:17;23957:79;;24085:3;24078:5;24074:15;24061:29;24115:18;24105:8;24102:32;24099:52;;;24147:1;24144;24137:12;24099:52;24186:54;24225:14;24214:8;24207:5;24203:20;24186:54;:::i;:::-;24180:3;24167:17;;24160:81;-1:-1:-1;24171:7:34;23154:1122;-1:-1:-1;;23154:1122:34:o;24281:331::-;24386:9;24397;24439:8;24427:10;24424:24;24421:44;;;24461:1;24458;24451:12;24421:44;24490:6;24480:8;24477:20;24474:40;;;24510:1;24507;24500:12;24474:40;-1:-1:-1;;24536:23:34;;;24581:25;;;;;-1:-1:-1;24281:331:34:o;24617:315::-;24737:19;;24776:2;24768:11;;24765:161;;;24848:66;24837:2;24833:12;;;24830:1;24826:20;24822:93;24811:105;24617:315;;;;:::o;24937:211::-;24978:3;25016:5;25010:12;25060:6;25053:4;25046:5;25042:16;25037:3;25031:36;25122:1;25086:16;;25111:13;;;-1:-1:-1;25086:16:34;;24937:211;-1:-1:-1;24937:211:34:o;25153:189::-;25282:3;25307:29;25332:3;25324:6;25307:29;:::i;25582:283::-;25739:3;25770:29;25795:3;25787:6;25770:29;:::i;:::-;25808:21;;;-1:-1:-1;;25856:2:34;25845:14;;25582:283;-1:-1:-1;25582:283:34:o;25870:594::-;26212:66;26207:3;26200:79;26182:3;26301:38;26335:2;26330:3;26326:12;26318:6;26301:38;:::i;:::-;26362:66;26348:81;;26456:1;26445:13;;25870:594;-1:-1:-1;;;25870:594:34:o;26469:274::-;26509:1;26535;26525:189;;26570:77;26567:1;26560:88;26671:4;26668:1;26661:15;26699:4;26696:1;26689:15;26525:189;-1:-1:-1;26728:9:34;;26469:274::o;26748:168::-;26821:9;;;26852;;26869:15;;;26863:22;;26849:37;26839:71;;26890:18;;:::i","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa26469706673582212206d19dcaff9b9dc0849f3b0fe54c3c1fcc7edb3fa2752f04846822667c2a8be1264736f6c63430008220033","offset":20805}},"immutableReferences":{"10366":[{"start":12486,"length":32}],"10368":[{"start":12521,"length":32}],"10370":[{"start":12601,"length":32}],"10372":[{"start":12639,"length":32}],"10374":[{"start":12453,"length":32}]},"transformations":[{"id":"10374","type":"replace","offset":12453,"reason":"immutable"},{"id":"10366","type":"replace","offset":12486,"reason":"immutable"},{"id":"10368","type":"replace","offset":12521,"reason":"immutable"},{"id":"10370","type":"replace","offset":12601,"reason":"immutable"},{"id":"10372","type":"replace","offset":12639,"reason":"immutable"}],"transformationValues":{"immutables":{"10366":"0x000000000000000000000000f7f27c29e60fe6325bef8da7f93250353d2e3294","10368":"0x0000000000000000000000000000000000000000000000000000000000000089","10370":"0xd682b529a17cda19aa275f3a050608f9e9401fadd1b0d233d81519972295828b","10372":"0xc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6","10374":"0xbf0ea5b224deb6fe2c39916fc0025b9e2808c4f4a5a798c09c2cbeeaafb79775"}}},"deployment":{"transactionHash":"0xc59dd8fc2eac698b24c8238756e0d1580f367d8061e900d7068d7633e588039a","blockNumber":"89883308","transactionIndex":"32","deployer":"0xcA71EA69c54c163D17beB90BeB8D001E1Eb538A1"},"sources":{"src/DepositWallet.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity 0.8.34;\n\nimport {ERC1271} from \"@solady/src/accounts/ERC1271.sol\";\nimport {Receiver} from \"@solady/src/accounts/Receiver.sol\";\nimport {ERC1155} from \"@solady/src/tokens/ERC1155.sol\";\nimport {Initializable} from \"@solady/src/utils/Initializable.sol\";\nimport {SafeTransferLib} from \"@solady/src/utils/SafeTransferLib.sol\";\n\nimport {DepositWalletBeacon} from \"@deposit-wallet/src/DepositWalletBeacon.sol\";\nimport {DepositWalletFactory} from \"@deposit-wallet/src/DepositWalletFactory.sol\";\nimport {IDepositWallet} from \"@deposit-wallet/src/interfaces/IDepositWallet.sol\";\nimport {Ownable} from \"@deposit-wallet/src/libraries/Ownable.sol\";\nimport {PasskeySignerLib} from \"@deposit-wallet/src/libraries/PasskeySignerLib.sol\";\nimport {SignatureVerifierLib} from \"@deposit-wallet/src/libraries/SignatureVerifierLib.sol\";\nimport {\n    SessionSignerLib,\n    SessionEnvelopeStatus,\n    SESSION_SIGNER_KIND_SECP256K1,\n    SESSION_SIGNER_KIND_P256\n} from \"@deposit-wallet/src/libraries/SessionSignerLib.sol\";\nimport {\n    Batch,\n    Call,\n    WalletLib,\n    ERC1271_MAGIC_VALUE,\n    ERC1271_INVALID_VALUE\n} from \"@deposit-wallet/src/libraries/WalletLib.sol\";\n\n/// @title IBeaconForwarder\n/// @author Polymarket\n/// @notice Minimal interface for {BeaconForwarder}\ninterface IBeaconForwarder {\n    function BEACON() external view returns (address);\n}\n\n/// @title DepositWallet\n/// @author Polymarket\n/// @notice Minimal smart-contract wallet for deposit operations.\n/// @dev Deployed as an ERC-1967 beacon proxy via {DepositWalletFactory}. Supports batch execution\n///      of arbitrary calls signed by the owner or an authorized session signer, ERC-1271\n///      signature validation, two-step ownership transfers, and an owner-controlled pause\n///      mechanism with a timelock for emergency asset recovery.\ncontract DepositWallet is IDepositWallet, Initializable, Receiver, ERC1271, Ownable {\n    using SafeTransferLib for address;\n    using SessionSignerLib for bytes;\n    using WalletLib for Batch;\n\n    /*--------------------------------------------------------------\n                                 STATE\n    --------------------------------------------------------------*/\n\n    /// @dev Scratch memory used to pass resolved signer data through Solady's ERC-1271 flow.\n    uint256 private constant _ERC1271_SIGNER_MEM_SLOT = 0x80;\n    uint256 private constant _ERC1271_SIGNER_KIND_MEM_SLOT = 0xa0;\n    uint256 private constant _ERC1271_PASSKEY_X_MEM_SLOT = 0xc0;\n    uint256 private constant _ERC1271_PASSKEY_Y_MEM_SLOT = 0xe0;\n\n    /// @dev Storage slot for the replay-protection nonce. keccak256(\"DepositWallet.nonce\") - 1\n    bytes32 private constant _NONCE_SLOT = bytes32(uint256(keccak256(\"DepositWallet.nonce\")) - 1);\n\n    /// @dev Storage slot for the paused timestamp. keccak256(\"DepositWallet.paused\") - 1\n    bytes32 private constant _PAUSED_SLOT = bytes32(uint256(keccak256(\"DepositWallet.paused\")) - 1);\n\n    /// @dev Base storage slot for the session signer mapping.\n    /// keccak256(\"DepositWallet.sessionSignerAuthorizedUntil\") - 1\n    bytes32 private constant _SESSION_SIGNER_SLOT =\n        bytes32(uint256(keccak256(\"DepositWallet.sessionSignerAuthorizedUntil\")) - 1);\n\n    /// @dev Base storage slot for passkey session signer records.\n    /// keccak256(\"DepositWallet.passkeySessionSigner\") - 1\n    bytes32 private constant _PASSKEY_SESSION_SIGNER_SLOT =\n        bytes32(uint256(keccak256(\"DepositWallet.passkeySessionSigner\")) - 1);\n\n    /// @dev ERC-1967 beacon slot.\n    /// `0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50`. Populated on the proxy\n    /// at deploy time by {LibClone.deployDeterministicERC1967BeaconProxy}; remains\n    ///      empty for legacy UUPS proxies migrated through {BeaconForwarder}.\n    bytes32 private constant _ERC1967_BEACON_SLOT =\n        bytes32(uint256(keccak256(\"eip1967.proxy.beacon\")) - 1);\n\n    /// @dev ERC-1967 implementation slot.\n    /// `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`. Empty on native beacon\n    /// proxies; points at the {BeaconForwarder} on legacy UUPS proxies\n    ///      migrated through the adapter.\n    bytes32 private constant _ERC1967_IMPLEMENTATION_SLOT =\n        bytes32(uint256(keccak256(\"eip1967.proxy.implementation\")) - 1);\n\n    /// @dev Byte length of the `(address factory, bytes32 id)` immutable args appended to the\n    /// proxy bytecode.\n    uint256 private constant _IMMUTABLE_ARGS_LENGTH = 64;\n\n    /// @dev Identity magic returned by {walletInterfaceId} and probed by {DepositWalletBeacon}\n    ///      when installing a new implementation. Stable; not bumped per release.\n    bytes32 private constant _WALLET_INTERFACE_ID = keccak256(\"Polymarket.DepositWallet\");\n\n    /*--------------------------------------------------------------\n                               MODIFIERS\n    --------------------------------------------------------------*/\n\n    /// @dev Restricts access to the factory contract.\n    modifier onlyFactory() {\n        require(msg.sender == factory(), OnlyFactory());\n        _;\n    }\n\n    /// @dev Restricts access to calls originating from the wallet itself (i.e., via batch\n    /// execution).\n    modifier onlySelf() {\n        require(msg.sender == address(this), OnlySelf());\n        _;\n    }\n\n    /// @dev Enforces that the contract is paused and the timelock delay has elapsed.\n    modifier onlyPaused() {\n        uint256 pausedAt = paused();\n        require(pausedAt != 0, NotPaused());\n        require(\n            block.timestamp > pausedAt + DepositWalletFactory(factory()).timelockDelay(),\n            TimelockInsufficientDelay()\n        );\n        _;\n    }\n\n    /// @dev Restricts access to the wallet owner.\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /*--------------------------------------------------------------\n                              CONSTRUCTOR\n    --------------------------------------------------------------*/\n\n    /// @dev Disables initializers on the implementation contract to prevent misuse.\n    constructor() {\n        _disableInitializers();\n    }\n\n    /*--------------------------------------------------------------\n                             INITIALIZER\n    --------------------------------------------------------------*/\n\n    /// @notice Initializes the wallet with a designated owner.\n    /// @dev This replaces the constructor for upgradeable contracts.\n    /// @param _owner The address to set as the wallet owner.\n    function initialize(address _owner) external initializer {\n        _initializeOwner(_owner);\n    }\n\n    /*--------------------------------------------------------------\n                                  VIEW\n    --------------------------------------------------------------*/\n\n    /// @notice Returns the wallet's current execution nonce.\n    /// @return nonce_ The current nonce.\n    function nonce() public view returns (uint256 nonce_) {\n        bytes32 slot = _NONCE_SLOT;\n        assembly (\"memory-safe\") {\n            nonce_ := sload(slot)\n        }\n    }\n\n    /// @notice Returns the timestamp at which the wallet was paused.\n    /// @return paused_ The paused timestamp, or zero if not paused.\n    function paused() public view returns (uint256 paused_) {\n        bytes32 slot = _PAUSED_SLOT;\n        assembly (\"memory-safe\") {\n            paused_ := sload(slot)\n        }\n    }\n\n    /// @notice Returns the timestamp until which a session signer is authorized.\n    /// @param _signer The session signer address to query.\n    /// @return validUntil_ The authorization expiry timestamp, or zero if not authorized.\n    function sessionSignerAuthorizedUntil(address _signer)\n        public\n        view\n        returns (uint256 validUntil_)\n    {\n        bytes32 slot = _SESSION_SIGNER_SLOT;\n        assembly (\"memory-safe\") {\n            mstore(0x00, _signer)\n            mstore(0x20, slot)\n            validUntil_ := sload(keccak256(0x00, 0x40))\n        }\n    }\n\n    /// @notice Returns a passkey session signer's public key and authorization expiry.\n    function passkeySessionSigner(bytes32 _passkeyId)\n        public\n        view\n        returns (bytes32 x, bytes32 y, uint256 validUntil)\n    {\n        bytes32 slot = _PASSKEY_SESSION_SIGNER_SLOT;\n        assembly (\"memory-safe\") {\n            mstore(0x00, _passkeyId)\n            mstore(0x20, slot)\n            let recordSlot := keccak256(0x00, 0x40)\n            x := sload(recordSlot)\n            y := sload(add(recordSlot, 1))\n            validUntil := sload(add(recordSlot, 2))\n        }\n    }\n\n    /// @notice Returns the unique identifier assigned to this wallet at deployment.\n    /// @return The wallet ID decoded from the proxy's immutable args.\n    function id() public view returns (bytes32) {\n        (, bytes32 id_) = _readImmutableArgs();\n        return id_;\n    }\n\n    /// @notice Returns the factory contract that deployed this wallet.\n    /// @return The factory address decoded from the proxy's immutable args.\n    function factory() public view returns (address) {\n        (address factory_,) = _readImmutableArgs();\n        return factory_;\n    }\n\n    /// @notice Returns the current owner of the wallet.\n    /// @return result The owner address.\n    function owner() public view override(IDepositWallet, Ownable) returns (address result) {\n        return Ownable.owner();\n    }\n\n    /// @notice Returns the pending owner awaiting handover completion.\n    /// @return result The pending owner address, or `address(0)` if none.\n    function pendingOwner() public view override(IDepositWallet, Ownable) returns (address result) {\n        return Ownable.pendingOwner();\n    }\n\n    /// @notice Returns the deadline by which the pending owner must complete the handover.\n    /// @return result The acceptance-deadline timestamp, or zero if no handover is pending.\n    function pendingOwnerDeadline()\n        public\n        view\n        override(IDepositWallet, Ownable)\n        returns (uint256 result)\n    {\n        return Ownable.pendingOwnerDeadline();\n    }\n\n    /// @notice Returns the per-handover nonce embedded in the EIP-712 signature.\n    /// @return result The current handover nonce.\n    function pendingOwnerNonce()\n        public\n        view\n        override(IDepositWallet, Ownable)\n        returns (uint256 result)\n    {\n        return Ownable.pendingOwnerNonce();\n    }\n\n    /// @notice Returns a stable magic identifying this contract as a `DepositWallet`.\n    /// @dev Probed by {DepositWalletBeacon} on every implementation install.\n    /// @return The wallet identity magic.\n    function walletInterfaceId() external pure returns (bytes32) {\n        return _WALLET_INTERFACE_ID;\n    }\n\n    /*--------------------------------------------------------------\n                             ONLY FACTORY\n    --------------------------------------------------------------*/\n\n    /// @notice Executes a signed batch of calls through the factory.\n    /// @dev Validates the batch (non-empty, correct wallet, nonce, deadline), verifies the EIP-712\n    ///      signature against the owner or an authorized session signer, then executes each call\n    ///      sequentially. Session signers are prevented from calling the wallet itself.\n    /// @param _batch The batch containing the target wallet, nonce, deadline, and calls.\n    /// @param _signature The EIP-712 signature authorizing the batch (owner or session signer).\n    function execute(Batch calldata _batch, bytes calldata _signature) external onlyFactory {\n        require(_batch.calls.length > 0, EmptyBatch());\n        require(_batch.wallet == address(this), InvalidWallet());\n        uint256 executedNonce;\n        bytes32 nonceSlot = _NONCE_SLOT;\n        assembly (\"memory-safe\") {\n            executedNonce := sload(nonceSlot)\n            sstore(nonceSlot, add(executedNonce, 1))\n        }\n        require(_batch.nonce == executedNonce, InvalidNonce());\n        require(block.timestamp <= _batch.deadline, Expired());\n\n        bytes32 batchHash = _batch.hash();\n        bytes32 batchDigest = _hashTypedData(batchHash);\n\n        require(\n            isValidSignature(batchDigest, _signature) == ERC1271_MAGIC_VALUE, InvalidSignature()\n        );\n\n        bool isSessionSigner = _signature.isSessionSignerSignature();\n\n        // Resolve the beacon once per batch — only needed when the signer is a session signer\n        // and we have to enforce the additional guard against beacon calls.\n        address beacon = isSessionSigner ? address(_beacon()) : address(0);\n\n        uint256 i;\n        for (; i < _batch.calls.length;) {\n            require(\n                !isSessionSigner || _batch.calls[i].target != address(this),\n                SessionSignerSelfCallNotAllowed()\n            );\n            require(\n                !isSessionSigner || _batch.calls[i].target != beacon,\n                SessionSignerCannotCallBeacon()\n            );\n\n            (bool success, bytes memory result) =\n                _batch.calls[i].target.call{value: _batch.calls[i].value}(_batch.calls[i].data);\n\n            require(success, BatchCallFailed(i, _batch.calls[i].target, result));\n\n            emit Execution(\n                _batch.calls[i].target, _batch.calls[i].value, _batch.calls[i].data, result\n            );\n\n            unchecked {\n                ++i;\n            }\n        }\n\n        emit BatchExecuted(executedNonce);\n    }\n\n    /*--------------------------------------------------------------\n                               ONLY SELF\n    --------------------------------------------------------------*/\n\n    /// @notice Authorizes a session signer until the specified timestamp.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _sessionSigner The address to authorize as a session signer.\n    /// @param _validUntil The timestamp until which the session signer is valid.\n    function authorizeSessionSigner(address _sessionSigner, uint256 _validUntil) external onlySelf {\n        require(_sessionSigner != address(0), ZeroAddress());\n        require(_validUntil > block.timestamp, InvalidValidUntil());\n        _setSessionSigner(_sessionSigner, _validUntil);\n\n        emit SessionSignerAuthorized(_sessionSigner, _validUntil);\n    }\n\n    /// @notice Revokes a session signer's authorization.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _sessionSigner The session signer address to revoke.\n    function revokeSessionSigner(address _sessionSigner) external onlySelf {\n        _setSessionSigner(_sessionSigner, 0);\n\n        emit SessionSignerRevoked(_sessionSigner);\n    }\n\n    /// @notice Authorizes a P-256 passkey as a session signer.\n    function authorizePasskeySessionSigner(bytes32 _x, bytes32 _y, uint256 _validUntil)\n        external\n        onlySelf\n    {\n        require(PasskeySignerLib.isValidPublicKey(_x, _y), InvalidPasskeyPublicKey(_x, _y));\n        require(_validUntil > block.timestamp, InvalidValidUntil());\n\n        bytes32 passkeyId = PasskeySignerLib.id(_x, _y);\n        _setPasskeySessionSigner(passkeyId, _x, _y, _validUntil);\n\n        emit PasskeySessionSignerAuthorized(passkeyId, _x, _y, _validUntil);\n    }\n\n    /// @notice Revokes a passkey session signer's authorization.\n    function revokePasskeySessionSigner(bytes32 _passkeyId) external onlySelf {\n        (bytes32 x, bytes32 y,) = passkeySessionSigner(_passkeyId);\n        _setPasskeySessionSigner(_passkeyId, bytes32(0), bytes32(0), 0);\n\n        emit PasskeySessionSignerRevoked(_passkeyId, x, y);\n    }\n\n    /// @notice Initiates a two-step ownership transfer to a new owner.\n    /// @dev Can only be invoked via batch execution (self-call). Records the on-chain deadline\n    ///      by which the pending owner must complete the handover and bumps the per-handover\n    ///      nonce, invalidating any previously issued handover signature.\n    /// @param _newOwner The proposed new owner, distinct from the current owner and this wallet.\n    /// @param _deadline The timestamp by which the pending owner must complete the handover.\n    function transferOwnership(address _newOwner, uint256 _deadline) external onlySelf {\n        _transferOwnership(_newOwner, _deadline);\n    }\n\n    /// @notice Cancels any pending ownership handover.\n    /// @dev Can only be invoked via batch execution (self-call).\n    function cancelOwnershipHandover() external onlySelf {\n        _cancelOwnershipHandover();\n    }\n\n    /*--------------------------------------------------------------\n                           OWNERSHIP HANDOVER\n    --------------------------------------------------------------*/\n\n    /// @notice Completes a pending ownership transfer.\n    /// @dev Permissionless — anyone may submit, but the pending owner must have signed an\n    ///      EIP-712 `OwnershipHandover(newOwner, nonce)` message using the current\n    ///      {pendingOwnerNonce}, and the on-chain {pendingOwnerDeadline} must not have elapsed.\n    /// @param _signature The EIP-712 signature from the pending owner.\n    function completeOwnershipHandover(bytes calldata _signature) external {\n        _completeOwnershipHandover(_signature);\n    }\n\n    /*--------------------------------------------------------------\n                               ONLY OWNER\n    --------------------------------------------------------------*/\n\n    /// @notice Pauses the wallet, recording the current timestamp.\n    /// @dev After pausing, the owner must wait for the timelock delay before calling\n    ///      paused-only functions (e.g., withdrawals, revocations).\n    function pause() external onlyOwner {\n        bytes32 slot = _PAUSED_SLOT;\n        assembly (\"memory-safe\") {\n            sstore(slot, timestamp())\n        }\n\n        emit Paused(block.timestamp);\n    }\n\n    /// @notice Unpauses the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    function unpause() external onlyPaused onlyOwner {\n        bytes32 slot = _PAUSED_SLOT;\n        assembly (\"memory-safe\") {\n            sstore(slot, 0)\n        }\n\n        emit Unpaused(block.timestamp);\n    }\n\n    /// @notice Withdraws native tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _to The recipient address.\n    /// @param _amount The amount of native tokens to withdraw.\n    function withdrawNative(address _to, uint256 _amount) external onlyPaused onlyOwner {\n        _to.safeTransferETH(_amount);\n\n        emit NativeWithdrawal(_to, _amount);\n    }\n\n    /// @notice Withdraws ERC-20 tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-20 token address.\n    /// @param _to The recipient address.\n    /// @param _amount The amount of tokens to withdraw.\n    function withdrawERC20(address _token, address _to, uint256 _amount)\n        external\n        onlyPaused\n        onlyOwner\n    {\n        _token.safeTransfer(_to, _amount);\n\n        emit ERC20Withdrawal(_token, _to, _amount);\n    }\n\n    /// @notice Batch-withdraws ERC-1155 tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-1155 token address.\n    /// @param _to The recipient address.\n    /// @param _ids The token IDs to withdraw.\n    /// @param _amounts The amounts for each token ID.\n    function withdrawERC1155(\n        address _token,\n        address _to,\n        uint256[] calldata _ids,\n        uint256[] calldata _amounts\n    ) external onlyPaused onlyOwner {\n        ERC1155(_token).safeBatchTransferFrom(address(this), _to, _ids, _amounts, \"\");\n\n        emit ERC1155BatchWithdrawal(_token, _to, _ids, _amounts);\n    }\n\n    /// @notice Revokes an ERC-20 allowance by setting it to zero.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-20 token address.\n    /// @param _spender The spender whose allowance is revoked.\n    function revokeAllowance(address _token, address _spender) external onlyPaused onlyOwner {\n        _token.safeApprove(_spender, 0);\n\n        emit AllowanceRevoked(_token, _spender);\n    }\n\n    /// @notice Revokes an ERC-1155 operator approval.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-1155 token address.\n    /// @param _operator The operator whose approval is revoked.\n    function revokeApprovalForAll(address _token, address _operator) external onlyPaused onlyOwner {\n        ERC1155(_token).setApprovalForAll(_operator, false);\n\n        emit ApprovalForAllRevoked(_token, _operator);\n    }\n\n    /// @notice Emergency revocation of a session signer by the owner.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _sessionSigner The session signer to revoke.\n    function revokeSessionSignerEmergency(address _sessionSigner) external onlyPaused onlyOwner {\n        _setSessionSigner(_sessionSigner, 0);\n\n        emit SessionSignerRevokedEmergency(_sessionSigner);\n    }\n\n    /// @notice Emergency revocation of a passkey session signer by the owner.\n    function revokePasskeySessionSignerEmergency(bytes32 _passkeyId) external onlyPaused onlyOwner {\n        (bytes32 x, bytes32 y,) = passkeySessionSigner(_passkeyId);\n        _setPasskeySessionSigner(_passkeyId, bytes32(0), bytes32(0), 0);\n\n        emit PasskeySessionSignerRevokedEmergency(_passkeyId, x, y);\n    }\n\n    /// @notice Opts the wallet out of beacon upgrades, pinning it to the current default\n    ///         implementation.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed. Calls\n    ///      {DepositWalletBeacon.optOut} from the wallet proxy's address; the beacon emits the\n    ///      {OptedOut} event.\n    ///\n    ///      WARNING: opting out is a security-bearing decision the wallet owner takes on their\n    ///      own behalf. After this call:\n    ///        - The wallet permanently follows the implementation that is current at opt-out\n    ///          time, regardless of future beacon upgrades.\n    ///        - Future security fixes, bug patches, and feature updates published via\n    ///          `beacon.upgradeTo(...)` will NOT reach this wallet.\n    ///        - If the pinned implementation is later found vulnerable, the wallet stays\n    ///          vulnerable. The beacon owner cannot un-pin the wallet — only the wallet owner\n    ///          can call {optIn} to rejoin the upgrade cohort.\n    ///        - The pause-based exit hatch (`pause` → wait → `withdrawERC20` / etc.) keeps\n    ///          working as long as the pinned implementation provides those functions.\n    ///      By calling this function the owner acknowledges the above and accepts the risk.\n    function optOut() external onlyPaused onlyOwner {\n        _beacon().optOut();\n    }\n\n    /// @notice Clears the wallet's beacon-upgrade pin, rejoining the upgrade cohort.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed. Calls\n    ///      {DepositWalletBeacon.optIn} from the wallet proxy's address; the beacon emits the\n    ///      {OptedIn} event.\n    ///\n    ///      WARNING: opting in resubscribes the wallet to beacon-driven upgrades. After this\n    ///      call:\n    ///        - The wallet's next call delegates through whatever the beacon currently\n    ///          publishes as `defaultImplementation()`, immediately, with no further owner\n    ///          confirmation.\n    ///        - Any future `beacon.upgradeTo(...)` likewise takes effect on this wallet from\n    ///          the next call onward, on the timelock's schedule rather than the owner's.\n    ///        - Before opting in the owner must understand what the current beacon\n    ///          implementation does and verify that it is safe to adopt and will not break any\n    ///          functionality this wallet depends on. This is especially important when the\n    ///          pinned implementation is several upgrade versions behind the current default —\n    ///          the wallet skips every intermediate version and lands directly on the latest,\n    ///          so any storage, behavioral, or interface changes accumulated across those\n    ///          versions take effect at once.\n    ///      By calling this function the owner acknowledges the above and accepts the risk.\n    function optIn() external onlyPaused onlyOwner {\n        _beacon().optIn();\n    }\n\n    /*--------------------------------------------------------------\n                               INTERNAL\n    --------------------------------------------------------------*/\n\n    /// @dev Resolves the beacon from on-proxy state, decoupled from the factory:\n    ///        1. If the ERC-1967 beacon slot is non-zero, this proxy was deployed natively as a\n    ///           beacon proxy (via {LibClone.deployDeterministicERC1967BeaconProxy}) and the\n    ///           slot stores the beacon address directly.\n    ///        2. Otherwise, the ERC-1967 implementation slot is expected to point at a\n    ///           {BeaconForwarder}; the forwarder's immutable `BEACON` getter returns the\n    ///           beacon address. This is the legacy-migration fallback path.\n    function _beacon() internal view returns (DepositWalletBeacon) {\n        address resolved;\n        bytes32 beaconSlot = _ERC1967_BEACON_SLOT;\n        assembly (\"memory-safe\") {\n            resolved := sload(beaconSlot)\n        }\n        if (resolved != address(0)) {\n            return DepositWalletBeacon(resolved);\n        }\n\n        address impl;\n        bytes32 implSlot = _ERC1967_IMPLEMENTATION_SLOT;\n        assembly (\"memory-safe\") {\n            impl := sload(implSlot)\n        }\n        require(impl.code.length > 0, BeaconUnresolvable());\n        return DepositWalletBeacon(IBeaconForwarder(impl).BEACON());\n    }\n\n    /// @notice Stores the authorization expiry for a session signer.\n    /// @param _signer The session signer address.\n    /// @param _validUntil The expiry timestamp (zero to revoke).\n    function _setSessionSigner(address _signer, uint256 _validUntil) internal {\n        bytes32 slot = _SESSION_SIGNER_SLOT;\n        assembly (\"memory-safe\") {\n            mstore(0x00, _signer)\n            mstore(0x20, slot)\n            sstore(keccak256(0x00, 0x40), _validUntil)\n        }\n    }\n\n    /// @notice Stores a passkey session signer record.\n    function _setPasskeySessionSigner(\n        bytes32 _passkeyId,\n        bytes32 _x,\n        bytes32 _y,\n        uint256 _validUntil\n    ) internal {\n        bytes32 slot = _PASSKEY_SESSION_SIGNER_SLOT;\n        assembly (\"memory-safe\") {\n            mstore(0x00, _passkeyId)\n            mstore(0x20, slot)\n            let recordSlot := keccak256(0x00, 0x40)\n            sstore(recordSlot, _x)\n            sstore(add(recordSlot, 1), _y)\n            sstore(add(recordSlot, 2), _validUntil)\n        }\n    }\n\n    /// @dev Reads the proxy's immutable args from the tail of its bytecode. Works for both\n    ///      ERC-1967 and ERC-1967 beacon proxies, since both templates append args at the end.\n    function _readImmutableArgs() internal view returns (address factory_, bytes32 id_) {\n        bytes memory args = new bytes(_IMMUTABLE_ARGS_LENGTH);\n        address self = address(this);\n        assembly (\"memory-safe\") {\n            extcodecopy(\n                self,\n                add(args, 0x20),\n                sub(extcodesize(self), _IMMUTABLE_ARGS_LENGTH),\n                _IMMUTABLE_ARGS_LENGTH\n            )\n        }\n        (factory_, id_) = abi.decode(args, (address, bytes32));\n    }\n\n    /*--------------------------------------------------------------\n                                ERC1271\n    --------------------------------------------------------------*/\n\n    /// @notice Validates a signature against the wallet owner or an authorized session signer.\n    /// @dev Overrides Solady's ERC-1271 implementation to support session signer signatures.\n    ///      The resolved signer is stored in memory at `_ERC1271_SIGNER_MEM_SLOT` so that\n    ///      `_erc1271Signer` can return it to the parent verification logic.\n    /// @param _hash The hash that was signed.\n    /// @param _signature The signature to validate (may contain a session signer wrapper).\n    /// @return result `ERC1271_MAGIC_VALUE` if the signature is valid, otherwise reverts or returns\n    /// `ERC1271_INVALID_VALUE`.\n    function isValidSignature(bytes32 _hash, bytes calldata _signature)\n        public\n        view\n        override(IDepositWallet, ERC1271)\n        returns (bytes4 result)\n    {\n        (SessionEnvelopeStatus envelopeStatus, bytes32 signerId, uint256 signerKind) =\n            _signature.decodeSessionSigner();\n\n        address signer;\n        bytes32 passkeyX;\n        bytes32 passkeyY;\n        uint256 validationKind = SESSION_SIGNER_KIND_SECP256K1;\n\n        if (envelopeStatus == SessionEnvelopeStatus.NotSessionEnvelope) {\n            signer = owner();\n        } else if (\n            envelopeStatus == SessionEnvelopeStatus.WellFormedEnvelope\n                && signerKind == SESSION_SIGNER_KIND_SECP256K1\n        ) {\n            signer = address(uint160(uint256(signerId)));\n            if (block.timestamp >= sessionSignerAuthorizedUntil(signer)) {\n                return ERC1271_INVALID_VALUE;\n            }\n        } else if (\n            envelopeStatus == SessionEnvelopeStatus.WellFormedEnvelope\n                && signerKind == SESSION_SIGNER_KIND_P256\n        ) {\n            uint256 validUntil;\n            (passkeyX, passkeyY, validUntil) = passkeySessionSigner(signerId);\n            if (block.timestamp >= validUntil) return ERC1271_INVALID_VALUE;\n            validationKind = SESSION_SIGNER_KIND_P256;\n        } else {\n            return ERC1271_INVALID_VALUE;\n        }\n\n        assembly {\n            mstore(_ERC1271_SIGNER_MEM_SLOT, signer)\n            mstore(_ERC1271_SIGNER_KIND_MEM_SLOT, validationKind)\n            mstore(_ERC1271_PASSKEY_X_MEM_SLOT, passkeyX)\n            mstore(_ERC1271_PASSKEY_Y_MEM_SLOT, passkeyY)\n            if lt(mload(0x40), 0x100) { mstore(0x40, 0x100) }\n        }\n\n        return super.isValidSignature(_hash, _signature);\n    }\n\n    /// @dev Returns the signer address previously stored by `isValidSignature`.\n    function _erc1271Signer() internal view virtual override returns (address signer) {\n        assembly {\n            signer := mload(_ERC1271_SIGNER_MEM_SLOT)\n        }\n    }\n\n    /// @dev Factory calls use the safe caller path (direct ECDSA verification);\n    ///      external callers go through the nested EIP-712 workflow.\n    function _erc1271CallerIsSafe() internal view virtual override returns (bool) {\n        return msg.sender == factory();\n    }\n\n    /// @dev Performs ECDSA, ERC-1271, or WebAuthn verification against the resolved signer.\n    ///      Address-based signers (owner and secp256k1-kind session signers) verify via ECDSA\n    ///      first, then fall back to an ERC-1271 staticcall when the signer is a contract.\n    /// @param hash The digest to verify.\n    /// @param signature The ECDSA signature, ERC-1271 payload, or WebAuthn assertion bytes.\n    /// @return True if the signature is valid for the current signer.\n    function _erc1271IsValidSignatureNowCalldata(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        override\n        returns (bool)\n    {\n        uint256 signerKind;\n        bytes32 passkeyX;\n        bytes32 passkeyY;\n        assembly {\n            signerKind := mload(_ERC1271_SIGNER_KIND_MEM_SLOT)\n            passkeyX := mload(_ERC1271_PASSKEY_X_MEM_SLOT)\n            passkeyY := mload(_ERC1271_PASSKEY_Y_MEM_SLOT)\n        }\n\n        if (signerKind == SESSION_SIGNER_KIND_P256) {\n            return PasskeySignerLib.verify(hash, passkeyX, passkeyY, signature);\n        }\n\n        return SignatureVerifierLib.isValidSignatureNow(_erc1271Signer(), hash, signature);\n    }\n\n    /*--------------------------------------------------------------\n                                 EIP712\n    --------------------------------------------------------------*/\n\n    /// @dev Returns the EIP-712 domain name and version for this wallet.\n    function _domainNameAndVersion()\n        internal\n        view\n        virtual\n        override\n        returns (string memory name, string memory version)\n    {\n        name = \"DepositWallet\";\n        version = \"1\";\n    }\n}\n"},"lib/solady/src/accounts/ERC1271.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport {EIP712} from \"../utils/EIP712.sol\";\nimport {SignatureCheckerLib} from \"../utils/SignatureCheckerLib.sol\";\n\n/// @notice ERC1271 mixin with nested EIP-712 approach.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/accounts/ERC1271.sol)\nabstract contract ERC1271 is EIP712 {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev `keccak256(\"PersonalSign(bytes prefixed)\")`.\n    bytes32 internal constant _PERSONAL_SIGN_TYPEHASH =\n        0x983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     ERC1271 OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Validates the signature with ERC1271 return,\n    /// so that this account can also be used as a signer.\n    function isValidSignature(bytes32 hash, bytes calldata signature)\n        public\n        view\n        virtual\n        returns (bytes4 result)\n    {\n        // For automatic detection that the smart account supports the nested EIP-712 workflow,\n        // See: https://eips.ethereum.org/EIPS/eip-7739.\n        // If `hash` is `0x7739...7739`, returns `bytes4(0x77390001)`.\n        // The returned number MAY be increased in future ERC7739 versions.\n        unchecked {\n            if (signature.length == uint256(0)) {\n                // Forces the compiler to optimize for smaller bytecode size.\n                if (uint256(hash) == ~signature.length / 0xffff * 0x7739) return 0x77390001;\n            }\n        }\n        bool success = _erc1271IsValidSignature(hash, _erc1271UnwrapSignature(signature));\n        /// @solidity memory-safe-assembly\n        assembly {\n            // `success ? bytes4(keccak256(\"isValidSignature(bytes32,bytes)\")) : 0xffffffff`.\n            // We use `0xffffffff` for invalid, in convention with the reference implementation.\n            result := shl(224, or(0x1626ba7e, sub(0, iszero(success))))\n        }\n    }\n\n    /// @dev Returns the ERC1271 signer.\n    /// Override to return the signer `isValidSignature` checks against.\n    function _erc1271Signer() internal view virtual returns (address);\n\n    /// @dev Returns whether the `msg.sender` is considered safe, such\n    /// that we don't need to use the nested EIP-712 workflow.\n    /// Override to return true for more callers.\n    /// See: https://mirror.xyz/curiousapple.eth/pFqAdW2LiJ-6S4sg_u1z08k4vK6BCJ33LcyXpnNb8yU\n    function _erc1271CallerIsSafe() internal view virtual returns (bool) {\n        // The canonical `MulticallerWithSigner` at 0x000000000000D9ECebf3C23529de49815Dac1c4c\n        // is known to include the account in the hash to be signed.\n        return msg.sender == 0x000000000000D9ECebf3C23529de49815Dac1c4c;\n    }\n\n    /// @dev Returns whether the `hash` and `signature` are valid.\n    /// Override if you need non-ECDSA logic.\n    function _erc1271IsValidSignatureNowCalldata(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool)\n    {\n        return SignatureCheckerLib.isValidSignatureNowCalldata(_erc1271Signer(), hash, signature);\n    }\n\n    /// @dev Unwraps and returns the signature.\n    function _erc1271UnwrapSignature(bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bytes calldata result)\n    {\n        result = signature;\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Unwraps the ERC6492 wrapper if it exists.\n            // See: https://eips.ethereum.org/EIPS/eip-6492\n            if eq(\n                calldataload(add(result.offset, sub(result.length, 0x20))),\n                mul(0x6492, div(not(shr(address(), address())), 0xffff)) // `0x6492...6492`.\n            ) {\n                let o := add(result.offset, calldataload(add(result.offset, 0x40)))\n                result.length := calldataload(o)\n                result.offset := add(o, 0x20)\n            }\n        }\n    }\n\n    /// @dev Returns whether the `signature` is valid for the `hash.\n    function _erc1271IsValidSignature(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool)\n    {\n        return _erc1271IsValidSignatureViaSafeCaller(hash, signature)\n            || _erc1271IsValidSignatureViaNestedEIP712(hash, signature)\n            || _erc1271IsValidSignatureViaRPC(hash, signature);\n    }\n\n    /// @dev Performs the signature validation without nested EIP-712 if the caller is\n    /// a safe caller. A safe caller must include the address of this account in the hash.\n    function _erc1271IsValidSignatureViaSafeCaller(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool result)\n    {\n        if (_erc1271CallerIsSafe()) result = _erc1271IsValidSignatureNowCalldata(hash, signature);\n    }\n\n    /// @dev ERC1271 signature validation (Nested EIP-712 workflow).\n    ///\n    /// This uses ECDSA recovery by default (see: `_erc1271IsValidSignatureNowCalldata`).\n    /// It also uses a nested EIP-712 approach to prevent signature replays when a single EOA\n    /// owns multiple smart contract accounts,\n    /// while still enabling wallet UIs (e.g. Metamask) to show the EIP-712 values.\n    ///\n    /// Crafted for phishing resistance, efficiency, flexibility.\n    /// __________________________________________________________________________________________\n    ///\n    /// Glossary:\n    ///\n    /// - `APP_DOMAIN_SEPARATOR`: The domain separator of the `hash` passed in by the application.\n    ///   Provided by the front end. Intended to be the domain separator of the contract\n    ///   that will call `isValidSignature` on this account.\n    ///\n    /// - `ACCOUNT_DOMAIN_SEPARATOR`: The domain separator of this account.\n    ///   See: `EIP712._domainSeparator()`.\n    /// __________________________________________________________________________________________\n    ///\n    /// For the `TypedDataSign` workflow, the final hash will be:\n    /// ```\n    ///     keccak256(\\x19\\x01 ‖ APP_DOMAIN_SEPARATOR ‖\n    ///         hashStruct(TypedDataSign({\n    ///             contents: hashStruct(originalStruct),\n    ///             name: keccak256(bytes(eip712Domain().name)),\n    ///             version: keccak256(bytes(eip712Domain().version)),\n    ///             chainId: eip712Domain().chainId,\n    ///             verifyingContract: eip712Domain().verifyingContract,\n    ///             salt: eip712Domain().salt\n    ///         }))\n    ///     )\n    /// ```\n    /// where `‖` denotes the concatenation operator for bytes.\n    /// The order of the fields is important: `contents` comes before `name`.\n    ///\n    /// The signature will be `r ‖ s ‖ v ‖ APP_DOMAIN_SEPARATOR ‖\n    ///     contents ‖ contentsDescription ‖ uint16(contentsDescription.length)`,\n    /// where:\n    /// - `contents` is the bytes32 struct hash of the original struct.\n    /// - `contentsDescription` can be either:\n    ///     a) `contentsType` (implicit mode)\n    ///         where `contentsType` starts with `contentsName`.\n    ///     b) `contentsType ‖ contentsName` (explicit mode)\n    ///         where `contentsType` may not necessarily start with `contentsName`.\n    ///\n    /// The `APP_DOMAIN_SEPARATOR` and `contents` will be used to verify if `hash` is indeed correct.\n    /// __________________________________________________________________________________________\n    ///\n    /// For the `PersonalSign` workflow, the final hash will be:\n    /// ```\n    ///     keccak256(\\x19\\x01 ‖ ACCOUNT_DOMAIN_SEPARATOR ‖\n    ///         hashStruct(PersonalSign({\n    ///             prefixed: keccak256(bytes(\\x19Ethereum Signed Message:\\n ‖\n    ///                 base10(bytes(someString).length) ‖ someString))\n    ///         }))\n    ///     )\n    /// ```\n    /// where `‖` denotes the concatenation operator for bytes.\n    ///\n    /// The `PersonalSign` type hash will be `keccak256(\"PersonalSign(bytes prefixed)\")`.\n    /// The signature will be `r ‖ s ‖ v`.\n    /// __________________________________________________________________________________________\n    ///\n    /// For demo and typescript code, see:\n    /// - https://github.com/junomonster/nested-eip-712\n    /// - https://github.com/frangio/eip712-wrapper-for-eip1271\n    ///\n    /// Their nomenclature may differ from ours, although the high-level idea is similar.\n    ///\n    /// Of course, if you have control over the codebase of the wallet client(s) too,\n    /// you can choose a more minimalistic signature scheme like\n    /// `keccak256(abi.encode(address(this), hash))` instead of all these acrobatics.\n    /// All these are just for widespread out-of-the-box compatibility with other wallet clients.\n    /// We want to create bazaars, not walled castles.\n    /// And we'll use push the Turing Completeness of the EVM to the limits to do so.\n    function _erc1271IsValidSignatureViaNestedEIP712(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool result)\n    {\n        uint256 t = uint256(uint160(address(this)));\n        // Forces the compiler to pop the variables after the scope, avoiding stack-too-deep.\n        if (t != uint256(0)) {\n            (\n                ,\n                string memory name,\n                string memory version,\n                uint256 chainId,\n                address verifyingContract,\n                bytes32 salt,\n            ) = eip712Domain();\n            /// @solidity memory-safe-assembly\n            assembly {\n                t := mload(0x40) // Grab the free memory pointer.\n                // Skip 2 words for the `typedDataSignTypehash` and `contents` struct hash.\n                mstore(add(t, 0x40), keccak256(add(name, 0x20), mload(name)))\n                mstore(add(t, 0x60), keccak256(add(version, 0x20), mload(version)))\n                mstore(add(t, 0x80), chainId)\n                mstore(add(t, 0xa0), shr(96, shl(96, verifyingContract)))\n                mstore(add(t, 0xc0), salt)\n                mstore(0x40, add(t, 0xe0)) // Allocate the memory.\n            }\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            // `c` is `contentsDescription.length`, which is stored in the last 2 bytes of the signature.\n            let c := shr(240, calldataload(add(signature.offset, sub(signature.length, 2))))\n            for {} 1 {} {\n                let l := add(0x42, c) // Total length of appended data (32 + 32 + c + 2).\n                let o := add(signature.offset, sub(signature.length, l)) // Offset of appended data.\n                mstore(0x00, 0x1901) // Store the \"\\x19\\x01\" prefix.\n                calldatacopy(0x20, o, 0x40) // Copy the `APP_DOMAIN_SEPARATOR` and `contents` struct hash.\n                // Use the `PersonalSign` workflow if the reconstructed hash doesn't match,\n                // or if the appended data is invalid, i.e.\n                // `appendedData.length > signature.length || contentsDescription.length == 0`.\n                if or(xor(keccak256(0x1e, 0x42), hash), or(lt(signature.length, l), iszero(c))) {\n                    t := 0 // Set `t` to 0, denoting that we need to `hash = _hashTypedData(hash)`.\n                    mstore(t, _PERSONAL_SIGN_TYPEHASH)\n                    mstore(0x20, hash) // Store the `prefixed`.\n                    hash := keccak256(t, 0x40) // Compute the `PersonalSign` struct hash.\n                    break\n                }\n                // Else, use the `TypedDataSign` workflow.\n                // `TypedDataSign({ContentsName} contents,string name,...){ContentsType}`.\n                mstore(m, \"TypedDataSign(\") // Store the start of `TypedDataSign`'s type encoding.\n                let p := add(m, 0x0e) // Advance 14 bytes to skip \"TypedDataSign(\".\n                calldatacopy(p, add(o, 0x40), c) // Copy `contentsName`, optimistically.\n                mstore(add(p, c), 40) // Store a '(' after the end.\n                if iszero(eq(byte(0, mload(sub(add(p, c), 1))), 41)) {\n                    let e := 0 // Length of `contentsName` in explicit mode.\n                    for { let q := sub(add(p, c), 1) } 1 {} {\n                        e := add(e, 1) // Scan backwards until we encounter a ')'.\n                        if iszero(gt(lt(e, c), eq(byte(0, mload(sub(q, e))), 41))) { break }\n                    }\n                    c := sub(c, e) // Truncate `contentsDescription` to `contentsType`.\n                    calldatacopy(p, add(add(o, 0x40), c), e) // Copy `contentsName`.\n                    mstore8(add(p, e), 40) // Store a '(' exactly right after the end.\n                }\n                // `d & 1 == 1` means that `contentsName` is invalid.\n                let d := shr(byte(0, mload(p)), 0x7fffffe000000000000010000000000) // Starts with `[a-z(]`.\n                // Advance `p` until we encounter '('.\n                for {} iszero(eq(byte(0, mload(p)), 40)) { p := add(p, 1) } {\n                    d := or(shr(byte(0, mload(p)), 0x120100000001), d) // Has a byte in \", )\\x00\".\n                }\n                mstore(p, \" contents,string name,string\") // Store the rest of the encoding.\n                mstore(add(p, 0x1c), \" version,uint256 chainId,address\")\n                mstore(add(p, 0x3c), \" verifyingContract,bytes32 salt)\")\n                p := add(p, 0x5c)\n                calldatacopy(p, add(o, 0x40), c) // Copy `contentsType`.\n                // Fill in the missing fields of the `TypedDataSign`.\n                calldatacopy(t, o, 0x40) // Copy the `contents` struct hash to `add(t, 0x20)`.\n                mstore(t, keccak256(m, sub(add(p, c), m))) // Store `typedDataSignTypehash`.\n                // The \"\\x19\\x01\" prefix is already at 0x00.\n                // `APP_DOMAIN_SEPARATOR` is already at 0x20.\n                mstore(0x40, keccak256(t, 0xe0)) // `hashStruct(typedDataSign)`.\n                // Compute the final hash, corrupted if `contentsName` is invalid.\n                hash := keccak256(0x1e, add(0x42, and(1, d)))\n                signature.length := sub(signature.length, l) // Truncate the signature.\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n        if (t == uint256(0)) hash = _hashTypedData(hash); // `PersonalSign` workflow.\n        result = _erc1271IsValidSignatureNowCalldata(hash, signature);\n    }\n\n    /// @dev Performs the signature validation without nested EIP-712 to allow for easy sign ins.\n    /// This function must always return false or revert if called on-chain.\n    function _erc1271IsValidSignatureViaRPC(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool result)\n    {\n        // Non-zero gasprice is a heuristic to check if a call is on-chain,\n        // but we can't fully depend on it because it can be manipulated.\n        // See: https://x.com/NoahCitron/status/1580359718341484544\n        if (tx.gasprice == uint256(0)) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                mstore(gasprice(), gasprice())\n                // See: https://gist.github.com/Vectorized/3c9b63524d57492b265454f62d895f71\n                let b := 0x000000000000378eDCD5B5B0A24f5342d8C10485 // Basefee contract,\n                pop(staticcall(0xffff, b, codesize(), gasprice(), gasprice(), 0x20))\n                // If `gasprice < basefee`, the call cannot be on-chain, and we can skip the gas burn.\n                if iszero(mload(gasprice())) {\n                    let m := mload(0x40) // Cache the free memory pointer.\n                    mstore(gasprice(), 0x1626ba7e) // `isValidSignature(bytes32,bytes)`.\n                    mstore(0x20, b) // Recycle `b` to denote if we need to burn gas.\n                    mstore(0x40, 0x40)\n                    let gasToBurn := or(add(0xffff, gaslimit()), gaslimit())\n                    // Burns gas computationally efficiently. Also, requires that `gas > gasToBurn`.\n                    if or(eq(hash, b), lt(gas(), gasToBurn)) { invalid() }\n                    // Make a call to this with `b`, efficiently burning the gas provided.\n                    // No valid transaction can consume more than the gaslimit.\n                    // See: https://ethereum.github.io/yellowpaper/paper.pdf\n                    // Most RPCs perform calls with a gas budget greater than the gaslimit.\n                    pop(staticcall(gasToBurn, address(), 0x1c, 0x64, gasprice(), gasprice()))\n                    mstore(0x40, m) // Restore the free memory pointer.\n                }\n            }\n            result = _erc1271IsValidSignatureNowCalldata(hash, signature);\n        }\n    }\n}\n"},"lib/solady/src/accounts/Receiver.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Receiver mixin for ETH and safe-transferred ERC721 and ERC1155 tokens.\n/// @author Solady (https://github.com/Vectorized/solady/blob/main/src/accounts/Receiver.sol)\n///\n/// @dev Note:\n/// - Handles all ERC721 and ERC1155 token safety callbacks.\n/// - Collapses function table gas overhead and code size.\n/// - Utilizes fallback so unknown calldata will pass on.\nabstract contract Receiver {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The function selector is not recognized.\n    error FnSelectorNotRecognized();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     RECEIVE / FALLBACK                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev For receiving ETH.\n    receive() external payable virtual {}\n\n    /// @dev Fallback function with the `receiverFallback` modifier.\n    fallback() external payable virtual receiverFallback {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x3c10b94e) // `FnSelectorNotRecognized()`.\n            revert(0x1c, 0x04)\n        }\n    }\n\n    /// @dev Modifier for the fallback function to handle token callbacks.\n    modifier receiverFallback() virtual {\n        _beforeReceiverFallbackBody();\n        if (_useReceiverFallbackBody()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let s := shr(224, calldataload(0))\n                // 0x150b7a02: `onERC721Received(address,address,uint256,bytes)`.\n                // 0xf23a6e61: `onERC1155Received(address,address,uint256,uint256,bytes)`.\n                // 0xbc197c81: `onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)`.\n                if or(eq(s, 0x150b7a02), or(eq(s, 0xf23a6e61), eq(s, 0xbc197c81))) {\n                    // Assumes `mload(0x40) <= 0xffffffff` to save gas on cleaning lower bytes.\n                    mstore(0x20, s) // Store `msg.sig`.\n                    return(0x3c, 0x20) // Return `msg.sig`.\n                }\n            }\n        }\n        _afterReceiverFallbackBody();\n        _;\n    }\n\n    /// @dev Whether we want to use the body of the `receiverFallback` modifier.\n    function _useReceiverFallbackBody() internal view virtual returns (bool) {\n        return true;\n    }\n\n    /// @dev Called before the body of the `receiverFallback` modifier.\n    function _beforeReceiverFallbackBody() internal virtual {}\n\n    /// @dev Called after the body of the `receiverFallback` modifier.\n    function _afterReceiverFallbackBody() internal virtual {}\n}\n"},"lib/solady/src/tokens/ERC1155.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Simple ERC1155 implementation.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/tokens/ERC1155.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC1155.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/token/ERC1155/ERC1155.sol)\n///\n/// @dev Note:\n/// - The ERC1155 standard allows for self-approvals.\n///   For performance, this implementation WILL NOT revert for such actions.\n///   Please add any checks with overrides if desired.\n/// - The transfer functions use the identity precompile (0x4)\n///   to copy memory internally.\n///\n/// If you are overriding:\n/// - Make sure all variables written to storage are properly cleaned\n//    (e.g. the bool value for `isApprovedForAll` MUST be either 1 or 0 under the hood).\n/// - Check that the overridden function is actually used in the function you want to\n///   change the behavior of. Much of the code has been manually inlined for performance.\nabstract contract ERC1155 {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The lengths of the input arrays are not the same.\n    error ArrayLengthsMismatch();\n\n    /// @dev Cannot mint or transfer to the zero address.\n    error TransferToZeroAddress();\n\n    /// @dev The recipient's balance has overflowed.\n    error AccountBalanceOverflow();\n\n    /// @dev Insufficient balance.\n    error InsufficientBalance();\n\n    /// @dev Only the token owner or an approved account can manage the tokens.\n    error NotOwnerNorApproved();\n\n    /// @dev Cannot safely transfer to a contract that does not implement\n    /// the ERC1155Receiver interface.\n    error TransferToNonERC1155ReceiverImplementer();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Emitted when `amount` of token `id` is transferred\n    /// from `from` to `to` by `operator`.\n    event TransferSingle(\n        address indexed operator,\n        address indexed from,\n        address indexed to,\n        uint256 id,\n        uint256 amount\n    );\n\n    /// @dev Emitted when `amounts` of token `ids` are transferred\n    /// from `from` to `to` by `operator`.\n    event TransferBatch(\n        address indexed operator,\n        address indexed from,\n        address indexed to,\n        uint256[] ids,\n        uint256[] amounts\n    );\n\n    /// @dev Emitted when `owner` enables or disables `operator` to manage all of their tokens.\n    event ApprovalForAll(address indexed owner, address indexed operator, bool isApproved);\n\n    /// @dev Emitted when the Uniform Resource Identifier (URI) for token `id`\n    /// is updated to `value`. This event is not used in the base contract.\n    /// You may need to emit this event depending on your URI logic.\n    ///\n    /// See: https://eips.ethereum.org/EIPS/eip-1155#metadata\n    event URI(string value, uint256 indexed id);\n\n    /// @dev `keccak256(bytes(\"TransferSingle(address,address,address,uint256,uint256)\"))`.\n    uint256 private constant _TRANSFER_SINGLE_EVENT_SIGNATURE =\n        0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62;\n\n    /// @dev `keccak256(bytes(\"TransferBatch(address,address,address,uint256[],uint256[])\"))`.\n    uint256 private constant _TRANSFER_BATCH_EVENT_SIGNATURE =\n        0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb;\n\n    /// @dev `keccak256(bytes(\"ApprovalForAll(address,address,bool)\"))`.\n    uint256 private constant _APPROVAL_FOR_ALL_EVENT_SIGNATURE =\n        0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The `ownerSlotSeed` of a given owner is given by.\n    /// ```\n    ///     let ownerSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, owner))\n    /// ```\n    ///\n    /// The balance slot of `owner` is given by.\n    /// ```\n    ///     mstore(0x20, ownerSlotSeed)\n    ///     mstore(0x00, id)\n    ///     let balanceSlot := keccak256(0x00, 0x40)\n    /// ```\n    ///\n    /// The operator approval slot of `owner` is given by.\n    /// ```\n    ///     mstore(0x20, ownerSlotSeed)\n    ///     mstore(0x00, operator)\n    ///     let operatorApprovalSlot := keccak256(0x0c, 0x34)\n    /// ```\n    uint256 private constant _ERC1155_MASTER_SLOT_SEED = 0x9a31110384e0b0c9;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      ERC1155 METADATA                      */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the URI for token `id`.\n    ///\n    /// You can either return the same templated URI for all token IDs,\n    /// (e.g. \"https://example.com/api/{id}.json\"),\n    /// or return a unique URI for each `id`.\n    ///\n    /// See: https://eips.ethereum.org/EIPS/eip-1155#metadata\n    function uri(uint256 id) public view virtual returns (string memory);\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          ERC1155                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the amount of `id` owned by `owner`.\n    function balanceOf(address owner, uint256 id) public view virtual returns (uint256 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n            mstore(0x14, owner)\n            mstore(0x00, id)\n            result := sload(keccak256(0x00, 0x40))\n        }\n    }\n\n    /// @dev Returns whether `operator` is approved to manage the tokens of `owner`.\n    function isApprovedForAll(address owner, address operator)\n        public\n        view\n        virtual\n        returns (bool result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n            mstore(0x14, owner)\n            mstore(0x00, operator)\n            result := sload(keccak256(0x0c, 0x34))\n        }\n    }\n\n    /// @dev Sets whether `operator` is approved to manage the tokens of the caller.\n    ///\n    /// Emits a {ApprovalForAll} event.\n    function setApprovalForAll(address operator, bool isApproved) public virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Convert to 0 or 1.\n            isApproved := iszero(iszero(isApproved))\n            // Update the `isApproved` for (`msg.sender`, `operator`).\n            mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n            mstore(0x14, caller())\n            mstore(0x00, operator)\n            sstore(keccak256(0x0c, 0x34), isApproved)\n            // Emit the {ApprovalForAll} event.\n            mstore(0x00, isApproved)\n            // forgefmt: disable-next-line\n            log3(0x00, 0x20, _APPROVAL_FOR_ALL_EVENT_SIGNATURE, caller(), shr(96, shl(96, operator)))\n        }\n    }\n\n    /// @dev Transfers `amount` of `id` from `from` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `from` must have at least `amount` of `id`.\n    /// - If the caller is not `from`,\n    ///   it must be approved to manage the tokens of `from`.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155Received}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferSingle} event.\n    function safeTransferFrom(\n        address from,\n        address to,\n        uint256 id,\n        uint256 amount,\n        bytes calldata data\n    ) public virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, to, _single(id), _single(amount), data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let fromSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, from))\n            let toSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, to))\n            mstore(0x20, fromSlotSeed)\n            // Clear the upper 96 bits.\n            from := shr(96, fromSlotSeed)\n            to := shr(96, toSlotSeed)\n            // Revert if `to` is the zero address.\n            if iszero(to) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            // If the caller is not `from`, do the authorization check.\n            if iszero(eq(caller(), from)) {\n                mstore(0x00, caller())\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Subtract and store the updated balance of `from`.\n            {\n                mstore(0x00, id)\n                let fromBalanceSlot := keccak256(0x00, 0x40)\n                let fromBalance := sload(fromBalanceSlot)\n                if gt(amount, fromBalance) {\n                    mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(fromBalanceSlot, sub(fromBalance, amount))\n            }\n            // Increase and store the updated balance of `to`.\n            {\n                mstore(0x20, toSlotSeed)\n                let toBalanceSlot := keccak256(0x00, 0x40)\n                let toBalanceBefore := sload(toBalanceSlot)\n                let toBalanceAfter := add(toBalanceBefore, amount)\n                if lt(toBalanceAfter, toBalanceBefore) {\n                    mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(toBalanceSlot, toBalanceAfter)\n            }\n            // Emit a {TransferSingle} event.\n            mstore(0x20, amount)\n            log4(0x00, 0x40, _TRANSFER_SINGLE_EVENT_SIGNATURE, caller(), from, to)\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, to, _single(id), _single(amount), data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Do the {onERC1155Received} check if `to` is a smart contract.\n            if extcodesize(to) {\n                // Prepare the calldata.\n                let m := mload(0x40)\n                // `onERC1155Received(address,address,uint256,uint256,bytes)`.\n                mstore(m, 0xf23a6e61)\n                mstore(add(m, 0x20), caller())\n                mstore(add(m, 0x40), from)\n                mstore(add(m, 0x60), id)\n                mstore(add(m, 0x80), amount)\n                mstore(add(m, 0xa0), 0xa0)\n                mstore(add(m, 0xc0), data.length)\n                calldatacopy(add(m, 0xe0), data.offset, data.length)\n                // Revert if the call reverts.\n                if iszero(call(gas(), to, 0, add(m, 0x1c), add(0xc4, data.length), m, 0x20)) {\n                    if returndatasize() {\n                        // Bubble up the revert if the call reverts.\n                        returndatacopy(m, 0x00, returndatasize())\n                        revert(m, returndatasize())\n                    }\n                }\n                // Load the returndata and compare it with the function selector.\n                if iszero(eq(mload(m), shl(224, 0xf23a6e61))) {\n                    mstore(0x00, 0x9c05499b) // `TransferToNonERC1155ReceiverImplementer()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Transfers `amounts` of `ids` from `from` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `from` must have at least `amount` of `id`.\n    /// - `ids` and `amounts` must have the same length.\n    /// - If the caller is not `from`,\n    ///   it must be approved to manage the tokens of `from`.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155BatchReceived}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferBatch} event.\n    function safeBatchTransferFrom(\n        address from,\n        address to,\n        uint256[] calldata ids,\n        uint256[] calldata amounts,\n        bytes calldata data\n    ) public virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, to, ids, amounts, data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(ids.length, amounts.length)) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            let fromSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, from))\n            let toSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, to))\n            mstore(0x20, fromSlotSeed)\n            // Clear the upper 96 bits.\n            from := shr(96, fromSlotSeed)\n            to := shr(96, toSlotSeed)\n            // Revert if `to` is the zero address.\n            if iszero(to) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            // If the caller is not `from`, do the authorization check.\n            if iszero(eq(caller(), from)) {\n                mstore(0x00, caller())\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Loop through all the `ids` and update the balances.\n            {\n                for { let i := shl(5, ids.length) } i {} {\n                    i := sub(i, 0x20)\n                    let amount := calldataload(add(amounts.offset, i))\n                    // Subtract and store the updated balance of `from`.\n                    {\n                        mstore(0x20, fromSlotSeed)\n                        mstore(0x00, calldataload(add(ids.offset, i)))\n                        let fromBalanceSlot := keccak256(0x00, 0x40)\n                        let fromBalance := sload(fromBalanceSlot)\n                        if gt(amount, fromBalance) {\n                            mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(fromBalanceSlot, sub(fromBalance, amount))\n                    }\n                    // Increase and store the updated balance of `to`.\n                    {\n                        mstore(0x20, toSlotSeed)\n                        let toBalanceSlot := keccak256(0x00, 0x40)\n                        let toBalanceBefore := sload(toBalanceSlot)\n                        let toBalanceAfter := add(toBalanceBefore, amount)\n                        if lt(toBalanceAfter, toBalanceBefore) {\n                            mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(toBalanceSlot, toBalanceAfter)\n                    }\n                }\n            }\n            // Emit a {TransferBatch} event.\n            {\n                let m := mload(0x40)\n                // Copy the `ids`.\n                mstore(m, 0x40)\n                let n := shl(5, ids.length)\n                mstore(add(m, 0x40), ids.length)\n                calldatacopy(add(m, 0x60), ids.offset, n)\n                // Copy the `amounts`.\n                mstore(add(m, 0x20), add(0x60, n))\n                let o := add(add(m, n), 0x60)\n                mstore(o, ids.length)\n                calldatacopy(add(o, 0x20), amounts.offset, n)\n                // Do the emit.\n                log4(m, add(add(n, n), 0x80), _TRANSFER_BATCH_EVENT_SIGNATURE, caller(), from, to)\n            }\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransferCalldata(from, to, ids, amounts, data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Do the {onERC1155BatchReceived} check if `to` is a smart contract.\n            if extcodesize(to) {\n                mstore(0x00, to) // Cache `to` to prevent stack too deep.\n                let m := mload(0x40)\n                // Prepare the calldata.\n                // `onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)`.\n                mstore(m, 0xbc197c81)\n                mstore(add(m, 0x20), caller())\n                mstore(add(m, 0x40), from)\n                // Copy the `ids`.\n                mstore(add(m, 0x60), 0xa0)\n                let n := shl(5, ids.length)\n                mstore(add(m, 0xc0), ids.length)\n                calldatacopy(add(m, 0xe0), ids.offset, n)\n                // Copy the `amounts`.\n                mstore(add(m, 0x80), add(0xc0, n))\n                let o := add(add(m, n), 0xe0)\n                mstore(o, ids.length)\n                calldatacopy(add(o, 0x20), amounts.offset, n)\n                // Copy the `data`.\n                mstore(add(m, 0xa0), add(add(0xe0, n), n))\n                o := add(add(o, n), 0x20)\n                mstore(o, data.length)\n                calldatacopy(add(o, 0x20), data.offset, data.length)\n                let nAll := add(0x104, add(data.length, add(n, n)))\n                // Revert if the call reverts.\n                if iszero(call(gas(), mload(0x00), 0, add(mload(0x40), 0x1c), nAll, m, 0x20)) {\n                    if returndatasize() {\n                        // Bubble up the revert if the call reverts.\n                        returndatacopy(m, 0x00, returndatasize())\n                        revert(m, returndatasize())\n                    }\n                }\n                // Load the returndata and compare it with the function selector.\n                if iszero(eq(mload(m), shl(224, 0xbc197c81))) {\n                    mstore(0x00, 0x9c05499b) // `TransferToNonERC1155ReceiverImplementer()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Returns the amounts of `ids` for `owners.\n    ///\n    /// Requirements:\n    /// - `owners` and `ids` must have the same length.\n    function balanceOfBatch(address[] calldata owners, uint256[] calldata ids)\n        public\n        view\n        virtual\n        returns (uint256[] memory balances)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(ids.length, owners.length)) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            balances := mload(0x40)\n            mstore(balances, ids.length)\n            let o := add(balances, 0x20)\n            let i := shl(5, ids.length)\n            mstore(0x40, add(i, o))\n            // Loop through all the `ids` and load the balances.\n            for {} i {} {\n                i := sub(i, 0x20)\n                let owner := calldataload(add(owners.offset, i))\n                mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, shl(96, owner)))\n                mstore(0x00, calldataload(add(ids.offset, i)))\n                mstore(add(o, i), sload(keccak256(0x00, 0x40)))\n            }\n        }\n    }\n\n    /// @dev Returns true if this contract implements the interface defined by `interfaceId`.\n    /// See: https://eips.ethereum.org/EIPS/eip-165\n    /// This function call must use less than 30000 gas.\n    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let s := shr(224, interfaceId)\n            // ERC165: 0x01ffc9a7, ERC1155: 0xd9b67a26, ERC1155MetadataURI: 0x0e89341c.\n            result := or(or(eq(s, 0x01ffc9a7), eq(s, 0xd9b67a26)), eq(s, 0x0e89341c))\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  INTERNAL MINT FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Mints `amount` of `id` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155Received}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferSingle} event.\n    function _mint(address to, uint256 id, uint256 amount, bytes memory data) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(address(0), to, _single(id), _single(amount), data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let to_ := shl(96, to)\n            // Revert if `to` is the zero address.\n            if iszero(to_) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            // Increase and store the updated balance of `to`.\n            {\n                mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n                mstore(0x14, to)\n                mstore(0x00, id)\n                let toBalanceSlot := keccak256(0x00, 0x40)\n                let toBalanceBefore := sload(toBalanceSlot)\n                let toBalanceAfter := add(toBalanceBefore, amount)\n                if lt(toBalanceAfter, toBalanceBefore) {\n                    mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(toBalanceSlot, toBalanceAfter)\n            }\n            // Emit a {TransferSingle} event.\n            mstore(0x20, amount)\n            log4(0x00, 0x40, _TRANSFER_SINGLE_EVENT_SIGNATURE, caller(), 0, shr(96, to_))\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(address(0), to, _single(id), _single(amount), data);\n        }\n        if (_hasCode(to)) _checkOnERC1155Received(address(0), to, id, amount, data);\n    }\n\n    /// @dev Mints `amounts` of `ids` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `ids` and `amounts` must have the same length.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155BatchReceived}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferBatch} event.\n    function _batchMint(\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(address(0), to, ids, amounts, data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(mload(ids), mload(amounts))) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            let to_ := shl(96, to)\n            // Revert if `to` is the zero address.\n            if iszero(to_) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            // Loop through all the `ids` and update the balances.\n            {\n                mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, to_))\n                for { let i := shl(5, mload(ids)) } i { i := sub(i, 0x20) } {\n                    let amount := mload(add(amounts, i))\n                    // Increase and store the updated balance of `to`.\n                    {\n                        mstore(0x00, mload(add(ids, i)))\n                        let toBalanceSlot := keccak256(0x00, 0x40)\n                        let toBalanceBefore := sload(toBalanceSlot)\n                        let toBalanceAfter := add(toBalanceBefore, amount)\n                        if lt(toBalanceAfter, toBalanceBefore) {\n                            mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(toBalanceSlot, toBalanceAfter)\n                    }\n                }\n            }\n            // Emit a {TransferBatch} event.\n            {\n                let m := mload(0x40)\n                // Copy the `ids`.\n                mstore(m, 0x40)\n                let n := add(0x20, shl(5, mload(ids)))\n                let o := add(m, 0x40)\n                pop(staticcall(gas(), 4, ids, n, o, n))\n                // Copy the `amounts`.\n                mstore(add(m, 0x20), add(0x40, returndatasize()))\n                o := add(o, returndatasize())\n                n := add(0x20, shl(5, mload(amounts)))\n                pop(staticcall(gas(), 4, amounts, n, o, n))\n                n := sub(add(o, returndatasize()), m)\n                // Do the emit.\n                log4(m, n, _TRANSFER_BATCH_EVENT_SIGNATURE, caller(), 0, shr(96, to_))\n            }\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(address(0), to, ids, amounts, data);\n        }\n        if (_hasCode(to)) _checkOnERC1155BatchReceived(address(0), to, ids, amounts, data);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  INTERNAL BURN FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Equivalent to `_burn(address(0), from, id, amount)`.\n    function _burn(address from, uint256 id, uint256 amount) internal virtual {\n        _burn(address(0), from, id, amount);\n    }\n\n    /// @dev Destroys `amount` of `id` from `from`.\n    ///\n    /// Requirements:\n    /// - `from` must have at least `amount` of `id`.\n    /// - If `by` is not the zero address, it must be either `from`,\n    ///   or approved to manage the tokens of `from`.\n    ///\n    /// Emits a {TransferSingle} event.\n    function _burn(address by, address from, uint256 id, uint256 amount) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, address(0), _single(id), _single(amount), \"\");\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let from_ := shl(96, from)\n            mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, from_))\n            // If `by` is not the zero address, and not equal to `from`,\n            // check if it is approved to manage all the tokens of `from`.\n            if iszero(or(iszero(shl(96, by)), eq(shl(96, by), from_))) {\n                mstore(0x00, by)\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Decrease and store the updated balance of `from`.\n            {\n                mstore(0x00, id)\n                let fromBalanceSlot := keccak256(0x00, 0x40)\n                let fromBalance := sload(fromBalanceSlot)\n                if gt(amount, fromBalance) {\n                    mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(fromBalanceSlot, sub(fromBalance, amount))\n            }\n            // Emit a {TransferSingle} event.\n            mstore(0x20, amount)\n            log4(0x00, 0x40, _TRANSFER_SINGLE_EVENT_SIGNATURE, caller(), shr(96, from_), 0)\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, address(0), _single(id), _single(amount), \"\");\n        }\n    }\n\n    /// @dev Equivalent to `_batchBurn(address(0), from, ids, amounts)`.\n    function _batchBurn(address from, uint256[] memory ids, uint256[] memory amounts)\n        internal\n        virtual\n    {\n        _batchBurn(address(0), from, ids, amounts);\n    }\n\n    /// @dev Destroys `amounts` of `ids` from `from`.\n    ///\n    /// Requirements:\n    /// - `ids` and `amounts` must have the same length.\n    /// - `from` must have at least `amounts` of `ids`.\n    /// - If `by` is not the zero address, it must be either `from`,\n    ///   or approved to manage the tokens of `from`.\n    ///\n    /// Emits a {TransferBatch} event.\n    function _batchBurn(address by, address from, uint256[] memory ids, uint256[] memory amounts)\n        internal\n        virtual\n    {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, address(0), ids, amounts, \"\");\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(mload(ids), mload(amounts))) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            let from_ := shl(96, from)\n            mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, from_))\n            // If `by` is not the zero address, and not equal to `from`,\n            // check if it is approved to manage all the tokens of `from`.\n            let by_ := shl(96, by)\n            if iszero(or(iszero(by_), eq(by_, from_))) {\n                mstore(0x00, by)\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Loop through all the `ids` and update the balances.\n            {\n                for { let i := shl(5, mload(ids)) } i { i := sub(i, 0x20) } {\n                    let amount := mload(add(amounts, i))\n                    // Decrease and store the updated balance of `from`.\n                    {\n                        mstore(0x00, mload(add(ids, i)))\n                        let fromBalanceSlot := keccak256(0x00, 0x40)\n                        let fromBalance := sload(fromBalanceSlot)\n                        if gt(amount, fromBalance) {\n                            mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(fromBalanceSlot, sub(fromBalance, amount))\n                    }\n                }\n            }\n            // Emit a {TransferBatch} event.\n            {\n                let m := mload(0x40)\n                // Copy the `ids`.\n                mstore(m, 0x40)\n                let n := add(0x20, shl(5, mload(ids)))\n                let o := add(m, 0x40)\n                pop(staticcall(gas(), 4, ids, n, o, n))\n                // Copy the `amounts`.\n                mstore(add(m, 0x20), add(0x40, returndatasize()))\n                o := add(o, returndatasize())\n                n := add(0x20, shl(5, mload(amounts)))\n                pop(staticcall(gas(), 4, amounts, n, o, n))\n                n := sub(add(o, returndatasize()), m)\n                // Do the emit.\n                log4(m, n, _TRANSFER_BATCH_EVENT_SIGNATURE, caller(), shr(96, from_), 0)\n            }\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, address(0), ids, amounts, \"\");\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                INTERNAL APPROVAL FUNCTIONS                 */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Approve or remove the `operator` as an operator for `by`,\n    /// without authorization checks.\n    ///\n    /// Emits a {ApprovalForAll} event.\n    function _setApprovalForAll(address by, address operator, bool isApproved) internal virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Convert to 0 or 1.\n            isApproved := iszero(iszero(isApproved))\n            // Update the `isApproved` for (`by`, `operator`).\n            mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n            mstore(0x14, by)\n            mstore(0x00, operator)\n            sstore(keccak256(0x0c, 0x34), isApproved)\n            // Emit the {ApprovalForAll} event.\n            mstore(0x00, isApproved)\n            let m := shr(96, not(0))\n            log3(0x00, 0x20, _APPROVAL_FOR_ALL_EVENT_SIGNATURE, and(m, by), and(m, operator))\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                INTERNAL TRANSFER FUNCTIONS                 */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Equivalent to `_safeTransfer(address(0), from, to, id, amount, data)`.\n    function _safeTransfer(address from, address to, uint256 id, uint256 amount, bytes memory data)\n        internal\n        virtual\n    {\n        _safeTransfer(address(0), from, to, id, amount, data);\n    }\n\n    /// @dev Transfers `amount` of `id` from `from` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `from` must have at least `amount` of `id`.\n    /// - If `by` is not the zero address, it must be either `from`,\n    ///   or approved to manage the tokens of `from`.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155Received}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferSingle} event.\n    function _safeTransfer(\n        address by,\n        address from,\n        address to,\n        uint256 id,\n        uint256 amount,\n        bytes memory data\n    ) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, to, _single(id), _single(amount), data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let from_ := shl(96, from)\n            let to_ := shl(96, to)\n            // Revert if `to` is the zero address.\n            if iszero(to_) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, from_))\n            // If `by` is not the zero address, and not equal to `from`,\n            // check if it is approved to manage all the tokens of `from`.\n            let by_ := shl(96, by)\n            if iszero(or(iszero(by_), eq(by_, from_))) {\n                mstore(0x00, by)\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Subtract and store the updated balance of `from`.\n            {\n                mstore(0x00, id)\n                let fromBalanceSlot := keccak256(0x00, 0x40)\n                let fromBalance := sload(fromBalanceSlot)\n                if gt(amount, fromBalance) {\n                    mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(fromBalanceSlot, sub(fromBalance, amount))\n            }\n            // Increase and store the updated balance of `to`.\n            {\n                mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, to_))\n                let toBalanceSlot := keccak256(0x00, 0x40)\n                let toBalanceBefore := sload(toBalanceSlot)\n                let toBalanceAfter := add(toBalanceBefore, amount)\n                if lt(toBalanceAfter, toBalanceBefore) {\n                    mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(toBalanceSlot, toBalanceAfter)\n            }\n            // Emit a {TransferSingle} event.\n            mstore(0x20, amount)\n            // forgefmt: disable-next-line\n            log4(0x00, 0x40, _TRANSFER_SINGLE_EVENT_SIGNATURE, caller(), shr(96, from_), shr(96, to_))\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, to, _single(id), _single(amount), data);\n        }\n        if (_hasCode(to)) _checkOnERC1155Received(from, to, id, amount, data);\n    }\n\n    /// @dev Equivalent to `_safeBatchTransfer(address(0), from, to, ids, amounts, data)`.\n    function _safeBatchTransfer(\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {\n        _safeBatchTransfer(address(0), from, to, ids, amounts, data);\n    }\n\n    /// @dev Transfers `amounts` of `ids` from `from` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `ids` and `amounts` must have the same length.\n    /// - `from` must have at least `amounts` of `ids`.\n    /// - If `by` is not the zero address, it must be either `from`,\n    ///   or approved to manage the tokens of `from`.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155BatchReceived}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferBatch} event.\n    function _safeBatchTransfer(\n        address by,\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, to, ids, amounts, data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(mload(ids), mload(amounts))) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            let from_ := shl(96, from)\n            let to_ := shl(96, to)\n            // Revert if `to` is the zero address.\n            if iszero(to_) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            let fromSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, from_)\n            let toSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, to_)\n            mstore(0x20, fromSlotSeed)\n            // If `by` is not the zero address, and not equal to `from`,\n            // check if it is approved to manage all the tokens of `from`.\n            let by_ := shl(96, by)\n            if iszero(or(iszero(by_), eq(by_, from_))) {\n                mstore(0x00, by)\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Loop through all the `ids` and update the balances.\n            {\n                for { let i := shl(5, mload(ids)) } i { i := sub(i, 0x20) } {\n                    let amount := mload(add(amounts, i))\n                    // Subtract and store the updated balance of `from`.\n                    {\n                        mstore(0x20, fromSlotSeed)\n                        mstore(0x00, mload(add(ids, i)))\n                        let fromBalanceSlot := keccak256(0x00, 0x40)\n                        let fromBalance := sload(fromBalanceSlot)\n                        if gt(amount, fromBalance) {\n                            mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(fromBalanceSlot, sub(fromBalance, amount))\n                    }\n                    // Increase and store the updated balance of `to`.\n                    {\n                        mstore(0x20, toSlotSeed)\n                        let toBalanceSlot := keccak256(0x00, 0x40)\n                        let toBalanceBefore := sload(toBalanceSlot)\n                        let toBalanceAfter := add(toBalanceBefore, amount)\n                        if lt(toBalanceAfter, toBalanceBefore) {\n                            mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(toBalanceSlot, toBalanceAfter)\n                    }\n                }\n            }\n            // Emit a {TransferBatch} event.\n            {\n                let m := mload(0x40)\n                // Copy the `ids`.\n                mstore(m, 0x40)\n                let n := add(0x20, shl(5, mload(ids)))\n                let o := add(m, 0x40)\n                pop(staticcall(gas(), 4, ids, n, o, n))\n                // Copy the `amounts`.\n                mstore(add(m, 0x20), add(0x40, returndatasize()))\n                o := add(o, returndatasize())\n                n := add(0x20, shl(5, mload(amounts)))\n                pop(staticcall(gas(), 4, amounts, n, o, n))\n                n := sub(add(o, returndatasize()), m)\n                // Do the emit.\n                log4(m, n, _TRANSFER_BATCH_EVENT_SIGNATURE, caller(), shr(96, from_), shr(96, to_))\n            }\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, to, ids, amounts, data);\n        }\n        if (_hasCode(to)) _checkOnERC1155BatchReceived(from, to, ids, amounts, data);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    HOOKS FOR OVERRIDING                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Override this function to return true if `_beforeTokenTransfer` is used.\n    /// This is to help the compiler avoid producing dead bytecode.\n    function _useBeforeTokenTransfer() internal view virtual returns (bool) {\n        return false;\n    }\n\n    /// @dev Hook that is called before any token transfer.\n    /// This includes minting and burning, as well as batched variants.\n    ///\n    /// The same hook is called on both single and batched variants.\n    /// For single transfers, the length of the `id` and `amount` arrays are 1.\n    function _beforeTokenTransfer(\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {}\n\n    /// @dev Override this function to return true if `_afterTokenTransfer` is used.\n    /// This is to help the compiler avoid producing dead bytecode.\n    function _useAfterTokenTransfer() internal view virtual returns (bool) {\n        return false;\n    }\n\n    /// @dev Hook that is called after any token transfer.\n    /// This includes minting and burning, as well as batched variants.\n    ///\n    /// The same hook is called on both single and batched variants.\n    /// For single transfers, the length of the `id` and `amount` arrays are 1.\n    function _afterTokenTransfer(\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {}\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      PRIVATE HELPERS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Helper for calling the `_afterTokenTransfer` hook.\n    /// This is to help the compiler avoid producing dead bytecode.\n    function _afterTokenTransferCalldata(\n        address from,\n        address to,\n        uint256[] calldata ids,\n        uint256[] calldata amounts,\n        bytes calldata data\n    ) private {\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, to, ids, amounts, data);\n        }\n    }\n\n    /// @dev Returns if `a` has bytecode of non-zero length.\n    function _hasCode(address a) private view returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := extcodesize(a) // Can handle dirty upper bits.\n        }\n    }\n\n    /// @dev Perform a call to invoke {IERC1155Receiver-onERC1155Received} on `to`.\n    /// Reverts if the target does not support the function correctly.\n    function _checkOnERC1155Received(\n        address from,\n        address to,\n        uint256 id,\n        uint256 amount,\n        bytes memory data\n    ) private {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Prepare the calldata.\n            let m := mload(0x40)\n            // `onERC1155Received(address,address,uint256,uint256,bytes)`.\n            mstore(m, 0xf23a6e61)\n            mstore(add(m, 0x20), caller())\n            mstore(add(m, 0x40), shr(96, shl(96, from)))\n            mstore(add(m, 0x60), id)\n            mstore(add(m, 0x80), amount)\n            mstore(add(m, 0xa0), 0xa0)\n            let n := mload(data)\n            mstore(add(m, 0xc0), n)\n            if n { pop(staticcall(gas(), 4, add(data, 0x20), n, add(m, 0xe0), n)) }\n            // Revert if the call reverts.\n            if iszero(call(gas(), to, 0, add(m, 0x1c), add(0xc4, n), m, 0x20)) {\n                if returndatasize() {\n                    // Bubble up the revert if the call reverts.\n                    returndatacopy(m, 0x00, returndatasize())\n                    revert(m, returndatasize())\n                }\n            }\n            // Load the returndata and compare it with the function selector.\n            if iszero(eq(mload(m), shl(224, 0xf23a6e61))) {\n                mstore(0x00, 0x9c05499b) // `TransferToNonERC1155ReceiverImplementer()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Perform a call to invoke {IERC1155Receiver-onERC1155BatchReceived} on `to`.\n    /// Reverts if the target does not support the function correctly.\n    function _checkOnERC1155BatchReceived(\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) private {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Prepare the calldata.\n            let m := mload(0x40)\n            // `onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)`.\n            mstore(m, 0xbc197c81)\n            mstore(add(m, 0x20), caller())\n            mstore(add(m, 0x40), shr(96, shl(96, from)))\n            // Copy the `ids`.\n            mstore(add(m, 0x60), 0xa0)\n            let n := add(0x20, shl(5, mload(ids)))\n            let o := add(m, 0xc0)\n            pop(staticcall(gas(), 4, ids, n, o, n))\n            // Copy the `amounts`.\n            let s := add(0xa0, returndatasize())\n            mstore(add(m, 0x80), s)\n            o := add(o, returndatasize())\n            n := add(0x20, shl(5, mload(amounts)))\n            pop(staticcall(gas(), 4, amounts, n, o, n))\n            // Copy the `data`.\n            mstore(add(m, 0xa0), add(s, returndatasize()))\n            o := add(o, returndatasize())\n            n := add(0x20, mload(data))\n            pop(staticcall(gas(), 4, data, n, o, n))\n            n := sub(add(o, returndatasize()), add(m, 0x1c))\n            // Revert if the call reverts.\n            if iszero(call(gas(), to, 0, add(m, 0x1c), n, m, 0x20)) {\n                if returndatasize() {\n                    // Bubble up the revert if the call reverts.\n                    returndatacopy(m, 0x00, returndatasize())\n                    revert(m, returndatasize())\n                }\n            }\n            // Load the returndata and compare it with the function selector.\n            if iszero(eq(mload(m), shl(224, 0xbc197c81))) {\n                mstore(0x00, 0x9c05499b) // `TransferToNonERC1155ReceiverImplementer()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Returns `x` in an array with a single element.\n    function _single(uint256 x) private pure returns (uint256[] memory result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := mload(0x40)\n            mstore(0x40, add(result, 0x40))\n            mstore(result, 1)\n            mstore(add(result, 0x20), x)\n        }\n    }\n}\n"},"lib/solady/src/utils/Initializable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Initializable mixin for the upgradeable contracts.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/Initializable.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/proxy/utils/Initializable.sol)\nabstract contract Initializable {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The contract is already initialized.\n    error InvalidInitialization();\n\n    /// @dev The contract is not initializing.\n    error NotInitializing();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Triggered when the contract has been initialized.\n    event Initialized(uint64 version);\n\n    /// @dev `keccak256(bytes(\"Initialized(uint64)\"))`.\n    bytes32 private constant _INITIALIZED_EVENT_SIGNATURE =\n        0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The default initializable slot is given by:\n    /// `bytes32(~uint256(uint32(bytes4(keccak256(\"_INITIALIZABLE_SLOT\")))))`.\n    ///\n    /// Bits Layout:\n    /// - [0]     `initializing`\n    /// - [1..64] `initializedVersion`\n    bytes32 private constant _INITIALIZABLE_SLOT =\n        0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf601132;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                        CONSTRUCTOR                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    constructor() {\n        // Construction time check to ensure that `_initializableSlot()` is not\n        // overridden to zero. Will be optimized away if there is no revert.\n        require(_initializableSlot() != bytes32(0));\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         OPERATIONS                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Override to return a non-zero custom storage slot if required.\n    function _initializableSlot() internal pure virtual returns (bytes32) {\n        return _INITIALIZABLE_SLOT;\n    }\n\n    /// @dev Guards an initializer function so that it can be invoked at most once.\n    ///\n    /// You can guard a function with `onlyInitializing` such that it can be called\n    /// through a function guarded with `initializer`.\n    ///\n    /// This is similar to `reinitializer(1)`, except that in the context of a constructor,\n    /// an `initializer` guarded function can be invoked multiple times.\n    /// This can be useful during testing and is not expected to be used in production.\n    ///\n    /// Emits an {Initialized} event.\n    modifier initializer() virtual {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let i := sload(s)\n            // Set `initializing` to 1, `initializedVersion` to 1.\n            sstore(s, 3)\n            // If `!(initializing == 0 && initializedVersion == 0)`.\n            if i {\n                // If `!(address(this).code.length == 0 && initializedVersion == 1)`.\n                if iszero(lt(extcodesize(address()), eq(shr(1, i), 1))) {\n                    mstore(0x00, 0xf92ee8a9) // `InvalidInitialization()`.\n                    revert(0x1c, 0x04)\n                }\n                s := shl(shl(255, i), s) // Skip initializing if `initializing == 1`.\n            }\n        }\n        _;\n        /// @solidity memory-safe-assembly\n        assembly {\n            if s {\n                // Set `initializing` to 0, `initializedVersion` to 1.\n                sstore(s, 2)\n                // Emit the {Initialized} event.\n                mstore(0x20, 1)\n                log1(0x20, 0x20, _INITIALIZED_EVENT_SIGNATURE)\n            }\n        }\n    }\n\n    /// @dev Guards a reinitializer function so that it can be invoked at most once.\n    ///\n    /// You can guard a function with `onlyInitializing` such that it can be called\n    /// through a function guarded with `reinitializer`.\n    ///\n    /// Emits an {Initialized} event.\n    modifier reinitializer(uint64 version) virtual {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Clean upper bits, and shift left by 1 to make space for the initializing bit.\n            version := shl(1, and(version, 0xffffffffffffffff))\n            let i := sload(s)\n            // If `initializing == 1 || initializedVersion >= version`.\n            if iszero(lt(and(i, 1), lt(i, version))) {\n                mstore(0x00, 0xf92ee8a9) // `InvalidInitialization()`.\n                revert(0x1c, 0x04)\n            }\n            // Set `initializing` to 1, `initializedVersion` to `version`.\n            sstore(s, or(1, version))\n        }\n        _;\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Set `initializing` to 0, `initializedVersion` to `version`.\n            sstore(s, version)\n            // Emit the {Initialized} event.\n            mstore(0x20, shr(1, version))\n            log1(0x20, 0x20, _INITIALIZED_EVENT_SIGNATURE)\n        }\n    }\n\n    /// @dev Guards a function such that it can only be called in the scope\n    /// of a function guarded with `initializer` or `reinitializer`.\n    modifier onlyInitializing() virtual {\n        _checkInitializing();\n        _;\n    }\n\n    /// @dev Reverts if the contract is not initializing.\n    function _checkInitializing() internal view virtual {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(and(1, sload(s))) {\n                mstore(0x00, 0xd7e6bcf8) // `NotInitializing()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Locks any future initializations by setting the initialized version to `2**64 - 1`.\n    ///\n    /// Calling this in the constructor will prevent the contract from being initialized\n    /// or reinitialized. It is recommended to use this to lock implementation contracts\n    /// that are designed to be called through proxies.\n    ///\n    /// Emits an {Initialized} event the first time it is successfully called.\n    function _disableInitializers() internal virtual {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let i := sload(s)\n            if and(i, 1) {\n                mstore(0x00, 0xf92ee8a9) // `InvalidInitialization()`.\n                revert(0x1c, 0x04)\n            }\n            let uint64max := 0xffffffffffffffff\n            if iszero(eq(shr(1, i), uint64max)) {\n                // Set `initializing` to 0, `initializedVersion` to `2**64 - 1`.\n                sstore(s, shl(1, uint64max))\n                // Emit the {Initialized} event.\n                mstore(0x20, uint64max)\n                log1(0x20, 0x20, _INITIALIZED_EVENT_SIGNATURE)\n            }\n        }\n    }\n\n    /// @dev Returns the highest version that has been initialized.\n    function _getInitializedVersion() internal view virtual returns (uint64 version) {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            version := shr(1, sload(s))\n        }\n    }\n\n    /// @dev Returns whether the contract is currently initializing.\n    function _isInitializing() internal view virtual returns (bool result) {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := and(1, sload(s))\n        }\n    }\n}\n"},"lib/solady/src/utils/SafeTransferLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Permit2 operations from (https://github.com/Uniswap/permit2/blob/main/src/libraries/Permit2Lib.sol)\n///\n/// @dev Note:\n/// - For ETH transfers, please use `forceSafeTransferETH` for DoS protection.\nlibrary SafeTransferLib {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The ETH transfer has failed.\n    error ETHTransferFailed();\n\n    /// @dev The ERC20 `transferFrom` has failed.\n    error TransferFromFailed();\n\n    /// @dev The ERC20 `transfer` has failed.\n    error TransferFailed();\n\n    /// @dev The ERC20 `approve` has failed.\n    error ApproveFailed();\n\n    /// @dev The ERC20 `totalSupply` query has failed.\n    error TotalSupplyQueryFailed();\n\n    /// @dev The Permit2 operation has failed.\n    error Permit2Failed();\n\n    /// @dev The Permit2 amount must be less than `2**160 - 1`.\n    error Permit2AmountOverflow();\n\n    /// @dev The Permit2 approve operation has failed.\n    error Permit2ApproveFailed();\n\n    /// @dev The Permit2 lockdown operation has failed.\n    error Permit2LockdownFailed();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Suggested gas stipend for contract receiving ETH that disallows any storage writes.\n    uint256 internal constant GAS_STIPEND_NO_STORAGE_WRITES = 2300;\n\n    /// @dev Suggested gas stipend for contract receiving ETH to perform a few\n    /// storage reads and writes, but low enough to prevent griefing.\n    uint256 internal constant GAS_STIPEND_NO_GRIEF = 100000;\n\n    /// @dev The unique EIP-712 domain separator for the DAI token contract.\n    bytes32 internal constant DAI_DOMAIN_SEPARATOR =\n        0xdbb8cf42e1ecb028be3f3dbc922e1d878b963f411dc388ced501601c60f7c6f7;\n\n    /// @dev The address for the WETH9 contract on Ethereum mainnet.\n    address internal constant WETH9 = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;\n\n    /// @dev The canonical Permit2 address.\n    /// [Github](https://github.com/Uniswap/permit2)\n    /// [Etherscan](https://etherscan.io/address/0x000000000022D473030F116dDEE9F6B43aC78BA3)\n    address internal constant PERMIT2 = 0x000000000022D473030F116dDEE9F6B43aC78BA3;\n\n    /// @dev The canonical address of the `SELFDESTRUCT` ETH mover.\n    /// See: https://gist.github.com/Vectorized/1cb8ad4cf393b1378e08f23f79bd99fa\n    /// [Etherscan](https://etherscan.io/address/0x00000000000073c48c8055bD43D1A53799176f0D)\n    address internal constant ETH_MOVER = 0x00000000000073c48c8055bD43D1A53799176f0D;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       ETH OPERATIONS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // If the ETH transfer MUST succeed with a reasonable gas budget, use the force variants.\n    //\n    // The regular variants:\n    // - Forwards all remaining gas to the target.\n    // - Reverts if the target reverts.\n    // - Reverts if the current contract has insufficient balance.\n    //\n    // The force variants:\n    // - Forwards with an optional gas stipend\n    //   (defaults to `GAS_STIPEND_NO_GRIEF`, which is sufficient for most cases).\n    // - If the target reverts, or if the gas stipend is exhausted,\n    //   creates a temporary contract to force send the ETH via `SELFDESTRUCT`.\n    //   Future compatible with `SENDALL`: https://eips.ethereum.org/EIPS/eip-4758.\n    // - Reverts if the current contract has insufficient balance.\n    //\n    // The try variants:\n    // - Forwards with a mandatory gas stipend.\n    // - Instead of reverting, returns whether the transfer succeeded.\n\n    /// @dev Sends `amount` (in wei) ETH to `to`.\n    function safeTransferETH(address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(call(gas(), to, amount, codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Sends all the ETH in the current contract to `to`.\n    function safeTransferAllETH(address to) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Transfer all the ETH and check if it succeeded or not.\n            if iszero(call(gas(), to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Force sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n    function forceSafeTransferETH(address to, uint256 amount, uint256 gasStipend) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if lt(selfbalance(), amount) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Force sends all the ETH in the current contract to `to`, with a `gasStipend`.\n    function forceSafeTransferAllETH(address to, uint256 gasStipend) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Force sends `amount` (in wei) ETH to `to`, with `GAS_STIPEND_NO_GRIEF`.\n    function forceSafeTransferETH(address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if lt(selfbalance(), amount) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(call(GAS_STIPEND_NO_GRIEF, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Force sends all the ETH in the current contract to `to`, with `GAS_STIPEND_NO_GRIEF`.\n    function forceSafeTransferAllETH(address to) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // forgefmt: disable-next-item\n            if iszero(call(GAS_STIPEND_NO_GRIEF, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n    function trySafeTransferETH(address to, uint256 amount, uint256 gasStipend)\n        internal\n        returns (bool success)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            success := call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)\n        }\n    }\n\n    /// @dev Sends all the ETH in the current contract to `to`, with a `gasStipend`.\n    function trySafeTransferAllETH(address to, uint256 gasStipend)\n        internal\n        returns (bool success)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            success := call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)\n        }\n    }\n\n    /// @dev Force transfers ETH to `to`, without triggering the fallback (if any).\n    /// This method attempts to use a separate contract to send via `SELFDESTRUCT`,\n    /// and upon failure, deploys a minimal vault to accrue the ETH.\n    function safeMoveETH(address to, uint256 amount) internal returns (address vault) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            to := shr(96, shl(96, to)) // Clean upper 96 bits.\n            for { let mover := ETH_MOVER } iszero(eq(to, address())) {} {\n                let selfBalanceBefore := selfbalance()\n                if or(lt(selfBalanceBefore, amount), eq(to, mover)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                if extcodesize(mover) {\n                    let balanceBefore := balance(to) // Check via delta, in case `SELFDESTRUCT` is bricked.\n                    mstore(0x00, to)\n                    pop(call(gas(), mover, amount, 0x00, 0x20, codesize(), 0x00))\n                    // If `address(to).balance >= amount + balanceBefore`, skip vault workflow.\n                    if iszero(lt(balance(to), add(amount, balanceBefore))) { break }\n                    // Just in case `SELFDESTRUCT` is changed to not revert and do nothing.\n                    if lt(selfBalanceBefore, selfbalance()) { invalid() }\n                }\n                let m := mload(0x40)\n                // If the mover is missing or bricked, deploy a minimal vault\n                // that withdraws all ETH to `to` when being called only by `to`.\n                // forgefmt: disable-next-item\n                mstore(add(m, 0x20), 0x33146025575b600160005260206000f35b3d3d3d3d47335af1601a5760003dfd)\n                mstore(m, or(to, shl(160, 0x6035600b3d3960353df3fe73)))\n                // Compute and store the bytecode hash.\n                mstore8(0x00, 0xff) // Write the prefix.\n                mstore(0x35, keccak256(m, 0x40))\n                mstore(0x01, shl(96, address())) // Deployer.\n                mstore(0x15, 0) // Salt.\n                vault := keccak256(0x00, 0x55)\n                pop(call(gas(), vault, amount, codesize(), 0x00, codesize(), 0x00))\n                // The vault returns a single word on success. Failure reverts with empty data.\n                if iszero(returndatasize()) {\n                    if iszero(create2(0, m, 0x40, 0)) { revert(codesize(), codesize()) } // For gas estimation.\n                }\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      ERC20 OPERATIONS                      */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n    /// Reverts upon failure.\n    ///\n    /// The `from` account must have at least `amount` approved for\n    /// the current contract to manage.\n    function safeTransferFrom(address token, address from, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, amount) // Store the `amount` argument.\n            mstore(0x40, to) // Store the `to` argument.\n            mstore(0x2c, shl(96, from)) // Store the `from` argument.\n            mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n            let success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x60, 0) // Restore the zero slot to zero.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n    ///\n    /// The `from` account must have at least `amount` approved for the current contract to manage.\n    function trySafeTransferFrom(address token, address from, address to, uint256 amount)\n        internal\n        returns (bool success)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, amount) // Store the `amount` argument.\n            mstore(0x40, to) // Store the `to` argument.\n            mstore(0x2c, shl(96, from)) // Store the `from` argument.\n            mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n            success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                success := lt(or(iszero(extcodesize(token)), returndatasize()), success)\n            }\n            mstore(0x60, 0) // Restore the zero slot to zero.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Sends all of ERC20 `token` from `from` to `to`.\n    /// Reverts upon failure.\n    ///\n    /// The `from` account must have their entire balance approved for the current contract to manage.\n    function safeTransferAllFrom(address token, address from, address to)\n        internal\n        returns (uint256 amount)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x40, to) // Store the `to` argument.\n            mstore(0x2c, shl(96, from)) // Store the `from` argument.\n            mstore(0x0c, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n            // Read the balance, reverting upon failure.\n            if iszero(\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                    staticcall(gas(), token, 0x1c, 0x24, 0x60, 0x20)\n                )\n            ) {\n                mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x00, 0x23b872dd) // `transferFrom(address,address,uint256)`.\n            amount := mload(0x60) // The `amount` is already at 0x60. We'll need to return it.\n            // Perform the transfer, reverting upon failure.\n            let success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x60, 0) // Restore the zero slot to zero.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from the current contract to `to`.\n    /// Reverts upon failure.\n    function safeTransfer(address token, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, to) // Store the `to` argument.\n            mstore(0x34, amount) // Store the `amount` argument.\n            mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n            // Perform the transfer, reverting upon failure.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Sends all of ERC20 `token` from the current contract to `to`.\n    /// Reverts upon failure.\n    function safeTransferAll(address token, address to) internal returns (uint256 amount) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.\n            mstore(0x20, address()) // Store the address of the current contract.\n            // Read the balance, reverting upon failure.\n            if iszero(\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                    staticcall(gas(), token, 0x1c, 0x24, 0x34, 0x20)\n                )\n            ) {\n                mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x14, to) // Store the `to` argument.\n            amount := mload(0x34) // The `amount` is already at 0x34. We'll need to return it.\n            mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n            // Perform the transfer, reverting upon failure.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n    /// Reverts upon failure.\n    function safeApprove(address token, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, to) // Store the `to` argument.\n            mstore(0x34, amount) // Store the `amount` argument.\n            mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n    /// If the initial attempt to approve fails, attempts to reset the approved amount to zero,\n    /// then retries the approval again (some tokens, e.g. USDT, requires this).\n    /// Reverts upon failure.\n    function safeApproveWithRetry(address token, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, to) // Store the `to` argument.\n            mstore(0x34, amount) // Store the `amount` argument.\n            mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n            // Perform the approval, retrying upon failure.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x34, 0) // Store 0 for the `amount`.\n                    mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n                    pop(call(gas(), token, 0, 0x10, 0x44, codesize(), 0x00)) // Reset the approval.\n                    mstore(0x34, amount) // Store back the original `amount`.\n                    // Retry the approval, reverting upon failure.\n                    success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n                    if iszero(and(eq(mload(0x00), 1), success)) {\n                        // Check the `extcodesize` again just in case the token selfdestructs lol.\n                        if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                            mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n                            revert(0x1c, 0x04)\n                        }\n                    }\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Returns the amount of ERC20 `token` owned by `account`.\n    /// Returns zero if the `token` does not exist.\n    function balanceOf(address token, address account) internal view returns (uint256 amount) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, account) // Store the `account` argument.\n            mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n            amount :=\n                mul( // The arguments of `mul` are evaluated from right to left.\n                    mload(0x20),\n                    and( // The arguments of `and` are evaluated from right to left.\n                        gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                        staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)\n                    )\n                )\n        }\n    }\n\n    /// @dev Performs a `token.balanceOf(account)` check.\n    /// `implemented` denotes whether the `token` does not implement `balanceOf`.\n    /// `amount` is zero if the `token` does not implement `balanceOf`.\n    function checkBalanceOf(address token, address account)\n        internal\n        view\n        returns (bool implemented, uint256 amount)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, account) // Store the `account` argument.\n            mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n            implemented :=\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                    staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)\n                )\n            amount := mul(mload(0x20), implemented)\n        }\n    }\n\n    /// @dev Returns the total supply of the `token`.\n    /// Reverts if the token does not exist or does not implement `totalSupply()`.\n    function totalSupply(address token) internal view returns (uint256 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x18160ddd) // `totalSupply()`.\n            if iszero(\n                and(gt(returndatasize(), 0x1f), staticcall(gas(), token, 0x1c, 0x04, 0x00, 0x20))\n            ) {\n                mstore(0x00, 0x54cd9435) // `TotalSupplyQueryFailed()`.\n                revert(0x1c, 0x04)\n            }\n            result := mload(0x00)\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n    /// If the initial attempt fails, try to use Permit2 to transfer the token.\n    /// Reverts upon failure.\n    ///\n    /// The `from` account must have at least `amount` approved for the current contract to manage.\n    function safeTransferFrom2(address token, address from, address to, uint256 amount) internal {\n        if (!trySafeTransferFrom(token, from, to, amount)) {\n            permit2TransferFrom(token, from, to, amount);\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to` via Permit2.\n    /// Reverts upon failure.\n    function permit2TransferFrom(address token, address from, address to, uint256 amount)\n        internal\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            mstore(add(m, 0x74), shr(96, shl(96, token)))\n            mstore(add(m, 0x54), amount)\n            mstore(add(m, 0x34), to)\n            mstore(add(m, 0x20), shl(96, from))\n            // `transferFrom(address,address,uint160,address)`.\n            mstore(m, 0x36c78516000000000000000000000000)\n            let p := PERMIT2\n            let exists := eq(chainid(), 1)\n            if iszero(exists) { exists := iszero(iszero(extcodesize(p))) }\n            if iszero(\n                and(\n                    call(gas(), p, 0, add(m, 0x10), 0x84, codesize(), 0x00),\n                    lt(iszero(extcodesize(token)), exists) // Token has code and Permit2 exists.\n                )\n            ) {\n                mstore(0x00, 0x7939f4248757f0fd) // `TransferFromFailed()` or `Permit2AmountOverflow()`.\n                revert(add(0x18, shl(2, iszero(iszero(shr(160, amount))))), 0x04)\n            }\n        }\n    }\n\n    /// @dev Permit a user to spend a given amount of\n    /// another user's tokens via native EIP-2612 permit if possible, falling\n    /// back to Permit2 if native permit fails or is not implemented on the token.\n    function permit2(\n        address token,\n        address owner,\n        address spender,\n        uint256 amount,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        bool success;\n        /// @solidity memory-safe-assembly\n        assembly {\n            for {} shl(96, xor(token, WETH9)) {} {\n                mstore(0x00, 0x3644e515) // `DOMAIN_SEPARATOR()`.\n                if iszero(\n                    and( // The arguments of `and` are evaluated from right to left.\n                        lt(iszero(mload(0x00)), eq(returndatasize(), 0x20)), // Returns 1 non-zero word.\n                        // Gas stipend to limit gas burn for tokens that don't refund gas when\n                        // an non-existing function is called. 5K should be enough for a SLOAD.\n                        staticcall(5000, token, 0x1c, 0x04, 0x00, 0x20)\n                    )\n                ) { break }\n                // After here, we can be sure that token is a contract.\n                let m := mload(0x40)\n                mstore(add(m, 0x34), spender)\n                mstore(add(m, 0x20), shl(96, owner))\n                mstore(add(m, 0x74), deadline)\n                if eq(mload(0x00), DAI_DOMAIN_SEPARATOR) {\n                    mstore(0x14, owner)\n                    mstore(0x00, 0x7ecebe00000000000000000000000000) // `nonces(address)`.\n                    mstore(\n                        add(m, 0x94),\n                        lt(iszero(amount), staticcall(gas(), token, 0x10, 0x24, add(m, 0x54), 0x20))\n                    )\n                    mstore(m, 0x8fcbaf0c000000000000000000000000) // `IDAIPermit.permit`.\n                    // `nonces` is already at `add(m, 0x54)`.\n                    // `amount != 0` is already stored at `add(m, 0x94)`.\n                    mstore(add(m, 0xb4), and(0xff, v))\n                    mstore(add(m, 0xd4), r)\n                    mstore(add(m, 0xf4), s)\n                    success := call(gas(), token, 0, add(m, 0x10), 0x104, codesize(), 0x00)\n                    break\n                }\n                mstore(m, 0xd505accf000000000000000000000000) // `IERC20Permit.permit`.\n                mstore(add(m, 0x54), amount)\n                mstore(add(m, 0x94), and(0xff, v))\n                mstore(add(m, 0xb4), r)\n                mstore(add(m, 0xd4), s)\n                success := call(gas(), token, 0, add(m, 0x10), 0xe4, codesize(), 0x00)\n                break\n            }\n        }\n        if (!success) simplePermit2(token, owner, spender, amount, deadline, v, r, s);\n    }\n\n    /// @dev Simple permit on the Permit2 contract.\n    function simplePermit2(\n        address token,\n        address owner,\n        address spender,\n        uint256 amount,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            mstore(m, 0x927da105) // `allowance(address,address,address)`.\n            {\n                let addressMask := shr(96, not(0))\n                mstore(add(m, 0x20), and(addressMask, owner))\n                mstore(add(m, 0x40), and(addressMask, token))\n                mstore(add(m, 0x60), and(addressMask, spender))\n                mstore(add(m, 0xc0), and(addressMask, spender))\n            }\n            let p := mul(PERMIT2, iszero(shr(160, amount)))\n            if iszero(\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x5f), // Returns 3 words: `amount`, `expiration`, `nonce`.\n                    staticcall(gas(), p, add(m, 0x1c), 0x64, add(m, 0x60), 0x60)\n                )\n            ) {\n                mstore(0x00, 0x6b836e6b8757f0fd) // `Permit2Failed()` or `Permit2AmountOverflow()`.\n                revert(add(0x18, shl(2, iszero(p))), 0x04)\n            }\n            mstore(m, 0x2b67b570) // `Permit2.permit` (PermitSingle variant).\n            // `owner` is already `add(m, 0x20)`.\n            // `token` is already at `add(m, 0x40)`.\n            mstore(add(m, 0x60), amount)\n            mstore(add(m, 0x80), 0xffffffffffff) // `expiration = type(uint48).max`.\n            // `nonce` is already at `add(m, 0xa0)`.\n            // `spender` is already at `add(m, 0xc0)`.\n            mstore(add(m, 0xe0), deadline)\n            mstore(add(m, 0x100), 0x100) // `signature` offset.\n            mstore(add(m, 0x120), 0x41) // `signature` length.\n            mstore(add(m, 0x140), r)\n            mstore(add(m, 0x160), s)\n            mstore(add(m, 0x180), shl(248, v))\n            if iszero( // Revert if token does not have code, or if the call fails.\n            mul(extcodesize(token), call(gas(), p, 0, add(m, 0x1c), 0x184, codesize(), 0x00))) {\n                mstore(0x00, 0x6b836e6b) // `Permit2Failed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Approves `spender` to spend `amount` of `token` for `address(this)`.\n    function permit2Approve(address token, address spender, uint160 amount, uint48 expiration)\n        internal\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let addressMask := shr(96, not(0))\n            let m := mload(0x40)\n            mstore(m, 0x87517c45) // `approve(address,address,uint160,uint48)`.\n            mstore(add(m, 0x20), and(addressMask, token))\n            mstore(add(m, 0x40), and(addressMask, spender))\n            mstore(add(m, 0x60), and(addressMask, amount))\n            mstore(add(m, 0x80), and(0xffffffffffff, expiration))\n            if iszero(call(gas(), PERMIT2, 0, add(m, 0x1c), 0xa0, codesize(), 0x00)) {\n                mstore(0x00, 0x324f14ae) // `Permit2ApproveFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Revokes an approval for `token` and `spender` for `address(this)`.\n    function permit2Lockdown(address token, address spender) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            mstore(m, 0xcc53287f) // `Permit2.lockdown`.\n            mstore(add(m, 0x20), 0x20) // Offset of the `approvals`.\n            mstore(add(m, 0x40), 1) // `approvals.length`.\n            mstore(add(m, 0x60), shr(96, shl(96, token)))\n            mstore(add(m, 0x80), shr(96, shl(96, spender)))\n            if iszero(call(gas(), PERMIT2, 0, add(m, 0x1c), 0xa0, codesize(), 0x00)) {\n                mstore(0x00, 0x96b3de23) // `Permit2LockdownFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n}\n"},"src/DepositWalletBeacon.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity 0.8.34;\n\nimport {IDepositWallet} from \"@deposit-wallet/src/interfaces/IDepositWallet.sol\";\n\n/// @title DepositWalletBeacon\n/// @author Polymarket\n/// @notice Implementation pointer for every {DepositWallet} beacon proxy. Owner is expected to be\n///         a timelock.\n///\n/// @dev Note:\n/// - The implementation is intended to be used with ERC1967 beacon proxies.\n///   See: `LibClone.deployDeterministicERC1967BeaconProxy` and related functions.\n/// - For gas efficiency, the ownership functionality is baked into this contract.\n///\n/// @dev Lifted near-verbatim from Solady's UpgradeableBeacon at commit\n///      `acd959aa4bd04720d640bf4e6a5c71037510cc4b`\n///      (https://github.com/Vectorized/solady/blob/acd959aa4bd04720d640bf4e6a5c71037510cc4b/src/utils/UpgradeableBeacon.sol).\n/// Solady's storage slots, errors, events, assembly, and modifier are preserved unchanged\n///      so auditors can diff against upstream. Polymarket-specific deltas, all marked inline:\n///        1. {_setImplementation} runs Solady's verbatim assembly, then probes\n///           `walletInterfaceId()` on the candidate. A failed probe reverts the surrounding\n///           transaction, unwinding the SSTORE and the {Upgraded} log emitted by the assembly.\n///        2. {implementation} adds per-`msg.sender` dispatch — opted-out callers receive their\n///           pinned implementation; everyone else reads Solady's slot value.\n///        3. New {optOut} / {optIn} self-call entrypoints update `pinnedImplementation`.\n///        4. New {defaultImplementation} view exposes the slot value bypassing per-caller\n///           dispatch (for indexers and the timelock UI).\n///      The `pinnedImplementation` mapping lives at Solidity slot 0; Solady's `uint72` slot\n///      constants live in a disjoint namespace, so there is no collision.\ncontract DepositWalletBeacon {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The new implementation is not a deployed contract.\n    error NewImplementationHasNoCode();\n\n    /// @dev The caller is not authorized to perform the operation.\n    error Unauthorized();\n\n    /// @dev The `newOwner` cannot be the zero address.\n    error NewOwnerIsZeroAddress();\n\n    /// @dev Polymarket addition. The candidate implementation does not return the expected\n    ///      `walletInterfaceId()` magic.\n    error InvalidWalletInterfaceId();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Emitted when the proxy's implementation is upgraded.\n    event Upgraded(address indexed implementation);\n\n    /// @dev The ownership is transferred from `oldOwner` to `newOwner`.\n    /// This event is intentionally kept the same as OpenZeppelin's Ownable to be\n    /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),\n    /// despite it not being as lightweight as a single argument event.\n    event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n    /// @dev Polymarket addition. Emitted when a wallet opts out of beacon upgrades.\n    event OptedOut(address indexed wallet, address indexed pinnedImpl);\n\n    /// @dev Polymarket addition. Emitted when a wallet rejoins the upgrade cohort. The second\n    ///      indexed arg is the default implementation the wallet will follow on its next call.\n    event OptedIn(address indexed wallet, address indexed currentImpl);\n\n    /// @dev `keccak256(bytes(\"Upgraded(address)\"))`.\n    uint256 private constant _UPGRADED_EVENT_SIGNATURE =\n        0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b;\n\n    /// @dev `keccak256(bytes(\"OwnershipTransferred(address,address)\"))`.\n    uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =\n        0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The storage slot for the implementation address.\n    /// `uint72(bytes9(keccak256(\"_UPGRADEABLE_BEACON_IMPLEMENTATION_SLOT\")))`.\n    uint256 internal constant _UPGRADEABLE_BEACON_IMPLEMENTATION_SLOT = 0x911c5a209f08d5ec5e;\n\n    /// @dev The storage slot for the owner address.\n    /// `uint72(bytes9(keccak256(\"_UPGRADEABLE_BEACON_OWNER_SLOT\")))`.\n    uint256 internal constant _UPGRADEABLE_BEACON_OWNER_SLOT = 0x4343a0dc92ed22dbfc;\n\n    /// @dev Polymarket addition. Magic returned by every accepted implementation.\n    bytes32 public constant EXPECTED_WALLET_INTERFACE_ID = keccak256(\"Polymarket.DepositWallet\");\n\n    /// @dev Polymarket addition. Per-wallet pinned implementation. Zero = follow default.\n    ///      Lives at Solidity slot 0; disjoint from Solady's `uint72` slot constants.\n    mapping(address wallet => address pinnedImpl) public pinnedImplementation;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                        CONSTRUCTOR                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    constructor(address initialOwner, address initialImplementation) payable {\n        // We don't need to check if `initialOwner` is the zero address here,\n        // as some use cases may not want the beacon to be owned.\n        _setOwner(initialOwner);\n        _setImplementation(initialImplementation);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*               UPGRADEABLE BEACON OPERATIONS                */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Sets the implementation directly without authorization guard.\n    /// Polymarket modification: probe `walletInterfaceId()` after Solady's verbatim assembly.\n    /// The probe runs on the candidate address; a mismatch reverts and unwinds the SSTORE +\n    /// {Upgraded} log emitted by the assembly.\n    function _setImplementation(address newImplementation) internal virtual {\n        assembly (\"memory-safe\") {\n            newImplementation := shr(96, shl(96, newImplementation)) // Clean the upper 96 bits.\n            if iszero(extcodesize(newImplementation)) {\n                mstore(0x00, 0x6d3e283b) // `NewImplementationHasNoCode()`.\n                revert(0x1c, 0x04)\n            }\n            // Store the implementation.\n            sstore(_UPGRADEABLE_BEACON_IMPLEMENTATION_SLOT, newImplementation)\n            // Emit the {Upgraded} event.\n            log2(codesize(), 0x00, _UPGRADED_EVENT_SIGNATURE, newImplementation)\n        }\n        _checkWalletInterfaceId(newImplementation);\n    }\n\n    /// @dev Sets the owner directly without authorization guard.\n    function _setOwner(address newOwner) internal virtual {\n        assembly (\"memory-safe\") {\n            newOwner := shr(96, shl(96, newOwner)) // Clean the upper 96 bits.\n            let oldOwner := sload(_UPGRADEABLE_BEACON_OWNER_SLOT)\n            sstore(_UPGRADEABLE_BEACON_OWNER_SLOT, newOwner) // Store the owner.\n            // Emit the {OwnershipTransferred} event.\n            log3(codesize(), 0x00, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, oldOwner, newOwner)\n        }\n    }\n\n    /// @dev Returns the implementation stored in the beacon.\n    /// See: https://eips.ethereum.org/EIPS/eip-1967#beacon-contract-address\n    /// Polymarket modification: per-`msg.sender` dispatch — opted-out callers receive their\n    /// pinned implementation; everyone else reads Solady's slot value.\n    function implementation() public view returns (address result) {\n        address pinned = pinnedImplementation[msg.sender];\n        if (pinned != address(0)) return pinned;\n        assembly (\"memory-safe\") {\n            result := sload(_UPGRADEABLE_BEACON_IMPLEMENTATION_SLOT)\n        }\n    }\n\n    /// @dev Returns the owner of the beacon.\n    function owner() public view returns (address result) {\n        assembly (\"memory-safe\") {\n            result := sload(_UPGRADEABLE_BEACON_OWNER_SLOT)\n        }\n    }\n\n    /// @dev Allows the owner to upgrade the implementation.\n    function upgradeTo(address newImplementation) public virtual onlyOwner {\n        _setImplementation(newImplementation);\n    }\n\n    /// @dev Allows the owner to transfer the ownership to `newOwner`.\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        assembly (\"memory-safe\") {\n            if iszero(shl(96, newOwner)) {\n                mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n        }\n        _setOwner(newOwner);\n    }\n\n    /// @dev Allows the owner to renounce their ownership.\n    function renounceOwnership() public virtual onlyOwner {\n        _setOwner(address(0));\n    }\n\n    /// @dev Throws if the sender is not the owner.\n    function _checkOwner() internal view virtual {\n        assembly (\"memory-safe\") {\n            // If the caller is not the stored owner, revert.\n            if iszero(eq(caller(), sload(_UPGRADEABLE_BEACON_OWNER_SLOT))) {\n                mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         MODIFIERS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Marks a function as only callable by the owner.\n    modifier onlyOwner() virtual {\n        _checkOwner();\n        _;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    POLYMARKET ADDITIONS                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @notice Returns the default implementation, ignoring per-caller dispatch.\n    /// @dev Indexers and the timelock UI should read this rather than {implementation} to\n    ///      retrieve the global default regardless of the caller.\n    function defaultImplementation() public view returns (address result) {\n        assembly (\"memory-safe\") {\n            result := sload(_UPGRADEABLE_BEACON_IMPLEMENTATION_SLOT)\n        }\n    }\n\n    /// @notice Opts the calling wallet out of beacon upgrades.\n    /// @dev Snapshots the current default implementation into `pinnedImplementation[msg.sender]`.\n    ///      Subsequent calls from the wallet route to that snapshot regardless of further\n    ///      `upgradeTo` calls. NOT idempotent: if the default implementation has changed since\n    ///      the last `optOut`, calling again bumps the pin to the new default without requiring\n    ///      an intermediate `optIn`. This is intentional — it lets wallets adopt a newer version\n    ///      while staying opted out of automatic upgrades.\n    function optOut() external {\n        address current = defaultImplementation();\n        pinnedImplementation[msg.sender] = current;\n        emit OptedOut(msg.sender, current);\n    }\n\n    /// @notice Clears the calling wallet's pin and rejoins the upgrade cohort.\n    function optIn() external {\n        delete pinnedImplementation[msg.sender];\n        emit OptedIn(msg.sender, defaultImplementation());\n    }\n\n    /// @dev Reverts if `_implementation` does not return {EXPECTED_WALLET_INTERFACE_ID} from\n    ///      `walletInterfaceId()`. Also catches no-code addresses (staticcall to empty returns\n    ///      no data and fails the length check).\n    function _checkWalletInterfaceId(address _implementation) internal view {\n        (bool ok, bytes memory ret) = _implementation.staticcall(\n            abi.encodeWithSelector(IDepositWallet.walletInterfaceId.selector)\n        );\n        if (!(ok && ret.length == 32 && abi.decode(ret, (bytes32)) == EXPECTED_WALLET_INTERFACE_ID))\n        {\n            revert InvalidWalletInterfaceId();\n        }\n    }\n}\n"},"src/DepositWalletFactory.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity 0.8.34;\n\nimport {OwnableRoles} from \"@solady/src/auth/OwnableRoles.sol\";\nimport {Initializable} from \"@solady/src/utils/Initializable.sol\";\nimport {LibClone} from \"@solady/src/utils/LibClone.sol\";\nimport {UUPSUpgradeable} from \"@solady/src/utils/UUPSUpgradeable.sol\";\n\nimport {Errors} from \"@deposit-wallet/src/Errors.sol\";\nimport {IDepositWallet, Batch} from \"@deposit-wallet/src/interfaces/IDepositWallet.sol\";\n\n/// @notice Minimal interface for resolving a beacon's current implementation.\ninterface IBeacon {\n    /// @notice Returns the implementation the beacon currently resolves to.\n    function implementation() external view returns (address);\n}\n\n/// @title DepositWalletFactoryErrors\n/// @author Polymarket\n/// @notice Custom errors for {DepositWalletFactory}.\nabstract contract DepositWalletFactoryErrors {\n    /// @notice Thrown when the caller does not have the admin role.\n    error OnlyAdmin();\n\n    /// @notice Thrown when the caller does not have the operator role.\n    error OnlyOperator();\n\n    /// @notice Thrown when the caller does not have the legacy-deployer role.\n    error OnlyLegacyDeployer();\n\n    /// @notice Thrown when paired input arrays have mismatched lengths.\n    error ArrayLengthMismatch();\n\n    /// @notice Thrown when an implementation has not been authorized.\n    /// @dev Deprecated post-migration; only thrown by the legacy {setImplementation} surface.\n    error ImplementationNotAuthorized();\n\n    /// @notice Thrown when the provided timelock delay is zero or exceeds the maximum.\n    error InvalidTimelockDelay();\n\n    /// @notice Thrown when a deploy target (the beacon, its resolved implementation, or the\n    ///         legacy implementation) has no code.\n    /// @dev Fail-closed guard: deploying a proxy whose implementation/beacon is code-less would\n    ///      let `initialize` silently succeed as a delegatecall to an empty account, minting an\n    ///      ownerless wallet that anyone could later seize.\n    error ImplementationNotDeployed();\n}\n\n/// @title DepositWalletFactoryEvents\n/// @author Polymarket\n/// @notice Events emitted by {DepositWalletFactory}.\nabstract contract DepositWalletFactoryEvents {\n    /// @notice Emitted when a wallet implementation is added to the authorized set.\n    /// @dev Deprecated post-migration; only emitted while the legacy upgrade surface is in use\n    ///      (e.g., authorizing {BeaconForwarder}).\n    /// @param implementation The address of the authorized implementation.\n    event ImplementationAuthorized(address indexed implementation);\n\n    /// @notice Emitted when the default wallet implementation is updated.\n    /// @dev Deprecated; the legacy slot-0 `implementation` pointer is no longer consulted by\n    ///      {DepositWalletFactory.deploy}.\n    /// @param Implementation The address of the new default implementation.\n    event ImplementationSet(address Implementation);\n\n    /// @notice Emitted when a wallet implementation is removed from the authorized set.\n    /// @dev Deprecated post-migration; only emitted while the legacy upgrade surface is in use.\n    /// @param implementation The address of the unauthorized implementation.\n    event ImplementationUnauthorized(address indexed implementation);\n\n    /// @notice Emitted when the timelock delay is updated.\n    /// @param timelockDelay The new timelock delay in seconds.\n    event TimelockDelaySet(uint256 timelockDelay);\n\n    /// @notice Emitted when a new deposit wallet is deployed.\n    /// @param wallet The address of the newly deployed wallet proxy.\n    /// @param owner The initial owner of the wallet.\n    /// @param id The unique identifier assigned to the wallet.\n    /// @param implementation The address embedded in the proxy: the beacon for beacon-shape\n    ///                       wallets, or the legacy implementation for legacy-shape wallets.\n    event WalletDeployed(\n        address indexed wallet, address indexed owner, bytes32 indexed id, address implementation\n    );\n}\n\n/// @title DepositWalletFactory\n/// @author Polymarket\n/// @notice Factory contract for deploying and managing DepositWallets. Deploys ERC-1967\n///         beacon proxies going forward, and can also deploy legacy ERC-1967 (UUPS-shaped)\n///         wallets at the exact deterministic addresses the pre-beacon factory used.\n/// @dev Uses a four-tier role model:\n///      - **Owner**: can add/remove admins, manage implementations, and authorize UUPS upgrades\n///                   of the factory itself.\n///      - **Admin** (ROLE_0): can add/remove operators and legacy deployers, and configure the\n///                   timelock delay.\n///      - **Operator** (ROLE_1): can deploy beacon-shape wallets and proxy batch executions.\n///      - **Legacy deployer** (ROLE_2): can deploy legacy-shape wallets via {deployLegacy}.\n///\n///      Two deploy paths, fed identical `args`/`salt`:\n///      - {deploy} produces an ERC-1967 beacon proxy bound to {BEACON}.\n///      - {deployLegacy} produces a plain ERC-1967 proxy embedding {LEGACY_IMPL}. This reproduces\n///        the exact addresses the pre-beacon factory derived, because the address depends only on\n///        (this factory's address, the embedded implementation, the Solady proxy template, the\n///        id) — never on this factory's own bytecode. It exists for ids whose legacy address has\n///        already been handed out, and for cross-chain recovery: deployed at the canonical\n///        factory address on another chain, it mints a wallet at the identical address a user's\n///        Polygon deposit wallet occupies.\n///\n///      Both paths fail closed: they revert unless the embedded implementation/beacon already\n///      holds code, so a misordered rollout cannot mint ownerless, seizable wallets.\n///\n///      Storage slots 0/1/2 (`implementation`, `timelockDelay`, `authorizedImplementation`) are\n///      preserved from prior versions so this contract can be installed as a UUPS upgrade on the\n///      live factory proxy without corrupting state.\ncontract DepositWalletFactory is\n    OwnableRoles,\n    Initializable,\n    UUPSUpgradeable,\n    DepositWalletFactoryErrors,\n    DepositWalletFactoryEvents\n{\n    /*--------------------------------------------------------------\n                                 STATE\n    --------------------------------------------------------------*/\n\n    /// @notice Legacy default wallet implementation pointer.\n    /// @dev Deprecated; not consulted by {deploy} or {deployLegacy}. Retained only to preserve\n    ///      slot 0 of the live factory proxy so this contract can be installed via UUPS upgrade\n    ///      in place.\n    address public implementation;\n\n    /// @notice The delay in seconds that must elapse after pausing before the owner can\n    ///         execute paused-only operations on a wallet.\n    uint256 public timelockDelay;\n\n    /// @notice Tracks which implementation addresses are authorized for legacy UUPS upgrades.\n    /// @dev Legacy-shape wallets gate their `upgrade` self-call on this mapping. Used during the\n    ///      migration window to authorize {BeaconForwarder} so existing UUPS wallets can opt into\n    ///      the beacon. Will be deprecated after the migration window closes.\n    mapping(address => bool) public authorizedImplementation;\n\n    /*--------------------------------------------------------------\n                              CONSTANTS\n    --------------------------------------------------------------*/\n\n    /// @notice The maximum allowed timelock delay (7 days).\n    uint256 public constant MAX_TIMELOCK_DELAY = 7 days;\n\n    /*--------------------------------------------------------------\n                              IMMUTABLES\n    --------------------------------------------------------------*/\n\n    /// @notice The beacon that resolves the implementation for beacon-shape wallets.\n    address public immutable BEACON;\n\n    /// @notice The implementation embedded in legacy-shape (ERC-1967, UUPS) wallets.\n    /// @dev Set to the live legacy DepositWallet implementation so {deployLegacy} reproduces the\n    ///      exact wallet addresses the pre-beacon factory deployed.\n    address public immutable LEGACY_IMPL;\n\n    /*--------------------------------------------------------------\n                              CONSTRUCTOR\n    --------------------------------------------------------------*/\n\n    /// @dev Sets the beacon and legacy implementation, then disables initializers on the\n    ///      implementation contract.\n    /// @param _beacon The beacon contract address for beacon-shape wallets.\n    /// @param _legacyImpl The legacy implementation address embedded in legacy-shape wallets.\n    constructor(address _beacon, address _legacyImpl) {\n        require(_beacon != address(0), Errors.ZeroAddress());\n        require(_legacyImpl != address(0), Errors.ZeroAddress());\n        BEACON = _beacon;\n        LEGACY_IMPL = _legacyImpl;\n        _disableInitializers();\n    }\n\n    /*--------------------------------------------------------------\n                              INITIALIZER\n    --------------------------------------------------------------*/\n\n    /// @notice Initializes the factory with an owner, admin, and timelock delay.\n    /// @param _owner The address to set as the factory owner.\n    /// @param _admin The address to grant the initial admin role.\n    /// @param _timelockDelay The initial timelock delay in seconds.\n    function initialize(address _owner, address _admin, uint256 _timelockDelay)\n        external\n        initializer\n    {\n        require(_owner != address(0), Errors.ZeroAddress());\n        require(_admin != address(0), Errors.ZeroAddress());\n        _initializeOwner(_owner);\n        _setRoles(_admin, _ROLE_0);\n        _setTimelockDelay(_timelockDelay);\n    }\n\n    /*--------------------------------------------------------------\n                               MODIFIERS\n    --------------------------------------------------------------*/\n\n    /// @dev Restricts access to addresses with the admin role (ROLE_0).\n    modifier onlyAdmin() {\n        require(hasAnyRole(msg.sender, _ROLE_0), OnlyAdmin());\n        _;\n    }\n\n    /// @dev Restricts access to addresses with the operator role (ROLE_1).\n    modifier onlyOperator() {\n        require(hasAnyRole(msg.sender, _ROLE_1), OnlyOperator());\n        _;\n    }\n\n    /// @dev Restricts access to addresses with the legacy-deployer role (ROLE_2).\n    modifier onlyLegacyDeployer() {\n        require(hasAnyRole(msg.sender, _ROLE_2), OnlyLegacyDeployer());\n        _;\n    }\n\n    /*--------------------------------------------------------------\n                                  VIEW\n    --------------------------------------------------------------*/\n\n    /// @notice Returns whether the given address has the admin role.\n    /// @param _admin The address to check.\n    /// @return True if the address is an admin.\n    function isAdmin(address _admin) external view returns (bool) {\n        return hasAnyRole(_admin, _ROLE_0);\n    }\n\n    /// @notice Returns whether the given address has the operator role.\n    /// @param _operator The address to check.\n    /// @return True if the address is an operator.\n    function isOperator(address _operator) external view returns (bool) {\n        return hasAnyRole(_operator, _ROLE_1);\n    }\n\n    /// @notice Returns whether the given address has the legacy-deployer role.\n    /// @param _legacyDeployer The address to check.\n    /// @return True if the address is a legacy deployer.\n    function isLegacyDeployer(address _legacyDeployer) external view returns (bool) {\n        return hasAnyRole(_legacyDeployer, _ROLE_2);\n    }\n\n    /// @notice Predicts the deterministic address of a wallet before deployment.\n    /// @dev Deprecated; retained for ABI compatibility. The first argument is ignored — wallets\n    ///      are now beacon proxies bound to {BEACON}. Prefer {predictWalletAddress(bytes32)}.\n    /// @param _id The unique identifier for the wallet.\n    /// @return The predicted wallet proxy address.\n    function predictWalletAddress(address, bytes32 _id) external view returns (address) {\n        return _predictWalletAddress(_id);\n    }\n\n    /// @notice Predicts the deterministic address of a beacon-proxy wallet before deployment.\n    /// @dev This returns the address derived from the beacon-proxy template. For the address of a\n    ///      legacy-shape (ERC-1967, UUPS) wallet, use {predictLegacyWalletAddress} — the two\n    ///      shapes live at different deterministic addresses because the proxy bytecode (and\n    ///      therefore the CREATE2 derivation) differs.\n    /// @param _id The unique identifier for the wallet.\n    /// @return The predicted beacon-proxy wallet address.\n    function predictWalletAddress(bytes32 _id) external view returns (address) {\n        return _predictWalletAddress(_id);\n    }\n\n    /// @notice Predicts the deterministic address of a legacy-shape (ERC-1967) wallet before\n    ///         deployment.\n    /// @dev This matches the address the pre-beacon factory assigned to a wallet with the same\n    ///      `_id` — including, on other chains, the address of the user's Polygon wallet —\n    ///      enabling cross-chain recovery at the identical address.\n    /// @param _id The unique identifier for the wallet.\n    /// @return The predicted legacy wallet address.\n    function predictLegacyWalletAddress(bytes32 _id) external view returns (address) {\n        bytes memory args = abi.encode(address(this), _id);\n\n        return LibClone.predictDeterministicAddressERC1967(\n            LEGACY_IMPL, args, keccak256(args), address(this)\n        );\n    }\n\n    /*--------------------------------------------------------------\n                             ONLY OPERATOR\n    --------------------------------------------------------------*/\n\n    /// @notice Deploys one or more beacon-shape deposit wallets with deterministic addresses.\n    /// @dev It is the operator's responsibility to ensure that each `_id` is unique.\n    ///      Duplicate IDs will cause the deployment to revert because the deterministic\n    ///      address is already occupied. Note: beacon-shape and legacy-shape wallets for the\n    ///      same `_id` live at DIFFERENT addresses (different proxy template), so they never\n    ///      collide; the operator must dedupe IDs across both shapes off-chain.\n    /// @param _owners The initial owner addresses for each wallet.\n    /// @param _ids The unique identifiers for each wallet.\n    function deploy(address[] calldata _owners, bytes32[] calldata _ids) external onlyOperator {\n        require(_owners.length == _ids.length, ArrayLengthMismatch());\n\n        // Fail closed: require both the beacon AND its resolved implementation to hold code.\n        // A beacon-proxy delegatecalls the beacon's resolved implementation, so checking only the\n        // beacon address would let a beacon resolving to a code-less implementation slip through,\n        // turning `initialize` into a silent no-op delegatecall and minting an ownerless wallet.\n        require(BEACON.code.length != 0, ImplementationNotDeployed());\n        require(IBeacon(BEACON).implementation().code.length != 0, ImplementationNotDeployed());\n\n        for (uint256 i; i < _owners.length; ++i) {\n            bytes memory args = abi.encode(address(this), _ids[i]);\n\n            address wallet =\n                LibClone.deployDeterministicERC1967BeaconProxy(BEACON, args, keccak256(args));\n\n            IDepositWallet(wallet).initialize(_owners[i]);\n\n            emit WalletDeployed(wallet, _owners[i], _ids[i], BEACON);\n        }\n    }\n\n    /// @notice Proxies batch execution to one or more wallets.\n    /// @dev Each batch is forwarded to its target wallet's `execute` function. Works for both\n    ///      wallet shapes (the `Batch` layout is identical across the legacy and current\n    ///      implementations).\n    /// @param _batches The batches to execute.\n    /// @param _signatures The corresponding signatures for each batch.\n    function proxy(Batch[] calldata _batches, bytes[] calldata _signatures) external onlyOperator {\n        require(_batches.length == _signatures.length, ArrayLengthMismatch());\n        for (uint256 i; i < _batches.length; ++i) {\n            IDepositWallet(_batches[i].wallet).execute(_batches[i], _signatures[i]);\n        }\n    }\n\n    /*--------------------------------------------------------------\n                          ONLY LEGACY DEPLOYER\n    --------------------------------------------------------------*/\n\n    /// @notice Deploys one or more legacy-shape (ERC-1967, UUPS) deposit wallets with\n    ///         deterministic addresses that match the pre-beacon factory's derivation.\n    /// @dev Restricted to the legacy-deployer role (ROLE_2), granted independently of the\n    ///      operator role. Used for ids whose legacy address has already been handed out, and for\n    ///      cross-chain recovery: a wallet deployed here lands at the same address the user's\n    ///      Polygon deposit wallet occupies. The resulting wallet runs {LEGACY_IMPL} (the V1\n    ///      implementation). See {deploy} for the ID-uniqueness and cross-shape notes.\n    /// @param _owners The initial owner addresses for each wallet.\n    /// @param _ids The unique identifiers for each wallet.\n    function deployLegacy(address[] calldata _owners, bytes32[] calldata _ids)\n        external\n        onlyLegacyDeployer\n    {\n        require(_owners.length == _ids.length, ArrayLengthMismatch());\n\n        // Fail closed: a code-less legacy implementation would mint ownerless wallets.\n        require(LEGACY_IMPL.code.length != 0, ImplementationNotDeployed());\n\n        for (uint256 i; i < _owners.length; ++i) {\n            bytes memory args = abi.encode(address(this), _ids[i]);\n\n            address wallet = LibClone.deployDeterministicERC1967(LEGACY_IMPL, args, keccak256(args));\n\n            IDepositWallet(wallet).initialize(_owners[i]);\n\n            emit WalletDeployed(wallet, _owners[i], _ids[i], LEGACY_IMPL);\n        }\n    }\n\n    /*--------------------------------------------------------------\n                               ONLY ADMIN\n    --------------------------------------------------------------*/\n\n    /// @notice Grants the operator role to an address.\n    /// @param _operator The address to grant the operator role.\n    function addOperator(address _operator) external onlyAdmin {\n        _grantRoles(_operator, _ROLE_1);\n    }\n\n    /// @notice Removes the operator role from an address.\n    /// @param _operator The address to remove the operator role from.\n    function removeOperator(address _operator) external onlyAdmin {\n        _removeRoles(_operator, _ROLE_1);\n    }\n\n    /// @notice Grants the legacy-deployer role to an address.\n    /// @param _legacyDeployer The address to grant the legacy-deployer role.\n    function addLegacyDeployer(address _legacyDeployer) external onlyAdmin {\n        _grantRoles(_legacyDeployer, _ROLE_2);\n    }\n\n    /// @notice Removes the legacy-deployer role from an address.\n    /// @param _legacyDeployer The address to remove the legacy-deployer role from.\n    function removeLegacyDeployer(address _legacyDeployer) external onlyAdmin {\n        _removeRoles(_legacyDeployer, _ROLE_2);\n    }\n\n    /// @notice Sets the timelock delay for paused wallet operations.\n    /// @param _timelockDelay The new timelock delay in seconds.\n    function setTimelockDelay(uint256 _timelockDelay) external onlyAdmin {\n        _setTimelockDelay(_timelockDelay);\n    }\n\n    /*--------------------------------------------------------------\n                               ONLY OWNER\n    --------------------------------------------------------------*/\n\n    /// @notice Grants the admin role to an address.\n    /// @param _admin The address to grant the admin role.\n    function addAdmin(address _admin) external onlyOwner {\n        _grantRoles(_admin, _ROLE_0);\n    }\n\n    /// @notice Removes the admin role from an address.\n    /// @param _admin The address to remove the admin role from.\n    function removeAdmin(address _admin) external onlyOwner {\n        _removeRoles(_admin, _ROLE_0);\n    }\n\n    /// @notice Sets the legacy slot-0 implementation pointer.\n    /// @dev Deprecated; retained for ABI compatibility. Has no effect on {deploy} (which uses\n    ///      {BEACON}) or {deployLegacy} (which uses {LEGACY_IMPL}).\n    /// @param _implementation The new default implementation address.\n    function setImplementation(address _implementation) external onlyOwner {\n        _setImplementation(_implementation);\n    }\n\n    /// @notice Authorizes an implementation address for legacy UUPS upgrades.\n    /// @dev Used during the migration window to authorize {BeaconForwarder}; will be deprecated\n    ///      after the migration window closes.\n    /// @param _implementation The implementation address to authorize.\n    function authorizeImplementation(address _implementation) external onlyOwner {\n        require(_implementation != address(0), Errors.ZeroAddress());\n        authorizedImplementation[_implementation] = true;\n\n        emit ImplementationAuthorized(_implementation);\n    }\n\n    /// @notice Removes an implementation address from the authorized set.\n    /// @dev Used during the migration window; will be deprecated after the window closes.\n    /// @param _implementation The implementation address to unauthorize.\n    function unauthorizeImplementation(address _implementation) external onlyOwner {\n        authorizedImplementation[_implementation] = false;\n\n        emit ImplementationUnauthorized(_implementation);\n    }\n\n    /*--------------------------------------------------------------\n                               INTERNAL\n    --------------------------------------------------------------*/\n\n    /// @dev Authorizes UUPS upgrades of the factory. Restricted to the owner.\n    function _authorizeUpgrade(address) internal override onlyOwner {}\n\n    /// @notice Writes the legacy slot-0 implementation pointer.\n    /// @dev Deprecated; retained for ABI compatibility. Slot 0 is no longer consulted by\n    ///      {deploy}.\n    /// @param _implementation The new default implementation address (must be authorized).\n    function _setImplementation(address _implementation) internal {\n        require(authorizedImplementation[_implementation], ImplementationNotAuthorized());\n        implementation = _implementation;\n\n        emit ImplementationSet(_implementation);\n    }\n\n    /// @notice Sets the timelock delay for paused wallet operations.\n    /// @param _timelockDelay The new timelock delay in seconds.\n    function _setTimelockDelay(uint256 _timelockDelay) internal {\n        require(_timelockDelay > 0 && _timelockDelay <= MAX_TIMELOCK_DELAY, InvalidTimelockDelay());\n        timelockDelay = _timelockDelay;\n\n        emit TimelockDelaySet(_timelockDelay);\n    }\n\n    /// @notice Computes the deterministic address of a wallet bound to {BEACON}.\n    /// @param _id The unique identifier for the wallet.\n    /// @return The predicted wallet proxy address.\n    function _predictWalletAddress(bytes32 _id) internal view returns (address) {\n        bytes memory args = abi.encode(address(this), _id);\n\n        return LibClone.predictDeterministicAddressERC1967BeaconProxy(\n            BEACON, args, keccak256(args), address(this)\n        );\n    }\n}\n"},"src/interfaces/IDepositWallet.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\nimport {Batch} from \"@deposit-wallet/src/libraries/WalletLib.sol\";\n\n/// @title IDepositWallet\n/// @author Polymarket\n/// @notice Interface for the DepositWallet proxy contract.\ninterface IDepositWallet {\n    /*--------------------------------------------------------------\n                             INITIALIZER\n    --------------------------------------------------------------*/\n\n    /// @notice Initializes the wallet with a designated owner.\n    /// @param _owner The address to set as the wallet owner.\n    function initialize(address _owner) external;\n\n    /*--------------------------------------------------------------\n                                  VIEW\n    --------------------------------------------------------------*/\n\n    /// @notice Returns the wallet's current execution nonce.\n    /// @return The current nonce.\n    function nonce() external view returns (uint256);\n\n    /// @notice Returns the timestamp at which the wallet was paused.\n    /// @return The paused timestamp, or zero if not paused.\n    function paused() external view returns (uint256);\n\n    /// @notice Returns the timestamp until which a session signer is authorized.\n    /// @param _signer The session signer address to query.\n    /// @return The authorization expiry timestamp, or zero if not authorized.\n    function sessionSignerAuthorizedUntil(address _signer) external view returns (uint256);\n\n    /// @notice Returns a passkey session signer's public key and authorization expiry.\n    function passkeySessionSigner(bytes32 _passkeyId)\n        external\n        view\n        returns (bytes32 x, bytes32 y, uint256 validUntil);\n\n    /// @notice Returns the unique identifier assigned to this wallet at deployment.\n    /// @return The wallet ID decoded from the proxy's immutable args.\n    function id() external view returns (bytes32);\n\n    /// @notice Returns the factory contract that deployed this wallet.\n    /// @return The factory address decoded from the proxy's immutable args.\n    function factory() external view returns (address);\n\n    /// @notice Returns the current owner of the wallet.\n    /// @return The owner address.\n    function owner() external view returns (address);\n\n    /// @notice Returns the pending owner awaiting handover completion.\n    /// @return The pending owner address, or `address(0)` if none.\n    function pendingOwner() external view returns (address);\n\n    /// @notice Returns the deadline by which the pending owner must complete the handover.\n    /// @return The acceptance-deadline timestamp, or zero if no handover is pending.\n    function pendingOwnerDeadline() external view returns (uint256);\n\n    /// @notice Returns the per-handover nonce embedded in the EIP-712 signature.\n    /// @return The current handover nonce.\n    function pendingOwnerNonce() external view returns (uint256);\n\n    /// @notice Returns a stable magic identifying this contract as a `DepositWallet`.\n    /// @return The wallet identity magic.\n    function walletInterfaceId() external pure returns (bytes32);\n\n    /*--------------------------------------------------------------\n                             ONLY FACTORY\n    --------------------------------------------------------------*/\n\n    /// @notice Executes a signed batch of calls through the factory.\n    /// @dev Validates the batch (non-empty, correct wallet, nonce, deadline), verifies the EIP-712\n    ///      signature against the owner or an authorized session signer, then executes each call\n    ///      sequentially. Session signers are prevented from calling the wallet itself.\n    /// @param _batch The batch containing the target wallet, nonce, deadline, and calls.\n    /// @param _signature The EIP-712 signature authorizing the batch (owner or session signer).\n    function execute(Batch calldata _batch, bytes calldata _signature) external;\n\n    /*--------------------------------------------------------------\n                               ONLY SELF\n    --------------------------------------------------------------*/\n\n    /// @notice Authorizes a session signer until the specified timestamp.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _sessionSigner The address to authorize as a session signer.\n    /// @param _validUntil The timestamp until which the session signer is valid.\n    function authorizeSessionSigner(address _sessionSigner, uint256 _validUntil) external;\n\n    /// @notice Revokes a session signer's authorization.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _sessionSigner The session signer address to revoke.\n    function revokeSessionSigner(address _sessionSigner) external;\n\n    /// @notice Authorizes a P-256 passkey as a session signer.\n    function authorizePasskeySessionSigner(bytes32 _x, bytes32 _y, uint256 _validUntil) external;\n\n    /// @notice Revokes a passkey session signer.\n    function revokePasskeySessionSigner(bytes32 _passkeyId) external;\n\n    /// @notice Initiates a two-step ownership transfer to a new owner.\n    /// @dev Can only be invoked via batch execution (self-call). Records the on-chain deadline\n    ///      and bumps the per-handover nonce, invalidating any previously issued handover\n    ///      signature.\n    /// @param _newOwner The proposed new owner, distinct from the current owner and this wallet.\n    /// @param _deadline The timestamp by which the pending owner must complete the handover.\n    function transferOwnership(address _newOwner, uint256 _deadline) external;\n\n    /// @notice Cancels any pending ownership handover.\n    /// @dev Can only be invoked via batch execution (self-call).\n    function cancelOwnershipHandover() external;\n\n    /*--------------------------------------------------------------\n                           OWNERSHIP HANDOVER\n    --------------------------------------------------------------*/\n\n    /// @notice Completes a pending ownership transfer.\n    /// @dev Permissionless — anyone may submit, but the pending owner must have signed an\n    ///      EIP-712 `OwnershipHandover(newOwner, nonce)` message using the current\n    ///      {pendingOwnerNonce}, and the on-chain {pendingOwnerDeadline} must not have elapsed.\n    /// @param _signature The EIP-712 signature from the pending owner.\n    function completeOwnershipHandover(bytes calldata _signature) external;\n\n    /*--------------------------------------------------------------\n                               ONLY OWNER\n    --------------------------------------------------------------*/\n\n    /// @notice Pauses the wallet, recording the current timestamp.\n    /// @dev After pausing, the owner must wait for the timelock delay before calling\n    ///      paused-only functions (e.g., withdrawals, revocations).\n    function pause() external;\n\n    /// @notice Unpauses the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    function unpause() external;\n\n    /// @notice Withdraws native tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _to The recipient address.\n    /// @param _amount The amount of native tokens to withdraw.\n    function withdrawNative(address _to, uint256 _amount) external;\n\n    /// @notice Withdraws ERC-20 tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-20 token address.\n    /// @param _to The recipient address.\n    /// @param _amount The amount of tokens to withdraw.\n    function withdrawERC20(address _token, address _to, uint256 _amount) external;\n\n    /// @notice Batch-withdraws ERC-1155 tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-1155 token address.\n    /// @param _to The recipient address.\n    /// @param _ids The token IDs to withdraw.\n    /// @param _amounts The amounts for each token ID.\n    function withdrawERC1155(\n        address _token,\n        address _to,\n        uint256[] calldata _ids,\n        uint256[] calldata _amounts\n    ) external;\n\n    /// @notice Revokes an ERC-20 allowance by setting it to zero.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-20 token address.\n    /// @param _spender The spender whose allowance is revoked.\n    function revokeAllowance(address _token, address _spender) external;\n\n    /// @notice Revokes an ERC-1155 operator approval.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-1155 token address.\n    /// @param _operator The operator whose approval is revoked.\n    function revokeApprovalForAll(address _token, address _operator) external;\n\n    /// @notice Emergency revocation of a session signer by the owner.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _sessionSigner The session signer to revoke.\n    function revokeSessionSignerEmergency(address _sessionSigner) external;\n\n    /// @notice Emergency revocation of a passkey session signer by the owner.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    function revokePasskeySessionSignerEmergency(bytes32 _passkeyId) external;\n\n    /// @notice Opts the wallet out of beacon upgrades, pinning it to the current default\n    ///         implementation.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    function optOut() external;\n\n    /// @notice Clears the wallet's beacon-upgrade pin, rejoining the upgrade cohort.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    function optIn() external;\n\n    /*--------------------------------------------------------------\n                                ERC1271\n    --------------------------------------------------------------*/\n\n    /// @notice Validates a signature against the wallet owner or an authorized session signer.\n    /// @param _hash The hash that was signed.\n    /// @param _signature The signature to validate (may contain a session signer wrapper).\n    /// @return result `ERC1271_MAGIC_VALUE` if the signature is valid, otherwise a non-magic\n    /// value.\n    function isValidSignature(bytes32 _hash, bytes calldata _signature)\n        external\n        view\n        returns (bytes4 result);\n}\n"},"src/libraries/Ownable.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\nimport {EIP712} from \"@solady/src/utils/EIP712.sol\";\n\nimport {Errors} from \"@deposit-wallet/src/Errors.sol\";\nimport {Events} from \"@deposit-wallet/src/Events.sol\";\nimport {SignatureVerifierLib} from \"@deposit-wallet/src/libraries/SignatureVerifierLib.sol\";\n\n/// @title Ownable\n/// @author Polymarket\n/// @notice Two-step ownership management with EIP-712 signature-based handover.\n/// @dev Ownership transfers require the new owner to sign an `OwnershipHandover` EIP-712 message.\n///      This prevents accidental transfers to addresses that cannot interact with the wallet.\n///      Storage uses custom slots to avoid collisions in proxy-based deployments.\nabstract contract Ownable is EIP712, Errors, Events {\n    /*--------------------------------------------------------------\n                                 STATE\n    --------------------------------------------------------------*/\n\n    /// @dev Storage slot for the owner address. keccak256(\"DepositWallet.owner\") - 1\n    bytes32 internal constant _OWNER_SLOT = bytes32(uint256(keccak256(\"DepositWallet.owner\")) - 1);\n\n    /// @dev Storage slot for the pending owner address. keccak256(\"DepositWallet.pendingOwner\") - 1\n    bytes32 internal constant _PENDING_OWNER_SLOT =\n        bytes32(uint256(keccak256(\"DepositWallet.pendingOwner\")) - 1);\n\n    /// @dev Storage slot for the deadline by which the pending owner must complete the handover.\n    bytes32 internal constant _PENDING_OWNER_DEADLINE_SLOT =\n        bytes32(uint256(keccak256(\"DepositWallet.pendingOwnerDeadline\")) - 1);\n\n    /// @dev Storage slot for the per-handover replay nonce.\n    bytes32 internal constant _PENDING_OWNER_NONCE_SLOT =\n        bytes32(uint256(keccak256(\"DepositWallet.pendingOwnerNonce\")) - 1);\n\n    /// @dev EIP-712 typehash for the `OwnershipHandover` struct.\n    bytes32 private constant _OWNERSHIP_HANDOVER_TYPEHASH =\n        keccak256(\"OwnershipHandover(address newOwner,uint256 nonce)\");\n\n    /*--------------------------------------------------------------\n                                  VIEW\n    --------------------------------------------------------------*/\n\n    /// @notice Returns the current owner of the wallet.\n    /// @return result The owner address.\n    function owner() public view virtual returns (address result) {\n        bytes32 slot = _OWNER_SLOT;\n        assembly {\n            result := sload(slot)\n        }\n    }\n\n    /// @notice Returns the pending owner awaiting handover completion.\n    /// @return result The pending owner address, or `address(0)` if none.\n    function pendingOwner() public view virtual returns (address result) {\n        bytes32 slot = _PENDING_OWNER_SLOT;\n        assembly {\n            result := sload(slot)\n        }\n    }\n\n    /// @notice Returns the deadline by which the pending owner must complete the handover.\n    /// @return result The acceptance-deadline timestamp, or zero if no handover is pending.\n    function pendingOwnerDeadline() public view virtual returns (uint256 result) {\n        bytes32 slot = _PENDING_OWNER_DEADLINE_SLOT;\n        assembly {\n            result := sload(slot)\n        }\n    }\n\n    /// @notice Returns the per-handover nonce embedded in the EIP-712 signature.\n    /// @dev Increments on every `_transferOwnership` call. The pending owner must sign over the\n    ///      current value; any older value yields an invalid signature.\n    /// @return result The current handover nonce.\n    function pendingOwnerNonce() public view virtual returns (uint256 result) {\n        bytes32 slot = _PENDING_OWNER_NONCE_SLOT;\n        assembly {\n            result := sload(slot)\n        }\n    }\n\n    /*--------------------------------------------------------------\n                              INTERNAL\n    --------------------------------------------------------------*/\n\n    /// @notice Sets the initial owner of the wallet.\n    /// @dev Should only be called once during initialization.\n    /// @param _newOwner The address to set as the initial owner.\n    function _initializeOwner(address _newOwner) internal virtual {\n        require(_newOwner != address(0), InvalidOwner());\n\n        bytes32 slot = _OWNER_SLOT;\n\n        assembly {\n            sstore(slot, _newOwner)\n        }\n\n        emit OwnershipTransferred(address(0), _newOwner);\n    }\n\n    /// @notice Replaces the current owner with a new address.\n    /// @param _newOwner The address of the new owner.\n    function _setOwner(address _newOwner) internal virtual {\n        address oldOwner = owner();\n        bytes32 slot = _OWNER_SLOT;\n\n        assembly {\n            sstore(slot, _newOwner)\n        }\n\n        emit OwnershipTransferred(oldOwner, _newOwner);\n    }\n\n    /// @notice Stores a new pending owner address.\n    /// @param _pendingOwner The address to set as the pending owner.\n    function _setPendingOwner(address _pendingOwner) internal virtual {\n        bytes32 slot = _PENDING_OWNER_SLOT;\n\n        assembly {\n            sstore(slot, _pendingOwner)\n        }\n    }\n\n    /// @notice Stores the deadline by which the pending owner must complete the handover.\n    /// @param _deadline The deadline timestamp, or zero to clear.\n    function _setPendingOwnerDeadline(uint256 _deadline) internal virtual {\n        bytes32 slot = _PENDING_OWNER_DEADLINE_SLOT;\n\n        assembly {\n            sstore(slot, _deadline)\n        }\n    }\n\n    /// @notice Bumps the per-handover nonce by one.\n    /// @return next The post-increment nonce value embedded in the next signed digest.\n    function _incrementPendingOwnerNonce() internal virtual returns (uint256 next) {\n        bytes32 slot = _PENDING_OWNER_NONCE_SLOT;\n\n        assembly {\n            next := add(sload(slot), 1)\n            sstore(slot, next)\n        }\n    }\n\n    /// @notice Reverts if `msg.sender` is not the current owner.\n    function _checkOwner() internal view virtual {\n        require(msg.sender == owner(), Unauthorized());\n    }\n\n    /*--------------------------------------------------------------\n                           OWNERSHIP HANDOVER\n    --------------------------------------------------------------*/\n\n    /// @notice Initiates a two-step ownership transfer to `_newOwner`.\n    /// @dev Records the pending owner, stores the on-chain acceptance deadline, and bumps the\n    ///      per-handover nonce. The bump invalidates any previously issued handover signature.\n    ///      Emits {OwnershipHandoverRequested}.\n    /// @param _newOwner The proposed new owner (must be nonzero and distinct from the current\n    ///                  owner and this contract).\n    /// @param _deadline The timestamp by which the pending owner must complete the handover\n    ///                  (must be `>= block.timestamp`).\n    function _transferOwnership(address _newOwner, uint256 _deadline) internal virtual {\n        require(\n            _newOwner != address(0) && _newOwner != owner() && _newOwner != address(this),\n            InvalidOwner()\n        );\n        require(block.timestamp <= _deadline, Expired());\n\n        _setPendingOwner(_newOwner);\n        _setPendingOwnerDeadline(_deadline);\n        uint256 newNonce = _incrementPendingOwnerNonce();\n\n        emit OwnershipHandoverRequested(_newOwner, _deadline, newNonce);\n    }\n\n    /// @notice Cancels any pending ownership handover.\n    /// @dev Clears the pending owner and acceptance deadline. The handover nonce is intentionally\n    ///      not bumped here — replay safety is already provided by the bump on the next\n    ///      `_transferOwnership` call combined with the `pendingOwner != 0` gate.\n    function _cancelOwnershipHandover() internal virtual {\n        address pending = pendingOwner();\n\n        require(pending != address(0), NoPendingOwner());\n\n        _setPendingOwner(address(0));\n        _setPendingOwnerDeadline(0);\n\n        emit OwnershipHandoverCanceled(pending);\n    }\n\n    /// @notice Completes a two-step ownership handover using an EIP-712 signature from the\n    ///         pending owner.\n    /// @dev Validates that a handover is pending, the on-chain acceptance deadline has not\n    ///      elapsed, and the signature is valid for the pending owner (ECDSA or ERC-1271) over\n    ///      `OwnershipHandover(newOwner, nonce)` using the current nonce. On success, transfers\n    ///      ownership and clears the pending-owner state.\n    /// @param _signature The EIP-712 signature from the pending owner.\n    function _completeOwnershipHandover(bytes calldata _signature) internal virtual {\n        address pending = pendingOwner();\n\n        require(pending != address(0), NoPendingOwner());\n        require(block.timestamp <= pendingOwnerDeadline(), Expired());\n\n        bytes32 structHash =\n            keccak256(abi.encode(_OWNERSHIP_HANDOVER_TYPEHASH, pending, pendingOwnerNonce()));\n        bytes32 digest = _hashTypedData(structHash);\n\n        require(\n            SignatureVerifierLib.isValidSignatureNow(pending, digest, _signature),\n            InvalidSignature()\n        );\n\n        address previousOwner = owner();\n\n        _setPendingOwner(address(0));\n        _setPendingOwnerDeadline(0);\n        _setOwner(pending);\n\n        emit OwnershipHandoverCompleted(previousOwner, pending);\n    }\n}\n"},"src/libraries/PasskeySignerLib.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\nimport {P256} from \"@openzeppelin/contracts/utils/cryptography/P256.sol\";\nimport {WebAuthn} from \"@deposit-wallet/src/libraries/WebAuthnNative.sol\";\n\n/// @title PasskeySignerLib\n/// @author Polymarket\n/// @notice Helpers for P-256 passkey identifiers and WebAuthn assertion verification.\nlibrary PasskeySignerLib {\n    /// @notice Returns the identifier for a P-256 public key.\n    function id(bytes32 _x, bytes32 _y) internal pure returns (bytes32) {\n        return keccak256(bytes.concat(_x, _y));\n    }\n\n    /// @notice Returns whether the coordinates form a valid P-256 public key.\n    function isValidPublicKey(bytes32 _x, bytes32 _y) internal pure returns (bool) {\n        return P256.isValidPublicKey(_x, _y);\n    }\n\n    /// @notice Verifies a WebAuthn assertion against a digest and P-256 public key.\n    /// @dev User presence is required by OpenZeppelin. User verification is intentionally optional.\n    function verify(bytes32 _hash, bytes32 _x, bytes32 _y, bytes calldata _signature)\n        internal\n        view\n        returns (bool)\n    {\n        (bool decoded, WebAuthn.WebAuthnAuth calldata auth) = WebAuthn.tryDecodeAuth(_signature);\n        return decoded && WebAuthn.verify(bytes.concat(_hash), auth, _x, _y, false);\n    }\n}\n"},"src/libraries/SignatureVerifierLib.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\nimport {ECDSA} from \"@solady/src/utils/ECDSA.sol\";\n\nimport {ERC1271_MAGIC_VALUE} from \"@deposit-wallet/src/libraries/WalletLib.sol\";\n\n/// @title IERC1271\n/// @author Polymarket\n/// @notice Minimal ERC-1271 interface used to encode the `isValidSignature` staticcall.\n/// @dev EIP-1271 defines the magic value as `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`,\n///      so the selector of this function and `ERC1271_MAGIC_VALUE` are the same constant.\ninterface IERC1271 {\n    /// @notice Returns the ERC-1271 magic value when `_signature` is valid for `_hash`.\n    /// @param _hash The digest that was signed.\n    /// @param _signature The signature payload.\n    /// @return The ERC-1271 magic value (`0x1626ba7e`) if the signature is valid.\n    function isValidSignature(bytes32 _hash, bytes calldata _signature)\n        external\n        view\n        returns (bytes4);\n}\n\n/// @title SignatureVerifierLib\n/// @author Polymarket\n/// @notice Verifies a signature for an address-based signer via ECDSA or ERC-1271.\n/// @dev ECDSA recovery is attempted first so that externally owned accounts — including EIP-7702\n///      delegated accounts, whose raw keys remain valid at the protocol level — never lose the\n///      ability to sign with their key. When ECDSA does not match and the signer has code,\n///      verification falls back to an ERC-1271 `isValidSignature` staticcall on the signer.\n///      Counterfactual (ERC-6492) contract signers are not supported: the signer contract must\n///      be deployed at verification time.\nlibrary SignatureVerifierLib {\n    /// @notice Returns whether `_signature` is valid for `_signer` over `_hash`.\n    /// @dev The ERC-1271 staticcall is never performed on the verifying contract itself, so a\n    ///      wallet configured as its own signer cannot enter a self-referential validation loop.\n    ///      A contract signer must return exactly the ERC-1271 magic value, left-aligned in a\n    ///      single word; reverts, wrong magic, and malformed return data all verify as false.\n    ///      Returndata copying is capped at one word to prevent return-data gas griefing.\n    /// @param _signer The expected signer (EOA or deployed ERC-1271 contract).\n    /// @param _hash The digest that was signed.\n    /// @param _signature A 64/65-byte ECDSA signature or an ERC-1271 payload for `_signer`.\n    /// @return Whether the signature is valid for `_signer`.\n    function isValidSignatureNow(address _signer, bytes32 _hash, bytes calldata _signature)\n        internal\n        view\n        returns (bool)\n    {\n        if (_signer == address(0)) return false;\n\n        if (_signature.length == 64 || _signature.length == 65) {\n            if (ECDSA.tryRecoverCalldata(_hash, _signature) == _signer) return true;\n        }\n\n        if (_signer == address(this) || _signer.code.length == 0) return false;\n\n        bytes memory callData = abi.encodeCall(IERC1271.isValidSignature, (_hash, _signature));\n        bool success;\n        bytes32 result;\n        assembly (\"memory-safe\") {\n            success := staticcall(gas(), _signer, add(callData, 0x20), mload(callData), 0x00, 0x20)\n            success := and(success, eq(returndatasize(), 0x20))\n            result := mload(0x00)\n        }\n        return success && result == bytes32(ERC1271_MAGIC_VALUE);\n    }\n}\n"},"src/libraries/SessionSignerLib.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\n/// @dev Magic suffix bytes appended to a signature to indicate the presence of a session signer.\n/// Mirrors the ERC-6492 magic value to reuse the same detection mechanism.\nbytes32 constant SESSION_SIGNER_MAGIC_BYTES =\n    0x6492649264926492649264926492649264926492649264926492649264926492;\n\n/// @dev Existing secp256k1 EVM session signer.\nuint256 constant SESSION_SIGNER_KIND_SECP256K1 = 0;\n\n/// @dev WebAuthn P-256 (secp256r1) passkey session signer.\nuint256 constant SESSION_SIGNER_KIND_P256 = 1;\n\n/// @notice Parse state for a potential session signer envelope.\n/// @dev `MalformedEnvelope` is the zero value so an uninitialized status fails closed.\nenum SessionEnvelopeStatus {\n    MalformedEnvelope,\n    NotSessionEnvelope,\n    WellFormedEnvelope\n}\n\n/// @title SessionSignerLib\n/// @author Polymarket\n/// @notice Utilities for encoding and decoding session signer signatures.\n/// @dev Session signer signatures wrap an inner signature with a signer identifier, signer kind,\n///      and trailing magic suffix, following the ERC-6492 envelope format.\nlibrary SessionSignerLib {\n    /// @notice Decodes a session signer envelope.\n    /// @dev A present but malformed envelope is distinguished from a signature with no magic\n    ///      suffix so callers never fall back to owner verification. Parsed signer fields are\n    ///      exposed only for a fully validated envelope.\n    /// @param _signature The raw signature bytes, potentially wrapped with session signer data.\n    /// @return status Whether the signature is not an envelope, malformed, or well formed.\n    /// @return signerId The EVM address (left-padded) or passkey identifier.\n    /// @return signerKind The signer kind discriminator.\n    function decodeSessionSigner(bytes calldata _signature)\n        internal\n        pure\n        returns (SessionEnvelopeStatus status, bytes32 signerId, uint256 signerKind)\n    {\n        if (_signature.length < 0x20) {\n            return (SessionEnvelopeStatus.NotSessionEnvelope, bytes32(0), 0);\n        }\n\n        bool hasMagic;\n        uint256 dynamicOffset;\n        uint256 innerLength;\n        assembly (\"memory-safe\") {\n            hasMagic := eq(\n                calldataload(add(_signature.offset, sub(_signature.length, 0x20))),\n                SESSION_SIGNER_MAGIC_BYTES\n            )\n        }\n        if (!hasMagic) {\n            return (SessionEnvelopeStatus.NotSessionEnvelope, bytes32(0), 0);\n        }\n        if (_signature.length < 0xa0) {\n            return (SessionEnvelopeStatus.MalformedEnvelope, bytes32(0), 0);\n        }\n\n        bytes32 candidateSignerId;\n        uint256 candidateSignerKind;\n        assembly (\"memory-safe\") {\n            candidateSignerId := calldataload(_signature.offset)\n            candidateSignerKind := calldataload(add(_signature.offset, 0x20))\n            dynamicOffset := calldataload(add(_signature.offset, 0x40))\n            innerLength := calldataload(add(_signature.offset, 0x60))\n        }\n\n        if (dynamicOffset != 0x60 || innerLength > type(uint256).max - 0x1f) {\n            return (SessionEnvelopeStatus.MalformedEnvelope, bytes32(0), 0);\n        }\n\n        uint256 paddedInnerLength = (innerLength + 0x1f) & ~uint256(0x1f);\n        if (paddedInnerLength > type(uint256).max - 0xa0) {\n            return (SessionEnvelopeStatus.MalformedEnvelope, bytes32(0), 0);\n        }\n        if (_signature.length != 0xa0 + paddedInnerLength) {\n            return (SessionEnvelopeStatus.MalformedEnvelope, bytes32(0), 0);\n        }\n\n        if (candidateSignerKind == SESSION_SIGNER_KIND_SECP256K1) {\n            if (\n                uint256(candidateSignerId) >> 160 == 0\n                    && address(uint160(uint256(candidateSignerId))) != address(0)\n            ) {\n                return (\n                    SessionEnvelopeStatus.WellFormedEnvelope, candidateSignerId, candidateSignerKind\n                );\n            }\n        } else if (\n            candidateSignerKind == SESSION_SIGNER_KIND_P256 && candidateSignerId != bytes32(0)\n        ) {\n            return\n                (SessionEnvelopeStatus.WellFormedEnvelope, candidateSignerId, candidateSignerKind);\n        }\n\n        return (SessionEnvelopeStatus.MalformedEnvelope, bytes32(0), 0);\n    }\n\n    /// @notice Returns whether a signature contains a valid session signer envelope.\n    function isSessionSignerSignature(bytes calldata _signature) internal pure returns (bool) {\n        (SessionEnvelopeStatus status,,) = decodeSessionSigner(_signature);\n        return status == SessionEnvelopeStatus.WellFormedEnvelope;\n    }\n\n    /// @notice Creates a session signer signature by wrapping an existing signature.\n    /// @dev Encodes the session signer address, the secp256k1 signer kind, the inner signature,\n    ///      and the magic suffix into a single byte array. Because\n    ///      `SESSION_SIGNER_KIND_SECP256K1` is 0, the envelope is byte-identical to the legacy\n    ///      format that carried a zero placeholder in the kind slot.\n    /// @param _sessionSigner The session signer address to encode.\n    /// @param _signature The inner ECDSA signature to wrap.\n    /// @return The wrapped session signer signature.\n    function getSessionSignerSignature(address _sessionSigner, bytes memory _signature)\n        internal\n        pure\n        returns (bytes memory)\n    {\n        return bytes.concat(\n            abi.encode(_sessionSigner, SESSION_SIGNER_KIND_SECP256K1, _signature),\n            SESSION_SIGNER_MAGIC_BYTES\n        );\n    }\n\n    /// @notice Creates a passkey session signer signature by wrapping a WebAuthn assertion.\n    /// @param _passkeyId The passkey identifier (`keccak256(x || y)`).\n    /// @param _signature The ABI-encoded WebAuthn assertion, optionally with an ERC-7739 suffix.\n    /// @return The wrapped passkey session signer signature.\n    function getPasskeySessionSignerSignature(bytes32 _passkeyId, bytes memory _signature)\n        internal\n        pure\n        returns (bytes memory)\n    {\n        return bytes.concat(\n            abi.encode(_passkeyId, SESSION_SIGNER_KIND_P256, _signature), SESSION_SIGNER_MAGIC_BYTES\n        );\n    }\n}\n"},"src/libraries/WalletLib.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\n/// @dev ERC-1271 magic value returned on successful signature validation.\n/// bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))\nbytes4 constant ERC1271_MAGIC_VALUE = 0x1626ba7e;\n\n/// @dev ERC-1271 value returned to signal an invalid signature.\nbytes4 constant ERC1271_INVALID_VALUE = 0xffffffff;\n\n/// @dev EIP-712 typehash for the `Call` struct.\nbytes32 constant CALL_TYPEHASH = keccak256(\"Call(address target,uint256 value,bytes data)\");\n\n/// @dev EIP-712 type name for the `Batch` struct, used in ERC-1271 nested signatures.\nstring constant BATCH_CONTENTS_NAME = \"Batch\";\n\n/// @dev EIP-712 type string for the `Batch` struct, including the nested `Call` type.\nstring constant BATCH_CONTENTS_TYPE =\n    \"Batch(address wallet,uint256 nonce,uint256 deadline,Call[] calls)Call(address target,uint256 value,bytes data)\";\n\n/// @dev EIP-712 typehash for the `Batch` struct.\nbytes32 constant BATCH_TYPEHASH = keccak256(bytes(BATCH_CONTENTS_TYPE));\n\n/// @notice A batch of calls to be executed by a DepositWallet.\n/// @dev Signed by the wallet owner or an authorized session signer using EIP-712.\nstruct Batch {\n    /// @dev The address of the wallet that will execute this batch.\n    address wallet;\n    /// @dev Replay-protection nonce; must equal the wallet's current nonce.\n    uint256 nonce;\n    /// @dev Timestamp after which the batch signature is no longer valid.\n    uint256 deadline;\n    /// @dev The ordered list of calls to execute.\n    Call[] calls;\n}\n\n/// @notice A single call within a batch.\nstruct Call {\n    /// @dev The target address to call.\n    address target;\n    /// @dev The ETH value to send with the call.\n    uint256 value;\n    /// @dev The calldata to send to the target.\n    bytes data;\n}\n\n/// @title WalletLib\n/// @author Polymarket\n/// @notice EIP-712 hashing utilities for `Batch` and `Call` structs.\nlibrary WalletLib {\n    /// @notice Computes the EIP-712 struct hash of a batch.\n    /// @param _batch The batch to hash.\n    /// @return The EIP-712 struct hash.\n    function hash(Batch memory _batch) internal pure returns (bytes32) {\n        return keccak256(\n            abi.encode(\n                BATCH_TYPEHASH, _batch.wallet, _batch.nonce, _batch.deadline, hash(_batch.calls)\n            )\n        );\n    }\n\n    /// @notice Computes the EIP-712 array hash of an array of calls.\n    /// @param _calls The calls to hash.\n    /// @return The keccak256 hash of the concatenated individual call hashes.\n    function hash(Call[] memory _calls) internal pure returns (bytes32) {\n        bytes32[] memory hashes = new bytes32[](_calls.length);\n        for (uint256 i; i < _calls.length; i++) {\n            hashes[i] = hash(_calls[i]);\n        }\n        return keccak256(abi.encodePacked(hashes));\n    }\n\n    /// @notice Computes the EIP-712 struct hash of a single call.\n    /// @param _call The call to hash.\n    /// @return The EIP-712 struct hash.\n    function hash(Call memory _call) internal pure returns (bytes32) {\n        return keccak256(\n            abi.encode(\n                CALL_TYPEHASH,\n                _call.target,\n                _call.value,\n                keccak256(_call.data) // bytes fields must be hashed\n            )\n        );\n    }\n}\n"},"lib/solady/src/utils/EIP712.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Contract for EIP-712 typed structured data hashing and signing.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/EIP712.sol)\n/// @author Modified from Solbase (https://github.com/Sol-DAO/solbase/blob/main/src/utils/EIP712.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/EIP712.sol)\n///\n/// @dev Note, this implementation:\n/// - Uses `address(this)` for the `verifyingContract` field.\n/// - Does NOT use the optional EIP-712 salt.\n/// - Does NOT use any EIP-712 extensions.\n/// This is for simplicity and to save gas.\n/// If you need to customize, please fork / modify accordingly.\nabstract contract EIP712 {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  CONSTANTS AND IMMUTABLES                  */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev `keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\")`.\n    bytes32 internal constant _DOMAIN_TYPEHASH =\n        0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f;\n\n    /// @dev `keccak256(\"EIP712Domain(string name,string version,address verifyingContract)\")`.\n    /// This is only used in `_hashTypedDataSansChainId`.\n    bytes32 internal constant _DOMAIN_TYPEHASH_SANS_CHAIN_ID =\n        0x91ab3d17e3a50a9d89e63fd30b92be7f5336b03b287bb946787a83a9d62a2766;\n\n    /// @dev `keccak256(\"EIP712Domain(string name,string version)\")`.\n    /// This is only used in `_hashTypedDataSansChainIdAndVerifyingContract`.\n    bytes32 internal constant _DOMAIN_TYPEHASH_SANS_CHAIN_ID_AND_VERIFYING_CONTRACT =\n        0xb03948446334eb9b2196d5eb166f69b9d49403eb4a12f36de8d3f9f3cb8e15c3;\n\n    /// @dev `keccak256(\"EIP712Domain(string name,string version,uint256 chainId)\")`.\n    /// This is only used in `_hashTypedDataSansVerifyingContract`.\n    bytes32 internal constant _DOMAIN_TYPEHASH_SANS_VERIFYING_CONTRACT =\n        0xc2f8787176b8ac6bf7215b4adcc1e069bf4ab82d9ab1df05a57a91d425935b6e;\n\n    uint256 private immutable _cachedThis;\n    uint256 private immutable _cachedChainId;\n    bytes32 private immutable _cachedNameHash;\n    bytes32 private immutable _cachedVersionHash;\n    bytes32 private immutable _cachedDomainSeparator;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                        CONSTRUCTOR                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Cache the hashes for cheaper runtime gas costs.\n    /// In the case of upgradeable contracts (i.e. proxies),\n    /// or if the chain id changes due to a hard fork,\n    /// the domain separator will be seamlessly calculated on-the-fly.\n    constructor() {\n        _cachedThis = uint256(uint160(address(this)));\n        _cachedChainId = block.chainid;\n\n        string memory name;\n        string memory version;\n        if (!_domainNameAndVersionMayChange()) (name, version) = _domainNameAndVersion();\n        bytes32 nameHash = _domainNameAndVersionMayChange() ? bytes32(0) : keccak256(bytes(name));\n        bytes32 versionHash =\n            _domainNameAndVersionMayChange() ? bytes32(0) : keccak256(bytes(version));\n        _cachedNameHash = nameHash;\n        _cachedVersionHash = versionHash;\n\n        bytes32 separator;\n        if (!_domainNameAndVersionMayChange()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let m := mload(0x40) // Load the free memory pointer.\n                mstore(m, _DOMAIN_TYPEHASH)\n                mstore(add(m, 0x20), nameHash)\n                mstore(add(m, 0x40), versionHash)\n                mstore(add(m, 0x60), chainid())\n                mstore(add(m, 0x80), address())\n                separator := keccak256(m, 0xa0)\n            }\n        }\n        _cachedDomainSeparator = separator;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   FUNCTIONS TO OVERRIDE                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Please override this function to return the domain name and version.\n    /// ```\n    ///     function _domainNameAndVersion()\n    ///         internal\n    ///         pure\n    ///         virtual\n    ///         returns (string memory name, string memory version)\n    ///     {\n    ///         name = \"Solady\";\n    ///         version = \"1\";\n    ///     }\n    /// ```\n    ///\n    /// Note: If the returned result may change after the contract has been deployed,\n    /// you must override `_domainNameAndVersionMayChange()` to return true.\n    function _domainNameAndVersion()\n        internal\n        view\n        virtual\n        returns (string memory name, string memory version);\n\n    /// @dev Returns if `_domainNameAndVersion()` may change\n    /// after the contract has been deployed (i.e. after the constructor).\n    /// Default: false.\n    function _domainNameAndVersionMayChange() internal pure virtual returns (bool result) {}\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     HASHING OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the EIP-712 domain separator.\n    function _domainSeparator() internal view virtual returns (bytes32 separator) {\n        if (_domainNameAndVersionMayChange()) {\n            separator = _buildDomainSeparator();\n        } else {\n            separator = _cachedDomainSeparator;\n            if (_cachedDomainSeparatorInvalidated()) separator = _buildDomainSeparator();\n        }\n    }\n\n    /// @dev Returns the hash of the fully encoded EIP-712 message for this domain,\n    /// given `structHash`, as defined in\n    /// https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct.\n    ///\n    /// The hash can be used together with {ECDSA-recover} to obtain the signer of a message:\n    /// ```\n    ///     bytes32 digest = _hashTypedData(keccak256(abi.encode(\n    ///         keccak256(\"Mail(address to,string contents)\"),\n    ///         mailTo,\n    ///         keccak256(bytes(mailContents))\n    ///     )));\n    ///     address signer = ECDSA.recover(digest, signature);\n    /// ```\n    function _hashTypedData(bytes32 structHash) internal view virtual returns (bytes32 digest) {\n        // We will use `digest` to store the domain separator to save a bit of gas.\n        if (_domainNameAndVersionMayChange()) {\n            digest = _buildDomainSeparator();\n        } else {\n            digest = _cachedDomainSeparator;\n            if (_cachedDomainSeparatorInvalidated()) digest = _buildDomainSeparator();\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the digest.\n            mstore(0x00, 0x1901000000000000) // Store \"\\x19\\x01\".\n            mstore(0x1a, digest) // Store the domain separator.\n            mstore(0x3a, structHash) // Store the struct hash.\n            digest := keccak256(0x18, 0x42)\n            // Restore the part of the free memory slot that was overwritten.\n            mstore(0x3a, 0)\n        }\n    }\n\n    /// @dev Variant of `_hashTypedData` that excludes the chain ID.\n    /// Included for the niche use case of cross-chain workflows.\n    function _hashTypedDataSansChainId(bytes32 structHash)\n        internal\n        view\n        virtual\n        returns (bytes32 digest)\n    {\n        (string memory name, string memory version) = _domainNameAndVersion();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Load the free memory pointer.\n            mstore(0x00, _DOMAIN_TYPEHASH_SANS_CHAIN_ID)\n            mstore(0x20, keccak256(add(name, 0x20), mload(name)))\n            mstore(0x40, keccak256(add(version, 0x20), mload(version)))\n            mstore(0x60, address())\n            // Compute the digest.\n            mstore(0x20, keccak256(0x00, 0x80)) // Store the domain separator.\n            mstore(0x00, 0x1901) // Store \"\\x19\\x01\".\n            mstore(0x40, structHash) // Store the struct hash.\n            digest := keccak256(0x1e, 0x42)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero pointer.\n        }\n    }\n\n    /// @dev Variant of `_hashTypedData` that excludes the chain ID and verifying contract.\n    /// Included for the niche use case of cross-chain and multi-verifier workflows.\n    function _hashTypedDataSansChainIdAndVerifyingContract(bytes32 structHash)\n        internal\n        view\n        virtual\n        returns (bytes32 digest)\n    {\n        (string memory name, string memory version) = _domainNameAndVersion();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Load the free memory pointer.\n            mstore(0x00, _DOMAIN_TYPEHASH_SANS_CHAIN_ID_AND_VERIFYING_CONTRACT)\n            mstore(0x20, keccak256(add(name, 0x20), mload(name)))\n            mstore(0x40, keccak256(add(version, 0x20), mload(version)))\n            // Compute the digest.\n            mstore(0x20, keccak256(0x00, 0x60)) // Store the domain separator.\n            mstore(0x00, 0x1901) // Store \"\\x19\\x01\".\n            mstore(0x40, structHash) // Store the struct hash.\n            digest := keccak256(0x1e, 0x42)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero pointer.\n        }\n    }\n\n    /// @dev Variant of `_hashTypedData` that excludes the chain ID and verifying contract.\n    /// Included for the niche use case of multi-verifier workflows.\n    function _hashTypedDataSansVerifyingContract(bytes32 structHash)\n        internal\n        view\n        virtual\n        returns (bytes32 digest)\n    {\n        (string memory name, string memory version) = _domainNameAndVersion();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Load the free memory pointer.\n            mstore(0x00, _DOMAIN_TYPEHASH_SANS_VERIFYING_CONTRACT)\n            mstore(0x20, keccak256(add(name, 0x20), mload(name)))\n            mstore(0x40, keccak256(add(version, 0x20), mload(version)))\n            mstore(0x60, chainid())\n            // Compute the digest.\n            mstore(0x20, keccak256(0x00, 0x80)) // Store the domain separator.\n            mstore(0x00, 0x1901) // Store \"\\x19\\x01\".\n            mstore(0x40, structHash) // Store the struct hash.\n            digest := keccak256(0x1e, 0x42)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero pointer.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    EIP-5267 OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev See: https://eips.ethereum.org/EIPS/eip-5267\n    function eip712Domain()\n        public\n        view\n        virtual\n        returns (\n            bytes1 fields,\n            string memory name,\n            string memory version,\n            uint256 chainId,\n            address verifyingContract,\n            bytes32 salt,\n            uint256[] memory extensions\n        )\n    {\n        fields = hex\"0f\"; // `0b01111`.\n        (name, version) = _domainNameAndVersion();\n        chainId = block.chainid;\n        verifyingContract = address(this);\n        salt = salt; // `bytes32(0)`.\n        extensions = extensions; // `new uint256[](0)`.\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      PRIVATE HELPERS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the EIP-712 domain separator.\n    function _buildDomainSeparator() private view returns (bytes32 separator) {\n        // We will use `separator` to store the name hash to save a bit of gas.\n        bytes32 versionHash;\n        if (_domainNameAndVersionMayChange()) {\n            (string memory name, string memory version) = _domainNameAndVersion();\n            separator = keccak256(bytes(name));\n            versionHash = keccak256(bytes(version));\n        } else {\n            separator = _cachedNameHash;\n            versionHash = _cachedVersionHash;\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Load the free memory pointer.\n            mstore(m, _DOMAIN_TYPEHASH)\n            mstore(add(m, 0x20), separator) // Name hash.\n            mstore(add(m, 0x40), versionHash)\n            mstore(add(m, 0x60), chainid())\n            mstore(add(m, 0x80), address())\n            separator := keccak256(m, 0xa0)\n        }\n    }\n\n    /// @dev Returns if the cached domain separator has been invalidated.\n    function _cachedDomainSeparatorInvalidated() private view returns (bool result) {\n        uint256 cachedChainId = _cachedChainId;\n        uint256 cachedThis = _cachedThis;\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := iszero(and(eq(chainid(), cachedChainId), eq(address(), cachedThis)))\n        }\n    }\n}\n"},"lib/solady/src/utils/SignatureCheckerLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Signature verification helper that supports both ECDSA signatures from EOAs\n/// and ERC1271 signatures from smart contract wallets like Argent and Gnosis safe.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SignatureCheckerLib.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/SignatureChecker.sol)\n///\n/// @dev Note:\n/// - The signature checking functions use the ecrecover precompile (0x1).\n/// - The `bytes memory signature` variants use the identity precompile (0x4)\n///   to copy memory internally.\n/// - Unlike ECDSA signatures, contract signatures are revocable.\n/// - As of Solady version 0.0.134, all `bytes signature` variants accept both\n///   regular 65-byte `(r, s, v)` and EIP-2098 `(r, vs)` short form signatures.\n///   See: https://eips.ethereum.org/EIPS/eip-2098\n///   This is for calldata efficiency on smart accounts prevalent on L2s.\n///\n/// WARNING! Do NOT use signatures as unique identifiers:\n/// - Use a nonce in the digest to prevent replay attacks on the same contract.\n/// - Use EIP-712 for the digest to prevent replay attacks across different chains and contracts.\n///   EIP-712 also enables readable signing of typed data for better user safety.\n/// This implementation does NOT check if a signature is non-malleable.\nlibrary SignatureCheckerLib {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*               SIGNATURE CHECKING OPERATIONS                */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns whether `signature` is valid for `signer` and `hash`.\n    /// If `signer.code.length == 0`, then validate with `ecrecover`, else\n    /// it will validate with ERC1271 on `signer`.\n    function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature)\n        internal\n        view\n        returns (bool isValid)\n    {\n        if (signer == address(0)) return isValid;\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            for {} 1 {} {\n                if iszero(extcodesize(signer)) {\n                    switch mload(signature)\n                    case 64 {\n                        let vs := mload(add(signature, 0x40))\n                        mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                        mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                    }\n                    case 65 {\n                        mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                        mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                    }\n                    default { break }\n                    mstore(0x00, hash)\n                    mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                    let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                    isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                    mstore(0x60, 0) // Restore the zero slot.\n                    mstore(0x40, m) // Restore the free memory pointer.\n                    break\n                }\n                let f := shl(224, 0x1626ba7e)\n                mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m, 0x04), hash)\n                let d := add(m, 0x24)\n                mstore(d, 0x40) // The offset of the `signature` in the calldata.\n                // Copy the `signature` over.\n                let n := add(0x20, mload(signature))\n                let copied := staticcall(gas(), 4, signature, n, add(m, 0x44), n)\n                isValid := staticcall(gas(), signer, m, add(returndatasize(), 0x44), d, 0x20)\n                isValid := and(eq(mload(d), f), and(isValid, copied))\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether `signature` is valid for `signer` and `hash`.\n    /// If `signer.code.length == 0`, then validate with `ecrecover`, else\n    /// it will validate with ERC1271 on `signer`.\n    function isValidSignatureNowCalldata(address signer, bytes32 hash, bytes calldata signature)\n        internal\n        view\n        returns (bool isValid)\n    {\n        if (signer == address(0)) return isValid;\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            for {} 1 {} {\n                if iszero(extcodesize(signer)) {\n                    switch signature.length\n                    case 64 {\n                        let vs := calldataload(add(signature.offset, 0x20))\n                        mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                        mstore(0x40, calldataload(signature.offset)) // `r`.\n                        mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                    }\n                    case 65 {\n                        mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n                        calldatacopy(0x40, signature.offset, 0x40) // `r`, `s`.\n                    }\n                    default { break }\n                    mstore(0x00, hash)\n                    let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                    isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                    mstore(0x60, 0) // Restore the zero slot.\n                    mstore(0x40, m) // Restore the free memory pointer.\n                    break\n                }\n                let f := shl(224, 0x1626ba7e)\n                mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m, 0x04), hash)\n                let d := add(m, 0x24)\n                mstore(d, 0x40) // The offset of the `signature` in the calldata.\n                mstore(add(m, 0x44), signature.length)\n                // Copy the `signature` over.\n                calldatacopy(add(m, 0x64), signature.offset, signature.length)\n                isValid := staticcall(gas(), signer, m, add(signature.length, 0x64), d, 0x20)\n                isValid := and(eq(mload(d), f), isValid)\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether the signature (`r`, `vs`) is valid for `signer` and `hash`.\n    /// If `signer.code.length == 0`, then validate with `ecrecover`, else\n    /// it will validate with ERC1271 on `signer`.\n    function isValidSignatureNow(address signer, bytes32 hash, bytes32 r, bytes32 vs)\n        internal\n        view\n        returns (bool isValid)\n    {\n        if (signer == address(0)) return isValid;\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            for {} 1 {} {\n                if iszero(extcodesize(signer)) {\n                    mstore(0x00, hash)\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x40, r) // `r`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                    let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                    isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                    mstore(0x60, 0) // Restore the zero slot.\n                    mstore(0x40, m) // Restore the free memory pointer.\n                    break\n                }\n                let f := shl(224, 0x1626ba7e)\n                mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m, 0x04), hash)\n                let d := add(m, 0x24)\n                mstore(d, 0x40) // The offset of the `signature` in the calldata.\n                mstore(add(m, 0x44), 65) // Length of the signature.\n                mstore(add(m, 0x64), r) // `r`.\n                mstore(add(m, 0x84), shr(1, shl(1, vs))) // `s`.\n                mstore8(add(m, 0xa4), add(shr(255, vs), 27)) // `v`.\n                isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n                isValid := and(eq(mload(d), f), isValid)\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether the signature (`v`, `r`, `s`) is valid for `signer` and `hash`.\n    /// If `signer.code.length == 0`, then validate with `ecrecover`, else\n    /// it will validate with ERC1271 on `signer`.\n    function isValidSignatureNow(address signer, bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n        internal\n        view\n        returns (bool isValid)\n    {\n        if (signer == address(0)) return isValid;\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            for {} 1 {} {\n                if iszero(extcodesize(signer)) {\n                    mstore(0x00, hash)\n                    mstore(0x20, and(v, 0xff)) // `v`.\n                    mstore(0x40, r) // `r`.\n                    mstore(0x60, s) // `s`.\n                    let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                    isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                    mstore(0x60, 0) // Restore the zero slot.\n                    mstore(0x40, m) // Restore the free memory pointer.\n                    break\n                }\n                let f := shl(224, 0x1626ba7e)\n                mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m, 0x04), hash)\n                let d := add(m, 0x24)\n                mstore(d, 0x40) // The offset of the `signature` in the calldata.\n                mstore(add(m, 0x44), 65) // Length of the signature.\n                mstore(add(m, 0x64), r) // `r`.\n                mstore(add(m, 0x84), s) // `s`.\n                mstore8(add(m, 0xa4), v) // `v`.\n                isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n                isValid := and(eq(mload(d), f), isValid)\n                break\n            }\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     ERC1271 OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: These ERC1271 operations do NOT have an ECDSA fallback.\n\n    /// @dev Returns whether `signature` is valid for `hash` for an ERC1271 `signer` contract.\n    function isValidERC1271SignatureNow(address signer, bytes32 hash, bytes memory signature)\n        internal\n        view\n        returns (bool isValid)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let f := shl(224, 0x1626ba7e)\n            mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n            mstore(add(m, 0x04), hash)\n            let d := add(m, 0x24)\n            mstore(d, 0x40) // The offset of the `signature` in the calldata.\n            // Copy the `signature` over.\n            let n := add(0x20, mload(signature))\n            let copied := staticcall(gas(), 4, signature, n, add(m, 0x44), n)\n            isValid := staticcall(gas(), signer, m, add(returndatasize(), 0x44), d, 0x20)\n            isValid := and(eq(mload(d), f), and(isValid, copied))\n        }\n    }\n\n    /// @dev Returns whether `signature` is valid for `hash` for an ERC1271 `signer` contract.\n    function isValidERC1271SignatureNowCalldata(\n        address signer,\n        bytes32 hash,\n        bytes calldata signature\n    ) internal view returns (bool isValid) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let f := shl(224, 0x1626ba7e)\n            mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n            mstore(add(m, 0x04), hash)\n            let d := add(m, 0x24)\n            mstore(d, 0x40) // The offset of the `signature` in the calldata.\n            mstore(add(m, 0x44), signature.length)\n            // Copy the `signature` over.\n            calldatacopy(add(m, 0x64), signature.offset, signature.length)\n            isValid := staticcall(gas(), signer, m, add(signature.length, 0x64), d, 0x20)\n            isValid := and(eq(mload(d), f), isValid)\n        }\n    }\n\n    /// @dev Returns whether the signature (`r`, `vs`) is valid for `hash`\n    /// for an ERC1271 `signer` contract.\n    function isValidERC1271SignatureNow(address signer, bytes32 hash, bytes32 r, bytes32 vs)\n        internal\n        view\n        returns (bool isValid)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let f := shl(224, 0x1626ba7e)\n            mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n            mstore(add(m, 0x04), hash)\n            let d := add(m, 0x24)\n            mstore(d, 0x40) // The offset of the `signature` in the calldata.\n            mstore(add(m, 0x44), 65) // Length of the signature.\n            mstore(add(m, 0x64), r) // `r`.\n            mstore(add(m, 0x84), shr(1, shl(1, vs))) // `s`.\n            mstore8(add(m, 0xa4), add(shr(255, vs), 27)) // `v`.\n            isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n            isValid := and(eq(mload(d), f), isValid)\n        }\n    }\n\n    /// @dev Returns whether the signature (`v`, `r`, `s`) is valid for `hash`\n    /// for an ERC1271 `signer` contract.\n    function isValidERC1271SignatureNow(address signer, bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n        internal\n        view\n        returns (bool isValid)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let f := shl(224, 0x1626ba7e)\n            mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n            mstore(add(m, 0x04), hash)\n            let d := add(m, 0x24)\n            mstore(d, 0x40) // The offset of the `signature` in the calldata.\n            mstore(add(m, 0x44), 65) // Length of the signature.\n            mstore(add(m, 0x64), r) // `r`.\n            mstore(add(m, 0x84), s) // `s`.\n            mstore8(add(m, 0xa4), v) // `v`.\n            isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n            isValid := and(eq(mload(d), f), isValid)\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     ERC6492 OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: These ERC6492 operations now include an ECDSA fallback at the very end.\n    // The calldata variants are excluded for brevity.\n\n    /// @dev Returns whether `signature` is valid for `hash`.\n    /// If the signature is postfixed with the ERC6492 magic number, it will attempt to\n    /// deploy / prepare the `signer` smart account before doing a regular ERC1271 check.\n    /// Note: This function is NOT reentrancy safe.\n    /// The verifier must be deployed.\n    /// Otherwise, the function will return false if `signer` is not yet deployed / prepared.\n    /// See: https://gist.github.com/Vectorized/011d6becff6e0a73e42fe100f8d7ef04\n    /// With a dedicated verifier, this function is safe to use in contracts\n    /// that have been granted special permissions.\n    function isValidERC6492SignatureNowAllowSideEffects(\n        address signer,\n        bytes32 hash,\n        bytes memory signature\n    ) internal returns (bool isValid) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            function callIsValidSignature(signer_, hash_, signature_) -> _isValid {\n                let m_ := mload(0x40)\n                let f_ := shl(224, 0x1626ba7e)\n                mstore(m_, f_) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m_, 0x04), hash_)\n                let d_ := add(m_, 0x24)\n                mstore(d_, 0x40) // The offset of the `signature` in the calldata.\n                let n_ := add(0x20, mload(signature_))\n                let copied_ := staticcall(gas(), 4, signature_, n_, add(m_, 0x44), n_)\n                _isValid := staticcall(gas(), signer_, m_, add(returndatasize(), 0x44), d_, 0x20)\n                _isValid := and(eq(mload(d_), f_), and(_isValid, copied_))\n            }\n            let noCode := iszero(extcodesize(signer))\n            let n := mload(signature)\n            for {} 1 {} {\n                if iszero(eq(mload(add(signature, n)), mul(0x6492, div(not(isValid), 0xffff)))) {\n                    if iszero(noCode) { isValid := callIsValidSignature(signer, hash, signature) }\n                    break\n                }\n                if iszero(noCode) {\n                    let o := add(signature, 0x20) // Signature bytes.\n                    isValid := callIsValidSignature(signer, hash, add(o, mload(add(o, 0x40))))\n                    if isValid { break }\n                }\n                let m := mload(0x40)\n                mstore(m, signer)\n                mstore(add(m, 0x20), hash)\n                pop(\n                    call(\n                        gas(), // Remaining gas.\n                        0x0000bc370E4DC924F427d84e2f4B9Ec81626ba7E, // Non-reverting verifier.\n                        0, // Send zero ETH.\n                        m, // Start of memory.\n                        add(returndatasize(), 0x40), // Length of calldata in memory.\n                        staticcall(gas(), 4, add(signature, 0x20), n, add(m, 0x40), n), // 1.\n                        0x00 // Length of returndata to write.\n                    )\n                )\n                isValid := returndatasize()\n                break\n            }\n            // Do `ecrecover` fallback if `noCode && !isValid`.\n            for {} gt(noCode, isValid) {} {\n                switch n\n                case 64 {\n                    let vs := mload(add(signature, 0x40))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                    mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                }\n                default { break }\n                let m := mload(0x40)\n                mstore(0x00, hash)\n                mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                mstore(0x60, 0) // Restore the zero slot.\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether `signature` is valid for `hash`.\n    /// If the signature is postfixed with the ERC6492 magic number, it will attempt\n    /// to use a reverting verifier to deploy / prepare the `signer` smart account\n    /// and do a `isValidSignature` check via the reverting verifier.\n    /// Note: This function is reentrancy safe.\n    /// The reverting verifier must be deployed.\n    /// Otherwise, the function will return false if `signer` is not yet deployed / prepared.\n    /// See: https://gist.github.com/Vectorized/846a474c855eee9e441506676800a9ad\n    function isValidERC6492SignatureNow(address signer, bytes32 hash, bytes memory signature)\n        internal\n        returns (bool isValid)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            function callIsValidSignature(signer_, hash_, signature_) -> _isValid {\n                let m_ := mload(0x40)\n                let f_ := shl(224, 0x1626ba7e)\n                mstore(m_, f_) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m_, 0x04), hash_)\n                let d_ := add(m_, 0x24)\n                mstore(d_, 0x40) // The offset of the `signature` in the calldata.\n                let n_ := add(0x20, mload(signature_))\n                let copied_ := staticcall(gas(), 4, signature_, n_, add(m_, 0x44), n_)\n                _isValid := staticcall(gas(), signer_, m_, add(returndatasize(), 0x44), d_, 0x20)\n                _isValid := and(eq(mload(d_), f_), and(_isValid, copied_))\n            }\n            let noCode := iszero(extcodesize(signer))\n            let n := mload(signature)\n            for {} 1 {} {\n                if iszero(eq(mload(add(signature, n)), mul(0x6492, div(not(isValid), 0xffff)))) {\n                    if iszero(noCode) { isValid := callIsValidSignature(signer, hash, signature) }\n                    break\n                }\n                if iszero(noCode) {\n                    let o := add(signature, 0x20) // Signature bytes.\n                    isValid := callIsValidSignature(signer, hash, add(o, mload(add(o, 0x40))))\n                    if isValid { break }\n                }\n                let m := mload(0x40)\n                mstore(m, signer)\n                mstore(add(m, 0x20), hash)\n                let willBeZeroIfRevertingVerifierExists :=\n                    call(\n                        gas(), // Remaining gas.\n                        0x00007bd799e4A591FeA53f8A8a3E9f931626Ba7e, // Reverting verifier.\n                        0, // Send zero ETH.\n                        m, // Start of memory.\n                        add(returndatasize(), 0x40), // Length of calldata in memory.\n                        staticcall(gas(), 4, add(signature, 0x20), n, add(m, 0x40), n), // 1.\n                        0x00 // Length of returndata to write.\n                    )\n                isValid := gt(returndatasize(), willBeZeroIfRevertingVerifierExists)\n                break\n            }\n            // Do `ecrecover` fallback if `noCode && !isValid`.\n            for {} gt(noCode, isValid) {} {\n                switch n\n                case 64 {\n                    let vs := mload(add(signature, 0x40))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                    mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                }\n                default { break }\n                let m := mload(0x40)\n                mstore(0x00, hash)\n                mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                mstore(0x60, 0) // Restore the zero slot.\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     HASHING OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns an Ethereum Signed Message, created from a `hash`.\n    /// This produces a hash corresponding to the one signed with the\n    /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign)\n    /// JSON-RPC method as part of EIP-191.\n    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x20, hash) // Store into scratch space for keccak256.\n            mstore(0x00, \"\\x00\\x00\\x00\\x00\\x19Ethereum Signed Message:\\n32\") // 28 bytes.\n            result := keccak256(0x04, 0x3c) // `32 * 2 - (32 - 28) = 60 = 0x3c`.\n        }\n    }\n\n    /// @dev Returns an Ethereum Signed Message, created from `s`.\n    /// This produces a hash corresponding to the one signed with the\n    /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign)\n    /// JSON-RPC method as part of EIP-191.\n    /// Note: Supports lengths of `s` up to 999999 bytes.\n    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let sLength := mload(s)\n            let o := 0x20\n            mstore(o, \"\\x19Ethereum Signed Message:\\n\") // 26 bytes, zero-right-padded.\n            mstore(0x00, 0x00)\n            // Convert the `s.length` to ASCII decimal representation: `base10(s.length)`.\n            for { let temp := sLength } 1 {} {\n                o := sub(o, 1)\n                mstore8(o, add(48, mod(temp, 10)))\n                temp := div(temp, 10)\n                if iszero(temp) { break }\n            }\n            let n := sub(0x3a, o) // Header length: `26 + 32 - o`.\n            // Throw an out-of-offset error (consumes all gas) if the header exceeds 32 bytes.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0x20))\n            mstore(s, or(mload(0x00), mload(n))) // Temporarily store the header.\n            result := keccak256(add(s, sub(0x20, n)), add(n, sLength))\n            mstore(s, sLength) // Restore the length.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   EMPTY CALLDATA HELPERS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns an empty calldata bytes.\n    function emptySignature() internal pure returns (bytes calldata signature) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            signature.length := 0\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Panic.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n *      using Panic for uint256;\n *\n *      // Use any of the declared internal constants\n *      function foo() { Panic.GENERIC.panic(); }\n *\n *      // Alternatively\n *      function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n    /// @dev generic / unspecified error\n    uint256 internal constant GENERIC = 0x00;\n    /// @dev used by the assert() builtin\n    uint256 internal constant ASSERT = 0x01;\n    /// @dev arithmetic underflow or overflow\n    uint256 internal constant UNDER_OVERFLOW = 0x11;\n    /// @dev division or modulo by zero\n    uint256 internal constant DIVISION_BY_ZERO = 0x12;\n    /// @dev enum conversion error\n    uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n    /// @dev invalid encoding in storage\n    uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n    /// @dev empty array pop\n    uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n    /// @dev array out of bounds access\n    uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n    /// @dev resource error (too large allocation or too large array)\n    uint256 internal constant RESOURCE_ERROR = 0x41;\n    /// @dev calling invalid internal function\n    uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n    /// @dev Reverts with a panic code. Recommended to use with\n    /// the internal constants with predefined codes.\n    function panic(uint256 code) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0x00, 0x4e487b71)\n            mstore(0x20, code)\n            revert(0x1c, 0x24)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow\n * checks.\n *\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n * easily result in undesired exploitation or bugs, since developers usually\n * assume that overflows raise errors. `SafeCast` restores this intuition by\n * reverting the transaction when such an operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeCast {\n    /**\n     * @dev Value doesn't fit in a uint of `bits` size.\n     */\n    error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n    /**\n     * @dev An int value doesn't fit in a uint of `bits` size.\n     */\n    error SafeCastOverflowedIntToUint(int256 value);\n\n    /**\n     * @dev Value doesn't fit in an int of `bits` size.\n     */\n    error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n    /**\n     * @dev A uint value doesn't fit in an int of `bits` size.\n     */\n    error SafeCastOverflowedUintToInt(uint256 value);\n\n    /**\n     * @dev Returns the downcasted uint248 from uint256, reverting on\n     * overflow (when the input is greater than largest uint248).\n     *\n     * Counterpart to Solidity's `uint248` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 248 bits\n     */\n    function toUint248(uint256 value) internal pure returns (uint248) {\n        if (value > type(uint248).max) {\n            revert SafeCastOverflowedUintDowncast(248, value);\n        }\n        return uint248(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint240 from uint256, reverting on\n     * overflow (when the input is greater than largest uint240).\n     *\n     * Counterpart to Solidity's `uint240` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 240 bits\n     */\n    function toUint240(uint256 value) internal pure returns (uint240) {\n        if (value > type(uint240).max) {\n            revert SafeCastOverflowedUintDowncast(240, value);\n        }\n        return uint240(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint232 from uint256, reverting on\n     * overflow (when the input is greater than largest uint232).\n     *\n     * Counterpart to Solidity's `uint232` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 232 bits\n     */\n    function toUint232(uint256 value) internal pure returns (uint232) {\n        if (value > type(uint232).max) {\n            revert SafeCastOverflowedUintDowncast(232, value);\n        }\n        return uint232(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint224 from uint256, reverting on\n     * overflow (when the input is greater than largest uint224).\n     *\n     * Counterpart to Solidity's `uint224` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 224 bits\n     */\n    function toUint224(uint256 value) internal pure returns (uint224) {\n        if (value > type(uint224).max) {\n            revert SafeCastOverflowedUintDowncast(224, value);\n        }\n        return uint224(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint216 from uint256, reverting on\n     * overflow (when the input is greater than largest uint216).\n     *\n     * Counterpart to Solidity's `uint216` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 216 bits\n     */\n    function toUint216(uint256 value) internal pure returns (uint216) {\n        if (value > type(uint216).max) {\n            revert SafeCastOverflowedUintDowncast(216, value);\n        }\n        return uint216(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint208 from uint256, reverting on\n     * overflow (when the input is greater than largest uint208).\n     *\n     * Counterpart to Solidity's `uint208` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 208 bits\n     */\n    function toUint208(uint256 value) internal pure returns (uint208) {\n        if (value > type(uint208).max) {\n            revert SafeCastOverflowedUintDowncast(208, value);\n        }\n        return uint208(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint200 from uint256, reverting on\n     * overflow (when the input is greater than largest uint200).\n     *\n     * Counterpart to Solidity's `uint200` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 200 bits\n     */\n    function toUint200(uint256 value) internal pure returns (uint200) {\n        if (value > type(uint200).max) {\n            revert SafeCastOverflowedUintDowncast(200, value);\n        }\n        return uint200(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint192 from uint256, reverting on\n     * overflow (when the input is greater than largest uint192).\n     *\n     * Counterpart to Solidity's `uint192` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 192 bits\n     */\n    function toUint192(uint256 value) internal pure returns (uint192) {\n        if (value > type(uint192).max) {\n            revert SafeCastOverflowedUintDowncast(192, value);\n        }\n        return uint192(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint184 from uint256, reverting on\n     * overflow (when the input is greater than largest uint184).\n     *\n     * Counterpart to Solidity's `uint184` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 184 bits\n     */\n    function toUint184(uint256 value) internal pure returns (uint184) {\n        if (value > type(uint184).max) {\n            revert SafeCastOverflowedUintDowncast(184, value);\n        }\n        return uint184(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint176 from uint256, reverting on\n     * overflow (when the input is greater than largest uint176).\n     *\n     * Counterpart to Solidity's `uint176` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 176 bits\n     */\n    function toUint176(uint256 value) internal pure returns (uint176) {\n        if (value > type(uint176).max) {\n            revert SafeCastOverflowedUintDowncast(176, value);\n        }\n        return uint176(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint168 from uint256, reverting on\n     * overflow (when the input is greater than largest uint168).\n     *\n     * Counterpart to Solidity's `uint168` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 168 bits\n     */\n    function toUint168(uint256 value) internal pure returns (uint168) {\n        if (value > type(uint168).max) {\n            revert SafeCastOverflowedUintDowncast(168, value);\n        }\n        return uint168(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint160 from uint256, reverting on\n     * overflow (when the input is greater than largest uint160).\n     *\n     * Counterpart to Solidity's `uint160` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 160 bits\n     */\n    function toUint160(uint256 value) internal pure returns (uint160) {\n        if (value > type(uint160).max) {\n            revert SafeCastOverflowedUintDowncast(160, value);\n        }\n        return uint160(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint152 from uint256, reverting on\n     * overflow (when the input is greater than largest uint152).\n     *\n     * Counterpart to Solidity's `uint152` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 152 bits\n     */\n    function toUint152(uint256 value) internal pure returns (uint152) {\n        if (value > type(uint152).max) {\n            revert SafeCastOverflowedUintDowncast(152, value);\n        }\n        return uint152(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint144 from uint256, reverting on\n     * overflow (when the input is greater than largest uint144).\n     *\n     * Counterpart to Solidity's `uint144` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 144 bits\n     */\n    function toUint144(uint256 value) internal pure returns (uint144) {\n        if (value > type(uint144).max) {\n            revert SafeCastOverflowedUintDowncast(144, value);\n        }\n        return uint144(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint136 from uint256, reverting on\n     * overflow (when the input is greater than largest uint136).\n     *\n     * Counterpart to Solidity's `uint136` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 136 bits\n     */\n    function toUint136(uint256 value) internal pure returns (uint136) {\n        if (value > type(uint136).max) {\n            revert SafeCastOverflowedUintDowncast(136, value);\n        }\n        return uint136(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint128 from uint256, reverting on\n     * overflow (when the input is greater than largest uint128).\n     *\n     * Counterpart to Solidity's `uint128` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 128 bits\n     */\n    function toUint128(uint256 value) internal pure returns (uint128) {\n        if (value > type(uint128).max) {\n            revert SafeCastOverflowedUintDowncast(128, value);\n        }\n        return uint128(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint120 from uint256, reverting on\n     * overflow (when the input is greater than largest uint120).\n     *\n     * Counterpart to Solidity's `uint120` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 120 bits\n     */\n    function toUint120(uint256 value) internal pure returns (uint120) {\n        if (value > type(uint120).max) {\n            revert SafeCastOverflowedUintDowncast(120, value);\n        }\n        return uint120(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint112 from uint256, reverting on\n     * overflow (when the input is greater than largest uint112).\n     *\n     * Counterpart to Solidity's `uint112` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 112 bits\n     */\n    function toUint112(uint256 value) internal pure returns (uint112) {\n        if (value > type(uint112).max) {\n            revert SafeCastOverflowedUintDowncast(112, value);\n        }\n        return uint112(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint104 from uint256, reverting on\n     * overflow (when the input is greater than largest uint104).\n     *\n     * Counterpart to Solidity's `uint104` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 104 bits\n     */\n    function toUint104(uint256 value) internal pure returns (uint104) {\n        if (value > type(uint104).max) {\n            revert SafeCastOverflowedUintDowncast(104, value);\n        }\n        return uint104(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint96 from uint256, reverting on\n     * overflow (when the input is greater than largest uint96).\n     *\n     * Counterpart to Solidity's `uint96` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 96 bits\n     */\n    function toUint96(uint256 value) internal pure returns (uint96) {\n        if (value > type(uint96).max) {\n            revert SafeCastOverflowedUintDowncast(96, value);\n        }\n        return uint96(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint88 from uint256, reverting on\n     * overflow (when the input is greater than largest uint88).\n     *\n     * Counterpart to Solidity's `uint88` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 88 bits\n     */\n    function toUint88(uint256 value) internal pure returns (uint88) {\n        if (value > type(uint88).max) {\n            revert SafeCastOverflowedUintDowncast(88, value);\n        }\n        return uint88(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint80 from uint256, reverting on\n     * overflow (when the input is greater than largest uint80).\n     *\n     * Counterpart to Solidity's `uint80` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 80 bits\n     */\n    function toUint80(uint256 value) internal pure returns (uint80) {\n        if (value > type(uint80).max) {\n            revert SafeCastOverflowedUintDowncast(80, value);\n        }\n        return uint80(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint72 from uint256, reverting on\n     * overflow (when the input is greater than largest uint72).\n     *\n     * Counterpart to Solidity's `uint72` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 72 bits\n     */\n    function toUint72(uint256 value) internal pure returns (uint72) {\n        if (value > type(uint72).max) {\n            revert SafeCastOverflowedUintDowncast(72, value);\n        }\n        return uint72(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint64 from uint256, reverting on\n     * overflow (when the input is greater than largest uint64).\n     *\n     * Counterpart to Solidity's `uint64` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 64 bits\n     */\n    function toUint64(uint256 value) internal pure returns (uint64) {\n        if (value > type(uint64).max) {\n            revert SafeCastOverflowedUintDowncast(64, value);\n        }\n        return uint64(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint56 from uint256, reverting on\n     * overflow (when the input is greater than largest uint56).\n     *\n     * Counterpart to Solidity's `uint56` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 56 bits\n     */\n    function toUint56(uint256 value) internal pure returns (uint56) {\n        if (value > type(uint56).max) {\n            revert SafeCastOverflowedUintDowncast(56, value);\n        }\n        return uint56(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint48 from uint256, reverting on\n     * overflow (when the input is greater than largest uint48).\n     *\n     * Counterpart to Solidity's `uint48` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 48 bits\n     */\n    function toUint48(uint256 value) internal pure returns (uint48) {\n        if (value > type(uint48).max) {\n            revert SafeCastOverflowedUintDowncast(48, value);\n        }\n        return uint48(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint40 from uint256, reverting on\n     * overflow (when the input is greater than largest uint40).\n     *\n     * Counterpart to Solidity's `uint40` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 40 bits\n     */\n    function toUint40(uint256 value) internal pure returns (uint40) {\n        if (value > type(uint40).max) {\n            revert SafeCastOverflowedUintDowncast(40, value);\n        }\n        return uint40(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint32 from uint256, reverting on\n     * overflow (when the input is greater than largest uint32).\n     *\n     * Counterpart to Solidity's `uint32` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 32 bits\n     */\n    function toUint32(uint256 value) internal pure returns (uint32) {\n        if (value > type(uint32).max) {\n            revert SafeCastOverflowedUintDowncast(32, value);\n        }\n        return uint32(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint24 from uint256, reverting on\n     * overflow (when the input is greater than largest uint24).\n     *\n     * Counterpart to Solidity's `uint24` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 24 bits\n     */\n    function toUint24(uint256 value) internal pure returns (uint24) {\n        if (value > type(uint24).max) {\n            revert SafeCastOverflowedUintDowncast(24, value);\n        }\n        return uint24(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint16 from uint256, reverting on\n     * overflow (when the input is greater than largest uint16).\n     *\n     * Counterpart to Solidity's `uint16` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 16 bits\n     */\n    function toUint16(uint256 value) internal pure returns (uint16) {\n        if (value > type(uint16).max) {\n            revert SafeCastOverflowedUintDowncast(16, value);\n        }\n        return uint16(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint8 from uint256, reverting on\n     * overflow (when the input is greater than largest uint8).\n     *\n     * Counterpart to Solidity's `uint8` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 8 bits\n     */\n    function toUint8(uint256 value) internal pure returns (uint8) {\n        if (value > type(uint8).max) {\n            revert SafeCastOverflowedUintDowncast(8, value);\n        }\n        return uint8(value);\n    }\n\n    /**\n     * @dev Converts a signed int256 into an unsigned uint256.\n     *\n     * Requirements:\n     *\n     * - input must be greater than or equal to 0.\n     */\n    function toUint256(int256 value) internal pure returns (uint256) {\n        if (value < 0) {\n            revert SafeCastOverflowedIntToUint(value);\n        }\n        return uint256(value);\n    }\n\n    /**\n     * @dev Returns the downcasted int248 from int256, reverting on\n     * overflow (when the input is less than smallest int248 or\n     * greater than largest int248).\n     *\n     * Counterpart to Solidity's `int248` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 248 bits\n     */\n    function toInt248(int256 value) internal pure returns (int248 downcasted) {\n        downcasted = int248(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(248, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int240 from int256, reverting on\n     * overflow (when the input is less than smallest int240 or\n     * greater than largest int240).\n     *\n     * Counterpart to Solidity's `int240` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 240 bits\n     */\n    function toInt240(int256 value) internal pure returns (int240 downcasted) {\n        downcasted = int240(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(240, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int232 from int256, reverting on\n     * overflow (when the input is less than smallest int232 or\n     * greater than largest int232).\n     *\n     * Counterpart to Solidity's `int232` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 232 bits\n     */\n    function toInt232(int256 value) internal pure returns (int232 downcasted) {\n        downcasted = int232(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(232, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int224 from int256, reverting on\n     * overflow (when the input is less than smallest int224 or\n     * greater than largest int224).\n     *\n     * Counterpart to Solidity's `int224` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 224 bits\n     */\n    function toInt224(int256 value) internal pure returns (int224 downcasted) {\n        downcasted = int224(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(224, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int216 from int256, reverting on\n     * overflow (when the input is less than smallest int216 or\n     * greater than largest int216).\n     *\n     * Counterpart to Solidity's `int216` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 216 bits\n     */\n    function toInt216(int256 value) internal pure returns (int216 downcasted) {\n        downcasted = int216(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(216, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int208 from int256, reverting on\n     * overflow (when the input is less than smallest int208 or\n     * greater than largest int208).\n     *\n     * Counterpart to Solidity's `int208` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 208 bits\n     */\n    function toInt208(int256 value) internal pure returns (int208 downcasted) {\n        downcasted = int208(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(208, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int200 from int256, reverting on\n     * overflow (when the input is less than smallest int200 or\n     * greater than largest int200).\n     *\n     * Counterpart to Solidity's `int200` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 200 bits\n     */\n    function toInt200(int256 value) internal pure returns (int200 downcasted) {\n        downcasted = int200(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(200, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int192 from int256, reverting on\n     * overflow (when the input is less than smallest int192 or\n     * greater than largest int192).\n     *\n     * Counterpart to Solidity's `int192` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 192 bits\n     */\n    function toInt192(int256 value) internal pure returns (int192 downcasted) {\n        downcasted = int192(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(192, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int184 from int256, reverting on\n     * overflow (when the input is less than smallest int184 or\n     * greater than largest int184).\n     *\n     * Counterpart to Solidity's `int184` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 184 bits\n     */\n    function toInt184(int256 value) internal pure returns (int184 downcasted) {\n        downcasted = int184(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(184, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int176 from int256, reverting on\n     * overflow (when the input is less than smallest int176 or\n     * greater than largest int176).\n     *\n     * Counterpart to Solidity's `int176` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 176 bits\n     */\n    function toInt176(int256 value) internal pure returns (int176 downcasted) {\n        downcasted = int176(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(176, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int168 from int256, reverting on\n     * overflow (when the input is less than smallest int168 or\n     * greater than largest int168).\n     *\n     * Counterpart to Solidity's `int168` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 168 bits\n     */\n    function toInt168(int256 value) internal pure returns (int168 downcasted) {\n        downcasted = int168(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(168, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int160 from int256, reverting on\n     * overflow (when the input is less than smallest int160 or\n     * greater than largest int160).\n     *\n     * Counterpart to Solidity's `int160` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 160 bits\n     */\n    function toInt160(int256 value) internal pure returns (int160 downcasted) {\n        downcasted = int160(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(160, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int152 from int256, reverting on\n     * overflow (when the input is less than smallest int152 or\n     * greater than largest int152).\n     *\n     * Counterpart to Solidity's `int152` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 152 bits\n     */\n    function toInt152(int256 value) internal pure returns (int152 downcasted) {\n        downcasted = int152(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(152, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int144 from int256, reverting on\n     * overflow (when the input is less than smallest int144 or\n     * greater than largest int144).\n     *\n     * Counterpart to Solidity's `int144` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 144 bits\n     */\n    function toInt144(int256 value) internal pure returns (int144 downcasted) {\n        downcasted = int144(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(144, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int136 from int256, reverting on\n     * overflow (when the input is less than smallest int136 or\n     * greater than largest int136).\n     *\n     * Counterpart to Solidity's `int136` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 136 bits\n     */\n    function toInt136(int256 value) internal pure returns (int136 downcasted) {\n        downcasted = int136(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(136, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int128 from int256, reverting on\n     * overflow (when the input is less than smallest int128 or\n     * greater than largest int128).\n     *\n     * Counterpart to Solidity's `int128` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 128 bits\n     */\n    function toInt128(int256 value) internal pure returns (int128 downcasted) {\n        downcasted = int128(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(128, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int120 from int256, reverting on\n     * overflow (when the input is less than smallest int120 or\n     * greater than largest int120).\n     *\n     * Counterpart to Solidity's `int120` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 120 bits\n     */\n    function toInt120(int256 value) internal pure returns (int120 downcasted) {\n        downcasted = int120(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(120, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int112 from int256, reverting on\n     * overflow (when the input is less than smallest int112 or\n     * greater than largest int112).\n     *\n     * Counterpart to Solidity's `int112` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 112 bits\n     */\n    function toInt112(int256 value) internal pure returns (int112 downcasted) {\n        downcasted = int112(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(112, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int104 from int256, reverting on\n     * overflow (when the input is less than smallest int104 or\n     * greater than largest int104).\n     *\n     * Counterpart to Solidity's `int104` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 104 bits\n     */\n    function toInt104(int256 value) internal pure returns (int104 downcasted) {\n        downcasted = int104(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(104, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int96 from int256, reverting on\n     * overflow (when the input is less than smallest int96 or\n     * greater than largest int96).\n     *\n     * Counterpart to Solidity's `int96` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 96 bits\n     */\n    function toInt96(int256 value) internal pure returns (int96 downcasted) {\n        downcasted = int96(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(96, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int88 from int256, reverting on\n     * overflow (when the input is less than smallest int88 or\n     * greater than largest int88).\n     *\n     * Counterpart to Solidity's `int88` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 88 bits\n     */\n    function toInt88(int256 value) internal pure returns (int88 downcasted) {\n        downcasted = int88(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(88, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int80 from int256, reverting on\n     * overflow (when the input is less than smallest int80 or\n     * greater than largest int80).\n     *\n     * Counterpart to Solidity's `int80` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 80 bits\n     */\n    function toInt80(int256 value) internal pure returns (int80 downcasted) {\n        downcasted = int80(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(80, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int72 from int256, reverting on\n     * overflow (when the input is less than smallest int72 or\n     * greater than largest int72).\n     *\n     * Counterpart to Solidity's `int72` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 72 bits\n     */\n    function toInt72(int256 value) internal pure returns (int72 downcasted) {\n        downcasted = int72(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(72, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int64 from int256, reverting on\n     * overflow (when the input is less than smallest int64 or\n     * greater than largest int64).\n     *\n     * Counterpart to Solidity's `int64` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 64 bits\n     */\n    function toInt64(int256 value) internal pure returns (int64 downcasted) {\n        downcasted = int64(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(64, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int56 from int256, reverting on\n     * overflow (when the input is less than smallest int56 or\n     * greater than largest int56).\n     *\n     * Counterpart to Solidity's `int56` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 56 bits\n     */\n    function toInt56(int256 value) internal pure returns (int56 downcasted) {\n        downcasted = int56(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(56, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int48 from int256, reverting on\n     * overflow (when the input is less than smallest int48 or\n     * greater than largest int48).\n     *\n     * Counterpart to Solidity's `int48` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 48 bits\n     */\n    function toInt48(int256 value) internal pure returns (int48 downcasted) {\n        downcasted = int48(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(48, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int40 from int256, reverting on\n     * overflow (when the input is less than smallest int40 or\n     * greater than largest int40).\n     *\n     * Counterpart to Solidity's `int40` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 40 bits\n     */\n    function toInt40(int256 value) internal pure returns (int40 downcasted) {\n        downcasted = int40(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(40, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int32 from int256, reverting on\n     * overflow (when the input is less than smallest int32 or\n     * greater than largest int32).\n     *\n     * Counterpart to Solidity's `int32` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 32 bits\n     */\n    function toInt32(int256 value) internal pure returns (int32 downcasted) {\n        downcasted = int32(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(32, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int24 from int256, reverting on\n     * overflow (when the input is less than smallest int24 or\n     * greater than largest int24).\n     *\n     * Counterpart to Solidity's `int24` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 24 bits\n     */\n    function toInt24(int256 value) internal pure returns (int24 downcasted) {\n        downcasted = int24(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(24, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int16 from int256, reverting on\n     * overflow (when the input is less than smallest int16 or\n     * greater than largest int16).\n     *\n     * Counterpart to Solidity's `int16` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 16 bits\n     */\n    function toInt16(int256 value) internal pure returns (int16 downcasted) {\n        downcasted = int16(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(16, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int8 from int256, reverting on\n     * overflow (when the input is less than smallest int8 or\n     * greater than largest int8).\n     *\n     * Counterpart to Solidity's `int8` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 8 bits\n     */\n    function toInt8(int256 value) internal pure returns (int8 downcasted) {\n        downcasted = int8(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(8, value);\n        }\n    }\n\n    /**\n     * @dev Converts an unsigned uint256 into a signed int256.\n     *\n     * Requirements:\n     *\n     * - input must be less than or equal to maxInt256.\n     */\n    function toInt256(uint256 value) internal pure returns (int256) {\n        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\n        if (value > uint256(type(int256).max)) {\n            revert SafeCastOverflowedUintToInt(value);\n        }\n        return int256(value);\n    }\n\n    /**\n     * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n     */\n    function toUint(bool b) internal pure returns (uint256 u) {\n        assembly (\"memory-safe\") {\n            u := iszero(iszero(b))\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n    /**\n     * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n     *\n     * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n     * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n     * one branch when needed, making this function more expensive.\n     */\n    function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n        unchecked {\n            // branchless ternary works because:\n            // b ^ (a ^ b) == a\n            // b ^ 0 == b\n            return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n        }\n    }\n\n    /**\n     * @dev Returns the largest of two signed numbers.\n     */\n    function max(int256 a, int256 b) internal pure returns (int256) {\n        return ternary(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 ternary(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            // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n            // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n            // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n            // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n            // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n            int256 mask = n >> 255;\n\n            // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n            return uint256((n + mask) ^ mask);\n        }\n    }\n}\n"},"lib/solady/src/auth/OwnableRoles.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport {Ownable} from \"./Ownable.sol\";\n\n/// @notice Simple single owner and multiroles authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/OwnableRoles.sol)\n///\n/// @dev Note:\n/// This implementation does NOT auto-initialize the owner to `msg.sender`.\n/// You MUST call the `_initializeOwner` in the constructor / initializer.\n///\n/// While the ownable portion follows\n/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,\n/// the nomenclature for the 2-step ownership handover may be unique to this codebase.\nabstract contract OwnableRoles is Ownable {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The `user`'s roles is updated to `roles`.\n    /// Each bit of `roles` represents whether the role is set.\n    event RolesUpdated(address indexed user, uint256 indexed roles);\n\n    /// @dev `keccak256(bytes(\"RolesUpdated(address,uint256)\"))`.\n    uint256 private constant _ROLES_UPDATED_EVENT_SIGNATURE =\n        0x715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The role slot of `user` is given by:\n    /// ```\n    ///     mstore(0x00, or(shl(96, user), _ROLE_SLOT_SEED))\n    ///     let roleSlot := keccak256(0x00, 0x20)\n    /// ```\n    /// This automatically ignores the upper bits of the `user` in case\n    /// they are not clean, as well as keep the `keccak256` under 32-bytes.\n    ///\n    /// Note: This is equivalent to `uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))`.\n    uint256 private constant _ROLE_SLOT_SEED = 0x8b78c6d8;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     INTERNAL FUNCTIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Overwrite the roles directly without authorization guard.\n    function _setRoles(address user, uint256 roles) internal virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, user)\n            // Store the new value.\n            sstore(keccak256(0x0c, 0x20), roles)\n            // Emit the {RolesUpdated} event.\n            log3(0, 0, _ROLES_UPDATED_EVENT_SIGNATURE, shr(96, mload(0x0c)), roles)\n        }\n    }\n\n    /// @dev Updates the roles directly without authorization guard.\n    /// If `on` is true, each set bit of `roles` will be turned on,\n    /// otherwise, each set bit of `roles` will be turned off.\n    function _updateRoles(address user, uint256 roles, bool on) internal virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, user)\n            let roleSlot := keccak256(0x0c, 0x20)\n            // Load the current value.\n            let current := sload(roleSlot)\n            // Compute the updated roles if `on` is true.\n            let updated := or(current, roles)\n            // Compute the updated roles if `on` is false.\n            // Use `and` to compute the intersection of `current` and `roles`,\n            // `xor` it with `current` to flip the bits in the intersection.\n            if iszero(on) { updated := xor(current, and(current, roles)) }\n            // Then, store the new value.\n            sstore(roleSlot, updated)\n            // Emit the {RolesUpdated} event.\n            log3(0, 0, _ROLES_UPDATED_EVENT_SIGNATURE, shr(96, mload(0x0c)), updated)\n        }\n    }\n\n    /// @dev Grants the roles directly without authorization guard.\n    /// Each bit of `roles` represents the role to turn on.\n    function _grantRoles(address user, uint256 roles) internal virtual {\n        _updateRoles(user, roles, true);\n    }\n\n    /// @dev Removes the roles directly without authorization guard.\n    /// Each bit of `roles` represents the role to turn off.\n    function _removeRoles(address user, uint256 roles) internal virtual {\n        _updateRoles(user, roles, false);\n    }\n\n    /// @dev Throws if the sender does not have any of the `roles`.\n    function _checkRoles(uint256 roles) internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the role slot.\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, caller())\n            // Load the stored value, and if the `and` intersection\n            // of the value and `roles` is zero, revert.\n            if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n                mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Throws if the sender is not the owner,\n    /// and does not have any of the `roles`.\n    /// Checks for ownership first, then lazily checks for roles.\n    function _checkOwnerOrRoles(uint256 roles) internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // If the caller is not the stored owner.\n            // Note: `_ROLE_SLOT_SEED` is equal to `_OWNER_SLOT_NOT`.\n            if iszero(eq(caller(), sload(not(_ROLE_SLOT_SEED)))) {\n                // Compute the role slot.\n                mstore(0x0c, _ROLE_SLOT_SEED)\n                mstore(0x00, caller())\n                // Load the stored value, and if the `and` intersection\n                // of the value and `roles` is zero, revert.\n                if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n                    mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Throws if the sender does not have any of the `roles`,\n    /// and is not the owner.\n    /// Checks for roles first, then lazily checks for ownership.\n    function _checkRolesOrOwner(uint256 roles) internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the role slot.\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, caller())\n            // Load the stored value, and if the `and` intersection\n            // of the value and `roles` is zero, revert.\n            if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n                // If the caller is not the stored owner.\n                // Note: `_ROLE_SLOT_SEED` is equal to `_OWNER_SLOT_NOT`.\n                if iszero(eq(caller(), sload(not(_ROLE_SLOT_SEED)))) {\n                    mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Convenience function to return a `roles` bitmap from an array of `ordinals`.\n    /// This is meant for frontends like Etherscan, and is therefore not fully optimized.\n    /// Not recommended to be called on-chain.\n    /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n    function _rolesFromOrdinals(uint8[] memory ordinals) internal pure returns (uint256 roles) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let i := shl(5, mload(ordinals)) } i { i := sub(i, 0x20) } {\n                // We don't need to mask the values of `ordinals`, as Solidity\n                // cleans dirty upper bits when storing variables into memory.\n                roles := or(shl(mload(add(ordinals, i)), 1), roles)\n            }\n        }\n    }\n\n    /// @dev Convenience function to return an array of `ordinals` from the `roles` bitmap.\n    /// This is meant for frontends like Etherscan, and is therefore not fully optimized.\n    /// Not recommended to be called on-chain.\n    /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n    function _ordinalsFromRoles(uint256 roles) internal pure returns (uint8[] memory ordinals) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Grab the pointer to the free memory.\n            ordinals := mload(0x40)\n            let ptr := add(ordinals, 0x20)\n            let o := 0\n            // The absence of lookup tables, De Bruijn, etc., here is intentional for\n            // smaller bytecode, as this function is not meant to be called on-chain.\n            for { let t := roles } 1 {} {\n                mstore(ptr, o)\n                // `shr` 5 is equivalent to multiplying by 0x20.\n                // Push back into the ordinals array if the bit is set.\n                ptr := add(ptr, shl(5, and(t, 1)))\n                o := add(o, 1)\n                t := shr(o, roles)\n                if iszero(t) { break }\n            }\n            // Store the length of `ordinals`.\n            mstore(ordinals, shr(5, sub(ptr, add(ordinals, 0x20))))\n            // Allocate the memory.\n            mstore(0x40, ptr)\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  PUBLIC UPDATE FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Allows the owner to grant `user` `roles`.\n    /// If the `user` already has a role, then it will be an no-op for the role.\n    function grantRoles(address user, uint256 roles) public payable virtual onlyOwner {\n        _grantRoles(user, roles);\n    }\n\n    /// @dev Allows the owner to remove `user` `roles`.\n    /// If the `user` does not have a role, then it will be an no-op for the role.\n    function revokeRoles(address user, uint256 roles) public payable virtual onlyOwner {\n        _removeRoles(user, roles);\n    }\n\n    /// @dev Allow the caller to remove their own roles.\n    /// If the caller does not have a role, then it will be an no-op for the role.\n    function renounceRoles(uint256 roles) public payable virtual {\n        _removeRoles(msg.sender, roles);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   PUBLIC READ FUNCTIONS                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the roles of `user`.\n    function rolesOf(address user) public view virtual returns (uint256 roles) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the role slot.\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, user)\n            // Load the stored value.\n            roles := sload(keccak256(0x0c, 0x20))\n        }\n    }\n\n    /// @dev Returns whether `user` has any of `roles`.\n    function hasAnyRole(address user, uint256 roles) public view virtual returns (bool) {\n        return rolesOf(user) & roles != 0;\n    }\n\n    /// @dev Returns whether `user` has all of `roles`.\n    function hasAllRoles(address user, uint256 roles) public view virtual returns (bool) {\n        return rolesOf(user) & roles == roles;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         MODIFIERS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Marks a function as only callable by an account with `roles`.\n    modifier onlyRoles(uint256 roles) virtual {\n        _checkRoles(roles);\n        _;\n    }\n\n    /// @dev Marks a function as only callable by the owner or by an account\n    /// with `roles`. Checks for ownership first, then lazily checks for roles.\n    modifier onlyOwnerOrRoles(uint256 roles) virtual {\n        _checkOwnerOrRoles(roles);\n        _;\n    }\n\n    /// @dev Marks a function as only callable by an account with `roles`\n    /// or the owner. Checks for roles first, then lazily checks for ownership.\n    modifier onlyRolesOrOwner(uint256 roles) virtual {\n        _checkRolesOrOwner(roles);\n        _;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       ROLE CONSTANTS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // IYKYK\n\n    uint256 internal constant _ROLE_0 = 1 << 0;\n    uint256 internal constant _ROLE_1 = 1 << 1;\n    uint256 internal constant _ROLE_2 = 1 << 2;\n    uint256 internal constant _ROLE_3 = 1 << 3;\n    uint256 internal constant _ROLE_4 = 1 << 4;\n    uint256 internal constant _ROLE_5 = 1 << 5;\n    uint256 internal constant _ROLE_6 = 1 << 6;\n    uint256 internal constant _ROLE_7 = 1 << 7;\n    uint256 internal constant _ROLE_8 = 1 << 8;\n    uint256 internal constant _ROLE_9 = 1 << 9;\n    uint256 internal constant _ROLE_10 = 1 << 10;\n    uint256 internal constant _ROLE_11 = 1 << 11;\n    uint256 internal constant _ROLE_12 = 1 << 12;\n    uint256 internal constant _ROLE_13 = 1 << 13;\n    uint256 internal constant _ROLE_14 = 1 << 14;\n    uint256 internal constant _ROLE_15 = 1 << 15;\n    uint256 internal constant _ROLE_16 = 1 << 16;\n    uint256 internal constant _ROLE_17 = 1 << 17;\n    uint256 internal constant _ROLE_18 = 1 << 18;\n    uint256 internal constant _ROLE_19 = 1 << 19;\n    uint256 internal constant _ROLE_20 = 1 << 20;\n    uint256 internal constant _ROLE_21 = 1 << 21;\n    uint256 internal constant _ROLE_22 = 1 << 22;\n    uint256 internal constant _ROLE_23 = 1 << 23;\n    uint256 internal constant _ROLE_24 = 1 << 24;\n    uint256 internal constant _ROLE_25 = 1 << 25;\n    uint256 internal constant _ROLE_26 = 1 << 26;\n    uint256 internal constant _ROLE_27 = 1 << 27;\n    uint256 internal constant _ROLE_28 = 1 << 28;\n    uint256 internal constant _ROLE_29 = 1 << 29;\n    uint256 internal constant _ROLE_30 = 1 << 30;\n    uint256 internal constant _ROLE_31 = 1 << 31;\n    uint256 internal constant _ROLE_32 = 1 << 32;\n    uint256 internal constant _ROLE_33 = 1 << 33;\n    uint256 internal constant _ROLE_34 = 1 << 34;\n    uint256 internal constant _ROLE_35 = 1 << 35;\n    uint256 internal constant _ROLE_36 = 1 << 36;\n    uint256 internal constant _ROLE_37 = 1 << 37;\n    uint256 internal constant _ROLE_38 = 1 << 38;\n    uint256 internal constant _ROLE_39 = 1 << 39;\n    uint256 internal constant _ROLE_40 = 1 << 40;\n    uint256 internal constant _ROLE_41 = 1 << 41;\n    uint256 internal constant _ROLE_42 = 1 << 42;\n    uint256 internal constant _ROLE_43 = 1 << 43;\n    uint256 internal constant _ROLE_44 = 1 << 44;\n    uint256 internal constant _ROLE_45 = 1 << 45;\n    uint256 internal constant _ROLE_46 = 1 << 46;\n    uint256 internal constant _ROLE_47 = 1 << 47;\n    uint256 internal constant _ROLE_48 = 1 << 48;\n    uint256 internal constant _ROLE_49 = 1 << 49;\n    uint256 internal constant _ROLE_50 = 1 << 50;\n    uint256 internal constant _ROLE_51 = 1 << 51;\n    uint256 internal constant _ROLE_52 = 1 << 52;\n    uint256 internal constant _ROLE_53 = 1 << 53;\n    uint256 internal constant _ROLE_54 = 1 << 54;\n    uint256 internal constant _ROLE_55 = 1 << 55;\n    uint256 internal constant _ROLE_56 = 1 << 56;\n    uint256 internal constant _ROLE_57 = 1 << 57;\n    uint256 internal constant _ROLE_58 = 1 << 58;\n    uint256 internal constant _ROLE_59 = 1 << 59;\n    uint256 internal constant _ROLE_60 = 1 << 60;\n    uint256 internal constant _ROLE_61 = 1 << 61;\n    uint256 internal constant _ROLE_62 = 1 << 62;\n    uint256 internal constant _ROLE_63 = 1 << 63;\n    uint256 internal constant _ROLE_64 = 1 << 64;\n    uint256 internal constant _ROLE_65 = 1 << 65;\n    uint256 internal constant _ROLE_66 = 1 << 66;\n    uint256 internal constant _ROLE_67 = 1 << 67;\n    uint256 internal constant _ROLE_68 = 1 << 68;\n    uint256 internal constant _ROLE_69 = 1 << 69;\n    uint256 internal constant _ROLE_70 = 1 << 70;\n    uint256 internal constant _ROLE_71 = 1 << 71;\n    uint256 internal constant _ROLE_72 = 1 << 72;\n    uint256 internal constant _ROLE_73 = 1 << 73;\n    uint256 internal constant _ROLE_74 = 1 << 74;\n    uint256 internal constant _ROLE_75 = 1 << 75;\n    uint256 internal constant _ROLE_76 = 1 << 76;\n    uint256 internal constant _ROLE_77 = 1 << 77;\n    uint256 internal constant _ROLE_78 = 1 << 78;\n    uint256 internal constant _ROLE_79 = 1 << 79;\n    uint256 internal constant _ROLE_80 = 1 << 80;\n    uint256 internal constant _ROLE_81 = 1 << 81;\n    uint256 internal constant _ROLE_82 = 1 << 82;\n    uint256 internal constant _ROLE_83 = 1 << 83;\n    uint256 internal constant _ROLE_84 = 1 << 84;\n    uint256 internal constant _ROLE_85 = 1 << 85;\n    uint256 internal constant _ROLE_86 = 1 << 86;\n    uint256 internal constant _ROLE_87 = 1 << 87;\n    uint256 internal constant _ROLE_88 = 1 << 88;\n    uint256 internal constant _ROLE_89 = 1 << 89;\n    uint256 internal constant _ROLE_90 = 1 << 90;\n    uint256 internal constant _ROLE_91 = 1 << 91;\n    uint256 internal constant _ROLE_92 = 1 << 92;\n    uint256 internal constant _ROLE_93 = 1 << 93;\n    uint256 internal constant _ROLE_94 = 1 << 94;\n    uint256 internal constant _ROLE_95 = 1 << 95;\n    uint256 internal constant _ROLE_96 = 1 << 96;\n    uint256 internal constant _ROLE_97 = 1 << 97;\n    uint256 internal constant _ROLE_98 = 1 << 98;\n    uint256 internal constant _ROLE_99 = 1 << 99;\n    uint256 internal constant _ROLE_100 = 1 << 100;\n    uint256 internal constant _ROLE_101 = 1 << 101;\n    uint256 internal constant _ROLE_102 = 1 << 102;\n    uint256 internal constant _ROLE_103 = 1 << 103;\n    uint256 internal constant _ROLE_104 = 1 << 104;\n    uint256 internal constant _ROLE_105 = 1 << 105;\n    uint256 internal constant _ROLE_106 = 1 << 106;\n    uint256 internal constant _ROLE_107 = 1 << 107;\n    uint256 internal constant _ROLE_108 = 1 << 108;\n    uint256 internal constant _ROLE_109 = 1 << 109;\n    uint256 internal constant _ROLE_110 = 1 << 110;\n    uint256 internal constant _ROLE_111 = 1 << 111;\n    uint256 internal constant _ROLE_112 = 1 << 112;\n    uint256 internal constant _ROLE_113 = 1 << 113;\n    uint256 internal constant _ROLE_114 = 1 << 114;\n    uint256 internal constant _ROLE_115 = 1 << 115;\n    uint256 internal constant _ROLE_116 = 1 << 116;\n    uint256 internal constant _ROLE_117 = 1 << 117;\n    uint256 internal constant _ROLE_118 = 1 << 118;\n    uint256 internal constant _ROLE_119 = 1 << 119;\n    uint256 internal constant _ROLE_120 = 1 << 120;\n    uint256 internal constant _ROLE_121 = 1 << 121;\n    uint256 internal constant _ROLE_122 = 1 << 122;\n    uint256 internal constant _ROLE_123 = 1 << 123;\n    uint256 internal constant _ROLE_124 = 1 << 124;\n    uint256 internal constant _ROLE_125 = 1 << 125;\n    uint256 internal constant _ROLE_126 = 1 << 126;\n    uint256 internal constant _ROLE_127 = 1 << 127;\n    uint256 internal constant _ROLE_128 = 1 << 128;\n    uint256 internal constant _ROLE_129 = 1 << 129;\n    uint256 internal constant _ROLE_130 = 1 << 130;\n    uint256 internal constant _ROLE_131 = 1 << 131;\n    uint256 internal constant _ROLE_132 = 1 << 132;\n    uint256 internal constant _ROLE_133 = 1 << 133;\n    uint256 internal constant _ROLE_134 = 1 << 134;\n    uint256 internal constant _ROLE_135 = 1 << 135;\n    uint256 internal constant _ROLE_136 = 1 << 136;\n    uint256 internal constant _ROLE_137 = 1 << 137;\n    uint256 internal constant _ROLE_138 = 1 << 138;\n    uint256 internal constant _ROLE_139 = 1 << 139;\n    uint256 internal constant _ROLE_140 = 1 << 140;\n    uint256 internal constant _ROLE_141 = 1 << 141;\n    uint256 internal constant _ROLE_142 = 1 << 142;\n    uint256 internal constant _ROLE_143 = 1 << 143;\n    uint256 internal constant _ROLE_144 = 1 << 144;\n    uint256 internal constant _ROLE_145 = 1 << 145;\n    uint256 internal constant _ROLE_146 = 1 << 146;\n    uint256 internal constant _ROLE_147 = 1 << 147;\n    uint256 internal constant _ROLE_148 = 1 << 148;\n    uint256 internal constant _ROLE_149 = 1 << 149;\n    uint256 internal constant _ROLE_150 = 1 << 150;\n    uint256 internal constant _ROLE_151 = 1 << 151;\n    uint256 internal constant _ROLE_152 = 1 << 152;\n    uint256 internal constant _ROLE_153 = 1 << 153;\n    uint256 internal constant _ROLE_154 = 1 << 154;\n    uint256 internal constant _ROLE_155 = 1 << 155;\n    uint256 internal constant _ROLE_156 = 1 << 156;\n    uint256 internal constant _ROLE_157 = 1 << 157;\n    uint256 internal constant _ROLE_158 = 1 << 158;\n    uint256 internal constant _ROLE_159 = 1 << 159;\n    uint256 internal constant _ROLE_160 = 1 << 160;\n    uint256 internal constant _ROLE_161 = 1 << 161;\n    uint256 internal constant _ROLE_162 = 1 << 162;\n    uint256 internal constant _ROLE_163 = 1 << 163;\n    uint256 internal constant _ROLE_164 = 1 << 164;\n    uint256 internal constant _ROLE_165 = 1 << 165;\n    uint256 internal constant _ROLE_166 = 1 << 166;\n    uint256 internal constant _ROLE_167 = 1 << 167;\n    uint256 internal constant _ROLE_168 = 1 << 168;\n    uint256 internal constant _ROLE_169 = 1 << 169;\n    uint256 internal constant _ROLE_170 = 1 << 170;\n    uint256 internal constant _ROLE_171 = 1 << 171;\n    uint256 internal constant _ROLE_172 = 1 << 172;\n    uint256 internal constant _ROLE_173 = 1 << 173;\n    uint256 internal constant _ROLE_174 = 1 << 174;\n    uint256 internal constant _ROLE_175 = 1 << 175;\n    uint256 internal constant _ROLE_176 = 1 << 176;\n    uint256 internal constant _ROLE_177 = 1 << 177;\n    uint256 internal constant _ROLE_178 = 1 << 178;\n    uint256 internal constant _ROLE_179 = 1 << 179;\n    uint256 internal constant _ROLE_180 = 1 << 180;\n    uint256 internal constant _ROLE_181 = 1 << 181;\n    uint256 internal constant _ROLE_182 = 1 << 182;\n    uint256 internal constant _ROLE_183 = 1 << 183;\n    uint256 internal constant _ROLE_184 = 1 << 184;\n    uint256 internal constant _ROLE_185 = 1 << 185;\n    uint256 internal constant _ROLE_186 = 1 << 186;\n    uint256 internal constant _ROLE_187 = 1 << 187;\n    uint256 internal constant _ROLE_188 = 1 << 188;\n    uint256 internal constant _ROLE_189 = 1 << 189;\n    uint256 internal constant _ROLE_190 = 1 << 190;\n    uint256 internal constant _ROLE_191 = 1 << 191;\n    uint256 internal constant _ROLE_192 = 1 << 192;\n    uint256 internal constant _ROLE_193 = 1 << 193;\n    uint256 internal constant _ROLE_194 = 1 << 194;\n    uint256 internal constant _ROLE_195 = 1 << 195;\n    uint256 internal constant _ROLE_196 = 1 << 196;\n    uint256 internal constant _ROLE_197 = 1 << 197;\n    uint256 internal constant _ROLE_198 = 1 << 198;\n    uint256 internal constant _ROLE_199 = 1 << 199;\n    uint256 internal constant _ROLE_200 = 1 << 200;\n    uint256 internal constant _ROLE_201 = 1 << 201;\n    uint256 internal constant _ROLE_202 = 1 << 202;\n    uint256 internal constant _ROLE_203 = 1 << 203;\n    uint256 internal constant _ROLE_204 = 1 << 204;\n    uint256 internal constant _ROLE_205 = 1 << 205;\n    uint256 internal constant _ROLE_206 = 1 << 206;\n    uint256 internal constant _ROLE_207 = 1 << 207;\n    uint256 internal constant _ROLE_208 = 1 << 208;\n    uint256 internal constant _ROLE_209 = 1 << 209;\n    uint256 internal constant _ROLE_210 = 1 << 210;\n    uint256 internal constant _ROLE_211 = 1 << 211;\n    uint256 internal constant _ROLE_212 = 1 << 212;\n    uint256 internal constant _ROLE_213 = 1 << 213;\n    uint256 internal constant _ROLE_214 = 1 << 214;\n    uint256 internal constant _ROLE_215 = 1 << 215;\n    uint256 internal constant _ROLE_216 = 1 << 216;\n    uint256 internal constant _ROLE_217 = 1 << 217;\n    uint256 internal constant _ROLE_218 = 1 << 218;\n    uint256 internal constant _ROLE_219 = 1 << 219;\n    uint256 internal constant _ROLE_220 = 1 << 220;\n    uint256 internal constant _ROLE_221 = 1 << 221;\n    uint256 internal constant _ROLE_222 = 1 << 222;\n    uint256 internal constant _ROLE_223 = 1 << 223;\n    uint256 internal constant _ROLE_224 = 1 << 224;\n    uint256 internal constant _ROLE_225 = 1 << 225;\n    uint256 internal constant _ROLE_226 = 1 << 226;\n    uint256 internal constant _ROLE_227 = 1 << 227;\n    uint256 internal constant _ROLE_228 = 1 << 228;\n    uint256 internal constant _ROLE_229 = 1 << 229;\n    uint256 internal constant _ROLE_230 = 1 << 230;\n    uint256 internal constant _ROLE_231 = 1 << 231;\n    uint256 internal constant _ROLE_232 = 1 << 232;\n    uint256 internal constant _ROLE_233 = 1 << 233;\n    uint256 internal constant _ROLE_234 = 1 << 234;\n    uint256 internal constant _ROLE_235 = 1 << 235;\n    uint256 internal constant _ROLE_236 = 1 << 236;\n    uint256 internal constant _ROLE_237 = 1 << 237;\n    uint256 internal constant _ROLE_238 = 1 << 238;\n    uint256 internal constant _ROLE_239 = 1 << 239;\n    uint256 internal constant _ROLE_240 = 1 << 240;\n    uint256 internal constant _ROLE_241 = 1 << 241;\n    uint256 internal constant _ROLE_242 = 1 << 242;\n    uint256 internal constant _ROLE_243 = 1 << 243;\n    uint256 internal constant _ROLE_244 = 1 << 244;\n    uint256 internal constant _ROLE_245 = 1 << 245;\n    uint256 internal constant _ROLE_246 = 1 << 246;\n    uint256 internal constant _ROLE_247 = 1 << 247;\n    uint256 internal constant _ROLE_248 = 1 << 248;\n    uint256 internal constant _ROLE_249 = 1 << 249;\n    uint256 internal constant _ROLE_250 = 1 << 250;\n    uint256 internal constant _ROLE_251 = 1 << 251;\n    uint256 internal constant _ROLE_252 = 1 << 252;\n    uint256 internal constant _ROLE_253 = 1 << 253;\n    uint256 internal constant _ROLE_254 = 1 << 254;\n    uint256 internal constant _ROLE_255 = 1 << 255;\n}\n"},"lib/solady/src/utils/LibClone.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Minimal proxy library.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibClone.sol)\n/// @author Minimal proxy by 0age (https://github.com/0age)\n/// @author Clones with immutable args by wighawag, zefram.eth, Saw-mon & Natalie\n/// (https://github.com/Saw-mon-and-Natalie/clones-with-immutable-args)\n/// @author Minimal ERC1967 proxy by jtriley-eth (https://github.com/jtriley-eth/minimum-viable-proxy)\n///\n/// @dev Minimal proxy:\n/// Although the sw0nt pattern saves 5 gas over the ERC1167 pattern during runtime,\n/// it is not supported out-of-the-box on Etherscan. Hence, we choose to use the 0age pattern,\n/// which saves 4 gas over the ERC1167 pattern during runtime, and has the smallest bytecode.\n/// - Automatically verified on Etherscan.\n///\n/// @dev Minimal proxy (PUSH0 variant):\n/// This is a new minimal proxy that uses the PUSH0 opcode introduced during Shanghai.\n/// It is optimized first for minimal runtime gas, then for minimal bytecode.\n/// The PUSH0 clone functions are intentionally postfixed with a jarring \"_PUSH0\" as\n/// many EVM chains may not support the PUSH0 opcode in the early months after Shanghai.\n/// Please use with caution.\n/// - Automatically verified on Etherscan.\n///\n/// @dev Clones with immutable args (CWIA):\n/// The implementation of CWIA here does NOT append the immutable args into the calldata\n/// passed into delegatecall. It is simply an ERC1167 minimal proxy with the immutable arguments\n/// appended to the back of the runtime bytecode.\n/// - Uses the identity precompile (0x4) to copy args during deployment.\n///\n/// @dev Minimal ERC1967 proxy:\n/// A minimal ERC1967 proxy, intended to be upgraded with UUPS.\n/// This is NOT the same as ERC1967Factory's transparent proxy, which includes admin logic.\n/// - Automatically verified on Etherscan.\n///\n/// @dev Minimal ERC1967 proxy with immutable args:\n/// - Uses the identity precompile (0x4) to copy args during deployment.\n/// - Automatically verified on Etherscan.\n///\n/// @dev ERC1967I proxy:\n/// A variant of the minimal ERC1967 proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// `implementation` address. The returned implementation is guaranteed to be valid if the\n/// keccak256 of the proxy's code is equal to `ERC1967I_CODE_HASH`.\n///\n/// @dev ERC1967I proxy with immutable args:\n/// A variant of the minimal ERC1967 proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// - Uses the identity precompile (0x4) to copy args during deployment.\n///\n/// @dev Minimal ERC1967 beacon proxy:\n/// A minimal beacon proxy, intended to be upgraded with an upgradable beacon.\n/// - Automatically verified on Etherscan.\n///\n/// @dev Minimal ERC1967 beacon proxy with immutable args:\n/// - Uses the identity precompile (0x4) to copy args during deployment.\n/// - Automatically verified on Etherscan.\n///\n/// @dev ERC1967I beacon proxy:\n/// A variant of the minimal ERC1967 beacon proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// `implementation` address. The returned implementation is guaranteed to be valid if the\n/// keccak256 of the proxy's code is equal to `ERC1967I_CODE_HASH`.\n///\n/// @dev ERC1967I proxy with immutable args:\n/// A variant of the minimal ERC1967 beacon proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// - Uses the identity precompile (0x4) to copy args during deployment.\nlibrary LibClone {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The keccak256 of deployed code for the clone proxy,\n    /// with the implementation set to `address(0)`.\n    bytes32 internal constant CLONE_CODE_HASH =\n        0x48db2cfdb2853fce0b464f1f93a1996469459df3ab6c812106074c4106a1eb1f;\n\n    /// @dev The keccak256 of deployed code for the PUSH0 proxy,\n    /// with the implementation set to `address(0)`.\n    bytes32 internal constant PUSH0_CLONE_CODE_HASH =\n        0x67bc6bde1b84d66e267c718ba44cf3928a615d29885537955cb43d44b3e789dc;\n\n    /// @dev The keccak256 of deployed code for the ERC-1167 CWIA proxy,\n    /// with the implementation set to `address(0)`.\n    bytes32 internal constant CWIA_CODE_HASH =\n        0x3cf92464268225a4513da40a34d967354684c32cd0edd67b5f668dfe3550e940;\n\n    /// @dev The keccak256 of the deployed code for the ERC1967 proxy.\n    bytes32 internal constant ERC1967_CODE_HASH =\n        0xaaa52c8cc8a0e3fd27ce756cc6b4e70c51423e9b597b11f32d3e49f8b1fc890d;\n\n    /// @dev The keccak256 of the deployed code for the ERC1967I proxy.\n    bytes32 internal constant ERC1967I_CODE_HASH =\n        0xce700223c0d4cea4583409accfc45adac4a093b3519998a9cbbe1504dadba6f7;\n\n    /// @dev The keccak256 of the deployed code for the ERC1967 beacon proxy.\n    bytes32 internal constant ERC1967_BEACON_PROXY_CODE_HASH =\n        0x14044459af17bc4f0f5aa2f658cb692add77d1302c29fe2aebab005eea9d1162;\n\n    /// @dev The keccak256 of the deployed code for the ERC1967 beacon proxy.\n    bytes32 internal constant ERC1967I_BEACON_PROXY_CODE_HASH =\n        0xf8c46d2793d5aa984eb827aeaba4b63aedcab80119212fce827309788735519a;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Unable to deploy the clone.\n    error DeploymentFailed();\n\n    /// @dev The salt must start with either the zero address or `by`.\n    error SaltDoesNotStartWith();\n\n    /// @dev The ETH transfer has failed.\n    error ETHTransferFailed();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  MINIMAL PROXY OPERATIONS                  */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a clone of `implementation`.\n    function clone(address implementation) internal returns (address instance) {\n        instance = clone(0, implementation);\n    }\n\n    /// @dev Deploys a clone of `implementation`.\n    /// Deposits `value` ETH during deployment.\n    function clone(uint256 value, address implementation) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * --------------------------------------------------------------------------+\n             * CREATION (9 bytes)                                                        |\n             * --------------------------------------------------------------------------|\n             * Opcode     | Mnemonic          | Stack     | Memory                       |\n             * --------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize     | r         |                              |\n             * 3d         | RETURNDATASIZE    | 0 r       |                              |\n             * 81         | DUP2              | r 0 r     |                              |\n             * 60 offset  | PUSH1 offset      | o r 0 r   |                              |\n             * 3d         | RETURNDATASIZE    | 0 o r 0 r |                              |\n             * 39         | CODECOPY          | 0 r       | [0..runSize): runtime code   |\n             * f3         | RETURN            |           | [0..runSize): runtime code   |\n             * --------------------------------------------------------------------------|\n             * RUNTIME (44 bytes)                                                        |\n             * --------------------------------------------------------------------------|\n             * Opcode  | Mnemonic       | Stack                  | Memory                |\n             * --------------------------------------------------------------------------|\n             *                                                                           |\n             * ::: keep some values in stack ::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d      | RETURNDATASIZE | 0                      |                       |\n             * 3d      | RETURNDATASIZE | 0 0                    |                       |\n             * 3d      | RETURNDATASIZE | 0 0 0                  |                       |\n             * 3d      | RETURNDATASIZE | 0 0 0 0                |                       |\n             *                                                                           |\n             * ::: copy calldata to memory ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36      | CALLDATASIZE   | cds 0 0 0 0            |                       |\n             * 3d      | RETURNDATASIZE | 0 cds 0 0 0 0          |                       |\n             * 3d      | RETURNDATASIZE | 0 0 cds 0 0 0 0        |                       |\n             * 37      | CALLDATACOPY   | 0 0 0 0                | [0..cds): calldata    |\n             *                                                                           |\n             * ::: delegate call to the implementation contract :::::::::::::::::::::::: |\n             * 36      | CALLDATASIZE   | cds 0 0 0 0            | [0..cds): calldata    |\n             * 3d      | RETURNDATASIZE | 0 cds 0 0 0 0          | [0..cds): calldata    |\n             * 73 addr | PUSH20 addr    | addr 0 cds 0 0 0 0     | [0..cds): calldata    |\n             * 5a      | GAS            | gas addr 0 cds 0 0 0 0 | [0..cds): calldata    |\n             * f4      | DELEGATECALL   | success 0 0            | [0..cds): calldata    |\n             *                                                                           |\n             * ::: copy return data to memory :::::::::::::::::::::::::::::::::::::::::: |\n             * 3d      | RETURNDATASIZE | rds success 0 0        | [0..cds): calldata    |\n             * 3d      | RETURNDATASIZE | rds rds success 0 0    | [0..cds): calldata    |\n             * 93      | SWAP4          | 0 rds success 0 rds    | [0..cds): calldata    |\n             * 80      | DUP1           | 0 0 rds success 0 rds  | [0..cds): calldata    |\n             * 3e      | RETURNDATACOPY | success 0 rds          | [0..rds): returndata  |\n             *                                                                           |\n             * 60 0x2a | PUSH1 0x2a     | 0x2a success 0 rds     | [0..rds): returndata  |\n             * 57      | JUMPI          | 0 rds                  | [0..rds): returndata  |\n             *                                                                           |\n             * ::: revert :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * fd      | REVERT         |                        | [0..rds): returndata  |\n             *                                                                           |\n             * ::: return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b      | JUMPDEST       | 0 rds                  | [0..rds): returndata  |\n             * f3      | RETURN         |                        | [0..rds): returndata  |\n             * --------------------------------------------------------------------------+\n             */\n            mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n            mstore(0x14, implementation)\n            mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n            instance := create(value, 0x0c, 0x35)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation` with `salt`.\n    function cloneDeterministic(address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = cloneDeterministic(0, implementation, salt);\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation` with `salt`.\n    /// Deposits `value` ETH during deployment.\n    function cloneDeterministic(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n            mstore(0x14, implementation)\n            mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n            instance := create2(value, 0x0c, 0x35, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the clone of `implementation`.\n    function initCode(address implementation) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x40), 0x5af43d3d93803e602a57fd5bf30000000000000000000000)\n            mstore(add(c, 0x28), implementation)\n            mstore(add(c, 0x14), 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n            mstore(c, 0x35) // Store the length.\n            mstore(0x40, add(c, 0x60)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the clone of `implementation`.\n    function initCodeHash(address implementation) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n            mstore(0x14, implementation)\n            mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n            hash := keccak256(0x0c, 0x35)\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the address of the clone of `implementation`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddress(address implementation, bytes32 salt, address deployer)\n        internal\n        pure\n        returns (address predicted)\n    {\n        bytes32 hash = initCodeHash(implementation);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*          MINIMAL PROXY OPERATIONS (PUSH0 VARIANT)          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a PUSH0 clone of `implementation`.\n    function clone_PUSH0(address implementation) internal returns (address instance) {\n        instance = clone_PUSH0(0, implementation);\n    }\n\n    /// @dev Deploys a PUSH0 clone of `implementation`.\n    /// Deposits `value` ETH during deployment.\n    function clone_PUSH0(uint256 value, address implementation)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * --------------------------------------------------------------------------+\n             * CREATION (9 bytes)                                                        |\n             * --------------------------------------------------------------------------|\n             * Opcode     | Mnemonic          | Stack     | Memory                       |\n             * --------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize     | r         |                              |\n             * 5f         | PUSH0             | 0 r       |                              |\n             * 81         | DUP2              | r 0 r     |                              |\n             * 60 offset  | PUSH1 offset      | o r 0 r   |                              |\n             * 5f         | PUSH0             | 0 o r 0 r |                              |\n             * 39         | CODECOPY          | 0 r       | [0..runSize): runtime code   |\n             * f3         | RETURN            |           | [0..runSize): runtime code   |\n             * --------------------------------------------------------------------------|\n             * RUNTIME (45 bytes)                                                        |\n             * --------------------------------------------------------------------------|\n             * Opcode  | Mnemonic       | Stack                  | Memory                |\n             * --------------------------------------------------------------------------|\n             *                                                                           |\n             * ::: keep some values in stack ::::::::::::::::::::::::::::::::::::::::::: |\n             * 5f      | PUSH0          | 0                      |                       |\n             * 5f      | PUSH0          | 0 0                    |                       |\n             *                                                                           |\n             * ::: copy calldata to memory ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36      | CALLDATASIZE   | cds 0 0                |                       |\n             * 5f      | PUSH0          | 0 cds 0 0              |                       |\n             * 5f      | PUSH0          | 0 0 cds 0 0            |                       |\n             * 37      | CALLDATACOPY   | 0 0                    | [0..cds): calldata    |\n             *                                                                           |\n             * ::: delegate call to the implementation contract :::::::::::::::::::::::: |\n             * 36      | CALLDATASIZE   | cds 0 0                | [0..cds): calldata    |\n             * 5f      | PUSH0          | 0 cds 0 0              | [0..cds): calldata    |\n             * 73 addr | PUSH20 addr    | addr 0 cds 0 0         | [0..cds): calldata    |\n             * 5a      | GAS            | gas addr 0 cds 0 0     | [0..cds): calldata    |\n             * f4      | DELEGATECALL   | success                | [0..cds): calldata    |\n             *                                                                           |\n             * ::: copy return data to memory :::::::::::::::::::::::::::::::::::::::::: |\n             * 3d      | RETURNDATASIZE | rds success            | [0..cds): calldata    |\n             * 5f      | PUSH0          | 0 rds success          | [0..cds): calldata    |\n             * 5f      | PUSH0          | 0 0 rds success        | [0..cds): calldata    |\n             * 3e      | RETURNDATACOPY | success                | [0..rds): returndata  |\n             *                                                                           |\n             * 60 0x29 | PUSH1 0x29     | 0x29 success           | [0..rds): returndata  |\n             * 57      | JUMPI          |                        | [0..rds): returndata  |\n             *                                                                           |\n             * ::: revert :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d      | RETURNDATASIZE | rds                    | [0..rds): returndata  |\n             * 5f      | PUSH0          | 0 rds                  | [0..rds): returndata  |\n             * fd      | REVERT         |                        | [0..rds): returndata  |\n             *                                                                           |\n             * ::: return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b      | JUMPDEST       |                        | [0..rds): returndata  |\n             * 3d      | RETURNDATASIZE | rds                    | [0..rds): returndata  |\n             * 5f      | PUSH0          | 0 rds                  | [0..rds): returndata  |\n             * f3      | RETURN         |                        | [0..rds): returndata  |\n             * --------------------------------------------------------------------------+\n             */\n            mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n            mstore(0x14, implementation) // 20\n            mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n            instance := create(value, 0x0e, 0x36)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Deploys a deterministic PUSH0 clone of `implementation` with `salt`.\n    function cloneDeterministic_PUSH0(address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = cloneDeterministic_PUSH0(0, implementation, salt);\n    }\n\n    /// @dev Deploys a deterministic PUSH0 clone of `implementation` with `salt`.\n    /// Deposits `value` ETH during deployment.\n    function cloneDeterministic_PUSH0(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n            mstore(0x14, implementation) // 20\n            mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n            instance := create2(value, 0x0e, 0x36, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the PUSH0 clone of `implementation`.\n    function initCode_PUSH0(address implementation) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x40), 0x5af43d5f5f3e6029573d5ffd5b3d5ff300000000000000000000) // 16\n            mstore(add(c, 0x26), implementation) // 20\n            mstore(add(c, 0x12), 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n            mstore(c, 0x36) // Store the length.\n            mstore(0x40, add(c, 0x60)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the PUSH0 clone of `implementation`.\n    function initCodeHash_PUSH0(address implementation) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n            mstore(0x14, implementation) // 20\n            mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n            hash := keccak256(0x0e, 0x36)\n            mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the address of the PUSH0 clone of `implementation`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddress_PUSH0(\n        address implementation,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHash_PUSH0(implementation);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*           CLONES WITH IMMUTABLE ARGS OPERATIONS            */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a clone of `implementation` with immutable arguments encoded in `args`.\n    function clone(address implementation, bytes memory args) internal returns (address instance) {\n        instance = clone(0, implementation, args);\n    }\n\n    /// @dev Deploys a clone of `implementation` with immutable arguments encoded in `args`.\n    /// Deposits `value` ETH during deployment.\n    function clone(uint256 value, address implementation, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------+\n             * CREATION (10 bytes)                                                        |\n             * ---------------------------------------------------------------------------|\n             * Opcode     | Mnemonic          | Stack     | Memory                        |\n             * ---------------------------------------------------------------------------|\n             * 61 runSize | PUSH2 runSize     | r         |                               |\n             * 3d         | RETURNDATASIZE    | 0 r       |                               |\n             * 81         | DUP2              | r 0 r     |                               |\n             * 60 offset  | PUSH1 offset      | o r 0 r   |                               |\n             * 3d         | RETURNDATASIZE    | 0 o r 0 r |                               |\n             * 39         | CODECOPY          | 0 r       | [0..runSize): runtime code    |\n             * f3         | RETURN            |           | [0..runSize): runtime code    |\n             * ---------------------------------------------------------------------------|\n             * RUNTIME (45 bytes + extraLength)                                           |\n             * ---------------------------------------------------------------------------|\n             * Opcode   | Mnemonic       | Stack                  | Memory                |\n             * ---------------------------------------------------------------------------|\n             *                                                                            |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36       | CALLDATASIZE   | cds                    |                       |\n             * 3d       | RETURNDATASIZE | 0 cds                  |                       |\n             * 3d       | RETURNDATASIZE | 0 0 cds                |                       |\n             * 37       | CALLDATACOPY   |                        | [0..cds): calldata    |\n             *                                                                            |\n             * ::: delegate call to the implementation contract ::::::::::::::::::::::::: |\n             * 3d       | RETURNDATASIZE | 0                      | [0..cds): calldata    |\n             * 3d       | RETURNDATASIZE | 0 0                    | [0..cds): calldata    |\n             * 3d       | RETURNDATASIZE | 0 0 0                  | [0..cds): calldata    |\n             * 36       | CALLDATASIZE   | cds 0 0 0              | [0..cds): calldata    |\n             * 3d       | RETURNDATASIZE | 0 cds 0 0 0 0          | [0..cds): calldata    |\n             * 73 addr  | PUSH20 addr    | addr 0 cds 0 0 0 0     | [0..cds): calldata    |\n             * 5a       | GAS            | gas addr 0 cds 0 0 0 0 | [0..cds): calldata    |\n             * f4       | DELEGATECALL   | success 0 0            | [0..cds): calldata    |\n             *                                                                            |\n             * ::: copy return data to memory ::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d       | RETURNDATASIZE | rds success 0          | [0..cds): calldata    |\n             * 82       | DUP3           | 0 rds success 0         | [0..cds): calldata   |\n             * 80       | DUP1           | 0 0 rds success 0      | [0..cds): calldata    |\n             * 3e       | RETURNDATACOPY | success 0              | [0..rds): returndata  |\n             * 90       | SWAP1          | 0 success              | [0..rds): returndata  |\n             * 3d       | RETURNDATASIZE | rds 0 success          | [0..rds): returndata  |\n             * 91       | SWAP2          | success 0 rds          | [0..rds): returndata  |\n             *                                                                            |\n             * 60 0x2b  | PUSH1 0x2b     | 0x2b success 0 rds     | [0..rds): returndata  |\n             * 57       | JUMPI          | 0 rds                  | [0..rds): returndata  |\n             *                                                                            |\n             * ::: revert ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * fd       | REVERT         |                        | [0..rds): returndata  |\n             *                                                                            |\n             * ::: return ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b       | JUMPDEST       | 0 rds                  | [0..rds): returndata  |\n             * f3       | RETURN         |                        | [0..rds): returndata  |\n             * ---------------------------------------------------------------------------+\n             */\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x43), n))\n            mstore(add(m, 0x23), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0xfe61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            instance := create(value, add(m, add(0x0b, lt(n, 0xffd3))), add(n, 0x37))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation`\n    /// with immutable arguments encoded in `args` and `salt`.\n    function cloneDeterministic(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = cloneDeterministic(0, implementation, args, salt);\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation`\n    /// with immutable arguments encoded in `args` and `salt`.\n    function cloneDeterministic(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x43), n))\n            mstore(add(m, 0x23), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0xfe61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            instance := create2(value, add(m, add(0x0b, lt(n, 0xffd3))), add(n, 0x37), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation`\n    /// with immutable arguments encoded in `args` and `salt`.\n    /// This method does not revert if the clone has already been deployed.\n    function createDeterministicClone(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicClone(0, implementation, args, salt);\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation`\n    /// with immutable arguments encoded in `args` and `salt`.\n    /// This method does not revert if the clone has already been deployed.\n    function createDeterministicClone(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x43), n))\n            mstore(add(m, 0x23), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(m, 0x14), implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            // forgefmt: disable-next-item\n            mstore(add(m, gt(n, 0xffd2)), add(0xfe61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(add(m, 0x0c), add(n, 0x37)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, add(m, 0x0c), add(n, 0x37), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the clone of `implementation`\n    /// using immutable arguments encoded in `args`.\n    function initCode(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffd2))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x57), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x37), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(c, 0x28), implementation)\n            mstore(add(c, 0x14), add(0x61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            mstore(c, add(0x37, n)) // Store the length.\n            mstore(add(c, add(n, 0x57)), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(c, add(n, 0x77))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the clone of `implementation`\n    /// using immutable arguments encoded in `args`.\n    function initCodeHash(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffd2))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(m, 0x43), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(m, 0x23), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0x61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            hash := keccak256(add(m, 0x0c), add(n, 0x37))\n        }\n    }\n\n    /// @dev Returns the address of the clone of\n    /// `implementation` using immutable arguments encoded in `args`, with `salt`, by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddress(\n        address implementation,\n        bytes memory data,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHash(implementation, data);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnClone(instance, 0, 2 ** 256 - 1)`.\n    function argsOnClone(address instance) internal view returns (bytes memory args) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x2d))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x2d, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnClone(instance, start, 2 ** 256 - 1)`.\n    function argsOnClone(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x2d))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x0d), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(args, add(0x40, mload(args)))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the clone with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnClone(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x0d), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x2d)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*              MINIMAL ERC1967 PROXY OPERATIONS              */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: The ERC1967 proxy here is intended to be upgraded with UUPS.\n    // This is NOT the same as ERC1967Factory's transparent proxy, which includes admin logic.\n\n    /// @dev Deploys a minimal ERC1967 proxy with `implementation`.\n    function deployERC1967(address implementation) internal returns (address instance) {\n        instance = deployERC1967(0, implementation);\n    }\n\n    /// @dev Deploys a minimal ERC1967 proxy with `implementation`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967(uint256 value, address implementation)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------------+\n             * CREATION (34 bytes)                                                              |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize  | r                |                                 |\n             * 3d         | RETURNDATASIZE | 0 r              |                                 |\n             * 81         | DUP2           | r 0 r            |                                 |\n             * 60 offset  | PUSH1 offset   | o r 0 r          |                                 |\n             * 3d         | RETURNDATASIZE | 0 o r 0 r        |                                 |\n             * 39         | CODECOPY       | 0 r              | [0..runSize): runtime code      |\n             * 73 impl    | PUSH20 impl    | impl 0 r         | [0..runSize): runtime code      |\n             * 60 slotPos | PUSH1 slotPos  | slotPos impl 0 r | [0..runSize): runtime code      |\n             * 51         | MLOAD          | slot impl 0 r    | [0..runSize): runtime code      |\n             * 55         | SSTORE         | 0 r              | [0..runSize): runtime code      |\n             * f3         | RETURN         |                  | [0..runSize): runtime code      |\n             * ---------------------------------------------------------------------------------|\n             * RUNTIME (61 bytes)                                                               |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             *                                                                                  |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 3d         | RETURNDATASIZE | 0 cds            |                                 |\n             * 3d         | RETURNDATASIZE | 0 0 cds          |                                 |\n             * 37         | CALLDATACOPY   |                  | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | 0                |                                 |\n             * 3d         | RETURNDATASIZE | 0 0              |                                 |\n             * 36         | CALLDATASIZE   | cds 0 0          | [0..calldatasize): calldata     |\n             * 3d         | RETURNDATASIZE | 0 cds 0 0        | [0..calldatasize): calldata     |\n             * 7f slot    | PUSH32 slot    | s 0 cds 0 0      | [0..calldatasize): calldata     |\n             * 54         | SLOAD          | i 0 cds 0 0      | [0..calldatasize): calldata     |\n             * 5a         | GAS            | g i 0 cds 0 0    | [0..calldatasize): calldata     |\n             * f4         | DELEGATECALL   | succ             | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds succ         | [0..calldatasize): calldata     |\n             * 60 0x00    | PUSH1 0x00     | 0 rds succ       | [0..calldatasize): calldata     |\n             * 80         | DUP1           | 0 0 rds succ     | [0..calldatasize): calldata     |\n             * 3e         | RETURNDATACOPY | succ             | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 60 0x38    | PUSH1 0x38     | dest succ        | [0..returndatasize): returndata |\n             * 57         | JUMPI          |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * fd         | REVERT         |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  | [0..returndatasize): returndata |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * f3         | RETURN         |                  | [0..returndatasize): returndata |\n             * ---------------------------------------------------------------------------------+\n             */\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x20, 0x6009)\n            mstore(0x1e, implementation)\n            mstore(0x0a, 0x603d3d8160223d3973)\n            instance := create(value, 0x21, 0x5f)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n    function deployDeterministicERC1967(address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967(0, implementation, salt);\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x20, 0x6009)\n            mstore(0x1e, implementation)\n            mstore(0x0a, 0x603d3d8160223d3973)\n            instance := create2(value, 0x21, 0x5f, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967(address implementation, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967(0, implementation, salt);\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x20, 0x6009)\n            mstore(0x1e, implementation)\n            mstore(0x0a, 0x603d3d8160223d3973)\n            // Compute and store the bytecode hash.\n            mstore(add(m, 0x35), keccak256(0x21, 0x5f))\n            mstore(m, shl(88, address()))\n            mstore8(m, 0xff) // Write the prefix.\n            mstore(add(m, 0x15), salt)\n            instance := keccak256(m, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, 0x21, 0x5f, salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the initialization code of the minimal ERC1967 proxy of `implementation`.\n    function initCodeERC1967(address implementation) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x60), 0x3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f300)\n            mstore(add(c, 0x40), 0x55f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076cc)\n            mstore(add(c, 0x20), or(shl(24, implementation), 0x600951))\n            mstore(add(c, 0x09), 0x603d3d8160223d3973)\n            mstore(c, 0x5f) // Store the length.\n            mstore(0x40, add(c, 0x80)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the minimal ERC1967 proxy of `implementation`.\n    function initCodeHashERC1967(address implementation) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x20, 0x6009)\n            mstore(0x1e, implementation)\n            mstore(0x0a, 0x603d3d8160223d3973)\n            hash := keccak256(0x21, 0x5f)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967 proxy of `implementation`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967(\n        address implementation,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967(implementation);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*    MINIMAL ERC1967 PROXY WITH IMMUTABLE ARGS OPERATIONS    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a minimal ERC1967 proxy with `implementation` and `args`.\n    function deployERC1967(address implementation, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        instance = deployERC1967(0, implementation, args);\n    }\n\n    /// @dev Deploys a minimal ERC1967 proxy with `implementation` and `args`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967(uint256 value, address implementation, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x60), n))\n            mstore(add(m, 0x40), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(m, 0x20), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x16, 0x6009)\n            mstore(0x14, implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            mstore(gt(n, 0xffc2), add(0xfe61003d3d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            instance := create(value, m, add(n, 0x60))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation`, `args` and `salt`.\n    function deployDeterministicERC1967(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967(0, implementation, args, salt);\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation`, `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x60), n))\n            mstore(add(m, 0x40), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(m, 0x20), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x16, 0x6009)\n            mstore(0x14, implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            mstore(gt(n, 0xffc2), add(0xfe61003d3d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            instance := create2(value, m, add(n, 0x60), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation`, `args` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967(0, implementation, args, salt);\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation`, `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x60), n))\n            mstore(add(m, 0x40), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(m, 0x20), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x16, 0x6009)\n            mstore(0x14, implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            mstore(gt(n, 0xffc2), add(0xfe61003d3d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(m, add(n, 0x60)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, m, add(n, 0x60), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the minimal ERC1967 proxy of `implementation` and `args`.\n    function initCodeERC1967(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffc2))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x80), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x60), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(c, 0x40), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(add(c, 0x20), 0x6009)\n            mstore(add(c, 0x1e), implementation)\n            mstore(add(c, 0x0a), add(0x61003d3d8160233d3973, shl(56, n)))\n            mstore(c, add(n, 0x60)) // Store the length.\n            mstore(add(c, add(n, 0x80)), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(c, add(n, 0xa0))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the minimal ERC1967 proxy of `implementation` and `args`.\n    function initCodeHashERC1967(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffc2))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(m, 0x60), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(m, 0x40), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(m, 0x20), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x16, 0x6009)\n            mstore(0x14, implementation)\n            mstore(0x00, add(0x61003d3d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            hash := keccak256(m, add(n, 0x60))\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967 proxy of `implementation`, `args`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967(\n        address implementation,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967(implementation, args);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnERC1967(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967(address instance) internal view returns (bytes memory args) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x3d))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x3d, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnERC1967(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x3d))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x1d), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(args, add(0x40, mload(args)))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the ERC1967 with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnERC1967(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x1d), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x3d)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                 ERC1967I PROXY OPERATIONS                  */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: This proxy has a special code path that activates if `calldatasize() == 1`.\n    // This code path skips the delegatecall and directly returns the `implementation` address.\n    // The returned implementation is guaranteed to be valid if the keccak256 of the\n    // proxy's code is equal to `ERC1967I_CODE_HASH`.\n\n    /// @dev Deploys a ERC1967I proxy with `implementation`.\n    function deployERC1967I(address implementation) internal returns (address instance) {\n        instance = deployERC1967I(0, implementation);\n    }\n\n    /// @dev Deploys a ERC1967I proxy with `implementation`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967I(uint256 value, address implementation)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------------+\n             * CREATION (34 bytes)                                                              |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize  | r                |                                 |\n             * 3d         | RETURNDATASIZE | 0 r              |                                 |\n             * 81         | DUP2           | r 0 r            |                                 |\n             * 60 offset  | PUSH1 offset   | o r 0 r          |                                 |\n             * 3d         | RETURNDATASIZE | 0 o r 0 r        |                                 |\n             * 39         | CODECOPY       | 0 r              | [0..runSize): runtime code      |\n             * 73 impl    | PUSH20 impl    | impl 0 r         | [0..runSize): runtime code      |\n             * 60 slotPos | PUSH1 slotPos  | slotPos impl 0 r | [0..runSize): runtime code      |\n             * 51         | MLOAD          | slot impl 0 r    | [0..runSize): runtime code      |\n             * 55         | SSTORE         | 0 r              | [0..runSize): runtime code      |\n             * f3         | RETURN         |                  | [0..runSize): runtime code      |\n             * ---------------------------------------------------------------------------------|\n             * RUNTIME (82 bytes)                                                               |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             *                                                                                  |\n             * ::: check calldatasize ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 58         | PC             | 1 cds            |                                 |\n             * 14         | EQ             | eqs              |                                 |\n             * 60 0x43    | PUSH1 0x43     | dest eqs         |                                 |\n             * 57         | JUMPI          |                  |                                 |\n             *                                                                                  |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 3d         | RETURNDATASIZE | 0 cds            |                                 |\n             * 3d         | RETURNDATASIZE | 0 0 cds          |                                 |\n             * 37         | CALLDATACOPY   |                  | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | 0                |                                 |\n             * 3d         | RETURNDATASIZE | 0 0              |                                 |\n             * 36         | CALLDATASIZE   | cds 0 0          | [0..calldatasize): calldata     |\n             * 3d         | RETURNDATASIZE | 0 cds 0 0        | [0..calldatasize): calldata     |\n             * 7f slot    | PUSH32 slot    | s 0 cds 0 0      | [0..calldatasize): calldata     |\n             * 54         | SLOAD          | i 0 cds 0 0      | [0..calldatasize): calldata     |\n             * 5a         | GAS            | g i 0 cds 0 0    | [0..calldatasize): calldata     |\n             * f4         | DELEGATECALL   | succ             | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds succ         | [0..calldatasize): calldata     |\n             * 60 0x00    | PUSH1 0x00     | 0 rds succ       | [0..calldatasize): calldata     |\n             * 80         | DUP1           | 0 0 rds succ     | [0..calldatasize): calldata     |\n             * 3e         | RETURNDATACOPY | succ             | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 60 0x3E    | PUSH1 0x3E     | dest succ        | [0..returndatasize): returndata |\n             * 57         | JUMPI          |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * fd         | REVERT         |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  | [0..returndatasize): returndata |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * f3         | RETURN         |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: implementation , return :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  |                                 |\n             * 60 0x20    | PUSH1 0x20     | 32               |                                 |\n             * 60 0x0F    | PUSH1 0x0F     | o 32             |                                 |\n             * 3d         | RETURNDATASIZE | 0 o 32           |                                 |\n             * 39         | CODECOPY       |                  | [0..32): implementation slot    |\n             * 3d         | RETURNDATASIZE | 0                | [0..32): implementation slot    |\n             * 51         | MLOAD          | slot             | [0..32): implementation slot    |\n             * 54         | SLOAD          | impl             | [0..32): implementation slot    |\n             * 3d         | RETURNDATASIZE | 0 impl           | [0..32): implementation slot    |\n             * 52         | MSTORE         |                  | [0..32): implementation address |\n             * 59         | MSIZE          | 32               | [0..32): implementation address |\n             * 3d         | RETURNDATASIZE | 0 32             | [0..32): implementation address |\n             * f3         | RETURN         |                  | [0..32): implementation address |\n             * ---------------------------------------------------------------------------------+\n             */\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n            instance := create(value, 0x0c, 0x74)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Deploys a deterministic ERC1967I proxy with `implementation` and `salt`.\n    function deployDeterministicERC1967I(address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967I(0, implementation, salt);\n    }\n\n    /// @dev Deploys a deterministic ERC1967I proxy with `implementation` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967I(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n            instance := create2(value, 0x0c, 0x74, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Creates a deterministic ERC1967I proxy with `implementation` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967I(address implementation, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967I(0, implementation, salt);\n    }\n\n    /// @dev Creates a deterministic ERC1967I proxy with `implementation` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967I(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n            // Compute and store the bytecode hash.\n            mstore(add(m, 0x35), keccak256(0x0c, 0x74))\n            mstore(m, shl(88, address()))\n            mstore8(m, 0xff) // Write the prefix.\n            mstore(add(m, 0x15), salt)\n            instance := keccak256(m, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, 0x0c, 0x74, salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the initialization code of the ERC1967I proxy of `implementation`.\n    function initCodeERC1967I(address implementation) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x74), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(c, 0x54), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(c, 0x34), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(add(c, 0x1d), implementation)\n            mstore(add(c, 0x09), 0x60523d8160223d3973)\n            mstore(add(c, 0x94), 0)\n            mstore(c, 0x74) // Store the length.\n            mstore(0x40, add(c, 0xa0)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967I proxy of `implementation`.\n    function initCodeHashERC1967I(address implementation) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n            hash := keccak256(0x0c, 0x74)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967I proxy of `implementation`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967I(\n        address implementation,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967I(implementation);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*       ERC1967I PROXY WITH IMMUTABLE ARGS OPERATIONS        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a minimal ERC1967I proxy with `implementation` and `args`.\n    function deployERC1967I(address implementation, bytes memory args) internal returns (address) {\n        return deployERC1967I(0, implementation, args);\n    }\n\n    /// @dev Deploys a minimal ERC1967I proxy with `implementation` and `args`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967I(uint256 value, address implementation, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n\n            mstore(add(m, 0x6b), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(m, 0x4b), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(m, 0x2b), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0xfe6100523d8160233d3973, shl(56, n)))\n\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            instance := create(value, add(m, add(0x15, lt(n, 0xffae))), add(0x75, n))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic ERC1967I proxy with `implementation`, `args`, and `salt`.\n    function deployDeterministicERC1967I(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967I(0, implementation, args, salt);\n    }\n\n    /// @dev Deploys a deterministic ERC1967I proxy with `implementation`, `args`, and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967I(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n\n            mstore(add(m, 0x6b), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(m, 0x4b), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(m, 0x2b), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0xfe6100523d8160233d3973, shl(56, n)))\n\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            instance := create2(value, add(m, add(0x15, lt(n, 0xffae))), add(0x75, n), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Creates a deterministic ERC1967I proxy with `implementation`, `args` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967I(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967I(0, implementation, args, salt);\n    }\n\n    /// @dev Creates a deterministic ERC1967I proxy with `implementation`, `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967I(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x75), n))\n            mstore(add(m, 0x55), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(m, 0x35), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(m, 0x15), 0x5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x16, 0x600f)\n            mstore(0x14, implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            mstore(gt(n, 0xffad), add(0xfe6100523d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(m, add(n, 0x75)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, m, add(0x75, n), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the ERC1967I proxy of `implementation` and `args`.\n    function initCodeERC1967I(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffad))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x95), i), mload(add(add(args, 0x20), i)))\n            }\n\n            mstore(add(c, 0x75), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(c, 0x55), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(c, 0x35), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(add(c, 0x1e), implementation)\n            mstore(add(c, 0x0a), add(0x6100523d8160233d3973, shl(56, n)))\n            mstore(add(c, add(n, 0x95)), 0)\n            mstore(c, add(0x75, n)) // Store the length.\n            mstore(0x40, add(c, add(n, 0xb5))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967I proxy of `implementation` and `args.\n    function initCodeHashERC1967I(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffad))\n\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(m, 0x75), i), mload(add(add(args, 0x20), i)))\n            }\n\n            mstore(add(m, 0x55), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(m, 0x35), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(m, 0x15), 0x5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x16, 0x600f)\n            mstore(0x14, implementation)\n            mstore(0x00, add(0x6100523d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            hash := keccak256(m, add(0x75, n))\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967I proxy of `implementation`, `args` with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967I(\n        address implementation,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967I(implementation, args);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnERC1967I(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967I(address instance) internal view returns (bytes memory args) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x52))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x52, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnERC1967I(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967I(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x52))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x32), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the ERC1967 with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnERC1967I(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x32), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x52)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                ERC1967 BOOTSTRAP OPERATIONS                */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // A bootstrap is a minimal UUPS implementation that allows an ERC1967 proxy\n    // pointing to it to be upgraded. The ERC1967 proxy can then be deployed to a\n    // deterministic address independent of the implementation:\n    // ```\n    //     address bootstrap = LibClone.erc1967Bootstrap();\n    //     address instance = LibClone.deployDeterministicERC1967(0, bootstrap, salt);\n    //     LibClone.bootstrapERC1967(bootstrap, implementation);\n    // ```\n\n    /// @dev Deploys the ERC1967 bootstrap if it has not been deployed.\n    function erc1967Bootstrap() internal returns (address) {\n        return erc1967Bootstrap(address(this));\n    }\n\n    /// @dev Deploys the ERC1967 bootstrap if it has not been deployed.\n    function erc1967Bootstrap(address authorizedUpgrader) internal returns (address bootstrap) {\n        bytes memory c = initCodeERC1967Bootstrap(authorizedUpgrader);\n        bootstrap = predictDeterministicAddress(keccak256(c), bytes32(0), address(this));\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(extcodesize(bootstrap)) {\n                if iszero(create2(0, add(c, 0x20), mload(c), 0)) {\n                    mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Replaces the implementation at `instance`.\n    function bootstrapERC1967(address instance, address implementation) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, implementation)\n            if iszero(call(gas(), instance, 0, 0x0c, 0x14, codesize(), 0x00)) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Replaces the implementation at `instance`, and then call it with `data`.\n    function bootstrapERC1967AndCall(address instance, address implementation, bytes memory data)\n        internal\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let n := mload(data)\n            mstore(data, implementation)\n            if iszero(call(gas(), instance, 0, add(data, 0x0c), add(n, 0x14), codesize(), 0x00)) {\n                if iszero(returndatasize()) {\n                    mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                returndatacopy(mload(0x40), 0x00, returndatasize())\n                revert(mload(0x40), returndatasize())\n            }\n            mstore(data, n) // Restore the length of `data`.\n        }\n    }\n\n    /// @dev Returns the implementation address of the ERC1967 bootstrap for this contract.\n    function predictDeterministicAddressERC1967Bootstrap() internal view returns (address) {\n        return predictDeterministicAddressERC1967Bootstrap(address(this), address(this));\n    }\n\n    /// @dev Returns the implementation address of the ERC1967 bootstrap for this contract.\n    function predictDeterministicAddressERC1967Bootstrap(\n        address authorizedUpgrader,\n        address deployer\n    ) internal pure returns (address) {\n        bytes32 hash = initCodeHashERC1967Bootstrap(authorizedUpgrader);\n        return predictDeterministicAddress(hash, bytes32(0), deployer);\n    }\n\n    /// @dev Returns the initialization code of the ERC1967 bootstrap.\n    function initCodeERC1967Bootstrap(address authorizedUpgrader)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x80), 0x3d3560601c5af46047573d6000383e3d38fd0000000000000000000000000000)\n            mstore(add(c, 0x60), 0xa920a3ca505d382bbc55601436116049575b005b363d3d373d3d601436036014)\n            mstore(add(c, 0x40), 0x0338573d3560601c7f360894a13ba1a3210667c828492db98dca3e2076cc3735)\n            mstore(add(c, 0x20), authorizedUpgrader)\n            mstore(add(c, 0x0c), 0x606880600a3d393df3fe3373)\n            mstore(c, 0x72)\n            mstore(0x40, add(c, 0xa0))\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967 bootstrap.\n    function initCodeHashERC1967Bootstrap(address authorizedUpgrader)\n        internal\n        pure\n        returns (bytes32)\n    {\n        return keccak256(initCodeERC1967Bootstrap(authorizedUpgrader));\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*          MINIMAL ERC1967 BEACON PROXY OPERATIONS           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: If you use this proxy, you MUST make sure that the beacon is a\n    // valid ERC1967 beacon. This means that the beacon must always return a valid\n    // address upon a staticcall to `implementation()`, given sufficient gas.\n    // For performance, the deployment operations and the proxy assumes that the\n    // beacon is always valid and will NOT validate it.\n\n    /// @dev Deploys a minimal ERC1967 beacon proxy.\n    function deployERC1967BeaconProxy(address beacon) internal returns (address instance) {\n        instance = deployERC1967BeaconProxy(0, beacon);\n    }\n\n    /// @dev Deploys a minimal ERC1967 beacon proxy.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967BeaconProxy(uint256 value, address beacon)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------------+\n             * CREATION (34 bytes)                                                              |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize  | r                |                                 |\n             * 3d         | RETURNDATASIZE | 0 r              |                                 |\n             * 81         | DUP2           | r 0 r            |                                 |\n             * 60 offset  | PUSH1 offset   | o r 0 r          |                                 |\n             * 3d         | RETURNDATASIZE | 0 o r 0 r        |                                 |\n             * 39         | CODECOPY       | 0 r              | [0..runSize): runtime code      |\n             * 73 beac    | PUSH20 beac    | beac 0 r         | [0..runSize): runtime code      |\n             * 60 slotPos | PUSH1 slotPos  | slotPos beac 0 r | [0..runSize): runtime code      |\n             * 51         | MLOAD          | slot beac 0 r    | [0..runSize): runtime code      |\n             * 55         | SSTORE         | 0 r              | [0..runSize): runtime code      |\n             * f3         | RETURN         |                  | [0..runSize): runtime code      |\n             * ---------------------------------------------------------------------------------|\n             * RUNTIME (82 bytes)                                                               |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             *                                                                                  |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 3d         | RETURNDATASIZE | 0 cds            |                                 |\n             * 3d         | RETURNDATASIZE | 0 0 cds          |                                 |\n             * 37         | CALLDATACOPY   |                  | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | 0                |                                 |\n             * 3d         | RETURNDATASIZE | 0 0              |                                 |\n             * 36         | CALLDATASIZE   | cds 0 0          | [0..calldatasize): calldata     |\n             * 3d         | RETURNDATASIZE | 0 cds 0 0        | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ~~~~~~~ beacon staticcall sub procedure ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 60 0x20       | PUSH1 0x20       | 32                          |                 |\n             * 36            | CALLDATASIZE     | cds 32                      |                 |\n             * 60 0x04       | PUSH1 0x04       | 4 cds 32                    |                 |\n             * 36            | CALLDATASIZE     | cds 4 cds 32                |                 |\n             * 63 0x5c60da1b | PUSH4 0x5c60da1b | 0x5c60da1b cds 4 cds 32     |                 |\n             * 60 0xe0       | PUSH1 0xe0       | 224 0x5c60da1b cds 4 cds 32 |                 |\n             * 1b            | SHL              | sel cds 4 cds 32            |                 |\n             * 36            | CALLDATASIZE     | cds sel cds 4 cds 32        |                 |\n             * 52            | MSTORE           | cds 4 cds 32                | sel             |\n             * 7f slot       | PUSH32 slot      | s cds 4 cds 32              | sel             |\n             * 54            | SLOAD            | beac cds 4 cds 32           | sel             |\n             * 5a            | GAS              | g beac cds 4 cds 32         | sel             |\n             * fa            | STATICCALL       | succ                        | impl            |\n             * 50            | POP              |                             | impl            |\n             * 36            | CALLDATASIZE     | cds                         | impl            |\n             * 51            | MLOAD            | impl                        | impl            |\n             * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 5a         | GAS            | g impl 0 cds 0 0 | [0..calldatasize): calldata     |\n             * f4         | DELEGATECALL   | succ             | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds succ         | [0..calldatasize): calldata     |\n             * 60 0x00    | PUSH1 0x00     | 0 rds succ       | [0..calldatasize): calldata     |\n             * 80         | DUP1           | 0 0 rds succ     | [0..calldatasize): calldata     |\n             * 3e         | RETURNDATACOPY | succ             | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 60 0x4d    | PUSH1 0x4d     | dest succ        | [0..returndatasize): returndata |\n             * 57         | JUMPI          |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * fd         | REVERT         |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  | [0..returndatasize): returndata |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * f3         | RETURN         |                  | [0..returndatasize): returndata |\n             * ---------------------------------------------------------------------------------+\n             */\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(0x40, 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, beacon))))\n            instance := create(value, 0x0c, 0x74)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 beacon proxy with `salt`.\n    function deployDeterministicERC1967BeaconProxy(address beacon, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967BeaconProxy(0, beacon, salt);\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 beacon proxy with `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967BeaconProxy(uint256 value, address beacon, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(0x40, 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, beacon))))\n            instance := create2(value, 0x0c, 0x74, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 beacon proxy with `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967BeaconProxy(address beacon, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967BeaconProxy(0, beacon, salt);\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 beacon proxy with `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967BeaconProxy(uint256 value, address beacon, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(0x40, 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, beacon))))\n            // Compute and store the bytecode hash.\n            mstore(add(m, 0x35), keccak256(0x0c, 0x74))\n            mstore(m, shl(88, address()))\n            mstore8(m, 0xff) // Write the prefix.\n            mstore(add(m, 0x15), salt)\n            instance := keccak256(m, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, 0x0c, 0x74, salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the initialization code of the minimal ERC1967 beacon proxy.\n    function initCodeERC1967BeaconProxy(address beacon) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x74), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(c, 0x54), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(c, 0x34), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(c, 0x1d), beacon)\n            mstore(add(c, 0x09), 0x60523d8160223d3973)\n            mstore(add(c, 0x94), 0)\n            mstore(c, 0x74) // Store the length.\n            mstore(0x40, add(c, 0xa0)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the minimal ERC1967 beacon proxy.\n    function initCodeHashERC1967BeaconProxy(address beacon) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(0x40, 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, beacon))))\n            hash := keccak256(0x0c, 0x74)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967 beacon proxy, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967BeaconProxy(\n        address beacon,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967BeaconProxy(beacon);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*    ERC1967 BEACON PROXY WITH IMMUTABLE ARGS OPERATIONS     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a minimal ERC1967 beacon proxy with `args`.\n    function deployERC1967BeaconProxy(address beacon, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        instance = deployERC1967BeaconProxy(0, beacon, args);\n    }\n\n    /// @dev Deploys a minimal ERC1967 beacon proxy with `args`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967BeaconProxy(uint256 value, address beacon, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n            mstore(add(m, 0x6b), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(m, 0x4b), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(m, 0x2b), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            mstore(add(m, gt(n, 0xffad)), add(0xfe6100523d8160233d3973, shl(56, n)))\n            instance := create(value, add(m, 0x16), add(n, 0x75))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 beacon proxy with `args` and `salt`.\n    function deployDeterministicERC1967BeaconProxy(address beacon, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967BeaconProxy(0, beacon, args, salt);\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 beacon proxy with `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967BeaconProxy(\n        uint256 value,\n        address beacon,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n            mstore(add(m, 0x6b), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(m, 0x4b), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(m, 0x2b), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            mstore(add(m, gt(n, 0xffad)), add(0xfe6100523d8160233d3973, shl(56, n)))\n            instance := create2(value, add(m, 0x16), add(n, 0x75), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 beacon proxy with `args` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967BeaconProxy(address beacon, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967BeaconProxy(0, beacon, args, salt);\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 beacon proxy with `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967BeaconProxy(\n        uint256 value,\n        address beacon,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n            mstore(add(m, 0x6b), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(m, 0x4b), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(m, 0x2b), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            mstore(add(m, gt(n, 0xffad)), add(0xfe6100523d8160233d3973, shl(56, n)))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(add(m, 0x16), add(n, 0x75)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, add(m, 0x16), add(n, 0x75), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the minimal ERC1967 beacon proxy.\n    function initCodeERC1967BeaconProxy(address beacon, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffad))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x95), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x75), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(c, 0x55), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(c, 0x35), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(c, 0x1e), beacon)\n            mstore(add(c, 0x0a), add(0x6100523d8160233d3973, shl(56, n)))\n            mstore(c, add(n, 0x75)) // Store the length.\n            mstore(add(c, add(n, 0x95)), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(c, add(n, 0xb5))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the minimal ERC1967 beacon proxy with `args`.\n    function initCodeHashERC1967BeaconProxy(address beacon, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffad))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(m, 0x8b), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(m, 0x6b), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(m, 0x4b), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(m, 0x2b), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(m, 0x14), beacon)\n            mstore(m, add(0x6100523d8160233d3973, shl(56, n)))\n            hash := keccak256(add(m, 0x16), add(n, 0x75))\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967 beacon proxy with `args`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967BeaconProxy(\n        address beacon,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967BeaconProxy(beacon, args);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnERC1967BeaconProxy(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967BeaconProxy(address instance) internal view returns (bytes memory args) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x52))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x52, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnERC1967BeaconProxy(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967BeaconProxy(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x52))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x32), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(args, add(0x40, mload(args)))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the ERC1967 beacon proxy with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnERC1967BeaconProxy(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x32), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x52)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*              ERC1967I BEACON PROXY OPERATIONS              */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: This proxy has a special code path that activates if `calldatasize() == 1`.\n    // This code path skips the delegatecall and directly returns the `implementation` address.\n    // The returned implementation is guaranteed to be valid if the keccak256 of the\n    // proxy's code is equal to `ERC1967_BEACON_PROXY_CODE_HASH`.\n    //\n    // If you use this proxy, you MUST make sure that the beacon is a\n    // valid ERC1967 beacon. This means that the beacon must always return a valid\n    // address upon a staticcall to `implementation()`, given sufficient gas.\n    // For performance, the deployment operations and the proxy assumes that the\n    // beacon is always valid and will NOT validate it.\n\n    /// @dev Deploys a ERC1967I beacon proxy.\n    function deployERC1967IBeaconProxy(address beacon) internal returns (address instance) {\n        instance = deployERC1967IBeaconProxy(0, beacon);\n    }\n\n    /// @dev Deploys a ERC1967I beacon proxy.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967IBeaconProxy(uint256 value, address beacon)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------------+\n             * CREATION (34 bytes)                                                              |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize  | r                |                                 |\n             * 3d         | RETURNDATASIZE | 0 r              |                                 |\n             * 81         | DUP2           | r 0 r            |                                 |\n             * 60 offset  | PUSH1 offset   | o r 0 r          |                                 |\n             * 3d         | RETURNDATASIZE | 0 o r 0 r        |                                 |\n             * 39         | CODECOPY       | 0 r              | [0..runSize): runtime code      |\n             * 73 beac    | PUSH20 beac    | beac 0 r         | [0..runSize): runtime code      |\n             * 60 slotPos | PUSH1 slotPos  | slotPos beac 0 r | [0..runSize): runtime code      |\n             * 51         | MLOAD          | slot beac 0 r    | [0..runSize): runtime code      |\n             * 55         | SSTORE         | 0 r              | [0..runSize): runtime code      |\n             * f3         | RETURN         |                  | [0..runSize): runtime code      |\n             * ---------------------------------------------------------------------------------|\n             * RUNTIME (87 bytes)                                                               |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             *                                                                                  |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 3d         | RETURNDATASIZE | 0 cds            |                                 |\n             * 3d         | RETURNDATASIZE | 0 0 cds          |                                 |\n             * 37         | CALLDATACOPY   |                  | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | 0                |                                 |\n             * 3d         | RETURNDATASIZE | 0 0              |                                 |\n             * 36         | CALLDATASIZE   | cds 0 0          | [0..calldatasize): calldata     |\n             * 3d         | RETURNDATASIZE | 0 cds 0 0        | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ~~~~~~~ beacon staticcall sub procedure ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 60 0x20       | PUSH1 0x20       | 32                          |                 |\n             * 36            | CALLDATASIZE     | cds 32                      |                 |\n             * 60 0x04       | PUSH1 0x04       | 4 cds 32                    |                 |\n             * 36            | CALLDATASIZE     | cds 4 cds 32                |                 |\n             * 63 0x5c60da1b | PUSH4 0x5c60da1b | 0x5c60da1b cds 4 cds 32     |                 |\n             * 60 0xe0       | PUSH1 0xe0       | 224 0x5c60da1b cds 4 cds 32 |                 |\n             * 1b            | SHL              | sel cds 4 cds 32            |                 |\n             * 36            | CALLDATASIZE     | cds sel cds 4 cds 32        |                 |\n             * 52            | MSTORE           | cds 4 cds 32                | sel             |\n             * 7f slot       | PUSH32 slot      | s cds 4 cds 32              | sel             |\n             * 54            | SLOAD            | beac cds 4 cds 32           | sel             |\n             * 5a            | GAS              | g beac cds 4 cds 32         | sel             |\n             * fa            | STATICCALL       | succ                        | impl            |\n             * ~~~~~~ check calldatasize ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 36            | CALLDATASIZE     | cds succ                    |                 |\n             * 14            | EQ               |                             | impl            |\n             * 60 0x52       | PUSH1 0x52       |                             | impl            |\n             * 57            | JUMPI            |                             | impl            |\n             * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 36            | CALLDATASIZE     | cds                         | impl            |\n             * 51            | MLOAD            | impl                        | impl            |\n             * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 5a         | GAS            | g impl 0 cds 0 0 | [0..calldatasize): calldata     |\n             * f4         | DELEGATECALL   | succ             | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds succ         | [0..calldatasize): calldata     |\n             * 60 0x00    | PUSH1 0x00     | 0 rds succ       | [0..calldatasize): calldata     |\n             * 60 0x01    | PUSH1 0x01     | 1 0 rds succ     | [0..calldatasize): calldata     |\n             * 3e         | RETURNDATACOPY | succ             | [1..returndatasize): returndata |\n             *                                                                                  |\n             * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 60 0x52    | PUSH1 0x52     | dest succ        | [1..returndatasize): returndata |\n             * 57         | JUMPI          |                  | [1..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds              | [1..returndatasize): returndata |\n             * 60 0x01    | PUSH1 0x01     | 1 rds            | [1..returndatasize): returndata |\n             * fd         | REVERT         |                  | [1..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  | [1..returndatasize): returndata |\n             * 3d         | RETURNDATASIZE | rds              | [1..returndatasize): returndata |\n             * 60 0x01    | PUSH1 0x01     | 1 rds            | [1..returndatasize): returndata |\n             * f3         | RETURN         |                  | [1..returndatasize): returndata |\n             * ---------------------------------------------------------------------------------+\n             */\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(0x40, 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(0x04, or(shl(160, 0x60573d8160223d3973), shr(96, shl(96, beacon))))\n            instance := create(value, 0x07, 0x79)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Deploys a deterministic ERC1967I beacon proxy with `salt`.\n    function deployDeterministicERC1967IBeaconProxy(address beacon, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967IBeaconProxy(0, beacon, salt);\n    }\n\n    /// @dev Deploys a deterministic ERC1967I beacon proxy with `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967IBeaconProxy(uint256 value, address beacon, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(0x40, 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(0x04, or(shl(160, 0x60573d8160223d3973), shr(96, shl(96, beacon))))\n            instance := create2(value, 0x07, 0x79, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Creates a deterministic ERC1967I beacon proxy with `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967IBeaconProxy(address beacon, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967IBeaconProxy(0, beacon, salt);\n    }\n\n    /// @dev Creates a deterministic ERC1967I beacon proxy with `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967IBeaconProxy(uint256 value, address beacon, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(0x40, 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(0x04, or(shl(160, 0x60573d8160223d3973), shr(96, shl(96, beacon))))\n            // Compute and store the bytecode hash.\n            mstore(add(m, 0x35), keccak256(0x07, 0x79))\n            mstore(m, shl(88, address()))\n            mstore8(m, 0xff) // Write the prefix.\n            mstore(add(m, 0x15), salt)\n            instance := keccak256(m, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, 0x07, 0x79, salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the initialization code of the ERC1967I beacon proxy.\n    function initCodeERC1967IBeaconProxy(address beacon) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x79), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(c, 0x59), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(c, 0x39), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(c, 0x1d), beacon)\n            mstore(add(c, 0x09), 0x60573d8160223d3973)\n            mstore(add(c, 0x99), 0)\n            mstore(c, 0x79) // Store the length.\n            mstore(0x40, add(c, 0xa0)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967I beacon proxy.\n    function initCodeHashERC1967IBeaconProxy(address beacon) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(0x40, 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(0x04, or(shl(160, 0x60573d8160223d3973), shr(96, shl(96, beacon))))\n            hash := keccak256(0x07, 0x79)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967I beacon proxy, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967IBeaconProxy(\n        address beacon,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967IBeaconProxy(beacon);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*    ERC1967I BEACON PROXY WITH IMMUTABLE ARGS OPERATIONS    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a ERC1967I beacon proxy with `args.\n    function deployERC1967IBeaconProxy(address beacon, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        instance = deployERC1967IBeaconProxy(0, beacon, args);\n    }\n\n    /// @dev Deploys a ERC1967I beacon proxy with `args.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967IBeaconProxy(uint256 value, address beacon, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x90), n))\n            mstore(add(m, 0x70), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(m, 0x50), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(m, 0x30), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            mstore(add(m, gt(n, 0xffa8)), add(0xfe6100573d8160233d3973, shl(56, n)))\n            instance := create(value, add(m, 0x16), add(n, 0x7a))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic ERC1967I beacon proxy with `args` and `salt`.\n    function deployDeterministicERC1967IBeaconProxy(address beacon, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967IBeaconProxy(0, beacon, args, salt);\n    }\n\n    /// @dev Deploys a deterministic ERC1967I beacon proxy with `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967IBeaconProxy(\n        uint256 value,\n        address beacon,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x90), n))\n            mstore(add(m, 0x70), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(m, 0x50), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(m, 0x30), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            mstore(add(m, gt(n, 0xffa8)), add(0xfe6100573d8160233d3973, shl(56, n)))\n            instance := create2(value, add(m, 0x16), add(n, 0x7a), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Creates a deterministic ERC1967I beacon proxy with `args` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967IBeaconProxy(address beacon, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967IBeaconProxy(0, beacon, args, salt);\n    }\n\n    /// @dev Creates a deterministic ERC1967I beacon proxy with `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967IBeaconProxy(\n        uint256 value,\n        address beacon,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x90), n))\n            mstore(add(m, 0x70), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(m, 0x50), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(m, 0x30), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            mstore(add(m, gt(n, 0xffa8)), add(0xfe6100573d8160233d3973, shl(56, n)))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(add(m, 0x16), add(n, 0x7a)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, add(m, 0x16), add(n, 0x7a), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the ERC1967I beacon proxy with `args`.\n    function initCodeERC1967IBeaconProxy(address beacon, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffa8))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x9a), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x7a), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(c, 0x5a), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(c, 0x3a), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(c, 0x1e), beacon)\n            mstore(add(c, 0x0a), add(0x6100573d8160233d3973, shl(56, n)))\n            mstore(add(c, add(n, 0x9a)), 0)\n            mstore(c, add(n, 0x7a)) // Store the length.\n            mstore(0x40, add(c, add(n, 0xba))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967I beacon proxy with `args`.\n    function initCodeHashERC1967IBeaconProxy(address beacon, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let c := mload(0x40) // Cache the free memory pointer.\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffa8))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x90), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x70), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(c, 0x50), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(c, 0x30), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(c, 0x14), beacon)\n            mstore(c, add(0x6100573d8160233d3973, shl(56, n)))\n            hash := keccak256(add(c, 0x16), add(n, 0x7a))\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967I beacon proxy, with  `args` and salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967IBeaconProxy(\n        address beacon,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967IBeaconProxy(beacon, args);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnERC1967IBeaconProxy(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967IBeaconProxy(address instance)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x57))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x57, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnERC1967IBeaconProxy(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967IBeaconProxy(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x57))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x37), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(args, add(0x40, mload(args)))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the ERC1967I beacon proxy with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnERC1967IBeaconProxy(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x37), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x57)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      OTHER OPERATIONS                      */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns `address(0)` if the implementation address cannot be determined.\n    function implementationOf(address instance) internal view returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { extcodecopy(instance, 0x00, 0x00, 0x57) } 1 {} {\n                if mload(0x2d) {\n                    // ERC1967I and ERC1967IBeaconProxy detection.\n                    if or(\n                        eq(keccak256(0x00, 0x52), ERC1967I_CODE_HASH),\n                        eq(keccak256(0x00, 0x57), ERC1967I_BEACON_PROXY_CODE_HASH)\n                    ) {\n                        pop(staticcall(gas(), instance, 0x00, 0x01, 0x00, 0x20))\n                        result := mload(0x0c)\n                        break\n                    }\n                }\n                // 0age clone detection.\n                result := mload(0x0b)\n                codecopy(0x0b, codesize(), 0x14) // Zeroize the 20 bytes for the address.\n                if iszero(xor(keccak256(0x00, 0x2c), CLONE_CODE_HASH)) { break }\n                mstore(0x0b, result) // Restore the zeroized memory.\n                // CWIA detection.\n                result := mload(0x0a)\n                codecopy(0x0a, codesize(), 0x14) // Zeroize the 20 bytes for the address.\n                if iszero(xor(keccak256(0x00, 0x2d), CWIA_CODE_HASH)) { break }\n                mstore(0x0a, result) // Restore the zeroized memory.\n                // PUSH0 clone detection.\n                result := mload(0x09)\n                codecopy(0x09, codesize(), 0x14) // Zeroize the 20 bytes for the address.\n                result := shr(xor(keccak256(0x00, 0x2d), PUSH0_CLONE_CODE_HASH), result)\n                break\n            }\n            result := shr(96, result)\n            mstore(0x37, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the address when a contract with initialization code hash,\n    /// `hash`, is deployed with `salt`, by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddress(bytes32 hash, bytes32 salt, address deployer)\n        internal\n        pure\n        returns (address predicted)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, hash)\n            mstore(0x01, shl(96, deployer))\n            mstore(0x15, salt)\n            predicted := keccak256(0x00, 0x55)\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Requires that `salt` starts with either the zero address or `by`.\n    function checkStartsWith(bytes32 salt, address by) internal pure {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // If the salt does not start with the zero address or `by`.\n            if iszero(or(iszero(shr(96, salt)), eq(shr(96, shl(96, by)), shr(96, salt)))) {\n                mstore(0x00, 0x0c4549ef) // `SaltDoesNotStartWith()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Returns the `bytes32` at `offset` in `args`, without any bounds checks.\n    /// To load an address, you can use `address(bytes20(argLoad(args, offset)))`.\n    function argLoad(bytes memory args, uint256 offset) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := mload(add(add(args, 0x20), offset))\n        }\n    }\n}\n"},"lib/solady/src/utils/UUPSUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport {CallContextChecker} from \"./CallContextChecker.sol\";\n\n/// @notice UUPS proxy mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/UUPSUpgradeable.sol)\n/// @author Modified from OpenZeppelin\n/// (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/proxy/utils/UUPSUpgradeable.sol)\n///\n/// @dev Note:\n/// - This implementation is intended to be used with ERC1967 proxies.\n/// See: `LibClone.deployERC1967` and related functions.\n/// - This implementation is NOT compatible with legacy OpenZeppelin proxies\n/// which do not store the implementation at `_ERC1967_IMPLEMENTATION_SLOT`.\nabstract contract UUPSUpgradeable is CallContextChecker {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The upgrade failed.\n    error UpgradeFailed();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Emitted when the proxy's implementation is upgraded.\n    event Upgraded(address indexed implementation);\n\n    /// @dev `keccak256(bytes(\"Upgraded(address)\"))`.\n    uint256 private constant _UPGRADED_EVENT_SIGNATURE =\n        0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The ERC-1967 storage slot for the implementation in the proxy.\n    /// `uint256(keccak256(\"eip1967.proxy.implementation\")) - 1`.\n    bytes32 internal constant _ERC1967_IMPLEMENTATION_SLOT =\n        0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      UUPS OPERATIONS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Please override this function to check if `msg.sender` is authorized\n    /// to upgrade the proxy to `newImplementation`, reverting if not.\n    /// ```\n    ///     function _authorizeUpgrade(address) internal override onlyOwner {}\n    /// ```\n    function _authorizeUpgrade(address newImplementation) internal virtual;\n\n    /// @dev Returns the storage slot used by the implementation,\n    /// as specified in [ERC1822](https://eips.ethereum.org/EIPS/eip-1822).\n    ///\n    /// Note: The `notDelegated` modifier prevents accidental upgrades to\n    /// an implementation that is a proxy contract.\n    function proxiableUUID() public view virtual notDelegated returns (bytes32) {\n        // This function must always return `_ERC1967_IMPLEMENTATION_SLOT` to comply with ERC1967.\n        return _ERC1967_IMPLEMENTATION_SLOT;\n    }\n\n    /// @dev Upgrades the proxy's implementation to `newImplementation`.\n    /// Emits a {Upgraded} event.\n    ///\n    /// Note: Passing in empty `data` skips the delegatecall to `newImplementation`.\n    function upgradeToAndCall(address newImplementation, bytes calldata data)\n        public\n        payable\n        virtual\n        onlyProxy\n    {\n        _authorizeUpgrade(newImplementation);\n        /// @solidity memory-safe-assembly\n        assembly {\n            newImplementation := shr(96, shl(96, newImplementation)) // Clears upper 96 bits.\n            mstore(0x00, returndatasize())\n            mstore(0x01, 0x52d1902d) // `proxiableUUID()`.\n            let s := _ERC1967_IMPLEMENTATION_SLOT\n            // Check if `newImplementation` implements `proxiableUUID` correctly.\n            if iszero(eq(mload(staticcall(gas(), newImplementation, 0x1d, 0x04, 0x01, 0x20)), s)) {\n                mstore(0x01, 0x55299b49) // `UpgradeFailed()`.\n                revert(0x1d, 0x04)\n            }\n            // Emit the {Upgraded} event.\n            log2(codesize(), 0x00, _UPGRADED_EVENT_SIGNATURE, newImplementation)\n            sstore(s, newImplementation) // Updates the implementation.\n\n            // Perform a delegatecall to `newImplementation` if `data` is non-empty.\n            if data.length {\n                // Forwards the `data` to `newImplementation` via delegatecall.\n                let m := mload(0x40)\n                calldatacopy(m, data.offset, data.length)\n                if iszero(delegatecall(gas(), newImplementation, m, data.length, codesize(), 0x00))\n                {\n                    // Bubble up the revert if the call reverts.\n                    returndatacopy(m, 0x00, returndatasize())\n                    revert(m, returndatasize())\n                }\n            }\n        }\n    }\n}\n"},"src/Errors.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\n/// @title Errors\n/// @author Polymarket\n/// @notice Custom errors shared across DepositWallet contracts.\nabstract contract Errors {\n    /// @notice Thrown when the caller is not authorized to perform the action.\n    error Unauthorized();\n\n    /// @notice Thrown when the provided owner address is invalid (e.g., zero address).\n    error InvalidOwner();\n\n    /// @notice Thrown when an ownership handover is expected but none is pending.\n    error NoPendingOwner();\n\n    /// @notice Thrown when a deadline has passed.\n    error Expired();\n\n    /// @notice Thrown when a signature fails verification.\n    error InvalidSignature();\n\n    /// @notice Thrown when the caller is not the factory contract.\n    error OnlyFactory();\n\n    /// @notice Thrown when a low-level call within a batch execution fails.\n    error BatchCallFailed(uint256 index, address target, bytes result);\n\n    /// @notice Thrown when a function restricted to self-calls is invoked externally.\n    error OnlySelf();\n\n    /// @notice Thrown when a batch contains zero calls.\n    error EmptyBatch();\n\n    /// @notice Thrown when the batch nonce does not match the wallet's current nonce.\n    error InvalidNonce();\n\n    /// @notice Thrown when the batch's wallet address does not match the executing wallet.\n    error InvalidWallet();\n\n    /// @notice Legacy error retained for ABI compatibility.\n    error SessionSignerUnauthorized();\n\n    /// @notice Thrown when a session signer attempts to call the wallet itself.\n    error SessionSignerSelfCallNotAllowed();\n\n    /// @notice Thrown when a session signer attempts to call the beacon — toggling the wallet's\n    ///         beacon-upgrade pin is an owner-only privilege.\n    error SessionSignerCannotCallBeacon();\n\n    /// @notice Thrown when the supplied coordinates are not a valid P-256 public key.\n    error InvalidPasskeyPublicKey(bytes32 x, bytes32 y);\n\n    /// @notice Thrown when the zero address is provided where a non-zero address is required.\n    error ZeroAddress();\n\n    /// @notice Thrown when the provided `validUntil` timestamp is not in the future.\n    error InvalidValidUntil();\n\n    /// @notice Thrown when a paused-only function is called while the wallet is not paused.\n    error NotPaused();\n\n    /// @notice Thrown when the timelock delay has not elapsed since the wallet was paused.\n    error TimelockInsufficientDelay();\n\n    /// @notice Thrown when the wallet cannot resolve its beacon from on-proxy state — i.e., the\n    ///         ERC-1967 beacon slot is empty AND the ERC-1967 implementation slot is either empty\n    ///         or points at an address with no code.\n    error BeaconUnresolvable();\n}\n"},"src/Events.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\n/// @title Events\n/// @author Polymarket\n/// @notice Events emitted by DepositWallet contracts.\nabstract contract Events {\n    /// @notice Emitted when ownership is transferred.\n    /// @param oldOwner The address of the previous owner.\n    /// @param newOwner The address of the new owner.\n    event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n    /// @notice Emitted when a two-step ownership handover is initiated.\n    /// @param pendingOwner The address of the proposed new owner.\n    /// @param deadline The timestamp by which the pending owner must complete the handover.\n    /// @param nonce The per-handover nonce embedded in the signed digest. Off-chain consumers\n    ///              must use this value when producing the EIP-712 signature.\n    event OwnershipHandoverRequested(address indexed pendingOwner, uint256 deadline, uint256 nonce);\n\n    /// @notice Emitted when a two-step ownership handover is completed.\n    /// @param previousOwner The address of the outgoing owner.\n    /// @param newOwner The address of the incoming owner.\n    event OwnershipHandoverCompleted(address indexed previousOwner, address indexed newOwner);\n\n    /// @notice Emitted when a pending ownership handover is canceled.\n    /// @param pendingOwner The address of the canceled pending owner.\n    event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n    /// @notice Emitted when native tokens are withdrawn from the wallet by the owner.\n    /// @param to The recipient address.\n    /// @param amount The amount of native tokens withdrawn.\n    event NativeWithdrawal(address indexed to, uint256 amount);\n\n    /// @notice Emitted when ERC-20 tokens are withdrawn from the wallet by the owner.\n    /// @param token The address of the ERC-20 token.\n    /// @param to The recipient address.\n    /// @param amount The amount of tokens withdrawn.\n    event ERC20Withdrawal(address indexed token, address indexed to, uint256 amount);\n\n    /// @notice Emitted when ERC-1155 tokens are batch-withdrawn from the wallet by the owner.\n    /// @param token The address of the ERC-1155 token.\n    /// @param to The recipient address.\n    /// @param ids The token IDs withdrawn.\n    /// @param amounts The amounts withdrawn for each token ID.\n    event ERC1155BatchWithdrawal(\n        address indexed token, address indexed to, uint256[] ids, uint256[] amounts\n    );\n\n    /// @notice Emitted for each individual call executed within a batch.\n    /// @param target The address called.\n    /// @param value The ETH value sent with the call.\n    /// @param data The calldata sent to the target.\n    /// @param result The return data from the call.\n    event Execution(address indexed target, uint256 value, bytes data, bytes result);\n\n    /// @notice Emitted after a batch of calls has been successfully executed.\n    /// @param nonce The nonce of the executed batch.\n    event BatchExecuted(uint256 indexed nonce);\n\n    /// @notice Emitted when a session signer is authorized.\n    /// @param sessionSigner The address of the authorized session signer.\n    /// @param validUntil The timestamp until which the session signer is valid.\n    event SessionSignerAuthorized(address indexed sessionSigner, uint256 validUntil);\n\n    /// @notice Emitted when a session signer is revoked via a self-call.\n    /// @param sessionSigner The address of the revoked session signer.\n    event SessionSignerRevoked(address indexed sessionSigner);\n\n    /// @notice Emitted when the wallet is paused.\n    /// @param timestamp The block timestamp at which the wallet was paused.\n    event Paused(uint256 timestamp);\n\n    /// @notice Emitted when the wallet is unpaused.\n    /// @param timestamp The block timestamp at which the wallet was unpaused.\n    event Unpaused(uint256 timestamp);\n\n    /// @notice Emitted when an ERC-20 allowance is revoked by the owner.\n    /// @param token The address of the ERC-20 token.\n    /// @param spender The address whose allowance was revoked.\n    event AllowanceRevoked(address indexed token, address indexed spender);\n\n    /// @notice Emitted when an ERC-1155 operator approval is revoked by the owner.\n    /// @param token The address of the ERC-1155 token.\n    /// @param operator The address whose approval was revoked.\n    event ApprovalForAllRevoked(address indexed token, address indexed operator);\n\n    /// @notice Emitted when a session signer is emergency-revoked by the owner while paused.\n    /// @param sessionSigner The address of the revoked session signer.\n    event SessionSignerRevokedEmergency(address indexed sessionSigner);\n\n    /// @notice Emitted when a passkey session signer is authorized.\n    event PasskeySessionSignerAuthorized(\n        bytes32 indexed passkeyId, bytes32 x, bytes32 y, uint256 validUntil\n    );\n\n    /// @notice Emitted when a passkey session signer is revoked via a self-call.\n    event PasskeySessionSignerRevoked(bytes32 indexed passkeyId, bytes32 x, bytes32 y);\n\n    /// @notice Emitted when a passkey session signer is emergency-revoked by the owner.\n    event PasskeySessionSignerRevokedEmergency(bytes32 indexed passkeyId, bytes32 x, bytes32 y);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/cryptography/P256.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/P256.sol)\npragma solidity ^0.8.20;\n\nimport {Math} from \"../math/Math.sol\";\nimport {Errors} from \"../Errors.sol\";\n\n/**\n * @dev Implementation of secp256r1 verification and recovery functions.\n *\n * The secp256r1 curve (also known as P256) is a NIST standard curve with wide support in modern devices\n * and cryptographic standards. Some notable examples include Apple's Secure Enclave and Android's Keystore\n * as well as authentication protocols like FIDO2.\n *\n * Based on the original https://github.com/itsobvioustech/aa-passkeys-wallet/blob/d3d423f28a4d8dfcb203c7fa0c47f42592a7378e/src/Secp256r1.sol[implementation of itsobvioustech] (GNU General Public License v3.0).\n * Heavily inspired in https://github.com/maxrobot/elliptic-solidity/blob/c4bb1b6e8ae89534d8db3a6b3a6b52219100520f/contracts/Secp256r1.sol[maxrobot] and\n * https://github.com/tdrerup/elliptic-curve-solidity/blob/59a9c25957d4d190eff53b6610731d81a077a15e/contracts/curves/EllipticCurve.sol[tdrerup] implementations.\n *\n * _Available since v5.1._\n */\nlibrary P256 {\n    struct JPoint {\n        uint256 x;\n        uint256 y;\n        uint256 z;\n    }\n\n    /// @dev Generator (x component)\n    uint256 internal constant GX = 0x6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296;\n    /// @dev Generator (y component)\n    uint256 internal constant GY = 0x4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5;\n    /// @dev P (size of the field)\n    uint256 internal constant P = 0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF;\n    /// @dev N (order of G)\n    uint256 internal constant N = 0xFFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551;\n    /// @dev A parameter of the weierstrass equation\n    uint256 internal constant A = 0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC;\n    /// @dev B parameter of the weierstrass equation\n    uint256 internal constant B = 0x5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B;\n\n    /// @dev (P + 1) / 4. Useful to compute sqrt\n    uint256 private constant P1DIV4 = 0x3fffffffc0000000400000000000000000000000400000000000000000000000;\n\n    /// @dev N/2 for excluding higher order `s` values\n    uint256 private constant HALF_N = 0x7fffffff800000007fffffffffffffffde737d56d38bcf4279dce5617e3192a8;\n\n    /**\n     * @dev Verifies a secp256r1 signature using the RIP-7212 precompile and falls back to the Solidity implementation\n     * if the precompile is not available. This version should work on all chains, but requires the deployment of more\n     * bytecode.\n     *\n     * @param h - hashed message\n     * @param r - signature half R\n     * @param s - signature half S\n     * @param qx - public key coordinate X\n     * @param qy - public key coordinate Y\n     *\n     * IMPORTANT: This function disallows signatures where the `s` value is above `N/2` to prevent malleability.\n     * To flip the `s` value, compute `s = N - s`.\n     */\n    function verify(bytes32 h, bytes32 r, bytes32 s, bytes32 qx, bytes32 qy) internal view returns (bool) {\n        (bool valid, bool supported) = _tryVerifyNative(h, r, s, qx, qy);\n        return supported ? valid : verifySolidity(h, r, s, qx, qy);\n    }\n\n    /**\n     * @dev Same as {verify}, but it will revert if the required precompile is not available.\n     *\n     * Make sure any logic (code or precompile) deployed at that address is the expected one,\n     * otherwise the returned value may be misinterpreted as a positive boolean.\n     */\n    function verifyNative(bytes32 h, bytes32 r, bytes32 s, bytes32 qx, bytes32 qy) internal view returns (bool) {\n        (bool valid, bool supported) = _tryVerifyNative(h, r, s, qx, qy);\n        if (supported) {\n            return valid;\n        } else {\n            revert Errors.MissingPrecompile(address(0x100));\n        }\n    }\n\n    /**\n     * @dev Same as {verify}, but it will return false if the required precompile is not available.\n     */\n    function _tryVerifyNative(\n        bytes32 h,\n        bytes32 r,\n        bytes32 s,\n        bytes32 qx,\n        bytes32 qy\n    ) private view returns (bool valid, bool supported) {\n        if (!_isProperSignature(r, s) || !isValidPublicKey(qx, qy)) {\n            return (false, true); // signature is invalid, and its not because the precompile is missing\n        } else if (_rip7212(h, r, s, qx, qy)) {\n            return (true, true); // precompile is present, signature is valid\n        } else if (\n            // Given precompiles have no bytecode (i.e. `address(0x100).code.length == 0`), we use\n            // a valid signature with small `r` and `s` values to check if the precompile is present. Taken from\n            // https://github.com/C2SP/wycheproof/blob/4672ff74d68766e7785c2cac4c597effccef2c5c/testvectors/ecdsa_secp256r1_sha256_p1363_test.json#L1173-L1204\n            _rip7212(\n                0xbb5a52f42f9c9261ed4361f59422a1e30036e7c32b270c8807a419feca605023, // sha256(\"123400\")\n                0x0000000000000000000000000000000000000000000000000000000000000005,\n                0x0000000000000000000000000000000000000000000000000000000000000001,\n                0xa71af64de5126a4a4e02b7922d66ce9415ce88a4c9d25514d91082c8725ac957,\n                0x5d47723c8fbe580bb369fec9c2665d8e30a435b9932645482e7c9f11e872296b\n            )\n        ) {\n            return (false, true); // precompile is present, signature is invalid\n        } else {\n            return (false, false); // precompile is absent\n        }\n    }\n\n    /**\n     * @dev Low level helper for {_tryVerifyNative}. Calls the precompile and checks if there is a return value.\n     */\n    function _rip7212(bytes32 h, bytes32 r, bytes32 s, bytes32 qx, bytes32 qy) private view returns (bool isValid) {\n        assembly (\"memory-safe\") {\n            // Use the free memory pointer without updating it at the end of the function\n            let ptr := mload(0x40)\n            mstore(ptr, h)\n            mstore(add(ptr, 0x20), r)\n            mstore(add(ptr, 0x40), s)\n            mstore(add(ptr, 0x60), qx)\n            mstore(add(ptr, 0x80), qy)\n            // RIP-7212 precompiles return empty bytes when an invalid signature is passed, making it impossible\n            // to distinguish the presence of the precompile. Custom precompile implementations may decide to\n            // return `bytes32(0)` (i.e. false) without developers noticing, so we decide to evaluate the return value\n            // without expanding memory using scratch space.\n            mstore(0x00, 0) // zero out scratch space in case the precompile doesn't return anything\n            if iszero(staticcall(gas(), 0x100, ptr, 0xa0, 0x00, 0x20)) {\n                invalid()\n            }\n            isValid := mload(0x00)\n        }\n    }\n\n    /**\n     * @dev Same as {verify}, but only the Solidity implementation is used.\n     */\n    function verifySolidity(bytes32 h, bytes32 r, bytes32 s, bytes32 qx, bytes32 qy) internal view returns (bool) {\n        if (!_isProperSignature(r, s) || !isValidPublicKey(qx, qy)) {\n            return false;\n        }\n\n        JPoint[16] memory points = _preComputeJacobianPoints(uint256(qx), uint256(qy));\n        uint256 w = Math.invModPrime(uint256(s), N);\n        uint256 u1 = mulmod(uint256(h), w, N);\n        uint256 u2 = mulmod(uint256(r), w, N);\n        (uint256 x, ) = _jMultShamir(points, u1, u2);\n        return ((x % N) == uint256(r));\n    }\n\n    /**\n     * @dev Public key recovery\n     *\n     * @param h - hashed message\n     * @param v - signature recovery param\n     * @param r - signature half R\n     * @param s - signature half S\n     *\n     * IMPORTANT: This function disallows signatures where the `s` value is above `N/2` to prevent malleability.\n     * To flip the `s` value, compute `s = N - s` and `v = 1 - v` if (`v = 0 | 1`).\n     */\n    function recovery(bytes32 h, uint8 v, bytes32 r, bytes32 s) internal view returns (bytes32 x, bytes32 y) {\n        if (!_isProperSignature(r, s) || v > 1) {\n            return (0, 0);\n        }\n\n        uint256 p = P; // cache P on the stack\n        uint256 rx = uint256(r);\n        uint256 ry2 = addmod(mulmod(addmod(mulmod(rx, rx, p), A, p), rx, p), B, p); // weierstrass equation y² = x³ + a.x + b\n        uint256 ry = Math.modExp(ry2, P1DIV4, p); // This formula for sqrt work because P ≡ 3 (mod 4)\n        if (mulmod(ry, ry, p) != ry2) return (0, 0); // Sanity check\n        if (ry % 2 != v) ry = p - ry;\n\n        JPoint[16] memory points = _preComputeJacobianPoints(rx, ry);\n        uint256 w = Math.invModPrime(uint256(r), N);\n        uint256 u1 = mulmod(N - (uint256(h) % N), w, N);\n        uint256 u2 = mulmod(uint256(s), w, N);\n        (uint256 xU, uint256 yU) = _jMultShamir(points, u1, u2);\n        return (bytes32(xU), bytes32(yU));\n    }\n\n    /**\n     * @dev Checks if (x, y) are valid coordinates of a point on the curve.\n     * In particular this function checks that x < P and y < P.\n     */\n    function isValidPublicKey(bytes32 x, bytes32 y) internal pure returns (bool result) {\n        assembly (\"memory-safe\") {\n            let p := P\n            let lhs := mulmod(y, y, p) // y^2\n            let rhs := addmod(mulmod(addmod(mulmod(x, x, p), A, p), x, p), B, p) // ((x^2 + a) * x) + b = x^3 + ax + b\n            result := and(and(lt(x, p), lt(y, p)), eq(lhs, rhs)) // Should conform with the Weierstrass equation\n        }\n    }\n\n    /**\n     * @dev Checks if (r, s) is a proper signature.\n     * In particular, this checks that `s` is in the \"lower-range\", making the signature non-malleable.\n     */\n    function _isProperSignature(bytes32 r, bytes32 s) private pure returns (bool) {\n        return uint256(r) > 0 && uint256(r) < N && uint256(s) > 0 && uint256(s) <= HALF_N;\n    }\n\n    /**\n     * @dev Reduce from jacobian to affine coordinates\n     * @param jx - jacobian coordinate x\n     * @param jy - jacobian coordinate y\n     * @param jz - jacobian coordinate z\n     * @return ax - affine coordinate x\n     * @return ay - affine coordinate y\n     */\n    function _affineFromJacobian(uint256 jx, uint256 jy, uint256 jz) private view returns (uint256 ax, uint256 ay) {\n        if (jz == 0) return (0, 0);\n        uint256 p = P; // cache P on the stack\n        uint256 zinv = Math.invModPrime(jz, p);\n        assembly (\"memory-safe\") {\n            let zzinv := mulmod(zinv, zinv, p)\n            ax := mulmod(jx, zzinv, p)\n            ay := mulmod(jy, mulmod(zzinv, zinv, p), p)\n        }\n    }\n\n    /**\n     * @dev Point addition on the jacobian coordinates\n     * Reference: https://www.hyperelliptic.org/EFD/g1p/auto-shortw-jacobian.html#addition-add-1998-cmo-2\n     *\n     * Note that:\n     *\n     * - `addition-add-1998-cmo-2` doesn't support identical input points. This version is modified to use\n     * the `h` and `r` values computed by `addition-add-1998-cmo-2` to detect identical inputs, and fallback to\n     * `doubling-dbl-1998-cmo-2` if needed.\n     * - if one of the points is at infinity (i.e. `z=0`), the result is undefined.\n     */\n    function _jAdd(\n        JPoint memory p1,\n        uint256 x2,\n        uint256 y2,\n        uint256 z2\n    ) private pure returns (uint256 rx, uint256 ry, uint256 rz) {\n        assembly (\"memory-safe\") {\n            let p := P\n            let z1 := mload(add(p1, 0x40))\n            let zz1 := mulmod(z1, z1, p) // zz1 = z1²\n            let s1 := mulmod(mload(add(p1, 0x20)), mulmod(mulmod(z2, z2, p), z2, p), p) // s1 = y1*z2³\n            let r := addmod(mulmod(y2, mulmod(zz1, z1, p), p), sub(p, s1), p) // r = s2-s1 = y2*z1³-s1 = y2*z1³-y1*z2³\n            let u1 := mulmod(mload(p1), mulmod(z2, z2, p), p) // u1 = x1*z2²\n            let h := addmod(mulmod(x2, zz1, p), sub(p, u1), p) // h = u2-u1 = x2*z1²-u1 = x2*z1²-x1*z2²\n\n            // detect edge cases where inputs are identical\n            switch and(iszero(r), iszero(h))\n            // case 0: points are different\n            case 0 {\n                let hh := mulmod(h, h, p) // h²\n\n                // x' = r²-h³-2*u1*h²\n                rx := addmod(\n                    addmod(mulmod(r, r, p), sub(p, mulmod(h, hh, p)), p),\n                    sub(p, mulmod(2, mulmod(u1, hh, p), p)),\n                    p\n                )\n                // y' = r*(u1*h²-x')-s1*h³\n                ry := addmod(\n                    mulmod(r, addmod(mulmod(u1, hh, p), sub(p, rx), p), p),\n                    sub(p, mulmod(s1, mulmod(h, hh, p), p)),\n                    p\n                )\n                // z' = h*z1*z2\n                rz := mulmod(h, mulmod(z1, z2, p), p)\n            }\n            // case 1: points are equal\n            case 1 {\n                let x := x2\n                let y := y2\n                let z := z2\n                let yy := mulmod(y, y, p)\n                let zz := mulmod(z, z, p)\n                let m := addmod(mulmod(3, mulmod(x, x, p), p), mulmod(A, mulmod(zz, zz, p), p), p) // m = 3*x²+a*z⁴\n                let s := mulmod(4, mulmod(x, yy, p), p) // s = 4*x*y²\n\n                // x' = t = m²-2*s\n                rx := addmod(mulmod(m, m, p), sub(p, mulmod(2, s, p)), p)\n\n                // y' = m*(s-t)-8*y⁴ = m*(s-x')-8*y⁴\n                // cut the computation to avoid stack too deep\n                let rytmp1 := sub(p, mulmod(8, mulmod(yy, yy, p), p)) // -8*y⁴\n                let rytmp2 := addmod(s, sub(p, rx), p) // s-x'\n                ry := addmod(mulmod(m, rytmp2, p), rytmp1, p) // m*(s-x')-8*y⁴\n\n                // z' = 2*y*z\n                rz := mulmod(2, mulmod(y, z, p), p)\n            }\n        }\n    }\n\n    /**\n     * @dev Point doubling on the jacobian coordinates\n     * Reference: https://www.hyperelliptic.org/EFD/g1p/auto-shortw-jacobian.html#doubling-dbl-1998-cmo-2\n     */\n    function _jDouble(uint256 x, uint256 y, uint256 z) private pure returns (uint256 rx, uint256 ry, uint256 rz) {\n        assembly (\"memory-safe\") {\n            let p := P\n            let yy := mulmod(y, y, p)\n            let zz := mulmod(z, z, p)\n            let m := addmod(mulmod(3, mulmod(x, x, p), p), mulmod(A, mulmod(zz, zz, p), p), p) // m = 3*x²+a*z⁴\n            let s := mulmod(4, mulmod(x, yy, p), p) // s = 4*x*y²\n\n            // x' = t = m²-2*s\n            rx := addmod(mulmod(m, m, p), sub(p, mulmod(2, s, p)), p)\n            // y' = m*(s-t)-8*y⁴ = m*(s-x')-8*y⁴\n            ry := addmod(mulmod(m, addmod(s, sub(p, rx), p), p), sub(p, mulmod(8, mulmod(yy, yy, p), p)), p)\n            // z' = 2*y*z\n            rz := mulmod(2, mulmod(y, z, p), p)\n        }\n    }\n\n    /**\n     * @dev Compute G·u1 + P·u2 using the precomputed points for G and P (see {_preComputeJacobianPoints}).\n     *\n     * Uses Strauss Shamir trick for EC multiplication\n     * https://stackoverflow.com/questions/50993471/ec-scalar-multiplication-with-strauss-shamir-method\n     *\n     * We optimize this for 2 bits at a time rather than a single bit. The individual points for a single pass are\n     * precomputed. Overall this reduces the number of additions while keeping the same number of\n     * doublings\n     */\n    function _jMultShamir(\n        JPoint[16] memory points,\n        uint256 u1,\n        uint256 u2\n    ) private view returns (uint256 rx, uint256 ry) {\n        uint256 x = 0;\n        uint256 y = 0;\n        uint256 z = 0;\n        unchecked {\n            for (uint256 i = 0; i < 128; ++i) {\n                if (z > 0) {\n                    (x, y, z) = _jDouble(x, y, z);\n                    (x, y, z) = _jDouble(x, y, z);\n                }\n                // Read 2 bits of u1, and 2 bits of u2. Combining the two gives the lookup index in the table.\n                uint256 pos = ((u1 >> 252) & 0xc) | ((u2 >> 254) & 0x3);\n                // Points that have z = 0 are points at infinity. They are the additive 0 of the group\n                // - if the lookup point is a 0, we can skip it\n                // - otherwise:\n                //   - if the current point (x, y, z) is 0, we use the lookup point as our new value (0+P=P)\n                //   - if the current point (x, y, z) is not 0, both points are valid and we can use `_jAdd`\n                if (points[pos].z != 0) {\n                    if (z == 0) {\n                        (x, y, z) = (points[pos].x, points[pos].y, points[pos].z);\n                    } else {\n                        (x, y, z) = _jAdd(points[pos], x, y, z);\n                    }\n                }\n                u1 <<= 2;\n                u2 <<= 2;\n            }\n        }\n        return _affineFromJacobian(x, y, z);\n    }\n\n    /**\n     * @dev Precompute a matrice of useful jacobian points associated with a given P. This can be seen as a 4x4 matrix\n     * that contains combination of P and G (generator) up to 3 times each. See the table below:\n     *\n     * ┌────┬─────────────────────┐\n     * │  i │  0    1     2     3 │\n     * ├────┼─────────────────────┤\n     * │  0 │  0    p    2p    3p │\n     * │  4 │  g  g+p  g+2p  g+3p │\n     * │  8 │ 2g 2g+p 2g+2p 2g+3p │\n     * │ 12 │ 3g 3g+p 3g+2p 3g+3p │\n     * └────┴─────────────────────┘\n     *\n     * Note that `_jAdd` (and thus `_jAddPoint`) does not handle the case where one of the inputs is a point at\n     * infinity (z = 0). However, we know that since `N ≡ 1 mod 2` and `N ≡ 1 mod 3`, there is no point P such that\n     * 2P = 0 or 3P = 0. This guarantees that g, 2g, 3g, p, 2p, 3p are all non-zero, and that all `_jAddPoint` calls\n     * have valid inputs.\n     */\n    function _preComputeJacobianPoints(uint256 px, uint256 py) private pure returns (JPoint[16] memory points) {\n        points[0x00] = JPoint(0, 0, 0); // 0,0\n        points[0x01] = JPoint(px, py, 1); // 1,0 (p)\n        points[0x04] = JPoint(GX, GY, 1); // 0,1 (g)\n        points[0x02] = _jDoublePoint(points[0x01]); // 2,0 (2p)\n        points[0x08] = _jDoublePoint(points[0x04]); // 0,2 (2g)\n        points[0x03] = _jAddPoint(points[0x01], points[0x02]); // 3,0 (p+2p = 3p)\n        points[0x05] = _jAddPoint(points[0x01], points[0x04]); // 1,1 (p+g)\n        points[0x06] = _jAddPoint(points[0x02], points[0x04]); // 2,1 (2p+g)\n        points[0x07] = _jAddPoint(points[0x03], points[0x04]); // 3,1 (3p+g)\n        points[0x09] = _jAddPoint(points[0x01], points[0x08]); // 1,2 (p+2g)\n        points[0x0a] = _jAddPoint(points[0x02], points[0x08]); // 2,2 (2p+2g)\n        points[0x0b] = _jAddPoint(points[0x03], points[0x08]); // 3,2 (3p+2g)\n        points[0x0c] = _jAddPoint(points[0x04], points[0x08]); // 0,3 (g+2g = 3g)\n        points[0x0d] = _jAddPoint(points[0x01], points[0x0c]); // 1,3 (p+3g)\n        points[0x0e] = _jAddPoint(points[0x02], points[0x0c]); // 2,3 (2p+3g)\n        points[0x0f] = _jAddPoint(points[0x03], points[0x0c]); // 3,3 (3p+3g)\n    }\n\n    function _jAddPoint(JPoint memory p1, JPoint memory p2) private pure returns (JPoint memory) {\n        (uint256 x, uint256 y, uint256 z) = _jAdd(p1, p2.x, p2.y, p2.z);\n        return JPoint(x, y, z);\n    }\n\n    function _jDoublePoint(JPoint memory p) private pure returns (JPoint memory) {\n        (uint256 x, uint256 y, uint256 z) = _jDouble(p.x, p.y, p.z);\n        return JPoint(x, y, z);\n    }\n}\n"},"src/libraries/WebAuthnNative.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/cryptography/WebAuthn.sol)\n//\n// VENDORED from OpenZeppelin with a single semantic change: the final signature check calls\n// `P256.verifyNative` (RIP-7212 precompile only) instead of `P256.verify` (precompile with an\n// inline Solidity fallback). This keeps the deep elliptic-curve `verifySolidity` out of every\n// consumer's compilation unit, which (a) shrinks bytecode and (b) lets `forge coverage` compile.\n// Behaviour is identical on chains with the P-256 precompile (e.g. Polygon); on chains without it,\n// `verifyNative` reverts instead of running the Solidity fallback. Keep in sync with OZ on bumps.\n\npragma solidity ^0.8.24;\n\nimport {P256} from \"@openzeppelin/contracts/utils/cryptography/P256.sol\";\nimport {Math} from \"@openzeppelin/contracts/utils/math/Math.sol\";\nimport {Base64} from \"@openzeppelin/contracts/utils/Base64.sol\";\nimport {Bytes} from \"@openzeppelin/contracts/utils/Bytes.sol\";\nimport {Strings} from \"@openzeppelin/contracts/utils/Strings.sol\";\n\n/**\n * @dev Library for verifying WebAuthn Authentication Assertions.\n *\n * WebAuthn enables strong authentication for smart contracts using\n * https://docs.openzeppelin.com/contracts/5.x/api/utils#P256[P256]\n * as an alternative to traditional secp256k1 ECDSA signatures. This library verifies\n * signatures generated during WebAuthn authentication ceremonies as specified in the\n * https://www.w3.org/TR/webauthn-2/[WebAuthn Level 2 standard].\n *\n * For blockchain use cases, the following WebAuthn validations are intentionally omitted:\n *\n * * Origin validation: Origin verification in `clientDataJSON` is omitted. This check is the\n *   responsibility of the authenticator and does not have a meaningful on-chain use case; standard\n *   authenticators implement proper origin validation before signing.\n * * RP ID hash validation: Verification of `rpIdHash` in authenticatorData against expected\n *   RP ID hash is omitted. This check is the responsibility of the authenticator and does not have\n *   a meaningful on-chain use case; it is typically enforced at the platform level.\n * * Signature counter: Verification of signature counter increments is omitted. The\n *   signature counter is maintained by authenticators per the WebAuthn spec to detect\n *   credential cloning, but validating it requires storing per-credential mutable state\n *   (the last seen counter value) which is impractical for most smart contract applications.\n *   Additionally, counter enforcement is primarily an authenticator responsibility, not a\n *   contract-level concern.\n * * Extension outputs: Extension output value verification is omitted as these are not\n *   essential for core authentication security in blockchain applications.\n * * Attestation: Attestation object verification is omitted as this implementation\n *   focuses on authentication (`webauthn.get`) rather than registration ceremonies.\n *\n * Inspired by:\n *\n * * https://github.com/daimo-eth/p256-verifier/blob/master/src/WebAuthn.sol[daimo-eth\n * implementation]\n * * https://github.com/base/webauthn-sol/blob/main/src/WebAuthn.sol[base implementation]\n */\nlibrary WebAuthn {\n    struct WebAuthnAuth {\n        bytes32 r; /// The r value of secp256r1 signature\n        bytes32 s; /// The s value of secp256r1 signature\n        uint256 challengeIndex; /// The index at which \"challenge\":\"...\" occurs in `clientDataJSON`.\n        uint256 typeIndex; /// The index at which \"type\":\"...\" occurs in `clientDataJSON`.\n        /// The WebAuthn authenticator data.\n        /// https://www.w3.org/TR/webauthn-2/#dom-authenticatorassertionresponse-authenticatordata\n        bytes authenticatorData;\n        /// The WebAuthn client data JSON.\n        /// https://www.w3.org/TR/webauthn-2/#dom-authenticatorresponse-clientdatajson\n        string clientDataJSON;\n    }\n\n    /// @dev Bit 0 of the authenticator data flags: \"User Present\" bit.\n    bytes1 internal constant AUTH_DATA_FLAGS_UP = 0x01;\n    /// @dev Bit 2 of the authenticator data flags: \"User Verified\" bit.\n    bytes1 internal constant AUTH_DATA_FLAGS_UV = 0x04;\n    /// @dev Bit 3 of the authenticator data flags: \"Backup Eligibility\" bit.\n    bytes1 internal constant AUTH_DATA_FLAGS_BE = 0x08;\n    /// @dev Bit 4 of the authenticator data flags: \"Backup State\" bit.\n    bytes1 internal constant AUTH_DATA_FLAGS_BS = 0x10;\n\n    /**\n     * @dev Performs standard verification of a WebAuthn Authentication Assertion.\n     */\n    function verify(bytes memory challenge, WebAuthnAuth memory auth, bytes32 qx, bytes32 qy)\n        internal\n        view\n        returns (bool)\n    {\n        return verify(challenge, auth, qx, qy, true);\n    }\n\n    /**\n     * @dev Performs verification of a WebAuthn Authentication Assertion. This variants allow the\n     * caller to select\n     * whether of not to require the UV flag (step 17).\n     *\n     * Verifies:\n     *\n     * 1. Type is \"webauthn.get\" (see {_validateExpectedTypeHash})\n     * 2. Challenge matches the expected value (see {_validateChallenge})\n     * 3. Cryptographic signature is valid for the given public key\n     * 4. confirming physical user presence during authentication\n     * 5. (if `requireUV` is true) confirming stronger user authentication (biometrics/PIN)\n     * 6. Backup Eligibility (`BE`) and Backup State (BS) bits relationship is valid\n     */\n    function verify(\n        bytes memory challenge,\n        WebAuthnAuth memory auth,\n        bytes32 qx,\n        bytes32 qy,\n        bool requireUV\n    ) internal view returns (bool) {\n        // Verify authenticator data has sufficient length (37 bytes minimum):\n        // - 32 bytes for rpIdHash\n        // - 1 byte for flags\n        // - 4 bytes for signature counter\n        return auth.authenticatorData.length > 36\n            && _validateExpectedTypeHash(auth.clientDataJSON, auth.typeIndex) // 11\n            && _validateChallenge(auth.clientDataJSON, auth.challengeIndex, challenge) // 12\n            && _validateUserPresentBitSet(auth.authenticatorData[32]) // 16\n            && (!requireUV || _validateUserVerifiedBitSet(auth.authenticatorData[32])) // 17\n            && _validateBackupEligibilityAndState(auth.authenticatorData[32]) // Consistency check\n            // P256.verify handles signature malleability internally\n            && P256.verifyNative(\n            sha256(\n            abi.encodePacked(\n            auth.authenticatorData,\n            sha256(bytes(auth.clientDataJSON)) // 19\n        )\n        ),\n            auth.r,\n            auth.s,\n            qx,\n            qy\n        ); // 20\n    }\n\n    /**\n     * @dev Validates that the https://www.w3.org/TR/webauthn-2/#type[Type] field in the client data\n     * JSON is set to\n     * \"webauthn.get\".\n     *\n     * Step 11 in https://www.w3.org/TR/webauthn-2/#sctn-verifying-assertion[verifying an\n     * assertion].\n     */\n    function _validateExpectedTypeHash(string memory clientDataJSON, uint256 typeIndex)\n        private\n        pure\n        returns (bool success)\n    {\n        assembly (\"memory-safe\") {\n            success := and(\n                // clientDataJson.length >= typeIndex + 21\n                gt(mload(clientDataJSON), add(typeIndex, 20)),\n                eq(\n                    // get 32 bytes starting at index typexIndex in clientDataJSON, and keep the\n                    // leftmost 21 bytes\n                    and(mload(add(add(clientDataJSON, 0x20), typeIndex)), shl(88, not(0))),\n                    // solhint-disable-next-line quotes\n                    '\"type\":\"webauthn.get\"'\n                )\n            )\n        }\n    }\n\n    /**\n     * @dev Validates that the challenge in the client data JSON matches the `expectedChallenge`.\n     *\n     * Step 12 in https://www.w3.org/TR/webauthn-2/#sctn-verifying-assertion[verifying an\n     * assertion].\n     */\n    function _validateChallenge(\n        string memory clientDataJSON,\n        uint256 challengeIndex,\n        bytes memory challenge\n    ) private pure returns (bool) {\n        // solhint-disable-next-line quotes\n        string memory expectedChallenge =\n            string.concat('\"challenge\":\"', Base64.encodeURL(challenge), '\"');\n        string memory actualChallenge = string(\n            Bytes.slice(\n                bytes(clientDataJSON),\n                challengeIndex,\n                Math.saturatingAdd(challengeIndex, bytes(expectedChallenge).length)\n            )\n        );\n\n        return Strings.equal(actualChallenge, expectedChallenge);\n    }\n\n    /**\n     * @dev Validates that the https://www.w3.org/TR/webauthn-2/#up[User Present (UP)] bit is set.\n     *\n     * Step 16 in https://www.w3.org/TR/webauthn-2/#sctn-verifying-assertion[verifying an\n     * assertion].\n     *\n     * NOTE: Required by WebAuthn spec but may be skipped for platform authenticators\n     * (Touch ID, Windows Hello) in controlled environments. Enforce for public-facing apps.\n     */\n    function _validateUserPresentBitSet(bytes1 flags) private pure returns (bool) {\n        return (flags & AUTH_DATA_FLAGS_UP) == AUTH_DATA_FLAGS_UP;\n    }\n\n    /**\n     * @dev Validates that the https://www.w3.org/TR/webauthn-2/#uv[User Verified (UV)] bit is set.\n     *\n     * Step 17 in https://www.w3.org/TR/webauthn-2/#sctn-verifying-assertion[verifying an\n     * assertion].\n     *\n     * The UV bit indicates whether the user was verified using a stronger identification method\n     * (biometrics, PIN, password). While optional, requiring UV=1 is recommended for:\n     *\n     * * High-value transactions and sensitive operations\n     * * Account recovery and critical settings changes\n     * * Privileged operations\n     *\n     * NOTE: For routine operations or when using hardware authenticators without verification\n     * capabilities,\n     * `UV=0` may be acceptable. The choice of whether to require UV represents a security vs.\n     * usability\n     * tradeoff - for blockchain applications handling valuable assets, requiring UV is generally\n     * safer.\n     */\n    function _validateUserVerifiedBitSet(bytes1 flags) private pure returns (bool) {\n        return (flags & AUTH_DATA_FLAGS_UV) == AUTH_DATA_FLAGS_UV;\n    }\n\n    /**\n     * @dev Validates the relationship between Backup Eligibility (`BE`) and Backup State (`BS`)\n     * bits\n     * according to the WebAuthn specification.\n     *\n     * The function enforces that if a credential is backed up (`BS=1`), it must also be eligible\n     * for backup (`BE=1`). This prevents unauthorized credential backup and ensures compliance\n     * with the WebAuthn spec.\n     *\n     * Returns true in these valid states:\n     *\n     * * `BE=1`, `BS=0`: Credential is eligible but not backed up\n     * * `BE=1`, `BS=1`: Credential is eligible and backed up\n     * * `BE=0`, `BS=0`: Credential is not eligible and not backed up\n     *\n     * Returns false only when `BE=0` and `BS=1`, which is an invalid state indicating\n     * a credential that's backed up but not eligible for backup.\n     *\n     * NOTE: While the WebAuthn spec defines this relationship between `BE` and `BS` bits,\n     * validating it is not explicitly required as part of the core verification procedure.\n     * Some implementations may choose to skip this check for broader authenticator\n     * compatibility or when the application's threat model doesn't consider credential\n     * syncing a major risk.\n     */\n    function _validateBackupEligibilityAndState(bytes1 flags) private pure returns (bool) {\n        return\n            (flags & AUTH_DATA_FLAGS_BE) == AUTH_DATA_FLAGS_BE || (flags & AUTH_DATA_FLAGS_BS) == 0;\n    }\n\n    /**\n     * @dev Verifies that calldata bytes (`input`) represents a valid `WebAuthnAuth` object. If\n     * encoding is valid,\n     * returns true and the calldata view at the object. Otherwise, returns false and an invalid\n     * calldata object.\n     *\n     * NOTE: The returned `auth` object should not be accessed if `success` is false. Trying to\n     * access the data may\n     * cause revert/panic.\n     */\n    function tryDecodeAuth(bytes calldata input)\n        internal\n        pure\n        returns (bool success, WebAuthnAuth calldata auth)\n    {\n        assembly (\"memory-safe\") {\n            auth := input.offset\n        }\n\n        // Minimum length to hold 6 objects (32 bytes each)\n        if (input.length < 0xC0) return (false, auth);\n\n        // Get offset of non-value-type elements relative to the input buffer\n        uint256 authenticatorDataOffset = uint256(bytes32(input[0x80:]));\n        uint256 clientDataJSONOffset = uint256(bytes32(input[0xa0:]));\n\n        // The elements length (at the offset) should be 32 bytes long. We check that this is within\n        // the buffer bounds. Since we know input.length is at least 32, we can subtract with no\n        // overflow risk.\n        if (\n            input.length - 0x20 < authenticatorDataOffset\n                || input.length - 0x20 < clientDataJSONOffset\n        ) {\n            return (false, auth);\n        }\n\n        // Get the lengths. offset + 32 is bounded by input.length so it does not overflow.\n        uint256 authenticatorDataLength = uint256(bytes32(input[authenticatorDataOffset:]));\n        uint256 clientDataJSONLength = uint256(bytes32(input[clientDataJSONOffset:]));\n\n        // Check that the input buffer is long enough to store the non-value-type elements\n        // Since we know input.length is at least xxxOffset + 32, we can subtract with no overflow\n        // risk.\n        if (\n            input.length - authenticatorDataOffset - 0x20 < authenticatorDataLength\n                || input.length - clientDataJSONOffset - 0x20 < clientDataJSONLength\n        ) return (false, auth);\n\n        return (true, auth);\n    }\n}\n"},"lib/solady/src/utils/ECDSA.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Gas optimized ECDSA wrapper.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/ECDSA.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/ECDSA.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/ECDSA.sol)\n///\n/// @dev Note:\n/// - The recovery functions use the ecrecover precompile (0x1).\n/// - As of Solady version 0.0.68, the `recover` variants will revert upon recovery failure.\n///   This is for more safety by default.\n///   Use the `tryRecover` variants if you need to get the zero address back\n///   upon recovery failure instead.\n/// - As of Solady version 0.0.134, all `bytes signature` variants accept both\n///   regular 65-byte `(r, s, v)` and EIP-2098 `(r, vs)` short form signatures.\n///   See: https://eips.ethereum.org/EIPS/eip-2098\n///   This is for calldata efficiency on smart accounts prevalent on L2s.\n///\n/// WARNING! Do NOT directly use signatures as unique identifiers:\n/// - The recovery operations do NOT check if a signature is non-malleable.\n/// - Use a nonce in the digest to prevent replay attacks on the same contract.\n/// - Use EIP-712 for the digest to prevent replay attacks across different chains and contracts.\n///   EIP-712 also enables readable signing of typed data for better user safety.\n/// - If you need a unique hash from a signature, please use the `canonicalHash` functions.\nlibrary ECDSA {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The order of the secp256k1 elliptic curve.\n    uint256 internal constant N = 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141;\n\n    /// @dev `N/2 + 1`. Used for checking the malleability of the signature.\n    uint256 private constant _HALF_N_PLUS_1 =\n        0x7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a1;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                        CUSTOM ERRORS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The signature is invalid.\n    error InvalidSignature();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    RECOVERY OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n    function recover(bytes32 hash, bytes memory signature) internal view returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let m := mload(0x40) } 1 {\n                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n                revert(0x1c, 0x04)\n            } {\n                switch mload(signature)\n                case 64 {\n                    let vs := mload(add(signature, 0x40))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                    mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                }\n                default { continue }\n                mstore(0x00, hash)\n                mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                mstore(0x60, 0) // Restore the zero slot.\n                mstore(0x40, m) // Restore the free memory pointer.\n                // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n                if returndatasize() { break }\n            }\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n    function recoverCalldata(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let m := mload(0x40) } 1 {\n                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n                revert(0x1c, 0x04)\n            } {\n                switch signature.length\n                case 64 {\n                    let vs := calldataload(add(signature.offset, 0x20))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x40, calldataload(signature.offset)) // `r`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n                    calldatacopy(0x40, signature.offset, 0x40) // Copy `r` and `s`.\n                }\n                default { continue }\n                mstore(0x00, hash)\n                result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                mstore(0x60, 0) // Restore the zero slot.\n                mstore(0x40, m) // Restore the free memory pointer.\n                // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n                if returndatasize() { break }\n            }\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`,\n    /// and the EIP-2098 short form signature defined by `r` and `vs`.\n    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal view returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, hash)\n            mstore(0x20, add(shr(255, vs), 27)) // `v`.\n            mstore(0x40, r)\n            mstore(0x60, shr(1, shl(1, vs))) // `s`.\n            result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n            if iszero(returndatasize()) {\n                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x60, 0) // Restore the zero slot.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`,\n    /// and the signature defined by `v`, `r`, `s`.\n    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, hash)\n            mstore(0x20, and(v, 0xff))\n            mstore(0x40, r)\n            mstore(0x60, s)\n            result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n            if iszero(returndatasize()) {\n                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x60, 0) // Restore the zero slot.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   TRY-RECOVER OPERATIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // WARNING!\n    // These functions will NOT revert upon recovery failure.\n    // Instead, they will return the zero address upon recovery failure.\n    // It is critical that the returned address is NEVER compared against\n    // a zero address (e.g. an uninitialized address variable).\n\n    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n    function tryRecover(bytes32 hash, bytes memory signature)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let m := mload(0x40) } 1 {} {\n                switch mload(signature)\n                case 64 {\n                    let vs := mload(add(signature, 0x40))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                    mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                }\n                default { break }\n                mstore(0x00, hash)\n                mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n                mstore(0x60, 0) // Restore the zero slot.\n                // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n                result := mload(xor(0x60, returndatasize()))\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n    function tryRecoverCalldata(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let m := mload(0x40) } 1 {} {\n                switch signature.length\n                case 64 {\n                    let vs := calldataload(add(signature.offset, 0x20))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x40, calldataload(signature.offset)) // `r`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n                    calldatacopy(0x40, signature.offset, 0x40) // Copy `r` and `s`.\n                }\n                default { break }\n                mstore(0x00, hash)\n                pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n                mstore(0x60, 0) // Restore the zero slot.\n                // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n                result := mload(xor(0x60, returndatasize()))\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`,\n    /// and the EIP-2098 short form signature defined by `r` and `vs`.\n    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, hash)\n            mstore(0x20, add(shr(255, vs), 27)) // `v`.\n            mstore(0x40, r)\n            mstore(0x60, shr(1, shl(1, vs))) // `s`.\n            pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n            mstore(0x60, 0) // Restore the zero slot.\n            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n            result := mload(xor(0x60, returndatasize()))\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`,\n    /// and the signature defined by `v`, `r`, `s`.\n    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, hash)\n            mstore(0x20, and(v, 0xff))\n            mstore(0x40, r)\n            mstore(0x60, s)\n            pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n            mstore(0x60, 0) // Restore the zero slot.\n            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n            result := mload(xor(0x60, returndatasize()))\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     HASHING OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns an Ethereum Signed Message, created from a `hash`.\n    /// This produces a hash corresponding to the one signed with the\n    /// [`eth_sign`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign)\n    /// JSON-RPC method as part of EIP-191.\n    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x20, hash) // Store into scratch space for keccak256.\n            mstore(0x00, \"\\x00\\x00\\x00\\x00\\x19Ethereum Signed Message:\\n32\") // 28 bytes.\n            result := keccak256(0x04, 0x3c) // `32 * 2 - (32 - 28) = 60 = 0x3c`.\n        }\n    }\n\n    /// @dev Returns an Ethereum Signed Message, created from `s`.\n    /// This produces a hash corresponding to the one signed with the\n    /// [`eth_sign`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign)\n    /// JSON-RPC method as part of EIP-191.\n    /// Note: Supports lengths of `s` up to 999999 bytes.\n    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let sLength := mload(s)\n            let o := 0x20\n            mstore(o, \"\\x19Ethereum Signed Message:\\n\") // 26 bytes, zero-right-padded.\n            mstore(0x00, 0x00)\n            // Convert the `s.length` to ASCII decimal representation: `base10(s.length)`.\n            for { let temp := sLength } 1 {} {\n                o := sub(o, 1)\n                mstore8(o, add(48, mod(temp, 10)))\n                temp := div(temp, 10)\n                if iszero(temp) { break }\n            }\n            let n := sub(0x3a, o) // Header length: `26 + 32 - o`.\n            // Throw an out-of-offset error (consumes all gas) if the header exceeds 32 bytes.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0x20))\n            mstore(s, or(mload(0x00), mload(n))) // Temporarily store the header.\n            result := keccak256(add(s, sub(0x20, n)), add(n, sLength))\n            mstore(s, sLength) // Restore the length.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  CANONICAL HASH FUNCTIONS                  */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // The following functions return the hash of the signature in its canonicalized format,\n    // which is the 65-byte `abi.encodePacked(r, s, uint8(v))`, where `v` is either 27 or 28.\n    // If `s` is greater than `N / 2` then it will be converted to `N - s`\n    // and the `v` value will be flipped.\n    // If the signature has an invalid length, or if `v` is invalid,\n    // a uniquely corrupt hash will be returned.\n    // These functions are useful for \"poor-mans-VRF\".\n\n    /// @dev Returns the canonical hash of `signature`.\n    function canonicalHash(bytes memory signature) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let l := mload(signature)\n            for {} 1 {} {\n                mstore(0x00, mload(add(signature, 0x20))) // `r`.\n                let s := mload(add(signature, 0x40))\n                let v := mload(add(signature, 0x41))\n                if eq(l, 64) {\n                    v := add(shr(255, s), 27)\n                    s := shr(1, shl(1, s))\n                }\n                if iszero(lt(s, _HALF_N_PLUS_1)) {\n                    v := xor(v, 7)\n                    s := sub(N, s)\n                }\n                mstore(0x21, v)\n                mstore(0x20, s)\n                result := keccak256(0x00, 0x41)\n                mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n                break\n            }\n\n            // If the length is neither 64 nor 65, return a uniquely corrupted hash.\n            if iszero(lt(sub(l, 64), 2)) {\n                // `bytes4(keccak256(\"InvalidSignatureLength\"))`.\n                result := xor(keccak256(add(signature, 0x20), l), 0xd62f1ab2)\n            }\n        }\n    }\n\n    /// @dev Returns the canonical hash of `signature`.\n    function canonicalHashCalldata(bytes calldata signature)\n        internal\n        pure\n        returns (bytes32 result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for {} 1 {} {\n                mstore(0x00, calldataload(signature.offset)) // `r`.\n                let s := calldataload(add(signature.offset, 0x20))\n                let v := calldataload(add(signature.offset, 0x21))\n                if eq(signature.length, 64) {\n                    v := add(shr(255, s), 27)\n                    s := shr(1, shl(1, s))\n                }\n                if iszero(lt(s, _HALF_N_PLUS_1)) {\n                    v := xor(v, 7)\n                    s := sub(N, s)\n                }\n                mstore(0x21, v)\n                mstore(0x20, s)\n                result := keccak256(0x00, 0x41)\n                mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n                break\n            }\n            // If the length is neither 64 nor 65, return a uniquely corrupted hash.\n            if iszero(lt(sub(signature.length, 64), 2)) {\n                calldatacopy(mload(0x40), signature.offset, signature.length)\n                // `bytes4(keccak256(\"InvalidSignatureLength\"))`.\n                result := xor(keccak256(mload(0x40), signature.length), 0xd62f1ab2)\n            }\n        }\n    }\n\n    /// @dev Returns the canonical hash of `signature`.\n    function canonicalHash(bytes32 r, bytes32 vs) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, r) // `r`.\n            let v := add(shr(255, vs), 27)\n            let s := shr(1, shl(1, vs))\n            mstore(0x21, v)\n            mstore(0x20, s)\n            result := keccak256(0x00, 0x41)\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the canonical hash of `signature`.\n    function canonicalHash(uint8 v, bytes32 r, bytes32 s) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, r) // `r`.\n            if iszero(lt(s, _HALF_N_PLUS_1)) {\n                v := xor(v, 7)\n                s := sub(N, s)\n            }\n            mstore(0x21, v)\n            mstore(0x20, s)\n            result := keccak256(0x00, 0x41)\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   EMPTY CALLDATA HELPERS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns an empty calldata bytes.\n    function emptySignature() internal pure returns (bytes calldata signature) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            signature.length := 0\n        }\n    }\n}\n"},"lib/solady/src/auth/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Simple single owner authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)\n///\n/// @dev Note:\n/// This implementation does NOT auto-initialize the owner to `msg.sender`.\n/// You MUST call the `_initializeOwner` in the constructor / initializer.\n///\n/// While the ownable portion follows\n/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,\n/// the nomenclature for the 2-step ownership handover may be unique to this codebase.\nabstract contract Ownable {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The caller is not authorized to call the function.\n    error Unauthorized();\n\n    /// @dev The `newOwner` cannot be the zero address.\n    error NewOwnerIsZeroAddress();\n\n    /// @dev The `pendingOwner` does not have a valid handover request.\n    error NoHandoverRequest();\n\n    /// @dev Cannot double-initialize.\n    error AlreadyInitialized();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The ownership is transferred from `oldOwner` to `newOwner`.\n    /// This event is intentionally kept the same as OpenZeppelin's Ownable to be\n    /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),\n    /// despite it not being as lightweight as a single argument event.\n    event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n    /// @dev An ownership handover to `pendingOwner` has been requested.\n    event OwnershipHandoverRequested(address indexed pendingOwner);\n\n    /// @dev The ownership handover to `pendingOwner` has been canceled.\n    event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n    /// @dev `keccak256(bytes(\"OwnershipTransferred(address,address)\"))`.\n    uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =\n        0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;\n\n    /// @dev `keccak256(bytes(\"OwnershipHandoverRequested(address)\"))`.\n    uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE =\n        0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d;\n\n    /// @dev `keccak256(bytes(\"OwnershipHandoverCanceled(address)\"))`.\n    uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE =\n        0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The owner slot is given by:\n    /// `bytes32(~uint256(uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))))`.\n    /// It is intentionally chosen to be a high value\n    /// to avoid collision with lower slots.\n    /// The choice of manual storage layout is to enable compatibility\n    /// with both regular and upgradeable contracts.\n    bytes32 internal constant _OWNER_SLOT =\n        0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927;\n\n    /// The ownership handover slot of `newOwner` is given by:\n    /// ```\n    ///     mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED))\n    ///     let handoverSlot := keccak256(0x00, 0x20)\n    /// ```\n    /// It stores the expiry timestamp of the two-step ownership handover.\n    uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     INTERNAL FUNCTIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Override to return true to make `_initializeOwner` prevent double-initialization.\n    function _guardInitializeOwner() internal pure virtual returns (bool guard) {}\n\n    /// @dev Initializes the owner directly without authorization guard.\n    /// This function must be called upon initialization,\n    /// regardless of whether the contract is upgradeable or not.\n    /// This is to enable generalization to both regular and upgradeable contracts,\n    /// and to save gas in case the initial owner is not the caller.\n    /// For performance reasons, this function will not check if there\n    /// is an existing owner.\n    function _initializeOwner(address newOwner) internal virtual {\n        if (_guardInitializeOwner()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let ownerSlot := _OWNER_SLOT\n                if sload(ownerSlot) {\n                    mstore(0x00, 0x0dc149f0) // `AlreadyInitialized()`.\n                    revert(0x1c, 0x04)\n                }\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Store the new value.\n                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n            }\n        } else {\n            /// @solidity memory-safe-assembly\n            assembly {\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Store the new value.\n                sstore(_OWNER_SLOT, newOwner)\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n            }\n        }\n    }\n\n    /// @dev Sets the owner directly without authorization guard.\n    function _setOwner(address newOwner) internal virtual {\n        if (_guardInitializeOwner()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let ownerSlot := _OWNER_SLOT\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n                // Store the new value.\n                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n            }\n        } else {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let ownerSlot := _OWNER_SLOT\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n                // Store the new value.\n                sstore(ownerSlot, newOwner)\n            }\n        }\n    }\n\n    /// @dev Throws if the sender is not the owner.\n    function _checkOwner() internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // If the caller is not the stored owner, revert.\n            if iszero(eq(caller(), sload(_OWNER_SLOT))) {\n                mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Returns how long a two-step ownership handover is valid for in seconds.\n    /// Override to return a different value if needed.\n    /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n    function _ownershipHandoverValidFor() internal view virtual returns (uint64) {\n        return 48 * 3600;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  PUBLIC UPDATE FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Allows the owner to transfer the ownership to `newOwner`.\n    function transferOwnership(address newOwner) public payable virtual onlyOwner {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(shl(96, newOwner)) {\n                mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n        }\n        _setOwner(newOwner);\n    }\n\n    /// @dev Allows the owner to renounce their ownership.\n    function renounceOwnership() public payable virtual onlyOwner {\n        _setOwner(address(0));\n    }\n\n    /// @dev Request a two-step ownership handover to the caller.\n    /// The request will automatically expire in 48 hours (172800 seconds) by default.\n    function requestOwnershipHandover() public payable virtual {\n        unchecked {\n            uint256 expires = block.timestamp + _ownershipHandoverValidFor();\n            /// @solidity memory-safe-assembly\n            assembly {\n                // Compute and set the handover slot to `expires`.\n                mstore(0x0c, _HANDOVER_SLOT_SEED)\n                mstore(0x00, caller())\n                sstore(keccak256(0x0c, 0x20), expires)\n                // Emit the {OwnershipHandoverRequested} event.\n                log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller())\n            }\n        }\n    }\n\n    /// @dev Cancels the two-step ownership handover to the caller, if any.\n    function cancelOwnershipHandover() public payable virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute and set the handover slot to 0.\n            mstore(0x0c, _HANDOVER_SLOT_SEED)\n            mstore(0x00, caller())\n            sstore(keccak256(0x0c, 0x20), 0)\n            // Emit the {OwnershipHandoverCanceled} event.\n            log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller())\n        }\n    }\n\n    /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`.\n    /// Reverts if there is no existing ownership handover requested by `pendingOwner`.\n    function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute and set the handover slot to 0.\n            mstore(0x0c, _HANDOVER_SLOT_SEED)\n            mstore(0x00, pendingOwner)\n            let handoverSlot := keccak256(0x0c, 0x20)\n            // If the handover does not exist, or has expired.\n            if gt(timestamp(), sload(handoverSlot)) {\n                mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`.\n                revert(0x1c, 0x04)\n            }\n            // Set the handover slot to 0.\n            sstore(handoverSlot, 0)\n        }\n        _setOwner(pendingOwner);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   PUBLIC READ FUNCTIONS                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the owner of the contract.\n    function owner() public view virtual returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := sload(_OWNER_SLOT)\n        }\n    }\n\n    /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.\n    function ownershipHandoverExpiresAt(address pendingOwner)\n        public\n        view\n        virtual\n        returns (uint256 result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the handover slot.\n            mstore(0x0c, _HANDOVER_SLOT_SEED)\n            mstore(0x00, pendingOwner)\n            // Load the handover slot.\n            result := sload(keccak256(0x0c, 0x20))\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         MODIFIERS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Marks a function as only callable by the owner.\n    modifier onlyOwner() virtual {\n        _checkOwner();\n        _;\n    }\n}\n"},"lib/solady/src/utils/CallContextChecker.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Call context checker mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/CallContextChecker.sol)\ncontract CallContextChecker {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The call is from an unauthorized call context.\n    error UnauthorizedCallContext();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         IMMUTABLES                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev For checking if the context is a delegate call.\n    ///\n    /// Note: To enable use cases with an immutable default implementation in the bytecode,\n    /// (see: ERC6551Proxy), we don't require that the proxy address must match the\n    /// value stored in the implementation slot, which may not be initialized.\n    uint256 private immutable __self = uint256(uint160(address(this)));\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    CALL CONTEXT CHECKS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // A proxy call can be either via a `delegatecall` to an implementation,\n    // or a 7702 call on an authority that points to a delegation.\n\n    /// @dev Returns whether the current call context is on a EIP7702 authority\n    /// (i.e. externally owned account).\n    function _onEIP7702Authority() internal view virtual returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            extcodecopy(address(), 0x00, 0x00, 0x20)\n            // Note: Checking that it starts with hex\"ef01\" is the most general and futureproof.\n            // 7702 bytecode is `abi.encodePacked(hex\"ef01\", uint8(version), address(delegation))`.\n            result := eq(0xef01, shr(240, mload(0x00)))\n        }\n    }\n\n    /// @dev Returns the implementation of this contract.\n    function _selfImplementation() internal view virtual returns (address) {\n        return address(uint160(__self));\n    }\n\n    /// @dev Returns whether the current call context is on the implementation itself.\n    function _onImplementation() internal view virtual returns (bool) {\n        return __self == uint160(address(this));\n    }\n\n    /// @dev Requires that the current call context is performed via a EIP7702 authority.\n    function _checkOnlyEIP7702Authority() internal view virtual {\n        if (!_onEIP7702Authority()) _revertUnauthorizedCallContext();\n    }\n\n    /// @dev Requires that the current call context is performed via a proxy.\n    function _checkOnlyProxy() internal view virtual {\n        if (_onImplementation()) _revertUnauthorizedCallContext();\n    }\n\n    /// @dev Requires that the current call context is NOT performed via a proxy.\n    /// This is the opposite of `checkOnlyProxy`.\n    function _checkNotDelegated() internal view virtual {\n        if (!_onImplementation()) _revertUnauthorizedCallContext();\n    }\n\n    /// @dev Requires that the current call context is performed via a EIP7702 authority.\n    modifier onlyEIP7702Authority() virtual {\n        _checkOnlyEIP7702Authority();\n        _;\n    }\n\n    /// @dev Requires that the current call context is performed via a proxy.\n    modifier onlyProxy() virtual {\n        _checkOnlyProxy();\n        _;\n    }\n\n    /// @dev Requires that the current call context is NOT performed via a proxy.\n    /// This is the opposite of `onlyProxy`.\n    modifier notDelegated() virtual {\n        _checkNotDelegated();\n        _;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      PRIVATE HELPERS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    function _revertUnauthorizedCallContext() private pure {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x9f03a026) // `UnauthorizedCallContext()`.\n            revert(0x1c, 0x04)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    enum Rounding {\n        Floor, // Toward negative infinity\n        Ceil, // Toward positive infinity\n        Trunc, // Toward zero\n        Expand // Away from zero\n    }\n\n    /**\n     * @dev Return the 512-bit addition of two uint256.\n     *\n     * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n     */\n    function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n        assembly (\"memory-safe\") {\n            low := add(a, b)\n            high := lt(low, a)\n        }\n    }\n\n    /**\n     * @dev Return the 512-bit multiplication of two uint256.\n     *\n     * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n     */\n    function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n        // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n        // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n        // variables such that product = high * 2²⁵⁶ + low.\n        assembly (\"memory-safe\") {\n            let mm := mulmod(a, b, not(0))\n            low := mul(a, b)\n            high := sub(sub(mm, low), lt(mm, low))\n        }\n    }\n\n    /**\n     * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n     */\n    function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a + b;\n            success = c >= a;\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n     */\n    function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a - b;\n            success = c <= a;\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n     */\n    function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a * b;\n            assembly (\"memory-safe\") {\n                // Only true when the multiplication doesn't overflow\n                // (c / a == b) || (a == 0)\n                success := or(eq(div(c, a), b), iszero(a))\n            }\n            // equivalent to: success ? c : 0\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n     */\n    function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            success = b > 0;\n            assembly (\"memory-safe\") {\n                // The `DIV` opcode returns zero when the denominator is 0.\n                result := div(a, b)\n            }\n        }\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n     */\n    function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            success = b > 0;\n            assembly (\"memory-safe\") {\n                // The `MOD` opcode returns zero when the denominator is 0.\n                result := mod(a, b)\n            }\n        }\n    }\n\n    /**\n     * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n     */\n    function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n        (bool success, uint256 result) = tryAdd(a, b);\n        return ternary(success, result, type(uint256).max);\n    }\n\n    /**\n     * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n     */\n    function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n        (, uint256 result) = trySub(a, b);\n        return result;\n    }\n\n    /**\n     * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n     */\n    function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n        (bool success, uint256 result) = tryMul(a, b);\n        return ternary(success, result, type(uint256).max);\n    }\n\n    /**\n     * @dev Branchless ternary evaluation for `condition ? a : b`. Gas costs are constant.\n     *\n     * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n     * However, the compiler may optimize Solidity ternary operations (i.e. `condition ? a : b`) to only compute\n     * one branch when needed, making this function more expensive.\n     */\n    function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n        unchecked {\n            // branchless ternary works because:\n            // b ^ (a ^ b) == a\n            // b ^ 0 == b\n            return b ^ ((a ^ b) * SafeCast.toUint(condition));\n        }\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 ternary(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 ternary(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        unchecked {\n            // (a + b) / 2 can overflow.\n            return (a & b) + (a ^ b) / 2;\n        }\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 towards infinity instead\n     * of rounding towards zero.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        if (b == 0) {\n            // Guarantee the same behavior as in a regular Solidity division.\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n\n        // The following calculation ensures accurate ceiling division without overflow.\n        // Since a is non-zero, (a - 1) / b will not overflow.\n        // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n        // but the largest value we can obtain is type(uint256).max - 1, which happens\n        // when a = type(uint256).max and b = 1.\n        unchecked {\n            return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n        }\n    }\n\n    /**\n     * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n     * denominator == 0.\n     *\n     * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n     * Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            (uint256 high, uint256 low) = mul512(x, y);\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (high == 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 low / denominator;\n            }\n\n            // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n            if (denominator <= high) {\n                Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n            }\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [high low].\n            uint256 remainder;\n            assembly (\"memory-safe\") {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                high := sub(high, gt(remainder, low))\n                low := sub(low, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n            uint256 twos = denominator & (0 - denominator);\n            assembly (\"memory-safe\") {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [high low] by twos.\n                low := div(low, twos)\n\n                // Flip twos such that it is 2²⁵⁶ / 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 high into low.\n            low |= high * twos;\n\n            // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n            // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\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\n            // works in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n            inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n            inverse *= 2 - denominator * inverse; // inverse mod 2³²\n            inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n            inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n            inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\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²⁵⁶. Since the preconditions guarantee that the outcome is\n            // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n            // is no longer required.\n            result = low * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @dev 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        return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n    }\n\n    /**\n     * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n     */\n    function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n        unchecked {\n            (uint256 high, uint256 low) = mul512(x, y);\n            if (high >= 1 << n) {\n                Panic.panic(Panic.UNDER_OVERFLOW);\n            }\n            return (high << (256 - n)) | (low >> n);\n        }\n    }\n\n    /**\n     * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n     */\n    function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n        return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n    }\n\n    /**\n     * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n     *\n     * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n     * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n     *\n     * If the input value is not inversible, 0 is returned.\n     *\n     * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n     * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n     */\n    function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n        unchecked {\n            if (n == 0) return 0;\n\n            // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n            // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n            // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n            // ax + ny = 1\n            // ax = 1 + (-y)n\n            // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n            // If the remainder is 0 the gcd is n right away.\n            uint256 remainder = a % n;\n            uint256 gcd = n;\n\n            // Therefore the initial coefficients are:\n            // ax + ny = gcd(a, n) = n\n            // 0a + 1n = n\n            int256 x = 0;\n            int256 y = 1;\n\n            while (remainder != 0) {\n                uint256 quotient = gcd / remainder;\n\n                (gcd, remainder) = (\n                    // The old remainder is the next gcd to try.\n                    remainder,\n                    // Compute the next remainder.\n                    // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n                    // where gcd is at most n (capped to type(uint256).max)\n                    gcd - remainder * quotient\n                );\n\n                (x, y) = (\n                    // Increment the coefficient of a.\n                    y,\n                    // Decrement the coefficient of n.\n                    // Can overflow, but the result is casted to uint256 so that the\n                    // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n                    x - y * int256(quotient)\n                );\n            }\n\n            if (gcd != 1) return 0; // No inverse exists.\n            return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n        }\n    }\n\n    /**\n     * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n     *\n     * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n     * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n     * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n     *\n     * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n     */\n    function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n        unchecked {\n            return Math.modExp(a, p - 2, p);\n        }\n    }\n\n    /**\n     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n     *\n     * Requirements:\n     * - modulus can't be zero\n     * - underlying staticcall to precompile must succeed\n     *\n     * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n     * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n     * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n     * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n     * interpreted as 0.\n     */\n    function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n        (bool success, uint256 result) = tryModExp(b, e, m);\n        if (!success) {\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n     * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n     * to operate modulo 0 or if the underlying precompile reverted.\n     *\n     * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n     * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n     * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n     * of a revert, but the result may be incorrectly interpreted as 0.\n     */\n    function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n        if (m == 0) return (false, 0);\n        assembly (\"memory-safe\") {\n            let ptr := mload(0x40)\n            // | Offset    | Content    | Content (Hex)                                                      |\n            // |-----------|------------|--------------------------------------------------------------------|\n            // | 0x00:0x1f | size of b  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x20:0x3f | size of e  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x40:0x5f | size of m  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n            // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n            // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n            mstore(ptr, 0x20)\n            mstore(add(ptr, 0x20), 0x20)\n            mstore(add(ptr, 0x40), 0x20)\n            mstore(add(ptr, 0x60), b)\n            mstore(add(ptr, 0x80), e)\n            mstore(add(ptr, 0xa0), m)\n\n            // Given the result < m, it's guaranteed to fit in 32 bytes,\n            // so we can use the memory scratch space located at offset 0.\n            success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n            result := mload(0x00)\n        }\n    }\n\n    /**\n     * @dev Variant of {modExp} that supports inputs of arbitrary length.\n     */\n    function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n        (bool success, bytes memory result) = tryModExp(b, e, m);\n        if (!success) {\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n     */\n    function tryModExp(\n        bytes memory b,\n        bytes memory e,\n        bytes memory m\n    ) internal view returns (bool success, bytes memory result) {\n        if (_zeroBytes(m)) return (false, new bytes(0));\n\n        uint256 mLen = m.length;\n\n        // Encode call args in result and move the free memory pointer\n        result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n        assembly (\"memory-safe\") {\n            let dataPtr := add(result, 0x20)\n            // Write result on top of args to avoid allocating extra memory.\n            success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n            // Overwrite the length.\n            // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n            mstore(result, mLen)\n            // Set the memory pointer after the returned data.\n            mstore(0x40, add(dataPtr, mLen))\n        }\n    }\n\n    /**\n     * @dev Returns whether the provided byte array is zero.\n     */\n    function _zeroBytes(bytes memory buffer) private pure returns (bool) {\n        uint256 chunk;\n        for (uint256 i = 0; i < buffer.length; i += 0x20) {\n            // See _unsafeReadBytesOffset from utils/Bytes.sol\n            assembly (\"memory-safe\") {\n                chunk := mload(add(add(buffer, 0x20), i))\n            }\n            if (chunk >> (8 * saturatingSub(i + 0x20, buffer.length)) != 0) {\n                return false;\n            }\n        }\n        return true;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n     * towards zero.\n     *\n     * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n     * using integer operations.\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        unchecked {\n            // Take care of easy edge cases when a == 0 or a == 1\n            if (a <= 1) {\n                return a;\n            }\n\n            // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n            // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n            // the current value as `ε_n = | x_n - sqrt(a) |`.\n            //\n            // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n            // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n            // bigger than any uint256.\n            //\n            // By noticing that\n            // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n            // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n            // to the msb function.\n            uint256 aa = a;\n            uint256 xn = 1;\n\n            if (aa >= (1 << 128)) {\n                aa >>= 128;\n                xn <<= 64;\n            }\n            if (aa >= (1 << 64)) {\n                aa >>= 64;\n                xn <<= 32;\n            }\n            if (aa >= (1 << 32)) {\n                aa >>= 32;\n                xn <<= 16;\n            }\n            if (aa >= (1 << 16)) {\n                aa >>= 16;\n                xn <<= 8;\n            }\n            if (aa >= (1 << 8)) {\n                aa >>= 8;\n                xn <<= 4;\n            }\n            if (aa >= (1 << 4)) {\n                aa >>= 4;\n                xn <<= 2;\n            }\n            if (aa >= (1 << 2)) {\n                xn <<= 1;\n            }\n\n            // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n            //\n            // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n            // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n            // This is going to be our x_0 (and ε_0)\n            xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n            // From here, Newton's method give us:\n            // x_{n+1} = (x_n + a / x_n) / 2\n            //\n            // One should note that:\n            // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n            //              = ((x_n² + a) / (2 * x_n))² - a\n            //              = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n            //              = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n            //              = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n            //              = (x_n² - a)² / (2 * x_n)²\n            //              = ((x_n² - a) / (2 * x_n))²\n            //              ≥ 0\n            // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n            //\n            // This gives us the proof of quadratic convergence of the sequence:\n            // ε_{n+1} = | x_{n+1} - sqrt(a) |\n            //         = | (x_n + a / x_n) / 2 - sqrt(a) |\n            //         = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n            //         = | (x_n - sqrt(a))² / (2 * x_n) |\n            //         = | ε_n² / (2 * x_n) |\n            //         = ε_n² / | (2 * x_n) |\n            //\n            // For the first iteration, we have a special case where x_0 is known:\n            // ε_1 = ε_0² / | (2 * x_0) |\n            //     ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n            //     ≤ 2**(2*e-4) / (3 * 2**(e-1))\n            //     ≤ 2**(e-3) / 3\n            //     ≤ 2**(e-3-log2(3))\n            //     ≤ 2**(e-4.5)\n            //\n            // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n            // ε_{n+1} = ε_n² / | (2 * x_n) |\n            //         ≤ (2**(e-k))² / (2 * 2**(e-1))\n            //         ≤ 2**(2*e-2*k) / 2**e\n            //         ≤ 2**(e-2*k)\n            xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5)  -- special case, see above\n            xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9)    -- general case with k = 4.5\n            xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18)   -- general case with k = 9\n            xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36)   -- general case with k = 18\n            xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72)   -- general case with k = 36\n            xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144)  -- general case with k = 72\n\n            // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n            // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n            // sqrt(a) or sqrt(a) + 1.\n            return xn - SafeCast.toUint(xn > a / xn);\n        }\n    }\n\n    /**\n     * @dev 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 + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 x) internal pure returns (uint256 r) {\n        // If value has upper 128 bits set, log2 result is at least 128\n        r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n        // If upper 64 bits of 128-bit half set, add 64 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n        // If upper 32 bits of 64-bit half set, add 32 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n        // If upper 16 bits of 32-bit half set, add 16 to result\n        r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n        // If upper 8 bits of 16-bit half set, add 8 to result\n        r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n        // If upper 4 bits of 8-bit half set, add 4 to result\n        r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n        // Shifts value right by the current result and use it as an index into this lookup table:\n        //\n        // | x (4 bits) |  index  | table[index] = MSB position |\n        // |------------|---------|-----------------------------|\n        // |    0000    |    0    |        table[0] = 0         |\n        // |    0001    |    1    |        table[1] = 0         |\n        // |    0010    |    2    |        table[2] = 1         |\n        // |    0011    |    3    |        table[3] = 1         |\n        // |    0100    |    4    |        table[4] = 2         |\n        // |    0101    |    5    |        table[5] = 2         |\n        // |    0110    |    6    |        table[6] = 2         |\n        // |    0111    |    7    |        table[7] = 2         |\n        // |    1000    |    8    |        table[8] = 3         |\n        // |    1001    |    9    |        table[9] = 3         |\n        // |    1010    |   10    |        table[10] = 3        |\n        // |    1011    |   11    |        table[11] = 3        |\n        // |    1100    |   12    |        table[12] = 3        |\n        // |    1101    |   13    |        table[13] = 3        |\n        // |    1110    |   14    |        table[14] = 3        |\n        // |    1111    |   15    |        table[15] = 3        |\n        //\n        // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the first 16 bytes (most significant half).\n        assembly (\"memory-safe\") {\n            r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n        }\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 + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10 of a positive value rounded towards zero.\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 + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256 of a positive value rounded towards zero.\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 x) internal pure returns (uint256 r) {\n        // If value has upper 128 bits set, log2 result is at least 128\n        r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n        // If upper 64 bits of 128-bit half set, add 64 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n        // If upper 32 bits of 64-bit half set, add 32 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n        // If upper 16 bits of 32-bit half set, add 16 to result\n        r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n        // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n        return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\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 + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n        }\n    }\n\n    /**\n     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n     */\n    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n        return uint8(rounding) % 2 == 1;\n    }\n\n    /**\n     * @dev Counts the number of leading zero bits in a uint256.\n     */\n    function clz(uint256 x) internal pure returns (uint256) {\n        return ternary(x == 0, 256, 255 - log2(x));\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Errors.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n    /**\n     * @dev The ETH balance of the account is not enough to perform the operation.\n     */\n    error InsufficientBalance(uint256 balance, uint256 needed);\n\n    /**\n     * @dev A call to an address target failed. The target may have reverted.\n     */\n    error FailedCall();\n\n    /**\n     * @dev The deployment failed.\n     */\n    error FailedDeployment();\n\n    /**\n     * @dev A necessary precompile is missing.\n     */\n    error MissingPrecompile(address);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Base64.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/Base64.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./math/SafeCast.sol\";\n\n/**\n * @dev Provides a set of functions to operate with Base64 strings.\n */\nlibrary Base64 {\n    using SafeCast for bool;\n\n    error InvalidBase64Char(bytes1);\n\n    /**\n     * @dev Converts a `bytes` to its Base64 `string` representation.\n     */\n    function encode(bytes memory data) internal pure returns (string memory) {\n        return string(_encode(data, false));\n    }\n\n    /**\n     * @dev Converts a `bytes` to its Base64Url `string` representation.\n     * Output is not padded with `=` as specified in https://www.rfc-editor.org/rfc/rfc4648[rfc4648].\n     */\n    function encodeURL(bytes memory data) internal pure returns (string memory) {\n        return string(_encode(data, true));\n    }\n\n    /**\n     * @dev Converts a Base64 `string` to the `bytes` it represents.\n     *\n     * * Supports padded and unpadded inputs.\n     * * Supports both encoding ({encode} and {encodeURL}) seamlessly.\n     * * Reverts with {InvalidBase64Char} if the input contains an invalid character.\n     */\n    function decode(string memory data) internal pure returns (bytes memory) {\n        return _decode(bytes(data));\n    }\n\n    /**\n     * @dev Internal table-agnostic encoding\n     *\n     * Padding is enabled when using the Base64 table, and disabled when using the Base64Url table.\n     * See sections 4 and 5 of https://datatracker.ietf.org/doc/html/rfc4648\n     */\n    function _encode(bytes memory data, bool urlAndFilenameSafe) private pure returns (bytes memory result) {\n        /**\n         * Inspired by Brecht Devos (Brechtpd) implementation - MIT license\n         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol\n         */\n        if (data.length == 0) return \"\";\n\n        // Padding is enabled by default, but disabled when the \"urlAndFilenameSafe\" alphabet is used\n        //\n        // If padding is enabled, the final length should be `bytes` data length divided by 3 rounded up and then\n        // multiplied by 4 so that it leaves room for padding the last chunk\n        // - `data.length + 2`  -> Prepare for division rounding up\n        // - `/ 3`              -> Number of 3-bytes chunks (rounded up)\n        // - `4 *`              -> 4 characters for each chunk\n        // This is equivalent to: 4 * Math.ceil(data.length / 3)\n        //\n        // If padding is disabled, the final length should be `bytes` data length multiplied by 4/3 rounded up as\n        // opposed to when padding is required to fill the last chunk.\n        // - `4 * data.length`  -> 4 characters for each chunk\n        // - ` + 2`             -> Prepare for division rounding up\n        // - `/ 3`              -> Number of 3-bytes chunks (rounded up)\n        // This is equivalent to: Math.ceil((4 * data.length) / 3)\n        uint256 resultLength = urlAndFilenameSafe ? (4 * data.length + 2) / 3 : 4 * ((data.length + 2) / 3);\n\n        assembly (\"memory-safe\") {\n            result := mload(0x40)\n\n            // Store the encoding table in the scratch space (and fmp ptr) to avoid memory allocation\n            //\n            // Base64    (ascii)  A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 + /\n            // Base64    (hex)   4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f\n            // Base64Url (ascii)  A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 - _\n            // Base64Url (hex)   4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392d5f\n            // xor       (hex)   00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000670\n            mstore(0x1f, \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef\")\n            mstore(0x3f, xor(\"ghijklmnopqrstuvwxyz0123456789+/\", mul(urlAndFilenameSafe, 0x670)))\n\n            // Prepare result pointer, jump over length\n            let resultPtr := add(result, 0x20)\n            let resultEnd := add(resultPtr, resultLength)\n            let dataPtr := data\n            let endPtr := add(data, mload(data))\n\n            // In some cases, the last iteration will read bytes after the end of the data. We cache the value, and\n            // set it to zero to make sure no dirty bytes are read in that section.\n            let afterPtr := add(endPtr, 0x20)\n            let afterCache := mload(afterPtr)\n            mstore(afterPtr, 0x00)\n\n            // Run over the input, 3 bytes at a time\n            for {} lt(dataPtr, endPtr) {} {\n                // Advance 3 bytes\n                dataPtr := add(dataPtr, 3)\n                let input := mload(dataPtr)\n\n                // To write each character, shift the 3 byte (24 bits) chunk\n                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)\n                // and apply logical AND with 0x3F to bitmask the least significant 6 bits.\n                // Use this as an index into the lookup table, mload an entire word\n                // so the desired character is in the least significant byte, and\n                // mstore8 this least significant byte into the result and continue.\n                mstore8(resultPtr, mload(and(shr(18, input), 0x3F)))\n                resultPtr := add(resultPtr, 1) // Advance\n                mstore8(resultPtr, mload(and(shr(12, input), 0x3F)))\n                resultPtr := add(resultPtr, 1) // Advance\n                mstore8(resultPtr, mload(and(shr(6, input), 0x3F)))\n                resultPtr := add(resultPtr, 1) // Advance\n                mstore8(resultPtr, mload(and(input, 0x3F)))\n                resultPtr := add(resultPtr, 1) // Advance\n            }\n\n            // Reset the value that was cached\n            mstore(afterPtr, afterCache)\n\n            if iszero(urlAndFilenameSafe) {\n                // When data `bytes` is not exactly 3 bytes long\n                // it is padded with `=` characters at the end\n                switch mod(mload(data), 3)\n                case 1 {\n                    mstore8(sub(resultPtr, 1), 0x3d)\n                    mstore8(sub(resultPtr, 2), 0x3d)\n                }\n                case 2 {\n                    mstore8(sub(resultPtr, 1), 0x3d)\n                }\n            }\n\n            // Store result length and update FMP to reserve allocated space\n            mstore(result, resultLength)\n            mstore(0x40, resultEnd)\n        }\n    }\n\n    /**\n     * @dev Internal decoding\n     */\n    function _decode(bytes memory data) private pure returns (bytes memory result) {\n        bytes4 errorSelector = InvalidBase64Char.selector;\n\n        uint256 dataLength = data.length;\n        if (dataLength == 0) return \"\";\n\n        uint256 resultLength = (dataLength / 4) * 3;\n        if (dataLength % 4 == 0) {\n            resultLength -= (data[dataLength - 1] == \"=\").toUint() + (data[dataLength - 2] == \"=\").toUint();\n        } else {\n            resultLength += (dataLength % 4) - 1;\n        }\n\n        assembly (\"memory-safe\") {\n            result := mload(0x40)\n\n            // Temporarily store the reverse lookup table between in memory. This spans from 0x00 to 0x50, Using:\n            // - all 64bytes of scratch space\n            // - part of the FMP (at location 0x40)\n            mstore(0x30, 0x2425262728292a2b2c2d2e2f30313233)\n            mstore(0x20, 0x0a0b0c0d0e0f10111213141516171819ffffffff3fff1a1b1c1d1e1f20212223)\n            mstore(0x00, 0x3eff3eff3f3435363738393a3b3c3dffffff00ffffff00010203040506070809)\n\n            // Prepare result pointer, jump over length\n            let dataPtr := data\n            let resultPtr := add(result, 0x20)\n            let endPtr := add(resultPtr, resultLength)\n\n            // In some cases, the last iteration will read bytes after the end of the data. We cache the value, and\n            // set it to \"==\" (fake padding) to make sure no dirty bytes are read in that section.\n            let afterPtr := add(add(data, 0x20), dataLength)\n            let afterCache := mload(afterPtr)\n            mstore(afterPtr, shl(240, 0x3d3d))\n\n            // loop while not everything is decoded\n            for {} lt(resultPtr, endPtr) {} {\n                dataPtr := add(dataPtr, 4)\n\n                // Read a 4 bytes chunk of data\n                let input := mload(dataPtr)\n\n                // Decode each byte in the chunk as a 6 bit block, and align them to form a block of 3 bytes\n                let a := sub(byte(28, input), 43)\n                // slither-disable-next-line incorrect-shift\n                if iszero(and(shl(a, 1), 0xffffffd0ffffffc47ff5)) {\n                    mstore(0, errorSelector)\n                    mstore(4, shl(248, add(a, 43)))\n                    revert(0, 0x24)\n                }\n                let b := sub(byte(29, input), 43)\n                // slither-disable-next-line incorrect-shift\n                if iszero(and(shl(b, 1), 0xffffffd0ffffffc47ff5)) {\n                    mstore(0, errorSelector)\n                    mstore(4, shl(248, add(b, 43)))\n                    revert(0, 0x24)\n                }\n                let c := sub(byte(30, input), 43)\n                // slither-disable-next-line incorrect-shift\n                if iszero(and(shl(c, 1), 0xffffffd0ffffffc47ff5)) {\n                    mstore(0, errorSelector)\n                    mstore(4, shl(248, add(c, 43)))\n                    revert(0, 0x24)\n                }\n                let d := sub(byte(31, input), 43)\n                // slither-disable-next-line incorrect-shift\n                if iszero(and(shl(d, 1), 0xffffffd0ffffffc47ff5)) {\n                    mstore(0, errorSelector)\n                    mstore(4, shl(248, add(d, 43)))\n                    revert(0, 0x24)\n                }\n\n                mstore(\n                    resultPtr,\n                    or(\n                        or(shl(250, byte(0, mload(a))), shl(244, byte(0, mload(b)))),\n                        or(shl(238, byte(0, mload(c))), shl(232, byte(0, mload(d))))\n                    )\n                )\n\n                resultPtr := add(resultPtr, 3)\n            }\n\n            // Reset the value that was cached\n            mstore(afterPtr, afterCache)\n\n            // Store result length and update FMP to reserve allocated space\n            mstore(result, resultLength)\n            mstore(0x40, endPtr)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Bytes.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/Bytes.sol)\n\npragma solidity ^0.8.24;\n\nimport {Math} from \"./math/Math.sol\";\n\n/**\n * @dev Bytes operations.\n */\nlibrary Bytes {\n    /**\n     * @dev Forward search for `s` in `buffer`\n     * * If `s` is present in the buffer, returns the index of the first instance\n     * * If `s` is not present in the buffer, returns type(uint256).max\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf[Javascript's `Array.indexOf`]\n     */\n    function indexOf(bytes memory buffer, bytes1 s) internal pure returns (uint256) {\n        return indexOf(buffer, s, 0);\n    }\n\n    /**\n     * @dev Forward search for `s` in `buffer` starting at position `pos`\n     * * If `s` is present in the buffer (at or after `pos`), returns the index of the next instance\n     * * If `s` is not present in the buffer (at or after `pos`), returns type(uint256).max\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf[Javascript's `Array.indexOf`]\n     */\n    function indexOf(bytes memory buffer, bytes1 s, uint256 pos) internal pure returns (uint256) {\n        uint256 length = buffer.length;\n        for (uint256 i = pos; i < length; ++i) {\n            if (bytes1(_unsafeReadBytesOffset(buffer, i)) == s) {\n                return i;\n            }\n        }\n        return type(uint256).max;\n    }\n\n    /**\n     * @dev Backward search for `s` in `buffer`\n     * * If `s` is present in the buffer, returns the index of the last instance\n     * * If `s` is not present in the buffer, returns type(uint256).max\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf[Javascript's `Array.lastIndexOf`]\n     */\n    function lastIndexOf(bytes memory buffer, bytes1 s) internal pure returns (uint256) {\n        return lastIndexOf(buffer, s, type(uint256).max);\n    }\n\n    /**\n     * @dev Backward search for `s` in `buffer` starting at position `pos`\n     * * If `s` is present in the buffer (at or before `pos`), returns the index of the previous instance\n     * * If `s` is not present in the buffer (at or before `pos`), returns type(uint256).max\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf[Javascript's `Array.lastIndexOf`]\n     */\n    function lastIndexOf(bytes memory buffer, bytes1 s, uint256 pos) internal pure returns (uint256) {\n        unchecked {\n            uint256 length = buffer.length;\n            for (uint256 i = Math.min(Math.saturatingAdd(pos, 1), length); i > 0; --i) {\n                if (bytes1(_unsafeReadBytesOffset(buffer, i - 1)) == s) {\n                    return i - 1;\n                }\n            }\n            return type(uint256).max;\n        }\n    }\n\n    /**\n     * @dev Copies the content of `buffer`, from `start` (included) to the end of `buffer` into a new bytes object in\n     * memory.\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n     */\n    function slice(bytes memory buffer, uint256 start) internal pure returns (bytes memory) {\n        return slice(buffer, start, buffer.length);\n    }\n\n    /**\n     * @dev Copies the content of `buffer`, from `start` (included) to `end` (excluded) into a new bytes object in\n     * memory. The `end` argument is truncated to the length of the `buffer`.\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n     */\n    function slice(bytes memory buffer, uint256 start, uint256 end) internal pure returns (bytes memory) {\n        // sanitize\n        end = Math.min(end, buffer.length);\n        start = Math.min(start, end);\n\n        // allocate and copy\n        bytes memory result = new bytes(end - start);\n        assembly (\"memory-safe\") {\n            mcopy(add(result, 0x20), add(add(buffer, 0x20), start), sub(end, start))\n        }\n\n        return result;\n    }\n\n    /**\n     * @dev Moves the content of `buffer`, from `start` (included) to the end of `buffer` to the start of that buffer,\n     * and shrinks the buffer length accordingly, effectively overriding the content of buffer with buffer[start:].\n     *\n     * NOTE: This function modifies the provided buffer in place. If you need to preserve the original buffer, use {slice} instead\n     */\n    function splice(bytes memory buffer, uint256 start) internal pure returns (bytes memory) {\n        return splice(buffer, start, buffer.length);\n    }\n\n    /**\n     * @dev Moves the content of `buffer`, from `start` (included) to `end` (excluded) to the start of that buffer,\n     * and shrinks the buffer length accordingly, effectively overriding the content of buffer with buffer[start:end].\n     * The `end` argument is truncated to the length of the `buffer`.\n     *\n     * NOTE: This function modifies the provided buffer in place. If you need to preserve the original buffer, use {slice} instead\n     */\n    function splice(bytes memory buffer, uint256 start, uint256 end) internal pure returns (bytes memory) {\n        // sanitize\n        end = Math.min(end, buffer.length);\n        start = Math.min(start, end);\n\n        // move and resize\n        assembly (\"memory-safe\") {\n            mcopy(add(buffer, 0x20), add(add(buffer, 0x20), start), sub(end, start))\n            mstore(buffer, sub(end, start))\n        }\n\n        return buffer;\n    }\n\n    /**\n     * @dev Replaces bytes in `buffer` starting at `pos` with all bytes from `replacement`.\n     *\n     * Parameters are clamped to valid ranges (i.e. `pos` is clamped to `[0, buffer.length]`).\n     * If `pos >= buffer.length`, no replacement occurs and the buffer is returned unchanged.\n     *\n     * NOTE: This function modifies the provided buffer in place.\n     */\n    function replace(bytes memory buffer, uint256 pos, bytes memory replacement) internal pure returns (bytes memory) {\n        return replace(buffer, pos, replacement, 0, replacement.length);\n    }\n\n    /**\n     * @dev Replaces bytes in `buffer` starting at `pos` with bytes from `replacement` starting at `offset`.\n     * Copies at most `length` bytes from `replacement` to `buffer`.\n     *\n     * Parameters are clamped to valid ranges (i.e. `pos` is clamped to `[0, buffer.length]`, `offset` is\n     * clamped to `[0, replacement.length]`, and `length` is clamped to `min(length, replacement.length - offset,\n     * buffer.length - pos))`. If `pos >= buffer.length` or `offset >= replacement.length`, no replacement occurs\n     * and the buffer is returned unchanged.\n     *\n     * NOTE: This function modifies the provided buffer in place.\n     */\n    function replace(\n        bytes memory buffer,\n        uint256 pos,\n        bytes memory replacement,\n        uint256 offset,\n        uint256 length\n    ) internal pure returns (bytes memory) {\n        // sanitize\n        pos = Math.min(pos, buffer.length);\n        offset = Math.min(offset, replacement.length);\n        length = Math.min(length, Math.min(replacement.length - offset, buffer.length - pos));\n\n        // replace\n        assembly (\"memory-safe\") {\n            mcopy(add(add(buffer, 0x20), pos), add(add(replacement, 0x20), offset), length)\n        }\n\n        return buffer;\n    }\n\n    /**\n     * @dev Concatenate an array of bytes into a single bytes object.\n     *\n     * For fixed bytes types, we recommend using the solidity built-in `bytes.concat` or (equivalent)\n     * `abi.encodePacked`.\n     *\n     * NOTE: this could be done in assembly with a single loop that expands starting at the FMP, but that would be\n     * significantly less readable. It might be worth benchmarking the savings of the full-assembly approach.\n     */\n    function concat(bytes[] memory buffers) internal pure returns (bytes memory) {\n        uint256 length = 0;\n        for (uint256 i = 0; i < buffers.length; ++i) {\n            length += buffers[i].length;\n        }\n\n        bytes memory result = new bytes(length);\n\n        uint256 offset = 0x20;\n        for (uint256 i = 0; i < buffers.length; ++i) {\n            bytes memory input = buffers[i];\n            assembly (\"memory-safe\") {\n                mcopy(add(result, offset), add(input, 0x20), mload(input))\n            }\n            unchecked {\n                offset += input.length;\n            }\n        }\n\n        return result;\n    }\n\n    /**\n     * @dev Split each byte in `input` into two nibbles (4 bits each)\n     *\n     * Example: hex\"01234567\" → hex\"0001020304050607\"\n     */\n    function toNibbles(bytes memory input) internal pure returns (bytes memory output) {\n        assembly (\"memory-safe\") {\n            let length := mload(input)\n            output := mload(0x40)\n            mstore(0x40, add(add(output, 0x20), mul(length, 2)))\n            mstore(output, mul(length, 2))\n            for {\n                let i := 0\n            } lt(i, length) {\n                i := add(i, 0x10)\n            } {\n                let chunk := shr(128, mload(add(add(input, 0x20), i)))\n                chunk := and(\n                    0x0000000000000000ffffffffffffffff0000000000000000ffffffffffffffff,\n                    or(shl(64, chunk), chunk)\n                )\n                chunk := and(\n                    0x00000000ffffffff00000000ffffffff00000000ffffffff00000000ffffffff,\n                    or(shl(32, chunk), chunk)\n                )\n                chunk := and(\n                    0x0000ffff0000ffff0000ffff0000ffff0000ffff0000ffff0000ffff0000ffff,\n                    or(shl(16, chunk), chunk)\n                )\n                chunk := and(\n                    0x00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff,\n                    or(shl(8, chunk), chunk)\n                )\n                chunk := and(\n                    0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f,\n                    or(shl(4, chunk), chunk)\n                )\n                mstore(add(add(output, 0x20), mul(i, 2)), chunk)\n            }\n        }\n    }\n\n    /**\n     * @dev Returns true if the two byte buffers are equal.\n     */\n    function equal(bytes memory a, bytes memory b) internal pure returns (bool) {\n        return a.length == b.length && keccak256(a) == keccak256(b);\n    }\n\n    /**\n     * @dev Reverses the byte order of a bytes32 value, converting between little-endian and big-endian.\n     * Inspired by https://graphics.stanford.edu/~seander/bithacks.html#ReverseParallel[Reverse Parallel]\n     */\n    function reverseBytes32(bytes32 value) internal pure returns (bytes32) {\n        value = // swap bytes\n            ((value >> 8) & 0x00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF) |\n            ((value & 0x00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF) << 8);\n        value = // swap 2-byte long pairs\n            ((value >> 16) & 0x0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF) |\n            ((value & 0x0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF) << 16);\n        value = // swap 4-byte long pairs\n            ((value >> 32) & 0x00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF) |\n            ((value & 0x00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF) << 32);\n        value = // swap 8-byte long pairs\n            ((value >> 64) & 0x0000000000000000FFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFF) |\n            ((value & 0x0000000000000000FFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFF) << 64);\n        return (value >> 128) | (value << 128); // swap 16-byte long pairs\n    }\n\n    /// @dev Same as {reverseBytes32} but optimized for 128-bit values.\n    function reverseBytes16(bytes16 value) internal pure returns (bytes16) {\n        value = // swap bytes\n            ((value & 0xFF00FF00FF00FF00FF00FF00FF00FF00) >> 8) |\n            ((value & 0x00FF00FF00FF00FF00FF00FF00FF00FF) << 8);\n        value = // swap 2-byte long pairs\n            ((value & 0xFFFF0000FFFF0000FFFF0000FFFF0000) >> 16) |\n            ((value & 0x0000FFFF0000FFFF0000FFFF0000FFFF) << 16);\n        value = // swap 4-byte long pairs\n            ((value & 0xFFFFFFFF00000000FFFFFFFF00000000) >> 32) |\n            ((value & 0x00000000FFFFFFFF00000000FFFFFFFF) << 32);\n        return (value >> 64) | (value << 64); // swap 8-byte long pairs\n    }\n\n    /// @dev Same as {reverseBytes32} but optimized for 64-bit values.\n    function reverseBytes8(bytes8 value) internal pure returns (bytes8) {\n        value = ((value & 0xFF00FF00FF00FF00) >> 8) | ((value & 0x00FF00FF00FF00FF) << 8); // swap bytes\n        value = ((value & 0xFFFF0000FFFF0000) >> 16) | ((value & 0x0000FFFF0000FFFF) << 16); // swap 2-byte long pairs\n        return (value >> 32) | (value << 32); // swap 4-byte long pairs\n    }\n\n    /// @dev Same as {reverseBytes32} but optimized for 32-bit values.\n    function reverseBytes4(bytes4 value) internal pure returns (bytes4) {\n        value = ((value & 0xFF00FF00) >> 8) | ((value & 0x00FF00FF) << 8); // swap bytes\n        return (value >> 16) | (value << 16); // swap 2-byte long pairs\n    }\n\n    /// @dev Same as {reverseBytes32} but optimized for 16-bit values.\n    function reverseBytes2(bytes2 value) internal pure returns (bytes2) {\n        return (value >> 8) | (value << 8);\n    }\n\n    /**\n     * @dev Counts the number of leading zero bits a bytes array. Returns `8 * buffer.length`\n     * if the buffer is all zeros.\n     */\n    function clz(bytes memory buffer) internal pure returns (uint256) {\n        for (uint256 i = 0; i < buffer.length; i += 0x20) {\n            bytes32 chunk = _unsafeReadBytesOffset(buffer, i);\n            if (chunk != bytes32(0)) {\n                return Math.min(8 * i + Math.clz(uint256(chunk)), 8 * buffer.length);\n            }\n        }\n        return 8 * buffer.length;\n    }\n\n    /**\n     * @dev Reads a bytes32 from a bytes array without bounds checking.\n     *\n     * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n     * assembly block as such would prevent some optimizations.\n     */\n    function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n        // This is not memory safe in the general case, but all calls to this private function are within bounds.\n        assembly (\"memory-safe\") {\n            value := mload(add(add(buffer, 0x20), offset))\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Strings.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/Strings.sol)\n\npragma solidity ^0.8.24;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\nimport {Bytes} from \"./Bytes.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n    using SafeCast for *;\n\n    bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n    uint8 private constant ADDRESS_LENGTH = 20;\n    uint256 private constant SPECIAL_CHARS_LOOKUP =\n        0xffffffff | // first 32 bits corresponding to the control characters (U+0000 to U+001F)\n            (1 << 0x22) | // double quote\n            (1 << 0x5c); // backslash\n\n    /**\n     * @dev The `value` string doesn't fit in the specified `length`.\n     */\n    error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n    /**\n     * @dev The string being parsed contains characters that are not in scope of the given base.\n     */\n    error StringsInvalidChar();\n\n    /**\n     * @dev The string being parsed is not a properly formatted address.\n     */\n    error StringsInvalidAddressFormat();\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            assembly (\"memory-safe\") {\n                ptr := add(add(buffer, 0x20), length)\n            }\n            while (true) {\n                ptr--;\n                assembly (\"memory-safe\") {\n                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\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 toStringSigned(int256 value) internal pure returns (string memory) {\n        return string.concat(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        uint256 localValue = value;\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] = HEX_DIGITS[localValue & 0xf];\n            localValue >>= 4;\n        }\n        if (localValue != 0) {\n            revert StringsInsufficientHexLength(value, length);\n        }\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\n     * 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 Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n     * representation, according to EIP-55.\n     */\n    function toChecksumHexString(address addr) internal pure returns (string memory) {\n        bytes memory buffer = bytes(toHexString(addr));\n\n        // hash the hex part of buffer (skip length + 2 bytes, length 40)\n        uint256 hashValue;\n        assembly (\"memory-safe\") {\n            hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n        }\n\n        for (uint256 i = 41; i > 1; --i) {\n            // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n            if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n                // case shift by xoring with 0x20\n                buffer[i] ^= 0x20;\n            }\n            hashValue >>= 4;\n        }\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts a `bytes` buffer to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(bytes memory input) internal pure returns (string memory) {\n        unchecked {\n            bytes memory buffer = new bytes(2 * input.length + 2);\n            buffer[0] = \"0\";\n            buffer[1] = \"x\";\n            for (uint256 i = 0; i < input.length; ++i) {\n                uint8 v = uint8(input[i]);\n                buffer[2 * i + 2] = HEX_DIGITS[v >> 4];\n                buffer[2 * i + 3] = HEX_DIGITS[v & 0xf];\n            }\n            return string(buffer);\n        }\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 Bytes.equal(bytes(a), bytes(b));\n    }\n\n    /**\n     * @dev Parse a decimal string and returns the value as a `uint256`.\n     *\n     * Requirements:\n     * - The string must be formatted as `[0-9]*`\n     * - The result must fit into an `uint256` type\n     */\n    function parseUint(string memory input) internal pure returns (uint256) {\n        return parseUint(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n     * `end` (excluded).\n     *\n     * Requirements:\n     * - The substring must be formatted as `[0-9]*`\n     * - The result must fit into an `uint256` type\n     */\n    function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n        (bool success, uint256 value) = tryParseUint(input, begin, end);\n        if (!success) revert StringsInvalidChar();\n        return value;\n    }\n\n    /**\n     * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n     *\n     * NOTE: This function will revert if the result does not fit in a `uint256`.\n     */\n    function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n        return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n     * character.\n     *\n     * NOTE: This function will revert if the result does not fit in a `uint256`.\n     */\n    function tryParseUint(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) internal pure returns (bool success, uint256 value) {\n        if (end > bytes(input).length || begin > end) return (false, 0);\n        return _tryParseUintUncheckedBounds(input, begin, end);\n    }\n\n    /**\n     * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n     * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n     */\n    function _tryParseUintUncheckedBounds(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) private pure returns (bool success, uint256 value) {\n        bytes memory buffer = bytes(input);\n\n        uint256 result = 0;\n        for (uint256 i = begin; i < end; ++i) {\n            uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n            if (chr > 9) return (false, 0);\n            result *= 10;\n            result += chr;\n        }\n        return (true, result);\n    }\n\n    /**\n     * @dev Parse a decimal string and returns the value as a `int256`.\n     *\n     * Requirements:\n     * - The string must be formatted as `[-+]?[0-9]*`\n     * - The result must fit in an `int256` type.\n     */\n    function parseInt(string memory input) internal pure returns (int256) {\n        return parseInt(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n     * `end` (excluded).\n     *\n     * Requirements:\n     * - The substring must be formatted as `[-+]?[0-9]*`\n     * - The result must fit in an `int256` type.\n     */\n    function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n        (bool success, int256 value) = tryParseInt(input, begin, end);\n        if (!success) revert StringsInvalidChar();\n        return value;\n    }\n\n    /**\n     * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n     * the result does not fit in a `int256`.\n     *\n     * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n     */\n    function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n        return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n    }\n\n    uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n    /**\n     * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n     * character or if the result does not fit in a `int256`.\n     *\n     * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n     */\n    function tryParseInt(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) internal pure returns (bool success, int256 value) {\n        if (end > bytes(input).length || begin > end) return (false, 0);\n        return _tryParseIntUncheckedBounds(input, begin, end);\n    }\n\n    /**\n     * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n     * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n     */\n    function _tryParseIntUncheckedBounds(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) private pure returns (bool success, int256 value) {\n        bytes memory buffer = bytes(input);\n\n        // Check presence of a negative sign.\n        bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n        bool positiveSign = sign == bytes1(\"+\");\n        bool negativeSign = sign == bytes1(\"-\");\n        uint256 offset = (positiveSign || negativeSign).toUint();\n\n        (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n        if (absSuccess && absValue < ABS_MIN_INT256) {\n            return (true, negativeSign ? -int256(absValue) : int256(absValue));\n        } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n            return (true, type(int256).min);\n        } else return (false, 0);\n    }\n\n    /**\n     * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n     *\n     * Requirements:\n     * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n     * - The result must fit in an `uint256` type.\n     */\n    function parseHexUint(string memory input) internal pure returns (uint256) {\n        return parseHexUint(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n     * `end` (excluded).\n     *\n     * Requirements:\n     * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n     * - The result must fit in an `uint256` type.\n     */\n    function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n        (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n        if (!success) revert StringsInvalidChar();\n        return value;\n    }\n\n    /**\n     * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n     *\n     * NOTE: This function will revert if the result does not fit in a `uint256`.\n     */\n    function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n        return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n     * invalid character.\n     *\n     * NOTE: This function will revert if the result does not fit in a `uint256`.\n     */\n    function tryParseHexUint(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) internal pure returns (bool success, uint256 value) {\n        if (end > bytes(input).length || begin > end) return (false, 0);\n        return _tryParseHexUintUncheckedBounds(input, begin, end);\n    }\n\n    /**\n     * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n     * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n     */\n    function _tryParseHexUintUncheckedBounds(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) private pure returns (bool success, uint256 value) {\n        bytes memory buffer = bytes(input);\n\n        // skip 0x prefix if present\n        bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n        uint256 offset = hasPrefix.toUint() * 2;\n\n        uint256 result = 0;\n        for (uint256 i = begin + offset; i < end; ++i) {\n            uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n            if (chr > 15) return (false, 0);\n            result *= 16;\n            unchecked {\n                // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n                // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n                result += chr;\n            }\n        }\n        return (true, result);\n    }\n\n    /**\n     * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n     *\n     * Requirements:\n     * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n     */\n    function parseAddress(string memory input) internal pure returns (address) {\n        return parseAddress(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n     * `end` (excluded).\n     *\n     * Requirements:\n     * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n     */\n    function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n        (bool success, address value) = tryParseAddress(input, begin, end);\n        if (!success) revert StringsInvalidAddressFormat();\n        return value;\n    }\n\n    /**\n     * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n     * formatted address. See {parseAddress-string} requirements.\n     */\n    function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n        return tryParseAddress(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n     * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n     */\n    function tryParseAddress(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) internal pure returns (bool success, address value) {\n        if (end > bytes(input).length || begin > end) return (false, address(0));\n\n        bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n        uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n        // check that input is the correct length\n        if (end - begin == expectedLength) {\n            // length guarantees that this does not overflow, and value is at most type(uint160).max\n            (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n            return (s, address(uint160(v)));\n        } else {\n            return (false, address(0));\n        }\n    }\n\n    function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n        uint8 value = uint8(chr);\n\n        // Try to parse `chr`:\n        // - Case 1: [0-9]\n        // - Case 2: [a-f]\n        // - Case 3: [A-F]\n        // - otherwise not supported\n        unchecked {\n            if (value > 47 && value < 58) value -= 48;\n            else if (value > 96 && value < 103) value -= 87;\n            else if (value > 64 && value < 71) value -= 55;\n            else return type(uint8).max;\n        }\n\n        return value;\n    }\n\n    /**\n     * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n     *\n     * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n     *\n     * NOTE: This function escapes backslashes (including those in \\uXXXX sequences) and the characters in ranges\n     * defined in section 2.5 of RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). All control characters in U+0000\n     * to U+001F are escaped (\\b, \\t, \\n, \\f, \\r use short form; others use \\u00XX). ECMAScript's `JSON.parse` does\n     * recover escaped unicode characters that are not in this range, but other tooling may provide different results.\n     */\n    function escapeJSON(string memory input) internal pure returns (string memory) {\n        bytes memory buffer = bytes(input);\n\n        // Put output at the FMP. Memory will be reserved later when we figure out the actual length of the escaped\n        // string. All write are done using _unsafeWriteBytesOffset, which avoid the (expensive) length checks for\n        // each character written.\n        bytes memory output;\n        assembly (\"memory-safe\") {\n            output := mload(0x40)\n        }\n        uint256 outputLength = 0;\n\n        for (uint256 i = 0; i < buffer.length; ++i) {\n            uint8 char = uint8(bytes1(_unsafeReadBytesOffset(buffer, i)));\n            if (((SPECIAL_CHARS_LOOKUP & (1 << char)) != 0)) {\n                _unsafeWriteBytesOffset(output, outputLength++, \"\\\\\");\n                if (char == 0x08) _unsafeWriteBytesOffset(output, outputLength++, \"b\");\n                else if (char == 0x09) _unsafeWriteBytesOffset(output, outputLength++, \"t\");\n                else if (char == 0x0a) _unsafeWriteBytesOffset(output, outputLength++, \"n\");\n                else if (char == 0x0c) _unsafeWriteBytesOffset(output, outputLength++, \"f\");\n                else if (char == 0x0d) _unsafeWriteBytesOffset(output, outputLength++, \"r\");\n                else if (char == 0x5c) _unsafeWriteBytesOffset(output, outputLength++, \"\\\\\");\n                else if (char == 0x22) {\n                    // solhint-disable-next-line quotes\n                    _unsafeWriteBytesOffset(output, outputLength++, '\"');\n                } else {\n                    // U+0000 to U+001F without short form: output \\u00XX\n                    _unsafeWriteBytesOffset(output, outputLength++, \"u\");\n                    _unsafeWriteBytesOffset(output, outputLength++, \"0\");\n                    _unsafeWriteBytesOffset(output, outputLength++, \"0\");\n                    _unsafeWriteBytesOffset(output, outputLength++, HEX_DIGITS[char >> 4]);\n                    _unsafeWriteBytesOffset(output, outputLength++, HEX_DIGITS[char & 0x0f]);\n                }\n            } else {\n                _unsafeWriteBytesOffset(output, outputLength++, bytes1(char));\n            }\n        }\n        // write the actual length and reserve memory\n        assembly (\"memory-safe\") {\n            mstore(output, outputLength)\n            mstore(0x40, add(output, add(outputLength, 0x20)))\n        }\n\n        return string(output);\n    }\n\n    /**\n     * @dev Reads a bytes32 from a bytes array without bounds checking.\n     *\n     * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n     * assembly block as such would prevent some optimizations.\n     */\n    function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n        // This is not memory safe in the general case, but all calls to this private function are within bounds.\n        assembly (\"memory-safe\") {\n            value := mload(add(add(buffer, 0x20), offset))\n        }\n    }\n\n    /**\n     * @dev Write a bytes1 to a bytes array without bounds checking.\n     *\n     * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n     * assembly block as such would prevent some optimizations.\n     */\n    function _unsafeWriteBytesOffset(bytes memory buffer, uint256 offset, bytes1 value) private pure {\n        // This is not memory safe in the general case, but all calls to this private function are within bounds.\n        assembly (\"memory-safe\") {\n            mstore8(add(add(buffer, 0x20), offset), shr(248, value))\n        }\n    }\n}\n"}},"compilation":{"language":"Solidity","compiler":"solc","compilerVersion":"0.8.34+commit.80d5c536","compilerSettings":{"viaIR":false,"metadata":{"appendCBOR":true,"bytecodeHash":"ipfs","useLiteralContent":false},"optimizer":{"runs":1000000,"enabled":true},"evmVersion":"osaka","remappings":["@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","@solady/=lib/solady/","@forge-std/=lib/forge-std/","@deposit-wallet/src/=src/"]},"name":"DepositWallet","fullyQualifiedName":"src/DepositWallet.sol:DepositWallet"},"abi":[{"type":"constructor","inputs":[],"stateMutability":"nonpayable"},{"name":"BatchCallFailed","type":"error","inputs":[{"name":"index","type":"uint256","internalType":"uint256"},{"name":"target","type":"address","internalType":"address"},{"name":"result","type":"bytes","internalType":"bytes"}]},{"name":"BeaconUnresolvable","type":"error","inputs":[]},{"name":"EmptyBatch","type":"error","inputs":[]},{"name":"Expired","type":"error","inputs":[]},{"name":"FnSelectorNotRecognized","type":"error","inputs":[]},{"name":"InvalidInitialization","type":"error","inputs":[]},{"name":"InvalidNonce","type":"error","inputs":[]},{"name":"InvalidOwner","type":"error","inputs":[]},{"name":"InvalidPasskeyPublicKey","type":"error","inputs":[{"name":"x","type":"bytes32","internalType":"bytes32"},{"name":"y","type":"bytes32","internalType":"bytes32"}]},{"name":"InvalidSignature","type":"error","inputs":[]},{"name":"InvalidValidUntil","type":"error","inputs":[]},{"name":"InvalidWallet","type":"error","inputs":[]},{"name":"MissingPrecompile","type":"error","inputs":[{"name":"","type":"address","internalType":"address"}]},{"name":"NoPendingOwner","type":"error","inputs":[]},{"name":"NotInitializing","type":"error","inputs":[]},{"name":"NotPaused","type":"error","inputs":[]},{"name":"OnlyFactory","type":"error","inputs":[]},{"name":"OnlySelf","type":"error","inputs":[]},{"name":"SessionSignerCannotCallBeacon","type":"error","inputs":[]},{"name":"SessionSignerSelfCallNotAllowed","type":"error","inputs":[]},{"name":"SessionSignerUnauthorized","type":"error","inputs":[]},{"name":"TimelockInsufficientDelay","type":"error","inputs":[]},{"name":"Unauthorized","type":"error","inputs":[]},{"name":"ZeroAddress","type":"error","inputs":[]},{"name":"AllowanceRevoked","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"spender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"ApprovalForAllRevoked","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"BatchExecuted","type":"event","inputs":[{"name":"nonce","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"ERC1155BatchWithdrawal","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"ids","type":"uint256[]","indexed":false,"internalType":"uint256[]"},{"name":"amounts","type":"uint256[]","indexed":false,"internalType":"uint256[]"}],"anonymous":false},{"name":"ERC20Withdrawal","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Execution","type":"event","inputs":[{"name":"target","type":"address","indexed":true,"internalType":"address"},{"name":"value","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"data","type":"bytes","indexed":false,"internalType":"bytes"},{"name":"result","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false},{"name":"Initialized","type":"event","inputs":[{"name":"version","type":"uint64","indexed":false,"internalType":"uint64"}],"anonymous":false},{"name":"NativeWithdrawal","type":"event","inputs":[{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"OwnershipHandoverCanceled","type":"event","inputs":[{"name":"pendingOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"OwnershipHandoverCompleted","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"OwnershipHandoverRequested","type":"event","inputs":[{"name":"pendingOwner","type":"address","indexed":true,"internalType":"address"},{"name":"deadline","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"nonce","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"OwnershipTransferred","type":"event","inputs":[{"name":"oldOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"PasskeySessionSignerAuthorized","type":"event","inputs":[{"name":"passkeyId","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"x","type":"bytes32","indexed":false,"internalType":"bytes32"},{"name":"y","type":"bytes32","indexed":false,"internalType":"bytes32"},{"name":"validUntil","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"PasskeySessionSignerRevoked","type":"event","inputs":[{"name":"passkeyId","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"x","type":"bytes32","indexed":false,"internalType":"bytes32"},{"name":"y","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"name":"PasskeySessionSignerRevokedEmergency","type":"event","inputs":[{"name":"passkeyId","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"x","type":"bytes32","indexed":false,"internalType":"bytes32"},{"name":"y","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"name":"Paused","type":"event","inputs":[{"name":"timestamp","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"SessionSignerAuthorized","type":"event","inputs":[{"name":"sessionSigner","type":"address","indexed":true,"internalType":"address"},{"name":"validUntil","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"SessionSignerRevoked","type":"event","inputs":[{"name":"sessionSigner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"SessionSignerRevokedEmergency","type":"event","inputs":[{"name":"sessionSigner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"Unpaused","type":"event","inputs":[{"name":"timestamp","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"fallback","stateMutability":"payable"},{"name":"authorizePasskeySessionSigner","type":"function","inputs":[{"name":"_x","type":"bytes32","internalType":"bytes32"},{"name":"_y","type":"bytes32","internalType":"bytes32"},{"name":"_validUntil","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"authorizeSessionSigner","type":"function","inputs":[{"name":"_sessionSigner","type":"address","internalType":"address"},{"name":"_validUntil","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"cancelOwnershipHandover","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"completeOwnershipHandover","type":"function","inputs":[{"name":"_signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"eip712Domain","type":"function","inputs":[],"outputs":[{"name":"fields","type":"bytes1","internalType":"bytes1"},{"name":"name","type":"string","internalType":"string"},{"name":"version","type":"string","internalType":"string"},{"name":"chainId","type":"uint256","internalType":"uint256"},{"name":"verifyingContract","type":"address","internalType":"address"},{"name":"salt","type":"bytes32","internalType":"bytes32"},{"name":"extensions","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"name":"execute","type":"function","inputs":[{"name":"_batch","type":"tuple","components":[{"name":"wallet","type":"address","internalType":"address"},{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"},{"name":"calls","type":"tuple[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"value","type":"uint256","internalType":"uint256"},{"name":"data","type":"bytes","internalType":"bytes"}],"internalType":"struct Call[]"}],"internalType":"struct Batch"},{"name":"_signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"factory","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"id","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"initialize","type":"function","inputs":[{"name":"_owner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"isValidSignature","type":"function","inputs":[{"name":"_hash","type":"bytes32","internalType":"bytes32"},{"name":"_signature","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"result","type":"bytes4","internalType":"bytes4"}],"stateMutability":"view"},{"name":"nonce","type":"function","inputs":[],"outputs":[{"name":"nonce_","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"optIn","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"optOut","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"owner","type":"function","inputs":[],"outputs":[{"name":"result","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"passkeySessionSigner","type":"function","inputs":[{"name":"_passkeyId","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"x","type":"bytes32","internalType":"bytes32"},{"name":"y","type":"bytes32","internalType":"bytes32"},{"name":"validUntil","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"pause","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"paused","type":"function","inputs":[],"outputs":[{"name":"paused_","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"pendingOwner","type":"function","inputs":[],"outputs":[{"name":"result","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"pendingOwnerDeadline","type":"function","inputs":[],"outputs":[{"name":"result","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"pendingOwnerNonce","type":"function","inputs":[],"outputs":[{"name":"result","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"revokeAllowance","type":"function","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_spender","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokeApprovalForAll","type":"function","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_operator","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokePasskeySessionSigner","type":"function","inputs":[{"name":"_passkeyId","type":"bytes32","internalType":"bytes32"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokePasskeySessionSignerEmergency","type":"function","inputs":[{"name":"_passkeyId","type":"bytes32","internalType":"bytes32"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokeSessionSigner","type":"function","inputs":[{"name":"_sessionSigner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokeSessionSignerEmergency","type":"function","inputs":[{"name":"_sessionSigner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"sessionSignerAuthorizedUntil","type":"function","inputs":[{"name":"_signer","type":"address","internalType":"address"}],"outputs":[{"name":"validUntil_","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"transferOwnership","type":"function","inputs":[{"name":"_newOwner","type":"address","internalType":"address"},{"name":"_deadline","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"unpause","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"walletInterfaceId","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"pure"},{"name":"withdrawERC1155","type":"function","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_ids","type":"uint256[]","internalType":"uint256[]"},{"name":"_amounts","type":"uint256[]","internalType":"uint256[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"withdrawERC20","type":"function","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"withdrawNative","type":"function","inputs":[{"name":"_to","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"receive","stateMutability":"payable"}],"metadata":{"compiler":{"version":"0.8.34+commit.80d5c536"},"language":"Solidity","output":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"result","type":"bytes"}],"name":"BatchCallFailed","type":"error"},{"inputs":[],"name":"BeaconUnresolvable","type":"error"},{"inputs":[],"name":"EmptyBatch","type":"error"},{"inputs":[],"name":"Expired","type":"error"},{"inputs":[],"name":"FnSelectorNotRecognized","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"InvalidNonce","type":"error"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[{"internalType":"bytes32","name":"x","type":"bytes32"},{"internalType":"bytes32","name":"y","type":"bytes32"}],"name":"InvalidPasskeyPublicKey","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidValidUntil","type":"error"},{"inputs":[],"name":"InvalidWallet","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"MissingPrecompile","type":"error"},{"inputs":[],"name":"NoPendingOwner","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[],"name":"NotPaused","type":"error"},{"inputs":[],"name":"OnlyFactory","type":"error"},{"inputs":[],"name":"OnlySelf","type":"error"},{"inputs":[],"name":"SessionSignerCannotCallBeacon","type":"error"},{"inputs":[],"name":"SessionSignerSelfCallNotAllowed","type":"error"},{"inputs":[],"name":"SessionSignerUnauthorized","type":"error"},{"inputs":[],"name":"TimelockInsufficientDelay","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"}],"name":"AllowanceRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"}],"name":"ApprovalForAllRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"BatchExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"ERC1155BatchWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20Withdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"result","type":"bytes"}],"name":"Execution","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NativeWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipHandoverCompleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"},{"indexed":false,"internalType":"uint256","name":"deadline","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"OwnershipHandoverRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"passkeyId","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"x","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"y","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"validUntil","type":"uint256"}],"name":"PasskeySessionSignerAuthorized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"passkeyId","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"x","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"y","type":"bytes32"}],"name":"PasskeySessionSignerRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"passkeyId","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"x","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"y","type":"bytes32"}],"name":"PasskeySessionSignerRevokedEmergency","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sessionSigner","type":"address"},{"indexed":false,"internalType":"uint256","name":"validUntil","type":"uint256"}],"name":"SessionSignerAuthorized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sessionSigner","type":"address"}],"name":"SessionSignerRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sessionSigner","type":"address"}],"name":"SessionSignerRevokedEmergency","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Unpaused","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"bytes32","name":"_x","type":"bytes32"},{"internalType":"bytes32","name":"_y","type":"bytes32"},{"internalType":"uint256","name":"_validUntil","type":"uint256"}],"name":"authorizePasskeySessionSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sessionSigner","type":"address"},{"internalType":"uint256","name":"_validUntil","type":"uint256"}],"name":"authorizeSessionSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cancelOwnershipHandover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"completeOwnershipHandover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Call[]","name":"calls","type":"tuple[]"}],"internalType":"struct Batch","name":"_batch","type":"tuple"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"execute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"id","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"isValidSignature","outputs":[{"internalType":"bytes4","name":"result","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"nonce_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"optIn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"optOut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"result","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_passkeyId","type":"bytes32"}],"name":"passkeySessionSigner","outputs":[{"internalType":"bytes32","name":"x","type":"bytes32"},{"internalType":"bytes32","name":"y","type":"bytes32"},{"internalType":"uint256","name":"validUntil","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"uint256","name":"paused_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"result","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwnerDeadline","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwnerNonce","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"revokeAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"revokeApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_passkeyId","type":"bytes32"}],"name":"revokePasskeySessionSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_passkeyId","type":"bytes32"}],"name":"revokePasskeySessionSignerEmergency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sessionSigner","type":"address"}],"name":"revokeSessionSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sessionSigner","type":"address"}],"name":"revokeSessionSignerEmergency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"sessionSignerAuthorizedUntil","outputs":[{"internalType":"uint256","name":"validUntil_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"},{"internalType":"uint256","name":"_deadline","type":"uint256"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"walletInterfaceId","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"withdrawERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"author":"Polymarket","details":"Deployed as an ERC-1967 beacon proxy via {DepositWalletFactory}. Supports batch execution      of arbitrary calls signed by the owner or an authorized session signer, ERC-1271      signature validation, two-step ownership transfers, and an owner-controlled pause      mechanism with a timelock for emergency asset recovery.","errors":{"FnSelectorNotRecognized()":[{"details":"The function selector is not recognized."}],"InvalidInitialization()":[{"details":"The contract is already initialized."}],"MissingPrecompile(address)":[{"details":"A necessary precompile is missing."}],"NotInitializing()":[{"details":"The contract is not initializing."}]},"events":{"AllowanceRevoked(address,address)":{"params":{"spender":"The address whose allowance was revoked.","token":"The address of the ERC-20 token."}},"ApprovalForAllRevoked(address,address)":{"params":{"operator":"The address whose approval was revoked.","token":"The address of the ERC-1155 token."}},"BatchExecuted(uint256)":{"params":{"nonce":"The nonce of the executed batch."}},"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])":{"params":{"amounts":"The amounts withdrawn for each token ID.","ids":"The token IDs withdrawn.","to":"The recipient address.","token":"The address of the ERC-1155 token."}},"ERC20Withdrawal(address,address,uint256)":{"params":{"amount":"The amount of tokens withdrawn.","to":"The recipient address.","token":"The address of the ERC-20 token."}},"Execution(address,uint256,bytes,bytes)":{"params":{"data":"The calldata sent to the target.","result":"The return data from the call.","target":"The address called.","value":"The ETH value sent with the call."}},"Initialized(uint64)":{"details":"Triggered when the contract has been initialized."},"NativeWithdrawal(address,uint256)":{"params":{"amount":"The amount of native tokens withdrawn.","to":"The recipient address."}},"OwnershipHandoverCanceled(address)":{"params":{"pendingOwner":"The address of the canceled pending owner."}},"OwnershipHandoverCompleted(address,address)":{"params":{"newOwner":"The address of the incoming owner.","previousOwner":"The address of the outgoing owner."}},"OwnershipHandoverRequested(address,uint256,uint256)":{"params":{"deadline":"The timestamp by which the pending owner must complete the handover.","nonce":"The per-handover nonce embedded in the signed digest. Off-chain consumers              must use this value when producing the EIP-712 signature.","pendingOwner":"The address of the proposed new owner."}},"OwnershipTransferred(address,address)":{"params":{"newOwner":"The address of the new owner.","oldOwner":"The address of the previous owner."}},"Paused(uint256)":{"params":{"timestamp":"The block timestamp at which the wallet was paused."}},"SessionSignerAuthorized(address,uint256)":{"params":{"sessionSigner":"The address of the authorized session signer.","validUntil":"The timestamp until which the session signer is valid."}},"SessionSignerRevoked(address)":{"params":{"sessionSigner":"The address of the revoked session signer."}},"SessionSignerRevokedEmergency(address)":{"params":{"sessionSigner":"The address of the revoked session signer."}},"Unpaused(uint256)":{"params":{"timestamp":"The block timestamp at which the wallet was unpaused."}}},"kind":"dev","methods":{"authorizeSessionSigner(address,uint256)":{"details":"Can only be invoked via batch execution (self-call).","params":{"_sessionSigner":"The address to authorize as a session signer.","_validUntil":"The timestamp until which the session signer is valid."}},"cancelOwnershipHandover()":{"details":"Can only be invoked via batch execution (self-call)."},"completeOwnershipHandover(bytes)":{"details":"Permissionless — anyone may submit, but the pending owner must have signed an      EIP-712 `OwnershipHandover(newOwner, nonce)` message using the current      {pendingOwnerNonce}, and the on-chain {pendingOwnerDeadline} must not have elapsed.","params":{"_signature":"The EIP-712 signature from the pending owner."}},"constructor":{"details":"Disables initializers on the implementation contract to prevent misuse."},"eip712Domain()":{"details":"See: https://eips.ethereum.org/EIPS/eip-5267"},"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)":{"details":"Validates the batch (non-empty, correct wallet, nonce, deadline), verifies the EIP-712      signature against the owner or an authorized session signer, then executes each call      sequentially. Session signers are prevented from calling the wallet itself.","params":{"_batch":"The batch containing the target wallet, nonce, deadline, and calls.","_signature":"The EIP-712 signature authorizing the batch (owner or session signer)."}},"factory()":{"returns":{"_0":"The factory address decoded from the proxy's immutable args."}},"id()":{"returns":{"_0":"The wallet ID decoded from the proxy's immutable args."}},"initialize(address)":{"details":"This replaces the constructor for upgradeable contracts.","params":{"_owner":"The address to set as the wallet owner."}},"isValidSignature(bytes32,bytes)":{"details":"Overrides Solady's ERC-1271 implementation to support session signer signatures.      The resolved signer is stored in memory at `_ERC1271_SIGNER_MEM_SLOT` so that      `_erc1271Signer` can return it to the parent verification logic.","params":{"_hash":"The hash that was signed.","_signature":"The signature to validate (may contain a session signer wrapper)."},"returns":{"result":"`ERC1271_MAGIC_VALUE` if the signature is valid, otherwise reverts or returns `ERC1271_INVALID_VALUE`."}},"nonce()":{"returns":{"nonce_":"The current nonce."}},"optIn()":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed. Calls      {DepositWalletBeacon.optIn} from the wallet proxy's address; the beacon emits the      {OptedIn} event.      WARNING: opting in resubscribes the wallet to beacon-driven upgrades. After this      call:        - The wallet's next call delegates through whatever the beacon currently          publishes as `defaultImplementation()`, immediately, with no further owner          confirmation.        - Any future `beacon.upgradeTo(...)` likewise takes effect on this wallet from          the next call onward, on the timelock's schedule rather than the owner's.        - Before opting in the owner must understand what the current beacon          implementation does and verify that it is safe to adopt and will not break any          functionality this wallet depends on. This is especially important when the          pinned implementation is several upgrade versions behind the current default —          the wallet skips every intermediate version and lands directly on the latest,          so any storage, behavioral, or interface changes accumulated across those          versions take effect at once.      By calling this function the owner acknowledges the above and accepts the risk."},"optOut()":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed. Calls      {DepositWalletBeacon.optOut} from the wallet proxy's address; the beacon emits the      {OptedOut} event.      WARNING: opting out is a security-bearing decision the wallet owner takes on their      own behalf. After this call:        - The wallet permanently follows the implementation that is current at opt-out          time, regardless of future beacon upgrades.        - Future security fixes, bug patches, and feature updates published via          `beacon.upgradeTo(...)` will NOT reach this wallet.        - If the pinned implementation is later found vulnerable, the wallet stays          vulnerable. The beacon owner cannot un-pin the wallet — only the wallet owner          can call {optIn} to rejoin the upgrade cohort.        - The pause-based exit hatch (`pause` → wait → `withdrawERC20` / etc.) keeps          working as long as the pinned implementation provides those functions.      By calling this function the owner acknowledges the above and accepts the risk."},"owner()":{"returns":{"result":"The owner address."}},"pause()":{"details":"After pausing, the owner must wait for the timelock delay before calling      paused-only functions (e.g., withdrawals, revocations)."},"paused()":{"returns":{"paused_":"The paused timestamp, or zero if not paused."}},"pendingOwner()":{"returns":{"result":"The pending owner address, or `address(0)` if none."}},"pendingOwnerDeadline()":{"returns":{"result":"The acceptance-deadline timestamp, or zero if no handover is pending."}},"pendingOwnerNonce()":{"returns":{"result":"The current handover nonce."}},"revokeAllowance(address,address)":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed.","params":{"_spender":"The spender whose allowance is revoked.","_token":"The ERC-20 token address."}},"revokeApprovalForAll(address,address)":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed.","params":{"_operator":"The operator whose approval is revoked.","_token":"The ERC-1155 token address."}},"revokeSessionSigner(address)":{"details":"Can only be invoked via batch execution (self-call).","params":{"_sessionSigner":"The session signer address to revoke."}},"revokeSessionSignerEmergency(address)":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed.","params":{"_sessionSigner":"The session signer to revoke."}},"sessionSignerAuthorizedUntil(address)":{"params":{"_signer":"The session signer address to query."},"returns":{"validUntil_":"The authorization expiry timestamp, or zero if not authorized."}},"transferOwnership(address,uint256)":{"details":"Can only be invoked via batch execution (self-call). Records the on-chain deadline      by which the pending owner must complete the handover and bumps the per-handover      nonce, invalidating any previously issued handover signature.","params":{"_deadline":"The timestamp by which the pending owner must complete the handover.","_newOwner":"The proposed new owner, distinct from the current owner and this wallet."}},"unpause()":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"walletInterfaceId()":{"details":"Probed by {DepositWalletBeacon} on every implementation install.","returns":{"_0":"The wallet identity magic."}},"withdrawERC1155(address,address,uint256[],uint256[])":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed.","params":{"_amounts":"The amounts for each token ID.","_ids":"The token IDs to withdraw.","_to":"The recipient address.","_token":"The ERC-1155 token address."}},"withdrawERC20(address,address,uint256)":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed.","params":{"_amount":"The amount of tokens to withdraw.","_to":"The recipient address.","_token":"The ERC-20 token address."}},"withdrawNative(address,uint256)":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed.","params":{"_amount":"The amount of native tokens to withdraw.","_to":"The recipient address."}}},"stateVariables":{"_ERC1271_SIGNER_MEM_SLOT":{"details":"Scratch memory used to pass resolved signer data through Solady's ERC-1271 flow."},"_ERC1967_BEACON_SLOT":{"details":"ERC-1967 beacon slot. `0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50`. Populated on the proxy at deploy time by {LibClone.deployDeterministicERC1967BeaconProxy}; remains      empty for legacy UUPS proxies migrated through {BeaconForwarder}."},"_ERC1967_IMPLEMENTATION_SLOT":{"details":"ERC-1967 implementation slot. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`. Empty on native beacon proxies; points at the {BeaconForwarder} on legacy UUPS proxies      migrated through the adapter."},"_IMMUTABLE_ARGS_LENGTH":{"details":"Byte length of the `(address factory, bytes32 id)` immutable args appended to the proxy bytecode."},"_NONCE_SLOT":{"details":"Storage slot for the replay-protection nonce. keccak256(\"DepositWallet.nonce\") - 1"},"_PASSKEY_SESSION_SIGNER_SLOT":{"details":"Base storage slot for passkey session signer records. keccak256(\"DepositWallet.passkeySessionSigner\") - 1"},"_PAUSED_SLOT":{"details":"Storage slot for the paused timestamp. keccak256(\"DepositWallet.paused\") - 1"},"_SESSION_SIGNER_SLOT":{"details":"Base storage slot for the session signer mapping. keccak256(\"DepositWallet.sessionSignerAuthorizedUntil\") - 1"},"_WALLET_INTERFACE_ID":{"details":"Identity magic returned by {walletInterfaceId} and probed by {DepositWalletBeacon}      when installing a new implementation. Stable; not bumped per release."}},"title":"DepositWallet","version":1},"userdoc":{"errors":{"BatchCallFailed(uint256,address,bytes)":[{"notice":"Thrown when a low-level call within a batch execution fails."}],"BeaconUnresolvable()":[{"notice":"Thrown when the wallet cannot resolve its beacon from on-proxy state — i.e., the         ERC-1967 beacon slot is empty AND the ERC-1967 implementation slot is either empty         or points at an address with no code."}],"EmptyBatch()":[{"notice":"Thrown when a batch contains zero calls."}],"Expired()":[{"notice":"Thrown when a deadline has passed."}],"InvalidNonce()":[{"notice":"Thrown when the batch nonce does not match the wallet's current nonce."}],"InvalidOwner()":[{"notice":"Thrown when the provided owner address is invalid (e.g., zero address)."}],"InvalidPasskeyPublicKey(bytes32,bytes32)":[{"notice":"Thrown when the supplied coordinates are not a valid P-256 public key."}],"InvalidSignature()":[{"notice":"Thrown when a signature fails verification."}],"InvalidValidUntil()":[{"notice":"Thrown when the provided `validUntil` timestamp is not in the future."}],"InvalidWallet()":[{"notice":"Thrown when the batch's wallet address does not match the executing wallet."}],"NoPendingOwner()":[{"notice":"Thrown when an ownership handover is expected but none is pending."}],"NotPaused()":[{"notice":"Thrown when a paused-only function is called while the wallet is not paused."}],"OnlyFactory()":[{"notice":"Thrown when the caller is not the factory contract."}],"OnlySelf()":[{"notice":"Thrown when a function restricted to self-calls is invoked externally."}],"SessionSignerCannotCallBeacon()":[{"notice":"Thrown when a session signer attempts to call the beacon — toggling the wallet's         beacon-upgrade pin is an owner-only privilege."}],"SessionSignerSelfCallNotAllowed()":[{"notice":"Thrown when a session signer attempts to call the wallet itself."}],"SessionSignerUnauthorized()":[{"notice":"Legacy error retained for ABI compatibility."}],"TimelockInsufficientDelay()":[{"notice":"Thrown when the timelock delay has not elapsed since the wallet was paused."}],"Unauthorized()":[{"notice":"Thrown when the caller is not authorized to perform the action."}],"ZeroAddress()":[{"notice":"Thrown when the zero address is provided where a non-zero address is required."}]},"events":{"AllowanceRevoked(address,address)":{"notice":"Emitted when an ERC-20 allowance is revoked by the owner."},"ApprovalForAllRevoked(address,address)":{"notice":"Emitted when an ERC-1155 operator approval is revoked by the owner."},"BatchExecuted(uint256)":{"notice":"Emitted after a batch of calls has been successfully executed."},"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])":{"notice":"Emitted when ERC-1155 tokens are batch-withdrawn from the wallet by the owner."},"ERC20Withdrawal(address,address,uint256)":{"notice":"Emitted when ERC-20 tokens are withdrawn from the wallet by the owner."},"Execution(address,uint256,bytes,bytes)":{"notice":"Emitted for each individual call executed within a batch."},"NativeWithdrawal(address,uint256)":{"notice":"Emitted when native tokens are withdrawn from the wallet by the owner."},"OwnershipHandoverCanceled(address)":{"notice":"Emitted when a pending ownership handover is canceled."},"OwnershipHandoverCompleted(address,address)":{"notice":"Emitted when a two-step ownership handover is completed."},"OwnershipHandoverRequested(address,uint256,uint256)":{"notice":"Emitted when a two-step ownership handover is initiated."},"OwnershipTransferred(address,address)":{"notice":"Emitted when ownership is transferred."},"PasskeySessionSignerAuthorized(bytes32,bytes32,bytes32,uint256)":{"notice":"Emitted when a passkey session signer is authorized."},"PasskeySessionSignerRevoked(bytes32,bytes32,bytes32)":{"notice":"Emitted when a passkey session signer is revoked via a self-call."},"PasskeySessionSignerRevokedEmergency(bytes32,bytes32,bytes32)":{"notice":"Emitted when a passkey session signer is emergency-revoked by the owner."},"Paused(uint256)":{"notice":"Emitted when the wallet is paused."},"SessionSignerAuthorized(address,uint256)":{"notice":"Emitted when a session signer is authorized."},"SessionSignerRevoked(address)":{"notice":"Emitted when a session signer is revoked via a self-call."},"SessionSignerRevokedEmergency(address)":{"notice":"Emitted when a session signer is emergency-revoked by the owner while paused."},"Unpaused(uint256)":{"notice":"Emitted when the wallet is unpaused."}},"kind":"user","methods":{"authorizePasskeySessionSigner(bytes32,bytes32,uint256)":{"notice":"Authorizes a P-256 passkey as a session signer."},"authorizeSessionSigner(address,uint256)":{"notice":"Authorizes a session signer until the specified timestamp."},"cancelOwnershipHandover()":{"notice":"Cancels any pending ownership handover."},"completeOwnershipHandover(bytes)":{"notice":"Completes a pending ownership transfer."},"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)":{"notice":"Executes a signed batch of calls through the factory."},"factory()":{"notice":"Returns the factory contract that deployed this wallet."},"id()":{"notice":"Returns the unique identifier assigned to this wallet at deployment."},"initialize(address)":{"notice":"Initializes the wallet with a designated owner."},"isValidSignature(bytes32,bytes)":{"notice":"Validates a signature against the wallet owner or an authorized session signer."},"nonce()":{"notice":"Returns the wallet's current execution nonce."},"optIn()":{"notice":"Clears the wallet's beacon-upgrade pin, rejoining the upgrade cohort."},"optOut()":{"notice":"Opts the wallet out of beacon upgrades, pinning it to the current default         implementation."},"owner()":{"notice":"Returns the current owner of the wallet."},"passkeySessionSigner(bytes32)":{"notice":"Returns a passkey session signer's public key and authorization expiry."},"pause()":{"notice":"Pauses the wallet, recording the current timestamp."},"paused()":{"notice":"Returns the timestamp at which the wallet was paused."},"pendingOwner()":{"notice":"Returns the pending owner awaiting handover completion."},"pendingOwnerDeadline()":{"notice":"Returns the deadline by which the pending owner must complete the handover."},"pendingOwnerNonce()":{"notice":"Returns the per-handover nonce embedded in the EIP-712 signature."},"revokeAllowance(address,address)":{"notice":"Revokes an ERC-20 allowance by setting it to zero."},"revokeApprovalForAll(address,address)":{"notice":"Revokes an ERC-1155 operator approval."},"revokePasskeySessionSigner(bytes32)":{"notice":"Revokes a passkey session signer's authorization."},"revokePasskeySessionSignerEmergency(bytes32)":{"notice":"Emergency revocation of a passkey session signer by the owner."},"revokeSessionSigner(address)":{"notice":"Revokes a session signer's authorization."},"revokeSessionSignerEmergency(address)":{"notice":"Emergency revocation of a session signer by the owner."},"sessionSignerAuthorizedUntil(address)":{"notice":"Returns the timestamp until which a session signer is authorized."},"transferOwnership(address,uint256)":{"notice":"Initiates a two-step ownership transfer to a new owner."},"unpause()":{"notice":"Unpauses the wallet."},"walletInterfaceId()":{"notice":"Returns a stable magic identifying this contract as a `DepositWallet`."},"withdrawERC1155(address,address,uint256[],uint256[])":{"notice":"Batch-withdraws ERC-1155 tokens from the wallet."},"withdrawERC20(address,address,uint256)":{"notice":"Withdraws ERC-20 tokens from the wallet."},"withdrawNative(address,uint256)":{"notice":"Withdraws native tokens from the wallet."}},"notice":"Minimal smart-contract wallet for deposit operations.","version":1}},"settings":{"compilationTarget":{"src/DepositWallet.sol":"DepositWallet"},"evmVersion":"osaka","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":1000000},"remappings":[":@deposit-wallet/src/=src/",":@forge-std/=lib/forge-std/",":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",":@solady/=lib/solady/"]},"sources":{"lib/openzeppelin-contracts/contracts/utils/Base64.sol":{"keccak256":"0xe802369c4d2d254590d371eca16c8d247d7e0782ad2faaaa0180159ea8e736af","license":"MIT","urls":["bzz-raw://3afb5bedd76d842847c730499c3acc9c28e91ac981bb95467671118ec0c7cdc8","dweb:/ipfs/QmWzjmjvZPJEvNTiN22V3E9hQ2JnGeZgYfhFjqGMPMcSNH"]},"lib/openzeppelin-contracts/contracts/utils/Bytes.sol":{"keccak256":"0xf80e4b96b6849936ea0fabd76cf81b13d7276295fddb1e1c07afb3ddf650b0ac","license":"MIT","urls":["bzz-raw://6430007255ac11c6e9c4331a418f3af52ff66fbbae959f645301d025b20aeb08","dweb:/ipfs/QmQE5fjmBBRw9ndnzJuC2uskYss1gbaR7JdazoCf1FGoBj"]},"lib/openzeppelin-contracts/contracts/utils/Errors.sol":{"keccak256":"0x6afa713bfd42cf0f7656efa91201007ac465e42049d7de1d50753a373648c123","license":"MIT","urls":["bzz-raw://ba1d02f4847670a1b83dec9f7d37f0b0418d6043447b69f3a29a5f9efc547fcf","dweb:/ipfs/QmQ7iH2keLNUKgq2xSWcRmuBE5eZ3F5whYAkAGzCNNoEWB"]},"lib/openzeppelin-contracts/contracts/utils/Panic.sol":{"keccak256":"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a","license":"MIT","urls":["bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a","dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG"]},"lib/openzeppelin-contracts/contracts/utils/Strings.sol":{"keccak256":"0x1fdc2de9585ab0f1c417f02a873a2b6343cd64bb7ffec6b00ffa11a4a158d9e8","license":"MIT","urls":["bzz-raw://1ab223a3d969c6cd7610049431dd42740960c477e45878f5d8b54411f7a32bdc","dweb:/ipfs/QmWumhjvhpKcwx3vDPQninsNVTc3BGvqaihkQakFkQYpaS"]},"lib/openzeppelin-contracts/contracts/utils/cryptography/P256.sol":{"keccak256":"0x88c54d9537016a9c0af742fe9d6303e5b9ef76946866296382f62a34875d06e7","license":"MIT","urls":["bzz-raw://ffdc3422a88fdf71693a139af52f9a7c4e92cb9d2db1002a23c643dbbab1b42f","dweb:/ipfs/Qma2hbbigJBetFACyFxwyakzHHLnP7T2kztKxXyNHtcFLR"]},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"keccak256":"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857","license":"MIT","urls":["bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5","dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y"]},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"keccak256":"0xc8cae21c9ae4a46e5162ff9bf5b351d6fa6a6eba72d515f3bc1bdfeda7fdf083","license":"MIT","urls":["bzz-raw://ce830ebcf28e31643caba318996db3763c36d52cd0f23798ba83c135355d45e9","dweb:/ipfs/QmdGPcvptHN7UBCbUYBbRX3hiRVRFLRwno8b4uga6uFNif"]},"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol":{"keccak256":"0xb1970fac7b64e6c09611e6691791e848d5e3fe410fa5899e7df2e0afd77a99e3","license":"MIT","urls":["bzz-raw://db5fbb3dddd8b7047465b62575d96231ba8a2774d37fb4737fbf23340fabbb03","dweb:/ipfs/QmVUSvooZKEdEdap619tcJjTLcAuH6QBdZqAzWwnAXZAWJ"]},"lib/solady/src/accounts/ERC1271.sol":{"keccak256":"0x196fbf4f691aba451297e24974216613d1d13514f35a446662ad6b8d62f1a2fd","license":"MIT","urls":["bzz-raw://4fcf2fb41d12165cc219f737472023997b726247d7bc7f7e2b26fcf395047953","dweb:/ipfs/QmYoHCQaLtW2M4U5NpYWPsomzqABu1GFJJ71TJHf4Qm33N"]},"lib/solady/src/accounts/Receiver.sol":{"keccak256":"0xc879aa81dd5639f5fd97b31acd91658ffe33ae4b72b70ed7bd701c37addce43b","license":"MIT","urls":["bzz-raw://2e03a8d37d48644857d94f7432c1e2272bfd19649dfe80aba8f979f157f71f00","dweb:/ipfs/QmWWS34bNWhiZgLXS9gtD8N2dxreRsVXxhvQRKqd4wKUuU"]},"lib/solady/src/auth/Ownable.sol":{"keccak256":"0xc208cdd9de02bbf4b5edad18b88e23a2be7ff56d2287d5649329dc7cda64b9a3","license":"MIT","urls":["bzz-raw://e8fba079cc7230c617f7493a2e97873f88e59a53a5018fcb2e2b6ac42d8aa5a3","dweb:/ipfs/QmTXg8GSt8hsK2cZhbPFrund1mrwVdkLQmEPoQaFy4fhjs"]},"lib/solady/src/auth/OwnableRoles.sol":{"keccak256":"0x34fc1e43ab0c413faea47d5198d49879ccafd3a46c1657083ec79e3f4ca4359d","license":"MIT","urls":["bzz-raw://539e93fa51da529c6fdf122a68239652e98a4e31eaf5a08868339404878a095d","dweb:/ipfs/Qmf4SGkn3LDLGAeFmuSnETrQUCa8g8h2dSoukCwyj36yy6"]},"lib/solady/src/tokens/ERC1155.sol":{"keccak256":"0x306249cc3611727ffa9e15ec816282a60fd9629e5ea03ab1c780d638d1537c68","license":"MIT","urls":["bzz-raw://f5627bb90f7db938144047956c23ce8b1b00925aeceb75561f599585f14c2a76","dweb:/ipfs/QmPQ9wMm5govH7jNTF7AMwvt6LrrZgurJhPe7feZBxfpop"]},"lib/solady/src/utils/CallContextChecker.sol":{"keccak256":"0xc54c743a03f4909826712e9c6b683ca95e8b0c120c55284a9e3572621ebd734b","license":"MIT","urls":["bzz-raw://3d3138009aba3d2fd310636f3cc1d6029e970c57ddb74693bebf2a02d3e6f12d","dweb:/ipfs/QmauMpcVDyQqVnAUF75DXy831LvtxyFS7GND7kge1Zgw55"]},"lib/solady/src/utils/ECDSA.sol":{"keccak256":"0xb0754260daabfe6f20dd16f2213823f27c8df1089b43c8eda9b3c2a6eca07478","license":"MIT","urls":["bzz-raw://ffef4ca363ec0e2437b5e195fbb3d58bdc6750921fce32f351ca1c092ad36a75","dweb:/ipfs/QmTcnAyxwvQg3h357PdB8S8oz5bBt85J4SvEgmMqwAfPKF"]},"lib/solady/src/utils/EIP712.sol":{"keccak256":"0x53ccaa757944900e7423347c3c35ea5a905580f3f075452b8468a501a9c39839","license":"MIT","urls":["bzz-raw://aa5688d98319fbeb5b3c46330a394e15a0f2c862d651415e183da4179b918351","dweb:/ipfs/QmZZFrFWmUCFL1qkZDVm3oqrDkQfumYnnksF6cpPkAHdtJ"]},"lib/solady/src/utils/Initializable.sol":{"keccak256":"0x58ee7b2e966232ca1ca9e9e705d8afcefa83fe29d37d6f8361d73015a9db1fe4","license":"MIT","urls":["bzz-raw://59f134cb038e0a547f0a3dbfe9c9b6939f7b39dff64646a79e8cf2dd6ba14f80","dweb:/ipfs/QmfXt149JQEWsYbLUkS9iLP6kGZqzHYyMg7SsLUUPgafEb"]},"lib/solady/src/utils/LibClone.sol":{"keccak256":"0x1b96fd03a3948155bd2fe95dc4980930c759b174026e18f11bc8e88d55ae030e","license":"MIT","urls":["bzz-raw://64998d16472a127031ee6a796ed9afcf13dd662afd30eb4d3e2a42c2bc9fd204","dweb:/ipfs/QmTXHGy9t8YTW96tjiZ8RBqmijXUTqc1JznEBqHv8Duc4A"]},"lib/solady/src/utils/SafeTransferLib.sol":{"keccak256":"0xf53a25143307304d9de7186f93f11faae3cc4f722c4b088aed6f4f8f87a02f7a","license":"MIT","urls":["bzz-raw://b722c08826ece540bbc4ee9f825aac501282c0900a0a2caa618154d77f23223d","dweb:/ipfs/QmeMsPT5S4vV8f7DYC2eZ7TBCrtRi9cKMsoW6Ca62Uaqwg"]},"lib/solady/src/utils/SignatureCheckerLib.sol":{"keccak256":"0x098c7eb88b3048f227b240e0e5bf1da4a8f7622b30f6d7c06416bfcab3225e77","license":"MIT","urls":["bzz-raw://50c2766f652916c5d6433665fb1c3b2f04c3d9292a35c12e0f8d7c71dd6438cb","dweb:/ipfs/QmWTMwN2RDZUUPg7KkH1qFBjTSh84Zw8bbYwRBCQUtLN2h"]},"lib/solady/src/utils/UUPSUpgradeable.sol":{"keccak256":"0x63899eaf1a24713464b8084ada33a83c4b7db789fe83ae22f016e39646bee361","license":"MIT","urls":["bzz-raw://617fa735ffa8ba31051745614a508abd69d2cfc1b1bc1eb3c772865db5f7ce65","dweb:/ipfs/QmR1pQbHPyXcLbFm2vHrXBs1qRFrGC22gF7wWYamYy8aaE"]},"src/DepositWallet.sol":{"keccak256":"0x9572ccb1aa2414882e0ee7a2bd32ff9790a28cd4978cc428dfd414ac3fff5005","license":"BUSL-1.1","urls":["bzz-raw://8965130a081357ea69a7e0131e277445dfb4a03c330236eaa42f06f8443891d6","dweb:/ipfs/QmNkKKCuHRS1JrzXw55VcXng9ZRnAWhnHdGfUpni2kAga9"]},"src/DepositWalletBeacon.sol":{"keccak256":"0xa5cc7a92c07db2f298d1d0e91eecc9698f559cb1d3ed5f52481e3f14173dd8b9","license":"BUSL-1.1","urls":["bzz-raw://63b03aeb1f52b8429ec70e1ff508e8ca721d529c388b2da2d7b9f2bdc972c10c","dweb:/ipfs/Qmdzp2naUW98WSKV3WSvtHRceefSZE8CqM39pssKdDmWyP"]},"src/DepositWalletFactory.sol":{"keccak256":"0x99c4cc0d174b518a9066fd3f174bff453e06103b9a8047b4e2fb9bfafe2d832e","license":"BUSL-1.1","urls":["bzz-raw://6755650fde18027cccdac1fd5d0615cf5eac55cd4f0a94c4d944d267aeef326e","dweb:/ipfs/QmYBXh8h13nTP7Khsdy54ycvVGw3mjnbgUE1LX8EEVmERe"]},"src/Errors.sol":{"keccak256":"0x641a144833da4937522a190855503388ac8f43ca1de0db64fc646798f4fa46c8","license":"BUSL-1.1","urls":["bzz-raw://4b40f47875b47995bd7f9e1aba2e724a69c0363d3c801403899630d9f5488365","dweb:/ipfs/Qmf82WsA6eQRRUj6ScpmuBVKavimg3UL85yXYfL6QjdEPu"]},"src/Events.sol":{"keccak256":"0x698b5a64c71fe787e27c2c463130cb824395a1c294e56b73260f74dbe378deb6","license":"BUSL-1.1","urls":["bzz-raw://e0c8c496369bbd56892f39ec215b0b367295f069ea186a96092cb6dbada7406c","dweb:/ipfs/QmXn4cuDsZbNmaktQULBSihjnq1PMcLr5stXNNQK4p8JWj"]},"src/interfaces/IDepositWallet.sol":{"keccak256":"0x4174ab48008387f1ce4c1a5c6052a98968488885b592a9a850dcb6a3a5552f6a","license":"BUSL-1.1","urls":["bzz-raw://ce3320db306c334438f015d12dc94ab7f5f18faf17964cd4d68fa863380ea246","dweb:/ipfs/QmTmjXvJCisVUsHizdcin7VNAQc5arRZphL2f9ALNuH2F7"]},"src/libraries/Ownable.sol":{"keccak256":"0xaa50823c42a8079630b8204ad0e04523901c446fdd5802d1f7037f0ca223a94c","license":"BUSL-1.1","urls":["bzz-raw://704d6247b9290805b380f2a279b22ef52bef2b60d3237ebff5e6bb925747693a","dweb:/ipfs/QmTD3EvDjfCmscdfVNn5eXo6EaLgwwCCQB5T9qWaZ1xuhG"]},"src/libraries/PasskeySignerLib.sol":{"keccak256":"0x461a1af7331d1f2c40a79cd20829f2e30f89de24929a4cf6ed1781b50e6e6cfe","license":"BUSL-1.1","urls":["bzz-raw://b47252e133e442607f9b8d47b8c9468f51912ffd69e364f73796c8929d0edb16","dweb:/ipfs/QmeWzNFaKP1oTMBMyRKAYVMR6vStj2C4qbWrxT4oZVGLDc"]},"src/libraries/SessionSignerLib.sol":{"keccak256":"0xd1e34fa3aeb9650772c8e7e155b1f5aab2f04297c8bc96d141304f7038040c86","license":"BUSL-1.1","urls":["bzz-raw://de0322d1ca80ebba60e4940d0ea402a3b2ba8be7f50e85aadaa4d8fc37d7363e","dweb:/ipfs/QmesgdYCEGq8Vy4icvKzSnJrLXzRYLQbYHEgTB7UmbYUVc"]},"src/libraries/SignatureVerifierLib.sol":{"keccak256":"0x90d5668863c51105043dc6948da64177f92884286a369e91a88251091ecf783f","license":"BUSL-1.1","urls":["bzz-raw://e9eaa83ef4c2f86a08043c0482cf8f8500ca9d373ea3c4b7d82a672a1b378f87","dweb:/ipfs/QmcWN1DZffjFttkopQQdfagqHckYxZLhgW53SFZvM5qj3c"]},"src/libraries/WalletLib.sol":{"keccak256":"0xcd683a9161bc4c17220d606569729ddc5047cc22c3197e2e5e3130aac488e0f2","license":"BUSL-1.1","urls":["bzz-raw://8096a63d894b255d64d4151ae9edf935c0c2e21a637613f6c068cce4c03008c4","dweb:/ipfs/QmQHHxFJmYD5DGVXLz1kHwwBzF1J5D5wLnod7KzcTi5Ts5"]},"src/libraries/WebAuthnNative.sol":{"keccak256":"0x131b2efad64eabd9c36e5a7ffe5cb5bbcb81b3f7ebc1765e1ea2a9e4416cdeeb","license":"MIT","urls":["bzz-raw://68e94df30f2854174e7f773b9f5dd58639349fd19e09c13dcbd3c03579fa2179","dweb:/ipfs/QmSouGRUr9DfY13qKgFQwvrLuza9B6X2Loap1AwSdgBb4S"]}},"version":1},"storageLayout":{"types":null,"storage":[]},"transientStorageLayout":{"types":null,"storage":[]},"userdoc":{"kind":"user","errors":{"Expired()":[{"notice":"Thrown when a deadline has passed."}],"OnlySelf()":[{"notice":"Thrown when a function restricted to self-calls is invoked externally."}],"NotPaused()":[{"notice":"Thrown when a paused-only function is called while the wallet is not paused."}],"EmptyBatch()":[{"notice":"Thrown when a batch contains zero calls."}],"OnlyFactory()":[{"notice":"Thrown when the caller is not the factory contract."}],"ZeroAddress()":[{"notice":"Thrown when the zero address is provided where a non-zero address is required."}],"InvalidNonce()":[{"notice":"Thrown when the batch nonce does not match the wallet's current nonce."}],"InvalidOwner()":[{"notice":"Thrown when the provided owner address is invalid (e.g., zero address)."}],"Unauthorized()":[{"notice":"Thrown when the caller is not authorized to perform the action."}],"InvalidWallet()":[{"notice":"Thrown when the batch's wallet address does not match the executing wallet."}],"NoPendingOwner()":[{"notice":"Thrown when an ownership handover is expected but none is pending."}],"InvalidSignature()":[{"notice":"Thrown when a signature fails verification."}],"InvalidValidUntil()":[{"notice":"Thrown when the provided `validUntil` timestamp is not in the future."}],"BeaconUnresolvable()":[{"notice":"Thrown when the wallet cannot resolve its beacon from on-proxy state — i.e., the         ERC-1967 beacon slot is empty AND the ERC-1967 implementation slot is either empty         or points at an address with no code."}],"SessionSignerUnauthorized()":[{"notice":"Legacy error retained for ABI compatibility."}],"TimelockInsufficientDelay()":[{"notice":"Thrown when the timelock delay has not elapsed since the wallet was paused."}],"SessionSignerCannotCallBeacon()":[{"notice":"Thrown when a session signer attempts to call the beacon — toggling the wallet's         beacon-upgrade pin is an owner-only privilege."}],"SessionSignerSelfCallNotAllowed()":[{"notice":"Thrown when a session signer attempts to call the wallet itself."}],"BatchCallFailed(uint256,address,bytes)":[{"notice":"Thrown when a low-level call within a batch execution fails."}],"InvalidPasskeyPublicKey(bytes32,bytes32)":[{"notice":"Thrown when the supplied coordinates are not a valid P-256 public key."}]},"events":{"Paused(uint256)":{"notice":"Emitted when the wallet is paused."},"Unpaused(uint256)":{"notice":"Emitted when the wallet is unpaused."},"BatchExecuted(uint256)":{"notice":"Emitted after a batch of calls has been successfully executed."},"SessionSignerRevoked(address)":{"notice":"Emitted when a session signer is revoked via a self-call."},"AllowanceRevoked(address,address)":{"notice":"Emitted when an ERC-20 allowance is revoked by the owner."},"NativeWithdrawal(address,uint256)":{"notice":"Emitted when native tokens are withdrawn from the wallet by the owner."},"OwnershipHandoverCanceled(address)":{"notice":"Emitted when a pending ownership handover is canceled."},"OwnershipTransferred(address,address)":{"notice":"Emitted when ownership is transferred."},"ApprovalForAllRevoked(address,address)":{"notice":"Emitted when an ERC-1155 operator approval is revoked by the owner."},"Execution(address,uint256,bytes,bytes)":{"notice":"Emitted for each individual call executed within a batch."},"SessionSignerRevokedEmergency(address)":{"notice":"Emitted when a session signer is emergency-revoked by the owner while paused."},"ERC20Withdrawal(address,address,uint256)":{"notice":"Emitted when ERC-20 tokens are withdrawn from the wallet by the owner."},"SessionSignerAuthorized(address,uint256)":{"notice":"Emitted when a session signer is authorized."},"OwnershipHandoverCompleted(address,address)":{"notice":"Emitted when a two-step ownership handover is completed."},"OwnershipHandoverRequested(address,uint256,uint256)":{"notice":"Emitted when a two-step ownership handover is initiated."},"PasskeySessionSignerRevoked(bytes32,bytes32,bytes32)":{"notice":"Emitted when a passkey session signer is revoked via a self-call."},"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])":{"notice":"Emitted when ERC-1155 tokens are batch-withdrawn from the wallet by the owner."},"PasskeySessionSignerRevokedEmergency(bytes32,bytes32,bytes32)":{"notice":"Emitted when a passkey session signer is emergency-revoked by the owner."},"PasskeySessionSignerAuthorized(bytes32,bytes32,bytes32,uint256)":{"notice":"Emitted when a passkey session signer is authorized."}},"notice":"Minimal smart-contract wallet for deposit operations.","methods":{"id()":{"notice":"Returns the unique identifier assigned to this wallet at deployment."},"nonce()":{"notice":"Returns the wallet's current execution nonce."},"optIn()":{"notice":"Clears the wallet's beacon-upgrade pin, rejoining the upgrade cohort."},"owner()":{"notice":"Returns the current owner of the wallet."},"pause()":{"notice":"Pauses the wallet, recording the current timestamp."},"optOut()":{"notice":"Opts the wallet out of beacon upgrades, pinning it to the current default         implementation."},"paused()":{"notice":"Returns the timestamp at which the wallet was paused."},"factory()":{"notice":"Returns the factory contract that deployed this wallet."},"unpause()":{"notice":"Unpauses the wallet."},"pendingOwner()":{"notice":"Returns the pending owner awaiting handover completion."},"initialize(address)":{"notice":"Initializes the wallet with a designated owner."},"pendingOwnerNonce()":{"notice":"Returns the per-handover nonce embedded in the EIP-712 signature."},"walletInterfaceId()":{"notice":"Returns a stable magic identifying this contract as a `DepositWallet`."},"pendingOwnerDeadline()":{"notice":"Returns the deadline by which the pending owner must complete the handover."},"cancelOwnershipHandover()":{"notice":"Cancels any pending ownership handover."},"revokeSessionSigner(address)":{"notice":"Revokes a session signer's authorization."},"passkeySessionSigner(bytes32)":{"notice":"Returns a passkey session signer's public key and authorization expiry."},"isValidSignature(bytes32,bytes)":{"notice":"Validates a signature against the wallet owner or an authorized session signer."},"withdrawNative(address,uint256)":{"notice":"Withdraws native tokens from the wallet."},"completeOwnershipHandover(bytes)":{"notice":"Completes a pending ownership transfer."},"revokeAllowance(address,address)":{"notice":"Revokes an ERC-20 allowance by setting it to zero."},"transferOwnership(address,uint256)":{"notice":"Initiates a two-step ownership transfer to a new owner."},"revokePasskeySessionSigner(bytes32)":{"notice":"Revokes a passkey session signer's authorization."},"revokeApprovalForAll(address,address)":{"notice":"Revokes an ERC-1155 operator approval."},"revokeSessionSignerEmergency(address)":{"notice":"Emergency revocation of a session signer by the owner."},"sessionSignerAuthorizedUntil(address)":{"notice":"Returns the timestamp until which a session signer is authorized."},"withdrawERC20(address,address,uint256)":{"notice":"Withdraws ERC-20 tokens from the wallet."},"authorizeSessionSigner(address,uint256)":{"notice":"Authorizes a session signer until the specified timestamp."},"revokePasskeySessionSignerEmergency(bytes32)":{"notice":"Emergency revocation of a passkey session signer by the owner."},"withdrawERC1155(address,address,uint256[],uint256[])":{"notice":"Batch-withdraws ERC-1155 tokens from the wallet."},"authorizePasskeySessionSigner(bytes32,bytes32,uint256)":{"notice":"Authorizes a P-256 passkey as a session signer."},"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)":{"notice":"Executes a signed batch of calls through the factory."}},"version":1},"devdoc":{"kind":"dev","title":"DepositWallet","author":"Polymarket","errors":{"NotInitializing()":[{"details":"The contract is not initializing."}],"InvalidInitialization()":[{"details":"The contract is already initialized."}],"FnSelectorNotRecognized()":[{"details":"The function selector is not recognized."}],"MissingPrecompile(address)":[{"details":"A necessary precompile is missing."}]},"events":{"Paused(uint256)":{"params":{"timestamp":"The block timestamp at which the wallet was paused."}},"Unpaused(uint256)":{"params":{"timestamp":"The block timestamp at which the wallet was unpaused."}},"Initialized(uint64)":{"details":"Triggered when the contract has been initialized."},"BatchExecuted(uint256)":{"params":{"nonce":"The nonce of the executed batch."}},"SessionSignerRevoked(address)":{"params":{"sessionSigner":"The address of the revoked session signer."}},"AllowanceRevoked(address,address)":{"params":{"token":"The address of the ERC-20 token.","spender":"The address whose allowance was revoked."}},"NativeWithdrawal(address,uint256)":{"params":{"to":"The recipient address.","amount":"The amount of native tokens withdrawn."}},"OwnershipHandoverCanceled(address)":{"params":{"pendingOwner":"The address of the canceled pending owner."}},"OwnershipTransferred(address,address)":{"params":{"newOwner":"The address of the new owner.","oldOwner":"The address of the previous owner."}},"ApprovalForAllRevoked(address,address)":{"params":{"token":"The address of the ERC-1155 token.","operator":"The address whose approval was revoked."}},"Execution(address,uint256,bytes,bytes)":{"params":{"data":"The calldata sent to the target.","value":"The ETH value sent with the call.","result":"The return data from the call.","target":"The address called."}},"SessionSignerRevokedEmergency(address)":{"params":{"sessionSigner":"The address of the revoked session signer."}},"ERC20Withdrawal(address,address,uint256)":{"params":{"to":"The recipient address.","token":"The address of the ERC-20 token.","amount":"The amount of tokens withdrawn."}},"SessionSignerAuthorized(address,uint256)":{"params":{"validUntil":"The timestamp until which the session signer is valid.","sessionSigner":"The address of the authorized session signer."}},"OwnershipHandoverCompleted(address,address)":{"params":{"newOwner":"The address of the incoming owner.","previousOwner":"The address of the outgoing owner."}},"OwnershipHandoverRequested(address,uint256,uint256)":{"params":{"nonce":"The per-handover nonce embedded in the signed digest. Off-chain consumers              must use this value when producing the EIP-712 signature.","deadline":"The timestamp by which the pending owner must complete the handover.","pendingOwner":"The address of the proposed new owner."}},"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])":{"params":{"to":"The recipient address.","ids":"The token IDs withdrawn.","token":"The address of the ERC-1155 token.","amounts":"The amounts withdrawn for each token ID."}}},"details":"Deployed as an ERC-1967 beacon proxy via {DepositWalletFactory}. Supports batch execution      of arbitrary calls signed by the owner or an authorized session signer, ERC-1271      signature validation, two-step ownership transfers, and an owner-controlled pause      mechanism with a timelock for emergency asset recovery.","methods":{"id()":{"returns":{"_0":"The wallet ID decoded from the proxy's immutable args."}},"nonce()":{"returns":{"nonce_":"The current nonce."}},"optIn()":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed. Calls      {DepositWalletBeacon.optIn} from the wallet proxy's address; the beacon emits the      {OptedIn} event.      WARNING: opting in resubscribes the wallet to beacon-driven upgrades. After this      call:        - The wallet's next call delegates through whatever the beacon currently          publishes as `defaultImplementation()`, immediately, with no further owner          confirmation.        - Any future `beacon.upgradeTo(...)` likewise takes effect on this wallet from          the next call onward, on the timelock's schedule rather than the owner's.        - Before opting in the owner must understand what the current beacon          implementation does and verify that it is safe to adopt and will not break any          functionality this wallet depends on. This is especially important when the          pinned implementation is several upgrade versions behind the current default —          the wallet skips every intermediate version and lands directly on the latest,          so any storage, behavioral, or interface changes accumulated across those          versions take effect at once.      By calling this function the owner acknowledges the above and accepts the risk."},"owner()":{"returns":{"result":"The owner address."}},"pause()":{"details":"After pausing, the owner must wait for the timelock delay before calling      paused-only functions (e.g., withdrawals, revocations)."},"optOut()":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed. Calls      {DepositWalletBeacon.optOut} from the wallet proxy's address; the beacon emits the      {OptedOut} event.      WARNING: opting out is a security-bearing decision the wallet owner takes on their      own behalf. After this call:        - The wallet permanently follows the implementation that is current at opt-out          time, regardless of future beacon upgrades.        - Future security fixes, bug patches, and feature updates published via          `beacon.upgradeTo(...)` will NOT reach this wallet.        - If the pinned implementation is later found vulnerable, the wallet stays          vulnerable. The beacon owner cannot un-pin the wallet — only the wallet owner          can call {optIn} to rejoin the upgrade cohort.        - The pause-based exit hatch (`pause` → wait → `withdrawERC20` / etc.) keeps          working as long as the pinned implementation provides those functions.      By calling this function the owner acknowledges the above and accepts the risk."},"paused()":{"returns":{"paused_":"The paused timestamp, or zero if not paused."}},"factory()":{"returns":{"_0":"The factory address decoded from the proxy's immutable args."}},"unpause()":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"constructor":{"details":"Disables initializers on the implementation contract to prevent misuse."},"eip712Domain()":{"details":"See: https://eips.ethereum.org/EIPS/eip-5267"},"pendingOwner()":{"returns":{"result":"The pending owner address, or `address(0)` if none."}},"initialize(address)":{"params":{"_owner":"The address to set as the wallet owner."},"details":"This replaces the constructor for upgradeable contracts."},"pendingOwnerNonce()":{"returns":{"result":"The current handover nonce."}},"walletInterfaceId()":{"details":"Probed by {DepositWalletBeacon} on every implementation install.","returns":{"_0":"The wallet identity magic."}},"pendingOwnerDeadline()":{"returns":{"result":"The acceptance-deadline timestamp, or zero if no handover is pending."}},"cancelOwnershipHandover()":{"details":"Can only be invoked via batch execution (self-call)."},"revokeSessionSigner(address)":{"params":{"_sessionSigner":"The session signer address to revoke."},"details":"Can only be invoked via batch execution (self-call)."},"isValidSignature(bytes32,bytes)":{"params":{"_hash":"The hash that was signed.","_signature":"The signature to validate (may contain a session signer wrapper)."},"details":"Overrides Solady's ERC-1271 implementation to support session signer signatures.      The resolved signer is stored in memory at `_ERC1271_SIGNER_MEM_SLOT` so that      `_erc1271Signer` can return it to the parent verification logic.","returns":{"result":"`ERC1271_MAGIC_VALUE` if the signature is valid, otherwise reverts or returns `ERC1271_INVALID_VALUE`."}},"withdrawNative(address,uint256)":{"params":{"_to":"The recipient address.","_amount":"The amount of native tokens to withdraw."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"completeOwnershipHandover(bytes)":{"params":{"_signature":"The EIP-712 signature from the pending owner."},"details":"Permissionless — anyone may submit, but the pending owner must have signed an      EIP-712 `OwnershipHandover(newOwner, nonce)` message using the current      {pendingOwnerNonce}, and the on-chain {pendingOwnerDeadline} must not have elapsed."},"revokeAllowance(address,address)":{"params":{"_token":"The ERC-20 token address.","_spender":"The spender whose allowance is revoked."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"transferOwnership(address,uint256)":{"params":{"_deadline":"The timestamp by which the pending owner must complete the handover.","_newOwner":"The proposed new owner, distinct from the current owner and this wallet."},"details":"Can only be invoked via batch execution (self-call). Records the on-chain deadline      by which the pending owner must complete the handover and bumps the per-handover      nonce, invalidating any previously issued handover signature."},"revokeApprovalForAll(address,address)":{"params":{"_token":"The ERC-1155 token address.","_operator":"The operator whose approval is revoked."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"revokeSessionSignerEmergency(address)":{"params":{"_sessionSigner":"The session signer to revoke."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"sessionSignerAuthorizedUntil(address)":{"params":{"_signer":"The session signer address to query."},"returns":{"validUntil_":"The authorization expiry timestamp, or zero if not authorized."}},"withdrawERC20(address,address,uint256)":{"params":{"_to":"The recipient address.","_token":"The ERC-20 token address.","_amount":"The amount of tokens to withdraw."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"authorizeSessionSigner(address,uint256)":{"params":{"_validUntil":"The timestamp until which the session signer is valid.","_sessionSigner":"The address to authorize as a session signer."},"details":"Can only be invoked via batch execution (self-call)."},"withdrawERC1155(address,address,uint256[],uint256[])":{"params":{"_to":"The recipient address.","_ids":"The token IDs to withdraw.","_token":"The ERC-1155 token address.","_amounts":"The amounts for each token ID."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)":{"params":{"_batch":"The batch containing the target wallet, nonce, deadline, and calls.","_signature":"The EIP-712 signature authorizing the batch (owner or session signer)."},"details":"Validates the batch (non-empty, correct wallet, nonce, deadline), verifies the EIP-712      signature against the owner or an authorized session signer, then executes each call      sequentially. Session signers are prevented from calling the wallet itself."}},"version":1,"stateVariables":{"_NONCE_SLOT":{"details":"Storage slot for the replay-protection nonce. keccak256(\"DepositWallet.nonce\") - 1"},"_PAUSED_SLOT":{"details":"Storage slot for the paused timestamp. keccak256(\"DepositWallet.paused\") - 1"},"_ERC1967_BEACON_SLOT":{"details":"ERC-1967 beacon slot. `0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50`. Populated on the proxy at deploy time by {LibClone.deployDeterministicERC1967BeaconProxy}; remains      empty for legacy UUPS proxies migrated through {BeaconForwarder}."},"_SESSION_SIGNER_SLOT":{"details":"Base storage slot for the session signer mapping. keccak256(\"DepositWallet.sessionSignerAuthorizedUntil\") - 1"},"_WALLET_INTERFACE_ID":{"details":"Identity magic returned by {walletInterfaceId} and probed by {DepositWalletBeacon}      when installing a new implementation. Stable; not bumped per release."},"_IMMUTABLE_ARGS_LENGTH":{"details":"Byte length of the `(address factory, bytes32 id)` immutable args appended to the proxy bytecode."},"_ERC1271_SIGNER_MEM_SLOT":{"details":"Scratch memory used to pass resolved signer data through Solady's ERC-1271 flow."},"_ERC1967_IMPLEMENTATION_SLOT":{"details":"ERC-1967 implementation slot. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`. Empty on native beacon proxies; points at the {BeaconForwarder} on legacy UUPS proxies      migrated through the adapter."},"_PASSKEY_SESSION_SIGNER_SLOT":{"details":"Base storage slot for passkey session signer records. keccak256(\"DepositWallet.passkeySessionSigner\") - 1"}}},"sourceIds":{"src/Errors.sol":{"id":25},"src/Events.sol":{"id":26},"src/DepositWallet.sol":{"id":22},"src/libraries/Ownable.sol":{"id":28},"src/DepositWalletBeacon.sol":{"id":23},"src/libraries/WalletLib.sol":{"id":32},"src/DepositWalletFactory.sol":{"id":24},"lib/solady/src/utils/ECDSA.sol":{"id":15},"lib/solady/src/auth/Ownable.sol":{"id":11},"lib/solady/src/utils/EIP712.sol":{"id":16},"src/libraries/WebAuthnNative.sol":{"id":33},"lib/solady/src/tokens/ERC1155.sol":{"id":13},"lib/solady/src/utils/LibClone.sol":{"id":18},"src/interfaces/IDepositWallet.sol":{"id":27},"src/libraries/PasskeySignerLib.sol":{"id":29},"src/libraries/SessionSignerLib.sol":{"id":30},"lib/solady/src/accounts/ERC1271.sol":{"id":9},"lib/solady/src/accounts/Receiver.sol":{"id":10},"lib/solady/src/auth/OwnableRoles.sol":{"id":12},"lib/solady/src/utils/Initializable.sol":{"id":17},"src/libraries/SignatureVerifierLib.sol":{"id":31},"lib/solady/src/utils/SafeTransferLib.sol":{"id":19},"lib/solady/src/utils/UUPSUpgradeable.sol":{"id":21},"lib/solady/src/utils/CallContextChecker.sol":{"id":14},"lib/solady/src/utils/SignatureCheckerLib.sol":{"id":20},"lib/openzeppelin-contracts/contracts/utils/Bytes.sol":{"id":1},"lib/openzeppelin-contracts/contracts/utils/Panic.sol":{"id":3},"lib/openzeppelin-contracts/contracts/utils/Base64.sol":{"id":0},"lib/openzeppelin-contracts/contracts/utils/Errors.sol":{"id":2},"lib/openzeppelin-contracts/contracts/utils/Strings.sol":{"id":4},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"id":6},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"id":7},"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol":{"id":8},"lib/openzeppelin-contracts/contracts/utils/cryptography/P256.sol":{"id":5}},"additionalInput":null,"stdJsonInput":{"sources":{"src/Errors.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\n/// @title Errors\n/// @author Polymarket\n/// @notice Custom errors shared across DepositWallet contracts.\nabstract contract Errors {\n    /// @notice Thrown when the caller is not authorized to perform the action.\n    error Unauthorized();\n\n    /// @notice Thrown when the provided owner address is invalid (e.g., zero address).\n    error InvalidOwner();\n\n    /// @notice Thrown when an ownership handover is expected but none is pending.\n    error NoPendingOwner();\n\n    /// @notice Thrown when a deadline has passed.\n    error Expired();\n\n    /// @notice Thrown when a signature fails verification.\n    error InvalidSignature();\n\n    /// @notice Thrown when the caller is not the factory contract.\n    error OnlyFactory();\n\n    /// @notice Thrown when a low-level call within a batch execution fails.\n    error BatchCallFailed(uint256 index, address target, bytes result);\n\n    /// @notice Thrown when a function restricted to self-calls is invoked externally.\n    error OnlySelf();\n\n    /// @notice Thrown when a batch contains zero calls.\n    error EmptyBatch();\n\n    /// @notice Thrown when the batch nonce does not match the wallet's current nonce.\n    error InvalidNonce();\n\n    /// @notice Thrown when the batch's wallet address does not match the executing wallet.\n    error InvalidWallet();\n\n    /// @notice Legacy error retained for ABI compatibility.\n    error SessionSignerUnauthorized();\n\n    /// @notice Thrown when a session signer attempts to call the wallet itself.\n    error SessionSignerSelfCallNotAllowed();\n\n    /// @notice Thrown when a session signer attempts to call the beacon — toggling the wallet's\n    ///         beacon-upgrade pin is an owner-only privilege.\n    error SessionSignerCannotCallBeacon();\n\n    /// @notice Thrown when the supplied coordinates are not a valid P-256 public key.\n    error InvalidPasskeyPublicKey(bytes32 x, bytes32 y);\n\n    /// @notice Thrown when the zero address is provided where a non-zero address is required.\n    error ZeroAddress();\n\n    /// @notice Thrown when the provided `validUntil` timestamp is not in the future.\n    error InvalidValidUntil();\n\n    /// @notice Thrown when a paused-only function is called while the wallet is not paused.\n    error NotPaused();\n\n    /// @notice Thrown when the timelock delay has not elapsed since the wallet was paused.\n    error TimelockInsufficientDelay();\n\n    /// @notice Thrown when the wallet cannot resolve its beacon from on-proxy state — i.e., the\n    ///         ERC-1967 beacon slot is empty AND the ERC-1967 implementation slot is either empty\n    ///         or points at an address with no code.\n    error BeaconUnresolvable();\n}\n"},"src/Events.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\n/// @title Events\n/// @author Polymarket\n/// @notice Events emitted by DepositWallet contracts.\nabstract contract Events {\n    /// @notice Emitted when ownership is transferred.\n    /// @param oldOwner The address of the previous owner.\n    /// @param newOwner The address of the new owner.\n    event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n    /// @notice Emitted when a two-step ownership handover is initiated.\n    /// @param pendingOwner The address of the proposed new owner.\n    /// @param deadline The timestamp by which the pending owner must complete the handover.\n    /// @param nonce The per-handover nonce embedded in the signed digest. Off-chain consumers\n    ///              must use this value when producing the EIP-712 signature.\n    event OwnershipHandoverRequested(address indexed pendingOwner, uint256 deadline, uint256 nonce);\n\n    /// @notice Emitted when a two-step ownership handover is completed.\n    /// @param previousOwner The address of the outgoing owner.\n    /// @param newOwner The address of the incoming owner.\n    event OwnershipHandoverCompleted(address indexed previousOwner, address indexed newOwner);\n\n    /// @notice Emitted when a pending ownership handover is canceled.\n    /// @param pendingOwner The address of the canceled pending owner.\n    event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n    /// @notice Emitted when native tokens are withdrawn from the wallet by the owner.\n    /// @param to The recipient address.\n    /// @param amount The amount of native tokens withdrawn.\n    event NativeWithdrawal(address indexed to, uint256 amount);\n\n    /// @notice Emitted when ERC-20 tokens are withdrawn from the wallet by the owner.\n    /// @param token The address of the ERC-20 token.\n    /// @param to The recipient address.\n    /// @param amount The amount of tokens withdrawn.\n    event ERC20Withdrawal(address indexed token, address indexed to, uint256 amount);\n\n    /// @notice Emitted when ERC-1155 tokens are batch-withdrawn from the wallet by the owner.\n    /// @param token The address of the ERC-1155 token.\n    /// @param to The recipient address.\n    /// @param ids The token IDs withdrawn.\n    /// @param amounts The amounts withdrawn for each token ID.\n    event ERC1155BatchWithdrawal(\n        address indexed token, address indexed to, uint256[] ids, uint256[] amounts\n    );\n\n    /// @notice Emitted for each individual call executed within a batch.\n    /// @param target The address called.\n    /// @param value The ETH value sent with the call.\n    /// @param data The calldata sent to the target.\n    /// @param result The return data from the call.\n    event Execution(address indexed target, uint256 value, bytes data, bytes result);\n\n    /// @notice Emitted after a batch of calls has been successfully executed.\n    /// @param nonce The nonce of the executed batch.\n    event BatchExecuted(uint256 indexed nonce);\n\n    /// @notice Emitted when a session signer is authorized.\n    /// @param sessionSigner The address of the authorized session signer.\n    /// @param validUntil The timestamp until which the session signer is valid.\n    event SessionSignerAuthorized(address indexed sessionSigner, uint256 validUntil);\n\n    /// @notice Emitted when a session signer is revoked via a self-call.\n    /// @param sessionSigner The address of the revoked session signer.\n    event SessionSignerRevoked(address indexed sessionSigner);\n\n    /// @notice Emitted when the wallet is paused.\n    /// @param timestamp The block timestamp at which the wallet was paused.\n    event Paused(uint256 timestamp);\n\n    /// @notice Emitted when the wallet is unpaused.\n    /// @param timestamp The block timestamp at which the wallet was unpaused.\n    event Unpaused(uint256 timestamp);\n\n    /// @notice Emitted when an ERC-20 allowance is revoked by the owner.\n    /// @param token The address of the ERC-20 token.\n    /// @param spender The address whose allowance was revoked.\n    event AllowanceRevoked(address indexed token, address indexed spender);\n\n    /// @notice Emitted when an ERC-1155 operator approval is revoked by the owner.\n    /// @param token The address of the ERC-1155 token.\n    /// @param operator The address whose approval was revoked.\n    event ApprovalForAllRevoked(address indexed token, address indexed operator);\n\n    /// @notice Emitted when a session signer is emergency-revoked by the owner while paused.\n    /// @param sessionSigner The address of the revoked session signer.\n    event SessionSignerRevokedEmergency(address indexed sessionSigner);\n\n    /// @notice Emitted when a passkey session signer is authorized.\n    event PasskeySessionSignerAuthorized(\n        bytes32 indexed passkeyId, bytes32 x, bytes32 y, uint256 validUntil\n    );\n\n    /// @notice Emitted when a passkey session signer is revoked via a self-call.\n    event PasskeySessionSignerRevoked(bytes32 indexed passkeyId, bytes32 x, bytes32 y);\n\n    /// @notice Emitted when a passkey session signer is emergency-revoked by the owner.\n    event PasskeySessionSignerRevokedEmergency(bytes32 indexed passkeyId, bytes32 x, bytes32 y);\n}\n"},"src/DepositWallet.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity 0.8.34;\n\nimport {ERC1271} from \"@solady/src/accounts/ERC1271.sol\";\nimport {Receiver} from \"@solady/src/accounts/Receiver.sol\";\nimport {ERC1155} from \"@solady/src/tokens/ERC1155.sol\";\nimport {Initializable} from \"@solady/src/utils/Initializable.sol\";\nimport {SafeTransferLib} from \"@solady/src/utils/SafeTransferLib.sol\";\n\nimport {DepositWalletBeacon} from \"@deposit-wallet/src/DepositWalletBeacon.sol\";\nimport {DepositWalletFactory} from \"@deposit-wallet/src/DepositWalletFactory.sol\";\nimport {IDepositWallet} from \"@deposit-wallet/src/interfaces/IDepositWallet.sol\";\nimport {Ownable} from \"@deposit-wallet/src/libraries/Ownable.sol\";\nimport {PasskeySignerLib} from \"@deposit-wallet/src/libraries/PasskeySignerLib.sol\";\nimport {SignatureVerifierLib} from \"@deposit-wallet/src/libraries/SignatureVerifierLib.sol\";\nimport {\n    SessionSignerLib,\n    SessionEnvelopeStatus,\n    SESSION_SIGNER_KIND_SECP256K1,\n    SESSION_SIGNER_KIND_P256\n} from \"@deposit-wallet/src/libraries/SessionSignerLib.sol\";\nimport {\n    Batch,\n    Call,\n    WalletLib,\n    ERC1271_MAGIC_VALUE,\n    ERC1271_INVALID_VALUE\n} from \"@deposit-wallet/src/libraries/WalletLib.sol\";\n\n/// @title IBeaconForwarder\n/// @author Polymarket\n/// @notice Minimal interface for {BeaconForwarder}\ninterface IBeaconForwarder {\n    function BEACON() external view returns (address);\n}\n\n/// @title DepositWallet\n/// @author Polymarket\n/// @notice Minimal smart-contract wallet for deposit operations.\n/// @dev Deployed as an ERC-1967 beacon proxy via {DepositWalletFactory}. Supports batch execution\n///      of arbitrary calls signed by the owner or an authorized session signer, ERC-1271\n///      signature validation, two-step ownership transfers, and an owner-controlled pause\n///      mechanism with a timelock for emergency asset recovery.\ncontract DepositWallet is IDepositWallet, Initializable, Receiver, ERC1271, Ownable {\n    using SafeTransferLib for address;\n    using SessionSignerLib for bytes;\n    using WalletLib for Batch;\n\n    /*--------------------------------------------------------------\n                                 STATE\n    --------------------------------------------------------------*/\n\n    /// @dev Scratch memory used to pass resolved signer data through Solady's ERC-1271 flow.\n    uint256 private constant _ERC1271_SIGNER_MEM_SLOT = 0x80;\n    uint256 private constant _ERC1271_SIGNER_KIND_MEM_SLOT = 0xa0;\n    uint256 private constant _ERC1271_PASSKEY_X_MEM_SLOT = 0xc0;\n    uint256 private constant _ERC1271_PASSKEY_Y_MEM_SLOT = 0xe0;\n\n    /// @dev Storage slot for the replay-protection nonce. keccak256(\"DepositWallet.nonce\") - 1\n    bytes32 private constant _NONCE_SLOT = bytes32(uint256(keccak256(\"DepositWallet.nonce\")) - 1);\n\n    /// @dev Storage slot for the paused timestamp. keccak256(\"DepositWallet.paused\") - 1\n    bytes32 private constant _PAUSED_SLOT = bytes32(uint256(keccak256(\"DepositWallet.paused\")) - 1);\n\n    /// @dev Base storage slot for the session signer mapping.\n    /// keccak256(\"DepositWallet.sessionSignerAuthorizedUntil\") - 1\n    bytes32 private constant _SESSION_SIGNER_SLOT =\n        bytes32(uint256(keccak256(\"DepositWallet.sessionSignerAuthorizedUntil\")) - 1);\n\n    /// @dev Base storage slot for passkey session signer records.\n    /// keccak256(\"DepositWallet.passkeySessionSigner\") - 1\n    bytes32 private constant _PASSKEY_SESSION_SIGNER_SLOT =\n        bytes32(uint256(keccak256(\"DepositWallet.passkeySessionSigner\")) - 1);\n\n    /// @dev ERC-1967 beacon slot.\n    /// `0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50`. Populated on the proxy\n    /// at deploy time by {LibClone.deployDeterministicERC1967BeaconProxy}; remains\n    ///      empty for legacy UUPS proxies migrated through {BeaconForwarder}.\n    bytes32 private constant _ERC1967_BEACON_SLOT =\n        bytes32(uint256(keccak256(\"eip1967.proxy.beacon\")) - 1);\n\n    /// @dev ERC-1967 implementation slot.\n    /// `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`. Empty on native beacon\n    /// proxies; points at the {BeaconForwarder} on legacy UUPS proxies\n    ///      migrated through the adapter.\n    bytes32 private constant _ERC1967_IMPLEMENTATION_SLOT =\n        bytes32(uint256(keccak256(\"eip1967.proxy.implementation\")) - 1);\n\n    /// @dev Byte length of the `(address factory, bytes32 id)` immutable args appended to the\n    /// proxy bytecode.\n    uint256 private constant _IMMUTABLE_ARGS_LENGTH = 64;\n\n    /// @dev Identity magic returned by {walletInterfaceId} and probed by {DepositWalletBeacon}\n    ///      when installing a new implementation. Stable; not bumped per release.\n    bytes32 private constant _WALLET_INTERFACE_ID = keccak256(\"Polymarket.DepositWallet\");\n\n    /*--------------------------------------------------------------\n                               MODIFIERS\n    --------------------------------------------------------------*/\n\n    /// @dev Restricts access to the factory contract.\n    modifier onlyFactory() {\n        require(msg.sender == factory(), OnlyFactory());\n        _;\n    }\n\n    /// @dev Restricts access to calls originating from the wallet itself (i.e., via batch\n    /// execution).\n    modifier onlySelf() {\n        require(msg.sender == address(this), OnlySelf());\n        _;\n    }\n\n    /// @dev Enforces that the contract is paused and the timelock delay has elapsed.\n    modifier onlyPaused() {\n        uint256 pausedAt = paused();\n        require(pausedAt != 0, NotPaused());\n        require(\n            block.timestamp > pausedAt + DepositWalletFactory(factory()).timelockDelay(),\n            TimelockInsufficientDelay()\n        );\n        _;\n    }\n\n    /// @dev Restricts access to the wallet owner.\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /*--------------------------------------------------------------\n                              CONSTRUCTOR\n    --------------------------------------------------------------*/\n\n    /// @dev Disables initializers on the implementation contract to prevent misuse.\n    constructor() {\n        _disableInitializers();\n    }\n\n    /*--------------------------------------------------------------\n                             INITIALIZER\n    --------------------------------------------------------------*/\n\n    /// @notice Initializes the wallet with a designated owner.\n    /// @dev This replaces the constructor for upgradeable contracts.\n    /// @param _owner The address to set as the wallet owner.\n    function initialize(address _owner) external initializer {\n        _initializeOwner(_owner);\n    }\n\n    /*--------------------------------------------------------------\n                                  VIEW\n    --------------------------------------------------------------*/\n\n    /// @notice Returns the wallet's current execution nonce.\n    /// @return nonce_ The current nonce.\n    function nonce() public view returns (uint256 nonce_) {\n        bytes32 slot = _NONCE_SLOT;\n        assembly (\"memory-safe\") {\n            nonce_ := sload(slot)\n        }\n    }\n\n    /// @notice Returns the timestamp at which the wallet was paused.\n    /// @return paused_ The paused timestamp, or zero if not paused.\n    function paused() public view returns (uint256 paused_) {\n        bytes32 slot = _PAUSED_SLOT;\n        assembly (\"memory-safe\") {\n            paused_ := sload(slot)\n        }\n    }\n\n    /// @notice Returns the timestamp until which a session signer is authorized.\n    /// @param _signer The session signer address to query.\n    /// @return validUntil_ The authorization expiry timestamp, or zero if not authorized.\n    function sessionSignerAuthorizedUntil(address _signer)\n        public\n        view\n        returns (uint256 validUntil_)\n    {\n        bytes32 slot = _SESSION_SIGNER_SLOT;\n        assembly (\"memory-safe\") {\n            mstore(0x00, _signer)\n            mstore(0x20, slot)\n            validUntil_ := sload(keccak256(0x00, 0x40))\n        }\n    }\n\n    /// @notice Returns a passkey session signer's public key and authorization expiry.\n    function passkeySessionSigner(bytes32 _passkeyId)\n        public\n        view\n        returns (bytes32 x, bytes32 y, uint256 validUntil)\n    {\n        bytes32 slot = _PASSKEY_SESSION_SIGNER_SLOT;\n        assembly (\"memory-safe\") {\n            mstore(0x00, _passkeyId)\n            mstore(0x20, slot)\n            let recordSlot := keccak256(0x00, 0x40)\n            x := sload(recordSlot)\n            y := sload(add(recordSlot, 1))\n            validUntil := sload(add(recordSlot, 2))\n        }\n    }\n\n    /// @notice Returns the unique identifier assigned to this wallet at deployment.\n    /// @return The wallet ID decoded from the proxy's immutable args.\n    function id() public view returns (bytes32) {\n        (, bytes32 id_) = _readImmutableArgs();\n        return id_;\n    }\n\n    /// @notice Returns the factory contract that deployed this wallet.\n    /// @return The factory address decoded from the proxy's immutable args.\n    function factory() public view returns (address) {\n        (address factory_,) = _readImmutableArgs();\n        return factory_;\n    }\n\n    /// @notice Returns the current owner of the wallet.\n    /// @return result The owner address.\n    function owner() public view override(IDepositWallet, Ownable) returns (address result) {\n        return Ownable.owner();\n    }\n\n    /// @notice Returns the pending owner awaiting handover completion.\n    /// @return result The pending owner address, or `address(0)` if none.\n    function pendingOwner() public view override(IDepositWallet, Ownable) returns (address result) {\n        return Ownable.pendingOwner();\n    }\n\n    /// @notice Returns the deadline by which the pending owner must complete the handover.\n    /// @return result The acceptance-deadline timestamp, or zero if no handover is pending.\n    function pendingOwnerDeadline()\n        public\n        view\n        override(IDepositWallet, Ownable)\n        returns (uint256 result)\n    {\n        return Ownable.pendingOwnerDeadline();\n    }\n\n    /// @notice Returns the per-handover nonce embedded in the EIP-712 signature.\n    /// @return result The current handover nonce.\n    function pendingOwnerNonce()\n        public\n        view\n        override(IDepositWallet, Ownable)\n        returns (uint256 result)\n    {\n        return Ownable.pendingOwnerNonce();\n    }\n\n    /// @notice Returns a stable magic identifying this contract as a `DepositWallet`.\n    /// @dev Probed by {DepositWalletBeacon} on every implementation install.\n    /// @return The wallet identity magic.\n    function walletInterfaceId() external pure returns (bytes32) {\n        return _WALLET_INTERFACE_ID;\n    }\n\n    /*--------------------------------------------------------------\n                             ONLY FACTORY\n    --------------------------------------------------------------*/\n\n    /// @notice Executes a signed batch of calls through the factory.\n    /// @dev Validates the batch (non-empty, correct wallet, nonce, deadline), verifies the EIP-712\n    ///      signature against the owner or an authorized session signer, then executes each call\n    ///      sequentially. Session signers are prevented from calling the wallet itself.\n    /// @param _batch The batch containing the target wallet, nonce, deadline, and calls.\n    /// @param _signature The EIP-712 signature authorizing the batch (owner or session signer).\n    function execute(Batch calldata _batch, bytes calldata _signature) external onlyFactory {\n        require(_batch.calls.length > 0, EmptyBatch());\n        require(_batch.wallet == address(this), InvalidWallet());\n        uint256 executedNonce;\n        bytes32 nonceSlot = _NONCE_SLOT;\n        assembly (\"memory-safe\") {\n            executedNonce := sload(nonceSlot)\n            sstore(nonceSlot, add(executedNonce, 1))\n        }\n        require(_batch.nonce == executedNonce, InvalidNonce());\n        require(block.timestamp <= _batch.deadline, Expired());\n\n        bytes32 batchHash = _batch.hash();\n        bytes32 batchDigest = _hashTypedData(batchHash);\n\n        require(\n            isValidSignature(batchDigest, _signature) == ERC1271_MAGIC_VALUE, InvalidSignature()\n        );\n\n        bool isSessionSigner = _signature.isSessionSignerSignature();\n\n        // Resolve the beacon once per batch — only needed when the signer is a session signer\n        // and we have to enforce the additional guard against beacon calls.\n        address beacon = isSessionSigner ? address(_beacon()) : address(0);\n\n        uint256 i;\n        for (; i < _batch.calls.length;) {\n            require(\n                !isSessionSigner || _batch.calls[i].target != address(this),\n                SessionSignerSelfCallNotAllowed()\n            );\n            require(\n                !isSessionSigner || _batch.calls[i].target != beacon,\n                SessionSignerCannotCallBeacon()\n            );\n\n            (bool success, bytes memory result) =\n                _batch.calls[i].target.call{value: _batch.calls[i].value}(_batch.calls[i].data);\n\n            require(success, BatchCallFailed(i, _batch.calls[i].target, result));\n\n            emit Execution(\n                _batch.calls[i].target, _batch.calls[i].value, _batch.calls[i].data, result\n            );\n\n            unchecked {\n                ++i;\n            }\n        }\n\n        emit BatchExecuted(executedNonce);\n    }\n\n    /*--------------------------------------------------------------\n                               ONLY SELF\n    --------------------------------------------------------------*/\n\n    /// @notice Authorizes a session signer until the specified timestamp.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _sessionSigner The address to authorize as a session signer.\n    /// @param _validUntil The timestamp until which the session signer is valid.\n    function authorizeSessionSigner(address _sessionSigner, uint256 _validUntil) external onlySelf {\n        require(_sessionSigner != address(0), ZeroAddress());\n        require(_validUntil > block.timestamp, InvalidValidUntil());\n        _setSessionSigner(_sessionSigner, _validUntil);\n\n        emit SessionSignerAuthorized(_sessionSigner, _validUntil);\n    }\n\n    /// @notice Revokes a session signer's authorization.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _sessionSigner The session signer address to revoke.\n    function revokeSessionSigner(address _sessionSigner) external onlySelf {\n        _setSessionSigner(_sessionSigner, 0);\n\n        emit SessionSignerRevoked(_sessionSigner);\n    }\n\n    /// @notice Authorizes a P-256 passkey as a session signer.\n    function authorizePasskeySessionSigner(bytes32 _x, bytes32 _y, uint256 _validUntil)\n        external\n        onlySelf\n    {\n        require(PasskeySignerLib.isValidPublicKey(_x, _y), InvalidPasskeyPublicKey(_x, _y));\n        require(_validUntil > block.timestamp, InvalidValidUntil());\n\n        bytes32 passkeyId = PasskeySignerLib.id(_x, _y);\n        _setPasskeySessionSigner(passkeyId, _x, _y, _validUntil);\n\n        emit PasskeySessionSignerAuthorized(passkeyId, _x, _y, _validUntil);\n    }\n\n    /// @notice Revokes a passkey session signer's authorization.\n    function revokePasskeySessionSigner(bytes32 _passkeyId) external onlySelf {\n        (bytes32 x, bytes32 y,) = passkeySessionSigner(_passkeyId);\n        _setPasskeySessionSigner(_passkeyId, bytes32(0), bytes32(0), 0);\n\n        emit PasskeySessionSignerRevoked(_passkeyId, x, y);\n    }\n\n    /// @notice Initiates a two-step ownership transfer to a new owner.\n    /// @dev Can only be invoked via batch execution (self-call). Records the on-chain deadline\n    ///      by which the pending owner must complete the handover and bumps the per-handover\n    ///      nonce, invalidating any previously issued handover signature.\n    /// @param _newOwner The proposed new owner, distinct from the current owner and this wallet.\n    /// @param _deadline The timestamp by which the pending owner must complete the handover.\n    function transferOwnership(address _newOwner, uint256 _deadline) external onlySelf {\n        _transferOwnership(_newOwner, _deadline);\n    }\n\n    /// @notice Cancels any pending ownership handover.\n    /// @dev Can only be invoked via batch execution (self-call).\n    function cancelOwnershipHandover() external onlySelf {\n        _cancelOwnershipHandover();\n    }\n\n    /*--------------------------------------------------------------\n                           OWNERSHIP HANDOVER\n    --------------------------------------------------------------*/\n\n    /// @notice Completes a pending ownership transfer.\n    /// @dev Permissionless — anyone may submit, but the pending owner must have signed an\n    ///      EIP-712 `OwnershipHandover(newOwner, nonce)` message using the current\n    ///      {pendingOwnerNonce}, and the on-chain {pendingOwnerDeadline} must not have elapsed.\n    /// @param _signature The EIP-712 signature from the pending owner.\n    function completeOwnershipHandover(bytes calldata _signature) external {\n        _completeOwnershipHandover(_signature);\n    }\n\n    /*--------------------------------------------------------------\n                               ONLY OWNER\n    --------------------------------------------------------------*/\n\n    /// @notice Pauses the wallet, recording the current timestamp.\n    /// @dev After pausing, the owner must wait for the timelock delay before calling\n    ///      paused-only functions (e.g., withdrawals, revocations).\n    function pause() external onlyOwner {\n        bytes32 slot = _PAUSED_SLOT;\n        assembly (\"memory-safe\") {\n            sstore(slot, timestamp())\n        }\n\n        emit Paused(block.timestamp);\n    }\n\n    /// @notice Unpauses the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    function unpause() external onlyPaused onlyOwner {\n        bytes32 slot = _PAUSED_SLOT;\n        assembly (\"memory-safe\") {\n            sstore(slot, 0)\n        }\n\n        emit Unpaused(block.timestamp);\n    }\n\n    /// @notice Withdraws native tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _to The recipient address.\n    /// @param _amount The amount of native tokens to withdraw.\n    function withdrawNative(address _to, uint256 _amount) external onlyPaused onlyOwner {\n        _to.safeTransferETH(_amount);\n\n        emit NativeWithdrawal(_to, _amount);\n    }\n\n    /// @notice Withdraws ERC-20 tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-20 token address.\n    /// @param _to The recipient address.\n    /// @param _amount The amount of tokens to withdraw.\n    function withdrawERC20(address _token, address _to, uint256 _amount)\n        external\n        onlyPaused\n        onlyOwner\n    {\n        _token.safeTransfer(_to, _amount);\n\n        emit ERC20Withdrawal(_token, _to, _amount);\n    }\n\n    /// @notice Batch-withdraws ERC-1155 tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-1155 token address.\n    /// @param _to The recipient address.\n    /// @param _ids The token IDs to withdraw.\n    /// @param _amounts The amounts for each token ID.\n    function withdrawERC1155(\n        address _token,\n        address _to,\n        uint256[] calldata _ids,\n        uint256[] calldata _amounts\n    ) external onlyPaused onlyOwner {\n        ERC1155(_token).safeBatchTransferFrom(address(this), _to, _ids, _amounts, \"\");\n\n        emit ERC1155BatchWithdrawal(_token, _to, _ids, _amounts);\n    }\n\n    /// @notice Revokes an ERC-20 allowance by setting it to zero.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-20 token address.\n    /// @param _spender The spender whose allowance is revoked.\n    function revokeAllowance(address _token, address _spender) external onlyPaused onlyOwner {\n        _token.safeApprove(_spender, 0);\n\n        emit AllowanceRevoked(_token, _spender);\n    }\n\n    /// @notice Revokes an ERC-1155 operator approval.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-1155 token address.\n    /// @param _operator The operator whose approval is revoked.\n    function revokeApprovalForAll(address _token, address _operator) external onlyPaused onlyOwner {\n        ERC1155(_token).setApprovalForAll(_operator, false);\n\n        emit ApprovalForAllRevoked(_token, _operator);\n    }\n\n    /// @notice Emergency revocation of a session signer by the owner.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _sessionSigner The session signer to revoke.\n    function revokeSessionSignerEmergency(address _sessionSigner) external onlyPaused onlyOwner {\n        _setSessionSigner(_sessionSigner, 0);\n\n        emit SessionSignerRevokedEmergency(_sessionSigner);\n    }\n\n    /// @notice Emergency revocation of a passkey session signer by the owner.\n    function revokePasskeySessionSignerEmergency(bytes32 _passkeyId) external onlyPaused onlyOwner {\n        (bytes32 x, bytes32 y,) = passkeySessionSigner(_passkeyId);\n        _setPasskeySessionSigner(_passkeyId, bytes32(0), bytes32(0), 0);\n\n        emit PasskeySessionSignerRevokedEmergency(_passkeyId, x, y);\n    }\n\n    /// @notice Opts the wallet out of beacon upgrades, pinning it to the current default\n    ///         implementation.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed. Calls\n    ///      {DepositWalletBeacon.optOut} from the wallet proxy's address; the beacon emits the\n    ///      {OptedOut} event.\n    ///\n    ///      WARNING: opting out is a security-bearing decision the wallet owner takes on their\n    ///      own behalf. After this call:\n    ///        - The wallet permanently follows the implementation that is current at opt-out\n    ///          time, regardless of future beacon upgrades.\n    ///        - Future security fixes, bug patches, and feature updates published via\n    ///          `beacon.upgradeTo(...)` will NOT reach this wallet.\n    ///        - If the pinned implementation is later found vulnerable, the wallet stays\n    ///          vulnerable. The beacon owner cannot un-pin the wallet — only the wallet owner\n    ///          can call {optIn} to rejoin the upgrade cohort.\n    ///        - The pause-based exit hatch (`pause` → wait → `withdrawERC20` / etc.) keeps\n    ///          working as long as the pinned implementation provides those functions.\n    ///      By calling this function the owner acknowledges the above and accepts the risk.\n    function optOut() external onlyPaused onlyOwner {\n        _beacon().optOut();\n    }\n\n    /// @notice Clears the wallet's beacon-upgrade pin, rejoining the upgrade cohort.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed. Calls\n    ///      {DepositWalletBeacon.optIn} from the wallet proxy's address; the beacon emits the\n    ///      {OptedIn} event.\n    ///\n    ///      WARNING: opting in resubscribes the wallet to beacon-driven upgrades. After this\n    ///      call:\n    ///        - The wallet's next call delegates through whatever the beacon currently\n    ///          publishes as `defaultImplementation()`, immediately, with no further owner\n    ///          confirmation.\n    ///        - Any future `beacon.upgradeTo(...)` likewise takes effect on this wallet from\n    ///          the next call onward, on the timelock's schedule rather than the owner's.\n    ///        - Before opting in the owner must understand what the current beacon\n    ///          implementation does and verify that it is safe to adopt and will not break any\n    ///          functionality this wallet depends on. This is especially important when the\n    ///          pinned implementation is several upgrade versions behind the current default —\n    ///          the wallet skips every intermediate version and lands directly on the latest,\n    ///          so any storage, behavioral, or interface changes accumulated across those\n    ///          versions take effect at once.\n    ///      By calling this function the owner acknowledges the above and accepts the risk.\n    function optIn() external onlyPaused onlyOwner {\n        _beacon().optIn();\n    }\n\n    /*--------------------------------------------------------------\n                               INTERNAL\n    --------------------------------------------------------------*/\n\n    /// @dev Resolves the beacon from on-proxy state, decoupled from the factory:\n    ///        1. If the ERC-1967 beacon slot is non-zero, this proxy was deployed natively as a\n    ///           beacon proxy (via {LibClone.deployDeterministicERC1967BeaconProxy}) and the\n    ///           slot stores the beacon address directly.\n    ///        2. Otherwise, the ERC-1967 implementation slot is expected to point at a\n    ///           {BeaconForwarder}; the forwarder's immutable `BEACON` getter returns the\n    ///           beacon address. This is the legacy-migration fallback path.\n    function _beacon() internal view returns (DepositWalletBeacon) {\n        address resolved;\n        bytes32 beaconSlot = _ERC1967_BEACON_SLOT;\n        assembly (\"memory-safe\") {\n            resolved := sload(beaconSlot)\n        }\n        if (resolved != address(0)) {\n            return DepositWalletBeacon(resolved);\n        }\n\n        address impl;\n        bytes32 implSlot = _ERC1967_IMPLEMENTATION_SLOT;\n        assembly (\"memory-safe\") {\n            impl := sload(implSlot)\n        }\n        require(impl.code.length > 0, BeaconUnresolvable());\n        return DepositWalletBeacon(IBeaconForwarder(impl).BEACON());\n    }\n\n    /// @notice Stores the authorization expiry for a session signer.\n    /// @param _signer The session signer address.\n    /// @param _validUntil The expiry timestamp (zero to revoke).\n    function _setSessionSigner(address _signer, uint256 _validUntil) internal {\n        bytes32 slot = _SESSION_SIGNER_SLOT;\n        assembly (\"memory-safe\") {\n            mstore(0x00, _signer)\n            mstore(0x20, slot)\n            sstore(keccak256(0x00, 0x40), _validUntil)\n        }\n    }\n\n    /// @notice Stores a passkey session signer record.\n    function _setPasskeySessionSigner(\n        bytes32 _passkeyId,\n        bytes32 _x,\n        bytes32 _y,\n        uint256 _validUntil\n    ) internal {\n        bytes32 slot = _PASSKEY_SESSION_SIGNER_SLOT;\n        assembly (\"memory-safe\") {\n            mstore(0x00, _passkeyId)\n            mstore(0x20, slot)\n            let recordSlot := keccak256(0x00, 0x40)\n            sstore(recordSlot, _x)\n            sstore(add(recordSlot, 1), _y)\n            sstore(add(recordSlot, 2), _validUntil)\n        }\n    }\n\n    /// @dev Reads the proxy's immutable args from the tail of its bytecode. Works for both\n    ///      ERC-1967 and ERC-1967 beacon proxies, since both templates append args at the end.\n    function _readImmutableArgs() internal view returns (address factory_, bytes32 id_) {\n        bytes memory args = new bytes(_IMMUTABLE_ARGS_LENGTH);\n        address self = address(this);\n        assembly (\"memory-safe\") {\n            extcodecopy(\n                self,\n                add(args, 0x20),\n                sub(extcodesize(self), _IMMUTABLE_ARGS_LENGTH),\n                _IMMUTABLE_ARGS_LENGTH\n            )\n        }\n        (factory_, id_) = abi.decode(args, (address, bytes32));\n    }\n\n    /*--------------------------------------------------------------\n                                ERC1271\n    --------------------------------------------------------------*/\n\n    /// @notice Validates a signature against the wallet owner or an authorized session signer.\n    /// @dev Overrides Solady's ERC-1271 implementation to support session signer signatures.\n    ///      The resolved signer is stored in memory at `_ERC1271_SIGNER_MEM_SLOT` so that\n    ///      `_erc1271Signer` can return it to the parent verification logic.\n    /// @param _hash The hash that was signed.\n    /// @param _signature The signature to validate (may contain a session signer wrapper).\n    /// @return result `ERC1271_MAGIC_VALUE` if the signature is valid, otherwise reverts or returns\n    /// `ERC1271_INVALID_VALUE`.\n    function isValidSignature(bytes32 _hash, bytes calldata _signature)\n        public\n        view\n        override(IDepositWallet, ERC1271)\n        returns (bytes4 result)\n    {\n        (SessionEnvelopeStatus envelopeStatus, bytes32 signerId, uint256 signerKind) =\n            _signature.decodeSessionSigner();\n\n        address signer;\n        bytes32 passkeyX;\n        bytes32 passkeyY;\n        uint256 validationKind = SESSION_SIGNER_KIND_SECP256K1;\n\n        if (envelopeStatus == SessionEnvelopeStatus.NotSessionEnvelope) {\n            signer = owner();\n        } else if (\n            envelopeStatus == SessionEnvelopeStatus.WellFormedEnvelope\n                && signerKind == SESSION_SIGNER_KIND_SECP256K1\n        ) {\n            signer = address(uint160(uint256(signerId)));\n            if (block.timestamp >= sessionSignerAuthorizedUntil(signer)) {\n                return ERC1271_INVALID_VALUE;\n            }\n        } else if (\n            envelopeStatus == SessionEnvelopeStatus.WellFormedEnvelope\n                && signerKind == SESSION_SIGNER_KIND_P256\n        ) {\n            uint256 validUntil;\n            (passkeyX, passkeyY, validUntil) = passkeySessionSigner(signerId);\n            if (block.timestamp >= validUntil) return ERC1271_INVALID_VALUE;\n            validationKind = SESSION_SIGNER_KIND_P256;\n        } else {\n            return ERC1271_INVALID_VALUE;\n        }\n\n        assembly {\n            mstore(_ERC1271_SIGNER_MEM_SLOT, signer)\n            mstore(_ERC1271_SIGNER_KIND_MEM_SLOT, validationKind)\n            mstore(_ERC1271_PASSKEY_X_MEM_SLOT, passkeyX)\n            mstore(_ERC1271_PASSKEY_Y_MEM_SLOT, passkeyY)\n            if lt(mload(0x40), 0x100) { mstore(0x40, 0x100) }\n        }\n\n        return super.isValidSignature(_hash, _signature);\n    }\n\n    /// @dev Returns the signer address previously stored by `isValidSignature`.\n    function _erc1271Signer() internal view virtual override returns (address signer) {\n        assembly {\n            signer := mload(_ERC1271_SIGNER_MEM_SLOT)\n        }\n    }\n\n    /// @dev Factory calls use the safe caller path (direct ECDSA verification);\n    ///      external callers go through the nested EIP-712 workflow.\n    function _erc1271CallerIsSafe() internal view virtual override returns (bool) {\n        return msg.sender == factory();\n    }\n\n    /// @dev Performs ECDSA, ERC-1271, or WebAuthn verification against the resolved signer.\n    ///      Address-based signers (owner and secp256k1-kind session signers) verify via ECDSA\n    ///      first, then fall back to an ERC-1271 staticcall when the signer is a contract.\n    /// @param hash The digest to verify.\n    /// @param signature The ECDSA signature, ERC-1271 payload, or WebAuthn assertion bytes.\n    /// @return True if the signature is valid for the current signer.\n    function _erc1271IsValidSignatureNowCalldata(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        override\n        returns (bool)\n    {\n        uint256 signerKind;\n        bytes32 passkeyX;\n        bytes32 passkeyY;\n        assembly {\n            signerKind := mload(_ERC1271_SIGNER_KIND_MEM_SLOT)\n            passkeyX := mload(_ERC1271_PASSKEY_X_MEM_SLOT)\n            passkeyY := mload(_ERC1271_PASSKEY_Y_MEM_SLOT)\n        }\n\n        if (signerKind == SESSION_SIGNER_KIND_P256) {\n            return PasskeySignerLib.verify(hash, passkeyX, passkeyY, signature);\n        }\n\n        return SignatureVerifierLib.isValidSignatureNow(_erc1271Signer(), hash, signature);\n    }\n\n    /*--------------------------------------------------------------\n                                 EIP712\n    --------------------------------------------------------------*/\n\n    /// @dev Returns the EIP-712 domain name and version for this wallet.\n    function _domainNameAndVersion()\n        internal\n        view\n        virtual\n        override\n        returns (string memory name, string memory version)\n    {\n        name = \"DepositWallet\";\n        version = \"1\";\n    }\n}\n"},"src/libraries/Ownable.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\nimport {EIP712} from \"@solady/src/utils/EIP712.sol\";\n\nimport {Errors} from \"@deposit-wallet/src/Errors.sol\";\nimport {Events} from \"@deposit-wallet/src/Events.sol\";\nimport {SignatureVerifierLib} from \"@deposit-wallet/src/libraries/SignatureVerifierLib.sol\";\n\n/// @title Ownable\n/// @author Polymarket\n/// @notice Two-step ownership management with EIP-712 signature-based handover.\n/// @dev Ownership transfers require the new owner to sign an `OwnershipHandover` EIP-712 message.\n///      This prevents accidental transfers to addresses that cannot interact with the wallet.\n///      Storage uses custom slots to avoid collisions in proxy-based deployments.\nabstract contract Ownable is EIP712, Errors, Events {\n    /*--------------------------------------------------------------\n                                 STATE\n    --------------------------------------------------------------*/\n\n    /// @dev Storage slot for the owner address. keccak256(\"DepositWallet.owner\") - 1\n    bytes32 internal constant _OWNER_SLOT = bytes32(uint256(keccak256(\"DepositWallet.owner\")) - 1);\n\n    /// @dev Storage slot for the pending owner address. keccak256(\"DepositWallet.pendingOwner\") - 1\n    bytes32 internal constant _PENDING_OWNER_SLOT =\n        bytes32(uint256(keccak256(\"DepositWallet.pendingOwner\")) - 1);\n\n    /// @dev Storage slot for the deadline by which the pending owner must complete the handover.\n    bytes32 internal constant _PENDING_OWNER_DEADLINE_SLOT =\n        bytes32(uint256(keccak256(\"DepositWallet.pendingOwnerDeadline\")) - 1);\n\n    /// @dev Storage slot for the per-handover replay nonce.\n    bytes32 internal constant _PENDING_OWNER_NONCE_SLOT =\n        bytes32(uint256(keccak256(\"DepositWallet.pendingOwnerNonce\")) - 1);\n\n    /// @dev EIP-712 typehash for the `OwnershipHandover` struct.\n    bytes32 private constant _OWNERSHIP_HANDOVER_TYPEHASH =\n        keccak256(\"OwnershipHandover(address newOwner,uint256 nonce)\");\n\n    /*--------------------------------------------------------------\n                                  VIEW\n    --------------------------------------------------------------*/\n\n    /// @notice Returns the current owner of the wallet.\n    /// @return result The owner address.\n    function owner() public view virtual returns (address result) {\n        bytes32 slot = _OWNER_SLOT;\n        assembly {\n            result := sload(slot)\n        }\n    }\n\n    /// @notice Returns the pending owner awaiting handover completion.\n    /// @return result The pending owner address, or `address(0)` if none.\n    function pendingOwner() public view virtual returns (address result) {\n        bytes32 slot = _PENDING_OWNER_SLOT;\n        assembly {\n            result := sload(slot)\n        }\n    }\n\n    /// @notice Returns the deadline by which the pending owner must complete the handover.\n    /// @return result The acceptance-deadline timestamp, or zero if no handover is pending.\n    function pendingOwnerDeadline() public view virtual returns (uint256 result) {\n        bytes32 slot = _PENDING_OWNER_DEADLINE_SLOT;\n        assembly {\n            result := sload(slot)\n        }\n    }\n\n    /// @notice Returns the per-handover nonce embedded in the EIP-712 signature.\n    /// @dev Increments on every `_transferOwnership` call. The pending owner must sign over the\n    ///      current value; any older value yields an invalid signature.\n    /// @return result The current handover nonce.\n    function pendingOwnerNonce() public view virtual returns (uint256 result) {\n        bytes32 slot = _PENDING_OWNER_NONCE_SLOT;\n        assembly {\n            result := sload(slot)\n        }\n    }\n\n    /*--------------------------------------------------------------\n                              INTERNAL\n    --------------------------------------------------------------*/\n\n    /// @notice Sets the initial owner of the wallet.\n    /// @dev Should only be called once during initialization.\n    /// @param _newOwner The address to set as the initial owner.\n    function _initializeOwner(address _newOwner) internal virtual {\n        require(_newOwner != address(0), InvalidOwner());\n\n        bytes32 slot = _OWNER_SLOT;\n\n        assembly {\n            sstore(slot, _newOwner)\n        }\n\n        emit OwnershipTransferred(address(0), _newOwner);\n    }\n\n    /// @notice Replaces the current owner with a new address.\n    /// @param _newOwner The address of the new owner.\n    function _setOwner(address _newOwner) internal virtual {\n        address oldOwner = owner();\n        bytes32 slot = _OWNER_SLOT;\n\n        assembly {\n            sstore(slot, _newOwner)\n        }\n\n        emit OwnershipTransferred(oldOwner, _newOwner);\n    }\n\n    /// @notice Stores a new pending owner address.\n    /// @param _pendingOwner The address to set as the pending owner.\n    function _setPendingOwner(address _pendingOwner) internal virtual {\n        bytes32 slot = _PENDING_OWNER_SLOT;\n\n        assembly {\n            sstore(slot, _pendingOwner)\n        }\n    }\n\n    /// @notice Stores the deadline by which the pending owner must complete the handover.\n    /// @param _deadline The deadline timestamp, or zero to clear.\n    function _setPendingOwnerDeadline(uint256 _deadline) internal virtual {\n        bytes32 slot = _PENDING_OWNER_DEADLINE_SLOT;\n\n        assembly {\n            sstore(slot, _deadline)\n        }\n    }\n\n    /// @notice Bumps the per-handover nonce by one.\n    /// @return next The post-increment nonce value embedded in the next signed digest.\n    function _incrementPendingOwnerNonce() internal virtual returns (uint256 next) {\n        bytes32 slot = _PENDING_OWNER_NONCE_SLOT;\n\n        assembly {\n            next := add(sload(slot), 1)\n            sstore(slot, next)\n        }\n    }\n\n    /// @notice Reverts if `msg.sender` is not the current owner.\n    function _checkOwner() internal view virtual {\n        require(msg.sender == owner(), Unauthorized());\n    }\n\n    /*--------------------------------------------------------------\n                           OWNERSHIP HANDOVER\n    --------------------------------------------------------------*/\n\n    /// @notice Initiates a two-step ownership transfer to `_newOwner`.\n    /// @dev Records the pending owner, stores the on-chain acceptance deadline, and bumps the\n    ///      per-handover nonce. The bump invalidates any previously issued handover signature.\n    ///      Emits {OwnershipHandoverRequested}.\n    /// @param _newOwner The proposed new owner (must be nonzero and distinct from the current\n    ///                  owner and this contract).\n    /// @param _deadline The timestamp by which the pending owner must complete the handover\n    ///                  (must be `>= block.timestamp`).\n    function _transferOwnership(address _newOwner, uint256 _deadline) internal virtual {\n        require(\n            _newOwner != address(0) && _newOwner != owner() && _newOwner != address(this),\n            InvalidOwner()\n        );\n        require(block.timestamp <= _deadline, Expired());\n\n        _setPendingOwner(_newOwner);\n        _setPendingOwnerDeadline(_deadline);\n        uint256 newNonce = _incrementPendingOwnerNonce();\n\n        emit OwnershipHandoverRequested(_newOwner, _deadline, newNonce);\n    }\n\n    /// @notice Cancels any pending ownership handover.\n    /// @dev Clears the pending owner and acceptance deadline. The handover nonce is intentionally\n    ///      not bumped here — replay safety is already provided by the bump on the next\n    ///      `_transferOwnership` call combined with the `pendingOwner != 0` gate.\n    function _cancelOwnershipHandover() internal virtual {\n        address pending = pendingOwner();\n\n        require(pending != address(0), NoPendingOwner());\n\n        _setPendingOwner(address(0));\n        _setPendingOwnerDeadline(0);\n\n        emit OwnershipHandoverCanceled(pending);\n    }\n\n    /// @notice Completes a two-step ownership handover using an EIP-712 signature from the\n    ///         pending owner.\n    /// @dev Validates that a handover is pending, the on-chain acceptance deadline has not\n    ///      elapsed, and the signature is valid for the pending owner (ECDSA or ERC-1271) over\n    ///      `OwnershipHandover(newOwner, nonce)` using the current nonce. On success, transfers\n    ///      ownership and clears the pending-owner state.\n    /// @param _signature The EIP-712 signature from the pending owner.\n    function _completeOwnershipHandover(bytes calldata _signature) internal virtual {\n        address pending = pendingOwner();\n\n        require(pending != address(0), NoPendingOwner());\n        require(block.timestamp <= pendingOwnerDeadline(), Expired());\n\n        bytes32 structHash =\n            keccak256(abi.encode(_OWNERSHIP_HANDOVER_TYPEHASH, pending, pendingOwnerNonce()));\n        bytes32 digest = _hashTypedData(structHash);\n\n        require(\n            SignatureVerifierLib.isValidSignatureNow(pending, digest, _signature),\n            InvalidSignature()\n        );\n\n        address previousOwner = owner();\n\n        _setPendingOwner(address(0));\n        _setPendingOwnerDeadline(0);\n        _setOwner(pending);\n\n        emit OwnershipHandoverCompleted(previousOwner, pending);\n    }\n}\n"},"src/DepositWalletBeacon.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity 0.8.34;\n\nimport {IDepositWallet} from \"@deposit-wallet/src/interfaces/IDepositWallet.sol\";\n\n/// @title DepositWalletBeacon\n/// @author Polymarket\n/// @notice Implementation pointer for every {DepositWallet} beacon proxy. Owner is expected to be\n///         a timelock.\n///\n/// @dev Note:\n/// - The implementation is intended to be used with ERC1967 beacon proxies.\n///   See: `LibClone.deployDeterministicERC1967BeaconProxy` and related functions.\n/// - For gas efficiency, the ownership functionality is baked into this contract.\n///\n/// @dev Lifted near-verbatim from Solady's UpgradeableBeacon at commit\n///      `acd959aa4bd04720d640bf4e6a5c71037510cc4b`\n///      (https://github.com/Vectorized/solady/blob/acd959aa4bd04720d640bf4e6a5c71037510cc4b/src/utils/UpgradeableBeacon.sol).\n/// Solady's storage slots, errors, events, assembly, and modifier are preserved unchanged\n///      so auditors can diff against upstream. Polymarket-specific deltas, all marked inline:\n///        1. {_setImplementation} runs Solady's verbatim assembly, then probes\n///           `walletInterfaceId()` on the candidate. A failed probe reverts the surrounding\n///           transaction, unwinding the SSTORE and the {Upgraded} log emitted by the assembly.\n///        2. {implementation} adds per-`msg.sender` dispatch — opted-out callers receive their\n///           pinned implementation; everyone else reads Solady's slot value.\n///        3. New {optOut} / {optIn} self-call entrypoints update `pinnedImplementation`.\n///        4. New {defaultImplementation} view exposes the slot value bypassing per-caller\n///           dispatch (for indexers and the timelock UI).\n///      The `pinnedImplementation` mapping lives at Solidity slot 0; Solady's `uint72` slot\n///      constants live in a disjoint namespace, so there is no collision.\ncontract DepositWalletBeacon {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The new implementation is not a deployed contract.\n    error NewImplementationHasNoCode();\n\n    /// @dev The caller is not authorized to perform the operation.\n    error Unauthorized();\n\n    /// @dev The `newOwner` cannot be the zero address.\n    error NewOwnerIsZeroAddress();\n\n    /// @dev Polymarket addition. The candidate implementation does not return the expected\n    ///      `walletInterfaceId()` magic.\n    error InvalidWalletInterfaceId();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Emitted when the proxy's implementation is upgraded.\n    event Upgraded(address indexed implementation);\n\n    /// @dev The ownership is transferred from `oldOwner` to `newOwner`.\n    /// This event is intentionally kept the same as OpenZeppelin's Ownable to be\n    /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),\n    /// despite it not being as lightweight as a single argument event.\n    event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n    /// @dev Polymarket addition. Emitted when a wallet opts out of beacon upgrades.\n    event OptedOut(address indexed wallet, address indexed pinnedImpl);\n\n    /// @dev Polymarket addition. Emitted when a wallet rejoins the upgrade cohort. The second\n    ///      indexed arg is the default implementation the wallet will follow on its next call.\n    event OptedIn(address indexed wallet, address indexed currentImpl);\n\n    /// @dev `keccak256(bytes(\"Upgraded(address)\"))`.\n    uint256 private constant _UPGRADED_EVENT_SIGNATURE =\n        0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b;\n\n    /// @dev `keccak256(bytes(\"OwnershipTransferred(address,address)\"))`.\n    uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =\n        0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The storage slot for the implementation address.\n    /// `uint72(bytes9(keccak256(\"_UPGRADEABLE_BEACON_IMPLEMENTATION_SLOT\")))`.\n    uint256 internal constant _UPGRADEABLE_BEACON_IMPLEMENTATION_SLOT = 0x911c5a209f08d5ec5e;\n\n    /// @dev The storage slot for the owner address.\n    /// `uint72(bytes9(keccak256(\"_UPGRADEABLE_BEACON_OWNER_SLOT\")))`.\n    uint256 internal constant _UPGRADEABLE_BEACON_OWNER_SLOT = 0x4343a0dc92ed22dbfc;\n\n    /// @dev Polymarket addition. Magic returned by every accepted implementation.\n    bytes32 public constant EXPECTED_WALLET_INTERFACE_ID = keccak256(\"Polymarket.DepositWallet\");\n\n    /// @dev Polymarket addition. Per-wallet pinned implementation. Zero = follow default.\n    ///      Lives at Solidity slot 0; disjoint from Solady's `uint72` slot constants.\n    mapping(address wallet => address pinnedImpl) public pinnedImplementation;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                        CONSTRUCTOR                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    constructor(address initialOwner, address initialImplementation) payable {\n        // We don't need to check if `initialOwner` is the zero address here,\n        // as some use cases may not want the beacon to be owned.\n        _setOwner(initialOwner);\n        _setImplementation(initialImplementation);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*               UPGRADEABLE BEACON OPERATIONS                */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Sets the implementation directly without authorization guard.\n    /// Polymarket modification: probe `walletInterfaceId()` after Solady's verbatim assembly.\n    /// The probe runs on the candidate address; a mismatch reverts and unwinds the SSTORE +\n    /// {Upgraded} log emitted by the assembly.\n    function _setImplementation(address newImplementation) internal virtual {\n        assembly (\"memory-safe\") {\n            newImplementation := shr(96, shl(96, newImplementation)) // Clean the upper 96 bits.\n            if iszero(extcodesize(newImplementation)) {\n                mstore(0x00, 0x6d3e283b) // `NewImplementationHasNoCode()`.\n                revert(0x1c, 0x04)\n            }\n            // Store the implementation.\n            sstore(_UPGRADEABLE_BEACON_IMPLEMENTATION_SLOT, newImplementation)\n            // Emit the {Upgraded} event.\n            log2(codesize(), 0x00, _UPGRADED_EVENT_SIGNATURE, newImplementation)\n        }\n        _checkWalletInterfaceId(newImplementation);\n    }\n\n    /// @dev Sets the owner directly without authorization guard.\n    function _setOwner(address newOwner) internal virtual {\n        assembly (\"memory-safe\") {\n            newOwner := shr(96, shl(96, newOwner)) // Clean the upper 96 bits.\n            let oldOwner := sload(_UPGRADEABLE_BEACON_OWNER_SLOT)\n            sstore(_UPGRADEABLE_BEACON_OWNER_SLOT, newOwner) // Store the owner.\n            // Emit the {OwnershipTransferred} event.\n            log3(codesize(), 0x00, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, oldOwner, newOwner)\n        }\n    }\n\n    /// @dev Returns the implementation stored in the beacon.\n    /// See: https://eips.ethereum.org/EIPS/eip-1967#beacon-contract-address\n    /// Polymarket modification: per-`msg.sender` dispatch — opted-out callers receive their\n    /// pinned implementation; everyone else reads Solady's slot value.\n    function implementation() public view returns (address result) {\n        address pinned = pinnedImplementation[msg.sender];\n        if (pinned != address(0)) return pinned;\n        assembly (\"memory-safe\") {\n            result := sload(_UPGRADEABLE_BEACON_IMPLEMENTATION_SLOT)\n        }\n    }\n\n    /// @dev Returns the owner of the beacon.\n    function owner() public view returns (address result) {\n        assembly (\"memory-safe\") {\n            result := sload(_UPGRADEABLE_BEACON_OWNER_SLOT)\n        }\n    }\n\n    /// @dev Allows the owner to upgrade the implementation.\n    function upgradeTo(address newImplementation) public virtual onlyOwner {\n        _setImplementation(newImplementation);\n    }\n\n    /// @dev Allows the owner to transfer the ownership to `newOwner`.\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        assembly (\"memory-safe\") {\n            if iszero(shl(96, newOwner)) {\n                mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n        }\n        _setOwner(newOwner);\n    }\n\n    /// @dev Allows the owner to renounce their ownership.\n    function renounceOwnership() public virtual onlyOwner {\n        _setOwner(address(0));\n    }\n\n    /// @dev Throws if the sender is not the owner.\n    function _checkOwner() internal view virtual {\n        assembly (\"memory-safe\") {\n            // If the caller is not the stored owner, revert.\n            if iszero(eq(caller(), sload(_UPGRADEABLE_BEACON_OWNER_SLOT))) {\n                mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         MODIFIERS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Marks a function as only callable by the owner.\n    modifier onlyOwner() virtual {\n        _checkOwner();\n        _;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    POLYMARKET ADDITIONS                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @notice Returns the default implementation, ignoring per-caller dispatch.\n    /// @dev Indexers and the timelock UI should read this rather than {implementation} to\n    ///      retrieve the global default regardless of the caller.\n    function defaultImplementation() public view returns (address result) {\n        assembly (\"memory-safe\") {\n            result := sload(_UPGRADEABLE_BEACON_IMPLEMENTATION_SLOT)\n        }\n    }\n\n    /// @notice Opts the calling wallet out of beacon upgrades.\n    /// @dev Snapshots the current default implementation into `pinnedImplementation[msg.sender]`.\n    ///      Subsequent calls from the wallet route to that snapshot regardless of further\n    ///      `upgradeTo` calls. NOT idempotent: if the default implementation has changed since\n    ///      the last `optOut`, calling again bumps the pin to the new default without requiring\n    ///      an intermediate `optIn`. This is intentional — it lets wallets adopt a newer version\n    ///      while staying opted out of automatic upgrades.\n    function optOut() external {\n        address current = defaultImplementation();\n        pinnedImplementation[msg.sender] = current;\n        emit OptedOut(msg.sender, current);\n    }\n\n    /// @notice Clears the calling wallet's pin and rejoins the upgrade cohort.\n    function optIn() external {\n        delete pinnedImplementation[msg.sender];\n        emit OptedIn(msg.sender, defaultImplementation());\n    }\n\n    /// @dev Reverts if `_implementation` does not return {EXPECTED_WALLET_INTERFACE_ID} from\n    ///      `walletInterfaceId()`. Also catches no-code addresses (staticcall to empty returns\n    ///      no data and fails the length check).\n    function _checkWalletInterfaceId(address _implementation) internal view {\n        (bool ok, bytes memory ret) = _implementation.staticcall(\n            abi.encodeWithSelector(IDepositWallet.walletInterfaceId.selector)\n        );\n        if (!(ok && ret.length == 32 && abi.decode(ret, (bytes32)) == EXPECTED_WALLET_INTERFACE_ID))\n        {\n            revert InvalidWalletInterfaceId();\n        }\n    }\n}\n"},"src/libraries/WalletLib.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\n/// @dev ERC-1271 magic value returned on successful signature validation.\n/// bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))\nbytes4 constant ERC1271_MAGIC_VALUE = 0x1626ba7e;\n\n/// @dev ERC-1271 value returned to signal an invalid signature.\nbytes4 constant ERC1271_INVALID_VALUE = 0xffffffff;\n\n/// @dev EIP-712 typehash for the `Call` struct.\nbytes32 constant CALL_TYPEHASH = keccak256(\"Call(address target,uint256 value,bytes data)\");\n\n/// @dev EIP-712 type name for the `Batch` struct, used in ERC-1271 nested signatures.\nstring constant BATCH_CONTENTS_NAME = \"Batch\";\n\n/// @dev EIP-712 type string for the `Batch` struct, including the nested `Call` type.\nstring constant BATCH_CONTENTS_TYPE =\n    \"Batch(address wallet,uint256 nonce,uint256 deadline,Call[] calls)Call(address target,uint256 value,bytes data)\";\n\n/// @dev EIP-712 typehash for the `Batch` struct.\nbytes32 constant BATCH_TYPEHASH = keccak256(bytes(BATCH_CONTENTS_TYPE));\n\n/// @notice A batch of calls to be executed by a DepositWallet.\n/// @dev Signed by the wallet owner or an authorized session signer using EIP-712.\nstruct Batch {\n    /// @dev The address of the wallet that will execute this batch.\n    address wallet;\n    /// @dev Replay-protection nonce; must equal the wallet's current nonce.\n    uint256 nonce;\n    /// @dev Timestamp after which the batch signature is no longer valid.\n    uint256 deadline;\n    /// @dev The ordered list of calls to execute.\n    Call[] calls;\n}\n\n/// @notice A single call within a batch.\nstruct Call {\n    /// @dev The target address to call.\n    address target;\n    /// @dev The ETH value to send with the call.\n    uint256 value;\n    /// @dev The calldata to send to the target.\n    bytes data;\n}\n\n/// @title WalletLib\n/// @author Polymarket\n/// @notice EIP-712 hashing utilities for `Batch` and `Call` structs.\nlibrary WalletLib {\n    /// @notice Computes the EIP-712 struct hash of a batch.\n    /// @param _batch The batch to hash.\n    /// @return The EIP-712 struct hash.\n    function hash(Batch memory _batch) internal pure returns (bytes32) {\n        return keccak256(\n            abi.encode(\n                BATCH_TYPEHASH, _batch.wallet, _batch.nonce, _batch.deadline, hash(_batch.calls)\n            )\n        );\n    }\n\n    /// @notice Computes the EIP-712 array hash of an array of calls.\n    /// @param _calls The calls to hash.\n    /// @return The keccak256 hash of the concatenated individual call hashes.\n    function hash(Call[] memory _calls) internal pure returns (bytes32) {\n        bytes32[] memory hashes = new bytes32[](_calls.length);\n        for (uint256 i; i < _calls.length; i++) {\n            hashes[i] = hash(_calls[i]);\n        }\n        return keccak256(abi.encodePacked(hashes));\n    }\n\n    /// @notice Computes the EIP-712 struct hash of a single call.\n    /// @param _call The call to hash.\n    /// @return The EIP-712 struct hash.\n    function hash(Call memory _call) internal pure returns (bytes32) {\n        return keccak256(\n            abi.encode(\n                CALL_TYPEHASH,\n                _call.target,\n                _call.value,\n                keccak256(_call.data) // bytes fields must be hashed\n            )\n        );\n    }\n}\n"},"src/DepositWalletFactory.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity 0.8.34;\n\nimport {OwnableRoles} from \"@solady/src/auth/OwnableRoles.sol\";\nimport {Initializable} from \"@solady/src/utils/Initializable.sol\";\nimport {LibClone} from \"@solady/src/utils/LibClone.sol\";\nimport {UUPSUpgradeable} from \"@solady/src/utils/UUPSUpgradeable.sol\";\n\nimport {Errors} from \"@deposit-wallet/src/Errors.sol\";\nimport {IDepositWallet, Batch} from \"@deposit-wallet/src/interfaces/IDepositWallet.sol\";\n\n/// @notice Minimal interface for resolving a beacon's current implementation.\ninterface IBeacon {\n    /// @notice Returns the implementation the beacon currently resolves to.\n    function implementation() external view returns (address);\n}\n\n/// @title DepositWalletFactoryErrors\n/// @author Polymarket\n/// @notice Custom errors for {DepositWalletFactory}.\nabstract contract DepositWalletFactoryErrors {\n    /// @notice Thrown when the caller does not have the admin role.\n    error OnlyAdmin();\n\n    /// @notice Thrown when the caller does not have the operator role.\n    error OnlyOperator();\n\n    /// @notice Thrown when the caller does not have the legacy-deployer role.\n    error OnlyLegacyDeployer();\n\n    /// @notice Thrown when paired input arrays have mismatched lengths.\n    error ArrayLengthMismatch();\n\n    /// @notice Thrown when an implementation has not been authorized.\n    /// @dev Deprecated post-migration; only thrown by the legacy {setImplementation} surface.\n    error ImplementationNotAuthorized();\n\n    /// @notice Thrown when the provided timelock delay is zero or exceeds the maximum.\n    error InvalidTimelockDelay();\n\n    /// @notice Thrown when a deploy target (the beacon, its resolved implementation, or the\n    ///         legacy implementation) has no code.\n    /// @dev Fail-closed guard: deploying a proxy whose implementation/beacon is code-less would\n    ///      let `initialize` silently succeed as a delegatecall to an empty account, minting an\n    ///      ownerless wallet that anyone could later seize.\n    error ImplementationNotDeployed();\n}\n\n/// @title DepositWalletFactoryEvents\n/// @author Polymarket\n/// @notice Events emitted by {DepositWalletFactory}.\nabstract contract DepositWalletFactoryEvents {\n    /// @notice Emitted when a wallet implementation is added to the authorized set.\n    /// @dev Deprecated post-migration; only emitted while the legacy upgrade surface is in use\n    ///      (e.g., authorizing {BeaconForwarder}).\n    /// @param implementation The address of the authorized implementation.\n    event ImplementationAuthorized(address indexed implementation);\n\n    /// @notice Emitted when the default wallet implementation is updated.\n    /// @dev Deprecated; the legacy slot-0 `implementation` pointer is no longer consulted by\n    ///      {DepositWalletFactory.deploy}.\n    /// @param Implementation The address of the new default implementation.\n    event ImplementationSet(address Implementation);\n\n    /// @notice Emitted when a wallet implementation is removed from the authorized set.\n    /// @dev Deprecated post-migration; only emitted while the legacy upgrade surface is in use.\n    /// @param implementation The address of the unauthorized implementation.\n    event ImplementationUnauthorized(address indexed implementation);\n\n    /// @notice Emitted when the timelock delay is updated.\n    /// @param timelockDelay The new timelock delay in seconds.\n    event TimelockDelaySet(uint256 timelockDelay);\n\n    /// @notice Emitted when a new deposit wallet is deployed.\n    /// @param wallet The address of the newly deployed wallet proxy.\n    /// @param owner The initial owner of the wallet.\n    /// @param id The unique identifier assigned to the wallet.\n    /// @param implementation The address embedded in the proxy: the beacon for beacon-shape\n    ///                       wallets, or the legacy implementation for legacy-shape wallets.\n    event WalletDeployed(\n        address indexed wallet, address indexed owner, bytes32 indexed id, address implementation\n    );\n}\n\n/// @title DepositWalletFactory\n/// @author Polymarket\n/// @notice Factory contract for deploying and managing DepositWallets. Deploys ERC-1967\n///         beacon proxies going forward, and can also deploy legacy ERC-1967 (UUPS-shaped)\n///         wallets at the exact deterministic addresses the pre-beacon factory used.\n/// @dev Uses a four-tier role model:\n///      - **Owner**: can add/remove admins, manage implementations, and authorize UUPS upgrades\n///                   of the factory itself.\n///      - **Admin** (ROLE_0): can add/remove operators and legacy deployers, and configure the\n///                   timelock delay.\n///      - **Operator** (ROLE_1): can deploy beacon-shape wallets and proxy batch executions.\n///      - **Legacy deployer** (ROLE_2): can deploy legacy-shape wallets via {deployLegacy}.\n///\n///      Two deploy paths, fed identical `args`/`salt`:\n///      - {deploy} produces an ERC-1967 beacon proxy bound to {BEACON}.\n///      - {deployLegacy} produces a plain ERC-1967 proxy embedding {LEGACY_IMPL}. This reproduces\n///        the exact addresses the pre-beacon factory derived, because the address depends only on\n///        (this factory's address, the embedded implementation, the Solady proxy template, the\n///        id) — never on this factory's own bytecode. It exists for ids whose legacy address has\n///        already been handed out, and for cross-chain recovery: deployed at the canonical\n///        factory address on another chain, it mints a wallet at the identical address a user's\n///        Polygon deposit wallet occupies.\n///\n///      Both paths fail closed: they revert unless the embedded implementation/beacon already\n///      holds code, so a misordered rollout cannot mint ownerless, seizable wallets.\n///\n///      Storage slots 0/1/2 (`implementation`, `timelockDelay`, `authorizedImplementation`) are\n///      preserved from prior versions so this contract can be installed as a UUPS upgrade on the\n///      live factory proxy without corrupting state.\ncontract DepositWalletFactory is\n    OwnableRoles,\n    Initializable,\n    UUPSUpgradeable,\n    DepositWalletFactoryErrors,\n    DepositWalletFactoryEvents\n{\n    /*--------------------------------------------------------------\n                                 STATE\n    --------------------------------------------------------------*/\n\n    /// @notice Legacy default wallet implementation pointer.\n    /// @dev Deprecated; not consulted by {deploy} or {deployLegacy}. Retained only to preserve\n    ///      slot 0 of the live factory proxy so this contract can be installed via UUPS upgrade\n    ///      in place.\n    address public implementation;\n\n    /// @notice The delay in seconds that must elapse after pausing before the owner can\n    ///         execute paused-only operations on a wallet.\n    uint256 public timelockDelay;\n\n    /// @notice Tracks which implementation addresses are authorized for legacy UUPS upgrades.\n    /// @dev Legacy-shape wallets gate their `upgrade` self-call on this mapping. Used during the\n    ///      migration window to authorize {BeaconForwarder} so existing UUPS wallets can opt into\n    ///      the beacon. Will be deprecated after the migration window closes.\n    mapping(address => bool) public authorizedImplementation;\n\n    /*--------------------------------------------------------------\n                              CONSTANTS\n    --------------------------------------------------------------*/\n\n    /// @notice The maximum allowed timelock delay (7 days).\n    uint256 public constant MAX_TIMELOCK_DELAY = 7 days;\n\n    /*--------------------------------------------------------------\n                              IMMUTABLES\n    --------------------------------------------------------------*/\n\n    /// @notice The beacon that resolves the implementation for beacon-shape wallets.\n    address public immutable BEACON;\n\n    /// @notice The implementation embedded in legacy-shape (ERC-1967, UUPS) wallets.\n    /// @dev Set to the live legacy DepositWallet implementation so {deployLegacy} reproduces the\n    ///      exact wallet addresses the pre-beacon factory deployed.\n    address public immutable LEGACY_IMPL;\n\n    /*--------------------------------------------------------------\n                              CONSTRUCTOR\n    --------------------------------------------------------------*/\n\n    /// @dev Sets the beacon and legacy implementation, then disables initializers on the\n    ///      implementation contract.\n    /// @param _beacon The beacon contract address for beacon-shape wallets.\n    /// @param _legacyImpl The legacy implementation address embedded in legacy-shape wallets.\n    constructor(address _beacon, address _legacyImpl) {\n        require(_beacon != address(0), Errors.ZeroAddress());\n        require(_legacyImpl != address(0), Errors.ZeroAddress());\n        BEACON = _beacon;\n        LEGACY_IMPL = _legacyImpl;\n        _disableInitializers();\n    }\n\n    /*--------------------------------------------------------------\n                              INITIALIZER\n    --------------------------------------------------------------*/\n\n    /// @notice Initializes the factory with an owner, admin, and timelock delay.\n    /// @param _owner The address to set as the factory owner.\n    /// @param _admin The address to grant the initial admin role.\n    /// @param _timelockDelay The initial timelock delay in seconds.\n    function initialize(address _owner, address _admin, uint256 _timelockDelay)\n        external\n        initializer\n    {\n        require(_owner != address(0), Errors.ZeroAddress());\n        require(_admin != address(0), Errors.ZeroAddress());\n        _initializeOwner(_owner);\n        _setRoles(_admin, _ROLE_0);\n        _setTimelockDelay(_timelockDelay);\n    }\n\n    /*--------------------------------------------------------------\n                               MODIFIERS\n    --------------------------------------------------------------*/\n\n    /// @dev Restricts access to addresses with the admin role (ROLE_0).\n    modifier onlyAdmin() {\n        require(hasAnyRole(msg.sender, _ROLE_0), OnlyAdmin());\n        _;\n    }\n\n    /// @dev Restricts access to addresses with the operator role (ROLE_1).\n    modifier onlyOperator() {\n        require(hasAnyRole(msg.sender, _ROLE_1), OnlyOperator());\n        _;\n    }\n\n    /// @dev Restricts access to addresses with the legacy-deployer role (ROLE_2).\n    modifier onlyLegacyDeployer() {\n        require(hasAnyRole(msg.sender, _ROLE_2), OnlyLegacyDeployer());\n        _;\n    }\n\n    /*--------------------------------------------------------------\n                                  VIEW\n    --------------------------------------------------------------*/\n\n    /// @notice Returns whether the given address has the admin role.\n    /// @param _admin The address to check.\n    /// @return True if the address is an admin.\n    function isAdmin(address _admin) external view returns (bool) {\n        return hasAnyRole(_admin, _ROLE_0);\n    }\n\n    /// @notice Returns whether the given address has the operator role.\n    /// @param _operator The address to check.\n    /// @return True if the address is an operator.\n    function isOperator(address _operator) external view returns (bool) {\n        return hasAnyRole(_operator, _ROLE_1);\n    }\n\n    /// @notice Returns whether the given address has the legacy-deployer role.\n    /// @param _legacyDeployer The address to check.\n    /// @return True if the address is a legacy deployer.\n    function isLegacyDeployer(address _legacyDeployer) external view returns (bool) {\n        return hasAnyRole(_legacyDeployer, _ROLE_2);\n    }\n\n    /// @notice Predicts the deterministic address of a wallet before deployment.\n    /// @dev Deprecated; retained for ABI compatibility. The first argument is ignored — wallets\n    ///      are now beacon proxies bound to {BEACON}. Prefer {predictWalletAddress(bytes32)}.\n    /// @param _id The unique identifier for the wallet.\n    /// @return The predicted wallet proxy address.\n    function predictWalletAddress(address, bytes32 _id) external view returns (address) {\n        return _predictWalletAddress(_id);\n    }\n\n    /// @notice Predicts the deterministic address of a beacon-proxy wallet before deployment.\n    /// @dev This returns the address derived from the beacon-proxy template. For the address of a\n    ///      legacy-shape (ERC-1967, UUPS) wallet, use {predictLegacyWalletAddress} — the two\n    ///      shapes live at different deterministic addresses because the proxy bytecode (and\n    ///      therefore the CREATE2 derivation) differs.\n    /// @param _id The unique identifier for the wallet.\n    /// @return The predicted beacon-proxy wallet address.\n    function predictWalletAddress(bytes32 _id) external view returns (address) {\n        return _predictWalletAddress(_id);\n    }\n\n    /// @notice Predicts the deterministic address of a legacy-shape (ERC-1967) wallet before\n    ///         deployment.\n    /// @dev This matches the address the pre-beacon factory assigned to a wallet with the same\n    ///      `_id` — including, on other chains, the address of the user's Polygon wallet —\n    ///      enabling cross-chain recovery at the identical address.\n    /// @param _id The unique identifier for the wallet.\n    /// @return The predicted legacy wallet address.\n    function predictLegacyWalletAddress(bytes32 _id) external view returns (address) {\n        bytes memory args = abi.encode(address(this), _id);\n\n        return LibClone.predictDeterministicAddressERC1967(\n            LEGACY_IMPL, args, keccak256(args), address(this)\n        );\n    }\n\n    /*--------------------------------------------------------------\n                             ONLY OPERATOR\n    --------------------------------------------------------------*/\n\n    /// @notice Deploys one or more beacon-shape deposit wallets with deterministic addresses.\n    /// @dev It is the operator's responsibility to ensure that each `_id` is unique.\n    ///      Duplicate IDs will cause the deployment to revert because the deterministic\n    ///      address is already occupied. Note: beacon-shape and legacy-shape wallets for the\n    ///      same `_id` live at DIFFERENT addresses (different proxy template), so they never\n    ///      collide; the operator must dedupe IDs across both shapes off-chain.\n    /// @param _owners The initial owner addresses for each wallet.\n    /// @param _ids The unique identifiers for each wallet.\n    function deploy(address[] calldata _owners, bytes32[] calldata _ids) external onlyOperator {\n        require(_owners.length == _ids.length, ArrayLengthMismatch());\n\n        // Fail closed: require both the beacon AND its resolved implementation to hold code.\n        // A beacon-proxy delegatecalls the beacon's resolved implementation, so checking only the\n        // beacon address would let a beacon resolving to a code-less implementation slip through,\n        // turning `initialize` into a silent no-op delegatecall and minting an ownerless wallet.\n        require(BEACON.code.length != 0, ImplementationNotDeployed());\n        require(IBeacon(BEACON).implementation().code.length != 0, ImplementationNotDeployed());\n\n        for (uint256 i; i < _owners.length; ++i) {\n            bytes memory args = abi.encode(address(this), _ids[i]);\n\n            address wallet =\n                LibClone.deployDeterministicERC1967BeaconProxy(BEACON, args, keccak256(args));\n\n            IDepositWallet(wallet).initialize(_owners[i]);\n\n            emit WalletDeployed(wallet, _owners[i], _ids[i], BEACON);\n        }\n    }\n\n    /// @notice Proxies batch execution to one or more wallets.\n    /// @dev Each batch is forwarded to its target wallet's `execute` function. Works for both\n    ///      wallet shapes (the `Batch` layout is identical across the legacy and current\n    ///      implementations).\n    /// @param _batches The batches to execute.\n    /// @param _signatures The corresponding signatures for each batch.\n    function proxy(Batch[] calldata _batches, bytes[] calldata _signatures) external onlyOperator {\n        require(_batches.length == _signatures.length, ArrayLengthMismatch());\n        for (uint256 i; i < _batches.length; ++i) {\n            IDepositWallet(_batches[i].wallet).execute(_batches[i], _signatures[i]);\n        }\n    }\n\n    /*--------------------------------------------------------------\n                          ONLY LEGACY DEPLOYER\n    --------------------------------------------------------------*/\n\n    /// @notice Deploys one or more legacy-shape (ERC-1967, UUPS) deposit wallets with\n    ///         deterministic addresses that match the pre-beacon factory's derivation.\n    /// @dev Restricted to the legacy-deployer role (ROLE_2), granted independently of the\n    ///      operator role. Used for ids whose legacy address has already been handed out, and for\n    ///      cross-chain recovery: a wallet deployed here lands at the same address the user's\n    ///      Polygon deposit wallet occupies. The resulting wallet runs {LEGACY_IMPL} (the V1\n    ///      implementation). See {deploy} for the ID-uniqueness and cross-shape notes.\n    /// @param _owners The initial owner addresses for each wallet.\n    /// @param _ids The unique identifiers for each wallet.\n    function deployLegacy(address[] calldata _owners, bytes32[] calldata _ids)\n        external\n        onlyLegacyDeployer\n    {\n        require(_owners.length == _ids.length, ArrayLengthMismatch());\n\n        // Fail closed: a code-less legacy implementation would mint ownerless wallets.\n        require(LEGACY_IMPL.code.length != 0, ImplementationNotDeployed());\n\n        for (uint256 i; i < _owners.length; ++i) {\n            bytes memory args = abi.encode(address(this), _ids[i]);\n\n            address wallet = LibClone.deployDeterministicERC1967(LEGACY_IMPL, args, keccak256(args));\n\n            IDepositWallet(wallet).initialize(_owners[i]);\n\n            emit WalletDeployed(wallet, _owners[i], _ids[i], LEGACY_IMPL);\n        }\n    }\n\n    /*--------------------------------------------------------------\n                               ONLY ADMIN\n    --------------------------------------------------------------*/\n\n    /// @notice Grants the operator role to an address.\n    /// @param _operator The address to grant the operator role.\n    function addOperator(address _operator) external onlyAdmin {\n        _grantRoles(_operator, _ROLE_1);\n    }\n\n    /// @notice Removes the operator role from an address.\n    /// @param _operator The address to remove the operator role from.\n    function removeOperator(address _operator) external onlyAdmin {\n        _removeRoles(_operator, _ROLE_1);\n    }\n\n    /// @notice Grants the legacy-deployer role to an address.\n    /// @param _legacyDeployer The address to grant the legacy-deployer role.\n    function addLegacyDeployer(address _legacyDeployer) external onlyAdmin {\n        _grantRoles(_legacyDeployer, _ROLE_2);\n    }\n\n    /// @notice Removes the legacy-deployer role from an address.\n    /// @param _legacyDeployer The address to remove the legacy-deployer role from.\n    function removeLegacyDeployer(address _legacyDeployer) external onlyAdmin {\n        _removeRoles(_legacyDeployer, _ROLE_2);\n    }\n\n    /// @notice Sets the timelock delay for paused wallet operations.\n    /// @param _timelockDelay The new timelock delay in seconds.\n    function setTimelockDelay(uint256 _timelockDelay) external onlyAdmin {\n        _setTimelockDelay(_timelockDelay);\n    }\n\n    /*--------------------------------------------------------------\n                               ONLY OWNER\n    --------------------------------------------------------------*/\n\n    /// @notice Grants the admin role to an address.\n    /// @param _admin The address to grant the admin role.\n    function addAdmin(address _admin) external onlyOwner {\n        _grantRoles(_admin, _ROLE_0);\n    }\n\n    /// @notice Removes the admin role from an address.\n    /// @param _admin The address to remove the admin role from.\n    function removeAdmin(address _admin) external onlyOwner {\n        _removeRoles(_admin, _ROLE_0);\n    }\n\n    /// @notice Sets the legacy slot-0 implementation pointer.\n    /// @dev Deprecated; retained for ABI compatibility. Has no effect on {deploy} (which uses\n    ///      {BEACON}) or {deployLegacy} (which uses {LEGACY_IMPL}).\n    /// @param _implementation The new default implementation address.\n    function setImplementation(address _implementation) external onlyOwner {\n        _setImplementation(_implementation);\n    }\n\n    /// @notice Authorizes an implementation address for legacy UUPS upgrades.\n    /// @dev Used during the migration window to authorize {BeaconForwarder}; will be deprecated\n    ///      after the migration window closes.\n    /// @param _implementation The implementation address to authorize.\n    function authorizeImplementation(address _implementation) external onlyOwner {\n        require(_implementation != address(0), Errors.ZeroAddress());\n        authorizedImplementation[_implementation] = true;\n\n        emit ImplementationAuthorized(_implementation);\n    }\n\n    /// @notice Removes an implementation address from the authorized set.\n    /// @dev Used during the migration window; will be deprecated after the window closes.\n    /// @param _implementation The implementation address to unauthorize.\n    function unauthorizeImplementation(address _implementation) external onlyOwner {\n        authorizedImplementation[_implementation] = false;\n\n        emit ImplementationUnauthorized(_implementation);\n    }\n\n    /*--------------------------------------------------------------\n                               INTERNAL\n    --------------------------------------------------------------*/\n\n    /// @dev Authorizes UUPS upgrades of the factory. Restricted to the owner.\n    function _authorizeUpgrade(address) internal override onlyOwner {}\n\n    /// @notice Writes the legacy slot-0 implementation pointer.\n    /// @dev Deprecated; retained for ABI compatibility. Slot 0 is no longer consulted by\n    ///      {deploy}.\n    /// @param _implementation The new default implementation address (must be authorized).\n    function _setImplementation(address _implementation) internal {\n        require(authorizedImplementation[_implementation], ImplementationNotAuthorized());\n        implementation = _implementation;\n\n        emit ImplementationSet(_implementation);\n    }\n\n    /// @notice Sets the timelock delay for paused wallet operations.\n    /// @param _timelockDelay The new timelock delay in seconds.\n    function _setTimelockDelay(uint256 _timelockDelay) internal {\n        require(_timelockDelay > 0 && _timelockDelay <= MAX_TIMELOCK_DELAY, InvalidTimelockDelay());\n        timelockDelay = _timelockDelay;\n\n        emit TimelockDelaySet(_timelockDelay);\n    }\n\n    /// @notice Computes the deterministic address of a wallet bound to {BEACON}.\n    /// @param _id The unique identifier for the wallet.\n    /// @return The predicted wallet proxy address.\n    function _predictWalletAddress(bytes32 _id) internal view returns (address) {\n        bytes memory args = abi.encode(address(this), _id);\n\n        return LibClone.predictDeterministicAddressERC1967BeaconProxy(\n            BEACON, args, keccak256(args), address(this)\n        );\n    }\n}\n"},"lib/solady/src/utils/ECDSA.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Gas optimized ECDSA wrapper.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/ECDSA.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/ECDSA.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/ECDSA.sol)\n///\n/// @dev Note:\n/// - The recovery functions use the ecrecover precompile (0x1).\n/// - As of Solady version 0.0.68, the `recover` variants will revert upon recovery failure.\n///   This is for more safety by default.\n///   Use the `tryRecover` variants if you need to get the zero address back\n///   upon recovery failure instead.\n/// - As of Solady version 0.0.134, all `bytes signature` variants accept both\n///   regular 65-byte `(r, s, v)` and EIP-2098 `(r, vs)` short form signatures.\n///   See: https://eips.ethereum.org/EIPS/eip-2098\n///   This is for calldata efficiency on smart accounts prevalent on L2s.\n///\n/// WARNING! Do NOT directly use signatures as unique identifiers:\n/// - The recovery operations do NOT check if a signature is non-malleable.\n/// - Use a nonce in the digest to prevent replay attacks on the same contract.\n/// - Use EIP-712 for the digest to prevent replay attacks across different chains and contracts.\n///   EIP-712 also enables readable signing of typed data for better user safety.\n/// - If you need a unique hash from a signature, please use the `canonicalHash` functions.\nlibrary ECDSA {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The order of the secp256k1 elliptic curve.\n    uint256 internal constant N = 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141;\n\n    /// @dev `N/2 + 1`. Used for checking the malleability of the signature.\n    uint256 private constant _HALF_N_PLUS_1 =\n        0x7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a1;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                        CUSTOM ERRORS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The signature is invalid.\n    error InvalidSignature();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    RECOVERY OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n    function recover(bytes32 hash, bytes memory signature) internal view returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let m := mload(0x40) } 1 {\n                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n                revert(0x1c, 0x04)\n            } {\n                switch mload(signature)\n                case 64 {\n                    let vs := mload(add(signature, 0x40))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                    mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                }\n                default { continue }\n                mstore(0x00, hash)\n                mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                mstore(0x60, 0) // Restore the zero slot.\n                mstore(0x40, m) // Restore the free memory pointer.\n                // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n                if returndatasize() { break }\n            }\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n    function recoverCalldata(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let m := mload(0x40) } 1 {\n                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n                revert(0x1c, 0x04)\n            } {\n                switch signature.length\n                case 64 {\n                    let vs := calldataload(add(signature.offset, 0x20))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x40, calldataload(signature.offset)) // `r`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n                    calldatacopy(0x40, signature.offset, 0x40) // Copy `r` and `s`.\n                }\n                default { continue }\n                mstore(0x00, hash)\n                result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                mstore(0x60, 0) // Restore the zero slot.\n                mstore(0x40, m) // Restore the free memory pointer.\n                // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n                if returndatasize() { break }\n            }\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`,\n    /// and the EIP-2098 short form signature defined by `r` and `vs`.\n    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal view returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, hash)\n            mstore(0x20, add(shr(255, vs), 27)) // `v`.\n            mstore(0x40, r)\n            mstore(0x60, shr(1, shl(1, vs))) // `s`.\n            result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n            if iszero(returndatasize()) {\n                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x60, 0) // Restore the zero slot.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`,\n    /// and the signature defined by `v`, `r`, `s`.\n    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, hash)\n            mstore(0x20, and(v, 0xff))\n            mstore(0x40, r)\n            mstore(0x60, s)\n            result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n            if iszero(returndatasize()) {\n                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x60, 0) // Restore the zero slot.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   TRY-RECOVER OPERATIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // WARNING!\n    // These functions will NOT revert upon recovery failure.\n    // Instead, they will return the zero address upon recovery failure.\n    // It is critical that the returned address is NEVER compared against\n    // a zero address (e.g. an uninitialized address variable).\n\n    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n    function tryRecover(bytes32 hash, bytes memory signature)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let m := mload(0x40) } 1 {} {\n                switch mload(signature)\n                case 64 {\n                    let vs := mload(add(signature, 0x40))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                    mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                }\n                default { break }\n                mstore(0x00, hash)\n                mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n                mstore(0x60, 0) // Restore the zero slot.\n                // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n                result := mload(xor(0x60, returndatasize()))\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n    function tryRecoverCalldata(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let m := mload(0x40) } 1 {} {\n                switch signature.length\n                case 64 {\n                    let vs := calldataload(add(signature.offset, 0x20))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x40, calldataload(signature.offset)) // `r`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n                    calldatacopy(0x40, signature.offset, 0x40) // Copy `r` and `s`.\n                }\n                default { break }\n                mstore(0x00, hash)\n                pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n                mstore(0x60, 0) // Restore the zero slot.\n                // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n                result := mload(xor(0x60, returndatasize()))\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`,\n    /// and the EIP-2098 short form signature defined by `r` and `vs`.\n    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, hash)\n            mstore(0x20, add(shr(255, vs), 27)) // `v`.\n            mstore(0x40, r)\n            mstore(0x60, shr(1, shl(1, vs))) // `s`.\n            pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n            mstore(0x60, 0) // Restore the zero slot.\n            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n            result := mload(xor(0x60, returndatasize()))\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`,\n    /// and the signature defined by `v`, `r`, `s`.\n    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, hash)\n            mstore(0x20, and(v, 0xff))\n            mstore(0x40, r)\n            mstore(0x60, s)\n            pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n            mstore(0x60, 0) // Restore the zero slot.\n            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n            result := mload(xor(0x60, returndatasize()))\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     HASHING OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns an Ethereum Signed Message, created from a `hash`.\n    /// This produces a hash corresponding to the one signed with the\n    /// [`eth_sign`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign)\n    /// JSON-RPC method as part of EIP-191.\n    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x20, hash) // Store into scratch space for keccak256.\n            mstore(0x00, \"\\x00\\x00\\x00\\x00\\x19Ethereum Signed Message:\\n32\") // 28 bytes.\n            result := keccak256(0x04, 0x3c) // `32 * 2 - (32 - 28) = 60 = 0x3c`.\n        }\n    }\n\n    /// @dev Returns an Ethereum Signed Message, created from `s`.\n    /// This produces a hash corresponding to the one signed with the\n    /// [`eth_sign`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign)\n    /// JSON-RPC method as part of EIP-191.\n    /// Note: Supports lengths of `s` up to 999999 bytes.\n    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let sLength := mload(s)\n            let o := 0x20\n            mstore(o, \"\\x19Ethereum Signed Message:\\n\") // 26 bytes, zero-right-padded.\n            mstore(0x00, 0x00)\n            // Convert the `s.length` to ASCII decimal representation: `base10(s.length)`.\n            for { let temp := sLength } 1 {} {\n                o := sub(o, 1)\n                mstore8(o, add(48, mod(temp, 10)))\n                temp := div(temp, 10)\n                if iszero(temp) { break }\n            }\n            let n := sub(0x3a, o) // Header length: `26 + 32 - o`.\n            // Throw an out-of-offset error (consumes all gas) if the header exceeds 32 bytes.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0x20))\n            mstore(s, or(mload(0x00), mload(n))) // Temporarily store the header.\n            result := keccak256(add(s, sub(0x20, n)), add(n, sLength))\n            mstore(s, sLength) // Restore the length.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  CANONICAL HASH FUNCTIONS                  */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // The following functions return the hash of the signature in its canonicalized format,\n    // which is the 65-byte `abi.encodePacked(r, s, uint8(v))`, where `v` is either 27 or 28.\n    // If `s` is greater than `N / 2` then it will be converted to `N - s`\n    // and the `v` value will be flipped.\n    // If the signature has an invalid length, or if `v` is invalid,\n    // a uniquely corrupt hash will be returned.\n    // These functions are useful for \"poor-mans-VRF\".\n\n    /// @dev Returns the canonical hash of `signature`.\n    function canonicalHash(bytes memory signature) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let l := mload(signature)\n            for {} 1 {} {\n                mstore(0x00, mload(add(signature, 0x20))) // `r`.\n                let s := mload(add(signature, 0x40))\n                let v := mload(add(signature, 0x41))\n                if eq(l, 64) {\n                    v := add(shr(255, s), 27)\n                    s := shr(1, shl(1, s))\n                }\n                if iszero(lt(s, _HALF_N_PLUS_1)) {\n                    v := xor(v, 7)\n                    s := sub(N, s)\n                }\n                mstore(0x21, v)\n                mstore(0x20, s)\n                result := keccak256(0x00, 0x41)\n                mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n                break\n            }\n\n            // If the length is neither 64 nor 65, return a uniquely corrupted hash.\n            if iszero(lt(sub(l, 64), 2)) {\n                // `bytes4(keccak256(\"InvalidSignatureLength\"))`.\n                result := xor(keccak256(add(signature, 0x20), l), 0xd62f1ab2)\n            }\n        }\n    }\n\n    /// @dev Returns the canonical hash of `signature`.\n    function canonicalHashCalldata(bytes calldata signature)\n        internal\n        pure\n        returns (bytes32 result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for {} 1 {} {\n                mstore(0x00, calldataload(signature.offset)) // `r`.\n                let s := calldataload(add(signature.offset, 0x20))\n                let v := calldataload(add(signature.offset, 0x21))\n                if eq(signature.length, 64) {\n                    v := add(shr(255, s), 27)\n                    s := shr(1, shl(1, s))\n                }\n                if iszero(lt(s, _HALF_N_PLUS_1)) {\n                    v := xor(v, 7)\n                    s := sub(N, s)\n                }\n                mstore(0x21, v)\n                mstore(0x20, s)\n                result := keccak256(0x00, 0x41)\n                mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n                break\n            }\n            // If the length is neither 64 nor 65, return a uniquely corrupted hash.\n            if iszero(lt(sub(signature.length, 64), 2)) {\n                calldatacopy(mload(0x40), signature.offset, signature.length)\n                // `bytes4(keccak256(\"InvalidSignatureLength\"))`.\n                result := xor(keccak256(mload(0x40), signature.length), 0xd62f1ab2)\n            }\n        }\n    }\n\n    /// @dev Returns the canonical hash of `signature`.\n    function canonicalHash(bytes32 r, bytes32 vs) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, r) // `r`.\n            let v := add(shr(255, vs), 27)\n            let s := shr(1, shl(1, vs))\n            mstore(0x21, v)\n            mstore(0x20, s)\n            result := keccak256(0x00, 0x41)\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the canonical hash of `signature`.\n    function canonicalHash(uint8 v, bytes32 r, bytes32 s) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, r) // `r`.\n            if iszero(lt(s, _HALF_N_PLUS_1)) {\n                v := xor(v, 7)\n                s := sub(N, s)\n            }\n            mstore(0x21, v)\n            mstore(0x20, s)\n            result := keccak256(0x00, 0x41)\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   EMPTY CALLDATA HELPERS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns an empty calldata bytes.\n    function emptySignature() internal pure returns (bytes calldata signature) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            signature.length := 0\n        }\n    }\n}\n"},"lib/solady/src/auth/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Simple single owner authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)\n///\n/// @dev Note:\n/// This implementation does NOT auto-initialize the owner to `msg.sender`.\n/// You MUST call the `_initializeOwner` in the constructor / initializer.\n///\n/// While the ownable portion follows\n/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,\n/// the nomenclature for the 2-step ownership handover may be unique to this codebase.\nabstract contract Ownable {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The caller is not authorized to call the function.\n    error Unauthorized();\n\n    /// @dev The `newOwner` cannot be the zero address.\n    error NewOwnerIsZeroAddress();\n\n    /// @dev The `pendingOwner` does not have a valid handover request.\n    error NoHandoverRequest();\n\n    /// @dev Cannot double-initialize.\n    error AlreadyInitialized();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The ownership is transferred from `oldOwner` to `newOwner`.\n    /// This event is intentionally kept the same as OpenZeppelin's Ownable to be\n    /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),\n    /// despite it not being as lightweight as a single argument event.\n    event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n    /// @dev An ownership handover to `pendingOwner` has been requested.\n    event OwnershipHandoverRequested(address indexed pendingOwner);\n\n    /// @dev The ownership handover to `pendingOwner` has been canceled.\n    event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n    /// @dev `keccak256(bytes(\"OwnershipTransferred(address,address)\"))`.\n    uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =\n        0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;\n\n    /// @dev `keccak256(bytes(\"OwnershipHandoverRequested(address)\"))`.\n    uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE =\n        0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d;\n\n    /// @dev `keccak256(bytes(\"OwnershipHandoverCanceled(address)\"))`.\n    uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE =\n        0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The owner slot is given by:\n    /// `bytes32(~uint256(uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))))`.\n    /// It is intentionally chosen to be a high value\n    /// to avoid collision with lower slots.\n    /// The choice of manual storage layout is to enable compatibility\n    /// with both regular and upgradeable contracts.\n    bytes32 internal constant _OWNER_SLOT =\n        0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927;\n\n    /// The ownership handover slot of `newOwner` is given by:\n    /// ```\n    ///     mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED))\n    ///     let handoverSlot := keccak256(0x00, 0x20)\n    /// ```\n    /// It stores the expiry timestamp of the two-step ownership handover.\n    uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     INTERNAL FUNCTIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Override to return true to make `_initializeOwner` prevent double-initialization.\n    function _guardInitializeOwner() internal pure virtual returns (bool guard) {}\n\n    /// @dev Initializes the owner directly without authorization guard.\n    /// This function must be called upon initialization,\n    /// regardless of whether the contract is upgradeable or not.\n    /// This is to enable generalization to both regular and upgradeable contracts,\n    /// and to save gas in case the initial owner is not the caller.\n    /// For performance reasons, this function will not check if there\n    /// is an existing owner.\n    function _initializeOwner(address newOwner) internal virtual {\n        if (_guardInitializeOwner()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let ownerSlot := _OWNER_SLOT\n                if sload(ownerSlot) {\n                    mstore(0x00, 0x0dc149f0) // `AlreadyInitialized()`.\n                    revert(0x1c, 0x04)\n                }\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Store the new value.\n                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n            }\n        } else {\n            /// @solidity memory-safe-assembly\n            assembly {\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Store the new value.\n                sstore(_OWNER_SLOT, newOwner)\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n            }\n        }\n    }\n\n    /// @dev Sets the owner directly without authorization guard.\n    function _setOwner(address newOwner) internal virtual {\n        if (_guardInitializeOwner()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let ownerSlot := _OWNER_SLOT\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n                // Store the new value.\n                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n            }\n        } else {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let ownerSlot := _OWNER_SLOT\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n                // Store the new value.\n                sstore(ownerSlot, newOwner)\n            }\n        }\n    }\n\n    /// @dev Throws if the sender is not the owner.\n    function _checkOwner() internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // If the caller is not the stored owner, revert.\n            if iszero(eq(caller(), sload(_OWNER_SLOT))) {\n                mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Returns how long a two-step ownership handover is valid for in seconds.\n    /// Override to return a different value if needed.\n    /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n    function _ownershipHandoverValidFor() internal view virtual returns (uint64) {\n        return 48 * 3600;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  PUBLIC UPDATE FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Allows the owner to transfer the ownership to `newOwner`.\n    function transferOwnership(address newOwner) public payable virtual onlyOwner {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(shl(96, newOwner)) {\n                mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n        }\n        _setOwner(newOwner);\n    }\n\n    /// @dev Allows the owner to renounce their ownership.\n    function renounceOwnership() public payable virtual onlyOwner {\n        _setOwner(address(0));\n    }\n\n    /// @dev Request a two-step ownership handover to the caller.\n    /// The request will automatically expire in 48 hours (172800 seconds) by default.\n    function requestOwnershipHandover() public payable virtual {\n        unchecked {\n            uint256 expires = block.timestamp + _ownershipHandoverValidFor();\n            /// @solidity memory-safe-assembly\n            assembly {\n                // Compute and set the handover slot to `expires`.\n                mstore(0x0c, _HANDOVER_SLOT_SEED)\n                mstore(0x00, caller())\n                sstore(keccak256(0x0c, 0x20), expires)\n                // Emit the {OwnershipHandoverRequested} event.\n                log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller())\n            }\n        }\n    }\n\n    /// @dev Cancels the two-step ownership handover to the caller, if any.\n    function cancelOwnershipHandover() public payable virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute and set the handover slot to 0.\n            mstore(0x0c, _HANDOVER_SLOT_SEED)\n            mstore(0x00, caller())\n            sstore(keccak256(0x0c, 0x20), 0)\n            // Emit the {OwnershipHandoverCanceled} event.\n            log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller())\n        }\n    }\n\n    /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`.\n    /// Reverts if there is no existing ownership handover requested by `pendingOwner`.\n    function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute and set the handover slot to 0.\n            mstore(0x0c, _HANDOVER_SLOT_SEED)\n            mstore(0x00, pendingOwner)\n            let handoverSlot := keccak256(0x0c, 0x20)\n            // If the handover does not exist, or has expired.\n            if gt(timestamp(), sload(handoverSlot)) {\n                mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`.\n                revert(0x1c, 0x04)\n            }\n            // Set the handover slot to 0.\n            sstore(handoverSlot, 0)\n        }\n        _setOwner(pendingOwner);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   PUBLIC READ FUNCTIONS                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the owner of the contract.\n    function owner() public view virtual returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := sload(_OWNER_SLOT)\n        }\n    }\n\n    /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.\n    function ownershipHandoverExpiresAt(address pendingOwner)\n        public\n        view\n        virtual\n        returns (uint256 result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the handover slot.\n            mstore(0x0c, _HANDOVER_SLOT_SEED)\n            mstore(0x00, pendingOwner)\n            // Load the handover slot.\n            result := sload(keccak256(0x0c, 0x20))\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         MODIFIERS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Marks a function as only callable by the owner.\n    modifier onlyOwner() virtual {\n        _checkOwner();\n        _;\n    }\n}\n"},"lib/solady/src/utils/EIP712.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Contract for EIP-712 typed structured data hashing and signing.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/EIP712.sol)\n/// @author Modified from Solbase (https://github.com/Sol-DAO/solbase/blob/main/src/utils/EIP712.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/EIP712.sol)\n///\n/// @dev Note, this implementation:\n/// - Uses `address(this)` for the `verifyingContract` field.\n/// - Does NOT use the optional EIP-712 salt.\n/// - Does NOT use any EIP-712 extensions.\n/// This is for simplicity and to save gas.\n/// If you need to customize, please fork / modify accordingly.\nabstract contract EIP712 {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  CONSTANTS AND IMMUTABLES                  */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev `keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\")`.\n    bytes32 internal constant _DOMAIN_TYPEHASH =\n        0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f;\n\n    /// @dev `keccak256(\"EIP712Domain(string name,string version,address verifyingContract)\")`.\n    /// This is only used in `_hashTypedDataSansChainId`.\n    bytes32 internal constant _DOMAIN_TYPEHASH_SANS_CHAIN_ID =\n        0x91ab3d17e3a50a9d89e63fd30b92be7f5336b03b287bb946787a83a9d62a2766;\n\n    /// @dev `keccak256(\"EIP712Domain(string name,string version)\")`.\n    /// This is only used in `_hashTypedDataSansChainIdAndVerifyingContract`.\n    bytes32 internal constant _DOMAIN_TYPEHASH_SANS_CHAIN_ID_AND_VERIFYING_CONTRACT =\n        0xb03948446334eb9b2196d5eb166f69b9d49403eb4a12f36de8d3f9f3cb8e15c3;\n\n    /// @dev `keccak256(\"EIP712Domain(string name,string version,uint256 chainId)\")`.\n    /// This is only used in `_hashTypedDataSansVerifyingContract`.\n    bytes32 internal constant _DOMAIN_TYPEHASH_SANS_VERIFYING_CONTRACT =\n        0xc2f8787176b8ac6bf7215b4adcc1e069bf4ab82d9ab1df05a57a91d425935b6e;\n\n    uint256 private immutable _cachedThis;\n    uint256 private immutable _cachedChainId;\n    bytes32 private immutable _cachedNameHash;\n    bytes32 private immutable _cachedVersionHash;\n    bytes32 private immutable _cachedDomainSeparator;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                        CONSTRUCTOR                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Cache the hashes for cheaper runtime gas costs.\n    /// In the case of upgradeable contracts (i.e. proxies),\n    /// or if the chain id changes due to a hard fork,\n    /// the domain separator will be seamlessly calculated on-the-fly.\n    constructor() {\n        _cachedThis = uint256(uint160(address(this)));\n        _cachedChainId = block.chainid;\n\n        string memory name;\n        string memory version;\n        if (!_domainNameAndVersionMayChange()) (name, version) = _domainNameAndVersion();\n        bytes32 nameHash = _domainNameAndVersionMayChange() ? bytes32(0) : keccak256(bytes(name));\n        bytes32 versionHash =\n            _domainNameAndVersionMayChange() ? bytes32(0) : keccak256(bytes(version));\n        _cachedNameHash = nameHash;\n        _cachedVersionHash = versionHash;\n\n        bytes32 separator;\n        if (!_domainNameAndVersionMayChange()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let m := mload(0x40) // Load the free memory pointer.\n                mstore(m, _DOMAIN_TYPEHASH)\n                mstore(add(m, 0x20), nameHash)\n                mstore(add(m, 0x40), versionHash)\n                mstore(add(m, 0x60), chainid())\n                mstore(add(m, 0x80), address())\n                separator := keccak256(m, 0xa0)\n            }\n        }\n        _cachedDomainSeparator = separator;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   FUNCTIONS TO OVERRIDE                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Please override this function to return the domain name and version.\n    /// ```\n    ///     function _domainNameAndVersion()\n    ///         internal\n    ///         pure\n    ///         virtual\n    ///         returns (string memory name, string memory version)\n    ///     {\n    ///         name = \"Solady\";\n    ///         version = \"1\";\n    ///     }\n    /// ```\n    ///\n    /// Note: If the returned result may change after the contract has been deployed,\n    /// you must override `_domainNameAndVersionMayChange()` to return true.\n    function _domainNameAndVersion()\n        internal\n        view\n        virtual\n        returns (string memory name, string memory version);\n\n    /// @dev Returns if `_domainNameAndVersion()` may change\n    /// after the contract has been deployed (i.e. after the constructor).\n    /// Default: false.\n    function _domainNameAndVersionMayChange() internal pure virtual returns (bool result) {}\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     HASHING OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the EIP-712 domain separator.\n    function _domainSeparator() internal view virtual returns (bytes32 separator) {\n        if (_domainNameAndVersionMayChange()) {\n            separator = _buildDomainSeparator();\n        } else {\n            separator = _cachedDomainSeparator;\n            if (_cachedDomainSeparatorInvalidated()) separator = _buildDomainSeparator();\n        }\n    }\n\n    /// @dev Returns the hash of the fully encoded EIP-712 message for this domain,\n    /// given `structHash`, as defined in\n    /// https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct.\n    ///\n    /// The hash can be used together with {ECDSA-recover} to obtain the signer of a message:\n    /// ```\n    ///     bytes32 digest = _hashTypedData(keccak256(abi.encode(\n    ///         keccak256(\"Mail(address to,string contents)\"),\n    ///         mailTo,\n    ///         keccak256(bytes(mailContents))\n    ///     )));\n    ///     address signer = ECDSA.recover(digest, signature);\n    /// ```\n    function _hashTypedData(bytes32 structHash) internal view virtual returns (bytes32 digest) {\n        // We will use `digest` to store the domain separator to save a bit of gas.\n        if (_domainNameAndVersionMayChange()) {\n            digest = _buildDomainSeparator();\n        } else {\n            digest = _cachedDomainSeparator;\n            if (_cachedDomainSeparatorInvalidated()) digest = _buildDomainSeparator();\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the digest.\n            mstore(0x00, 0x1901000000000000) // Store \"\\x19\\x01\".\n            mstore(0x1a, digest) // Store the domain separator.\n            mstore(0x3a, structHash) // Store the struct hash.\n            digest := keccak256(0x18, 0x42)\n            // Restore the part of the free memory slot that was overwritten.\n            mstore(0x3a, 0)\n        }\n    }\n\n    /// @dev Variant of `_hashTypedData` that excludes the chain ID.\n    /// Included for the niche use case of cross-chain workflows.\n    function _hashTypedDataSansChainId(bytes32 structHash)\n        internal\n        view\n        virtual\n        returns (bytes32 digest)\n    {\n        (string memory name, string memory version) = _domainNameAndVersion();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Load the free memory pointer.\n            mstore(0x00, _DOMAIN_TYPEHASH_SANS_CHAIN_ID)\n            mstore(0x20, keccak256(add(name, 0x20), mload(name)))\n            mstore(0x40, keccak256(add(version, 0x20), mload(version)))\n            mstore(0x60, address())\n            // Compute the digest.\n            mstore(0x20, keccak256(0x00, 0x80)) // Store the domain separator.\n            mstore(0x00, 0x1901) // Store \"\\x19\\x01\".\n            mstore(0x40, structHash) // Store the struct hash.\n            digest := keccak256(0x1e, 0x42)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero pointer.\n        }\n    }\n\n    /// @dev Variant of `_hashTypedData` that excludes the chain ID and verifying contract.\n    /// Included for the niche use case of cross-chain and multi-verifier workflows.\n    function _hashTypedDataSansChainIdAndVerifyingContract(bytes32 structHash)\n        internal\n        view\n        virtual\n        returns (bytes32 digest)\n    {\n        (string memory name, string memory version) = _domainNameAndVersion();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Load the free memory pointer.\n            mstore(0x00, _DOMAIN_TYPEHASH_SANS_CHAIN_ID_AND_VERIFYING_CONTRACT)\n            mstore(0x20, keccak256(add(name, 0x20), mload(name)))\n            mstore(0x40, keccak256(add(version, 0x20), mload(version)))\n            // Compute the digest.\n            mstore(0x20, keccak256(0x00, 0x60)) // Store the domain separator.\n            mstore(0x00, 0x1901) // Store \"\\x19\\x01\".\n            mstore(0x40, structHash) // Store the struct hash.\n            digest := keccak256(0x1e, 0x42)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero pointer.\n        }\n    }\n\n    /// @dev Variant of `_hashTypedData` that excludes the chain ID and verifying contract.\n    /// Included for the niche use case of multi-verifier workflows.\n    function _hashTypedDataSansVerifyingContract(bytes32 structHash)\n        internal\n        view\n        virtual\n        returns (bytes32 digest)\n    {\n        (string memory name, string memory version) = _domainNameAndVersion();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Load the free memory pointer.\n            mstore(0x00, _DOMAIN_TYPEHASH_SANS_VERIFYING_CONTRACT)\n            mstore(0x20, keccak256(add(name, 0x20), mload(name)))\n            mstore(0x40, keccak256(add(version, 0x20), mload(version)))\n            mstore(0x60, chainid())\n            // Compute the digest.\n            mstore(0x20, keccak256(0x00, 0x80)) // Store the domain separator.\n            mstore(0x00, 0x1901) // Store \"\\x19\\x01\".\n            mstore(0x40, structHash) // Store the struct hash.\n            digest := keccak256(0x1e, 0x42)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero pointer.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    EIP-5267 OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev See: https://eips.ethereum.org/EIPS/eip-5267\n    function eip712Domain()\n        public\n        view\n        virtual\n        returns (\n            bytes1 fields,\n            string memory name,\n            string memory version,\n            uint256 chainId,\n            address verifyingContract,\n            bytes32 salt,\n            uint256[] memory extensions\n        )\n    {\n        fields = hex\"0f\"; // `0b01111`.\n        (name, version) = _domainNameAndVersion();\n        chainId = block.chainid;\n        verifyingContract = address(this);\n        salt = salt; // `bytes32(0)`.\n        extensions = extensions; // `new uint256[](0)`.\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      PRIVATE HELPERS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the EIP-712 domain separator.\n    function _buildDomainSeparator() private view returns (bytes32 separator) {\n        // We will use `separator` to store the name hash to save a bit of gas.\n        bytes32 versionHash;\n        if (_domainNameAndVersionMayChange()) {\n            (string memory name, string memory version) = _domainNameAndVersion();\n            separator = keccak256(bytes(name));\n            versionHash = keccak256(bytes(version));\n        } else {\n            separator = _cachedNameHash;\n            versionHash = _cachedVersionHash;\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Load the free memory pointer.\n            mstore(m, _DOMAIN_TYPEHASH)\n            mstore(add(m, 0x20), separator) // Name hash.\n            mstore(add(m, 0x40), versionHash)\n            mstore(add(m, 0x60), chainid())\n            mstore(add(m, 0x80), address())\n            separator := keccak256(m, 0xa0)\n        }\n    }\n\n    /// @dev Returns if the cached domain separator has been invalidated.\n    function _cachedDomainSeparatorInvalidated() private view returns (bool result) {\n        uint256 cachedChainId = _cachedChainId;\n        uint256 cachedThis = _cachedThis;\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := iszero(and(eq(chainid(), cachedChainId), eq(address(), cachedThis)))\n        }\n    }\n}\n"},"src/libraries/WebAuthnNative.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/cryptography/WebAuthn.sol)\n//\n// VENDORED from OpenZeppelin with a single semantic change: the final signature check calls\n// `P256.verifyNative` (RIP-7212 precompile only) instead of `P256.verify` (precompile with an\n// inline Solidity fallback). This keeps the deep elliptic-curve `verifySolidity` out of every\n// consumer's compilation unit, which (a) shrinks bytecode and (b) lets `forge coverage` compile.\n// Behaviour is identical on chains with the P-256 precompile (e.g. Polygon); on chains without it,\n// `verifyNative` reverts instead of running the Solidity fallback. Keep in sync with OZ on bumps.\n\npragma solidity ^0.8.24;\n\nimport {P256} from \"@openzeppelin/contracts/utils/cryptography/P256.sol\";\nimport {Math} from \"@openzeppelin/contracts/utils/math/Math.sol\";\nimport {Base64} from \"@openzeppelin/contracts/utils/Base64.sol\";\nimport {Bytes} from \"@openzeppelin/contracts/utils/Bytes.sol\";\nimport {Strings} from \"@openzeppelin/contracts/utils/Strings.sol\";\n\n/**\n * @dev Library for verifying WebAuthn Authentication Assertions.\n *\n * WebAuthn enables strong authentication for smart contracts using\n * https://docs.openzeppelin.com/contracts/5.x/api/utils#P256[P256]\n * as an alternative to traditional secp256k1 ECDSA signatures. This library verifies\n * signatures generated during WebAuthn authentication ceremonies as specified in the\n * https://www.w3.org/TR/webauthn-2/[WebAuthn Level 2 standard].\n *\n * For blockchain use cases, the following WebAuthn validations are intentionally omitted:\n *\n * * Origin validation: Origin verification in `clientDataJSON` is omitted. This check is the\n *   responsibility of the authenticator and does not have a meaningful on-chain use case; standard\n *   authenticators implement proper origin validation before signing.\n * * RP ID hash validation: Verification of `rpIdHash` in authenticatorData against expected\n *   RP ID hash is omitted. This check is the responsibility of the authenticator and does not have\n *   a meaningful on-chain use case; it is typically enforced at the platform level.\n * * Signature counter: Verification of signature counter increments is omitted. The\n *   signature counter is maintained by authenticators per the WebAuthn spec to detect\n *   credential cloning, but validating it requires storing per-credential mutable state\n *   (the last seen counter value) which is impractical for most smart contract applications.\n *   Additionally, counter enforcement is primarily an authenticator responsibility, not a\n *   contract-level concern.\n * * Extension outputs: Extension output value verification is omitted as these are not\n *   essential for core authentication security in blockchain applications.\n * * Attestation: Attestation object verification is omitted as this implementation\n *   focuses on authentication (`webauthn.get`) rather than registration ceremonies.\n *\n * Inspired by:\n *\n * * https://github.com/daimo-eth/p256-verifier/blob/master/src/WebAuthn.sol[daimo-eth\n * implementation]\n * * https://github.com/base/webauthn-sol/blob/main/src/WebAuthn.sol[base implementation]\n */\nlibrary WebAuthn {\n    struct WebAuthnAuth {\n        bytes32 r; /// The r value of secp256r1 signature\n        bytes32 s; /// The s value of secp256r1 signature\n        uint256 challengeIndex; /// The index at which \"challenge\":\"...\" occurs in `clientDataJSON`.\n        uint256 typeIndex; /// The index at which \"type\":\"...\" occurs in `clientDataJSON`.\n        /// The WebAuthn authenticator data.\n        /// https://www.w3.org/TR/webauthn-2/#dom-authenticatorassertionresponse-authenticatordata\n        bytes authenticatorData;\n        /// The WebAuthn client data JSON.\n        /// https://www.w3.org/TR/webauthn-2/#dom-authenticatorresponse-clientdatajson\n        string clientDataJSON;\n    }\n\n    /// @dev Bit 0 of the authenticator data flags: \"User Present\" bit.\n    bytes1 internal constant AUTH_DATA_FLAGS_UP = 0x01;\n    /// @dev Bit 2 of the authenticator data flags: \"User Verified\" bit.\n    bytes1 internal constant AUTH_DATA_FLAGS_UV = 0x04;\n    /// @dev Bit 3 of the authenticator data flags: \"Backup Eligibility\" bit.\n    bytes1 internal constant AUTH_DATA_FLAGS_BE = 0x08;\n    /// @dev Bit 4 of the authenticator data flags: \"Backup State\" bit.\n    bytes1 internal constant AUTH_DATA_FLAGS_BS = 0x10;\n\n    /**\n     * @dev Performs standard verification of a WebAuthn Authentication Assertion.\n     */\n    function verify(bytes memory challenge, WebAuthnAuth memory auth, bytes32 qx, bytes32 qy)\n        internal\n        view\n        returns (bool)\n    {\n        return verify(challenge, auth, qx, qy, true);\n    }\n\n    /**\n     * @dev Performs verification of a WebAuthn Authentication Assertion. This variants allow the\n     * caller to select\n     * whether of not to require the UV flag (step 17).\n     *\n     * Verifies:\n     *\n     * 1. Type is \"webauthn.get\" (see {_validateExpectedTypeHash})\n     * 2. Challenge matches the expected value (see {_validateChallenge})\n     * 3. Cryptographic signature is valid for the given public key\n     * 4. confirming physical user presence during authentication\n     * 5. (if `requireUV` is true) confirming stronger user authentication (biometrics/PIN)\n     * 6. Backup Eligibility (`BE`) and Backup State (BS) bits relationship is valid\n     */\n    function verify(\n        bytes memory challenge,\n        WebAuthnAuth memory auth,\n        bytes32 qx,\n        bytes32 qy,\n        bool requireUV\n    ) internal view returns (bool) {\n        // Verify authenticator data has sufficient length (37 bytes minimum):\n        // - 32 bytes for rpIdHash\n        // - 1 byte for flags\n        // - 4 bytes for signature counter\n        return auth.authenticatorData.length > 36\n            && _validateExpectedTypeHash(auth.clientDataJSON, auth.typeIndex) // 11\n            && _validateChallenge(auth.clientDataJSON, auth.challengeIndex, challenge) // 12\n            && _validateUserPresentBitSet(auth.authenticatorData[32]) // 16\n            && (!requireUV || _validateUserVerifiedBitSet(auth.authenticatorData[32])) // 17\n            && _validateBackupEligibilityAndState(auth.authenticatorData[32]) // Consistency check\n            // P256.verify handles signature malleability internally\n            && P256.verifyNative(\n            sha256(\n            abi.encodePacked(\n            auth.authenticatorData,\n            sha256(bytes(auth.clientDataJSON)) // 19\n        )\n        ),\n            auth.r,\n            auth.s,\n            qx,\n            qy\n        ); // 20\n    }\n\n    /**\n     * @dev Validates that the https://www.w3.org/TR/webauthn-2/#type[Type] field in the client data\n     * JSON is set to\n     * \"webauthn.get\".\n     *\n     * Step 11 in https://www.w3.org/TR/webauthn-2/#sctn-verifying-assertion[verifying an\n     * assertion].\n     */\n    function _validateExpectedTypeHash(string memory clientDataJSON, uint256 typeIndex)\n        private\n        pure\n        returns (bool success)\n    {\n        assembly (\"memory-safe\") {\n            success := and(\n                // clientDataJson.length >= typeIndex + 21\n                gt(mload(clientDataJSON), add(typeIndex, 20)),\n                eq(\n                    // get 32 bytes starting at index typexIndex in clientDataJSON, and keep the\n                    // leftmost 21 bytes\n                    and(mload(add(add(clientDataJSON, 0x20), typeIndex)), shl(88, not(0))),\n                    // solhint-disable-next-line quotes\n                    '\"type\":\"webauthn.get\"'\n                )\n            )\n        }\n    }\n\n    /**\n     * @dev Validates that the challenge in the client data JSON matches the `expectedChallenge`.\n     *\n     * Step 12 in https://www.w3.org/TR/webauthn-2/#sctn-verifying-assertion[verifying an\n     * assertion].\n     */\n    function _validateChallenge(\n        string memory clientDataJSON,\n        uint256 challengeIndex,\n        bytes memory challenge\n    ) private pure returns (bool) {\n        // solhint-disable-next-line quotes\n        string memory expectedChallenge =\n            string.concat('\"challenge\":\"', Base64.encodeURL(challenge), '\"');\n        string memory actualChallenge = string(\n            Bytes.slice(\n                bytes(clientDataJSON),\n                challengeIndex,\n                Math.saturatingAdd(challengeIndex, bytes(expectedChallenge).length)\n            )\n        );\n\n        return Strings.equal(actualChallenge, expectedChallenge);\n    }\n\n    /**\n     * @dev Validates that the https://www.w3.org/TR/webauthn-2/#up[User Present (UP)] bit is set.\n     *\n     * Step 16 in https://www.w3.org/TR/webauthn-2/#sctn-verifying-assertion[verifying an\n     * assertion].\n     *\n     * NOTE: Required by WebAuthn spec but may be skipped for platform authenticators\n     * (Touch ID, Windows Hello) in controlled environments. Enforce for public-facing apps.\n     */\n    function _validateUserPresentBitSet(bytes1 flags) private pure returns (bool) {\n        return (flags & AUTH_DATA_FLAGS_UP) == AUTH_DATA_FLAGS_UP;\n    }\n\n    /**\n     * @dev Validates that the https://www.w3.org/TR/webauthn-2/#uv[User Verified (UV)] bit is set.\n     *\n     * Step 17 in https://www.w3.org/TR/webauthn-2/#sctn-verifying-assertion[verifying an\n     * assertion].\n     *\n     * The UV bit indicates whether the user was verified using a stronger identification method\n     * (biometrics, PIN, password). While optional, requiring UV=1 is recommended for:\n     *\n     * * High-value transactions and sensitive operations\n     * * Account recovery and critical settings changes\n     * * Privileged operations\n     *\n     * NOTE: For routine operations or when using hardware authenticators without verification\n     * capabilities,\n     * `UV=0` may be acceptable. The choice of whether to require UV represents a security vs.\n     * usability\n     * tradeoff - for blockchain applications handling valuable assets, requiring UV is generally\n     * safer.\n     */\n    function _validateUserVerifiedBitSet(bytes1 flags) private pure returns (bool) {\n        return (flags & AUTH_DATA_FLAGS_UV) == AUTH_DATA_FLAGS_UV;\n    }\n\n    /**\n     * @dev Validates the relationship between Backup Eligibility (`BE`) and Backup State (`BS`)\n     * bits\n     * according to the WebAuthn specification.\n     *\n     * The function enforces that if a credential is backed up (`BS=1`), it must also be eligible\n     * for backup (`BE=1`). This prevents unauthorized credential backup and ensures compliance\n     * with the WebAuthn spec.\n     *\n     * Returns true in these valid states:\n     *\n     * * `BE=1`, `BS=0`: Credential is eligible but not backed up\n     * * `BE=1`, `BS=1`: Credential is eligible and backed up\n     * * `BE=0`, `BS=0`: Credential is not eligible and not backed up\n     *\n     * Returns false only when `BE=0` and `BS=1`, which is an invalid state indicating\n     * a credential that's backed up but not eligible for backup.\n     *\n     * NOTE: While the WebAuthn spec defines this relationship between `BE` and `BS` bits,\n     * validating it is not explicitly required as part of the core verification procedure.\n     * Some implementations may choose to skip this check for broader authenticator\n     * compatibility or when the application's threat model doesn't consider credential\n     * syncing a major risk.\n     */\n    function _validateBackupEligibilityAndState(bytes1 flags) private pure returns (bool) {\n        return\n            (flags & AUTH_DATA_FLAGS_BE) == AUTH_DATA_FLAGS_BE || (flags & AUTH_DATA_FLAGS_BS) == 0;\n    }\n\n    /**\n     * @dev Verifies that calldata bytes (`input`) represents a valid `WebAuthnAuth` object. If\n     * encoding is valid,\n     * returns true and the calldata view at the object. Otherwise, returns false and an invalid\n     * calldata object.\n     *\n     * NOTE: The returned `auth` object should not be accessed if `success` is false. Trying to\n     * access the data may\n     * cause revert/panic.\n     */\n    function tryDecodeAuth(bytes calldata input)\n        internal\n        pure\n        returns (bool success, WebAuthnAuth calldata auth)\n    {\n        assembly (\"memory-safe\") {\n            auth := input.offset\n        }\n\n        // Minimum length to hold 6 objects (32 bytes each)\n        if (input.length < 0xC0) return (false, auth);\n\n        // Get offset of non-value-type elements relative to the input buffer\n        uint256 authenticatorDataOffset = uint256(bytes32(input[0x80:]));\n        uint256 clientDataJSONOffset = uint256(bytes32(input[0xa0:]));\n\n        // The elements length (at the offset) should be 32 bytes long. We check that this is within\n        // the buffer bounds. Since we know input.length is at least 32, we can subtract with no\n        // overflow risk.\n        if (\n            input.length - 0x20 < authenticatorDataOffset\n                || input.length - 0x20 < clientDataJSONOffset\n        ) {\n            return (false, auth);\n        }\n\n        // Get the lengths. offset + 32 is bounded by input.length so it does not overflow.\n        uint256 authenticatorDataLength = uint256(bytes32(input[authenticatorDataOffset:]));\n        uint256 clientDataJSONLength = uint256(bytes32(input[clientDataJSONOffset:]));\n\n        // Check that the input buffer is long enough to store the non-value-type elements\n        // Since we know input.length is at least xxxOffset + 32, we can subtract with no overflow\n        // risk.\n        if (\n            input.length - authenticatorDataOffset - 0x20 < authenticatorDataLength\n                || input.length - clientDataJSONOffset - 0x20 < clientDataJSONLength\n        ) return (false, auth);\n\n        return (true, auth);\n    }\n}\n"},"lib/solady/src/tokens/ERC1155.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Simple ERC1155 implementation.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/tokens/ERC1155.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC1155.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/token/ERC1155/ERC1155.sol)\n///\n/// @dev Note:\n/// - The ERC1155 standard allows for self-approvals.\n///   For performance, this implementation WILL NOT revert for such actions.\n///   Please add any checks with overrides if desired.\n/// - The transfer functions use the identity precompile (0x4)\n///   to copy memory internally.\n///\n/// If you are overriding:\n/// - Make sure all variables written to storage are properly cleaned\n//    (e.g. the bool value for `isApprovedForAll` MUST be either 1 or 0 under the hood).\n/// - Check that the overridden function is actually used in the function you want to\n///   change the behavior of. Much of the code has been manually inlined for performance.\nabstract contract ERC1155 {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The lengths of the input arrays are not the same.\n    error ArrayLengthsMismatch();\n\n    /// @dev Cannot mint or transfer to the zero address.\n    error TransferToZeroAddress();\n\n    /// @dev The recipient's balance has overflowed.\n    error AccountBalanceOverflow();\n\n    /// @dev Insufficient balance.\n    error InsufficientBalance();\n\n    /// @dev Only the token owner or an approved account can manage the tokens.\n    error NotOwnerNorApproved();\n\n    /// @dev Cannot safely transfer to a contract that does not implement\n    /// the ERC1155Receiver interface.\n    error TransferToNonERC1155ReceiverImplementer();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Emitted when `amount` of token `id` is transferred\n    /// from `from` to `to` by `operator`.\n    event TransferSingle(\n        address indexed operator,\n        address indexed from,\n        address indexed to,\n        uint256 id,\n        uint256 amount\n    );\n\n    /// @dev Emitted when `amounts` of token `ids` are transferred\n    /// from `from` to `to` by `operator`.\n    event TransferBatch(\n        address indexed operator,\n        address indexed from,\n        address indexed to,\n        uint256[] ids,\n        uint256[] amounts\n    );\n\n    /// @dev Emitted when `owner` enables or disables `operator` to manage all of their tokens.\n    event ApprovalForAll(address indexed owner, address indexed operator, bool isApproved);\n\n    /// @dev Emitted when the Uniform Resource Identifier (URI) for token `id`\n    /// is updated to `value`. This event is not used in the base contract.\n    /// You may need to emit this event depending on your URI logic.\n    ///\n    /// See: https://eips.ethereum.org/EIPS/eip-1155#metadata\n    event URI(string value, uint256 indexed id);\n\n    /// @dev `keccak256(bytes(\"TransferSingle(address,address,address,uint256,uint256)\"))`.\n    uint256 private constant _TRANSFER_SINGLE_EVENT_SIGNATURE =\n        0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62;\n\n    /// @dev `keccak256(bytes(\"TransferBatch(address,address,address,uint256[],uint256[])\"))`.\n    uint256 private constant _TRANSFER_BATCH_EVENT_SIGNATURE =\n        0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb;\n\n    /// @dev `keccak256(bytes(\"ApprovalForAll(address,address,bool)\"))`.\n    uint256 private constant _APPROVAL_FOR_ALL_EVENT_SIGNATURE =\n        0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The `ownerSlotSeed` of a given owner is given by.\n    /// ```\n    ///     let ownerSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, owner))\n    /// ```\n    ///\n    /// The balance slot of `owner` is given by.\n    /// ```\n    ///     mstore(0x20, ownerSlotSeed)\n    ///     mstore(0x00, id)\n    ///     let balanceSlot := keccak256(0x00, 0x40)\n    /// ```\n    ///\n    /// The operator approval slot of `owner` is given by.\n    /// ```\n    ///     mstore(0x20, ownerSlotSeed)\n    ///     mstore(0x00, operator)\n    ///     let operatorApprovalSlot := keccak256(0x0c, 0x34)\n    /// ```\n    uint256 private constant _ERC1155_MASTER_SLOT_SEED = 0x9a31110384e0b0c9;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      ERC1155 METADATA                      */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the URI for token `id`.\n    ///\n    /// You can either return the same templated URI for all token IDs,\n    /// (e.g. \"https://example.com/api/{id}.json\"),\n    /// or return a unique URI for each `id`.\n    ///\n    /// See: https://eips.ethereum.org/EIPS/eip-1155#metadata\n    function uri(uint256 id) public view virtual returns (string memory);\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          ERC1155                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the amount of `id` owned by `owner`.\n    function balanceOf(address owner, uint256 id) public view virtual returns (uint256 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n            mstore(0x14, owner)\n            mstore(0x00, id)\n            result := sload(keccak256(0x00, 0x40))\n        }\n    }\n\n    /// @dev Returns whether `operator` is approved to manage the tokens of `owner`.\n    function isApprovedForAll(address owner, address operator)\n        public\n        view\n        virtual\n        returns (bool result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n            mstore(0x14, owner)\n            mstore(0x00, operator)\n            result := sload(keccak256(0x0c, 0x34))\n        }\n    }\n\n    /// @dev Sets whether `operator` is approved to manage the tokens of the caller.\n    ///\n    /// Emits a {ApprovalForAll} event.\n    function setApprovalForAll(address operator, bool isApproved) public virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Convert to 0 or 1.\n            isApproved := iszero(iszero(isApproved))\n            // Update the `isApproved` for (`msg.sender`, `operator`).\n            mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n            mstore(0x14, caller())\n            mstore(0x00, operator)\n            sstore(keccak256(0x0c, 0x34), isApproved)\n            // Emit the {ApprovalForAll} event.\n            mstore(0x00, isApproved)\n            // forgefmt: disable-next-line\n            log3(0x00, 0x20, _APPROVAL_FOR_ALL_EVENT_SIGNATURE, caller(), shr(96, shl(96, operator)))\n        }\n    }\n\n    /// @dev Transfers `amount` of `id` from `from` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `from` must have at least `amount` of `id`.\n    /// - If the caller is not `from`,\n    ///   it must be approved to manage the tokens of `from`.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155Received}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferSingle} event.\n    function safeTransferFrom(\n        address from,\n        address to,\n        uint256 id,\n        uint256 amount,\n        bytes calldata data\n    ) public virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, to, _single(id), _single(amount), data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let fromSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, from))\n            let toSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, to))\n            mstore(0x20, fromSlotSeed)\n            // Clear the upper 96 bits.\n            from := shr(96, fromSlotSeed)\n            to := shr(96, toSlotSeed)\n            // Revert if `to` is the zero address.\n            if iszero(to) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            // If the caller is not `from`, do the authorization check.\n            if iszero(eq(caller(), from)) {\n                mstore(0x00, caller())\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Subtract and store the updated balance of `from`.\n            {\n                mstore(0x00, id)\n                let fromBalanceSlot := keccak256(0x00, 0x40)\n                let fromBalance := sload(fromBalanceSlot)\n                if gt(amount, fromBalance) {\n                    mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(fromBalanceSlot, sub(fromBalance, amount))\n            }\n            // Increase and store the updated balance of `to`.\n            {\n                mstore(0x20, toSlotSeed)\n                let toBalanceSlot := keccak256(0x00, 0x40)\n                let toBalanceBefore := sload(toBalanceSlot)\n                let toBalanceAfter := add(toBalanceBefore, amount)\n                if lt(toBalanceAfter, toBalanceBefore) {\n                    mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(toBalanceSlot, toBalanceAfter)\n            }\n            // Emit a {TransferSingle} event.\n            mstore(0x20, amount)\n            log4(0x00, 0x40, _TRANSFER_SINGLE_EVENT_SIGNATURE, caller(), from, to)\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, to, _single(id), _single(amount), data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Do the {onERC1155Received} check if `to` is a smart contract.\n            if extcodesize(to) {\n                // Prepare the calldata.\n                let m := mload(0x40)\n                // `onERC1155Received(address,address,uint256,uint256,bytes)`.\n                mstore(m, 0xf23a6e61)\n                mstore(add(m, 0x20), caller())\n                mstore(add(m, 0x40), from)\n                mstore(add(m, 0x60), id)\n                mstore(add(m, 0x80), amount)\n                mstore(add(m, 0xa0), 0xa0)\n                mstore(add(m, 0xc0), data.length)\n                calldatacopy(add(m, 0xe0), data.offset, data.length)\n                // Revert if the call reverts.\n                if iszero(call(gas(), to, 0, add(m, 0x1c), add(0xc4, data.length), m, 0x20)) {\n                    if returndatasize() {\n                        // Bubble up the revert if the call reverts.\n                        returndatacopy(m, 0x00, returndatasize())\n                        revert(m, returndatasize())\n                    }\n                }\n                // Load the returndata and compare it with the function selector.\n                if iszero(eq(mload(m), shl(224, 0xf23a6e61))) {\n                    mstore(0x00, 0x9c05499b) // `TransferToNonERC1155ReceiverImplementer()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Transfers `amounts` of `ids` from `from` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `from` must have at least `amount` of `id`.\n    /// - `ids` and `amounts` must have the same length.\n    /// - If the caller is not `from`,\n    ///   it must be approved to manage the tokens of `from`.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155BatchReceived}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferBatch} event.\n    function safeBatchTransferFrom(\n        address from,\n        address to,\n        uint256[] calldata ids,\n        uint256[] calldata amounts,\n        bytes calldata data\n    ) public virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, to, ids, amounts, data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(ids.length, amounts.length)) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            let fromSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, from))\n            let toSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, to))\n            mstore(0x20, fromSlotSeed)\n            // Clear the upper 96 bits.\n            from := shr(96, fromSlotSeed)\n            to := shr(96, toSlotSeed)\n            // Revert if `to` is the zero address.\n            if iszero(to) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            // If the caller is not `from`, do the authorization check.\n            if iszero(eq(caller(), from)) {\n                mstore(0x00, caller())\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Loop through all the `ids` and update the balances.\n            {\n                for { let i := shl(5, ids.length) } i {} {\n                    i := sub(i, 0x20)\n                    let amount := calldataload(add(amounts.offset, i))\n                    // Subtract and store the updated balance of `from`.\n                    {\n                        mstore(0x20, fromSlotSeed)\n                        mstore(0x00, calldataload(add(ids.offset, i)))\n                        let fromBalanceSlot := keccak256(0x00, 0x40)\n                        let fromBalance := sload(fromBalanceSlot)\n                        if gt(amount, fromBalance) {\n                            mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(fromBalanceSlot, sub(fromBalance, amount))\n                    }\n                    // Increase and store the updated balance of `to`.\n                    {\n                        mstore(0x20, toSlotSeed)\n                        let toBalanceSlot := keccak256(0x00, 0x40)\n                        let toBalanceBefore := sload(toBalanceSlot)\n                        let toBalanceAfter := add(toBalanceBefore, amount)\n                        if lt(toBalanceAfter, toBalanceBefore) {\n                            mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(toBalanceSlot, toBalanceAfter)\n                    }\n                }\n            }\n            // Emit a {TransferBatch} event.\n            {\n                let m := mload(0x40)\n                // Copy the `ids`.\n                mstore(m, 0x40)\n                let n := shl(5, ids.length)\n                mstore(add(m, 0x40), ids.length)\n                calldatacopy(add(m, 0x60), ids.offset, n)\n                // Copy the `amounts`.\n                mstore(add(m, 0x20), add(0x60, n))\n                let o := add(add(m, n), 0x60)\n                mstore(o, ids.length)\n                calldatacopy(add(o, 0x20), amounts.offset, n)\n                // Do the emit.\n                log4(m, add(add(n, n), 0x80), _TRANSFER_BATCH_EVENT_SIGNATURE, caller(), from, to)\n            }\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransferCalldata(from, to, ids, amounts, data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Do the {onERC1155BatchReceived} check if `to` is a smart contract.\n            if extcodesize(to) {\n                mstore(0x00, to) // Cache `to` to prevent stack too deep.\n                let m := mload(0x40)\n                // Prepare the calldata.\n                // `onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)`.\n                mstore(m, 0xbc197c81)\n                mstore(add(m, 0x20), caller())\n                mstore(add(m, 0x40), from)\n                // Copy the `ids`.\n                mstore(add(m, 0x60), 0xa0)\n                let n := shl(5, ids.length)\n                mstore(add(m, 0xc0), ids.length)\n                calldatacopy(add(m, 0xe0), ids.offset, n)\n                // Copy the `amounts`.\n                mstore(add(m, 0x80), add(0xc0, n))\n                let o := add(add(m, n), 0xe0)\n                mstore(o, ids.length)\n                calldatacopy(add(o, 0x20), amounts.offset, n)\n                // Copy the `data`.\n                mstore(add(m, 0xa0), add(add(0xe0, n), n))\n                o := add(add(o, n), 0x20)\n                mstore(o, data.length)\n                calldatacopy(add(o, 0x20), data.offset, data.length)\n                let nAll := add(0x104, add(data.length, add(n, n)))\n                // Revert if the call reverts.\n                if iszero(call(gas(), mload(0x00), 0, add(mload(0x40), 0x1c), nAll, m, 0x20)) {\n                    if returndatasize() {\n                        // Bubble up the revert if the call reverts.\n                        returndatacopy(m, 0x00, returndatasize())\n                        revert(m, returndatasize())\n                    }\n                }\n                // Load the returndata and compare it with the function selector.\n                if iszero(eq(mload(m), shl(224, 0xbc197c81))) {\n                    mstore(0x00, 0x9c05499b) // `TransferToNonERC1155ReceiverImplementer()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Returns the amounts of `ids` for `owners.\n    ///\n    /// Requirements:\n    /// - `owners` and `ids` must have the same length.\n    function balanceOfBatch(address[] calldata owners, uint256[] calldata ids)\n        public\n        view\n        virtual\n        returns (uint256[] memory balances)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(ids.length, owners.length)) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            balances := mload(0x40)\n            mstore(balances, ids.length)\n            let o := add(balances, 0x20)\n            let i := shl(5, ids.length)\n            mstore(0x40, add(i, o))\n            // Loop through all the `ids` and load the balances.\n            for {} i {} {\n                i := sub(i, 0x20)\n                let owner := calldataload(add(owners.offset, i))\n                mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, shl(96, owner)))\n                mstore(0x00, calldataload(add(ids.offset, i)))\n                mstore(add(o, i), sload(keccak256(0x00, 0x40)))\n            }\n        }\n    }\n\n    /// @dev Returns true if this contract implements the interface defined by `interfaceId`.\n    /// See: https://eips.ethereum.org/EIPS/eip-165\n    /// This function call must use less than 30000 gas.\n    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let s := shr(224, interfaceId)\n            // ERC165: 0x01ffc9a7, ERC1155: 0xd9b67a26, ERC1155MetadataURI: 0x0e89341c.\n            result := or(or(eq(s, 0x01ffc9a7), eq(s, 0xd9b67a26)), eq(s, 0x0e89341c))\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  INTERNAL MINT FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Mints `amount` of `id` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155Received}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferSingle} event.\n    function _mint(address to, uint256 id, uint256 amount, bytes memory data) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(address(0), to, _single(id), _single(amount), data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let to_ := shl(96, to)\n            // Revert if `to` is the zero address.\n            if iszero(to_) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            // Increase and store the updated balance of `to`.\n            {\n                mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n                mstore(0x14, to)\n                mstore(0x00, id)\n                let toBalanceSlot := keccak256(0x00, 0x40)\n                let toBalanceBefore := sload(toBalanceSlot)\n                let toBalanceAfter := add(toBalanceBefore, amount)\n                if lt(toBalanceAfter, toBalanceBefore) {\n                    mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(toBalanceSlot, toBalanceAfter)\n            }\n            // Emit a {TransferSingle} event.\n            mstore(0x20, amount)\n            log4(0x00, 0x40, _TRANSFER_SINGLE_EVENT_SIGNATURE, caller(), 0, shr(96, to_))\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(address(0), to, _single(id), _single(amount), data);\n        }\n        if (_hasCode(to)) _checkOnERC1155Received(address(0), to, id, amount, data);\n    }\n\n    /// @dev Mints `amounts` of `ids` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `ids` and `amounts` must have the same length.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155BatchReceived}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferBatch} event.\n    function _batchMint(\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(address(0), to, ids, amounts, data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(mload(ids), mload(amounts))) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            let to_ := shl(96, to)\n            // Revert if `to` is the zero address.\n            if iszero(to_) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            // Loop through all the `ids` and update the balances.\n            {\n                mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, to_))\n                for { let i := shl(5, mload(ids)) } i { i := sub(i, 0x20) } {\n                    let amount := mload(add(amounts, i))\n                    // Increase and store the updated balance of `to`.\n                    {\n                        mstore(0x00, mload(add(ids, i)))\n                        let toBalanceSlot := keccak256(0x00, 0x40)\n                        let toBalanceBefore := sload(toBalanceSlot)\n                        let toBalanceAfter := add(toBalanceBefore, amount)\n                        if lt(toBalanceAfter, toBalanceBefore) {\n                            mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(toBalanceSlot, toBalanceAfter)\n                    }\n                }\n            }\n            // Emit a {TransferBatch} event.\n            {\n                let m := mload(0x40)\n                // Copy the `ids`.\n                mstore(m, 0x40)\n                let n := add(0x20, shl(5, mload(ids)))\n                let o := add(m, 0x40)\n                pop(staticcall(gas(), 4, ids, n, o, n))\n                // Copy the `amounts`.\n                mstore(add(m, 0x20), add(0x40, returndatasize()))\n                o := add(o, returndatasize())\n                n := add(0x20, shl(5, mload(amounts)))\n                pop(staticcall(gas(), 4, amounts, n, o, n))\n                n := sub(add(o, returndatasize()), m)\n                // Do the emit.\n                log4(m, n, _TRANSFER_BATCH_EVENT_SIGNATURE, caller(), 0, shr(96, to_))\n            }\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(address(0), to, ids, amounts, data);\n        }\n        if (_hasCode(to)) _checkOnERC1155BatchReceived(address(0), to, ids, amounts, data);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  INTERNAL BURN FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Equivalent to `_burn(address(0), from, id, amount)`.\n    function _burn(address from, uint256 id, uint256 amount) internal virtual {\n        _burn(address(0), from, id, amount);\n    }\n\n    /// @dev Destroys `amount` of `id` from `from`.\n    ///\n    /// Requirements:\n    /// - `from` must have at least `amount` of `id`.\n    /// - If `by` is not the zero address, it must be either `from`,\n    ///   or approved to manage the tokens of `from`.\n    ///\n    /// Emits a {TransferSingle} event.\n    function _burn(address by, address from, uint256 id, uint256 amount) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, address(0), _single(id), _single(amount), \"\");\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let from_ := shl(96, from)\n            mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, from_))\n            // If `by` is not the zero address, and not equal to `from`,\n            // check if it is approved to manage all the tokens of `from`.\n            if iszero(or(iszero(shl(96, by)), eq(shl(96, by), from_))) {\n                mstore(0x00, by)\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Decrease and store the updated balance of `from`.\n            {\n                mstore(0x00, id)\n                let fromBalanceSlot := keccak256(0x00, 0x40)\n                let fromBalance := sload(fromBalanceSlot)\n                if gt(amount, fromBalance) {\n                    mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(fromBalanceSlot, sub(fromBalance, amount))\n            }\n            // Emit a {TransferSingle} event.\n            mstore(0x20, amount)\n            log4(0x00, 0x40, _TRANSFER_SINGLE_EVENT_SIGNATURE, caller(), shr(96, from_), 0)\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, address(0), _single(id), _single(amount), \"\");\n        }\n    }\n\n    /// @dev Equivalent to `_batchBurn(address(0), from, ids, amounts)`.\n    function _batchBurn(address from, uint256[] memory ids, uint256[] memory amounts)\n        internal\n        virtual\n    {\n        _batchBurn(address(0), from, ids, amounts);\n    }\n\n    /// @dev Destroys `amounts` of `ids` from `from`.\n    ///\n    /// Requirements:\n    /// - `ids` and `amounts` must have the same length.\n    /// - `from` must have at least `amounts` of `ids`.\n    /// - If `by` is not the zero address, it must be either `from`,\n    ///   or approved to manage the tokens of `from`.\n    ///\n    /// Emits a {TransferBatch} event.\n    function _batchBurn(address by, address from, uint256[] memory ids, uint256[] memory amounts)\n        internal\n        virtual\n    {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, address(0), ids, amounts, \"\");\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(mload(ids), mload(amounts))) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            let from_ := shl(96, from)\n            mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, from_))\n            // If `by` is not the zero address, and not equal to `from`,\n            // check if it is approved to manage all the tokens of `from`.\n            let by_ := shl(96, by)\n            if iszero(or(iszero(by_), eq(by_, from_))) {\n                mstore(0x00, by)\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Loop through all the `ids` and update the balances.\n            {\n                for { let i := shl(5, mload(ids)) } i { i := sub(i, 0x20) } {\n                    let amount := mload(add(amounts, i))\n                    // Decrease and store the updated balance of `from`.\n                    {\n                        mstore(0x00, mload(add(ids, i)))\n                        let fromBalanceSlot := keccak256(0x00, 0x40)\n                        let fromBalance := sload(fromBalanceSlot)\n                        if gt(amount, fromBalance) {\n                            mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(fromBalanceSlot, sub(fromBalance, amount))\n                    }\n                }\n            }\n            // Emit a {TransferBatch} event.\n            {\n                let m := mload(0x40)\n                // Copy the `ids`.\n                mstore(m, 0x40)\n                let n := add(0x20, shl(5, mload(ids)))\n                let o := add(m, 0x40)\n                pop(staticcall(gas(), 4, ids, n, o, n))\n                // Copy the `amounts`.\n                mstore(add(m, 0x20), add(0x40, returndatasize()))\n                o := add(o, returndatasize())\n                n := add(0x20, shl(5, mload(amounts)))\n                pop(staticcall(gas(), 4, amounts, n, o, n))\n                n := sub(add(o, returndatasize()), m)\n                // Do the emit.\n                log4(m, n, _TRANSFER_BATCH_EVENT_SIGNATURE, caller(), shr(96, from_), 0)\n            }\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, address(0), ids, amounts, \"\");\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                INTERNAL APPROVAL FUNCTIONS                 */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Approve or remove the `operator` as an operator for `by`,\n    /// without authorization checks.\n    ///\n    /// Emits a {ApprovalForAll} event.\n    function _setApprovalForAll(address by, address operator, bool isApproved) internal virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Convert to 0 or 1.\n            isApproved := iszero(iszero(isApproved))\n            // Update the `isApproved` for (`by`, `operator`).\n            mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n            mstore(0x14, by)\n            mstore(0x00, operator)\n            sstore(keccak256(0x0c, 0x34), isApproved)\n            // Emit the {ApprovalForAll} event.\n            mstore(0x00, isApproved)\n            let m := shr(96, not(0))\n            log3(0x00, 0x20, _APPROVAL_FOR_ALL_EVENT_SIGNATURE, and(m, by), and(m, operator))\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                INTERNAL TRANSFER FUNCTIONS                 */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Equivalent to `_safeTransfer(address(0), from, to, id, amount, data)`.\n    function _safeTransfer(address from, address to, uint256 id, uint256 amount, bytes memory data)\n        internal\n        virtual\n    {\n        _safeTransfer(address(0), from, to, id, amount, data);\n    }\n\n    /// @dev Transfers `amount` of `id` from `from` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `from` must have at least `amount` of `id`.\n    /// - If `by` is not the zero address, it must be either `from`,\n    ///   or approved to manage the tokens of `from`.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155Received}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferSingle} event.\n    function _safeTransfer(\n        address by,\n        address from,\n        address to,\n        uint256 id,\n        uint256 amount,\n        bytes memory data\n    ) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, to, _single(id), _single(amount), data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let from_ := shl(96, from)\n            let to_ := shl(96, to)\n            // Revert if `to` is the zero address.\n            if iszero(to_) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, from_))\n            // If `by` is not the zero address, and not equal to `from`,\n            // check if it is approved to manage all the tokens of `from`.\n            let by_ := shl(96, by)\n            if iszero(or(iszero(by_), eq(by_, from_))) {\n                mstore(0x00, by)\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Subtract and store the updated balance of `from`.\n            {\n                mstore(0x00, id)\n                let fromBalanceSlot := keccak256(0x00, 0x40)\n                let fromBalance := sload(fromBalanceSlot)\n                if gt(amount, fromBalance) {\n                    mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(fromBalanceSlot, sub(fromBalance, amount))\n            }\n            // Increase and store the updated balance of `to`.\n            {\n                mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, to_))\n                let toBalanceSlot := keccak256(0x00, 0x40)\n                let toBalanceBefore := sload(toBalanceSlot)\n                let toBalanceAfter := add(toBalanceBefore, amount)\n                if lt(toBalanceAfter, toBalanceBefore) {\n                    mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(toBalanceSlot, toBalanceAfter)\n            }\n            // Emit a {TransferSingle} event.\n            mstore(0x20, amount)\n            // forgefmt: disable-next-line\n            log4(0x00, 0x40, _TRANSFER_SINGLE_EVENT_SIGNATURE, caller(), shr(96, from_), shr(96, to_))\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, to, _single(id), _single(amount), data);\n        }\n        if (_hasCode(to)) _checkOnERC1155Received(from, to, id, amount, data);\n    }\n\n    /// @dev Equivalent to `_safeBatchTransfer(address(0), from, to, ids, amounts, data)`.\n    function _safeBatchTransfer(\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {\n        _safeBatchTransfer(address(0), from, to, ids, amounts, data);\n    }\n\n    /// @dev Transfers `amounts` of `ids` from `from` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `ids` and `amounts` must have the same length.\n    /// - `from` must have at least `amounts` of `ids`.\n    /// - If `by` is not the zero address, it must be either `from`,\n    ///   or approved to manage the tokens of `from`.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155BatchReceived}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferBatch} event.\n    function _safeBatchTransfer(\n        address by,\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, to, ids, amounts, data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(mload(ids), mload(amounts))) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            let from_ := shl(96, from)\n            let to_ := shl(96, to)\n            // Revert if `to` is the zero address.\n            if iszero(to_) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            let fromSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, from_)\n            let toSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, to_)\n            mstore(0x20, fromSlotSeed)\n            // If `by` is not the zero address, and not equal to `from`,\n            // check if it is approved to manage all the tokens of `from`.\n            let by_ := shl(96, by)\n            if iszero(or(iszero(by_), eq(by_, from_))) {\n                mstore(0x00, by)\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Loop through all the `ids` and update the balances.\n            {\n                for { let i := shl(5, mload(ids)) } i { i := sub(i, 0x20) } {\n                    let amount := mload(add(amounts, i))\n                    // Subtract and store the updated balance of `from`.\n                    {\n                        mstore(0x20, fromSlotSeed)\n                        mstore(0x00, mload(add(ids, i)))\n                        let fromBalanceSlot := keccak256(0x00, 0x40)\n                        let fromBalance := sload(fromBalanceSlot)\n                        if gt(amount, fromBalance) {\n                            mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(fromBalanceSlot, sub(fromBalance, amount))\n                    }\n                    // Increase and store the updated balance of `to`.\n                    {\n                        mstore(0x20, toSlotSeed)\n                        let toBalanceSlot := keccak256(0x00, 0x40)\n                        let toBalanceBefore := sload(toBalanceSlot)\n                        let toBalanceAfter := add(toBalanceBefore, amount)\n                        if lt(toBalanceAfter, toBalanceBefore) {\n                            mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(toBalanceSlot, toBalanceAfter)\n                    }\n                }\n            }\n            // Emit a {TransferBatch} event.\n            {\n                let m := mload(0x40)\n                // Copy the `ids`.\n                mstore(m, 0x40)\n                let n := add(0x20, shl(5, mload(ids)))\n                let o := add(m, 0x40)\n                pop(staticcall(gas(), 4, ids, n, o, n))\n                // Copy the `amounts`.\n                mstore(add(m, 0x20), add(0x40, returndatasize()))\n                o := add(o, returndatasize())\n                n := add(0x20, shl(5, mload(amounts)))\n                pop(staticcall(gas(), 4, amounts, n, o, n))\n                n := sub(add(o, returndatasize()), m)\n                // Do the emit.\n                log4(m, n, _TRANSFER_BATCH_EVENT_SIGNATURE, caller(), shr(96, from_), shr(96, to_))\n            }\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, to, ids, amounts, data);\n        }\n        if (_hasCode(to)) _checkOnERC1155BatchReceived(from, to, ids, amounts, data);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    HOOKS FOR OVERRIDING                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Override this function to return true if `_beforeTokenTransfer` is used.\n    /// This is to help the compiler avoid producing dead bytecode.\n    function _useBeforeTokenTransfer() internal view virtual returns (bool) {\n        return false;\n    }\n\n    /// @dev Hook that is called before any token transfer.\n    /// This includes minting and burning, as well as batched variants.\n    ///\n    /// The same hook is called on both single and batched variants.\n    /// For single transfers, the length of the `id` and `amount` arrays are 1.\n    function _beforeTokenTransfer(\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {}\n\n    /// @dev Override this function to return true if `_afterTokenTransfer` is used.\n    /// This is to help the compiler avoid producing dead bytecode.\n    function _useAfterTokenTransfer() internal view virtual returns (bool) {\n        return false;\n    }\n\n    /// @dev Hook that is called after any token transfer.\n    /// This includes minting and burning, as well as batched variants.\n    ///\n    /// The same hook is called on both single and batched variants.\n    /// For single transfers, the length of the `id` and `amount` arrays are 1.\n    function _afterTokenTransfer(\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {}\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      PRIVATE HELPERS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Helper for calling the `_afterTokenTransfer` hook.\n    /// This is to help the compiler avoid producing dead bytecode.\n    function _afterTokenTransferCalldata(\n        address from,\n        address to,\n        uint256[] calldata ids,\n        uint256[] calldata amounts,\n        bytes calldata data\n    ) private {\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, to, ids, amounts, data);\n        }\n    }\n\n    /// @dev Returns if `a` has bytecode of non-zero length.\n    function _hasCode(address a) private view returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := extcodesize(a) // Can handle dirty upper bits.\n        }\n    }\n\n    /// @dev Perform a call to invoke {IERC1155Receiver-onERC1155Received} on `to`.\n    /// Reverts if the target does not support the function correctly.\n    function _checkOnERC1155Received(\n        address from,\n        address to,\n        uint256 id,\n        uint256 amount,\n        bytes memory data\n    ) private {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Prepare the calldata.\n            let m := mload(0x40)\n            // `onERC1155Received(address,address,uint256,uint256,bytes)`.\n            mstore(m, 0xf23a6e61)\n            mstore(add(m, 0x20), caller())\n            mstore(add(m, 0x40), shr(96, shl(96, from)))\n            mstore(add(m, 0x60), id)\n            mstore(add(m, 0x80), amount)\n            mstore(add(m, 0xa0), 0xa0)\n            let n := mload(data)\n            mstore(add(m, 0xc0), n)\n            if n { pop(staticcall(gas(), 4, add(data, 0x20), n, add(m, 0xe0), n)) }\n            // Revert if the call reverts.\n            if iszero(call(gas(), to, 0, add(m, 0x1c), add(0xc4, n), m, 0x20)) {\n                if returndatasize() {\n                    // Bubble up the revert if the call reverts.\n                    returndatacopy(m, 0x00, returndatasize())\n                    revert(m, returndatasize())\n                }\n            }\n            // Load the returndata and compare it with the function selector.\n            if iszero(eq(mload(m), shl(224, 0xf23a6e61))) {\n                mstore(0x00, 0x9c05499b) // `TransferToNonERC1155ReceiverImplementer()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Perform a call to invoke {IERC1155Receiver-onERC1155BatchReceived} on `to`.\n    /// Reverts if the target does not support the function correctly.\n    function _checkOnERC1155BatchReceived(\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) private {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Prepare the calldata.\n            let m := mload(0x40)\n            // `onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)`.\n            mstore(m, 0xbc197c81)\n            mstore(add(m, 0x20), caller())\n            mstore(add(m, 0x40), shr(96, shl(96, from)))\n            // Copy the `ids`.\n            mstore(add(m, 0x60), 0xa0)\n            let n := add(0x20, shl(5, mload(ids)))\n            let o := add(m, 0xc0)\n            pop(staticcall(gas(), 4, ids, n, o, n))\n            // Copy the `amounts`.\n            let s := add(0xa0, returndatasize())\n            mstore(add(m, 0x80), s)\n            o := add(o, returndatasize())\n            n := add(0x20, shl(5, mload(amounts)))\n            pop(staticcall(gas(), 4, amounts, n, o, n))\n            // Copy the `data`.\n            mstore(add(m, 0xa0), add(s, returndatasize()))\n            o := add(o, returndatasize())\n            n := add(0x20, mload(data))\n            pop(staticcall(gas(), 4, data, n, o, n))\n            n := sub(add(o, returndatasize()), add(m, 0x1c))\n            // Revert if the call reverts.\n            if iszero(call(gas(), to, 0, add(m, 0x1c), n, m, 0x20)) {\n                if returndatasize() {\n                    // Bubble up the revert if the call reverts.\n                    returndatacopy(m, 0x00, returndatasize())\n                    revert(m, returndatasize())\n                }\n            }\n            // Load the returndata and compare it with the function selector.\n            if iszero(eq(mload(m), shl(224, 0xbc197c81))) {\n                mstore(0x00, 0x9c05499b) // `TransferToNonERC1155ReceiverImplementer()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Returns `x` in an array with a single element.\n    function _single(uint256 x) private pure returns (uint256[] memory result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := mload(0x40)\n            mstore(0x40, add(result, 0x40))\n            mstore(result, 1)\n            mstore(add(result, 0x20), x)\n        }\n    }\n}\n"},"lib/solady/src/utils/LibClone.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Minimal proxy library.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibClone.sol)\n/// @author Minimal proxy by 0age (https://github.com/0age)\n/// @author Clones with immutable args by wighawag, zefram.eth, Saw-mon & Natalie\n/// (https://github.com/Saw-mon-and-Natalie/clones-with-immutable-args)\n/// @author Minimal ERC1967 proxy by jtriley-eth (https://github.com/jtriley-eth/minimum-viable-proxy)\n///\n/// @dev Minimal proxy:\n/// Although the sw0nt pattern saves 5 gas over the ERC1167 pattern during runtime,\n/// it is not supported out-of-the-box on Etherscan. Hence, we choose to use the 0age pattern,\n/// which saves 4 gas over the ERC1167 pattern during runtime, and has the smallest bytecode.\n/// - Automatically verified on Etherscan.\n///\n/// @dev Minimal proxy (PUSH0 variant):\n/// This is a new minimal proxy that uses the PUSH0 opcode introduced during Shanghai.\n/// It is optimized first for minimal runtime gas, then for minimal bytecode.\n/// The PUSH0 clone functions are intentionally postfixed with a jarring \"_PUSH0\" as\n/// many EVM chains may not support the PUSH0 opcode in the early months after Shanghai.\n/// Please use with caution.\n/// - Automatically verified on Etherscan.\n///\n/// @dev Clones with immutable args (CWIA):\n/// The implementation of CWIA here does NOT append the immutable args into the calldata\n/// passed into delegatecall. It is simply an ERC1167 minimal proxy with the immutable arguments\n/// appended to the back of the runtime bytecode.\n/// - Uses the identity precompile (0x4) to copy args during deployment.\n///\n/// @dev Minimal ERC1967 proxy:\n/// A minimal ERC1967 proxy, intended to be upgraded with UUPS.\n/// This is NOT the same as ERC1967Factory's transparent proxy, which includes admin logic.\n/// - Automatically verified on Etherscan.\n///\n/// @dev Minimal ERC1967 proxy with immutable args:\n/// - Uses the identity precompile (0x4) to copy args during deployment.\n/// - Automatically verified on Etherscan.\n///\n/// @dev ERC1967I proxy:\n/// A variant of the minimal ERC1967 proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// `implementation` address. The returned implementation is guaranteed to be valid if the\n/// keccak256 of the proxy's code is equal to `ERC1967I_CODE_HASH`.\n///\n/// @dev ERC1967I proxy with immutable args:\n/// A variant of the minimal ERC1967 proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// - Uses the identity precompile (0x4) to copy args during deployment.\n///\n/// @dev Minimal ERC1967 beacon proxy:\n/// A minimal beacon proxy, intended to be upgraded with an upgradable beacon.\n/// - Automatically verified on Etherscan.\n///\n/// @dev Minimal ERC1967 beacon proxy with immutable args:\n/// - Uses the identity precompile (0x4) to copy args during deployment.\n/// - Automatically verified on Etherscan.\n///\n/// @dev ERC1967I beacon proxy:\n/// A variant of the minimal ERC1967 beacon proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// `implementation` address. The returned implementation is guaranteed to be valid if the\n/// keccak256 of the proxy's code is equal to `ERC1967I_CODE_HASH`.\n///\n/// @dev ERC1967I proxy with immutable args:\n/// A variant of the minimal ERC1967 beacon proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// - Uses the identity precompile (0x4) to copy args during deployment.\nlibrary LibClone {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The keccak256 of deployed code for the clone proxy,\n    /// with the implementation set to `address(0)`.\n    bytes32 internal constant CLONE_CODE_HASH =\n        0x48db2cfdb2853fce0b464f1f93a1996469459df3ab6c812106074c4106a1eb1f;\n\n    /// @dev The keccak256 of deployed code for the PUSH0 proxy,\n    /// with the implementation set to `address(0)`.\n    bytes32 internal constant PUSH0_CLONE_CODE_HASH =\n        0x67bc6bde1b84d66e267c718ba44cf3928a615d29885537955cb43d44b3e789dc;\n\n    /// @dev The keccak256 of deployed code for the ERC-1167 CWIA proxy,\n    /// with the implementation set to `address(0)`.\n    bytes32 internal constant CWIA_CODE_HASH =\n        0x3cf92464268225a4513da40a34d967354684c32cd0edd67b5f668dfe3550e940;\n\n    /// @dev The keccak256 of the deployed code for the ERC1967 proxy.\n    bytes32 internal constant ERC1967_CODE_HASH =\n        0xaaa52c8cc8a0e3fd27ce756cc6b4e70c51423e9b597b11f32d3e49f8b1fc890d;\n\n    /// @dev The keccak256 of the deployed code for the ERC1967I proxy.\n    bytes32 internal constant ERC1967I_CODE_HASH =\n        0xce700223c0d4cea4583409accfc45adac4a093b3519998a9cbbe1504dadba6f7;\n\n    /// @dev The keccak256 of the deployed code for the ERC1967 beacon proxy.\n    bytes32 internal constant ERC1967_BEACON_PROXY_CODE_HASH =\n        0x14044459af17bc4f0f5aa2f658cb692add77d1302c29fe2aebab005eea9d1162;\n\n    /// @dev The keccak256 of the deployed code for the ERC1967 beacon proxy.\n    bytes32 internal constant ERC1967I_BEACON_PROXY_CODE_HASH =\n        0xf8c46d2793d5aa984eb827aeaba4b63aedcab80119212fce827309788735519a;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Unable to deploy the clone.\n    error DeploymentFailed();\n\n    /// @dev The salt must start with either the zero address or `by`.\n    error SaltDoesNotStartWith();\n\n    /// @dev The ETH transfer has failed.\n    error ETHTransferFailed();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  MINIMAL PROXY OPERATIONS                  */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a clone of `implementation`.\n    function clone(address implementation) internal returns (address instance) {\n        instance = clone(0, implementation);\n    }\n\n    /// @dev Deploys a clone of `implementation`.\n    /// Deposits `value` ETH during deployment.\n    function clone(uint256 value, address implementation) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * --------------------------------------------------------------------------+\n             * CREATION (9 bytes)                                                        |\n             * --------------------------------------------------------------------------|\n             * Opcode     | Mnemonic          | Stack     | Memory                       |\n             * --------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize     | r         |                              |\n             * 3d         | RETURNDATASIZE    | 0 r       |                              |\n             * 81         | DUP2              | r 0 r     |                              |\n             * 60 offset  | PUSH1 offset      | o r 0 r   |                              |\n             * 3d         | RETURNDATASIZE    | 0 o r 0 r |                              |\n             * 39         | CODECOPY          | 0 r       | [0..runSize): runtime code   |\n             * f3         | RETURN            |           | [0..runSize): runtime code   |\n             * --------------------------------------------------------------------------|\n             * RUNTIME (44 bytes)                                                        |\n             * --------------------------------------------------------------------------|\n             * Opcode  | Mnemonic       | Stack                  | Memory                |\n             * --------------------------------------------------------------------------|\n             *                                                                           |\n             * ::: keep some values in stack ::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d      | RETURNDATASIZE | 0                      |                       |\n             * 3d      | RETURNDATASIZE | 0 0                    |                       |\n             * 3d      | RETURNDATASIZE | 0 0 0                  |                       |\n             * 3d      | RETURNDATASIZE | 0 0 0 0                |                       |\n             *                                                                           |\n             * ::: copy calldata to memory ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36      | CALLDATASIZE   | cds 0 0 0 0            |                       |\n             * 3d      | RETURNDATASIZE | 0 cds 0 0 0 0          |                       |\n             * 3d      | RETURNDATASIZE | 0 0 cds 0 0 0 0        |                       |\n             * 37      | CALLDATACOPY   | 0 0 0 0                | [0..cds): calldata    |\n             *                                                                           |\n             * ::: delegate call to the implementation contract :::::::::::::::::::::::: |\n             * 36      | CALLDATASIZE   | cds 0 0 0 0            | [0..cds): calldata    |\n             * 3d      | RETURNDATASIZE | 0 cds 0 0 0 0          | [0..cds): calldata    |\n             * 73 addr | PUSH20 addr    | addr 0 cds 0 0 0 0     | [0..cds): calldata    |\n             * 5a      | GAS            | gas addr 0 cds 0 0 0 0 | [0..cds): calldata    |\n             * f4      | DELEGATECALL   | success 0 0            | [0..cds): calldata    |\n             *                                                                           |\n             * ::: copy return data to memory :::::::::::::::::::::::::::::::::::::::::: |\n             * 3d      | RETURNDATASIZE | rds success 0 0        | [0..cds): calldata    |\n             * 3d      | RETURNDATASIZE | rds rds success 0 0    | [0..cds): calldata    |\n             * 93      | SWAP4          | 0 rds success 0 rds    | [0..cds): calldata    |\n             * 80      | DUP1           | 0 0 rds success 0 rds  | [0..cds): calldata    |\n             * 3e      | RETURNDATACOPY | success 0 rds          | [0..rds): returndata  |\n             *                                                                           |\n             * 60 0x2a | PUSH1 0x2a     | 0x2a success 0 rds     | [0..rds): returndata  |\n             * 57      | JUMPI          | 0 rds                  | [0..rds): returndata  |\n             *                                                                           |\n             * ::: revert :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * fd      | REVERT         |                        | [0..rds): returndata  |\n             *                                                                           |\n             * ::: return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b      | JUMPDEST       | 0 rds                  | [0..rds): returndata  |\n             * f3      | RETURN         |                        | [0..rds): returndata  |\n             * --------------------------------------------------------------------------+\n             */\n            mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n            mstore(0x14, implementation)\n            mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n            instance := create(value, 0x0c, 0x35)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation` with `salt`.\n    function cloneDeterministic(address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = cloneDeterministic(0, implementation, salt);\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation` with `salt`.\n    /// Deposits `value` ETH during deployment.\n    function cloneDeterministic(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n            mstore(0x14, implementation)\n            mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n            instance := create2(value, 0x0c, 0x35, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the clone of `implementation`.\n    function initCode(address implementation) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x40), 0x5af43d3d93803e602a57fd5bf30000000000000000000000)\n            mstore(add(c, 0x28), implementation)\n            mstore(add(c, 0x14), 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n            mstore(c, 0x35) // Store the length.\n            mstore(0x40, add(c, 0x60)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the clone of `implementation`.\n    function initCodeHash(address implementation) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n            mstore(0x14, implementation)\n            mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n            hash := keccak256(0x0c, 0x35)\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the address of the clone of `implementation`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddress(address implementation, bytes32 salt, address deployer)\n        internal\n        pure\n        returns (address predicted)\n    {\n        bytes32 hash = initCodeHash(implementation);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*          MINIMAL PROXY OPERATIONS (PUSH0 VARIANT)          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a PUSH0 clone of `implementation`.\n    function clone_PUSH0(address implementation) internal returns (address instance) {\n        instance = clone_PUSH0(0, implementation);\n    }\n\n    /// @dev Deploys a PUSH0 clone of `implementation`.\n    /// Deposits `value` ETH during deployment.\n    function clone_PUSH0(uint256 value, address implementation)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * --------------------------------------------------------------------------+\n             * CREATION (9 bytes)                                                        |\n             * --------------------------------------------------------------------------|\n             * Opcode     | Mnemonic          | Stack     | Memory                       |\n             * --------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize     | r         |                              |\n             * 5f         | PUSH0             | 0 r       |                              |\n             * 81         | DUP2              | r 0 r     |                              |\n             * 60 offset  | PUSH1 offset      | o r 0 r   |                              |\n             * 5f         | PUSH0             | 0 o r 0 r |                              |\n             * 39         | CODECOPY          | 0 r       | [0..runSize): runtime code   |\n             * f3         | RETURN            |           | [0..runSize): runtime code   |\n             * --------------------------------------------------------------------------|\n             * RUNTIME (45 bytes)                                                        |\n             * --------------------------------------------------------------------------|\n             * Opcode  | Mnemonic       | Stack                  | Memory                |\n             * --------------------------------------------------------------------------|\n             *                                                                           |\n             * ::: keep some values in stack ::::::::::::::::::::::::::::::::::::::::::: |\n             * 5f      | PUSH0          | 0                      |                       |\n             * 5f      | PUSH0          | 0 0                    |                       |\n             *                                                                           |\n             * ::: copy calldata to memory ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36      | CALLDATASIZE   | cds 0 0                |                       |\n             * 5f      | PUSH0          | 0 cds 0 0              |                       |\n             * 5f      | PUSH0          | 0 0 cds 0 0            |                       |\n             * 37      | CALLDATACOPY   | 0 0                    | [0..cds): calldata    |\n             *                                                                           |\n             * ::: delegate call to the implementation contract :::::::::::::::::::::::: |\n             * 36      | CALLDATASIZE   | cds 0 0                | [0..cds): calldata    |\n             * 5f      | PUSH0          | 0 cds 0 0              | [0..cds): calldata    |\n             * 73 addr | PUSH20 addr    | addr 0 cds 0 0         | [0..cds): calldata    |\n             * 5a      | GAS            | gas addr 0 cds 0 0     | [0..cds): calldata    |\n             * f4      | DELEGATECALL   | success                | [0..cds): calldata    |\n             *                                                                           |\n             * ::: copy return data to memory :::::::::::::::::::::::::::::::::::::::::: |\n             * 3d      | RETURNDATASIZE | rds success            | [0..cds): calldata    |\n             * 5f      | PUSH0          | 0 rds success          | [0..cds): calldata    |\n             * 5f      | PUSH0          | 0 0 rds success        | [0..cds): calldata    |\n             * 3e      | RETURNDATACOPY | success                | [0..rds): returndata  |\n             *                                                                           |\n             * 60 0x29 | PUSH1 0x29     | 0x29 success           | [0..rds): returndata  |\n             * 57      | JUMPI          |                        | [0..rds): returndata  |\n             *                                                                           |\n             * ::: revert :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d      | RETURNDATASIZE | rds                    | [0..rds): returndata  |\n             * 5f      | PUSH0          | 0 rds                  | [0..rds): returndata  |\n             * fd      | REVERT         |                        | [0..rds): returndata  |\n             *                                                                           |\n             * ::: return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b      | JUMPDEST       |                        | [0..rds): returndata  |\n             * 3d      | RETURNDATASIZE | rds                    | [0..rds): returndata  |\n             * 5f      | PUSH0          | 0 rds                  | [0..rds): returndata  |\n             * f3      | RETURN         |                        | [0..rds): returndata  |\n             * --------------------------------------------------------------------------+\n             */\n            mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n            mstore(0x14, implementation) // 20\n            mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n            instance := create(value, 0x0e, 0x36)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Deploys a deterministic PUSH0 clone of `implementation` with `salt`.\n    function cloneDeterministic_PUSH0(address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = cloneDeterministic_PUSH0(0, implementation, salt);\n    }\n\n    /// @dev Deploys a deterministic PUSH0 clone of `implementation` with `salt`.\n    /// Deposits `value` ETH during deployment.\n    function cloneDeterministic_PUSH0(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n            mstore(0x14, implementation) // 20\n            mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n            instance := create2(value, 0x0e, 0x36, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the PUSH0 clone of `implementation`.\n    function initCode_PUSH0(address implementation) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x40), 0x5af43d5f5f3e6029573d5ffd5b3d5ff300000000000000000000) // 16\n            mstore(add(c, 0x26), implementation) // 20\n            mstore(add(c, 0x12), 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n            mstore(c, 0x36) // Store the length.\n            mstore(0x40, add(c, 0x60)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the PUSH0 clone of `implementation`.\n    function initCodeHash_PUSH0(address implementation) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n            mstore(0x14, implementation) // 20\n            mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n            hash := keccak256(0x0e, 0x36)\n            mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the address of the PUSH0 clone of `implementation`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddress_PUSH0(\n        address implementation,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHash_PUSH0(implementation);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*           CLONES WITH IMMUTABLE ARGS OPERATIONS            */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a clone of `implementation` with immutable arguments encoded in `args`.\n    function clone(address implementation, bytes memory args) internal returns (address instance) {\n        instance = clone(0, implementation, args);\n    }\n\n    /// @dev Deploys a clone of `implementation` with immutable arguments encoded in `args`.\n    /// Deposits `value` ETH during deployment.\n    function clone(uint256 value, address implementation, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------+\n             * CREATION (10 bytes)                                                        |\n             * ---------------------------------------------------------------------------|\n             * Opcode     | Mnemonic          | Stack     | Memory                        |\n             * ---------------------------------------------------------------------------|\n             * 61 runSize | PUSH2 runSize     | r         |                               |\n             * 3d         | RETURNDATASIZE    | 0 r       |                               |\n             * 81         | DUP2              | r 0 r     |                               |\n             * 60 offset  | PUSH1 offset      | o r 0 r   |                               |\n             * 3d         | RETURNDATASIZE    | 0 o r 0 r |                               |\n             * 39         | CODECOPY          | 0 r       | [0..runSize): runtime code    |\n             * f3         | RETURN            |           | [0..runSize): runtime code    |\n             * ---------------------------------------------------------------------------|\n             * RUNTIME (45 bytes + extraLength)                                           |\n             * ---------------------------------------------------------------------------|\n             * Opcode   | Mnemonic       | Stack                  | Memory                |\n             * ---------------------------------------------------------------------------|\n             *                                                                            |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36       | CALLDATASIZE   | cds                    |                       |\n             * 3d       | RETURNDATASIZE | 0 cds                  |                       |\n             * 3d       | RETURNDATASIZE | 0 0 cds                |                       |\n             * 37       | CALLDATACOPY   |                        | [0..cds): calldata    |\n             *                                                                            |\n             * ::: delegate call to the implementation contract ::::::::::::::::::::::::: |\n             * 3d       | RETURNDATASIZE | 0                      | [0..cds): calldata    |\n             * 3d       | RETURNDATASIZE | 0 0                    | [0..cds): calldata    |\n             * 3d       | RETURNDATASIZE | 0 0 0                  | [0..cds): calldata    |\n             * 36       | CALLDATASIZE   | cds 0 0 0              | [0..cds): calldata    |\n             * 3d       | RETURNDATASIZE | 0 cds 0 0 0 0          | [0..cds): calldata    |\n             * 73 addr  | PUSH20 addr    | addr 0 cds 0 0 0 0     | [0..cds): calldata    |\n             * 5a       | GAS            | gas addr 0 cds 0 0 0 0 | [0..cds): calldata    |\n             * f4       | DELEGATECALL   | success 0 0            | [0..cds): calldata    |\n             *                                                                            |\n             * ::: copy return data to memory ::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d       | RETURNDATASIZE | rds success 0          | [0..cds): calldata    |\n             * 82       | DUP3           | 0 rds success 0         | [0..cds): calldata   |\n             * 80       | DUP1           | 0 0 rds success 0      | [0..cds): calldata    |\n             * 3e       | RETURNDATACOPY | success 0              | [0..rds): returndata  |\n             * 90       | SWAP1          | 0 success              | [0..rds): returndata  |\n             * 3d       | RETURNDATASIZE | rds 0 success          | [0..rds): returndata  |\n             * 91       | SWAP2          | success 0 rds          | [0..rds): returndata  |\n             *                                                                            |\n             * 60 0x2b  | PUSH1 0x2b     | 0x2b success 0 rds     | [0..rds): returndata  |\n             * 57       | JUMPI          | 0 rds                  | [0..rds): returndata  |\n             *                                                                            |\n             * ::: revert ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * fd       | REVERT         |                        | [0..rds): returndata  |\n             *                                                                            |\n             * ::: return ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b       | JUMPDEST       | 0 rds                  | [0..rds): returndata  |\n             * f3       | RETURN         |                        | [0..rds): returndata  |\n             * ---------------------------------------------------------------------------+\n             */\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x43), n))\n            mstore(add(m, 0x23), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0xfe61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            instance := create(value, add(m, add(0x0b, lt(n, 0xffd3))), add(n, 0x37))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation`\n    /// with immutable arguments encoded in `args` and `salt`.\n    function cloneDeterministic(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = cloneDeterministic(0, implementation, args, salt);\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation`\n    /// with immutable arguments encoded in `args` and `salt`.\n    function cloneDeterministic(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x43), n))\n            mstore(add(m, 0x23), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0xfe61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            instance := create2(value, add(m, add(0x0b, lt(n, 0xffd3))), add(n, 0x37), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation`\n    /// with immutable arguments encoded in `args` and `salt`.\n    /// This method does not revert if the clone has already been deployed.\n    function createDeterministicClone(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicClone(0, implementation, args, salt);\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation`\n    /// with immutable arguments encoded in `args` and `salt`.\n    /// This method does not revert if the clone has already been deployed.\n    function createDeterministicClone(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x43), n))\n            mstore(add(m, 0x23), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(m, 0x14), implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            // forgefmt: disable-next-item\n            mstore(add(m, gt(n, 0xffd2)), add(0xfe61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(add(m, 0x0c), add(n, 0x37)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, add(m, 0x0c), add(n, 0x37), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the clone of `implementation`\n    /// using immutable arguments encoded in `args`.\n    function initCode(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffd2))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x57), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x37), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(c, 0x28), implementation)\n            mstore(add(c, 0x14), add(0x61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            mstore(c, add(0x37, n)) // Store the length.\n            mstore(add(c, add(n, 0x57)), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(c, add(n, 0x77))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the clone of `implementation`\n    /// using immutable arguments encoded in `args`.\n    function initCodeHash(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffd2))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(m, 0x43), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(m, 0x23), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0x61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            hash := keccak256(add(m, 0x0c), add(n, 0x37))\n        }\n    }\n\n    /// @dev Returns the address of the clone of\n    /// `implementation` using immutable arguments encoded in `args`, with `salt`, by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddress(\n        address implementation,\n        bytes memory data,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHash(implementation, data);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnClone(instance, 0, 2 ** 256 - 1)`.\n    function argsOnClone(address instance) internal view returns (bytes memory args) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x2d))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x2d, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnClone(instance, start, 2 ** 256 - 1)`.\n    function argsOnClone(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x2d))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x0d), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(args, add(0x40, mload(args)))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the clone with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnClone(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x0d), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x2d)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*              MINIMAL ERC1967 PROXY OPERATIONS              */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: The ERC1967 proxy here is intended to be upgraded with UUPS.\n    // This is NOT the same as ERC1967Factory's transparent proxy, which includes admin logic.\n\n    /// @dev Deploys a minimal ERC1967 proxy with `implementation`.\n    function deployERC1967(address implementation) internal returns (address instance) {\n        instance = deployERC1967(0, implementation);\n    }\n\n    /// @dev Deploys a minimal ERC1967 proxy with `implementation`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967(uint256 value, address implementation)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------------+\n             * CREATION (34 bytes)                                                              |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize  | r                |                                 |\n             * 3d         | RETURNDATASIZE | 0 r              |                                 |\n             * 81         | DUP2           | r 0 r            |                                 |\n             * 60 offset  | PUSH1 offset   | o r 0 r          |                                 |\n             * 3d         | RETURNDATASIZE | 0 o r 0 r        |                                 |\n             * 39         | CODECOPY       | 0 r              | [0..runSize): runtime code      |\n             * 73 impl    | PUSH20 impl    | impl 0 r         | [0..runSize): runtime code      |\n             * 60 slotPos | PUSH1 slotPos  | slotPos impl 0 r | [0..runSize): runtime code      |\n             * 51         | MLOAD          | slot impl 0 r    | [0..runSize): runtime code      |\n             * 55         | SSTORE         | 0 r              | [0..runSize): runtime code      |\n             * f3         | RETURN         |                  | [0..runSize): runtime code      |\n             * ---------------------------------------------------------------------------------|\n             * RUNTIME (61 bytes)                                                               |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             *                                                                                  |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 3d         | RETURNDATASIZE | 0 cds            |                                 |\n             * 3d         | RETURNDATASIZE | 0 0 cds          |                                 |\n             * 37         | CALLDATACOPY   |                  | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | 0                |                                 |\n             * 3d         | RETURNDATASIZE | 0 0              |                                 |\n             * 36         | CALLDATASIZE   | cds 0 0          | [0..calldatasize): calldata     |\n             * 3d         | RETURNDATASIZE | 0 cds 0 0        | [0..calldatasize): calldata     |\n             * 7f slot    | PUSH32 slot    | s 0 cds 0 0      | [0..calldatasize): calldata     |\n             * 54         | SLOAD          | i 0 cds 0 0      | [0..calldatasize): calldata     |\n             * 5a         | GAS            | g i 0 cds 0 0    | [0..calldatasize): calldata     |\n             * f4         | DELEGATECALL   | succ             | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds succ         | [0..calldatasize): calldata     |\n             * 60 0x00    | PUSH1 0x00     | 0 rds succ       | [0..calldatasize): calldata     |\n             * 80         | DUP1           | 0 0 rds succ     | [0..calldatasize): calldata     |\n             * 3e         | RETURNDATACOPY | succ             | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 60 0x38    | PUSH1 0x38     | dest succ        | [0..returndatasize): returndata |\n             * 57         | JUMPI          |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * fd         | REVERT         |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  | [0..returndatasize): returndata |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * f3         | RETURN         |                  | [0..returndatasize): returndata |\n             * ---------------------------------------------------------------------------------+\n             */\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x20, 0x6009)\n            mstore(0x1e, implementation)\n            mstore(0x0a, 0x603d3d8160223d3973)\n            instance := create(value, 0x21, 0x5f)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n    function deployDeterministicERC1967(address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967(0, implementation, salt);\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x20, 0x6009)\n            mstore(0x1e, implementation)\n            mstore(0x0a, 0x603d3d8160223d3973)\n            instance := create2(value, 0x21, 0x5f, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967(address implementation, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967(0, implementation, salt);\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x20, 0x6009)\n            mstore(0x1e, implementation)\n            mstore(0x0a, 0x603d3d8160223d3973)\n            // Compute and store the bytecode hash.\n            mstore(add(m, 0x35), keccak256(0x21, 0x5f))\n            mstore(m, shl(88, address()))\n            mstore8(m, 0xff) // Write the prefix.\n            mstore(add(m, 0x15), salt)\n            instance := keccak256(m, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, 0x21, 0x5f, salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the initialization code of the minimal ERC1967 proxy of `implementation`.\n    function initCodeERC1967(address implementation) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x60), 0x3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f300)\n            mstore(add(c, 0x40), 0x55f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076cc)\n            mstore(add(c, 0x20), or(shl(24, implementation), 0x600951))\n            mstore(add(c, 0x09), 0x603d3d8160223d3973)\n            mstore(c, 0x5f) // Store the length.\n            mstore(0x40, add(c, 0x80)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the minimal ERC1967 proxy of `implementation`.\n    function initCodeHashERC1967(address implementation) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x20, 0x6009)\n            mstore(0x1e, implementation)\n            mstore(0x0a, 0x603d3d8160223d3973)\n            hash := keccak256(0x21, 0x5f)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967 proxy of `implementation`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967(\n        address implementation,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967(implementation);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*    MINIMAL ERC1967 PROXY WITH IMMUTABLE ARGS OPERATIONS    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a minimal ERC1967 proxy with `implementation` and `args`.\n    function deployERC1967(address implementation, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        instance = deployERC1967(0, implementation, args);\n    }\n\n    /// @dev Deploys a minimal ERC1967 proxy with `implementation` and `args`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967(uint256 value, address implementation, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x60), n))\n            mstore(add(m, 0x40), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(m, 0x20), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x16, 0x6009)\n            mstore(0x14, implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            mstore(gt(n, 0xffc2), add(0xfe61003d3d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            instance := create(value, m, add(n, 0x60))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation`, `args` and `salt`.\n    function deployDeterministicERC1967(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967(0, implementation, args, salt);\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation`, `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x60), n))\n            mstore(add(m, 0x40), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(m, 0x20), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x16, 0x6009)\n            mstore(0x14, implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            mstore(gt(n, 0xffc2), add(0xfe61003d3d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            instance := create2(value, m, add(n, 0x60), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation`, `args` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967(0, implementation, args, salt);\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation`, `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x60), n))\n            mstore(add(m, 0x40), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(m, 0x20), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x16, 0x6009)\n            mstore(0x14, implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            mstore(gt(n, 0xffc2), add(0xfe61003d3d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(m, add(n, 0x60)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, m, add(n, 0x60), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the minimal ERC1967 proxy of `implementation` and `args`.\n    function initCodeERC1967(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffc2))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x80), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x60), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(c, 0x40), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(add(c, 0x20), 0x6009)\n            mstore(add(c, 0x1e), implementation)\n            mstore(add(c, 0x0a), add(0x61003d3d8160233d3973, shl(56, n)))\n            mstore(c, add(n, 0x60)) // Store the length.\n            mstore(add(c, add(n, 0x80)), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(c, add(n, 0xa0))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the minimal ERC1967 proxy of `implementation` and `args`.\n    function initCodeHashERC1967(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffc2))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(m, 0x60), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(m, 0x40), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(m, 0x20), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x16, 0x6009)\n            mstore(0x14, implementation)\n            mstore(0x00, add(0x61003d3d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            hash := keccak256(m, add(n, 0x60))\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967 proxy of `implementation`, `args`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967(\n        address implementation,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967(implementation, args);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnERC1967(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967(address instance) internal view returns (bytes memory args) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x3d))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x3d, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnERC1967(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x3d))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x1d), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(args, add(0x40, mload(args)))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the ERC1967 with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnERC1967(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x1d), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x3d)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                 ERC1967I PROXY OPERATIONS                  */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: This proxy has a special code path that activates if `calldatasize() == 1`.\n    // This code path skips the delegatecall and directly returns the `implementation` address.\n    // The returned implementation is guaranteed to be valid if the keccak256 of the\n    // proxy's code is equal to `ERC1967I_CODE_HASH`.\n\n    /// @dev Deploys a ERC1967I proxy with `implementation`.\n    function deployERC1967I(address implementation) internal returns (address instance) {\n        instance = deployERC1967I(0, implementation);\n    }\n\n    /// @dev Deploys a ERC1967I proxy with `implementation`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967I(uint256 value, address implementation)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------------+\n             * CREATION (34 bytes)                                                              |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize  | r                |                                 |\n             * 3d         | RETURNDATASIZE | 0 r              |                                 |\n             * 81         | DUP2           | r 0 r            |                                 |\n             * 60 offset  | PUSH1 offset   | o r 0 r          |                                 |\n             * 3d         | RETURNDATASIZE | 0 o r 0 r        |                                 |\n             * 39         | CODECOPY       | 0 r              | [0..runSize): runtime code      |\n             * 73 impl    | PUSH20 impl    | impl 0 r         | [0..runSize): runtime code      |\n             * 60 slotPos | PUSH1 slotPos  | slotPos impl 0 r | [0..runSize): runtime code      |\n             * 51         | MLOAD          | slot impl 0 r    | [0..runSize): runtime code      |\n             * 55         | SSTORE         | 0 r              | [0..runSize): runtime code      |\n             * f3         | RETURN         |                  | [0..runSize): runtime code      |\n             * ---------------------------------------------------------------------------------|\n             * RUNTIME (82 bytes)                                                               |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             *                                                                                  |\n             * ::: check calldatasize ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 58         | PC             | 1 cds            |                                 |\n             * 14         | EQ             | eqs              |                                 |\n             * 60 0x43    | PUSH1 0x43     | dest eqs         |                                 |\n             * 57         | JUMPI          |                  |                                 |\n             *                                                                                  |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 3d         | RETURNDATASIZE | 0 cds            |                                 |\n             * 3d         | RETURNDATASIZE | 0 0 cds          |                                 |\n             * 37         | CALLDATACOPY   |                  | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | 0                |                                 |\n             * 3d         | RETURNDATASIZE | 0 0              |                                 |\n             * 36         | CALLDATASIZE   | cds 0 0          | [0..calldatasize): calldata     |\n             * 3d         | RETURNDATASIZE | 0 cds 0 0        | [0..calldatasize): calldata     |\n             * 7f slot    | PUSH32 slot    | s 0 cds 0 0      | [0..calldatasize): calldata     |\n             * 54         | SLOAD          | i 0 cds 0 0      | [0..calldatasize): calldata     |\n             * 5a         | GAS            | g i 0 cds 0 0    | [0..calldatasize): calldata     |\n             * f4         | DELEGATECALL   | succ             | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds succ         | [0..calldatasize): calldata     |\n             * 60 0x00    | PUSH1 0x00     | 0 rds succ       | [0..calldatasize): calldata     |\n             * 80         | DUP1           | 0 0 rds succ     | [0..calldatasize): calldata     |\n             * 3e         | RETURNDATACOPY | succ             | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 60 0x3E    | PUSH1 0x3E     | dest succ        | [0..returndatasize): returndata |\n             * 57         | JUMPI          |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * fd         | REVERT         |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  | [0..returndatasize): returndata |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * f3         | RETURN         |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: implementation , return :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  |                                 |\n             * 60 0x20    | PUSH1 0x20     | 32               |                                 |\n             * 60 0x0F    | PUSH1 0x0F     | o 32             |                                 |\n             * 3d         | RETURNDATASIZE | 0 o 32           |                                 |\n             * 39         | CODECOPY       |                  | [0..32): implementation slot    |\n             * 3d         | RETURNDATASIZE | 0                | [0..32): implementation slot    |\n             * 51         | MLOAD          | slot             | [0..32): implementation slot    |\n             * 54         | SLOAD          | impl             | [0..32): implementation slot    |\n             * 3d         | RETURNDATASIZE | 0 impl           | [0..32): implementation slot    |\n             * 52         | MSTORE         |                  | [0..32): implementation address |\n             * 59         | MSIZE          | 32               | [0..32): implementation address |\n             * 3d         | RETURNDATASIZE | 0 32             | [0..32): implementation address |\n             * f3         | RETURN         |                  | [0..32): implementation address |\n             * ---------------------------------------------------------------------------------+\n             */\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n            instance := create(value, 0x0c, 0x74)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Deploys a deterministic ERC1967I proxy with `implementation` and `salt`.\n    function deployDeterministicERC1967I(address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967I(0, implementation, salt);\n    }\n\n    /// @dev Deploys a deterministic ERC1967I proxy with `implementation` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967I(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n            instance := create2(value, 0x0c, 0x74, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Creates a deterministic ERC1967I proxy with `implementation` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967I(address implementation, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967I(0, implementation, salt);\n    }\n\n    /// @dev Creates a deterministic ERC1967I proxy with `implementation` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967I(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n            // Compute and store the bytecode hash.\n            mstore(add(m, 0x35), keccak256(0x0c, 0x74))\n            mstore(m, shl(88, address()))\n            mstore8(m, 0xff) // Write the prefix.\n            mstore(add(m, 0x15), salt)\n            instance := keccak256(m, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, 0x0c, 0x74, salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the initialization code of the ERC1967I proxy of `implementation`.\n    function initCodeERC1967I(address implementation) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x74), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(c, 0x54), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(c, 0x34), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(add(c, 0x1d), implementation)\n            mstore(add(c, 0x09), 0x60523d8160223d3973)\n            mstore(add(c, 0x94), 0)\n            mstore(c, 0x74) // Store the length.\n            mstore(0x40, add(c, 0xa0)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967I proxy of `implementation`.\n    function initCodeHashERC1967I(address implementation) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n            hash := keccak256(0x0c, 0x74)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967I proxy of `implementation`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967I(\n        address implementation,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967I(implementation);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*       ERC1967I PROXY WITH IMMUTABLE ARGS OPERATIONS        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a minimal ERC1967I proxy with `implementation` and `args`.\n    function deployERC1967I(address implementation, bytes memory args) internal returns (address) {\n        return deployERC1967I(0, implementation, args);\n    }\n\n    /// @dev Deploys a minimal ERC1967I proxy with `implementation` and `args`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967I(uint256 value, address implementation, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n\n            mstore(add(m, 0x6b), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(m, 0x4b), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(m, 0x2b), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0xfe6100523d8160233d3973, shl(56, n)))\n\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            instance := create(value, add(m, add(0x15, lt(n, 0xffae))), add(0x75, n))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic ERC1967I proxy with `implementation`, `args`, and `salt`.\n    function deployDeterministicERC1967I(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967I(0, implementation, args, salt);\n    }\n\n    /// @dev Deploys a deterministic ERC1967I proxy with `implementation`, `args`, and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967I(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n\n            mstore(add(m, 0x6b), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(m, 0x4b), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(m, 0x2b), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0xfe6100523d8160233d3973, shl(56, n)))\n\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            instance := create2(value, add(m, add(0x15, lt(n, 0xffae))), add(0x75, n), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Creates a deterministic ERC1967I proxy with `implementation`, `args` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967I(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967I(0, implementation, args, salt);\n    }\n\n    /// @dev Creates a deterministic ERC1967I proxy with `implementation`, `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967I(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x75), n))\n            mstore(add(m, 0x55), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(m, 0x35), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(m, 0x15), 0x5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x16, 0x600f)\n            mstore(0x14, implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            mstore(gt(n, 0xffad), add(0xfe6100523d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(m, add(n, 0x75)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, m, add(0x75, n), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the ERC1967I proxy of `implementation` and `args`.\n    function initCodeERC1967I(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffad))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x95), i), mload(add(add(args, 0x20), i)))\n            }\n\n            mstore(add(c, 0x75), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(c, 0x55), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(c, 0x35), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(add(c, 0x1e), implementation)\n            mstore(add(c, 0x0a), add(0x6100523d8160233d3973, shl(56, n)))\n            mstore(add(c, add(n, 0x95)), 0)\n            mstore(c, add(0x75, n)) // Store the length.\n            mstore(0x40, add(c, add(n, 0xb5))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967I proxy of `implementation` and `args.\n    function initCodeHashERC1967I(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffad))\n\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(m, 0x75), i), mload(add(add(args, 0x20), i)))\n            }\n\n            mstore(add(m, 0x55), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(m, 0x35), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(m, 0x15), 0x5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x16, 0x600f)\n            mstore(0x14, implementation)\n            mstore(0x00, add(0x6100523d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            hash := keccak256(m, add(0x75, n))\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967I proxy of `implementation`, `args` with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967I(\n        address implementation,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967I(implementation, args);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnERC1967I(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967I(address instance) internal view returns (bytes memory args) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x52))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x52, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnERC1967I(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967I(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x52))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x32), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the ERC1967 with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnERC1967I(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x32), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x52)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                ERC1967 BOOTSTRAP OPERATIONS                */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // A bootstrap is a minimal UUPS implementation that allows an ERC1967 proxy\n    // pointing to it to be upgraded. The ERC1967 proxy can then be deployed to a\n    // deterministic address independent of the implementation:\n    // ```\n    //     address bootstrap = LibClone.erc1967Bootstrap();\n    //     address instance = LibClone.deployDeterministicERC1967(0, bootstrap, salt);\n    //     LibClone.bootstrapERC1967(bootstrap, implementation);\n    // ```\n\n    /// @dev Deploys the ERC1967 bootstrap if it has not been deployed.\n    function erc1967Bootstrap() internal returns (address) {\n        return erc1967Bootstrap(address(this));\n    }\n\n    /// @dev Deploys the ERC1967 bootstrap if it has not been deployed.\n    function erc1967Bootstrap(address authorizedUpgrader) internal returns (address bootstrap) {\n        bytes memory c = initCodeERC1967Bootstrap(authorizedUpgrader);\n        bootstrap = predictDeterministicAddress(keccak256(c), bytes32(0), address(this));\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(extcodesize(bootstrap)) {\n                if iszero(create2(0, add(c, 0x20), mload(c), 0)) {\n                    mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Replaces the implementation at `instance`.\n    function bootstrapERC1967(address instance, address implementation) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, implementation)\n            if iszero(call(gas(), instance, 0, 0x0c, 0x14, codesize(), 0x00)) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Replaces the implementation at `instance`, and then call it with `data`.\n    function bootstrapERC1967AndCall(address instance, address implementation, bytes memory data)\n        internal\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let n := mload(data)\n            mstore(data, implementation)\n            if iszero(call(gas(), instance, 0, add(data, 0x0c), add(n, 0x14), codesize(), 0x00)) {\n                if iszero(returndatasize()) {\n                    mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                returndatacopy(mload(0x40), 0x00, returndatasize())\n                revert(mload(0x40), returndatasize())\n            }\n            mstore(data, n) // Restore the length of `data`.\n        }\n    }\n\n    /// @dev Returns the implementation address of the ERC1967 bootstrap for this contract.\n    function predictDeterministicAddressERC1967Bootstrap() internal view returns (address) {\n        return predictDeterministicAddressERC1967Bootstrap(address(this), address(this));\n    }\n\n    /// @dev Returns the implementation address of the ERC1967 bootstrap for this contract.\n    function predictDeterministicAddressERC1967Bootstrap(\n        address authorizedUpgrader,\n        address deployer\n    ) internal pure returns (address) {\n        bytes32 hash = initCodeHashERC1967Bootstrap(authorizedUpgrader);\n        return predictDeterministicAddress(hash, bytes32(0), deployer);\n    }\n\n    /// @dev Returns the initialization code of the ERC1967 bootstrap.\n    function initCodeERC1967Bootstrap(address authorizedUpgrader)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x80), 0x3d3560601c5af46047573d6000383e3d38fd0000000000000000000000000000)\n            mstore(add(c, 0x60), 0xa920a3ca505d382bbc55601436116049575b005b363d3d373d3d601436036014)\n            mstore(add(c, 0x40), 0x0338573d3560601c7f360894a13ba1a3210667c828492db98dca3e2076cc3735)\n            mstore(add(c, 0x20), authorizedUpgrader)\n            mstore(add(c, 0x0c), 0x606880600a3d393df3fe3373)\n            mstore(c, 0x72)\n            mstore(0x40, add(c, 0xa0))\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967 bootstrap.\n    function initCodeHashERC1967Bootstrap(address authorizedUpgrader)\n        internal\n        pure\n        returns (bytes32)\n    {\n        return keccak256(initCodeERC1967Bootstrap(authorizedUpgrader));\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*          MINIMAL ERC1967 BEACON PROXY OPERATIONS           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: If you use this proxy, you MUST make sure that the beacon is a\n    // valid ERC1967 beacon. This means that the beacon must always return a valid\n    // address upon a staticcall to `implementation()`, given sufficient gas.\n    // For performance, the deployment operations and the proxy assumes that the\n    // beacon is always valid and will NOT validate it.\n\n    /// @dev Deploys a minimal ERC1967 beacon proxy.\n    function deployERC1967BeaconProxy(address beacon) internal returns (address instance) {\n        instance = deployERC1967BeaconProxy(0, beacon);\n    }\n\n    /// @dev Deploys a minimal ERC1967 beacon proxy.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967BeaconProxy(uint256 value, address beacon)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------------+\n             * CREATION (34 bytes)                                                              |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize  | r                |                                 |\n             * 3d         | RETURNDATASIZE | 0 r              |                                 |\n             * 81         | DUP2           | r 0 r            |                                 |\n             * 60 offset  | PUSH1 offset   | o r 0 r          |                                 |\n             * 3d         | RETURNDATASIZE | 0 o r 0 r        |                                 |\n             * 39         | CODECOPY       | 0 r              | [0..runSize): runtime code      |\n             * 73 beac    | PUSH20 beac    | beac 0 r         | [0..runSize): runtime code      |\n             * 60 slotPos | PUSH1 slotPos  | slotPos beac 0 r | [0..runSize): runtime code      |\n             * 51         | MLOAD          | slot beac 0 r    | [0..runSize): runtime code      |\n             * 55         | SSTORE         | 0 r              | [0..runSize): runtime code      |\n             * f3         | RETURN         |                  | [0..runSize): runtime code      |\n             * ---------------------------------------------------------------------------------|\n             * RUNTIME (82 bytes)                                                               |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             *                                                                                  |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 3d         | RETURNDATASIZE | 0 cds            |                                 |\n             * 3d         | RETURNDATASIZE | 0 0 cds          |                                 |\n             * 37         | CALLDATACOPY   |                  | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | 0                |                                 |\n             * 3d         | RETURNDATASIZE | 0 0              |                                 |\n             * 36         | CALLDATASIZE   | cds 0 0          | [0..calldatasize): calldata     |\n             * 3d         | RETURNDATASIZE | 0 cds 0 0        | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ~~~~~~~ beacon staticcall sub procedure ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 60 0x20       | PUSH1 0x20       | 32                          |                 |\n             * 36            | CALLDATASIZE     | cds 32                      |                 |\n             * 60 0x04       | PUSH1 0x04       | 4 cds 32                    |                 |\n             * 36            | CALLDATASIZE     | cds 4 cds 32                |                 |\n             * 63 0x5c60da1b | PUSH4 0x5c60da1b | 0x5c60da1b cds 4 cds 32     |                 |\n             * 60 0xe0       | PUSH1 0xe0       | 224 0x5c60da1b cds 4 cds 32 |                 |\n             * 1b            | SHL              | sel cds 4 cds 32            |                 |\n             * 36            | CALLDATASIZE     | cds sel cds 4 cds 32        |                 |\n             * 52            | MSTORE           | cds 4 cds 32                | sel             |\n             * 7f slot       | PUSH32 slot      | s cds 4 cds 32              | sel             |\n             * 54            | SLOAD            | beac cds 4 cds 32           | sel             |\n             * 5a            | GAS              | g beac cds 4 cds 32         | sel             |\n             * fa            | STATICCALL       | succ                        | impl            |\n             * 50            | POP              |                             | impl            |\n             * 36            | CALLDATASIZE     | cds                         | impl            |\n             * 51            | MLOAD            | impl                        | impl            |\n             * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 5a         | GAS            | g impl 0 cds 0 0 | [0..calldatasize): calldata     |\n             * f4         | DELEGATECALL   | succ             | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds succ         | [0..calldatasize): calldata     |\n             * 60 0x00    | PUSH1 0x00     | 0 rds succ       | [0..calldatasize): calldata     |\n             * 80         | DUP1           | 0 0 rds succ     | [0..calldatasize): calldata     |\n             * 3e         | RETURNDATACOPY | succ             | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 60 0x4d    | PUSH1 0x4d     | dest succ        | [0..returndatasize): returndata |\n             * 57         | JUMPI          |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * fd         | REVERT         |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  | [0..returndatasize): returndata |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * f3         | RETURN         |                  | [0..returndatasize): returndata |\n             * ---------------------------------------------------------------------------------+\n             */\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(0x40, 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, beacon))))\n            instance := create(value, 0x0c, 0x74)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 beacon proxy with `salt`.\n    function deployDeterministicERC1967BeaconProxy(address beacon, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967BeaconProxy(0, beacon, salt);\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 beacon proxy with `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967BeaconProxy(uint256 value, address beacon, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(0x40, 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, beacon))))\n            instance := create2(value, 0x0c, 0x74, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 beacon proxy with `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967BeaconProxy(address beacon, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967BeaconProxy(0, beacon, salt);\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 beacon proxy with `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967BeaconProxy(uint256 value, address beacon, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(0x40, 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, beacon))))\n            // Compute and store the bytecode hash.\n            mstore(add(m, 0x35), keccak256(0x0c, 0x74))\n            mstore(m, shl(88, address()))\n            mstore8(m, 0xff) // Write the prefix.\n            mstore(add(m, 0x15), salt)\n            instance := keccak256(m, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, 0x0c, 0x74, salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the initialization code of the minimal ERC1967 beacon proxy.\n    function initCodeERC1967BeaconProxy(address beacon) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x74), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(c, 0x54), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(c, 0x34), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(c, 0x1d), beacon)\n            mstore(add(c, 0x09), 0x60523d8160223d3973)\n            mstore(add(c, 0x94), 0)\n            mstore(c, 0x74) // Store the length.\n            mstore(0x40, add(c, 0xa0)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the minimal ERC1967 beacon proxy.\n    function initCodeHashERC1967BeaconProxy(address beacon) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(0x40, 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, beacon))))\n            hash := keccak256(0x0c, 0x74)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967 beacon proxy, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967BeaconProxy(\n        address beacon,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967BeaconProxy(beacon);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*    ERC1967 BEACON PROXY WITH IMMUTABLE ARGS OPERATIONS     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a minimal ERC1967 beacon proxy with `args`.\n    function deployERC1967BeaconProxy(address beacon, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        instance = deployERC1967BeaconProxy(0, beacon, args);\n    }\n\n    /// @dev Deploys a minimal ERC1967 beacon proxy with `args`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967BeaconProxy(uint256 value, address beacon, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n            mstore(add(m, 0x6b), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(m, 0x4b), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(m, 0x2b), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            mstore(add(m, gt(n, 0xffad)), add(0xfe6100523d8160233d3973, shl(56, n)))\n            instance := create(value, add(m, 0x16), add(n, 0x75))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 beacon proxy with `args` and `salt`.\n    function deployDeterministicERC1967BeaconProxy(address beacon, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967BeaconProxy(0, beacon, args, salt);\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 beacon proxy with `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967BeaconProxy(\n        uint256 value,\n        address beacon,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n            mstore(add(m, 0x6b), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(m, 0x4b), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(m, 0x2b), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            mstore(add(m, gt(n, 0xffad)), add(0xfe6100523d8160233d3973, shl(56, n)))\n            instance := create2(value, add(m, 0x16), add(n, 0x75), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 beacon proxy with `args` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967BeaconProxy(address beacon, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967BeaconProxy(0, beacon, args, salt);\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 beacon proxy with `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967BeaconProxy(\n        uint256 value,\n        address beacon,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n            mstore(add(m, 0x6b), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(m, 0x4b), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(m, 0x2b), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            mstore(add(m, gt(n, 0xffad)), add(0xfe6100523d8160233d3973, shl(56, n)))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(add(m, 0x16), add(n, 0x75)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, add(m, 0x16), add(n, 0x75), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the minimal ERC1967 beacon proxy.\n    function initCodeERC1967BeaconProxy(address beacon, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffad))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x95), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x75), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(c, 0x55), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(c, 0x35), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(c, 0x1e), beacon)\n            mstore(add(c, 0x0a), add(0x6100523d8160233d3973, shl(56, n)))\n            mstore(c, add(n, 0x75)) // Store the length.\n            mstore(add(c, add(n, 0x95)), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(c, add(n, 0xb5))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the minimal ERC1967 beacon proxy with `args`.\n    function initCodeHashERC1967BeaconProxy(address beacon, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffad))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(m, 0x8b), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(m, 0x6b), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(m, 0x4b), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(m, 0x2b), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(m, 0x14), beacon)\n            mstore(m, add(0x6100523d8160233d3973, shl(56, n)))\n            hash := keccak256(add(m, 0x16), add(n, 0x75))\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967 beacon proxy with `args`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967BeaconProxy(\n        address beacon,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967BeaconProxy(beacon, args);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnERC1967BeaconProxy(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967BeaconProxy(address instance) internal view returns (bytes memory args) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x52))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x52, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnERC1967BeaconProxy(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967BeaconProxy(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x52))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x32), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(args, add(0x40, mload(args)))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the ERC1967 beacon proxy with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnERC1967BeaconProxy(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x32), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x52)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*              ERC1967I BEACON PROXY OPERATIONS              */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: This proxy has a special code path that activates if `calldatasize() == 1`.\n    // This code path skips the delegatecall and directly returns the `implementation` address.\n    // The returned implementation is guaranteed to be valid if the keccak256 of the\n    // proxy's code is equal to `ERC1967_BEACON_PROXY_CODE_HASH`.\n    //\n    // If you use this proxy, you MUST make sure that the beacon is a\n    // valid ERC1967 beacon. This means that the beacon must always return a valid\n    // address upon a staticcall to `implementation()`, given sufficient gas.\n    // For performance, the deployment operations and the proxy assumes that the\n    // beacon is always valid and will NOT validate it.\n\n    /// @dev Deploys a ERC1967I beacon proxy.\n    function deployERC1967IBeaconProxy(address beacon) internal returns (address instance) {\n        instance = deployERC1967IBeaconProxy(0, beacon);\n    }\n\n    /// @dev Deploys a ERC1967I beacon proxy.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967IBeaconProxy(uint256 value, address beacon)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------------+\n             * CREATION (34 bytes)                                                              |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize  | r                |                                 |\n             * 3d         | RETURNDATASIZE | 0 r              |                                 |\n             * 81         | DUP2           | r 0 r            |                                 |\n             * 60 offset  | PUSH1 offset   | o r 0 r          |                                 |\n             * 3d         | RETURNDATASIZE | 0 o r 0 r        |                                 |\n             * 39         | CODECOPY       | 0 r              | [0..runSize): runtime code      |\n             * 73 beac    | PUSH20 beac    | beac 0 r         | [0..runSize): runtime code      |\n             * 60 slotPos | PUSH1 slotPos  | slotPos beac 0 r | [0..runSize): runtime code      |\n             * 51         | MLOAD          | slot beac 0 r    | [0..runSize): runtime code      |\n             * 55         | SSTORE         | 0 r              | [0..runSize): runtime code      |\n             * f3         | RETURN         |                  | [0..runSize): runtime code      |\n             * ---------------------------------------------------------------------------------|\n             * RUNTIME (87 bytes)                                                               |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             *                                                                                  |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 3d         | RETURNDATASIZE | 0 cds            |                                 |\n             * 3d         | RETURNDATASIZE | 0 0 cds          |                                 |\n             * 37         | CALLDATACOPY   |                  | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | 0                |                                 |\n             * 3d         | RETURNDATASIZE | 0 0              |                                 |\n             * 36         | CALLDATASIZE   | cds 0 0          | [0..calldatasize): calldata     |\n             * 3d         | RETURNDATASIZE | 0 cds 0 0        | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ~~~~~~~ beacon staticcall sub procedure ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 60 0x20       | PUSH1 0x20       | 32                          |                 |\n             * 36            | CALLDATASIZE     | cds 32                      |                 |\n             * 60 0x04       | PUSH1 0x04       | 4 cds 32                    |                 |\n             * 36            | CALLDATASIZE     | cds 4 cds 32                |                 |\n             * 63 0x5c60da1b | PUSH4 0x5c60da1b | 0x5c60da1b cds 4 cds 32     |                 |\n             * 60 0xe0       | PUSH1 0xe0       | 224 0x5c60da1b cds 4 cds 32 |                 |\n             * 1b            | SHL              | sel cds 4 cds 32            |                 |\n             * 36            | CALLDATASIZE     | cds sel cds 4 cds 32        |                 |\n             * 52            | MSTORE           | cds 4 cds 32                | sel             |\n             * 7f slot       | PUSH32 slot      | s cds 4 cds 32              | sel             |\n             * 54            | SLOAD            | beac cds 4 cds 32           | sel             |\n             * 5a            | GAS              | g beac cds 4 cds 32         | sel             |\n             * fa            | STATICCALL       | succ                        | impl            |\n             * ~~~~~~ check calldatasize ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 36            | CALLDATASIZE     | cds succ                    |                 |\n             * 14            | EQ               |                             | impl            |\n             * 60 0x52       | PUSH1 0x52       |                             | impl            |\n             * 57            | JUMPI            |                             | impl            |\n             * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 36            | CALLDATASIZE     | cds                         | impl            |\n             * 51            | MLOAD            | impl                        | impl            |\n             * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 5a         | GAS            | g impl 0 cds 0 0 | [0..calldatasize): calldata     |\n             * f4         | DELEGATECALL   | succ             | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds succ         | [0..calldatasize): calldata     |\n             * 60 0x00    | PUSH1 0x00     | 0 rds succ       | [0..calldatasize): calldata     |\n             * 60 0x01    | PUSH1 0x01     | 1 0 rds succ     | [0..calldatasize): calldata     |\n             * 3e         | RETURNDATACOPY | succ             | [1..returndatasize): returndata |\n             *                                                                                  |\n             * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 60 0x52    | PUSH1 0x52     | dest succ        | [1..returndatasize): returndata |\n             * 57         | JUMPI          |                  | [1..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds              | [1..returndatasize): returndata |\n             * 60 0x01    | PUSH1 0x01     | 1 rds            | [1..returndatasize): returndata |\n             * fd         | REVERT         |                  | [1..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  | [1..returndatasize): returndata |\n             * 3d         | RETURNDATASIZE | rds              | [1..returndatasize): returndata |\n             * 60 0x01    | PUSH1 0x01     | 1 rds            | [1..returndatasize): returndata |\n             * f3         | RETURN         |                  | [1..returndatasize): returndata |\n             * ---------------------------------------------------------------------------------+\n             */\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(0x40, 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(0x04, or(shl(160, 0x60573d8160223d3973), shr(96, shl(96, beacon))))\n            instance := create(value, 0x07, 0x79)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Deploys a deterministic ERC1967I beacon proxy with `salt`.\n    function deployDeterministicERC1967IBeaconProxy(address beacon, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967IBeaconProxy(0, beacon, salt);\n    }\n\n    /// @dev Deploys a deterministic ERC1967I beacon proxy with `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967IBeaconProxy(uint256 value, address beacon, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(0x40, 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(0x04, or(shl(160, 0x60573d8160223d3973), shr(96, shl(96, beacon))))\n            instance := create2(value, 0x07, 0x79, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Creates a deterministic ERC1967I beacon proxy with `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967IBeaconProxy(address beacon, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967IBeaconProxy(0, beacon, salt);\n    }\n\n    /// @dev Creates a deterministic ERC1967I beacon proxy with `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967IBeaconProxy(uint256 value, address beacon, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(0x40, 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(0x04, or(shl(160, 0x60573d8160223d3973), shr(96, shl(96, beacon))))\n            // Compute and store the bytecode hash.\n            mstore(add(m, 0x35), keccak256(0x07, 0x79))\n            mstore(m, shl(88, address()))\n            mstore8(m, 0xff) // Write the prefix.\n            mstore(add(m, 0x15), salt)\n            instance := keccak256(m, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, 0x07, 0x79, salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the initialization code of the ERC1967I beacon proxy.\n    function initCodeERC1967IBeaconProxy(address beacon) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x79), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(c, 0x59), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(c, 0x39), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(c, 0x1d), beacon)\n            mstore(add(c, 0x09), 0x60573d8160223d3973)\n            mstore(add(c, 0x99), 0)\n            mstore(c, 0x79) // Store the length.\n            mstore(0x40, add(c, 0xa0)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967I beacon proxy.\n    function initCodeHashERC1967IBeaconProxy(address beacon) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(0x40, 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(0x04, or(shl(160, 0x60573d8160223d3973), shr(96, shl(96, beacon))))\n            hash := keccak256(0x07, 0x79)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967I beacon proxy, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967IBeaconProxy(\n        address beacon,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967IBeaconProxy(beacon);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*    ERC1967I BEACON PROXY WITH IMMUTABLE ARGS OPERATIONS    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a ERC1967I beacon proxy with `args.\n    function deployERC1967IBeaconProxy(address beacon, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        instance = deployERC1967IBeaconProxy(0, beacon, args);\n    }\n\n    /// @dev Deploys a ERC1967I beacon proxy with `args.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967IBeaconProxy(uint256 value, address beacon, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x90), n))\n            mstore(add(m, 0x70), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(m, 0x50), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(m, 0x30), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            mstore(add(m, gt(n, 0xffa8)), add(0xfe6100573d8160233d3973, shl(56, n)))\n            instance := create(value, add(m, 0x16), add(n, 0x7a))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic ERC1967I beacon proxy with `args` and `salt`.\n    function deployDeterministicERC1967IBeaconProxy(address beacon, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967IBeaconProxy(0, beacon, args, salt);\n    }\n\n    /// @dev Deploys a deterministic ERC1967I beacon proxy with `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967IBeaconProxy(\n        uint256 value,\n        address beacon,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x90), n))\n            mstore(add(m, 0x70), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(m, 0x50), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(m, 0x30), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            mstore(add(m, gt(n, 0xffa8)), add(0xfe6100573d8160233d3973, shl(56, n)))\n            instance := create2(value, add(m, 0x16), add(n, 0x7a), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Creates a deterministic ERC1967I beacon proxy with `args` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967IBeaconProxy(address beacon, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967IBeaconProxy(0, beacon, args, salt);\n    }\n\n    /// @dev Creates a deterministic ERC1967I beacon proxy with `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967IBeaconProxy(\n        uint256 value,\n        address beacon,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x90), n))\n            mstore(add(m, 0x70), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(m, 0x50), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(m, 0x30), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            mstore(add(m, gt(n, 0xffa8)), add(0xfe6100573d8160233d3973, shl(56, n)))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(add(m, 0x16), add(n, 0x7a)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, add(m, 0x16), add(n, 0x7a), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the ERC1967I beacon proxy with `args`.\n    function initCodeERC1967IBeaconProxy(address beacon, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffa8))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x9a), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x7a), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(c, 0x5a), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(c, 0x3a), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(c, 0x1e), beacon)\n            mstore(add(c, 0x0a), add(0x6100573d8160233d3973, shl(56, n)))\n            mstore(add(c, add(n, 0x9a)), 0)\n            mstore(c, add(n, 0x7a)) // Store the length.\n            mstore(0x40, add(c, add(n, 0xba))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967I beacon proxy with `args`.\n    function initCodeHashERC1967IBeaconProxy(address beacon, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let c := mload(0x40) // Cache the free memory pointer.\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffa8))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x90), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x70), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(c, 0x50), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(c, 0x30), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(c, 0x14), beacon)\n            mstore(c, add(0x6100573d8160233d3973, shl(56, n)))\n            hash := keccak256(add(c, 0x16), add(n, 0x7a))\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967I beacon proxy, with  `args` and salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967IBeaconProxy(\n        address beacon,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967IBeaconProxy(beacon, args);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnERC1967IBeaconProxy(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967IBeaconProxy(address instance)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x57))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x57, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnERC1967IBeaconProxy(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967IBeaconProxy(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x57))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x37), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(args, add(0x40, mload(args)))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the ERC1967I beacon proxy with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnERC1967IBeaconProxy(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x37), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x57)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      OTHER OPERATIONS                      */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns `address(0)` if the implementation address cannot be determined.\n    function implementationOf(address instance) internal view returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { extcodecopy(instance, 0x00, 0x00, 0x57) } 1 {} {\n                if mload(0x2d) {\n                    // ERC1967I and ERC1967IBeaconProxy detection.\n                    if or(\n                        eq(keccak256(0x00, 0x52), ERC1967I_CODE_HASH),\n                        eq(keccak256(0x00, 0x57), ERC1967I_BEACON_PROXY_CODE_HASH)\n                    ) {\n                        pop(staticcall(gas(), instance, 0x00, 0x01, 0x00, 0x20))\n                        result := mload(0x0c)\n                        break\n                    }\n                }\n                // 0age clone detection.\n                result := mload(0x0b)\n                codecopy(0x0b, codesize(), 0x14) // Zeroize the 20 bytes for the address.\n                if iszero(xor(keccak256(0x00, 0x2c), CLONE_CODE_HASH)) { break }\n                mstore(0x0b, result) // Restore the zeroized memory.\n                // CWIA detection.\n                result := mload(0x0a)\n                codecopy(0x0a, codesize(), 0x14) // Zeroize the 20 bytes for the address.\n                if iszero(xor(keccak256(0x00, 0x2d), CWIA_CODE_HASH)) { break }\n                mstore(0x0a, result) // Restore the zeroized memory.\n                // PUSH0 clone detection.\n                result := mload(0x09)\n                codecopy(0x09, codesize(), 0x14) // Zeroize the 20 bytes for the address.\n                result := shr(xor(keccak256(0x00, 0x2d), PUSH0_CLONE_CODE_HASH), result)\n                break\n            }\n            result := shr(96, result)\n            mstore(0x37, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the address when a contract with initialization code hash,\n    /// `hash`, is deployed with `salt`, by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddress(bytes32 hash, bytes32 salt, address deployer)\n        internal\n        pure\n        returns (address predicted)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, hash)\n            mstore(0x01, shl(96, deployer))\n            mstore(0x15, salt)\n            predicted := keccak256(0x00, 0x55)\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Requires that `salt` starts with either the zero address or `by`.\n    function checkStartsWith(bytes32 salt, address by) internal pure {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // If the salt does not start with the zero address or `by`.\n            if iszero(or(iszero(shr(96, salt)), eq(shr(96, shl(96, by)), shr(96, salt)))) {\n                mstore(0x00, 0x0c4549ef) // `SaltDoesNotStartWith()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Returns the `bytes32` at `offset` in `args`, without any bounds checks.\n    /// To load an address, you can use `address(bytes20(argLoad(args, offset)))`.\n    function argLoad(bytes memory args, uint256 offset) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := mload(add(add(args, 0x20), offset))\n        }\n    }\n}\n"},"src/interfaces/IDepositWallet.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\nimport {Batch} from \"@deposit-wallet/src/libraries/WalletLib.sol\";\n\n/// @title IDepositWallet\n/// @author Polymarket\n/// @notice Interface for the DepositWallet proxy contract.\ninterface IDepositWallet {\n    /*--------------------------------------------------------------\n                             INITIALIZER\n    --------------------------------------------------------------*/\n\n    /// @notice Initializes the wallet with a designated owner.\n    /// @param _owner The address to set as the wallet owner.\n    function initialize(address _owner) external;\n\n    /*--------------------------------------------------------------\n                                  VIEW\n    --------------------------------------------------------------*/\n\n    /// @notice Returns the wallet's current execution nonce.\n    /// @return The current nonce.\n    function nonce() external view returns (uint256);\n\n    /// @notice Returns the timestamp at which the wallet was paused.\n    /// @return The paused timestamp, or zero if not paused.\n    function paused() external view returns (uint256);\n\n    /// @notice Returns the timestamp until which a session signer is authorized.\n    /// @param _signer The session signer address to query.\n    /// @return The authorization expiry timestamp, or zero if not authorized.\n    function sessionSignerAuthorizedUntil(address _signer) external view returns (uint256);\n\n    /// @notice Returns a passkey session signer's public key and authorization expiry.\n    function passkeySessionSigner(bytes32 _passkeyId)\n        external\n        view\n        returns (bytes32 x, bytes32 y, uint256 validUntil);\n\n    /// @notice Returns the unique identifier assigned to this wallet at deployment.\n    /// @return The wallet ID decoded from the proxy's immutable args.\n    function id() external view returns (bytes32);\n\n    /// @notice Returns the factory contract that deployed this wallet.\n    /// @return The factory address decoded from the proxy's immutable args.\n    function factory() external view returns (address);\n\n    /// @notice Returns the current owner of the wallet.\n    /// @return The owner address.\n    function owner() external view returns (address);\n\n    /// @notice Returns the pending owner awaiting handover completion.\n    /// @return The pending owner address, or `address(0)` if none.\n    function pendingOwner() external view returns (address);\n\n    /// @notice Returns the deadline by which the pending owner must complete the handover.\n    /// @return The acceptance-deadline timestamp, or zero if no handover is pending.\n    function pendingOwnerDeadline() external view returns (uint256);\n\n    /// @notice Returns the per-handover nonce embedded in the EIP-712 signature.\n    /// @return The current handover nonce.\n    function pendingOwnerNonce() external view returns (uint256);\n\n    /// @notice Returns a stable magic identifying this contract as a `DepositWallet`.\n    /// @return The wallet identity magic.\n    function walletInterfaceId() external pure returns (bytes32);\n\n    /*--------------------------------------------------------------\n                             ONLY FACTORY\n    --------------------------------------------------------------*/\n\n    /// @notice Executes a signed batch of calls through the factory.\n    /// @dev Validates the batch (non-empty, correct wallet, nonce, deadline), verifies the EIP-712\n    ///      signature against the owner or an authorized session signer, then executes each call\n    ///      sequentially. Session signers are prevented from calling the wallet itself.\n    /// @param _batch The batch containing the target wallet, nonce, deadline, and calls.\n    /// @param _signature The EIP-712 signature authorizing the batch (owner or session signer).\n    function execute(Batch calldata _batch, bytes calldata _signature) external;\n\n    /*--------------------------------------------------------------\n                               ONLY SELF\n    --------------------------------------------------------------*/\n\n    /// @notice Authorizes a session signer until the specified timestamp.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _sessionSigner The address to authorize as a session signer.\n    /// @param _validUntil The timestamp until which the session signer is valid.\n    function authorizeSessionSigner(address _sessionSigner, uint256 _validUntil) external;\n\n    /// @notice Revokes a session signer's authorization.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _sessionSigner The session signer address to revoke.\n    function revokeSessionSigner(address _sessionSigner) external;\n\n    /// @notice Authorizes a P-256 passkey as a session signer.\n    function authorizePasskeySessionSigner(bytes32 _x, bytes32 _y, uint256 _validUntil) external;\n\n    /// @notice Revokes a passkey session signer.\n    function revokePasskeySessionSigner(bytes32 _passkeyId) external;\n\n    /// @notice Initiates a two-step ownership transfer to a new owner.\n    /// @dev Can only be invoked via batch execution (self-call). Records the on-chain deadline\n    ///      and bumps the per-handover nonce, invalidating any previously issued handover\n    ///      signature.\n    /// @param _newOwner The proposed new owner, distinct from the current owner and this wallet.\n    /// @param _deadline The timestamp by which the pending owner must complete the handover.\n    function transferOwnership(address _newOwner, uint256 _deadline) external;\n\n    /// @notice Cancels any pending ownership handover.\n    /// @dev Can only be invoked via batch execution (self-call).\n    function cancelOwnershipHandover() external;\n\n    /*--------------------------------------------------------------\n                           OWNERSHIP HANDOVER\n    --------------------------------------------------------------*/\n\n    /// @notice Completes a pending ownership transfer.\n    /// @dev Permissionless — anyone may submit, but the pending owner must have signed an\n    ///      EIP-712 `OwnershipHandover(newOwner, nonce)` message using the current\n    ///      {pendingOwnerNonce}, and the on-chain {pendingOwnerDeadline} must not have elapsed.\n    /// @param _signature The EIP-712 signature from the pending owner.\n    function completeOwnershipHandover(bytes calldata _signature) external;\n\n    /*--------------------------------------------------------------\n                               ONLY OWNER\n    --------------------------------------------------------------*/\n\n    /// @notice Pauses the wallet, recording the current timestamp.\n    /// @dev After pausing, the owner must wait for the timelock delay before calling\n    ///      paused-only functions (e.g., withdrawals, revocations).\n    function pause() external;\n\n    /// @notice Unpauses the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    function unpause() external;\n\n    /// @notice Withdraws native tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _to The recipient address.\n    /// @param _amount The amount of native tokens to withdraw.\n    function withdrawNative(address _to, uint256 _amount) external;\n\n    /// @notice Withdraws ERC-20 tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-20 token address.\n    /// @param _to The recipient address.\n    /// @param _amount The amount of tokens to withdraw.\n    function withdrawERC20(address _token, address _to, uint256 _amount) external;\n\n    /// @notice Batch-withdraws ERC-1155 tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-1155 token address.\n    /// @param _to The recipient address.\n    /// @param _ids The token IDs to withdraw.\n    /// @param _amounts The amounts for each token ID.\n    function withdrawERC1155(\n        address _token,\n        address _to,\n        uint256[] calldata _ids,\n        uint256[] calldata _amounts\n    ) external;\n\n    /// @notice Revokes an ERC-20 allowance by setting it to zero.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-20 token address.\n    /// @param _spender The spender whose allowance is revoked.\n    function revokeAllowance(address _token, address _spender) external;\n\n    /// @notice Revokes an ERC-1155 operator approval.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-1155 token address.\n    /// @param _operator The operator whose approval is revoked.\n    function revokeApprovalForAll(address _token, address _operator) external;\n\n    /// @notice Emergency revocation of a session signer by the owner.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _sessionSigner The session signer to revoke.\n    function revokeSessionSignerEmergency(address _sessionSigner) external;\n\n    /// @notice Emergency revocation of a passkey session signer by the owner.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    function revokePasskeySessionSignerEmergency(bytes32 _passkeyId) external;\n\n    /// @notice Opts the wallet out of beacon upgrades, pinning it to the current default\n    ///         implementation.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    function optOut() external;\n\n    /// @notice Clears the wallet's beacon-upgrade pin, rejoining the upgrade cohort.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    function optIn() external;\n\n    /*--------------------------------------------------------------\n                                ERC1271\n    --------------------------------------------------------------*/\n\n    /// @notice Validates a signature against the wallet owner or an authorized session signer.\n    /// @param _hash The hash that was signed.\n    /// @param _signature The signature to validate (may contain a session signer wrapper).\n    /// @return result `ERC1271_MAGIC_VALUE` if the signature is valid, otherwise a non-magic\n    /// value.\n    function isValidSignature(bytes32 _hash, bytes calldata _signature)\n        external\n        view\n        returns (bytes4 result);\n}\n"},"src/libraries/PasskeySignerLib.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\nimport {P256} from \"@openzeppelin/contracts/utils/cryptography/P256.sol\";\nimport {WebAuthn} from \"@deposit-wallet/src/libraries/WebAuthnNative.sol\";\n\n/// @title PasskeySignerLib\n/// @author Polymarket\n/// @notice Helpers for P-256 passkey identifiers and WebAuthn assertion verification.\nlibrary PasskeySignerLib {\n    /// @notice Returns the identifier for a P-256 public key.\n    function id(bytes32 _x, bytes32 _y) internal pure returns (bytes32) {\n        return keccak256(bytes.concat(_x, _y));\n    }\n\n    /// @notice Returns whether the coordinates form a valid P-256 public key.\n    function isValidPublicKey(bytes32 _x, bytes32 _y) internal pure returns (bool) {\n        return P256.isValidPublicKey(_x, _y);\n    }\n\n    /// @notice Verifies a WebAuthn assertion against a digest and P-256 public key.\n    /// @dev User presence is required by OpenZeppelin. User verification is intentionally optional.\n    function verify(bytes32 _hash, bytes32 _x, bytes32 _y, bytes calldata _signature)\n        internal\n        view\n        returns (bool)\n    {\n        (bool decoded, WebAuthn.WebAuthnAuth calldata auth) = WebAuthn.tryDecodeAuth(_signature);\n        return decoded && WebAuthn.verify(bytes.concat(_hash), auth, _x, _y, false);\n    }\n}\n"},"src/libraries/SessionSignerLib.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\n/// @dev Magic suffix bytes appended to a signature to indicate the presence of a session signer.\n/// Mirrors the ERC-6492 magic value to reuse the same detection mechanism.\nbytes32 constant SESSION_SIGNER_MAGIC_BYTES =\n    0x6492649264926492649264926492649264926492649264926492649264926492;\n\n/// @dev Existing secp256k1 EVM session signer.\nuint256 constant SESSION_SIGNER_KIND_SECP256K1 = 0;\n\n/// @dev WebAuthn P-256 (secp256r1) passkey session signer.\nuint256 constant SESSION_SIGNER_KIND_P256 = 1;\n\n/// @notice Parse state for a potential session signer envelope.\n/// @dev `MalformedEnvelope` is the zero value so an uninitialized status fails closed.\nenum SessionEnvelopeStatus {\n    MalformedEnvelope,\n    NotSessionEnvelope,\n    WellFormedEnvelope\n}\n\n/// @title SessionSignerLib\n/// @author Polymarket\n/// @notice Utilities for encoding and decoding session signer signatures.\n/// @dev Session signer signatures wrap an inner signature with a signer identifier, signer kind,\n///      and trailing magic suffix, following the ERC-6492 envelope format.\nlibrary SessionSignerLib {\n    /// @notice Decodes a session signer envelope.\n    /// @dev A present but malformed envelope is distinguished from a signature with no magic\n    ///      suffix so callers never fall back to owner verification. Parsed signer fields are\n    ///      exposed only for a fully validated envelope.\n    /// @param _signature The raw signature bytes, potentially wrapped with session signer data.\n    /// @return status Whether the signature is not an envelope, malformed, or well formed.\n    /// @return signerId The EVM address (left-padded) or passkey identifier.\n    /// @return signerKind The signer kind discriminator.\n    function decodeSessionSigner(bytes calldata _signature)\n        internal\n        pure\n        returns (SessionEnvelopeStatus status, bytes32 signerId, uint256 signerKind)\n    {\n        if (_signature.length < 0x20) {\n            return (SessionEnvelopeStatus.NotSessionEnvelope, bytes32(0), 0);\n        }\n\n        bool hasMagic;\n        uint256 dynamicOffset;\n        uint256 innerLength;\n        assembly (\"memory-safe\") {\n            hasMagic := eq(\n                calldataload(add(_signature.offset, sub(_signature.length, 0x20))),\n                SESSION_SIGNER_MAGIC_BYTES\n            )\n        }\n        if (!hasMagic) {\n            return (SessionEnvelopeStatus.NotSessionEnvelope, bytes32(0), 0);\n        }\n        if (_signature.length < 0xa0) {\n            return (SessionEnvelopeStatus.MalformedEnvelope, bytes32(0), 0);\n        }\n\n        bytes32 candidateSignerId;\n        uint256 candidateSignerKind;\n        assembly (\"memory-safe\") {\n            candidateSignerId := calldataload(_signature.offset)\n            candidateSignerKind := calldataload(add(_signature.offset, 0x20))\n            dynamicOffset := calldataload(add(_signature.offset, 0x40))\n            innerLength := calldataload(add(_signature.offset, 0x60))\n        }\n\n        if (dynamicOffset != 0x60 || innerLength > type(uint256).max - 0x1f) {\n            return (SessionEnvelopeStatus.MalformedEnvelope, bytes32(0), 0);\n        }\n\n        uint256 paddedInnerLength = (innerLength + 0x1f) & ~uint256(0x1f);\n        if (paddedInnerLength > type(uint256).max - 0xa0) {\n            return (SessionEnvelopeStatus.MalformedEnvelope, bytes32(0), 0);\n        }\n        if (_signature.length != 0xa0 + paddedInnerLength) {\n            return (SessionEnvelopeStatus.MalformedEnvelope, bytes32(0), 0);\n        }\n\n        if (candidateSignerKind == SESSION_SIGNER_KIND_SECP256K1) {\n            if (\n                uint256(candidateSignerId) >> 160 == 0\n                    && address(uint160(uint256(candidateSignerId))) != address(0)\n            ) {\n                return (\n                    SessionEnvelopeStatus.WellFormedEnvelope, candidateSignerId, candidateSignerKind\n                );\n            }\n        } else if (\n            candidateSignerKind == SESSION_SIGNER_KIND_P256 && candidateSignerId != bytes32(0)\n        ) {\n            return\n                (SessionEnvelopeStatus.WellFormedEnvelope, candidateSignerId, candidateSignerKind);\n        }\n\n        return (SessionEnvelopeStatus.MalformedEnvelope, bytes32(0), 0);\n    }\n\n    /// @notice Returns whether a signature contains a valid session signer envelope.\n    function isSessionSignerSignature(bytes calldata _signature) internal pure returns (bool) {\n        (SessionEnvelopeStatus status,,) = decodeSessionSigner(_signature);\n        return status == SessionEnvelopeStatus.WellFormedEnvelope;\n    }\n\n    /// @notice Creates a session signer signature by wrapping an existing signature.\n    /// @dev Encodes the session signer address, the secp256k1 signer kind, the inner signature,\n    ///      and the magic suffix into a single byte array. Because\n    ///      `SESSION_SIGNER_KIND_SECP256K1` is 0, the envelope is byte-identical to the legacy\n    ///      format that carried a zero placeholder in the kind slot.\n    /// @param _sessionSigner The session signer address to encode.\n    /// @param _signature The inner ECDSA signature to wrap.\n    /// @return The wrapped session signer signature.\n    function getSessionSignerSignature(address _sessionSigner, bytes memory _signature)\n        internal\n        pure\n        returns (bytes memory)\n    {\n        return bytes.concat(\n            abi.encode(_sessionSigner, SESSION_SIGNER_KIND_SECP256K1, _signature),\n            SESSION_SIGNER_MAGIC_BYTES\n        );\n    }\n\n    /// @notice Creates a passkey session signer signature by wrapping a WebAuthn assertion.\n    /// @param _passkeyId The passkey identifier (`keccak256(x || y)`).\n    /// @param _signature The ABI-encoded WebAuthn assertion, optionally with an ERC-7739 suffix.\n    /// @return The wrapped passkey session signer signature.\n    function getPasskeySessionSignerSignature(bytes32 _passkeyId, bytes memory _signature)\n        internal\n        pure\n        returns (bytes memory)\n    {\n        return bytes.concat(\n            abi.encode(_passkeyId, SESSION_SIGNER_KIND_P256, _signature), SESSION_SIGNER_MAGIC_BYTES\n        );\n    }\n}\n"},"lib/solady/src/accounts/ERC1271.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport {EIP712} from \"../utils/EIP712.sol\";\nimport {SignatureCheckerLib} from \"../utils/SignatureCheckerLib.sol\";\n\n/// @notice ERC1271 mixin with nested EIP-712 approach.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/accounts/ERC1271.sol)\nabstract contract ERC1271 is EIP712 {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev `keccak256(\"PersonalSign(bytes prefixed)\")`.\n    bytes32 internal constant _PERSONAL_SIGN_TYPEHASH =\n        0x983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     ERC1271 OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Validates the signature with ERC1271 return,\n    /// so that this account can also be used as a signer.\n    function isValidSignature(bytes32 hash, bytes calldata signature)\n        public\n        view\n        virtual\n        returns (bytes4 result)\n    {\n        // For automatic detection that the smart account supports the nested EIP-712 workflow,\n        // See: https://eips.ethereum.org/EIPS/eip-7739.\n        // If `hash` is `0x7739...7739`, returns `bytes4(0x77390001)`.\n        // The returned number MAY be increased in future ERC7739 versions.\n        unchecked {\n            if (signature.length == uint256(0)) {\n                // Forces the compiler to optimize for smaller bytecode size.\n                if (uint256(hash) == ~signature.length / 0xffff * 0x7739) return 0x77390001;\n            }\n        }\n        bool success = _erc1271IsValidSignature(hash, _erc1271UnwrapSignature(signature));\n        /// @solidity memory-safe-assembly\n        assembly {\n            // `success ? bytes4(keccak256(\"isValidSignature(bytes32,bytes)\")) : 0xffffffff`.\n            // We use `0xffffffff` for invalid, in convention with the reference implementation.\n            result := shl(224, or(0x1626ba7e, sub(0, iszero(success))))\n        }\n    }\n\n    /// @dev Returns the ERC1271 signer.\n    /// Override to return the signer `isValidSignature` checks against.\n    function _erc1271Signer() internal view virtual returns (address);\n\n    /// @dev Returns whether the `msg.sender` is considered safe, such\n    /// that we don't need to use the nested EIP-712 workflow.\n    /// Override to return true for more callers.\n    /// See: https://mirror.xyz/curiousapple.eth/pFqAdW2LiJ-6S4sg_u1z08k4vK6BCJ33LcyXpnNb8yU\n    function _erc1271CallerIsSafe() internal view virtual returns (bool) {\n        // The canonical `MulticallerWithSigner` at 0x000000000000D9ECebf3C23529de49815Dac1c4c\n        // is known to include the account in the hash to be signed.\n        return msg.sender == 0x000000000000D9ECebf3C23529de49815Dac1c4c;\n    }\n\n    /// @dev Returns whether the `hash` and `signature` are valid.\n    /// Override if you need non-ECDSA logic.\n    function _erc1271IsValidSignatureNowCalldata(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool)\n    {\n        return SignatureCheckerLib.isValidSignatureNowCalldata(_erc1271Signer(), hash, signature);\n    }\n\n    /// @dev Unwraps and returns the signature.\n    function _erc1271UnwrapSignature(bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bytes calldata result)\n    {\n        result = signature;\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Unwraps the ERC6492 wrapper if it exists.\n            // See: https://eips.ethereum.org/EIPS/eip-6492\n            if eq(\n                calldataload(add(result.offset, sub(result.length, 0x20))),\n                mul(0x6492, div(not(shr(address(), address())), 0xffff)) // `0x6492...6492`.\n            ) {\n                let o := add(result.offset, calldataload(add(result.offset, 0x40)))\n                result.length := calldataload(o)\n                result.offset := add(o, 0x20)\n            }\n        }\n    }\n\n    /// @dev Returns whether the `signature` is valid for the `hash.\n    function _erc1271IsValidSignature(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool)\n    {\n        return _erc1271IsValidSignatureViaSafeCaller(hash, signature)\n            || _erc1271IsValidSignatureViaNestedEIP712(hash, signature)\n            || _erc1271IsValidSignatureViaRPC(hash, signature);\n    }\n\n    /// @dev Performs the signature validation without nested EIP-712 if the caller is\n    /// a safe caller. A safe caller must include the address of this account in the hash.\n    function _erc1271IsValidSignatureViaSafeCaller(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool result)\n    {\n        if (_erc1271CallerIsSafe()) result = _erc1271IsValidSignatureNowCalldata(hash, signature);\n    }\n\n    /// @dev ERC1271 signature validation (Nested EIP-712 workflow).\n    ///\n    /// This uses ECDSA recovery by default (see: `_erc1271IsValidSignatureNowCalldata`).\n    /// It also uses a nested EIP-712 approach to prevent signature replays when a single EOA\n    /// owns multiple smart contract accounts,\n    /// while still enabling wallet UIs (e.g. Metamask) to show the EIP-712 values.\n    ///\n    /// Crafted for phishing resistance, efficiency, flexibility.\n    /// __________________________________________________________________________________________\n    ///\n    /// Glossary:\n    ///\n    /// - `APP_DOMAIN_SEPARATOR`: The domain separator of the `hash` passed in by the application.\n    ///   Provided by the front end. Intended to be the domain separator of the contract\n    ///   that will call `isValidSignature` on this account.\n    ///\n    /// - `ACCOUNT_DOMAIN_SEPARATOR`: The domain separator of this account.\n    ///   See: `EIP712._domainSeparator()`.\n    /// __________________________________________________________________________________________\n    ///\n    /// For the `TypedDataSign` workflow, the final hash will be:\n    /// ```\n    ///     keccak256(\\x19\\x01 ‖ APP_DOMAIN_SEPARATOR ‖\n    ///         hashStruct(TypedDataSign({\n    ///             contents: hashStruct(originalStruct),\n    ///             name: keccak256(bytes(eip712Domain().name)),\n    ///             version: keccak256(bytes(eip712Domain().version)),\n    ///             chainId: eip712Domain().chainId,\n    ///             verifyingContract: eip712Domain().verifyingContract,\n    ///             salt: eip712Domain().salt\n    ///         }))\n    ///     )\n    /// ```\n    /// where `‖` denotes the concatenation operator for bytes.\n    /// The order of the fields is important: `contents` comes before `name`.\n    ///\n    /// The signature will be `r ‖ s ‖ v ‖ APP_DOMAIN_SEPARATOR ‖\n    ///     contents ‖ contentsDescription ‖ uint16(contentsDescription.length)`,\n    /// where:\n    /// - `contents` is the bytes32 struct hash of the original struct.\n    /// - `contentsDescription` can be either:\n    ///     a) `contentsType` (implicit mode)\n    ///         where `contentsType` starts with `contentsName`.\n    ///     b) `contentsType ‖ contentsName` (explicit mode)\n    ///         where `contentsType` may not necessarily start with `contentsName`.\n    ///\n    /// The `APP_DOMAIN_SEPARATOR` and `contents` will be used to verify if `hash` is indeed correct.\n    /// __________________________________________________________________________________________\n    ///\n    /// For the `PersonalSign` workflow, the final hash will be:\n    /// ```\n    ///     keccak256(\\x19\\x01 ‖ ACCOUNT_DOMAIN_SEPARATOR ‖\n    ///         hashStruct(PersonalSign({\n    ///             prefixed: keccak256(bytes(\\x19Ethereum Signed Message:\\n ‖\n    ///                 base10(bytes(someString).length) ‖ someString))\n    ///         }))\n    ///     )\n    /// ```\n    /// where `‖` denotes the concatenation operator for bytes.\n    ///\n    /// The `PersonalSign` type hash will be `keccak256(\"PersonalSign(bytes prefixed)\")`.\n    /// The signature will be `r ‖ s ‖ v`.\n    /// __________________________________________________________________________________________\n    ///\n    /// For demo and typescript code, see:\n    /// - https://github.com/junomonster/nested-eip-712\n    /// - https://github.com/frangio/eip712-wrapper-for-eip1271\n    ///\n    /// Their nomenclature may differ from ours, although the high-level idea is similar.\n    ///\n    /// Of course, if you have control over the codebase of the wallet client(s) too,\n    /// you can choose a more minimalistic signature scheme like\n    /// `keccak256(abi.encode(address(this), hash))` instead of all these acrobatics.\n    /// All these are just for widespread out-of-the-box compatibility with other wallet clients.\n    /// We want to create bazaars, not walled castles.\n    /// And we'll use push the Turing Completeness of the EVM to the limits to do so.\n    function _erc1271IsValidSignatureViaNestedEIP712(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool result)\n    {\n        uint256 t = uint256(uint160(address(this)));\n        // Forces the compiler to pop the variables after the scope, avoiding stack-too-deep.\n        if (t != uint256(0)) {\n            (\n                ,\n                string memory name,\n                string memory version,\n                uint256 chainId,\n                address verifyingContract,\n                bytes32 salt,\n            ) = eip712Domain();\n            /// @solidity memory-safe-assembly\n            assembly {\n                t := mload(0x40) // Grab the free memory pointer.\n                // Skip 2 words for the `typedDataSignTypehash` and `contents` struct hash.\n                mstore(add(t, 0x40), keccak256(add(name, 0x20), mload(name)))\n                mstore(add(t, 0x60), keccak256(add(version, 0x20), mload(version)))\n                mstore(add(t, 0x80), chainId)\n                mstore(add(t, 0xa0), shr(96, shl(96, verifyingContract)))\n                mstore(add(t, 0xc0), salt)\n                mstore(0x40, add(t, 0xe0)) // Allocate the memory.\n            }\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            // `c` is `contentsDescription.length`, which is stored in the last 2 bytes of the signature.\n            let c := shr(240, calldataload(add(signature.offset, sub(signature.length, 2))))\n            for {} 1 {} {\n                let l := add(0x42, c) // Total length of appended data (32 + 32 + c + 2).\n                let o := add(signature.offset, sub(signature.length, l)) // Offset of appended data.\n                mstore(0x00, 0x1901) // Store the \"\\x19\\x01\" prefix.\n                calldatacopy(0x20, o, 0x40) // Copy the `APP_DOMAIN_SEPARATOR` and `contents` struct hash.\n                // Use the `PersonalSign` workflow if the reconstructed hash doesn't match,\n                // or if the appended data is invalid, i.e.\n                // `appendedData.length > signature.length || contentsDescription.length == 0`.\n                if or(xor(keccak256(0x1e, 0x42), hash), or(lt(signature.length, l), iszero(c))) {\n                    t := 0 // Set `t` to 0, denoting that we need to `hash = _hashTypedData(hash)`.\n                    mstore(t, _PERSONAL_SIGN_TYPEHASH)\n                    mstore(0x20, hash) // Store the `prefixed`.\n                    hash := keccak256(t, 0x40) // Compute the `PersonalSign` struct hash.\n                    break\n                }\n                // Else, use the `TypedDataSign` workflow.\n                // `TypedDataSign({ContentsName} contents,string name,...){ContentsType}`.\n                mstore(m, \"TypedDataSign(\") // Store the start of `TypedDataSign`'s type encoding.\n                let p := add(m, 0x0e) // Advance 14 bytes to skip \"TypedDataSign(\".\n                calldatacopy(p, add(o, 0x40), c) // Copy `contentsName`, optimistically.\n                mstore(add(p, c), 40) // Store a '(' after the end.\n                if iszero(eq(byte(0, mload(sub(add(p, c), 1))), 41)) {\n                    let e := 0 // Length of `contentsName` in explicit mode.\n                    for { let q := sub(add(p, c), 1) } 1 {} {\n                        e := add(e, 1) // Scan backwards until we encounter a ')'.\n                        if iszero(gt(lt(e, c), eq(byte(0, mload(sub(q, e))), 41))) { break }\n                    }\n                    c := sub(c, e) // Truncate `contentsDescription` to `contentsType`.\n                    calldatacopy(p, add(add(o, 0x40), c), e) // Copy `contentsName`.\n                    mstore8(add(p, e), 40) // Store a '(' exactly right after the end.\n                }\n                // `d & 1 == 1` means that `contentsName` is invalid.\n                let d := shr(byte(0, mload(p)), 0x7fffffe000000000000010000000000) // Starts with `[a-z(]`.\n                // Advance `p` until we encounter '('.\n                for {} iszero(eq(byte(0, mload(p)), 40)) { p := add(p, 1) } {\n                    d := or(shr(byte(0, mload(p)), 0x120100000001), d) // Has a byte in \", )\\x00\".\n                }\n                mstore(p, \" contents,string name,string\") // Store the rest of the encoding.\n                mstore(add(p, 0x1c), \" version,uint256 chainId,address\")\n                mstore(add(p, 0x3c), \" verifyingContract,bytes32 salt)\")\n                p := add(p, 0x5c)\n                calldatacopy(p, add(o, 0x40), c) // Copy `contentsType`.\n                // Fill in the missing fields of the `TypedDataSign`.\n                calldatacopy(t, o, 0x40) // Copy the `contents` struct hash to `add(t, 0x20)`.\n                mstore(t, keccak256(m, sub(add(p, c), m))) // Store `typedDataSignTypehash`.\n                // The \"\\x19\\x01\" prefix is already at 0x00.\n                // `APP_DOMAIN_SEPARATOR` is already at 0x20.\n                mstore(0x40, keccak256(t, 0xe0)) // `hashStruct(typedDataSign)`.\n                // Compute the final hash, corrupted if `contentsName` is invalid.\n                hash := keccak256(0x1e, add(0x42, and(1, d)))\n                signature.length := sub(signature.length, l) // Truncate the signature.\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n        if (t == uint256(0)) hash = _hashTypedData(hash); // `PersonalSign` workflow.\n        result = _erc1271IsValidSignatureNowCalldata(hash, signature);\n    }\n\n    /// @dev Performs the signature validation without nested EIP-712 to allow for easy sign ins.\n    /// This function must always return false or revert if called on-chain.\n    function _erc1271IsValidSignatureViaRPC(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool result)\n    {\n        // Non-zero gasprice is a heuristic to check if a call is on-chain,\n        // but we can't fully depend on it because it can be manipulated.\n        // See: https://x.com/NoahCitron/status/1580359718341484544\n        if (tx.gasprice == uint256(0)) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                mstore(gasprice(), gasprice())\n                // See: https://gist.github.com/Vectorized/3c9b63524d57492b265454f62d895f71\n                let b := 0x000000000000378eDCD5B5B0A24f5342d8C10485 // Basefee contract,\n                pop(staticcall(0xffff, b, codesize(), gasprice(), gasprice(), 0x20))\n                // If `gasprice < basefee`, the call cannot be on-chain, and we can skip the gas burn.\n                if iszero(mload(gasprice())) {\n                    let m := mload(0x40) // Cache the free memory pointer.\n                    mstore(gasprice(), 0x1626ba7e) // `isValidSignature(bytes32,bytes)`.\n                    mstore(0x20, b) // Recycle `b` to denote if we need to burn gas.\n                    mstore(0x40, 0x40)\n                    let gasToBurn := or(add(0xffff, gaslimit()), gaslimit())\n                    // Burns gas computationally efficiently. Also, requires that `gas > gasToBurn`.\n                    if or(eq(hash, b), lt(gas(), gasToBurn)) { invalid() }\n                    // Make a call to this with `b`, efficiently burning the gas provided.\n                    // No valid transaction can consume more than the gaslimit.\n                    // See: https://ethereum.github.io/yellowpaper/paper.pdf\n                    // Most RPCs perform calls with a gas budget greater than the gaslimit.\n                    pop(staticcall(gasToBurn, address(), 0x1c, 0x64, gasprice(), gasprice()))\n                    mstore(0x40, m) // Restore the free memory pointer.\n                }\n            }\n            result = _erc1271IsValidSignatureNowCalldata(hash, signature);\n        }\n    }\n}\n"},"lib/solady/src/accounts/Receiver.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Receiver mixin for ETH and safe-transferred ERC721 and ERC1155 tokens.\n/// @author Solady (https://github.com/Vectorized/solady/blob/main/src/accounts/Receiver.sol)\n///\n/// @dev Note:\n/// - Handles all ERC721 and ERC1155 token safety callbacks.\n/// - Collapses function table gas overhead and code size.\n/// - Utilizes fallback so unknown calldata will pass on.\nabstract contract Receiver {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The function selector is not recognized.\n    error FnSelectorNotRecognized();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     RECEIVE / FALLBACK                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev For receiving ETH.\n    receive() external payable virtual {}\n\n    /// @dev Fallback function with the `receiverFallback` modifier.\n    fallback() external payable virtual receiverFallback {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x3c10b94e) // `FnSelectorNotRecognized()`.\n            revert(0x1c, 0x04)\n        }\n    }\n\n    /// @dev Modifier for the fallback function to handle token callbacks.\n    modifier receiverFallback() virtual {\n        _beforeReceiverFallbackBody();\n        if (_useReceiverFallbackBody()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let s := shr(224, calldataload(0))\n                // 0x150b7a02: `onERC721Received(address,address,uint256,bytes)`.\n                // 0xf23a6e61: `onERC1155Received(address,address,uint256,uint256,bytes)`.\n                // 0xbc197c81: `onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)`.\n                if or(eq(s, 0x150b7a02), or(eq(s, 0xf23a6e61), eq(s, 0xbc197c81))) {\n                    // Assumes `mload(0x40) <= 0xffffffff` to save gas on cleaning lower bytes.\n                    mstore(0x20, s) // Store `msg.sig`.\n                    return(0x3c, 0x20) // Return `msg.sig`.\n                }\n            }\n        }\n        _afterReceiverFallbackBody();\n        _;\n    }\n\n    /// @dev Whether we want to use the body of the `receiverFallback` modifier.\n    function _useReceiverFallbackBody() internal view virtual returns (bool) {\n        return true;\n    }\n\n    /// @dev Called before the body of the `receiverFallback` modifier.\n    function _beforeReceiverFallbackBody() internal virtual {}\n\n    /// @dev Called after the body of the `receiverFallback` modifier.\n    function _afterReceiverFallbackBody() internal virtual {}\n}\n"},"lib/solady/src/auth/OwnableRoles.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport {Ownable} from \"./Ownable.sol\";\n\n/// @notice Simple single owner and multiroles authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/OwnableRoles.sol)\n///\n/// @dev Note:\n/// This implementation does NOT auto-initialize the owner to `msg.sender`.\n/// You MUST call the `_initializeOwner` in the constructor / initializer.\n///\n/// While the ownable portion follows\n/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,\n/// the nomenclature for the 2-step ownership handover may be unique to this codebase.\nabstract contract OwnableRoles is Ownable {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The `user`'s roles is updated to `roles`.\n    /// Each bit of `roles` represents whether the role is set.\n    event RolesUpdated(address indexed user, uint256 indexed roles);\n\n    /// @dev `keccak256(bytes(\"RolesUpdated(address,uint256)\"))`.\n    uint256 private constant _ROLES_UPDATED_EVENT_SIGNATURE =\n        0x715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The role slot of `user` is given by:\n    /// ```\n    ///     mstore(0x00, or(shl(96, user), _ROLE_SLOT_SEED))\n    ///     let roleSlot := keccak256(0x00, 0x20)\n    /// ```\n    /// This automatically ignores the upper bits of the `user` in case\n    /// they are not clean, as well as keep the `keccak256` under 32-bytes.\n    ///\n    /// Note: This is equivalent to `uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))`.\n    uint256 private constant _ROLE_SLOT_SEED = 0x8b78c6d8;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     INTERNAL FUNCTIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Overwrite the roles directly without authorization guard.\n    function _setRoles(address user, uint256 roles) internal virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, user)\n            // Store the new value.\n            sstore(keccak256(0x0c, 0x20), roles)\n            // Emit the {RolesUpdated} event.\n            log3(0, 0, _ROLES_UPDATED_EVENT_SIGNATURE, shr(96, mload(0x0c)), roles)\n        }\n    }\n\n    /// @dev Updates the roles directly without authorization guard.\n    /// If `on` is true, each set bit of `roles` will be turned on,\n    /// otherwise, each set bit of `roles` will be turned off.\n    function _updateRoles(address user, uint256 roles, bool on) internal virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, user)\n            let roleSlot := keccak256(0x0c, 0x20)\n            // Load the current value.\n            let current := sload(roleSlot)\n            // Compute the updated roles if `on` is true.\n            let updated := or(current, roles)\n            // Compute the updated roles if `on` is false.\n            // Use `and` to compute the intersection of `current` and `roles`,\n            // `xor` it with `current` to flip the bits in the intersection.\n            if iszero(on) { updated := xor(current, and(current, roles)) }\n            // Then, store the new value.\n            sstore(roleSlot, updated)\n            // Emit the {RolesUpdated} event.\n            log3(0, 0, _ROLES_UPDATED_EVENT_SIGNATURE, shr(96, mload(0x0c)), updated)\n        }\n    }\n\n    /// @dev Grants the roles directly without authorization guard.\n    /// Each bit of `roles` represents the role to turn on.\n    function _grantRoles(address user, uint256 roles) internal virtual {\n        _updateRoles(user, roles, true);\n    }\n\n    /// @dev Removes the roles directly without authorization guard.\n    /// Each bit of `roles` represents the role to turn off.\n    function _removeRoles(address user, uint256 roles) internal virtual {\n        _updateRoles(user, roles, false);\n    }\n\n    /// @dev Throws if the sender does not have any of the `roles`.\n    function _checkRoles(uint256 roles) internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the role slot.\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, caller())\n            // Load the stored value, and if the `and` intersection\n            // of the value and `roles` is zero, revert.\n            if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n                mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Throws if the sender is not the owner,\n    /// and does not have any of the `roles`.\n    /// Checks for ownership first, then lazily checks for roles.\n    function _checkOwnerOrRoles(uint256 roles) internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // If the caller is not the stored owner.\n            // Note: `_ROLE_SLOT_SEED` is equal to `_OWNER_SLOT_NOT`.\n            if iszero(eq(caller(), sload(not(_ROLE_SLOT_SEED)))) {\n                // Compute the role slot.\n                mstore(0x0c, _ROLE_SLOT_SEED)\n                mstore(0x00, caller())\n                // Load the stored value, and if the `and` intersection\n                // of the value and `roles` is zero, revert.\n                if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n                    mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Throws if the sender does not have any of the `roles`,\n    /// and is not the owner.\n    /// Checks for roles first, then lazily checks for ownership.\n    function _checkRolesOrOwner(uint256 roles) internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the role slot.\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, caller())\n            // Load the stored value, and if the `and` intersection\n            // of the value and `roles` is zero, revert.\n            if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n                // If the caller is not the stored owner.\n                // Note: `_ROLE_SLOT_SEED` is equal to `_OWNER_SLOT_NOT`.\n                if iszero(eq(caller(), sload(not(_ROLE_SLOT_SEED)))) {\n                    mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Convenience function to return a `roles` bitmap from an array of `ordinals`.\n    /// This is meant for frontends like Etherscan, and is therefore not fully optimized.\n    /// Not recommended to be called on-chain.\n    /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n    function _rolesFromOrdinals(uint8[] memory ordinals) internal pure returns (uint256 roles) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let i := shl(5, mload(ordinals)) } i { i := sub(i, 0x20) } {\n                // We don't need to mask the values of `ordinals`, as Solidity\n                // cleans dirty upper bits when storing variables into memory.\n                roles := or(shl(mload(add(ordinals, i)), 1), roles)\n            }\n        }\n    }\n\n    /// @dev Convenience function to return an array of `ordinals` from the `roles` bitmap.\n    /// This is meant for frontends like Etherscan, and is therefore not fully optimized.\n    /// Not recommended to be called on-chain.\n    /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n    function _ordinalsFromRoles(uint256 roles) internal pure returns (uint8[] memory ordinals) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Grab the pointer to the free memory.\n            ordinals := mload(0x40)\n            let ptr := add(ordinals, 0x20)\n            let o := 0\n            // The absence of lookup tables, De Bruijn, etc., here is intentional for\n            // smaller bytecode, as this function is not meant to be called on-chain.\n            for { let t := roles } 1 {} {\n                mstore(ptr, o)\n                // `shr` 5 is equivalent to multiplying by 0x20.\n                // Push back into the ordinals array if the bit is set.\n                ptr := add(ptr, shl(5, and(t, 1)))\n                o := add(o, 1)\n                t := shr(o, roles)\n                if iszero(t) { break }\n            }\n            // Store the length of `ordinals`.\n            mstore(ordinals, shr(5, sub(ptr, add(ordinals, 0x20))))\n            // Allocate the memory.\n            mstore(0x40, ptr)\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  PUBLIC UPDATE FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Allows the owner to grant `user` `roles`.\n    /// If the `user` already has a role, then it will be an no-op for the role.\n    function grantRoles(address user, uint256 roles) public payable virtual onlyOwner {\n        _grantRoles(user, roles);\n    }\n\n    /// @dev Allows the owner to remove `user` `roles`.\n    /// If the `user` does not have a role, then it will be an no-op for the role.\n    function revokeRoles(address user, uint256 roles) public payable virtual onlyOwner {\n        _removeRoles(user, roles);\n    }\n\n    /// @dev Allow the caller to remove their own roles.\n    /// If the caller does not have a role, then it will be an no-op for the role.\n    function renounceRoles(uint256 roles) public payable virtual {\n        _removeRoles(msg.sender, roles);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   PUBLIC READ FUNCTIONS                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the roles of `user`.\n    function rolesOf(address user) public view virtual returns (uint256 roles) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the role slot.\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, user)\n            // Load the stored value.\n            roles := sload(keccak256(0x0c, 0x20))\n        }\n    }\n\n    /// @dev Returns whether `user` has any of `roles`.\n    function hasAnyRole(address user, uint256 roles) public view virtual returns (bool) {\n        return rolesOf(user) & roles != 0;\n    }\n\n    /// @dev Returns whether `user` has all of `roles`.\n    function hasAllRoles(address user, uint256 roles) public view virtual returns (bool) {\n        return rolesOf(user) & roles == roles;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         MODIFIERS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Marks a function as only callable by an account with `roles`.\n    modifier onlyRoles(uint256 roles) virtual {\n        _checkRoles(roles);\n        _;\n    }\n\n    /// @dev Marks a function as only callable by the owner or by an account\n    /// with `roles`. Checks for ownership first, then lazily checks for roles.\n    modifier onlyOwnerOrRoles(uint256 roles) virtual {\n        _checkOwnerOrRoles(roles);\n        _;\n    }\n\n    /// @dev Marks a function as only callable by an account with `roles`\n    /// or the owner. Checks for roles first, then lazily checks for ownership.\n    modifier onlyRolesOrOwner(uint256 roles) virtual {\n        _checkRolesOrOwner(roles);\n        _;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       ROLE CONSTANTS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // IYKYK\n\n    uint256 internal constant _ROLE_0 = 1 << 0;\n    uint256 internal constant _ROLE_1 = 1 << 1;\n    uint256 internal constant _ROLE_2 = 1 << 2;\n    uint256 internal constant _ROLE_3 = 1 << 3;\n    uint256 internal constant _ROLE_4 = 1 << 4;\n    uint256 internal constant _ROLE_5 = 1 << 5;\n    uint256 internal constant _ROLE_6 = 1 << 6;\n    uint256 internal constant _ROLE_7 = 1 << 7;\n    uint256 internal constant _ROLE_8 = 1 << 8;\n    uint256 internal constant _ROLE_9 = 1 << 9;\n    uint256 internal constant _ROLE_10 = 1 << 10;\n    uint256 internal constant _ROLE_11 = 1 << 11;\n    uint256 internal constant _ROLE_12 = 1 << 12;\n    uint256 internal constant _ROLE_13 = 1 << 13;\n    uint256 internal constant _ROLE_14 = 1 << 14;\n    uint256 internal constant _ROLE_15 = 1 << 15;\n    uint256 internal constant _ROLE_16 = 1 << 16;\n    uint256 internal constant _ROLE_17 = 1 << 17;\n    uint256 internal constant _ROLE_18 = 1 << 18;\n    uint256 internal constant _ROLE_19 = 1 << 19;\n    uint256 internal constant _ROLE_20 = 1 << 20;\n    uint256 internal constant _ROLE_21 = 1 << 21;\n    uint256 internal constant _ROLE_22 = 1 << 22;\n    uint256 internal constant _ROLE_23 = 1 << 23;\n    uint256 internal constant _ROLE_24 = 1 << 24;\n    uint256 internal constant _ROLE_25 = 1 << 25;\n    uint256 internal constant _ROLE_26 = 1 << 26;\n    uint256 internal constant _ROLE_27 = 1 << 27;\n    uint256 internal constant _ROLE_28 = 1 << 28;\n    uint256 internal constant _ROLE_29 = 1 << 29;\n    uint256 internal constant _ROLE_30 = 1 << 30;\n    uint256 internal constant _ROLE_31 = 1 << 31;\n    uint256 internal constant _ROLE_32 = 1 << 32;\n    uint256 internal constant _ROLE_33 = 1 << 33;\n    uint256 internal constant _ROLE_34 = 1 << 34;\n    uint256 internal constant _ROLE_35 = 1 << 35;\n    uint256 internal constant _ROLE_36 = 1 << 36;\n    uint256 internal constant _ROLE_37 = 1 << 37;\n    uint256 internal constant _ROLE_38 = 1 << 38;\n    uint256 internal constant _ROLE_39 = 1 << 39;\n    uint256 internal constant _ROLE_40 = 1 << 40;\n    uint256 internal constant _ROLE_41 = 1 << 41;\n    uint256 internal constant _ROLE_42 = 1 << 42;\n    uint256 internal constant _ROLE_43 = 1 << 43;\n    uint256 internal constant _ROLE_44 = 1 << 44;\n    uint256 internal constant _ROLE_45 = 1 << 45;\n    uint256 internal constant _ROLE_46 = 1 << 46;\n    uint256 internal constant _ROLE_47 = 1 << 47;\n    uint256 internal constant _ROLE_48 = 1 << 48;\n    uint256 internal constant _ROLE_49 = 1 << 49;\n    uint256 internal constant _ROLE_50 = 1 << 50;\n    uint256 internal constant _ROLE_51 = 1 << 51;\n    uint256 internal constant _ROLE_52 = 1 << 52;\n    uint256 internal constant _ROLE_53 = 1 << 53;\n    uint256 internal constant _ROLE_54 = 1 << 54;\n    uint256 internal constant _ROLE_55 = 1 << 55;\n    uint256 internal constant _ROLE_56 = 1 << 56;\n    uint256 internal constant _ROLE_57 = 1 << 57;\n    uint256 internal constant _ROLE_58 = 1 << 58;\n    uint256 internal constant _ROLE_59 = 1 << 59;\n    uint256 internal constant _ROLE_60 = 1 << 60;\n    uint256 internal constant _ROLE_61 = 1 << 61;\n    uint256 internal constant _ROLE_62 = 1 << 62;\n    uint256 internal constant _ROLE_63 = 1 << 63;\n    uint256 internal constant _ROLE_64 = 1 << 64;\n    uint256 internal constant _ROLE_65 = 1 << 65;\n    uint256 internal constant _ROLE_66 = 1 << 66;\n    uint256 internal constant _ROLE_67 = 1 << 67;\n    uint256 internal constant _ROLE_68 = 1 << 68;\n    uint256 internal constant _ROLE_69 = 1 << 69;\n    uint256 internal constant _ROLE_70 = 1 << 70;\n    uint256 internal constant _ROLE_71 = 1 << 71;\n    uint256 internal constant _ROLE_72 = 1 << 72;\n    uint256 internal constant _ROLE_73 = 1 << 73;\n    uint256 internal constant _ROLE_74 = 1 << 74;\n    uint256 internal constant _ROLE_75 = 1 << 75;\n    uint256 internal constant _ROLE_76 = 1 << 76;\n    uint256 internal constant _ROLE_77 = 1 << 77;\n    uint256 internal constant _ROLE_78 = 1 << 78;\n    uint256 internal constant _ROLE_79 = 1 << 79;\n    uint256 internal constant _ROLE_80 = 1 << 80;\n    uint256 internal constant _ROLE_81 = 1 << 81;\n    uint256 internal constant _ROLE_82 = 1 << 82;\n    uint256 internal constant _ROLE_83 = 1 << 83;\n    uint256 internal constant _ROLE_84 = 1 << 84;\n    uint256 internal constant _ROLE_85 = 1 << 85;\n    uint256 internal constant _ROLE_86 = 1 << 86;\n    uint256 internal constant _ROLE_87 = 1 << 87;\n    uint256 internal constant _ROLE_88 = 1 << 88;\n    uint256 internal constant _ROLE_89 = 1 << 89;\n    uint256 internal constant _ROLE_90 = 1 << 90;\n    uint256 internal constant _ROLE_91 = 1 << 91;\n    uint256 internal constant _ROLE_92 = 1 << 92;\n    uint256 internal constant _ROLE_93 = 1 << 93;\n    uint256 internal constant _ROLE_94 = 1 << 94;\n    uint256 internal constant _ROLE_95 = 1 << 95;\n    uint256 internal constant _ROLE_96 = 1 << 96;\n    uint256 internal constant _ROLE_97 = 1 << 97;\n    uint256 internal constant _ROLE_98 = 1 << 98;\n    uint256 internal constant _ROLE_99 = 1 << 99;\n    uint256 internal constant _ROLE_100 = 1 << 100;\n    uint256 internal constant _ROLE_101 = 1 << 101;\n    uint256 internal constant _ROLE_102 = 1 << 102;\n    uint256 internal constant _ROLE_103 = 1 << 103;\n    uint256 internal constant _ROLE_104 = 1 << 104;\n    uint256 internal constant _ROLE_105 = 1 << 105;\n    uint256 internal constant _ROLE_106 = 1 << 106;\n    uint256 internal constant _ROLE_107 = 1 << 107;\n    uint256 internal constant _ROLE_108 = 1 << 108;\n    uint256 internal constant _ROLE_109 = 1 << 109;\n    uint256 internal constant _ROLE_110 = 1 << 110;\n    uint256 internal constant _ROLE_111 = 1 << 111;\n    uint256 internal constant _ROLE_112 = 1 << 112;\n    uint256 internal constant _ROLE_113 = 1 << 113;\n    uint256 internal constant _ROLE_114 = 1 << 114;\n    uint256 internal constant _ROLE_115 = 1 << 115;\n    uint256 internal constant _ROLE_116 = 1 << 116;\n    uint256 internal constant _ROLE_117 = 1 << 117;\n    uint256 internal constant _ROLE_118 = 1 << 118;\n    uint256 internal constant _ROLE_119 = 1 << 119;\n    uint256 internal constant _ROLE_120 = 1 << 120;\n    uint256 internal constant _ROLE_121 = 1 << 121;\n    uint256 internal constant _ROLE_122 = 1 << 122;\n    uint256 internal constant _ROLE_123 = 1 << 123;\n    uint256 internal constant _ROLE_124 = 1 << 124;\n    uint256 internal constant _ROLE_125 = 1 << 125;\n    uint256 internal constant _ROLE_126 = 1 << 126;\n    uint256 internal constant _ROLE_127 = 1 << 127;\n    uint256 internal constant _ROLE_128 = 1 << 128;\n    uint256 internal constant _ROLE_129 = 1 << 129;\n    uint256 internal constant _ROLE_130 = 1 << 130;\n    uint256 internal constant _ROLE_131 = 1 << 131;\n    uint256 internal constant _ROLE_132 = 1 << 132;\n    uint256 internal constant _ROLE_133 = 1 << 133;\n    uint256 internal constant _ROLE_134 = 1 << 134;\n    uint256 internal constant _ROLE_135 = 1 << 135;\n    uint256 internal constant _ROLE_136 = 1 << 136;\n    uint256 internal constant _ROLE_137 = 1 << 137;\n    uint256 internal constant _ROLE_138 = 1 << 138;\n    uint256 internal constant _ROLE_139 = 1 << 139;\n    uint256 internal constant _ROLE_140 = 1 << 140;\n    uint256 internal constant _ROLE_141 = 1 << 141;\n    uint256 internal constant _ROLE_142 = 1 << 142;\n    uint256 internal constant _ROLE_143 = 1 << 143;\n    uint256 internal constant _ROLE_144 = 1 << 144;\n    uint256 internal constant _ROLE_145 = 1 << 145;\n    uint256 internal constant _ROLE_146 = 1 << 146;\n    uint256 internal constant _ROLE_147 = 1 << 147;\n    uint256 internal constant _ROLE_148 = 1 << 148;\n    uint256 internal constant _ROLE_149 = 1 << 149;\n    uint256 internal constant _ROLE_150 = 1 << 150;\n    uint256 internal constant _ROLE_151 = 1 << 151;\n    uint256 internal constant _ROLE_152 = 1 << 152;\n    uint256 internal constant _ROLE_153 = 1 << 153;\n    uint256 internal constant _ROLE_154 = 1 << 154;\n    uint256 internal constant _ROLE_155 = 1 << 155;\n    uint256 internal constant _ROLE_156 = 1 << 156;\n    uint256 internal constant _ROLE_157 = 1 << 157;\n    uint256 internal constant _ROLE_158 = 1 << 158;\n    uint256 internal constant _ROLE_159 = 1 << 159;\n    uint256 internal constant _ROLE_160 = 1 << 160;\n    uint256 internal constant _ROLE_161 = 1 << 161;\n    uint256 internal constant _ROLE_162 = 1 << 162;\n    uint256 internal constant _ROLE_163 = 1 << 163;\n    uint256 internal constant _ROLE_164 = 1 << 164;\n    uint256 internal constant _ROLE_165 = 1 << 165;\n    uint256 internal constant _ROLE_166 = 1 << 166;\n    uint256 internal constant _ROLE_167 = 1 << 167;\n    uint256 internal constant _ROLE_168 = 1 << 168;\n    uint256 internal constant _ROLE_169 = 1 << 169;\n    uint256 internal constant _ROLE_170 = 1 << 170;\n    uint256 internal constant _ROLE_171 = 1 << 171;\n    uint256 internal constant _ROLE_172 = 1 << 172;\n    uint256 internal constant _ROLE_173 = 1 << 173;\n    uint256 internal constant _ROLE_174 = 1 << 174;\n    uint256 internal constant _ROLE_175 = 1 << 175;\n    uint256 internal constant _ROLE_176 = 1 << 176;\n    uint256 internal constant _ROLE_177 = 1 << 177;\n    uint256 internal constant _ROLE_178 = 1 << 178;\n    uint256 internal constant _ROLE_179 = 1 << 179;\n    uint256 internal constant _ROLE_180 = 1 << 180;\n    uint256 internal constant _ROLE_181 = 1 << 181;\n    uint256 internal constant _ROLE_182 = 1 << 182;\n    uint256 internal constant _ROLE_183 = 1 << 183;\n    uint256 internal constant _ROLE_184 = 1 << 184;\n    uint256 internal constant _ROLE_185 = 1 << 185;\n    uint256 internal constant _ROLE_186 = 1 << 186;\n    uint256 internal constant _ROLE_187 = 1 << 187;\n    uint256 internal constant _ROLE_188 = 1 << 188;\n    uint256 internal constant _ROLE_189 = 1 << 189;\n    uint256 internal constant _ROLE_190 = 1 << 190;\n    uint256 internal constant _ROLE_191 = 1 << 191;\n    uint256 internal constant _ROLE_192 = 1 << 192;\n    uint256 internal constant _ROLE_193 = 1 << 193;\n    uint256 internal constant _ROLE_194 = 1 << 194;\n    uint256 internal constant _ROLE_195 = 1 << 195;\n    uint256 internal constant _ROLE_196 = 1 << 196;\n    uint256 internal constant _ROLE_197 = 1 << 197;\n    uint256 internal constant _ROLE_198 = 1 << 198;\n    uint256 internal constant _ROLE_199 = 1 << 199;\n    uint256 internal constant _ROLE_200 = 1 << 200;\n    uint256 internal constant _ROLE_201 = 1 << 201;\n    uint256 internal constant _ROLE_202 = 1 << 202;\n    uint256 internal constant _ROLE_203 = 1 << 203;\n    uint256 internal constant _ROLE_204 = 1 << 204;\n    uint256 internal constant _ROLE_205 = 1 << 205;\n    uint256 internal constant _ROLE_206 = 1 << 206;\n    uint256 internal constant _ROLE_207 = 1 << 207;\n    uint256 internal constant _ROLE_208 = 1 << 208;\n    uint256 internal constant _ROLE_209 = 1 << 209;\n    uint256 internal constant _ROLE_210 = 1 << 210;\n    uint256 internal constant _ROLE_211 = 1 << 211;\n    uint256 internal constant _ROLE_212 = 1 << 212;\n    uint256 internal constant _ROLE_213 = 1 << 213;\n    uint256 internal constant _ROLE_214 = 1 << 214;\n    uint256 internal constant _ROLE_215 = 1 << 215;\n    uint256 internal constant _ROLE_216 = 1 << 216;\n    uint256 internal constant _ROLE_217 = 1 << 217;\n    uint256 internal constant _ROLE_218 = 1 << 218;\n    uint256 internal constant _ROLE_219 = 1 << 219;\n    uint256 internal constant _ROLE_220 = 1 << 220;\n    uint256 internal constant _ROLE_221 = 1 << 221;\n    uint256 internal constant _ROLE_222 = 1 << 222;\n    uint256 internal constant _ROLE_223 = 1 << 223;\n    uint256 internal constant _ROLE_224 = 1 << 224;\n    uint256 internal constant _ROLE_225 = 1 << 225;\n    uint256 internal constant _ROLE_226 = 1 << 226;\n    uint256 internal constant _ROLE_227 = 1 << 227;\n    uint256 internal constant _ROLE_228 = 1 << 228;\n    uint256 internal constant _ROLE_229 = 1 << 229;\n    uint256 internal constant _ROLE_230 = 1 << 230;\n    uint256 internal constant _ROLE_231 = 1 << 231;\n    uint256 internal constant _ROLE_232 = 1 << 232;\n    uint256 internal constant _ROLE_233 = 1 << 233;\n    uint256 internal constant _ROLE_234 = 1 << 234;\n    uint256 internal constant _ROLE_235 = 1 << 235;\n    uint256 internal constant _ROLE_236 = 1 << 236;\n    uint256 internal constant _ROLE_237 = 1 << 237;\n    uint256 internal constant _ROLE_238 = 1 << 238;\n    uint256 internal constant _ROLE_239 = 1 << 239;\n    uint256 internal constant _ROLE_240 = 1 << 240;\n    uint256 internal constant _ROLE_241 = 1 << 241;\n    uint256 internal constant _ROLE_242 = 1 << 242;\n    uint256 internal constant _ROLE_243 = 1 << 243;\n    uint256 internal constant _ROLE_244 = 1 << 244;\n    uint256 internal constant _ROLE_245 = 1 << 245;\n    uint256 internal constant _ROLE_246 = 1 << 246;\n    uint256 internal constant _ROLE_247 = 1 << 247;\n    uint256 internal constant _ROLE_248 = 1 << 248;\n    uint256 internal constant _ROLE_249 = 1 << 249;\n    uint256 internal constant _ROLE_250 = 1 << 250;\n    uint256 internal constant _ROLE_251 = 1 << 251;\n    uint256 internal constant _ROLE_252 = 1 << 252;\n    uint256 internal constant _ROLE_253 = 1 << 253;\n    uint256 internal constant _ROLE_254 = 1 << 254;\n    uint256 internal constant _ROLE_255 = 1 << 255;\n}\n"},"lib/solady/src/utils/Initializable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Initializable mixin for the upgradeable contracts.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/Initializable.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/proxy/utils/Initializable.sol)\nabstract contract Initializable {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The contract is already initialized.\n    error InvalidInitialization();\n\n    /// @dev The contract is not initializing.\n    error NotInitializing();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Triggered when the contract has been initialized.\n    event Initialized(uint64 version);\n\n    /// @dev `keccak256(bytes(\"Initialized(uint64)\"))`.\n    bytes32 private constant _INITIALIZED_EVENT_SIGNATURE =\n        0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The default initializable slot is given by:\n    /// `bytes32(~uint256(uint32(bytes4(keccak256(\"_INITIALIZABLE_SLOT\")))))`.\n    ///\n    /// Bits Layout:\n    /// - [0]     `initializing`\n    /// - [1..64] `initializedVersion`\n    bytes32 private constant _INITIALIZABLE_SLOT =\n        0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf601132;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                        CONSTRUCTOR                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    constructor() {\n        // Construction time check to ensure that `_initializableSlot()` is not\n        // overridden to zero. Will be optimized away if there is no revert.\n        require(_initializableSlot() != bytes32(0));\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         OPERATIONS                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Override to return a non-zero custom storage slot if required.\n    function _initializableSlot() internal pure virtual returns (bytes32) {\n        return _INITIALIZABLE_SLOT;\n    }\n\n    /// @dev Guards an initializer function so that it can be invoked at most once.\n    ///\n    /// You can guard a function with `onlyInitializing` such that it can be called\n    /// through a function guarded with `initializer`.\n    ///\n    /// This is similar to `reinitializer(1)`, except that in the context of a constructor,\n    /// an `initializer` guarded function can be invoked multiple times.\n    /// This can be useful during testing and is not expected to be used in production.\n    ///\n    /// Emits an {Initialized} event.\n    modifier initializer() virtual {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let i := sload(s)\n            // Set `initializing` to 1, `initializedVersion` to 1.\n            sstore(s, 3)\n            // If `!(initializing == 0 && initializedVersion == 0)`.\n            if i {\n                // If `!(address(this).code.length == 0 && initializedVersion == 1)`.\n                if iszero(lt(extcodesize(address()), eq(shr(1, i), 1))) {\n                    mstore(0x00, 0xf92ee8a9) // `InvalidInitialization()`.\n                    revert(0x1c, 0x04)\n                }\n                s := shl(shl(255, i), s) // Skip initializing if `initializing == 1`.\n            }\n        }\n        _;\n        /// @solidity memory-safe-assembly\n        assembly {\n            if s {\n                // Set `initializing` to 0, `initializedVersion` to 1.\n                sstore(s, 2)\n                // Emit the {Initialized} event.\n                mstore(0x20, 1)\n                log1(0x20, 0x20, _INITIALIZED_EVENT_SIGNATURE)\n            }\n        }\n    }\n\n    /// @dev Guards a reinitializer function so that it can be invoked at most once.\n    ///\n    /// You can guard a function with `onlyInitializing` such that it can be called\n    /// through a function guarded with `reinitializer`.\n    ///\n    /// Emits an {Initialized} event.\n    modifier reinitializer(uint64 version) virtual {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Clean upper bits, and shift left by 1 to make space for the initializing bit.\n            version := shl(1, and(version, 0xffffffffffffffff))\n            let i := sload(s)\n            // If `initializing == 1 || initializedVersion >= version`.\n            if iszero(lt(and(i, 1), lt(i, version))) {\n                mstore(0x00, 0xf92ee8a9) // `InvalidInitialization()`.\n                revert(0x1c, 0x04)\n            }\n            // Set `initializing` to 1, `initializedVersion` to `version`.\n            sstore(s, or(1, version))\n        }\n        _;\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Set `initializing` to 0, `initializedVersion` to `version`.\n            sstore(s, version)\n            // Emit the {Initialized} event.\n            mstore(0x20, shr(1, version))\n            log1(0x20, 0x20, _INITIALIZED_EVENT_SIGNATURE)\n        }\n    }\n\n    /// @dev Guards a function such that it can only be called in the scope\n    /// of a function guarded with `initializer` or `reinitializer`.\n    modifier onlyInitializing() virtual {\n        _checkInitializing();\n        _;\n    }\n\n    /// @dev Reverts if the contract is not initializing.\n    function _checkInitializing() internal view virtual {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(and(1, sload(s))) {\n                mstore(0x00, 0xd7e6bcf8) // `NotInitializing()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Locks any future initializations by setting the initialized version to `2**64 - 1`.\n    ///\n    /// Calling this in the constructor will prevent the contract from being initialized\n    /// or reinitialized. It is recommended to use this to lock implementation contracts\n    /// that are designed to be called through proxies.\n    ///\n    /// Emits an {Initialized} event the first time it is successfully called.\n    function _disableInitializers() internal virtual {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let i := sload(s)\n            if and(i, 1) {\n                mstore(0x00, 0xf92ee8a9) // `InvalidInitialization()`.\n                revert(0x1c, 0x04)\n            }\n            let uint64max := 0xffffffffffffffff\n            if iszero(eq(shr(1, i), uint64max)) {\n                // Set `initializing` to 0, `initializedVersion` to `2**64 - 1`.\n                sstore(s, shl(1, uint64max))\n                // Emit the {Initialized} event.\n                mstore(0x20, uint64max)\n                log1(0x20, 0x20, _INITIALIZED_EVENT_SIGNATURE)\n            }\n        }\n    }\n\n    /// @dev Returns the highest version that has been initialized.\n    function _getInitializedVersion() internal view virtual returns (uint64 version) {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            version := shr(1, sload(s))\n        }\n    }\n\n    /// @dev Returns whether the contract is currently initializing.\n    function _isInitializing() internal view virtual returns (bool result) {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := and(1, sload(s))\n        }\n    }\n}\n"},"src/libraries/SignatureVerifierLib.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\nimport {ECDSA} from \"@solady/src/utils/ECDSA.sol\";\n\nimport {ERC1271_MAGIC_VALUE} from \"@deposit-wallet/src/libraries/WalletLib.sol\";\n\n/// @title IERC1271\n/// @author Polymarket\n/// @notice Minimal ERC-1271 interface used to encode the `isValidSignature` staticcall.\n/// @dev EIP-1271 defines the magic value as `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`,\n///      so the selector of this function and `ERC1271_MAGIC_VALUE` are the same constant.\ninterface IERC1271 {\n    /// @notice Returns the ERC-1271 magic value when `_signature` is valid for `_hash`.\n    /// @param _hash The digest that was signed.\n    /// @param _signature The signature payload.\n    /// @return The ERC-1271 magic value (`0x1626ba7e`) if the signature is valid.\n    function isValidSignature(bytes32 _hash, bytes calldata _signature)\n        external\n        view\n        returns (bytes4);\n}\n\n/// @title SignatureVerifierLib\n/// @author Polymarket\n/// @notice Verifies a signature for an address-based signer via ECDSA or ERC-1271.\n/// @dev ECDSA recovery is attempted first so that externally owned accounts — including EIP-7702\n///      delegated accounts, whose raw keys remain valid at the protocol level — never lose the\n///      ability to sign with their key. When ECDSA does not match and the signer has code,\n///      verification falls back to an ERC-1271 `isValidSignature` staticcall on the signer.\n///      Counterfactual (ERC-6492) contract signers are not supported: the signer contract must\n///      be deployed at verification time.\nlibrary SignatureVerifierLib {\n    /// @notice Returns whether `_signature` is valid for `_signer` over `_hash`.\n    /// @dev The ERC-1271 staticcall is never performed on the verifying contract itself, so a\n    ///      wallet configured as its own signer cannot enter a self-referential validation loop.\n    ///      A contract signer must return exactly the ERC-1271 magic value, left-aligned in a\n    ///      single word; reverts, wrong magic, and malformed return data all verify as false.\n    ///      Returndata copying is capped at one word to prevent return-data gas griefing.\n    /// @param _signer The expected signer (EOA or deployed ERC-1271 contract).\n    /// @param _hash The digest that was signed.\n    /// @param _signature A 64/65-byte ECDSA signature or an ERC-1271 payload for `_signer`.\n    /// @return Whether the signature is valid for `_signer`.\n    function isValidSignatureNow(address _signer, bytes32 _hash, bytes calldata _signature)\n        internal\n        view\n        returns (bool)\n    {\n        if (_signer == address(0)) return false;\n\n        if (_signature.length == 64 || _signature.length == 65) {\n            if (ECDSA.tryRecoverCalldata(_hash, _signature) == _signer) return true;\n        }\n\n        if (_signer == address(this) || _signer.code.length == 0) return false;\n\n        bytes memory callData = abi.encodeCall(IERC1271.isValidSignature, (_hash, _signature));\n        bool success;\n        bytes32 result;\n        assembly (\"memory-safe\") {\n            success := staticcall(gas(), _signer, add(callData, 0x20), mload(callData), 0x00, 0x20)\n            success := and(success, eq(returndatasize(), 0x20))\n            result := mload(0x00)\n        }\n        return success && result == bytes32(ERC1271_MAGIC_VALUE);\n    }\n}\n"},"lib/solady/src/utils/SafeTransferLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Permit2 operations from (https://github.com/Uniswap/permit2/blob/main/src/libraries/Permit2Lib.sol)\n///\n/// @dev Note:\n/// - For ETH transfers, please use `forceSafeTransferETH` for DoS protection.\nlibrary SafeTransferLib {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The ETH transfer has failed.\n    error ETHTransferFailed();\n\n    /// @dev The ERC20 `transferFrom` has failed.\n    error TransferFromFailed();\n\n    /// @dev The ERC20 `transfer` has failed.\n    error TransferFailed();\n\n    /// @dev The ERC20 `approve` has failed.\n    error ApproveFailed();\n\n    /// @dev The ERC20 `totalSupply` query has failed.\n    error TotalSupplyQueryFailed();\n\n    /// @dev The Permit2 operation has failed.\n    error Permit2Failed();\n\n    /// @dev The Permit2 amount must be less than `2**160 - 1`.\n    error Permit2AmountOverflow();\n\n    /// @dev The Permit2 approve operation has failed.\n    error Permit2ApproveFailed();\n\n    /// @dev The Permit2 lockdown operation has failed.\n    error Permit2LockdownFailed();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Suggested gas stipend for contract receiving ETH that disallows any storage writes.\n    uint256 internal constant GAS_STIPEND_NO_STORAGE_WRITES = 2300;\n\n    /// @dev Suggested gas stipend for contract receiving ETH to perform a few\n    /// storage reads and writes, but low enough to prevent griefing.\n    uint256 internal constant GAS_STIPEND_NO_GRIEF = 100000;\n\n    /// @dev The unique EIP-712 domain separator for the DAI token contract.\n    bytes32 internal constant DAI_DOMAIN_SEPARATOR =\n        0xdbb8cf42e1ecb028be3f3dbc922e1d878b963f411dc388ced501601c60f7c6f7;\n\n    /// @dev The address for the WETH9 contract on Ethereum mainnet.\n    address internal constant WETH9 = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;\n\n    /// @dev The canonical Permit2 address.\n    /// [Github](https://github.com/Uniswap/permit2)\n    /// [Etherscan](https://etherscan.io/address/0x000000000022D473030F116dDEE9F6B43aC78BA3)\n    address internal constant PERMIT2 = 0x000000000022D473030F116dDEE9F6B43aC78BA3;\n\n    /// @dev The canonical address of the `SELFDESTRUCT` ETH mover.\n    /// See: https://gist.github.com/Vectorized/1cb8ad4cf393b1378e08f23f79bd99fa\n    /// [Etherscan](https://etherscan.io/address/0x00000000000073c48c8055bD43D1A53799176f0D)\n    address internal constant ETH_MOVER = 0x00000000000073c48c8055bD43D1A53799176f0D;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       ETH OPERATIONS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // If the ETH transfer MUST succeed with a reasonable gas budget, use the force variants.\n    //\n    // The regular variants:\n    // - Forwards all remaining gas to the target.\n    // - Reverts if the target reverts.\n    // - Reverts if the current contract has insufficient balance.\n    //\n    // The force variants:\n    // - Forwards with an optional gas stipend\n    //   (defaults to `GAS_STIPEND_NO_GRIEF`, which is sufficient for most cases).\n    // - If the target reverts, or if the gas stipend is exhausted,\n    //   creates a temporary contract to force send the ETH via `SELFDESTRUCT`.\n    //   Future compatible with `SENDALL`: https://eips.ethereum.org/EIPS/eip-4758.\n    // - Reverts if the current contract has insufficient balance.\n    //\n    // The try variants:\n    // - Forwards with a mandatory gas stipend.\n    // - Instead of reverting, returns whether the transfer succeeded.\n\n    /// @dev Sends `amount` (in wei) ETH to `to`.\n    function safeTransferETH(address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(call(gas(), to, amount, codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Sends all the ETH in the current contract to `to`.\n    function safeTransferAllETH(address to) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Transfer all the ETH and check if it succeeded or not.\n            if iszero(call(gas(), to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Force sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n    function forceSafeTransferETH(address to, uint256 amount, uint256 gasStipend) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if lt(selfbalance(), amount) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Force sends all the ETH in the current contract to `to`, with a `gasStipend`.\n    function forceSafeTransferAllETH(address to, uint256 gasStipend) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Force sends `amount` (in wei) ETH to `to`, with `GAS_STIPEND_NO_GRIEF`.\n    function forceSafeTransferETH(address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if lt(selfbalance(), amount) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(call(GAS_STIPEND_NO_GRIEF, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Force sends all the ETH in the current contract to `to`, with `GAS_STIPEND_NO_GRIEF`.\n    function forceSafeTransferAllETH(address to) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // forgefmt: disable-next-item\n            if iszero(call(GAS_STIPEND_NO_GRIEF, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n    function trySafeTransferETH(address to, uint256 amount, uint256 gasStipend)\n        internal\n        returns (bool success)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            success := call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)\n        }\n    }\n\n    /// @dev Sends all the ETH in the current contract to `to`, with a `gasStipend`.\n    function trySafeTransferAllETH(address to, uint256 gasStipend)\n        internal\n        returns (bool success)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            success := call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)\n        }\n    }\n\n    /// @dev Force transfers ETH to `to`, without triggering the fallback (if any).\n    /// This method attempts to use a separate contract to send via `SELFDESTRUCT`,\n    /// and upon failure, deploys a minimal vault to accrue the ETH.\n    function safeMoveETH(address to, uint256 amount) internal returns (address vault) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            to := shr(96, shl(96, to)) // Clean upper 96 bits.\n            for { let mover := ETH_MOVER } iszero(eq(to, address())) {} {\n                let selfBalanceBefore := selfbalance()\n                if or(lt(selfBalanceBefore, amount), eq(to, mover)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                if extcodesize(mover) {\n                    let balanceBefore := balance(to) // Check via delta, in case `SELFDESTRUCT` is bricked.\n                    mstore(0x00, to)\n                    pop(call(gas(), mover, amount, 0x00, 0x20, codesize(), 0x00))\n                    // If `address(to).balance >= amount + balanceBefore`, skip vault workflow.\n                    if iszero(lt(balance(to), add(amount, balanceBefore))) { break }\n                    // Just in case `SELFDESTRUCT` is changed to not revert and do nothing.\n                    if lt(selfBalanceBefore, selfbalance()) { invalid() }\n                }\n                let m := mload(0x40)\n                // If the mover is missing or bricked, deploy a minimal vault\n                // that withdraws all ETH to `to` when being called only by `to`.\n                // forgefmt: disable-next-item\n                mstore(add(m, 0x20), 0x33146025575b600160005260206000f35b3d3d3d3d47335af1601a5760003dfd)\n                mstore(m, or(to, shl(160, 0x6035600b3d3960353df3fe73)))\n                // Compute and store the bytecode hash.\n                mstore8(0x00, 0xff) // Write the prefix.\n                mstore(0x35, keccak256(m, 0x40))\n                mstore(0x01, shl(96, address())) // Deployer.\n                mstore(0x15, 0) // Salt.\n                vault := keccak256(0x00, 0x55)\n                pop(call(gas(), vault, amount, codesize(), 0x00, codesize(), 0x00))\n                // The vault returns a single word on success. Failure reverts with empty data.\n                if iszero(returndatasize()) {\n                    if iszero(create2(0, m, 0x40, 0)) { revert(codesize(), codesize()) } // For gas estimation.\n                }\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      ERC20 OPERATIONS                      */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n    /// Reverts upon failure.\n    ///\n    /// The `from` account must have at least `amount` approved for\n    /// the current contract to manage.\n    function safeTransferFrom(address token, address from, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, amount) // Store the `amount` argument.\n            mstore(0x40, to) // Store the `to` argument.\n            mstore(0x2c, shl(96, from)) // Store the `from` argument.\n            mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n            let success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x60, 0) // Restore the zero slot to zero.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n    ///\n    /// The `from` account must have at least `amount` approved for the current contract to manage.\n    function trySafeTransferFrom(address token, address from, address to, uint256 amount)\n        internal\n        returns (bool success)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, amount) // Store the `amount` argument.\n            mstore(0x40, to) // Store the `to` argument.\n            mstore(0x2c, shl(96, from)) // Store the `from` argument.\n            mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n            success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                success := lt(or(iszero(extcodesize(token)), returndatasize()), success)\n            }\n            mstore(0x60, 0) // Restore the zero slot to zero.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Sends all of ERC20 `token` from `from` to `to`.\n    /// Reverts upon failure.\n    ///\n    /// The `from` account must have their entire balance approved for the current contract to manage.\n    function safeTransferAllFrom(address token, address from, address to)\n        internal\n        returns (uint256 amount)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x40, to) // Store the `to` argument.\n            mstore(0x2c, shl(96, from)) // Store the `from` argument.\n            mstore(0x0c, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n            // Read the balance, reverting upon failure.\n            if iszero(\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                    staticcall(gas(), token, 0x1c, 0x24, 0x60, 0x20)\n                )\n            ) {\n                mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x00, 0x23b872dd) // `transferFrom(address,address,uint256)`.\n            amount := mload(0x60) // The `amount` is already at 0x60. We'll need to return it.\n            // Perform the transfer, reverting upon failure.\n            let success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x60, 0) // Restore the zero slot to zero.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from the current contract to `to`.\n    /// Reverts upon failure.\n    function safeTransfer(address token, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, to) // Store the `to` argument.\n            mstore(0x34, amount) // Store the `amount` argument.\n            mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n            // Perform the transfer, reverting upon failure.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Sends all of ERC20 `token` from the current contract to `to`.\n    /// Reverts upon failure.\n    function safeTransferAll(address token, address to) internal returns (uint256 amount) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.\n            mstore(0x20, address()) // Store the address of the current contract.\n            // Read the balance, reverting upon failure.\n            if iszero(\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                    staticcall(gas(), token, 0x1c, 0x24, 0x34, 0x20)\n                )\n            ) {\n                mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x14, to) // Store the `to` argument.\n            amount := mload(0x34) // The `amount` is already at 0x34. We'll need to return it.\n            mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n            // Perform the transfer, reverting upon failure.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n    /// Reverts upon failure.\n    function safeApprove(address token, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, to) // Store the `to` argument.\n            mstore(0x34, amount) // Store the `amount` argument.\n            mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n    /// If the initial attempt to approve fails, attempts to reset the approved amount to zero,\n    /// then retries the approval again (some tokens, e.g. USDT, requires this).\n    /// Reverts upon failure.\n    function safeApproveWithRetry(address token, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, to) // Store the `to` argument.\n            mstore(0x34, amount) // Store the `amount` argument.\n            mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n            // Perform the approval, retrying upon failure.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x34, 0) // Store 0 for the `amount`.\n                    mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n                    pop(call(gas(), token, 0, 0x10, 0x44, codesize(), 0x00)) // Reset the approval.\n                    mstore(0x34, amount) // Store back the original `amount`.\n                    // Retry the approval, reverting upon failure.\n                    success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n                    if iszero(and(eq(mload(0x00), 1), success)) {\n                        // Check the `extcodesize` again just in case the token selfdestructs lol.\n                        if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                            mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n                            revert(0x1c, 0x04)\n                        }\n                    }\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Returns the amount of ERC20 `token` owned by `account`.\n    /// Returns zero if the `token` does not exist.\n    function balanceOf(address token, address account) internal view returns (uint256 amount) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, account) // Store the `account` argument.\n            mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n            amount :=\n                mul( // The arguments of `mul` are evaluated from right to left.\n                    mload(0x20),\n                    and( // The arguments of `and` are evaluated from right to left.\n                        gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                        staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)\n                    )\n                )\n        }\n    }\n\n    /// @dev Performs a `token.balanceOf(account)` check.\n    /// `implemented` denotes whether the `token` does not implement `balanceOf`.\n    /// `amount` is zero if the `token` does not implement `balanceOf`.\n    function checkBalanceOf(address token, address account)\n        internal\n        view\n        returns (bool implemented, uint256 amount)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, account) // Store the `account` argument.\n            mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n            implemented :=\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                    staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)\n                )\n            amount := mul(mload(0x20), implemented)\n        }\n    }\n\n    /// @dev Returns the total supply of the `token`.\n    /// Reverts if the token does not exist or does not implement `totalSupply()`.\n    function totalSupply(address token) internal view returns (uint256 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x18160ddd) // `totalSupply()`.\n            if iszero(\n                and(gt(returndatasize(), 0x1f), staticcall(gas(), token, 0x1c, 0x04, 0x00, 0x20))\n            ) {\n                mstore(0x00, 0x54cd9435) // `TotalSupplyQueryFailed()`.\n                revert(0x1c, 0x04)\n            }\n            result := mload(0x00)\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n    /// If the initial attempt fails, try to use Permit2 to transfer the token.\n    /// Reverts upon failure.\n    ///\n    /// The `from` account must have at least `amount` approved for the current contract to manage.\n    function safeTransferFrom2(address token, address from, address to, uint256 amount) internal {\n        if (!trySafeTransferFrom(token, from, to, amount)) {\n            permit2TransferFrom(token, from, to, amount);\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to` via Permit2.\n    /// Reverts upon failure.\n    function permit2TransferFrom(address token, address from, address to, uint256 amount)\n        internal\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            mstore(add(m, 0x74), shr(96, shl(96, token)))\n            mstore(add(m, 0x54), amount)\n            mstore(add(m, 0x34), to)\n            mstore(add(m, 0x20), shl(96, from))\n            // `transferFrom(address,address,uint160,address)`.\n            mstore(m, 0x36c78516000000000000000000000000)\n            let p := PERMIT2\n            let exists := eq(chainid(), 1)\n            if iszero(exists) { exists := iszero(iszero(extcodesize(p))) }\n            if iszero(\n                and(\n                    call(gas(), p, 0, add(m, 0x10), 0x84, codesize(), 0x00),\n                    lt(iszero(extcodesize(token)), exists) // Token has code and Permit2 exists.\n                )\n            ) {\n                mstore(0x00, 0x7939f4248757f0fd) // `TransferFromFailed()` or `Permit2AmountOverflow()`.\n                revert(add(0x18, shl(2, iszero(iszero(shr(160, amount))))), 0x04)\n            }\n        }\n    }\n\n    /// @dev Permit a user to spend a given amount of\n    /// another user's tokens via native EIP-2612 permit if possible, falling\n    /// back to Permit2 if native permit fails or is not implemented on the token.\n    function permit2(\n        address token,\n        address owner,\n        address spender,\n        uint256 amount,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        bool success;\n        /// @solidity memory-safe-assembly\n        assembly {\n            for {} shl(96, xor(token, WETH9)) {} {\n                mstore(0x00, 0x3644e515) // `DOMAIN_SEPARATOR()`.\n                if iszero(\n                    and( // The arguments of `and` are evaluated from right to left.\n                        lt(iszero(mload(0x00)), eq(returndatasize(), 0x20)), // Returns 1 non-zero word.\n                        // Gas stipend to limit gas burn for tokens that don't refund gas when\n                        // an non-existing function is called. 5K should be enough for a SLOAD.\n                        staticcall(5000, token, 0x1c, 0x04, 0x00, 0x20)\n                    )\n                ) { break }\n                // After here, we can be sure that token is a contract.\n                let m := mload(0x40)\n                mstore(add(m, 0x34), spender)\n                mstore(add(m, 0x20), shl(96, owner))\n                mstore(add(m, 0x74), deadline)\n                if eq(mload(0x00), DAI_DOMAIN_SEPARATOR) {\n                    mstore(0x14, owner)\n                    mstore(0x00, 0x7ecebe00000000000000000000000000) // `nonces(address)`.\n                    mstore(\n                        add(m, 0x94),\n                        lt(iszero(amount), staticcall(gas(), token, 0x10, 0x24, add(m, 0x54), 0x20))\n                    )\n                    mstore(m, 0x8fcbaf0c000000000000000000000000) // `IDAIPermit.permit`.\n                    // `nonces` is already at `add(m, 0x54)`.\n                    // `amount != 0` is already stored at `add(m, 0x94)`.\n                    mstore(add(m, 0xb4), and(0xff, v))\n                    mstore(add(m, 0xd4), r)\n                    mstore(add(m, 0xf4), s)\n                    success := call(gas(), token, 0, add(m, 0x10), 0x104, codesize(), 0x00)\n                    break\n                }\n                mstore(m, 0xd505accf000000000000000000000000) // `IERC20Permit.permit`.\n                mstore(add(m, 0x54), amount)\n                mstore(add(m, 0x94), and(0xff, v))\n                mstore(add(m, 0xb4), r)\n                mstore(add(m, 0xd4), s)\n                success := call(gas(), token, 0, add(m, 0x10), 0xe4, codesize(), 0x00)\n                break\n            }\n        }\n        if (!success) simplePermit2(token, owner, spender, amount, deadline, v, r, s);\n    }\n\n    /// @dev Simple permit on the Permit2 contract.\n    function simplePermit2(\n        address token,\n        address owner,\n        address spender,\n        uint256 amount,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            mstore(m, 0x927da105) // `allowance(address,address,address)`.\n            {\n                let addressMask := shr(96, not(0))\n                mstore(add(m, 0x20), and(addressMask, owner))\n                mstore(add(m, 0x40), and(addressMask, token))\n                mstore(add(m, 0x60), and(addressMask, spender))\n                mstore(add(m, 0xc0), and(addressMask, spender))\n            }\n            let p := mul(PERMIT2, iszero(shr(160, amount)))\n            if iszero(\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x5f), // Returns 3 words: `amount`, `expiration`, `nonce`.\n                    staticcall(gas(), p, add(m, 0x1c), 0x64, add(m, 0x60), 0x60)\n                )\n            ) {\n                mstore(0x00, 0x6b836e6b8757f0fd) // `Permit2Failed()` or `Permit2AmountOverflow()`.\n                revert(add(0x18, shl(2, iszero(p))), 0x04)\n            }\n            mstore(m, 0x2b67b570) // `Permit2.permit` (PermitSingle variant).\n            // `owner` is already `add(m, 0x20)`.\n            // `token` is already at `add(m, 0x40)`.\n            mstore(add(m, 0x60), amount)\n            mstore(add(m, 0x80), 0xffffffffffff) // `expiration = type(uint48).max`.\n            // `nonce` is already at `add(m, 0xa0)`.\n            // `spender` is already at `add(m, 0xc0)`.\n            mstore(add(m, 0xe0), deadline)\n            mstore(add(m, 0x100), 0x100) // `signature` offset.\n            mstore(add(m, 0x120), 0x41) // `signature` length.\n            mstore(add(m, 0x140), r)\n            mstore(add(m, 0x160), s)\n            mstore(add(m, 0x180), shl(248, v))\n            if iszero( // Revert if token does not have code, or if the call fails.\n            mul(extcodesize(token), call(gas(), p, 0, add(m, 0x1c), 0x184, codesize(), 0x00))) {\n                mstore(0x00, 0x6b836e6b) // `Permit2Failed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Approves `spender` to spend `amount` of `token` for `address(this)`.\n    function permit2Approve(address token, address spender, uint160 amount, uint48 expiration)\n        internal\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let addressMask := shr(96, not(0))\n            let m := mload(0x40)\n            mstore(m, 0x87517c45) // `approve(address,address,uint160,uint48)`.\n            mstore(add(m, 0x20), and(addressMask, token))\n            mstore(add(m, 0x40), and(addressMask, spender))\n            mstore(add(m, 0x60), and(addressMask, amount))\n            mstore(add(m, 0x80), and(0xffffffffffff, expiration))\n            if iszero(call(gas(), PERMIT2, 0, add(m, 0x1c), 0xa0, codesize(), 0x00)) {\n                mstore(0x00, 0x324f14ae) // `Permit2ApproveFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Revokes an approval for `token` and `spender` for `address(this)`.\n    function permit2Lockdown(address token, address spender) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            mstore(m, 0xcc53287f) // `Permit2.lockdown`.\n            mstore(add(m, 0x20), 0x20) // Offset of the `approvals`.\n            mstore(add(m, 0x40), 1) // `approvals.length`.\n            mstore(add(m, 0x60), shr(96, shl(96, token)))\n            mstore(add(m, 0x80), shr(96, shl(96, spender)))\n            if iszero(call(gas(), PERMIT2, 0, add(m, 0x1c), 0xa0, codesize(), 0x00)) {\n                mstore(0x00, 0x96b3de23) // `Permit2LockdownFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n}\n"},"lib/solady/src/utils/UUPSUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport {CallContextChecker} from \"./CallContextChecker.sol\";\n\n/// @notice UUPS proxy mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/UUPSUpgradeable.sol)\n/// @author Modified from OpenZeppelin\n/// (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/proxy/utils/UUPSUpgradeable.sol)\n///\n/// @dev Note:\n/// - This implementation is intended to be used with ERC1967 proxies.\n/// See: `LibClone.deployERC1967` and related functions.\n/// - This implementation is NOT compatible with legacy OpenZeppelin proxies\n/// which do not store the implementation at `_ERC1967_IMPLEMENTATION_SLOT`.\nabstract contract UUPSUpgradeable is CallContextChecker {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The upgrade failed.\n    error UpgradeFailed();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Emitted when the proxy's implementation is upgraded.\n    event Upgraded(address indexed implementation);\n\n    /// @dev `keccak256(bytes(\"Upgraded(address)\"))`.\n    uint256 private constant _UPGRADED_EVENT_SIGNATURE =\n        0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The ERC-1967 storage slot for the implementation in the proxy.\n    /// `uint256(keccak256(\"eip1967.proxy.implementation\")) - 1`.\n    bytes32 internal constant _ERC1967_IMPLEMENTATION_SLOT =\n        0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      UUPS OPERATIONS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Please override this function to check if `msg.sender` is authorized\n    /// to upgrade the proxy to `newImplementation`, reverting if not.\n    /// ```\n    ///     function _authorizeUpgrade(address) internal override onlyOwner {}\n    /// ```\n    function _authorizeUpgrade(address newImplementation) internal virtual;\n\n    /// @dev Returns the storage slot used by the implementation,\n    /// as specified in [ERC1822](https://eips.ethereum.org/EIPS/eip-1822).\n    ///\n    /// Note: The `notDelegated` modifier prevents accidental upgrades to\n    /// an implementation that is a proxy contract.\n    function proxiableUUID() public view virtual notDelegated returns (bytes32) {\n        // This function must always return `_ERC1967_IMPLEMENTATION_SLOT` to comply with ERC1967.\n        return _ERC1967_IMPLEMENTATION_SLOT;\n    }\n\n    /// @dev Upgrades the proxy's implementation to `newImplementation`.\n    /// Emits a {Upgraded} event.\n    ///\n    /// Note: Passing in empty `data` skips the delegatecall to `newImplementation`.\n    function upgradeToAndCall(address newImplementation, bytes calldata data)\n        public\n        payable\n        virtual\n        onlyProxy\n    {\n        _authorizeUpgrade(newImplementation);\n        /// @solidity memory-safe-assembly\n        assembly {\n            newImplementation := shr(96, shl(96, newImplementation)) // Clears upper 96 bits.\n            mstore(0x00, returndatasize())\n            mstore(0x01, 0x52d1902d) // `proxiableUUID()`.\n            let s := _ERC1967_IMPLEMENTATION_SLOT\n            // Check if `newImplementation` implements `proxiableUUID` correctly.\n            if iszero(eq(mload(staticcall(gas(), newImplementation, 0x1d, 0x04, 0x01, 0x20)), s)) {\n                mstore(0x01, 0x55299b49) // `UpgradeFailed()`.\n                revert(0x1d, 0x04)\n            }\n            // Emit the {Upgraded} event.\n            log2(codesize(), 0x00, _UPGRADED_EVENT_SIGNATURE, newImplementation)\n            sstore(s, newImplementation) // Updates the implementation.\n\n            // Perform a delegatecall to `newImplementation` if `data` is non-empty.\n            if data.length {\n                // Forwards the `data` to `newImplementation` via delegatecall.\n                let m := mload(0x40)\n                calldatacopy(m, data.offset, data.length)\n                if iszero(delegatecall(gas(), newImplementation, m, data.length, codesize(), 0x00))\n                {\n                    // Bubble up the revert if the call reverts.\n                    returndatacopy(m, 0x00, returndatasize())\n                    revert(m, returndatasize())\n                }\n            }\n        }\n    }\n}\n"},"lib/solady/src/utils/CallContextChecker.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Call context checker mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/CallContextChecker.sol)\ncontract CallContextChecker {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The call is from an unauthorized call context.\n    error UnauthorizedCallContext();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         IMMUTABLES                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev For checking if the context is a delegate call.\n    ///\n    /// Note: To enable use cases with an immutable default implementation in the bytecode,\n    /// (see: ERC6551Proxy), we don't require that the proxy address must match the\n    /// value stored in the implementation slot, which may not be initialized.\n    uint256 private immutable __self = uint256(uint160(address(this)));\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    CALL CONTEXT CHECKS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // A proxy call can be either via a `delegatecall` to an implementation,\n    // or a 7702 call on an authority that points to a delegation.\n\n    /// @dev Returns whether the current call context is on a EIP7702 authority\n    /// (i.e. externally owned account).\n    function _onEIP7702Authority() internal view virtual returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            extcodecopy(address(), 0x00, 0x00, 0x20)\n            // Note: Checking that it starts with hex\"ef01\" is the most general and futureproof.\n            // 7702 bytecode is `abi.encodePacked(hex\"ef01\", uint8(version), address(delegation))`.\n            result := eq(0xef01, shr(240, mload(0x00)))\n        }\n    }\n\n    /// @dev Returns the implementation of this contract.\n    function _selfImplementation() internal view virtual returns (address) {\n        return address(uint160(__self));\n    }\n\n    /// @dev Returns whether the current call context is on the implementation itself.\n    function _onImplementation() internal view virtual returns (bool) {\n        return __self == uint160(address(this));\n    }\n\n    /// @dev Requires that the current call context is performed via a EIP7702 authority.\n    function _checkOnlyEIP7702Authority() internal view virtual {\n        if (!_onEIP7702Authority()) _revertUnauthorizedCallContext();\n    }\n\n    /// @dev Requires that the current call context is performed via a proxy.\n    function _checkOnlyProxy() internal view virtual {\n        if (_onImplementation()) _revertUnauthorizedCallContext();\n    }\n\n    /// @dev Requires that the current call context is NOT performed via a proxy.\n    /// This is the opposite of `checkOnlyProxy`.\n    function _checkNotDelegated() internal view virtual {\n        if (!_onImplementation()) _revertUnauthorizedCallContext();\n    }\n\n    /// @dev Requires that the current call context is performed via a EIP7702 authority.\n    modifier onlyEIP7702Authority() virtual {\n        _checkOnlyEIP7702Authority();\n        _;\n    }\n\n    /// @dev Requires that the current call context is performed via a proxy.\n    modifier onlyProxy() virtual {\n        _checkOnlyProxy();\n        _;\n    }\n\n    /// @dev Requires that the current call context is NOT performed via a proxy.\n    /// This is the opposite of `onlyProxy`.\n    modifier notDelegated() virtual {\n        _checkNotDelegated();\n        _;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      PRIVATE HELPERS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    function _revertUnauthorizedCallContext() private pure {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x9f03a026) // `UnauthorizedCallContext()`.\n            revert(0x1c, 0x04)\n        }\n    }\n}\n"},"lib/solady/src/utils/SignatureCheckerLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Signature verification helper that supports both ECDSA signatures from EOAs\n/// and ERC1271 signatures from smart contract wallets like Argent and Gnosis safe.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SignatureCheckerLib.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/SignatureChecker.sol)\n///\n/// @dev Note:\n/// - The signature checking functions use the ecrecover precompile (0x1).\n/// - The `bytes memory signature` variants use the identity precompile (0x4)\n///   to copy memory internally.\n/// - Unlike ECDSA signatures, contract signatures are revocable.\n/// - As of Solady version 0.0.134, all `bytes signature` variants accept both\n///   regular 65-byte `(r, s, v)` and EIP-2098 `(r, vs)` short form signatures.\n///   See: https://eips.ethereum.org/EIPS/eip-2098\n///   This is for calldata efficiency on smart accounts prevalent on L2s.\n///\n/// WARNING! Do NOT use signatures as unique identifiers:\n/// - Use a nonce in the digest to prevent replay attacks on the same contract.\n/// - Use EIP-712 for the digest to prevent replay attacks across different chains and contracts.\n///   EIP-712 also enables readable signing of typed data for better user safety.\n/// This implementation does NOT check if a signature is non-malleable.\nlibrary SignatureCheckerLib {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*               SIGNATURE CHECKING OPERATIONS                */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns whether `signature` is valid for `signer` and `hash`.\n    /// If `signer.code.length == 0`, then validate with `ecrecover`, else\n    /// it will validate with ERC1271 on `signer`.\n    function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature)\n        internal\n        view\n        returns (bool isValid)\n    {\n        if (signer == address(0)) return isValid;\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            for {} 1 {} {\n                if iszero(extcodesize(signer)) {\n                    switch mload(signature)\n                    case 64 {\n                        let vs := mload(add(signature, 0x40))\n                        mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                        mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                    }\n                    case 65 {\n                        mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                        mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                    }\n                    default { break }\n                    mstore(0x00, hash)\n                    mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                    let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                    isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                    mstore(0x60, 0) // Restore the zero slot.\n                    mstore(0x40, m) // Restore the free memory pointer.\n                    break\n                }\n                let f := shl(224, 0x1626ba7e)\n                mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m, 0x04), hash)\n                let d := add(m, 0x24)\n                mstore(d, 0x40) // The offset of the `signature` in the calldata.\n                // Copy the `signature` over.\n                let n := add(0x20, mload(signature))\n                let copied := staticcall(gas(), 4, signature, n, add(m, 0x44), n)\n                isValid := staticcall(gas(), signer, m, add(returndatasize(), 0x44), d, 0x20)\n                isValid := and(eq(mload(d), f), and(isValid, copied))\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether `signature` is valid for `signer` and `hash`.\n    /// If `signer.code.length == 0`, then validate with `ecrecover`, else\n    /// it will validate with ERC1271 on `signer`.\n    function isValidSignatureNowCalldata(address signer, bytes32 hash, bytes calldata signature)\n        internal\n        view\n        returns (bool isValid)\n    {\n        if (signer == address(0)) return isValid;\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            for {} 1 {} {\n                if iszero(extcodesize(signer)) {\n                    switch signature.length\n                    case 64 {\n                        let vs := calldataload(add(signature.offset, 0x20))\n                        mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                        mstore(0x40, calldataload(signature.offset)) // `r`.\n                        mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                    }\n                    case 65 {\n                        mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n                        calldatacopy(0x40, signature.offset, 0x40) // `r`, `s`.\n                    }\n                    default { break }\n                    mstore(0x00, hash)\n                    let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                    isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                    mstore(0x60, 0) // Restore the zero slot.\n                    mstore(0x40, m) // Restore the free memory pointer.\n                    break\n                }\n                let f := shl(224, 0x1626ba7e)\n                mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m, 0x04), hash)\n                let d := add(m, 0x24)\n                mstore(d, 0x40) // The offset of the `signature` in the calldata.\n                mstore(add(m, 0x44), signature.length)\n                // Copy the `signature` over.\n                calldatacopy(add(m, 0x64), signature.offset, signature.length)\n                isValid := staticcall(gas(), signer, m, add(signature.length, 0x64), d, 0x20)\n                isValid := and(eq(mload(d), f), isValid)\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether the signature (`r`, `vs`) is valid for `signer` and `hash`.\n    /// If `signer.code.length == 0`, then validate with `ecrecover`, else\n    /// it will validate with ERC1271 on `signer`.\n    function isValidSignatureNow(address signer, bytes32 hash, bytes32 r, bytes32 vs)\n        internal\n        view\n        returns (bool isValid)\n    {\n        if (signer == address(0)) return isValid;\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            for {} 1 {} {\n                if iszero(extcodesize(signer)) {\n                    mstore(0x00, hash)\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x40, r) // `r`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                    let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                    isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                    mstore(0x60, 0) // Restore the zero slot.\n                    mstore(0x40, m) // Restore the free memory pointer.\n                    break\n                }\n                let f := shl(224, 0x1626ba7e)\n                mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m, 0x04), hash)\n                let d := add(m, 0x24)\n                mstore(d, 0x40) // The offset of the `signature` in the calldata.\n                mstore(add(m, 0x44), 65) // Length of the signature.\n                mstore(add(m, 0x64), r) // `r`.\n                mstore(add(m, 0x84), shr(1, shl(1, vs))) // `s`.\n                mstore8(add(m, 0xa4), add(shr(255, vs), 27)) // `v`.\n                isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n                isValid := and(eq(mload(d), f), isValid)\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether the signature (`v`, `r`, `s`) is valid for `signer` and `hash`.\n    /// If `signer.code.length == 0`, then validate with `ecrecover`, else\n    /// it will validate with ERC1271 on `signer`.\n    function isValidSignatureNow(address signer, bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n        internal\n        view\n        returns (bool isValid)\n    {\n        if (signer == address(0)) return isValid;\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            for {} 1 {} {\n                if iszero(extcodesize(signer)) {\n                    mstore(0x00, hash)\n                    mstore(0x20, and(v, 0xff)) // `v`.\n                    mstore(0x40, r) // `r`.\n                    mstore(0x60, s) // `s`.\n                    let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                    isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                    mstore(0x60, 0) // Restore the zero slot.\n                    mstore(0x40, m) // Restore the free memory pointer.\n                    break\n                }\n                let f := shl(224, 0x1626ba7e)\n                mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m, 0x04), hash)\n                let d := add(m, 0x24)\n                mstore(d, 0x40) // The offset of the `signature` in the calldata.\n                mstore(add(m, 0x44), 65) // Length of the signature.\n                mstore(add(m, 0x64), r) // `r`.\n                mstore(add(m, 0x84), s) // `s`.\n                mstore8(add(m, 0xa4), v) // `v`.\n                isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n                isValid := and(eq(mload(d), f), isValid)\n                break\n            }\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     ERC1271 OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: These ERC1271 operations do NOT have an ECDSA fallback.\n\n    /// @dev Returns whether `signature` is valid for `hash` for an ERC1271 `signer` contract.\n    function isValidERC1271SignatureNow(address signer, bytes32 hash, bytes memory signature)\n        internal\n        view\n        returns (bool isValid)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let f := shl(224, 0x1626ba7e)\n            mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n            mstore(add(m, 0x04), hash)\n            let d := add(m, 0x24)\n            mstore(d, 0x40) // The offset of the `signature` in the calldata.\n            // Copy the `signature` over.\n            let n := add(0x20, mload(signature))\n            let copied := staticcall(gas(), 4, signature, n, add(m, 0x44), n)\n            isValid := staticcall(gas(), signer, m, add(returndatasize(), 0x44), d, 0x20)\n            isValid := and(eq(mload(d), f), and(isValid, copied))\n        }\n    }\n\n    /// @dev Returns whether `signature` is valid for `hash` for an ERC1271 `signer` contract.\n    function isValidERC1271SignatureNowCalldata(\n        address signer,\n        bytes32 hash,\n        bytes calldata signature\n    ) internal view returns (bool isValid) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let f := shl(224, 0x1626ba7e)\n            mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n            mstore(add(m, 0x04), hash)\n            let d := add(m, 0x24)\n            mstore(d, 0x40) // The offset of the `signature` in the calldata.\n            mstore(add(m, 0x44), signature.length)\n            // Copy the `signature` over.\n            calldatacopy(add(m, 0x64), signature.offset, signature.length)\n            isValid := staticcall(gas(), signer, m, add(signature.length, 0x64), d, 0x20)\n            isValid := and(eq(mload(d), f), isValid)\n        }\n    }\n\n    /// @dev Returns whether the signature (`r`, `vs`) is valid for `hash`\n    /// for an ERC1271 `signer` contract.\n    function isValidERC1271SignatureNow(address signer, bytes32 hash, bytes32 r, bytes32 vs)\n        internal\n        view\n        returns (bool isValid)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let f := shl(224, 0x1626ba7e)\n            mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n            mstore(add(m, 0x04), hash)\n            let d := add(m, 0x24)\n            mstore(d, 0x40) // The offset of the `signature` in the calldata.\n            mstore(add(m, 0x44), 65) // Length of the signature.\n            mstore(add(m, 0x64), r) // `r`.\n            mstore(add(m, 0x84), shr(1, shl(1, vs))) // `s`.\n            mstore8(add(m, 0xa4), add(shr(255, vs), 27)) // `v`.\n            isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n            isValid := and(eq(mload(d), f), isValid)\n        }\n    }\n\n    /// @dev Returns whether the signature (`v`, `r`, `s`) is valid for `hash`\n    /// for an ERC1271 `signer` contract.\n    function isValidERC1271SignatureNow(address signer, bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n        internal\n        view\n        returns (bool isValid)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let f := shl(224, 0x1626ba7e)\n            mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n            mstore(add(m, 0x04), hash)\n            let d := add(m, 0x24)\n            mstore(d, 0x40) // The offset of the `signature` in the calldata.\n            mstore(add(m, 0x44), 65) // Length of the signature.\n            mstore(add(m, 0x64), r) // `r`.\n            mstore(add(m, 0x84), s) // `s`.\n            mstore8(add(m, 0xa4), v) // `v`.\n            isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n            isValid := and(eq(mload(d), f), isValid)\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     ERC6492 OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: These ERC6492 operations now include an ECDSA fallback at the very end.\n    // The calldata variants are excluded for brevity.\n\n    /// @dev Returns whether `signature` is valid for `hash`.\n    /// If the signature is postfixed with the ERC6492 magic number, it will attempt to\n    /// deploy / prepare the `signer` smart account before doing a regular ERC1271 check.\n    /// Note: This function is NOT reentrancy safe.\n    /// The verifier must be deployed.\n    /// Otherwise, the function will return false if `signer` is not yet deployed / prepared.\n    /// See: https://gist.github.com/Vectorized/011d6becff6e0a73e42fe100f8d7ef04\n    /// With a dedicated verifier, this function is safe to use in contracts\n    /// that have been granted special permissions.\n    function isValidERC6492SignatureNowAllowSideEffects(\n        address signer,\n        bytes32 hash,\n        bytes memory signature\n    ) internal returns (bool isValid) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            function callIsValidSignature(signer_, hash_, signature_) -> _isValid {\n                let m_ := mload(0x40)\n                let f_ := shl(224, 0x1626ba7e)\n                mstore(m_, f_) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m_, 0x04), hash_)\n                let d_ := add(m_, 0x24)\n                mstore(d_, 0x40) // The offset of the `signature` in the calldata.\n                let n_ := add(0x20, mload(signature_))\n                let copied_ := staticcall(gas(), 4, signature_, n_, add(m_, 0x44), n_)\n                _isValid := staticcall(gas(), signer_, m_, add(returndatasize(), 0x44), d_, 0x20)\n                _isValid := and(eq(mload(d_), f_), and(_isValid, copied_))\n            }\n            let noCode := iszero(extcodesize(signer))\n            let n := mload(signature)\n            for {} 1 {} {\n                if iszero(eq(mload(add(signature, n)), mul(0x6492, div(not(isValid), 0xffff)))) {\n                    if iszero(noCode) { isValid := callIsValidSignature(signer, hash, signature) }\n                    break\n                }\n                if iszero(noCode) {\n                    let o := add(signature, 0x20) // Signature bytes.\n                    isValid := callIsValidSignature(signer, hash, add(o, mload(add(o, 0x40))))\n                    if isValid { break }\n                }\n                let m := mload(0x40)\n                mstore(m, signer)\n                mstore(add(m, 0x20), hash)\n                pop(\n                    call(\n                        gas(), // Remaining gas.\n                        0x0000bc370E4DC924F427d84e2f4B9Ec81626ba7E, // Non-reverting verifier.\n                        0, // Send zero ETH.\n                        m, // Start of memory.\n                        add(returndatasize(), 0x40), // Length of calldata in memory.\n                        staticcall(gas(), 4, add(signature, 0x20), n, add(m, 0x40), n), // 1.\n                        0x00 // Length of returndata to write.\n                    )\n                )\n                isValid := returndatasize()\n                break\n            }\n            // Do `ecrecover` fallback if `noCode && !isValid`.\n            for {} gt(noCode, isValid) {} {\n                switch n\n                case 64 {\n                    let vs := mload(add(signature, 0x40))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                    mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                }\n                default { break }\n                let m := mload(0x40)\n                mstore(0x00, hash)\n                mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                mstore(0x60, 0) // Restore the zero slot.\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether `signature` is valid for `hash`.\n    /// If the signature is postfixed with the ERC6492 magic number, it will attempt\n    /// to use a reverting verifier to deploy / prepare the `signer` smart account\n    /// and do a `isValidSignature` check via the reverting verifier.\n    /// Note: This function is reentrancy safe.\n    /// The reverting verifier must be deployed.\n    /// Otherwise, the function will return false if `signer` is not yet deployed / prepared.\n    /// See: https://gist.github.com/Vectorized/846a474c855eee9e441506676800a9ad\n    function isValidERC6492SignatureNow(address signer, bytes32 hash, bytes memory signature)\n        internal\n        returns (bool isValid)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            function callIsValidSignature(signer_, hash_, signature_) -> _isValid {\n                let m_ := mload(0x40)\n                let f_ := shl(224, 0x1626ba7e)\n                mstore(m_, f_) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m_, 0x04), hash_)\n                let d_ := add(m_, 0x24)\n                mstore(d_, 0x40) // The offset of the `signature` in the calldata.\n                let n_ := add(0x20, mload(signature_))\n                let copied_ := staticcall(gas(), 4, signature_, n_, add(m_, 0x44), n_)\n                _isValid := staticcall(gas(), signer_, m_, add(returndatasize(), 0x44), d_, 0x20)\n                _isValid := and(eq(mload(d_), f_), and(_isValid, copied_))\n            }\n            let noCode := iszero(extcodesize(signer))\n            let n := mload(signature)\n            for {} 1 {} {\n                if iszero(eq(mload(add(signature, n)), mul(0x6492, div(not(isValid), 0xffff)))) {\n                    if iszero(noCode) { isValid := callIsValidSignature(signer, hash, signature) }\n                    break\n                }\n                if iszero(noCode) {\n                    let o := add(signature, 0x20) // Signature bytes.\n                    isValid := callIsValidSignature(signer, hash, add(o, mload(add(o, 0x40))))\n                    if isValid { break }\n                }\n                let m := mload(0x40)\n                mstore(m, signer)\n                mstore(add(m, 0x20), hash)\n                let willBeZeroIfRevertingVerifierExists :=\n                    call(\n                        gas(), // Remaining gas.\n                        0x00007bd799e4A591FeA53f8A8a3E9f931626Ba7e, // Reverting verifier.\n                        0, // Send zero ETH.\n                        m, // Start of memory.\n                        add(returndatasize(), 0x40), // Length of calldata in memory.\n                        staticcall(gas(), 4, add(signature, 0x20), n, add(m, 0x40), n), // 1.\n                        0x00 // Length of returndata to write.\n                    )\n                isValid := gt(returndatasize(), willBeZeroIfRevertingVerifierExists)\n                break\n            }\n            // Do `ecrecover` fallback if `noCode && !isValid`.\n            for {} gt(noCode, isValid) {} {\n                switch n\n                case 64 {\n                    let vs := mload(add(signature, 0x40))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                    mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                }\n                default { break }\n                let m := mload(0x40)\n                mstore(0x00, hash)\n                mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                mstore(0x60, 0) // Restore the zero slot.\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     HASHING OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns an Ethereum Signed Message, created from a `hash`.\n    /// This produces a hash corresponding to the one signed with the\n    /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign)\n    /// JSON-RPC method as part of EIP-191.\n    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x20, hash) // Store into scratch space for keccak256.\n            mstore(0x00, \"\\x00\\x00\\x00\\x00\\x19Ethereum Signed Message:\\n32\") // 28 bytes.\n            result := keccak256(0x04, 0x3c) // `32 * 2 - (32 - 28) = 60 = 0x3c`.\n        }\n    }\n\n    /// @dev Returns an Ethereum Signed Message, created from `s`.\n    /// This produces a hash corresponding to the one signed with the\n    /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign)\n    /// JSON-RPC method as part of EIP-191.\n    /// Note: Supports lengths of `s` up to 999999 bytes.\n    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let sLength := mload(s)\n            let o := 0x20\n            mstore(o, \"\\x19Ethereum Signed Message:\\n\") // 26 bytes, zero-right-padded.\n            mstore(0x00, 0x00)\n            // Convert the `s.length` to ASCII decimal representation: `base10(s.length)`.\n            for { let temp := sLength } 1 {} {\n                o := sub(o, 1)\n                mstore8(o, add(48, mod(temp, 10)))\n                temp := div(temp, 10)\n                if iszero(temp) { break }\n            }\n            let n := sub(0x3a, o) // Header length: `26 + 32 - o`.\n            // Throw an out-of-offset error (consumes all gas) if the header exceeds 32 bytes.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0x20))\n            mstore(s, or(mload(0x00), mload(n))) // Temporarily store the header.\n            result := keccak256(add(s, sub(0x20, n)), add(n, sLength))\n            mstore(s, sLength) // Restore the length.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   EMPTY CALLDATA HELPERS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns an empty calldata bytes.\n    function emptySignature() internal pure returns (bytes calldata signature) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            signature.length := 0\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Bytes.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/Bytes.sol)\n\npragma solidity ^0.8.24;\n\nimport {Math} from \"./math/Math.sol\";\n\n/**\n * @dev Bytes operations.\n */\nlibrary Bytes {\n    /**\n     * @dev Forward search for `s` in `buffer`\n     * * If `s` is present in the buffer, returns the index of the first instance\n     * * If `s` is not present in the buffer, returns type(uint256).max\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf[Javascript's `Array.indexOf`]\n     */\n    function indexOf(bytes memory buffer, bytes1 s) internal pure returns (uint256) {\n        return indexOf(buffer, s, 0);\n    }\n\n    /**\n     * @dev Forward search for `s` in `buffer` starting at position `pos`\n     * * If `s` is present in the buffer (at or after `pos`), returns the index of the next instance\n     * * If `s` is not present in the buffer (at or after `pos`), returns type(uint256).max\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf[Javascript's `Array.indexOf`]\n     */\n    function indexOf(bytes memory buffer, bytes1 s, uint256 pos) internal pure returns (uint256) {\n        uint256 length = buffer.length;\n        for (uint256 i = pos; i < length; ++i) {\n            if (bytes1(_unsafeReadBytesOffset(buffer, i)) == s) {\n                return i;\n            }\n        }\n        return type(uint256).max;\n    }\n\n    /**\n     * @dev Backward search for `s` in `buffer`\n     * * If `s` is present in the buffer, returns the index of the last instance\n     * * If `s` is not present in the buffer, returns type(uint256).max\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf[Javascript's `Array.lastIndexOf`]\n     */\n    function lastIndexOf(bytes memory buffer, bytes1 s) internal pure returns (uint256) {\n        return lastIndexOf(buffer, s, type(uint256).max);\n    }\n\n    /**\n     * @dev Backward search for `s` in `buffer` starting at position `pos`\n     * * If `s` is present in the buffer (at or before `pos`), returns the index of the previous instance\n     * * If `s` is not present in the buffer (at or before `pos`), returns type(uint256).max\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf[Javascript's `Array.lastIndexOf`]\n     */\n    function lastIndexOf(bytes memory buffer, bytes1 s, uint256 pos) internal pure returns (uint256) {\n        unchecked {\n            uint256 length = buffer.length;\n            for (uint256 i = Math.min(Math.saturatingAdd(pos, 1), length); i > 0; --i) {\n                if (bytes1(_unsafeReadBytesOffset(buffer, i - 1)) == s) {\n                    return i - 1;\n                }\n            }\n            return type(uint256).max;\n        }\n    }\n\n    /**\n     * @dev Copies the content of `buffer`, from `start` (included) to the end of `buffer` into a new bytes object in\n     * memory.\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n     */\n    function slice(bytes memory buffer, uint256 start) internal pure returns (bytes memory) {\n        return slice(buffer, start, buffer.length);\n    }\n\n    /**\n     * @dev Copies the content of `buffer`, from `start` (included) to `end` (excluded) into a new bytes object in\n     * memory. The `end` argument is truncated to the length of the `buffer`.\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n     */\n    function slice(bytes memory buffer, uint256 start, uint256 end) internal pure returns (bytes memory) {\n        // sanitize\n        end = Math.min(end, buffer.length);\n        start = Math.min(start, end);\n\n        // allocate and copy\n        bytes memory result = new bytes(end - start);\n        assembly (\"memory-safe\") {\n            mcopy(add(result, 0x20), add(add(buffer, 0x20), start), sub(end, start))\n        }\n\n        return result;\n    }\n\n    /**\n     * @dev Moves the content of `buffer`, from `start` (included) to the end of `buffer` to the start of that buffer,\n     * and shrinks the buffer length accordingly, effectively overriding the content of buffer with buffer[start:].\n     *\n     * NOTE: This function modifies the provided buffer in place. If you need to preserve the original buffer, use {slice} instead\n     */\n    function splice(bytes memory buffer, uint256 start) internal pure returns (bytes memory) {\n        return splice(buffer, start, buffer.length);\n    }\n\n    /**\n     * @dev Moves the content of `buffer`, from `start` (included) to `end` (excluded) to the start of that buffer,\n     * and shrinks the buffer length accordingly, effectively overriding the content of buffer with buffer[start:end].\n     * The `end` argument is truncated to the length of the `buffer`.\n     *\n     * NOTE: This function modifies the provided buffer in place. If you need to preserve the original buffer, use {slice} instead\n     */\n    function splice(bytes memory buffer, uint256 start, uint256 end) internal pure returns (bytes memory) {\n        // sanitize\n        end = Math.min(end, buffer.length);\n        start = Math.min(start, end);\n\n        // move and resize\n        assembly (\"memory-safe\") {\n            mcopy(add(buffer, 0x20), add(add(buffer, 0x20), start), sub(end, start))\n            mstore(buffer, sub(end, start))\n        }\n\n        return buffer;\n    }\n\n    /**\n     * @dev Replaces bytes in `buffer` starting at `pos` with all bytes from `replacement`.\n     *\n     * Parameters are clamped to valid ranges (i.e. `pos` is clamped to `[0, buffer.length]`).\n     * If `pos >= buffer.length`, no replacement occurs and the buffer is returned unchanged.\n     *\n     * NOTE: This function modifies the provided buffer in place.\n     */\n    function replace(bytes memory buffer, uint256 pos, bytes memory replacement) internal pure returns (bytes memory) {\n        return replace(buffer, pos, replacement, 0, replacement.length);\n    }\n\n    /**\n     * @dev Replaces bytes in `buffer` starting at `pos` with bytes from `replacement` starting at `offset`.\n     * Copies at most `length` bytes from `replacement` to `buffer`.\n     *\n     * Parameters are clamped to valid ranges (i.e. `pos` is clamped to `[0, buffer.length]`, `offset` is\n     * clamped to `[0, replacement.length]`, and `length` is clamped to `min(length, replacement.length - offset,\n     * buffer.length - pos))`. If `pos >= buffer.length` or `offset >= replacement.length`, no replacement occurs\n     * and the buffer is returned unchanged.\n     *\n     * NOTE: This function modifies the provided buffer in place.\n     */\n    function replace(\n        bytes memory buffer,\n        uint256 pos,\n        bytes memory replacement,\n        uint256 offset,\n        uint256 length\n    ) internal pure returns (bytes memory) {\n        // sanitize\n        pos = Math.min(pos, buffer.length);\n        offset = Math.min(offset, replacement.length);\n        length = Math.min(length, Math.min(replacement.length - offset, buffer.length - pos));\n\n        // replace\n        assembly (\"memory-safe\") {\n            mcopy(add(add(buffer, 0x20), pos), add(add(replacement, 0x20), offset), length)\n        }\n\n        return buffer;\n    }\n\n    /**\n     * @dev Concatenate an array of bytes into a single bytes object.\n     *\n     * For fixed bytes types, we recommend using the solidity built-in `bytes.concat` or (equivalent)\n     * `abi.encodePacked`.\n     *\n     * NOTE: this could be done in assembly with a single loop that expands starting at the FMP, but that would be\n     * significantly less readable. It might be worth benchmarking the savings of the full-assembly approach.\n     */\n    function concat(bytes[] memory buffers) internal pure returns (bytes memory) {\n        uint256 length = 0;\n        for (uint256 i = 0; i < buffers.length; ++i) {\n            length += buffers[i].length;\n        }\n\n        bytes memory result = new bytes(length);\n\n        uint256 offset = 0x20;\n        for (uint256 i = 0; i < buffers.length; ++i) {\n            bytes memory input = buffers[i];\n            assembly (\"memory-safe\") {\n                mcopy(add(result, offset), add(input, 0x20), mload(input))\n            }\n            unchecked {\n                offset += input.length;\n            }\n        }\n\n        return result;\n    }\n\n    /**\n     * @dev Split each byte in `input` into two nibbles (4 bits each)\n     *\n     * Example: hex\"01234567\" → hex\"0001020304050607\"\n     */\n    function toNibbles(bytes memory input) internal pure returns (bytes memory output) {\n        assembly (\"memory-safe\") {\n            let length := mload(input)\n            output := mload(0x40)\n            mstore(0x40, add(add(output, 0x20), mul(length, 2)))\n            mstore(output, mul(length, 2))\n            for {\n                let i := 0\n            } lt(i, length) {\n                i := add(i, 0x10)\n            } {\n                let chunk := shr(128, mload(add(add(input, 0x20), i)))\n                chunk := and(\n                    0x0000000000000000ffffffffffffffff0000000000000000ffffffffffffffff,\n                    or(shl(64, chunk), chunk)\n                )\n                chunk := and(\n                    0x00000000ffffffff00000000ffffffff00000000ffffffff00000000ffffffff,\n                    or(shl(32, chunk), chunk)\n                )\n                chunk := and(\n                    0x0000ffff0000ffff0000ffff0000ffff0000ffff0000ffff0000ffff0000ffff,\n                    or(shl(16, chunk), chunk)\n                )\n                chunk := and(\n                    0x00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff,\n                    or(shl(8, chunk), chunk)\n                )\n                chunk := and(\n                    0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f,\n                    or(shl(4, chunk), chunk)\n                )\n                mstore(add(add(output, 0x20), mul(i, 2)), chunk)\n            }\n        }\n    }\n\n    /**\n     * @dev Returns true if the two byte buffers are equal.\n     */\n    function equal(bytes memory a, bytes memory b) internal pure returns (bool) {\n        return a.length == b.length && keccak256(a) == keccak256(b);\n    }\n\n    /**\n     * @dev Reverses the byte order of a bytes32 value, converting between little-endian and big-endian.\n     * Inspired by https://graphics.stanford.edu/~seander/bithacks.html#ReverseParallel[Reverse Parallel]\n     */\n    function reverseBytes32(bytes32 value) internal pure returns (bytes32) {\n        value = // swap bytes\n            ((value >> 8) & 0x00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF) |\n            ((value & 0x00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF) << 8);\n        value = // swap 2-byte long pairs\n            ((value >> 16) & 0x0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF) |\n            ((value & 0x0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF) << 16);\n        value = // swap 4-byte long pairs\n            ((value >> 32) & 0x00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF) |\n            ((value & 0x00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF) << 32);\n        value = // swap 8-byte long pairs\n            ((value >> 64) & 0x0000000000000000FFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFF) |\n            ((value & 0x0000000000000000FFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFF) << 64);\n        return (value >> 128) | (value << 128); // swap 16-byte long pairs\n    }\n\n    /// @dev Same as {reverseBytes32} but optimized for 128-bit values.\n    function reverseBytes16(bytes16 value) internal pure returns (bytes16) {\n        value = // swap bytes\n            ((value & 0xFF00FF00FF00FF00FF00FF00FF00FF00) >> 8) |\n            ((value & 0x00FF00FF00FF00FF00FF00FF00FF00FF) << 8);\n        value = // swap 2-byte long pairs\n            ((value & 0xFFFF0000FFFF0000FFFF0000FFFF0000) >> 16) |\n            ((value & 0x0000FFFF0000FFFF0000FFFF0000FFFF) << 16);\n        value = // swap 4-byte long pairs\n            ((value & 0xFFFFFFFF00000000FFFFFFFF00000000) >> 32) |\n            ((value & 0x00000000FFFFFFFF00000000FFFFFFFF) << 32);\n        return (value >> 64) | (value << 64); // swap 8-byte long pairs\n    }\n\n    /// @dev Same as {reverseBytes32} but optimized for 64-bit values.\n    function reverseBytes8(bytes8 value) internal pure returns (bytes8) {\n        value = ((value & 0xFF00FF00FF00FF00) >> 8) | ((value & 0x00FF00FF00FF00FF) << 8); // swap bytes\n        value = ((value & 0xFFFF0000FFFF0000) >> 16) | ((value & 0x0000FFFF0000FFFF) << 16); // swap 2-byte long pairs\n        return (value >> 32) | (value << 32); // swap 4-byte long pairs\n    }\n\n    /// @dev Same as {reverseBytes32} but optimized for 32-bit values.\n    function reverseBytes4(bytes4 value) internal pure returns (bytes4) {\n        value = ((value & 0xFF00FF00) >> 8) | ((value & 0x00FF00FF) << 8); // swap bytes\n        return (value >> 16) | (value << 16); // swap 2-byte long pairs\n    }\n\n    /// @dev Same as {reverseBytes32} but optimized for 16-bit values.\n    function reverseBytes2(bytes2 value) internal pure returns (bytes2) {\n        return (value >> 8) | (value << 8);\n    }\n\n    /**\n     * @dev Counts the number of leading zero bits a bytes array. Returns `8 * buffer.length`\n     * if the buffer is all zeros.\n     */\n    function clz(bytes memory buffer) internal pure returns (uint256) {\n        for (uint256 i = 0; i < buffer.length; i += 0x20) {\n            bytes32 chunk = _unsafeReadBytesOffset(buffer, i);\n            if (chunk != bytes32(0)) {\n                return Math.min(8 * i + Math.clz(uint256(chunk)), 8 * buffer.length);\n            }\n        }\n        return 8 * buffer.length;\n    }\n\n    /**\n     * @dev Reads a bytes32 from a bytes array without bounds checking.\n     *\n     * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n     * assembly block as such would prevent some optimizations.\n     */\n    function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n        // This is not memory safe in the general case, but all calls to this private function are within bounds.\n        assembly (\"memory-safe\") {\n            value := mload(add(add(buffer, 0x20), offset))\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Panic.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n *      using Panic for uint256;\n *\n *      // Use any of the declared internal constants\n *      function foo() { Panic.GENERIC.panic(); }\n *\n *      // Alternatively\n *      function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n    /// @dev generic / unspecified error\n    uint256 internal constant GENERIC = 0x00;\n    /// @dev used by the assert() builtin\n    uint256 internal constant ASSERT = 0x01;\n    /// @dev arithmetic underflow or overflow\n    uint256 internal constant UNDER_OVERFLOW = 0x11;\n    /// @dev division or modulo by zero\n    uint256 internal constant DIVISION_BY_ZERO = 0x12;\n    /// @dev enum conversion error\n    uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n    /// @dev invalid encoding in storage\n    uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n    /// @dev empty array pop\n    uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n    /// @dev array out of bounds access\n    uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n    /// @dev resource error (too large allocation or too large array)\n    uint256 internal constant RESOURCE_ERROR = 0x41;\n    /// @dev calling invalid internal function\n    uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n    /// @dev Reverts with a panic code. Recommended to use with\n    /// the internal constants with predefined codes.\n    function panic(uint256 code) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0x00, 0x4e487b71)\n            mstore(0x20, code)\n            revert(0x1c, 0x24)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Base64.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/Base64.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./math/SafeCast.sol\";\n\n/**\n * @dev Provides a set of functions to operate with Base64 strings.\n */\nlibrary Base64 {\n    using SafeCast for bool;\n\n    error InvalidBase64Char(bytes1);\n\n    /**\n     * @dev Converts a `bytes` to its Base64 `string` representation.\n     */\n    function encode(bytes memory data) internal pure returns (string memory) {\n        return string(_encode(data, false));\n    }\n\n    /**\n     * @dev Converts a `bytes` to its Base64Url `string` representation.\n     * Output is not padded with `=` as specified in https://www.rfc-editor.org/rfc/rfc4648[rfc4648].\n     */\n    function encodeURL(bytes memory data) internal pure returns (string memory) {\n        return string(_encode(data, true));\n    }\n\n    /**\n     * @dev Converts a Base64 `string` to the `bytes` it represents.\n     *\n     * * Supports padded and unpadded inputs.\n     * * Supports both encoding ({encode} and {encodeURL}) seamlessly.\n     * * Reverts with {InvalidBase64Char} if the input contains an invalid character.\n     */\n    function decode(string memory data) internal pure returns (bytes memory) {\n        return _decode(bytes(data));\n    }\n\n    /**\n     * @dev Internal table-agnostic encoding\n     *\n     * Padding is enabled when using the Base64 table, and disabled when using the Base64Url table.\n     * See sections 4 and 5 of https://datatracker.ietf.org/doc/html/rfc4648\n     */\n    function _encode(bytes memory data, bool urlAndFilenameSafe) private pure returns (bytes memory result) {\n        /**\n         * Inspired by Brecht Devos (Brechtpd) implementation - MIT license\n         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol\n         */\n        if (data.length == 0) return \"\";\n\n        // Padding is enabled by default, but disabled when the \"urlAndFilenameSafe\" alphabet is used\n        //\n        // If padding is enabled, the final length should be `bytes` data length divided by 3 rounded up and then\n        // multiplied by 4 so that it leaves room for padding the last chunk\n        // - `data.length + 2`  -> Prepare for division rounding up\n        // - `/ 3`              -> Number of 3-bytes chunks (rounded up)\n        // - `4 *`              -> 4 characters for each chunk\n        // This is equivalent to: 4 * Math.ceil(data.length / 3)\n        //\n        // If padding is disabled, the final length should be `bytes` data length multiplied by 4/3 rounded up as\n        // opposed to when padding is required to fill the last chunk.\n        // - `4 * data.length`  -> 4 characters for each chunk\n        // - ` + 2`             -> Prepare for division rounding up\n        // - `/ 3`              -> Number of 3-bytes chunks (rounded up)\n        // This is equivalent to: Math.ceil((4 * data.length) / 3)\n        uint256 resultLength = urlAndFilenameSafe ? (4 * data.length + 2) / 3 : 4 * ((data.length + 2) / 3);\n\n        assembly (\"memory-safe\") {\n            result := mload(0x40)\n\n            // Store the encoding table in the scratch space (and fmp ptr) to avoid memory allocation\n            //\n            // Base64    (ascii)  A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 + /\n            // Base64    (hex)   4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f\n            // Base64Url (ascii)  A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 - _\n            // Base64Url (hex)   4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392d5f\n            // xor       (hex)   00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000670\n            mstore(0x1f, \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef\")\n            mstore(0x3f, xor(\"ghijklmnopqrstuvwxyz0123456789+/\", mul(urlAndFilenameSafe, 0x670)))\n\n            // Prepare result pointer, jump over length\n            let resultPtr := add(result, 0x20)\n            let resultEnd := add(resultPtr, resultLength)\n            let dataPtr := data\n            let endPtr := add(data, mload(data))\n\n            // In some cases, the last iteration will read bytes after the end of the data. We cache the value, and\n            // set it to zero to make sure no dirty bytes are read in that section.\n            let afterPtr := add(endPtr, 0x20)\n            let afterCache := mload(afterPtr)\n            mstore(afterPtr, 0x00)\n\n            // Run over the input, 3 bytes at a time\n            for {} lt(dataPtr, endPtr) {} {\n                // Advance 3 bytes\n                dataPtr := add(dataPtr, 3)\n                let input := mload(dataPtr)\n\n                // To write each character, shift the 3 byte (24 bits) chunk\n                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)\n                // and apply logical AND with 0x3F to bitmask the least significant 6 bits.\n                // Use this as an index into the lookup table, mload an entire word\n                // so the desired character is in the least significant byte, and\n                // mstore8 this least significant byte into the result and continue.\n                mstore8(resultPtr, mload(and(shr(18, input), 0x3F)))\n                resultPtr := add(resultPtr, 1) // Advance\n                mstore8(resultPtr, mload(and(shr(12, input), 0x3F)))\n                resultPtr := add(resultPtr, 1) // Advance\n                mstore8(resultPtr, mload(and(shr(6, input), 0x3F)))\n                resultPtr := add(resultPtr, 1) // Advance\n                mstore8(resultPtr, mload(and(input, 0x3F)))\n                resultPtr := add(resultPtr, 1) // Advance\n            }\n\n            // Reset the value that was cached\n            mstore(afterPtr, afterCache)\n\n            if iszero(urlAndFilenameSafe) {\n                // When data `bytes` is not exactly 3 bytes long\n                // it is padded with `=` characters at the end\n                switch mod(mload(data), 3)\n                case 1 {\n                    mstore8(sub(resultPtr, 1), 0x3d)\n                    mstore8(sub(resultPtr, 2), 0x3d)\n                }\n                case 2 {\n                    mstore8(sub(resultPtr, 1), 0x3d)\n                }\n            }\n\n            // Store result length and update FMP to reserve allocated space\n            mstore(result, resultLength)\n            mstore(0x40, resultEnd)\n        }\n    }\n\n    /**\n     * @dev Internal decoding\n     */\n    function _decode(bytes memory data) private pure returns (bytes memory result) {\n        bytes4 errorSelector = InvalidBase64Char.selector;\n\n        uint256 dataLength = data.length;\n        if (dataLength == 0) return \"\";\n\n        uint256 resultLength = (dataLength / 4) * 3;\n        if (dataLength % 4 == 0) {\n            resultLength -= (data[dataLength - 1] == \"=\").toUint() + (data[dataLength - 2] == \"=\").toUint();\n        } else {\n            resultLength += (dataLength % 4) - 1;\n        }\n\n        assembly (\"memory-safe\") {\n            result := mload(0x40)\n\n            // Temporarily store the reverse lookup table between in memory. This spans from 0x00 to 0x50, Using:\n            // - all 64bytes of scratch space\n            // - part of the FMP (at location 0x40)\n            mstore(0x30, 0x2425262728292a2b2c2d2e2f30313233)\n            mstore(0x20, 0x0a0b0c0d0e0f10111213141516171819ffffffff3fff1a1b1c1d1e1f20212223)\n            mstore(0x00, 0x3eff3eff3f3435363738393a3b3c3dffffff00ffffff00010203040506070809)\n\n            // Prepare result pointer, jump over length\n            let dataPtr := data\n            let resultPtr := add(result, 0x20)\n            let endPtr := add(resultPtr, resultLength)\n\n            // In some cases, the last iteration will read bytes after the end of the data. We cache the value, and\n            // set it to \"==\" (fake padding) to make sure no dirty bytes are read in that section.\n            let afterPtr := add(add(data, 0x20), dataLength)\n            let afterCache := mload(afterPtr)\n            mstore(afterPtr, shl(240, 0x3d3d))\n\n            // loop while not everything is decoded\n            for {} lt(resultPtr, endPtr) {} {\n                dataPtr := add(dataPtr, 4)\n\n                // Read a 4 bytes chunk of data\n                let input := mload(dataPtr)\n\n                // Decode each byte in the chunk as a 6 bit block, and align them to form a block of 3 bytes\n                let a := sub(byte(28, input), 43)\n                // slither-disable-next-line incorrect-shift\n                if iszero(and(shl(a, 1), 0xffffffd0ffffffc47ff5)) {\n                    mstore(0, errorSelector)\n                    mstore(4, shl(248, add(a, 43)))\n                    revert(0, 0x24)\n                }\n                let b := sub(byte(29, input), 43)\n                // slither-disable-next-line incorrect-shift\n                if iszero(and(shl(b, 1), 0xffffffd0ffffffc47ff5)) {\n                    mstore(0, errorSelector)\n                    mstore(4, shl(248, add(b, 43)))\n                    revert(0, 0x24)\n                }\n                let c := sub(byte(30, input), 43)\n                // slither-disable-next-line incorrect-shift\n                if iszero(and(shl(c, 1), 0xffffffd0ffffffc47ff5)) {\n                    mstore(0, errorSelector)\n                    mstore(4, shl(248, add(c, 43)))\n                    revert(0, 0x24)\n                }\n                let d := sub(byte(31, input), 43)\n                // slither-disable-next-line incorrect-shift\n                if iszero(and(shl(d, 1), 0xffffffd0ffffffc47ff5)) {\n                    mstore(0, errorSelector)\n                    mstore(4, shl(248, add(d, 43)))\n                    revert(0, 0x24)\n                }\n\n                mstore(\n                    resultPtr,\n                    or(\n                        or(shl(250, byte(0, mload(a))), shl(244, byte(0, mload(b)))),\n                        or(shl(238, byte(0, mload(c))), shl(232, byte(0, mload(d))))\n                    )\n                )\n\n                resultPtr := add(resultPtr, 3)\n            }\n\n            // Reset the value that was cached\n            mstore(afterPtr, afterCache)\n\n            // Store result length and update FMP to reserve allocated space\n            mstore(result, resultLength)\n            mstore(0x40, endPtr)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Errors.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n    /**\n     * @dev The ETH balance of the account is not enough to perform the operation.\n     */\n    error InsufficientBalance(uint256 balance, uint256 needed);\n\n    /**\n     * @dev A call to an address target failed. The target may have reverted.\n     */\n    error FailedCall();\n\n    /**\n     * @dev The deployment failed.\n     */\n    error FailedDeployment();\n\n    /**\n     * @dev A necessary precompile is missing.\n     */\n    error MissingPrecompile(address);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Strings.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/Strings.sol)\n\npragma solidity ^0.8.24;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\nimport {Bytes} from \"./Bytes.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n    using SafeCast for *;\n\n    bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n    uint8 private constant ADDRESS_LENGTH = 20;\n    uint256 private constant SPECIAL_CHARS_LOOKUP =\n        0xffffffff | // first 32 bits corresponding to the control characters (U+0000 to U+001F)\n            (1 << 0x22) | // double quote\n            (1 << 0x5c); // backslash\n\n    /**\n     * @dev The `value` string doesn't fit in the specified `length`.\n     */\n    error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n    /**\n     * @dev The string being parsed contains characters that are not in scope of the given base.\n     */\n    error StringsInvalidChar();\n\n    /**\n     * @dev The string being parsed is not a properly formatted address.\n     */\n    error StringsInvalidAddressFormat();\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            assembly (\"memory-safe\") {\n                ptr := add(add(buffer, 0x20), length)\n            }\n            while (true) {\n                ptr--;\n                assembly (\"memory-safe\") {\n                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\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 toStringSigned(int256 value) internal pure returns (string memory) {\n        return string.concat(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        uint256 localValue = value;\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] = HEX_DIGITS[localValue & 0xf];\n            localValue >>= 4;\n        }\n        if (localValue != 0) {\n            revert StringsInsufficientHexLength(value, length);\n        }\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\n     * 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 Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n     * representation, according to EIP-55.\n     */\n    function toChecksumHexString(address addr) internal pure returns (string memory) {\n        bytes memory buffer = bytes(toHexString(addr));\n\n        // hash the hex part of buffer (skip length + 2 bytes, length 40)\n        uint256 hashValue;\n        assembly (\"memory-safe\") {\n            hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n        }\n\n        for (uint256 i = 41; i > 1; --i) {\n            // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n            if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n                // case shift by xoring with 0x20\n                buffer[i] ^= 0x20;\n            }\n            hashValue >>= 4;\n        }\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts a `bytes` buffer to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(bytes memory input) internal pure returns (string memory) {\n        unchecked {\n            bytes memory buffer = new bytes(2 * input.length + 2);\n            buffer[0] = \"0\";\n            buffer[1] = \"x\";\n            for (uint256 i = 0; i < input.length; ++i) {\n                uint8 v = uint8(input[i]);\n                buffer[2 * i + 2] = HEX_DIGITS[v >> 4];\n                buffer[2 * i + 3] = HEX_DIGITS[v & 0xf];\n            }\n            return string(buffer);\n        }\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 Bytes.equal(bytes(a), bytes(b));\n    }\n\n    /**\n     * @dev Parse a decimal string and returns the value as a `uint256`.\n     *\n     * Requirements:\n     * - The string must be formatted as `[0-9]*`\n     * - The result must fit into an `uint256` type\n     */\n    function parseUint(string memory input) internal pure returns (uint256) {\n        return parseUint(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n     * `end` (excluded).\n     *\n     * Requirements:\n     * - The substring must be formatted as `[0-9]*`\n     * - The result must fit into an `uint256` type\n     */\n    function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n        (bool success, uint256 value) = tryParseUint(input, begin, end);\n        if (!success) revert StringsInvalidChar();\n        return value;\n    }\n\n    /**\n     * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n     *\n     * NOTE: This function will revert if the result does not fit in a `uint256`.\n     */\n    function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n        return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n     * character.\n     *\n     * NOTE: This function will revert if the result does not fit in a `uint256`.\n     */\n    function tryParseUint(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) internal pure returns (bool success, uint256 value) {\n        if (end > bytes(input).length || begin > end) return (false, 0);\n        return _tryParseUintUncheckedBounds(input, begin, end);\n    }\n\n    /**\n     * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n     * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n     */\n    function _tryParseUintUncheckedBounds(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) private pure returns (bool success, uint256 value) {\n        bytes memory buffer = bytes(input);\n\n        uint256 result = 0;\n        for (uint256 i = begin; i < end; ++i) {\n            uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n            if (chr > 9) return (false, 0);\n            result *= 10;\n            result += chr;\n        }\n        return (true, result);\n    }\n\n    /**\n     * @dev Parse a decimal string and returns the value as a `int256`.\n     *\n     * Requirements:\n     * - The string must be formatted as `[-+]?[0-9]*`\n     * - The result must fit in an `int256` type.\n     */\n    function parseInt(string memory input) internal pure returns (int256) {\n        return parseInt(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n     * `end` (excluded).\n     *\n     * Requirements:\n     * - The substring must be formatted as `[-+]?[0-9]*`\n     * - The result must fit in an `int256` type.\n     */\n    function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n        (bool success, int256 value) = tryParseInt(input, begin, end);\n        if (!success) revert StringsInvalidChar();\n        return value;\n    }\n\n    /**\n     * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n     * the result does not fit in a `int256`.\n     *\n     * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n     */\n    function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n        return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n    }\n\n    uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n    /**\n     * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n     * character or if the result does not fit in a `int256`.\n     *\n     * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n     */\n    function tryParseInt(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) internal pure returns (bool success, int256 value) {\n        if (end > bytes(input).length || begin > end) return (false, 0);\n        return _tryParseIntUncheckedBounds(input, begin, end);\n    }\n\n    /**\n     * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n     * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n     */\n    function _tryParseIntUncheckedBounds(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) private pure returns (bool success, int256 value) {\n        bytes memory buffer = bytes(input);\n\n        // Check presence of a negative sign.\n        bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n        bool positiveSign = sign == bytes1(\"+\");\n        bool negativeSign = sign == bytes1(\"-\");\n        uint256 offset = (positiveSign || negativeSign).toUint();\n\n        (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n        if (absSuccess && absValue < ABS_MIN_INT256) {\n            return (true, negativeSign ? -int256(absValue) : int256(absValue));\n        } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n            return (true, type(int256).min);\n        } else return (false, 0);\n    }\n\n    /**\n     * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n     *\n     * Requirements:\n     * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n     * - The result must fit in an `uint256` type.\n     */\n    function parseHexUint(string memory input) internal pure returns (uint256) {\n        return parseHexUint(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n     * `end` (excluded).\n     *\n     * Requirements:\n     * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n     * - The result must fit in an `uint256` type.\n     */\n    function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n        (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n        if (!success) revert StringsInvalidChar();\n        return value;\n    }\n\n    /**\n     * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n     *\n     * NOTE: This function will revert if the result does not fit in a `uint256`.\n     */\n    function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n        return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n     * invalid character.\n     *\n     * NOTE: This function will revert if the result does not fit in a `uint256`.\n     */\n    function tryParseHexUint(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) internal pure returns (bool success, uint256 value) {\n        if (end > bytes(input).length || begin > end) return (false, 0);\n        return _tryParseHexUintUncheckedBounds(input, begin, end);\n    }\n\n    /**\n     * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n     * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n     */\n    function _tryParseHexUintUncheckedBounds(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) private pure returns (bool success, uint256 value) {\n        bytes memory buffer = bytes(input);\n\n        // skip 0x prefix if present\n        bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n        uint256 offset = hasPrefix.toUint() * 2;\n\n        uint256 result = 0;\n        for (uint256 i = begin + offset; i < end; ++i) {\n            uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n            if (chr > 15) return (false, 0);\n            result *= 16;\n            unchecked {\n                // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n                // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n                result += chr;\n            }\n        }\n        return (true, result);\n    }\n\n    /**\n     * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n     *\n     * Requirements:\n     * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n     */\n    function parseAddress(string memory input) internal pure returns (address) {\n        return parseAddress(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n     * `end` (excluded).\n     *\n     * Requirements:\n     * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n     */\n    function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n        (bool success, address value) = tryParseAddress(input, begin, end);\n        if (!success) revert StringsInvalidAddressFormat();\n        return value;\n    }\n\n    /**\n     * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n     * formatted address. See {parseAddress-string} requirements.\n     */\n    function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n        return tryParseAddress(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n     * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n     */\n    function tryParseAddress(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) internal pure returns (bool success, address value) {\n        if (end > bytes(input).length || begin > end) return (false, address(0));\n\n        bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n        uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n        // check that input is the correct length\n        if (end - begin == expectedLength) {\n            // length guarantees that this does not overflow, and value is at most type(uint160).max\n            (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n            return (s, address(uint160(v)));\n        } else {\n            return (false, address(0));\n        }\n    }\n\n    function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n        uint8 value = uint8(chr);\n\n        // Try to parse `chr`:\n        // - Case 1: [0-9]\n        // - Case 2: [a-f]\n        // - Case 3: [A-F]\n        // - otherwise not supported\n        unchecked {\n            if (value > 47 && value < 58) value -= 48;\n            else if (value > 96 && value < 103) value -= 87;\n            else if (value > 64 && value < 71) value -= 55;\n            else return type(uint8).max;\n        }\n\n        return value;\n    }\n\n    /**\n     * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n     *\n     * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n     *\n     * NOTE: This function escapes backslashes (including those in \\uXXXX sequences) and the characters in ranges\n     * defined in section 2.5 of RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). All control characters in U+0000\n     * to U+001F are escaped (\\b, \\t, \\n, \\f, \\r use short form; others use \\u00XX). ECMAScript's `JSON.parse` does\n     * recover escaped unicode characters that are not in this range, but other tooling may provide different results.\n     */\n    function escapeJSON(string memory input) internal pure returns (string memory) {\n        bytes memory buffer = bytes(input);\n\n        // Put output at the FMP. Memory will be reserved later when we figure out the actual length of the escaped\n        // string. All write are done using _unsafeWriteBytesOffset, which avoid the (expensive) length checks for\n        // each character written.\n        bytes memory output;\n        assembly (\"memory-safe\") {\n            output := mload(0x40)\n        }\n        uint256 outputLength = 0;\n\n        for (uint256 i = 0; i < buffer.length; ++i) {\n            uint8 char = uint8(bytes1(_unsafeReadBytesOffset(buffer, i)));\n            if (((SPECIAL_CHARS_LOOKUP & (1 << char)) != 0)) {\n                _unsafeWriteBytesOffset(output, outputLength++, \"\\\\\");\n                if (char == 0x08) _unsafeWriteBytesOffset(output, outputLength++, \"b\");\n                else if (char == 0x09) _unsafeWriteBytesOffset(output, outputLength++, \"t\");\n                else if (char == 0x0a) _unsafeWriteBytesOffset(output, outputLength++, \"n\");\n                else if (char == 0x0c) _unsafeWriteBytesOffset(output, outputLength++, \"f\");\n                else if (char == 0x0d) _unsafeWriteBytesOffset(output, outputLength++, \"r\");\n                else if (char == 0x5c) _unsafeWriteBytesOffset(output, outputLength++, \"\\\\\");\n                else if (char == 0x22) {\n                    // solhint-disable-next-line quotes\n                    _unsafeWriteBytesOffset(output, outputLength++, '\"');\n                } else {\n                    // U+0000 to U+001F without short form: output \\u00XX\n                    _unsafeWriteBytesOffset(output, outputLength++, \"u\");\n                    _unsafeWriteBytesOffset(output, outputLength++, \"0\");\n                    _unsafeWriteBytesOffset(output, outputLength++, \"0\");\n                    _unsafeWriteBytesOffset(output, outputLength++, HEX_DIGITS[char >> 4]);\n                    _unsafeWriteBytesOffset(output, outputLength++, HEX_DIGITS[char & 0x0f]);\n                }\n            } else {\n                _unsafeWriteBytesOffset(output, outputLength++, bytes1(char));\n            }\n        }\n        // write the actual length and reserve memory\n        assembly (\"memory-safe\") {\n            mstore(output, outputLength)\n            mstore(0x40, add(output, add(outputLength, 0x20)))\n        }\n\n        return string(output);\n    }\n\n    /**\n     * @dev Reads a bytes32 from a bytes array without bounds checking.\n     *\n     * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n     * assembly block as such would prevent some optimizations.\n     */\n    function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n        // This is not memory safe in the general case, but all calls to this private function are within bounds.\n        assembly (\"memory-safe\") {\n            value := mload(add(add(buffer, 0x20), offset))\n        }\n    }\n\n    /**\n     * @dev Write a bytes1 to a bytes array without bounds checking.\n     *\n     * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n     * assembly block as such would prevent some optimizations.\n     */\n    function _unsafeWriteBytesOffset(bytes memory buffer, uint256 offset, bytes1 value) private pure {\n        // This is not memory safe in the general case, but all calls to this private function are within bounds.\n        assembly (\"memory-safe\") {\n            mstore8(add(add(buffer, 0x20), offset), shr(248, value))\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    enum Rounding {\n        Floor, // Toward negative infinity\n        Ceil, // Toward positive infinity\n        Trunc, // Toward zero\n        Expand // Away from zero\n    }\n\n    /**\n     * @dev Return the 512-bit addition of two uint256.\n     *\n     * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n     */\n    function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n        assembly (\"memory-safe\") {\n            low := add(a, b)\n            high := lt(low, a)\n        }\n    }\n\n    /**\n     * @dev Return the 512-bit multiplication of two uint256.\n     *\n     * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n     */\n    function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n        // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n        // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n        // variables such that product = high * 2²⁵⁶ + low.\n        assembly (\"memory-safe\") {\n            let mm := mulmod(a, b, not(0))\n            low := mul(a, b)\n            high := sub(sub(mm, low), lt(mm, low))\n        }\n    }\n\n    /**\n     * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n     */\n    function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a + b;\n            success = c >= a;\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n     */\n    function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a - b;\n            success = c <= a;\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n     */\n    function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a * b;\n            assembly (\"memory-safe\") {\n                // Only true when the multiplication doesn't overflow\n                // (c / a == b) || (a == 0)\n                success := or(eq(div(c, a), b), iszero(a))\n            }\n            // equivalent to: success ? c : 0\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n     */\n    function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            success = b > 0;\n            assembly (\"memory-safe\") {\n                // The `DIV` opcode returns zero when the denominator is 0.\n                result := div(a, b)\n            }\n        }\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n     */\n    function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            success = b > 0;\n            assembly (\"memory-safe\") {\n                // The `MOD` opcode returns zero when the denominator is 0.\n                result := mod(a, b)\n            }\n        }\n    }\n\n    /**\n     * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n     */\n    function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n        (bool success, uint256 result) = tryAdd(a, b);\n        return ternary(success, result, type(uint256).max);\n    }\n\n    /**\n     * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n     */\n    function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n        (, uint256 result) = trySub(a, b);\n        return result;\n    }\n\n    /**\n     * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n     */\n    function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n        (bool success, uint256 result) = tryMul(a, b);\n        return ternary(success, result, type(uint256).max);\n    }\n\n    /**\n     * @dev Branchless ternary evaluation for `condition ? a : b`. Gas costs are constant.\n     *\n     * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n     * However, the compiler may optimize Solidity ternary operations (i.e. `condition ? a : b`) to only compute\n     * one branch when needed, making this function more expensive.\n     */\n    function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n        unchecked {\n            // branchless ternary works because:\n            // b ^ (a ^ b) == a\n            // b ^ 0 == b\n            return b ^ ((a ^ b) * SafeCast.toUint(condition));\n        }\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 ternary(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 ternary(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        unchecked {\n            // (a + b) / 2 can overflow.\n            return (a & b) + (a ^ b) / 2;\n        }\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 towards infinity instead\n     * of rounding towards zero.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        if (b == 0) {\n            // Guarantee the same behavior as in a regular Solidity division.\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n\n        // The following calculation ensures accurate ceiling division without overflow.\n        // Since a is non-zero, (a - 1) / b will not overflow.\n        // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n        // but the largest value we can obtain is type(uint256).max - 1, which happens\n        // when a = type(uint256).max and b = 1.\n        unchecked {\n            return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n        }\n    }\n\n    /**\n     * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n     * denominator == 0.\n     *\n     * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n     * Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            (uint256 high, uint256 low) = mul512(x, y);\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (high == 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 low / denominator;\n            }\n\n            // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n            if (denominator <= high) {\n                Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n            }\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [high low].\n            uint256 remainder;\n            assembly (\"memory-safe\") {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                high := sub(high, gt(remainder, low))\n                low := sub(low, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n            uint256 twos = denominator & (0 - denominator);\n            assembly (\"memory-safe\") {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [high low] by twos.\n                low := div(low, twos)\n\n                // Flip twos such that it is 2²⁵⁶ / 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 high into low.\n            low |= high * twos;\n\n            // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n            // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\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\n            // works in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n            inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n            inverse *= 2 - denominator * inverse; // inverse mod 2³²\n            inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n            inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n            inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\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²⁵⁶. Since the preconditions guarantee that the outcome is\n            // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n            // is no longer required.\n            result = low * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @dev 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        return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n    }\n\n    /**\n     * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n     */\n    function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n        unchecked {\n            (uint256 high, uint256 low) = mul512(x, y);\n            if (high >= 1 << n) {\n                Panic.panic(Panic.UNDER_OVERFLOW);\n            }\n            return (high << (256 - n)) | (low >> n);\n        }\n    }\n\n    /**\n     * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n     */\n    function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n        return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n    }\n\n    /**\n     * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n     *\n     * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n     * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n     *\n     * If the input value is not inversible, 0 is returned.\n     *\n     * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n     * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n     */\n    function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n        unchecked {\n            if (n == 0) return 0;\n\n            // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n            // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n            // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n            // ax + ny = 1\n            // ax = 1 + (-y)n\n            // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n            // If the remainder is 0 the gcd is n right away.\n            uint256 remainder = a % n;\n            uint256 gcd = n;\n\n            // Therefore the initial coefficients are:\n            // ax + ny = gcd(a, n) = n\n            // 0a + 1n = n\n            int256 x = 0;\n            int256 y = 1;\n\n            while (remainder != 0) {\n                uint256 quotient = gcd / remainder;\n\n                (gcd, remainder) = (\n                    // The old remainder is the next gcd to try.\n                    remainder,\n                    // Compute the next remainder.\n                    // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n                    // where gcd is at most n (capped to type(uint256).max)\n                    gcd - remainder * quotient\n                );\n\n                (x, y) = (\n                    // Increment the coefficient of a.\n                    y,\n                    // Decrement the coefficient of n.\n                    // Can overflow, but the result is casted to uint256 so that the\n                    // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n                    x - y * int256(quotient)\n                );\n            }\n\n            if (gcd != 1) return 0; // No inverse exists.\n            return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n        }\n    }\n\n    /**\n     * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n     *\n     * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n     * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n     * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n     *\n     * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n     */\n    function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n        unchecked {\n            return Math.modExp(a, p - 2, p);\n        }\n    }\n\n    /**\n     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n     *\n     * Requirements:\n     * - modulus can't be zero\n     * - underlying staticcall to precompile must succeed\n     *\n     * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n     * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n     * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n     * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n     * interpreted as 0.\n     */\n    function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n        (bool success, uint256 result) = tryModExp(b, e, m);\n        if (!success) {\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n     * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n     * to operate modulo 0 or if the underlying precompile reverted.\n     *\n     * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n     * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n     * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n     * of a revert, but the result may be incorrectly interpreted as 0.\n     */\n    function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n        if (m == 0) return (false, 0);\n        assembly (\"memory-safe\") {\n            let ptr := mload(0x40)\n            // | Offset    | Content    | Content (Hex)                                                      |\n            // |-----------|------------|--------------------------------------------------------------------|\n            // | 0x00:0x1f | size of b  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x20:0x3f | size of e  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x40:0x5f | size of m  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n            // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n            // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n            mstore(ptr, 0x20)\n            mstore(add(ptr, 0x20), 0x20)\n            mstore(add(ptr, 0x40), 0x20)\n            mstore(add(ptr, 0x60), b)\n            mstore(add(ptr, 0x80), e)\n            mstore(add(ptr, 0xa0), m)\n\n            // Given the result < m, it's guaranteed to fit in 32 bytes,\n            // so we can use the memory scratch space located at offset 0.\n            success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n            result := mload(0x00)\n        }\n    }\n\n    /**\n     * @dev Variant of {modExp} that supports inputs of arbitrary length.\n     */\n    function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n        (bool success, bytes memory result) = tryModExp(b, e, m);\n        if (!success) {\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n     */\n    function tryModExp(\n        bytes memory b,\n        bytes memory e,\n        bytes memory m\n    ) internal view returns (bool success, bytes memory result) {\n        if (_zeroBytes(m)) return (false, new bytes(0));\n\n        uint256 mLen = m.length;\n\n        // Encode call args in result and move the free memory pointer\n        result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n        assembly (\"memory-safe\") {\n            let dataPtr := add(result, 0x20)\n            // Write result on top of args to avoid allocating extra memory.\n            success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n            // Overwrite the length.\n            // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n            mstore(result, mLen)\n            // Set the memory pointer after the returned data.\n            mstore(0x40, add(dataPtr, mLen))\n        }\n    }\n\n    /**\n     * @dev Returns whether the provided byte array is zero.\n     */\n    function _zeroBytes(bytes memory buffer) private pure returns (bool) {\n        uint256 chunk;\n        for (uint256 i = 0; i < buffer.length; i += 0x20) {\n            // See _unsafeReadBytesOffset from utils/Bytes.sol\n            assembly (\"memory-safe\") {\n                chunk := mload(add(add(buffer, 0x20), i))\n            }\n            if (chunk >> (8 * saturatingSub(i + 0x20, buffer.length)) != 0) {\n                return false;\n            }\n        }\n        return true;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n     * towards zero.\n     *\n     * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n     * using integer operations.\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        unchecked {\n            // Take care of easy edge cases when a == 0 or a == 1\n            if (a <= 1) {\n                return a;\n            }\n\n            // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n            // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n            // the current value as `ε_n = | x_n - sqrt(a) |`.\n            //\n            // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n            // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n            // bigger than any uint256.\n            //\n            // By noticing that\n            // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n            // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n            // to the msb function.\n            uint256 aa = a;\n            uint256 xn = 1;\n\n            if (aa >= (1 << 128)) {\n                aa >>= 128;\n                xn <<= 64;\n            }\n            if (aa >= (1 << 64)) {\n                aa >>= 64;\n                xn <<= 32;\n            }\n            if (aa >= (1 << 32)) {\n                aa >>= 32;\n                xn <<= 16;\n            }\n            if (aa >= (1 << 16)) {\n                aa >>= 16;\n                xn <<= 8;\n            }\n            if (aa >= (1 << 8)) {\n                aa >>= 8;\n                xn <<= 4;\n            }\n            if (aa >= (1 << 4)) {\n                aa >>= 4;\n                xn <<= 2;\n            }\n            if (aa >= (1 << 2)) {\n                xn <<= 1;\n            }\n\n            // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n            //\n            // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n            // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n            // This is going to be our x_0 (and ε_0)\n            xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n            // From here, Newton's method give us:\n            // x_{n+1} = (x_n + a / x_n) / 2\n            //\n            // One should note that:\n            // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n            //              = ((x_n² + a) / (2 * x_n))² - a\n            //              = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n            //              = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n            //              = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n            //              = (x_n² - a)² / (2 * x_n)²\n            //              = ((x_n² - a) / (2 * x_n))²\n            //              ≥ 0\n            // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n            //\n            // This gives us the proof of quadratic convergence of the sequence:\n            // ε_{n+1} = | x_{n+1} - sqrt(a) |\n            //         = | (x_n + a / x_n) / 2 - sqrt(a) |\n            //         = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n            //         = | (x_n - sqrt(a))² / (2 * x_n) |\n            //         = | ε_n² / (2 * x_n) |\n            //         = ε_n² / | (2 * x_n) |\n            //\n            // For the first iteration, we have a special case where x_0 is known:\n            // ε_1 = ε_0² / | (2 * x_0) |\n            //     ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n            //     ≤ 2**(2*e-4) / (3 * 2**(e-1))\n            //     ≤ 2**(e-3) / 3\n            //     ≤ 2**(e-3-log2(3))\n            //     ≤ 2**(e-4.5)\n            //\n            // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n            // ε_{n+1} = ε_n² / | (2 * x_n) |\n            //         ≤ (2**(e-k))² / (2 * 2**(e-1))\n            //         ≤ 2**(2*e-2*k) / 2**e\n            //         ≤ 2**(e-2*k)\n            xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5)  -- special case, see above\n            xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9)    -- general case with k = 4.5\n            xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18)   -- general case with k = 9\n            xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36)   -- general case with k = 18\n            xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72)   -- general case with k = 36\n            xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144)  -- general case with k = 72\n\n            // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n            // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n            // sqrt(a) or sqrt(a) + 1.\n            return xn - SafeCast.toUint(xn > a / xn);\n        }\n    }\n\n    /**\n     * @dev 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 + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 x) internal pure returns (uint256 r) {\n        // If value has upper 128 bits set, log2 result is at least 128\n        r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n        // If upper 64 bits of 128-bit half set, add 64 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n        // If upper 32 bits of 64-bit half set, add 32 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n        // If upper 16 bits of 32-bit half set, add 16 to result\n        r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n        // If upper 8 bits of 16-bit half set, add 8 to result\n        r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n        // If upper 4 bits of 8-bit half set, add 4 to result\n        r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n        // Shifts value right by the current result and use it as an index into this lookup table:\n        //\n        // | x (4 bits) |  index  | table[index] = MSB position |\n        // |------------|---------|-----------------------------|\n        // |    0000    |    0    |        table[0] = 0         |\n        // |    0001    |    1    |        table[1] = 0         |\n        // |    0010    |    2    |        table[2] = 1         |\n        // |    0011    |    3    |        table[3] = 1         |\n        // |    0100    |    4    |        table[4] = 2         |\n        // |    0101    |    5    |        table[5] = 2         |\n        // |    0110    |    6    |        table[6] = 2         |\n        // |    0111    |    7    |        table[7] = 2         |\n        // |    1000    |    8    |        table[8] = 3         |\n        // |    1001    |    9    |        table[9] = 3         |\n        // |    1010    |   10    |        table[10] = 3        |\n        // |    1011    |   11    |        table[11] = 3        |\n        // |    1100    |   12    |        table[12] = 3        |\n        // |    1101    |   13    |        table[13] = 3        |\n        // |    1110    |   14    |        table[14] = 3        |\n        // |    1111    |   15    |        table[15] = 3        |\n        //\n        // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the first 16 bytes (most significant half).\n        assembly (\"memory-safe\") {\n            r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n        }\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 + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10 of a positive value rounded towards zero.\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 + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256 of a positive value rounded towards zero.\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 x) internal pure returns (uint256 r) {\n        // If value has upper 128 bits set, log2 result is at least 128\n        r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n        // If upper 64 bits of 128-bit half set, add 64 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n        // If upper 32 bits of 64-bit half set, add 32 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n        // If upper 16 bits of 32-bit half set, add 16 to result\n        r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n        // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n        return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\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 + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n        }\n    }\n\n    /**\n     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n     */\n    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n        return uint8(rounding) % 2 == 1;\n    }\n\n    /**\n     * @dev Counts the number of leading zero bits in a uint256.\n     */\n    function clz(uint256 x) internal pure returns (uint256) {\n        return ternary(x == 0, 256, 255 - log2(x));\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow\n * checks.\n *\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n * easily result in undesired exploitation or bugs, since developers usually\n * assume that overflows raise errors. `SafeCast` restores this intuition by\n * reverting the transaction when such an operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeCast {\n    /**\n     * @dev Value doesn't fit in a uint of `bits` size.\n     */\n    error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n    /**\n     * @dev An int value doesn't fit in a uint of `bits` size.\n     */\n    error SafeCastOverflowedIntToUint(int256 value);\n\n    /**\n     * @dev Value doesn't fit in an int of `bits` size.\n     */\n    error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n    /**\n     * @dev A uint value doesn't fit in an int of `bits` size.\n     */\n    error SafeCastOverflowedUintToInt(uint256 value);\n\n    /**\n     * @dev Returns the downcasted uint248 from uint256, reverting on\n     * overflow (when the input is greater than largest uint248).\n     *\n     * Counterpart to Solidity's `uint248` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 248 bits\n     */\n    function toUint248(uint256 value) internal pure returns (uint248) {\n        if (value > type(uint248).max) {\n            revert SafeCastOverflowedUintDowncast(248, value);\n        }\n        return uint248(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint240 from uint256, reverting on\n     * overflow (when the input is greater than largest uint240).\n     *\n     * Counterpart to Solidity's `uint240` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 240 bits\n     */\n    function toUint240(uint256 value) internal pure returns (uint240) {\n        if (value > type(uint240).max) {\n            revert SafeCastOverflowedUintDowncast(240, value);\n        }\n        return uint240(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint232 from uint256, reverting on\n     * overflow (when the input is greater than largest uint232).\n     *\n     * Counterpart to Solidity's `uint232` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 232 bits\n     */\n    function toUint232(uint256 value) internal pure returns (uint232) {\n        if (value > type(uint232).max) {\n            revert SafeCastOverflowedUintDowncast(232, value);\n        }\n        return uint232(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint224 from uint256, reverting on\n     * overflow (when the input is greater than largest uint224).\n     *\n     * Counterpart to Solidity's `uint224` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 224 bits\n     */\n    function toUint224(uint256 value) internal pure returns (uint224) {\n        if (value > type(uint224).max) {\n            revert SafeCastOverflowedUintDowncast(224, value);\n        }\n        return uint224(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint216 from uint256, reverting on\n     * overflow (when the input is greater than largest uint216).\n     *\n     * Counterpart to Solidity's `uint216` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 216 bits\n     */\n    function toUint216(uint256 value) internal pure returns (uint216) {\n        if (value > type(uint216).max) {\n            revert SafeCastOverflowedUintDowncast(216, value);\n        }\n        return uint216(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint208 from uint256, reverting on\n     * overflow (when the input is greater than largest uint208).\n     *\n     * Counterpart to Solidity's `uint208` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 208 bits\n     */\n    function toUint208(uint256 value) internal pure returns (uint208) {\n        if (value > type(uint208).max) {\n            revert SafeCastOverflowedUintDowncast(208, value);\n        }\n        return uint208(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint200 from uint256, reverting on\n     * overflow (when the input is greater than largest uint200).\n     *\n     * Counterpart to Solidity's `uint200` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 200 bits\n     */\n    function toUint200(uint256 value) internal pure returns (uint200) {\n        if (value > type(uint200).max) {\n            revert SafeCastOverflowedUintDowncast(200, value);\n        }\n        return uint200(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint192 from uint256, reverting on\n     * overflow (when the input is greater than largest uint192).\n     *\n     * Counterpart to Solidity's `uint192` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 192 bits\n     */\n    function toUint192(uint256 value) internal pure returns (uint192) {\n        if (value > type(uint192).max) {\n            revert SafeCastOverflowedUintDowncast(192, value);\n        }\n        return uint192(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint184 from uint256, reverting on\n     * overflow (when the input is greater than largest uint184).\n     *\n     * Counterpart to Solidity's `uint184` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 184 bits\n     */\n    function toUint184(uint256 value) internal pure returns (uint184) {\n        if (value > type(uint184).max) {\n            revert SafeCastOverflowedUintDowncast(184, value);\n        }\n        return uint184(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint176 from uint256, reverting on\n     * overflow (when the input is greater than largest uint176).\n     *\n     * Counterpart to Solidity's `uint176` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 176 bits\n     */\n    function toUint176(uint256 value) internal pure returns (uint176) {\n        if (value > type(uint176).max) {\n            revert SafeCastOverflowedUintDowncast(176, value);\n        }\n        return uint176(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint168 from uint256, reverting on\n     * overflow (when the input is greater than largest uint168).\n     *\n     * Counterpart to Solidity's `uint168` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 168 bits\n     */\n    function toUint168(uint256 value) internal pure returns (uint168) {\n        if (value > type(uint168).max) {\n            revert SafeCastOverflowedUintDowncast(168, value);\n        }\n        return uint168(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint160 from uint256, reverting on\n     * overflow (when the input is greater than largest uint160).\n     *\n     * Counterpart to Solidity's `uint160` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 160 bits\n     */\n    function toUint160(uint256 value) internal pure returns (uint160) {\n        if (value > type(uint160).max) {\n            revert SafeCastOverflowedUintDowncast(160, value);\n        }\n        return uint160(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint152 from uint256, reverting on\n     * overflow (when the input is greater than largest uint152).\n     *\n     * Counterpart to Solidity's `uint152` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 152 bits\n     */\n    function toUint152(uint256 value) internal pure returns (uint152) {\n        if (value > type(uint152).max) {\n            revert SafeCastOverflowedUintDowncast(152, value);\n        }\n        return uint152(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint144 from uint256, reverting on\n     * overflow (when the input is greater than largest uint144).\n     *\n     * Counterpart to Solidity's `uint144` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 144 bits\n     */\n    function toUint144(uint256 value) internal pure returns (uint144) {\n        if (value > type(uint144).max) {\n            revert SafeCastOverflowedUintDowncast(144, value);\n        }\n        return uint144(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint136 from uint256, reverting on\n     * overflow (when the input is greater than largest uint136).\n     *\n     * Counterpart to Solidity's `uint136` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 136 bits\n     */\n    function toUint136(uint256 value) internal pure returns (uint136) {\n        if (value > type(uint136).max) {\n            revert SafeCastOverflowedUintDowncast(136, value);\n        }\n        return uint136(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint128 from uint256, reverting on\n     * overflow (when the input is greater than largest uint128).\n     *\n     * Counterpart to Solidity's `uint128` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 128 bits\n     */\n    function toUint128(uint256 value) internal pure returns (uint128) {\n        if (value > type(uint128).max) {\n            revert SafeCastOverflowedUintDowncast(128, value);\n        }\n        return uint128(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint120 from uint256, reverting on\n     * overflow (when the input is greater than largest uint120).\n     *\n     * Counterpart to Solidity's `uint120` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 120 bits\n     */\n    function toUint120(uint256 value) internal pure returns (uint120) {\n        if (value > type(uint120).max) {\n            revert SafeCastOverflowedUintDowncast(120, value);\n        }\n        return uint120(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint112 from uint256, reverting on\n     * overflow (when the input is greater than largest uint112).\n     *\n     * Counterpart to Solidity's `uint112` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 112 bits\n     */\n    function toUint112(uint256 value) internal pure returns (uint112) {\n        if (value > type(uint112).max) {\n            revert SafeCastOverflowedUintDowncast(112, value);\n        }\n        return uint112(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint104 from uint256, reverting on\n     * overflow (when the input is greater than largest uint104).\n     *\n     * Counterpart to Solidity's `uint104` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 104 bits\n     */\n    function toUint104(uint256 value) internal pure returns (uint104) {\n        if (value > type(uint104).max) {\n            revert SafeCastOverflowedUintDowncast(104, value);\n        }\n        return uint104(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint96 from uint256, reverting on\n     * overflow (when the input is greater than largest uint96).\n     *\n     * Counterpart to Solidity's `uint96` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 96 bits\n     */\n    function toUint96(uint256 value) internal pure returns (uint96) {\n        if (value > type(uint96).max) {\n            revert SafeCastOverflowedUintDowncast(96, value);\n        }\n        return uint96(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint88 from uint256, reverting on\n     * overflow (when the input is greater than largest uint88).\n     *\n     * Counterpart to Solidity's `uint88` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 88 bits\n     */\n    function toUint88(uint256 value) internal pure returns (uint88) {\n        if (value > type(uint88).max) {\n            revert SafeCastOverflowedUintDowncast(88, value);\n        }\n        return uint88(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint80 from uint256, reverting on\n     * overflow (when the input is greater than largest uint80).\n     *\n     * Counterpart to Solidity's `uint80` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 80 bits\n     */\n    function toUint80(uint256 value) internal pure returns (uint80) {\n        if (value > type(uint80).max) {\n            revert SafeCastOverflowedUintDowncast(80, value);\n        }\n        return uint80(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint72 from uint256, reverting on\n     * overflow (when the input is greater than largest uint72).\n     *\n     * Counterpart to Solidity's `uint72` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 72 bits\n     */\n    function toUint72(uint256 value) internal pure returns (uint72) {\n        if (value > type(uint72).max) {\n            revert SafeCastOverflowedUintDowncast(72, value);\n        }\n        return uint72(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint64 from uint256, reverting on\n     * overflow (when the input is greater than largest uint64).\n     *\n     * Counterpart to Solidity's `uint64` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 64 bits\n     */\n    function toUint64(uint256 value) internal pure returns (uint64) {\n        if (value > type(uint64).max) {\n            revert SafeCastOverflowedUintDowncast(64, value);\n        }\n        return uint64(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint56 from uint256, reverting on\n     * overflow (when the input is greater than largest uint56).\n     *\n     * Counterpart to Solidity's `uint56` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 56 bits\n     */\n    function toUint56(uint256 value) internal pure returns (uint56) {\n        if (value > type(uint56).max) {\n            revert SafeCastOverflowedUintDowncast(56, value);\n        }\n        return uint56(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint48 from uint256, reverting on\n     * overflow (when the input is greater than largest uint48).\n     *\n     * Counterpart to Solidity's `uint48` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 48 bits\n     */\n    function toUint48(uint256 value) internal pure returns (uint48) {\n        if (value > type(uint48).max) {\n            revert SafeCastOverflowedUintDowncast(48, value);\n        }\n        return uint48(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint40 from uint256, reverting on\n     * overflow (when the input is greater than largest uint40).\n     *\n     * Counterpart to Solidity's `uint40` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 40 bits\n     */\n    function toUint40(uint256 value) internal pure returns (uint40) {\n        if (value > type(uint40).max) {\n            revert SafeCastOverflowedUintDowncast(40, value);\n        }\n        return uint40(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint32 from uint256, reverting on\n     * overflow (when the input is greater than largest uint32).\n     *\n     * Counterpart to Solidity's `uint32` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 32 bits\n     */\n    function toUint32(uint256 value) internal pure returns (uint32) {\n        if (value > type(uint32).max) {\n            revert SafeCastOverflowedUintDowncast(32, value);\n        }\n        return uint32(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint24 from uint256, reverting on\n     * overflow (when the input is greater than largest uint24).\n     *\n     * Counterpart to Solidity's `uint24` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 24 bits\n     */\n    function toUint24(uint256 value) internal pure returns (uint24) {\n        if (value > type(uint24).max) {\n            revert SafeCastOverflowedUintDowncast(24, value);\n        }\n        return uint24(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint16 from uint256, reverting on\n     * overflow (when the input is greater than largest uint16).\n     *\n     * Counterpart to Solidity's `uint16` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 16 bits\n     */\n    function toUint16(uint256 value) internal pure returns (uint16) {\n        if (value > type(uint16).max) {\n            revert SafeCastOverflowedUintDowncast(16, value);\n        }\n        return uint16(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint8 from uint256, reverting on\n     * overflow (when the input is greater than largest uint8).\n     *\n     * Counterpart to Solidity's `uint8` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 8 bits\n     */\n    function toUint8(uint256 value) internal pure returns (uint8) {\n        if (value > type(uint8).max) {\n            revert SafeCastOverflowedUintDowncast(8, value);\n        }\n        return uint8(value);\n    }\n\n    /**\n     * @dev Converts a signed int256 into an unsigned uint256.\n     *\n     * Requirements:\n     *\n     * - input must be greater than or equal to 0.\n     */\n    function toUint256(int256 value) internal pure returns (uint256) {\n        if (value < 0) {\n            revert SafeCastOverflowedIntToUint(value);\n        }\n        return uint256(value);\n    }\n\n    /**\n     * @dev Returns the downcasted int248 from int256, reverting on\n     * overflow (when the input is less than smallest int248 or\n     * greater than largest int248).\n     *\n     * Counterpart to Solidity's `int248` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 248 bits\n     */\n    function toInt248(int256 value) internal pure returns (int248 downcasted) {\n        downcasted = int248(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(248, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int240 from int256, reverting on\n     * overflow (when the input is less than smallest int240 or\n     * greater than largest int240).\n     *\n     * Counterpart to Solidity's `int240` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 240 bits\n     */\n    function toInt240(int256 value) internal pure returns (int240 downcasted) {\n        downcasted = int240(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(240, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int232 from int256, reverting on\n     * overflow (when the input is less than smallest int232 or\n     * greater than largest int232).\n     *\n     * Counterpart to Solidity's `int232` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 232 bits\n     */\n    function toInt232(int256 value) internal pure returns (int232 downcasted) {\n        downcasted = int232(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(232, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int224 from int256, reverting on\n     * overflow (when the input is less than smallest int224 or\n     * greater than largest int224).\n     *\n     * Counterpart to Solidity's `int224` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 224 bits\n     */\n    function toInt224(int256 value) internal pure returns (int224 downcasted) {\n        downcasted = int224(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(224, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int216 from int256, reverting on\n     * overflow (when the input is less than smallest int216 or\n     * greater than largest int216).\n     *\n     * Counterpart to Solidity's `int216` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 216 bits\n     */\n    function toInt216(int256 value) internal pure returns (int216 downcasted) {\n        downcasted = int216(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(216, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int208 from int256, reverting on\n     * overflow (when the input is less than smallest int208 or\n     * greater than largest int208).\n     *\n     * Counterpart to Solidity's `int208` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 208 bits\n     */\n    function toInt208(int256 value) internal pure returns (int208 downcasted) {\n        downcasted = int208(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(208, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int200 from int256, reverting on\n     * overflow (when the input is less than smallest int200 or\n     * greater than largest int200).\n     *\n     * Counterpart to Solidity's `int200` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 200 bits\n     */\n    function toInt200(int256 value) internal pure returns (int200 downcasted) {\n        downcasted = int200(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(200, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int192 from int256, reverting on\n     * overflow (when the input is less than smallest int192 or\n     * greater than largest int192).\n     *\n     * Counterpart to Solidity's `int192` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 192 bits\n     */\n    function toInt192(int256 value) internal pure returns (int192 downcasted) {\n        downcasted = int192(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(192, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int184 from int256, reverting on\n     * overflow (when the input is less than smallest int184 or\n     * greater than largest int184).\n     *\n     * Counterpart to Solidity's `int184` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 184 bits\n     */\n    function toInt184(int256 value) internal pure returns (int184 downcasted) {\n        downcasted = int184(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(184, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int176 from int256, reverting on\n     * overflow (when the input is less than smallest int176 or\n     * greater than largest int176).\n     *\n     * Counterpart to Solidity's `int176` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 176 bits\n     */\n    function toInt176(int256 value) internal pure returns (int176 downcasted) {\n        downcasted = int176(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(176, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int168 from int256, reverting on\n     * overflow (when the input is less than smallest int168 or\n     * greater than largest int168).\n     *\n     * Counterpart to Solidity's `int168` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 168 bits\n     */\n    function toInt168(int256 value) internal pure returns (int168 downcasted) {\n        downcasted = int168(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(168, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int160 from int256, reverting on\n     * overflow (when the input is less than smallest int160 or\n     * greater than largest int160).\n     *\n     * Counterpart to Solidity's `int160` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 160 bits\n     */\n    function toInt160(int256 value) internal pure returns (int160 downcasted) {\n        downcasted = int160(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(160, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int152 from int256, reverting on\n     * overflow (when the input is less than smallest int152 or\n     * greater than largest int152).\n     *\n     * Counterpart to Solidity's `int152` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 152 bits\n     */\n    function toInt152(int256 value) internal pure returns (int152 downcasted) {\n        downcasted = int152(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(152, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int144 from int256, reverting on\n     * overflow (when the input is less than smallest int144 or\n     * greater than largest int144).\n     *\n     * Counterpart to Solidity's `int144` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 144 bits\n     */\n    function toInt144(int256 value) internal pure returns (int144 downcasted) {\n        downcasted = int144(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(144, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int136 from int256, reverting on\n     * overflow (when the input is less than smallest int136 or\n     * greater than largest int136).\n     *\n     * Counterpart to Solidity's `int136` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 136 bits\n     */\n    function toInt136(int256 value) internal pure returns (int136 downcasted) {\n        downcasted = int136(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(136, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int128 from int256, reverting on\n     * overflow (when the input is less than smallest int128 or\n     * greater than largest int128).\n     *\n     * Counterpart to Solidity's `int128` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 128 bits\n     */\n    function toInt128(int256 value) internal pure returns (int128 downcasted) {\n        downcasted = int128(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(128, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int120 from int256, reverting on\n     * overflow (when the input is less than smallest int120 or\n     * greater than largest int120).\n     *\n     * Counterpart to Solidity's `int120` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 120 bits\n     */\n    function toInt120(int256 value) internal pure returns (int120 downcasted) {\n        downcasted = int120(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(120, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int112 from int256, reverting on\n     * overflow (when the input is less than smallest int112 or\n     * greater than largest int112).\n     *\n     * Counterpart to Solidity's `int112` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 112 bits\n     */\n    function toInt112(int256 value) internal pure returns (int112 downcasted) {\n        downcasted = int112(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(112, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int104 from int256, reverting on\n     * overflow (when the input is less than smallest int104 or\n     * greater than largest int104).\n     *\n     * Counterpart to Solidity's `int104` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 104 bits\n     */\n    function toInt104(int256 value) internal pure returns (int104 downcasted) {\n        downcasted = int104(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(104, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int96 from int256, reverting on\n     * overflow (when the input is less than smallest int96 or\n     * greater than largest int96).\n     *\n     * Counterpart to Solidity's `int96` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 96 bits\n     */\n    function toInt96(int256 value) internal pure returns (int96 downcasted) {\n        downcasted = int96(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(96, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int88 from int256, reverting on\n     * overflow (when the input is less than smallest int88 or\n     * greater than largest int88).\n     *\n     * Counterpart to Solidity's `int88` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 88 bits\n     */\n    function toInt88(int256 value) internal pure returns (int88 downcasted) {\n        downcasted = int88(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(88, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int80 from int256, reverting on\n     * overflow (when the input is less than smallest int80 or\n     * greater than largest int80).\n     *\n     * Counterpart to Solidity's `int80` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 80 bits\n     */\n    function toInt80(int256 value) internal pure returns (int80 downcasted) {\n        downcasted = int80(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(80, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int72 from int256, reverting on\n     * overflow (when the input is less than smallest int72 or\n     * greater than largest int72).\n     *\n     * Counterpart to Solidity's `int72` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 72 bits\n     */\n    function toInt72(int256 value) internal pure returns (int72 downcasted) {\n        downcasted = int72(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(72, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int64 from int256, reverting on\n     * overflow (when the input is less than smallest int64 or\n     * greater than largest int64).\n     *\n     * Counterpart to Solidity's `int64` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 64 bits\n     */\n    function toInt64(int256 value) internal pure returns (int64 downcasted) {\n        downcasted = int64(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(64, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int56 from int256, reverting on\n     * overflow (when the input is less than smallest int56 or\n     * greater than largest int56).\n     *\n     * Counterpart to Solidity's `int56` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 56 bits\n     */\n    function toInt56(int256 value) internal pure returns (int56 downcasted) {\n        downcasted = int56(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(56, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int48 from int256, reverting on\n     * overflow (when the input is less than smallest int48 or\n     * greater than largest int48).\n     *\n     * Counterpart to Solidity's `int48` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 48 bits\n     */\n    function toInt48(int256 value) internal pure returns (int48 downcasted) {\n        downcasted = int48(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(48, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int40 from int256, reverting on\n     * overflow (when the input is less than smallest int40 or\n     * greater than largest int40).\n     *\n     * Counterpart to Solidity's `int40` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 40 bits\n     */\n    function toInt40(int256 value) internal pure returns (int40 downcasted) {\n        downcasted = int40(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(40, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int32 from int256, reverting on\n     * overflow (when the input is less than smallest int32 or\n     * greater than largest int32).\n     *\n     * Counterpart to Solidity's `int32` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 32 bits\n     */\n    function toInt32(int256 value) internal pure returns (int32 downcasted) {\n        downcasted = int32(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(32, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int24 from int256, reverting on\n     * overflow (when the input is less than smallest int24 or\n     * greater than largest int24).\n     *\n     * Counterpart to Solidity's `int24` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 24 bits\n     */\n    function toInt24(int256 value) internal pure returns (int24 downcasted) {\n        downcasted = int24(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(24, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int16 from int256, reverting on\n     * overflow (when the input is less than smallest int16 or\n     * greater than largest int16).\n     *\n     * Counterpart to Solidity's `int16` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 16 bits\n     */\n    function toInt16(int256 value) internal pure returns (int16 downcasted) {\n        downcasted = int16(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(16, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int8 from int256, reverting on\n     * overflow (when the input is less than smallest int8 or\n     * greater than largest int8).\n     *\n     * Counterpart to Solidity's `int8` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 8 bits\n     */\n    function toInt8(int256 value) internal pure returns (int8 downcasted) {\n        downcasted = int8(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(8, value);\n        }\n    }\n\n    /**\n     * @dev Converts an unsigned uint256 into a signed int256.\n     *\n     * Requirements:\n     *\n     * - input must be less than or equal to maxInt256.\n     */\n    function toInt256(uint256 value) internal pure returns (int256) {\n        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\n        if (value > uint256(type(int256).max)) {\n            revert SafeCastOverflowedUintToInt(value);\n        }\n        return int256(value);\n    }\n\n    /**\n     * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n     */\n    function toUint(bool b) internal pure returns (uint256 u) {\n        assembly (\"memory-safe\") {\n            u := iszero(iszero(b))\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n    /**\n     * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n     *\n     * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n     * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n     * one branch when needed, making this function more expensive.\n     */\n    function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n        unchecked {\n            // branchless ternary works because:\n            // b ^ (a ^ b) == a\n            // b ^ 0 == b\n            return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n        }\n    }\n\n    /**\n     * @dev Returns the largest of two signed numbers.\n     */\n    function max(int256 a, int256 b) internal pure returns (int256) {\n        return ternary(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 ternary(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            // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n            // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n            // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n            // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n            // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n            int256 mask = n >> 255;\n\n            // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n            return uint256((n + mask) ^ mask);\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/cryptography/P256.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/P256.sol)\npragma solidity ^0.8.20;\n\nimport {Math} from \"../math/Math.sol\";\nimport {Errors} from \"../Errors.sol\";\n\n/**\n * @dev Implementation of secp256r1 verification and recovery functions.\n *\n * The secp256r1 curve (also known as P256) is a NIST standard curve with wide support in modern devices\n * and cryptographic standards. Some notable examples include Apple's Secure Enclave and Android's Keystore\n * as well as authentication protocols like FIDO2.\n *\n * Based on the original https://github.com/itsobvioustech/aa-passkeys-wallet/blob/d3d423f28a4d8dfcb203c7fa0c47f42592a7378e/src/Secp256r1.sol[implementation of itsobvioustech] (GNU General Public License v3.0).\n * Heavily inspired in https://github.com/maxrobot/elliptic-solidity/blob/c4bb1b6e8ae89534d8db3a6b3a6b52219100520f/contracts/Secp256r1.sol[maxrobot] and\n * https://github.com/tdrerup/elliptic-curve-solidity/blob/59a9c25957d4d190eff53b6610731d81a077a15e/contracts/curves/EllipticCurve.sol[tdrerup] implementations.\n *\n * _Available since v5.1._\n */\nlibrary P256 {\n    struct JPoint {\n        uint256 x;\n        uint256 y;\n        uint256 z;\n    }\n\n    /// @dev Generator (x component)\n    uint256 internal constant GX = 0x6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296;\n    /// @dev Generator (y component)\n    uint256 internal constant GY = 0x4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5;\n    /// @dev P (size of the field)\n    uint256 internal constant P = 0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF;\n    /// @dev N (order of G)\n    uint256 internal constant N = 0xFFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551;\n    /// @dev A parameter of the weierstrass equation\n    uint256 internal constant A = 0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC;\n    /// @dev B parameter of the weierstrass equation\n    uint256 internal constant B = 0x5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B;\n\n    /// @dev (P + 1) / 4. Useful to compute sqrt\n    uint256 private constant P1DIV4 = 0x3fffffffc0000000400000000000000000000000400000000000000000000000;\n\n    /// @dev N/2 for excluding higher order `s` values\n    uint256 private constant HALF_N = 0x7fffffff800000007fffffffffffffffde737d56d38bcf4279dce5617e3192a8;\n\n    /**\n     * @dev Verifies a secp256r1 signature using the RIP-7212 precompile and falls back to the Solidity implementation\n     * if the precompile is not available. This version should work on all chains, but requires the deployment of more\n     * bytecode.\n     *\n     * @param h - hashed message\n     * @param r - signature half R\n     * @param s - signature half S\n     * @param qx - public key coordinate X\n     * @param qy - public key coordinate Y\n     *\n     * IMPORTANT: This function disallows signatures where the `s` value is above `N/2` to prevent malleability.\n     * To flip the `s` value, compute `s = N - s`.\n     */\n    function verify(bytes32 h, bytes32 r, bytes32 s, bytes32 qx, bytes32 qy) internal view returns (bool) {\n        (bool valid, bool supported) = _tryVerifyNative(h, r, s, qx, qy);\n        return supported ? valid : verifySolidity(h, r, s, qx, qy);\n    }\n\n    /**\n     * @dev Same as {verify}, but it will revert if the required precompile is not available.\n     *\n     * Make sure any logic (code or precompile) deployed at that address is the expected one,\n     * otherwise the returned value may be misinterpreted as a positive boolean.\n     */\n    function verifyNative(bytes32 h, bytes32 r, bytes32 s, bytes32 qx, bytes32 qy) internal view returns (bool) {\n        (bool valid, bool supported) = _tryVerifyNative(h, r, s, qx, qy);\n        if (supported) {\n            return valid;\n        } else {\n            revert Errors.MissingPrecompile(address(0x100));\n        }\n    }\n\n    /**\n     * @dev Same as {verify}, but it will return false if the required precompile is not available.\n     */\n    function _tryVerifyNative(\n        bytes32 h,\n        bytes32 r,\n        bytes32 s,\n        bytes32 qx,\n        bytes32 qy\n    ) private view returns (bool valid, bool supported) {\n        if (!_isProperSignature(r, s) || !isValidPublicKey(qx, qy)) {\n            return (false, true); // signature is invalid, and its not because the precompile is missing\n        } else if (_rip7212(h, r, s, qx, qy)) {\n            return (true, true); // precompile is present, signature is valid\n        } else if (\n            // Given precompiles have no bytecode (i.e. `address(0x100).code.length == 0`), we use\n            // a valid signature with small `r` and `s` values to check if the precompile is present. Taken from\n            // https://github.com/C2SP/wycheproof/blob/4672ff74d68766e7785c2cac4c597effccef2c5c/testvectors/ecdsa_secp256r1_sha256_p1363_test.json#L1173-L1204\n            _rip7212(\n                0xbb5a52f42f9c9261ed4361f59422a1e30036e7c32b270c8807a419feca605023, // sha256(\"123400\")\n                0x0000000000000000000000000000000000000000000000000000000000000005,\n                0x0000000000000000000000000000000000000000000000000000000000000001,\n                0xa71af64de5126a4a4e02b7922d66ce9415ce88a4c9d25514d91082c8725ac957,\n                0x5d47723c8fbe580bb369fec9c2665d8e30a435b9932645482e7c9f11e872296b\n            )\n        ) {\n            return (false, true); // precompile is present, signature is invalid\n        } else {\n            return (false, false); // precompile is absent\n        }\n    }\n\n    /**\n     * @dev Low level helper for {_tryVerifyNative}. Calls the precompile and checks if there is a return value.\n     */\n    function _rip7212(bytes32 h, bytes32 r, bytes32 s, bytes32 qx, bytes32 qy) private view returns (bool isValid) {\n        assembly (\"memory-safe\") {\n            // Use the free memory pointer without updating it at the end of the function\n            let ptr := mload(0x40)\n            mstore(ptr, h)\n            mstore(add(ptr, 0x20), r)\n            mstore(add(ptr, 0x40), s)\n            mstore(add(ptr, 0x60), qx)\n            mstore(add(ptr, 0x80), qy)\n            // RIP-7212 precompiles return empty bytes when an invalid signature is passed, making it impossible\n            // to distinguish the presence of the precompile. Custom precompile implementations may decide to\n            // return `bytes32(0)` (i.e. false) without developers noticing, so we decide to evaluate the return value\n            // without expanding memory using scratch space.\n            mstore(0x00, 0) // zero out scratch space in case the precompile doesn't return anything\n            if iszero(staticcall(gas(), 0x100, ptr, 0xa0, 0x00, 0x20)) {\n                invalid()\n            }\n            isValid := mload(0x00)\n        }\n    }\n\n    /**\n     * @dev Same as {verify}, but only the Solidity implementation is used.\n     */\n    function verifySolidity(bytes32 h, bytes32 r, bytes32 s, bytes32 qx, bytes32 qy) internal view returns (bool) {\n        if (!_isProperSignature(r, s) || !isValidPublicKey(qx, qy)) {\n            return false;\n        }\n\n        JPoint[16] memory points = _preComputeJacobianPoints(uint256(qx), uint256(qy));\n        uint256 w = Math.invModPrime(uint256(s), N);\n        uint256 u1 = mulmod(uint256(h), w, N);\n        uint256 u2 = mulmod(uint256(r), w, N);\n        (uint256 x, ) = _jMultShamir(points, u1, u2);\n        return ((x % N) == uint256(r));\n    }\n\n    /**\n     * @dev Public key recovery\n     *\n     * @param h - hashed message\n     * @param v - signature recovery param\n     * @param r - signature half R\n     * @param s - signature half S\n     *\n     * IMPORTANT: This function disallows signatures where the `s` value is above `N/2` to prevent malleability.\n     * To flip the `s` value, compute `s = N - s` and `v = 1 - v` if (`v = 0 | 1`).\n     */\n    function recovery(bytes32 h, uint8 v, bytes32 r, bytes32 s) internal view returns (bytes32 x, bytes32 y) {\n        if (!_isProperSignature(r, s) || v > 1) {\n            return (0, 0);\n        }\n\n        uint256 p = P; // cache P on the stack\n        uint256 rx = uint256(r);\n        uint256 ry2 = addmod(mulmod(addmod(mulmod(rx, rx, p), A, p), rx, p), B, p); // weierstrass equation y² = x³ + a.x + b\n        uint256 ry = Math.modExp(ry2, P1DIV4, p); // This formula for sqrt work because P ≡ 3 (mod 4)\n        if (mulmod(ry, ry, p) != ry2) return (0, 0); // Sanity check\n        if (ry % 2 != v) ry = p - ry;\n\n        JPoint[16] memory points = _preComputeJacobianPoints(rx, ry);\n        uint256 w = Math.invModPrime(uint256(r), N);\n        uint256 u1 = mulmod(N - (uint256(h) % N), w, N);\n        uint256 u2 = mulmod(uint256(s), w, N);\n        (uint256 xU, uint256 yU) = _jMultShamir(points, u1, u2);\n        return (bytes32(xU), bytes32(yU));\n    }\n\n    /**\n     * @dev Checks if (x, y) are valid coordinates of a point on the curve.\n     * In particular this function checks that x < P and y < P.\n     */\n    function isValidPublicKey(bytes32 x, bytes32 y) internal pure returns (bool result) {\n        assembly (\"memory-safe\") {\n            let p := P\n            let lhs := mulmod(y, y, p) // y^2\n            let rhs := addmod(mulmod(addmod(mulmod(x, x, p), A, p), x, p), B, p) // ((x^2 + a) * x) + b = x^3 + ax + b\n            result := and(and(lt(x, p), lt(y, p)), eq(lhs, rhs)) // Should conform with the Weierstrass equation\n        }\n    }\n\n    /**\n     * @dev Checks if (r, s) is a proper signature.\n     * In particular, this checks that `s` is in the \"lower-range\", making the signature non-malleable.\n     */\n    function _isProperSignature(bytes32 r, bytes32 s) private pure returns (bool) {\n        return uint256(r) > 0 && uint256(r) < N && uint256(s) > 0 && uint256(s) <= HALF_N;\n    }\n\n    /**\n     * @dev Reduce from jacobian to affine coordinates\n     * @param jx - jacobian coordinate x\n     * @param jy - jacobian coordinate y\n     * @param jz - jacobian coordinate z\n     * @return ax - affine coordinate x\n     * @return ay - affine coordinate y\n     */\n    function _affineFromJacobian(uint256 jx, uint256 jy, uint256 jz) private view returns (uint256 ax, uint256 ay) {\n        if (jz == 0) return (0, 0);\n        uint256 p = P; // cache P on the stack\n        uint256 zinv = Math.invModPrime(jz, p);\n        assembly (\"memory-safe\") {\n            let zzinv := mulmod(zinv, zinv, p)\n            ax := mulmod(jx, zzinv, p)\n            ay := mulmod(jy, mulmod(zzinv, zinv, p), p)\n        }\n    }\n\n    /**\n     * @dev Point addition on the jacobian coordinates\n     * Reference: https://www.hyperelliptic.org/EFD/g1p/auto-shortw-jacobian.html#addition-add-1998-cmo-2\n     *\n     * Note that:\n     *\n     * - `addition-add-1998-cmo-2` doesn't support identical input points. This version is modified to use\n     * the `h` and `r` values computed by `addition-add-1998-cmo-2` to detect identical inputs, and fallback to\n     * `doubling-dbl-1998-cmo-2` if needed.\n     * - if one of the points is at infinity (i.e. `z=0`), the result is undefined.\n     */\n    function _jAdd(\n        JPoint memory p1,\n        uint256 x2,\n        uint256 y2,\n        uint256 z2\n    ) private pure returns (uint256 rx, uint256 ry, uint256 rz) {\n        assembly (\"memory-safe\") {\n            let p := P\n            let z1 := mload(add(p1, 0x40))\n            let zz1 := mulmod(z1, z1, p) // zz1 = z1²\n            let s1 := mulmod(mload(add(p1, 0x20)), mulmod(mulmod(z2, z2, p), z2, p), p) // s1 = y1*z2³\n            let r := addmod(mulmod(y2, mulmod(zz1, z1, p), p), sub(p, s1), p) // r = s2-s1 = y2*z1³-s1 = y2*z1³-y1*z2³\n            let u1 := mulmod(mload(p1), mulmod(z2, z2, p), p) // u1 = x1*z2²\n            let h := addmod(mulmod(x2, zz1, p), sub(p, u1), p) // h = u2-u1 = x2*z1²-u1 = x2*z1²-x1*z2²\n\n            // detect edge cases where inputs are identical\n            switch and(iszero(r), iszero(h))\n            // case 0: points are different\n            case 0 {\n                let hh := mulmod(h, h, p) // h²\n\n                // x' = r²-h³-2*u1*h²\n                rx := addmod(\n                    addmod(mulmod(r, r, p), sub(p, mulmod(h, hh, p)), p),\n                    sub(p, mulmod(2, mulmod(u1, hh, p), p)),\n                    p\n                )\n                // y' = r*(u1*h²-x')-s1*h³\n                ry := addmod(\n                    mulmod(r, addmod(mulmod(u1, hh, p), sub(p, rx), p), p),\n                    sub(p, mulmod(s1, mulmod(h, hh, p), p)),\n                    p\n                )\n                // z' = h*z1*z2\n                rz := mulmod(h, mulmod(z1, z2, p), p)\n            }\n            // case 1: points are equal\n            case 1 {\n                let x := x2\n                let y := y2\n                let z := z2\n                let yy := mulmod(y, y, p)\n                let zz := mulmod(z, z, p)\n                let m := addmod(mulmod(3, mulmod(x, x, p), p), mulmod(A, mulmod(zz, zz, p), p), p) // m = 3*x²+a*z⁴\n                let s := mulmod(4, mulmod(x, yy, p), p) // s = 4*x*y²\n\n                // x' = t = m²-2*s\n                rx := addmod(mulmod(m, m, p), sub(p, mulmod(2, s, p)), p)\n\n                // y' = m*(s-t)-8*y⁴ = m*(s-x')-8*y⁴\n                // cut the computation to avoid stack too deep\n                let rytmp1 := sub(p, mulmod(8, mulmod(yy, yy, p), p)) // -8*y⁴\n                let rytmp2 := addmod(s, sub(p, rx), p) // s-x'\n                ry := addmod(mulmod(m, rytmp2, p), rytmp1, p) // m*(s-x')-8*y⁴\n\n                // z' = 2*y*z\n                rz := mulmod(2, mulmod(y, z, p), p)\n            }\n        }\n    }\n\n    /**\n     * @dev Point doubling on the jacobian coordinates\n     * Reference: https://www.hyperelliptic.org/EFD/g1p/auto-shortw-jacobian.html#doubling-dbl-1998-cmo-2\n     */\n    function _jDouble(uint256 x, uint256 y, uint256 z) private pure returns (uint256 rx, uint256 ry, uint256 rz) {\n        assembly (\"memory-safe\") {\n            let p := P\n            let yy := mulmod(y, y, p)\n            let zz := mulmod(z, z, p)\n            let m := addmod(mulmod(3, mulmod(x, x, p), p), mulmod(A, mulmod(zz, zz, p), p), p) // m = 3*x²+a*z⁴\n            let s := mulmod(4, mulmod(x, yy, p), p) // s = 4*x*y²\n\n            // x' = t = m²-2*s\n            rx := addmod(mulmod(m, m, p), sub(p, mulmod(2, s, p)), p)\n            // y' = m*(s-t)-8*y⁴ = m*(s-x')-8*y⁴\n            ry := addmod(mulmod(m, addmod(s, sub(p, rx), p), p), sub(p, mulmod(8, mulmod(yy, yy, p), p)), p)\n            // z' = 2*y*z\n            rz := mulmod(2, mulmod(y, z, p), p)\n        }\n    }\n\n    /**\n     * @dev Compute G·u1 + P·u2 using the precomputed points for G and P (see {_preComputeJacobianPoints}).\n     *\n     * Uses Strauss Shamir trick for EC multiplication\n     * https://stackoverflow.com/questions/50993471/ec-scalar-multiplication-with-strauss-shamir-method\n     *\n     * We optimize this for 2 bits at a time rather than a single bit. The individual points for a single pass are\n     * precomputed. Overall this reduces the number of additions while keeping the same number of\n     * doublings\n     */\n    function _jMultShamir(\n        JPoint[16] memory points,\n        uint256 u1,\n        uint256 u2\n    ) private view returns (uint256 rx, uint256 ry) {\n        uint256 x = 0;\n        uint256 y = 0;\n        uint256 z = 0;\n        unchecked {\n            for (uint256 i = 0; i < 128; ++i) {\n                if (z > 0) {\n                    (x, y, z) = _jDouble(x, y, z);\n                    (x, y, z) = _jDouble(x, y, z);\n                }\n                // Read 2 bits of u1, and 2 bits of u2. Combining the two gives the lookup index in the table.\n                uint256 pos = ((u1 >> 252) & 0xc) | ((u2 >> 254) & 0x3);\n                // Points that have z = 0 are points at infinity. They are the additive 0 of the group\n                // - if the lookup point is a 0, we can skip it\n                // - otherwise:\n                //   - if the current point (x, y, z) is 0, we use the lookup point as our new value (0+P=P)\n                //   - if the current point (x, y, z) is not 0, both points are valid and we can use `_jAdd`\n                if (points[pos].z != 0) {\n                    if (z == 0) {\n                        (x, y, z) = (points[pos].x, points[pos].y, points[pos].z);\n                    } else {\n                        (x, y, z) = _jAdd(points[pos], x, y, z);\n                    }\n                }\n                u1 <<= 2;\n                u2 <<= 2;\n            }\n        }\n        return _affineFromJacobian(x, y, z);\n    }\n\n    /**\n     * @dev Precompute a matrice of useful jacobian points associated with a given P. This can be seen as a 4x4 matrix\n     * that contains combination of P and G (generator) up to 3 times each. See the table below:\n     *\n     * ┌────┬─────────────────────┐\n     * │  i │  0    1     2     3 │\n     * ├────┼─────────────────────┤\n     * │  0 │  0    p    2p    3p │\n     * │  4 │  g  g+p  g+2p  g+3p │\n     * │  8 │ 2g 2g+p 2g+2p 2g+3p │\n     * │ 12 │ 3g 3g+p 3g+2p 3g+3p │\n     * └────┴─────────────────────┘\n     *\n     * Note that `_jAdd` (and thus `_jAddPoint`) does not handle the case where one of the inputs is a point at\n     * infinity (z = 0). However, we know that since `N ≡ 1 mod 2` and `N ≡ 1 mod 3`, there is no point P such that\n     * 2P = 0 or 3P = 0. This guarantees that g, 2g, 3g, p, 2p, 3p are all non-zero, and that all `_jAddPoint` calls\n     * have valid inputs.\n     */\n    function _preComputeJacobianPoints(uint256 px, uint256 py) private pure returns (JPoint[16] memory points) {\n        points[0x00] = JPoint(0, 0, 0); // 0,0\n        points[0x01] = JPoint(px, py, 1); // 1,0 (p)\n        points[0x04] = JPoint(GX, GY, 1); // 0,1 (g)\n        points[0x02] = _jDoublePoint(points[0x01]); // 2,0 (2p)\n        points[0x08] = _jDoublePoint(points[0x04]); // 0,2 (2g)\n        points[0x03] = _jAddPoint(points[0x01], points[0x02]); // 3,0 (p+2p = 3p)\n        points[0x05] = _jAddPoint(points[0x01], points[0x04]); // 1,1 (p+g)\n        points[0x06] = _jAddPoint(points[0x02], points[0x04]); // 2,1 (2p+g)\n        points[0x07] = _jAddPoint(points[0x03], points[0x04]); // 3,1 (3p+g)\n        points[0x09] = _jAddPoint(points[0x01], points[0x08]); // 1,2 (p+2g)\n        points[0x0a] = _jAddPoint(points[0x02], points[0x08]); // 2,2 (2p+2g)\n        points[0x0b] = _jAddPoint(points[0x03], points[0x08]); // 3,2 (3p+2g)\n        points[0x0c] = _jAddPoint(points[0x04], points[0x08]); // 0,3 (g+2g = 3g)\n        points[0x0d] = _jAddPoint(points[0x01], points[0x0c]); // 1,3 (p+3g)\n        points[0x0e] = _jAddPoint(points[0x02], points[0x0c]); // 2,3 (2p+3g)\n        points[0x0f] = _jAddPoint(points[0x03], points[0x0c]); // 3,3 (3p+3g)\n    }\n\n    function _jAddPoint(JPoint memory p1, JPoint memory p2) private pure returns (JPoint memory) {\n        (uint256 x, uint256 y, uint256 z) = _jAdd(p1, p2.x, p2.y, p2.z);\n        return JPoint(x, y, z);\n    }\n\n    function _jDoublePoint(JPoint memory p) private pure returns (JPoint memory) {\n        (uint256 x, uint256 y, uint256 z) = _jDouble(p.x, p.y, p.z);\n        return JPoint(x, y, z);\n    }\n}\n"}},"language":"Solidity","settings":{"viaIR":false,"metadata":{"appendCBOR":true,"bytecodeHash":"ipfs","useLiteralContent":false},"optimizer":{"runs":1000000,"enabled":true},"evmVersion":"osaka","remappings":["@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","@solady/=lib/solady/","@forge-std/=lib/forge-std/","@deposit-wallet/src/=src/"]}},"stdJsonOutput":{"sources":{"src/Errors.sol":{"id":25},"src/Events.sol":{"id":26},"src/DepositWallet.sol":{"id":22},"src/libraries/Ownable.sol":{"id":28},"src/DepositWalletBeacon.sol":{"id":23},"src/libraries/WalletLib.sol":{"id":32},"src/DepositWalletFactory.sol":{"id":24},"lib/solady/src/utils/ECDSA.sol":{"id":15},"lib/solady/src/auth/Ownable.sol":{"id":11},"lib/solady/src/utils/EIP712.sol":{"id":16},"src/libraries/WebAuthnNative.sol":{"id":33},"lib/solady/src/tokens/ERC1155.sol":{"id":13},"lib/solady/src/utils/LibClone.sol":{"id":18},"src/interfaces/IDepositWallet.sol":{"id":27},"src/libraries/PasskeySignerLib.sol":{"id":29},"src/libraries/SessionSignerLib.sol":{"id":30},"lib/solady/src/accounts/ERC1271.sol":{"id":9},"lib/solady/src/accounts/Receiver.sol":{"id":10},"lib/solady/src/auth/OwnableRoles.sol":{"id":12},"lib/solady/src/utils/Initializable.sol":{"id":17},"src/libraries/SignatureVerifierLib.sol":{"id":31},"lib/solady/src/utils/SafeTransferLib.sol":{"id":19},"lib/solady/src/utils/UUPSUpgradeable.sol":{"id":21},"lib/solady/src/utils/CallContextChecker.sol":{"id":14},"lib/solady/src/utils/SignatureCheckerLib.sol":{"id":20},"lib/openzeppelin-contracts/contracts/utils/Bytes.sol":{"id":1},"lib/openzeppelin-contracts/contracts/utils/Panic.sol":{"id":3},"lib/openzeppelin-contracts/contracts/utils/Base64.sol":{"id":0},"lib/openzeppelin-contracts/contracts/utils/Errors.sol":{"id":2},"lib/openzeppelin-contracts/contracts/utils/Strings.sol":{"id":4},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"id":6},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"id":7},"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol":{"id":8},"lib/openzeppelin-contracts/contracts/utils/cryptography/P256.sol":{"id":5}},"contracts":{"src/DepositWallet.sol":{"DepositWallet":{"abi":[{"type":"constructor","inputs":[],"stateMutability":"nonpayable"},{"name":"BatchCallFailed","type":"error","inputs":[{"name":"index","type":"uint256","internalType":"uint256"},{"name":"target","type":"address","internalType":"address"},{"name":"result","type":"bytes","internalType":"bytes"}]},{"name":"BeaconUnresolvable","type":"error","inputs":[]},{"name":"EmptyBatch","type":"error","inputs":[]},{"name":"Expired","type":"error","inputs":[]},{"name":"FnSelectorNotRecognized","type":"error","inputs":[]},{"name":"InvalidInitialization","type":"error","inputs":[]},{"name":"InvalidNonce","type":"error","inputs":[]},{"name":"InvalidOwner","type":"error","inputs":[]},{"name":"InvalidPasskeyPublicKey","type":"error","inputs":[{"name":"x","type":"bytes32","internalType":"bytes32"},{"name":"y","type":"bytes32","internalType":"bytes32"}]},{"name":"InvalidSignature","type":"error","inputs":[]},{"name":"InvalidValidUntil","type":"error","inputs":[]},{"name":"InvalidWallet","type":"error","inputs":[]},{"name":"MissingPrecompile","type":"error","inputs":[{"name":"","type":"address","internalType":"address"}]},{"name":"NoPendingOwner","type":"error","inputs":[]},{"name":"NotInitializing","type":"error","inputs":[]},{"name":"NotPaused","type":"error","inputs":[]},{"name":"OnlyFactory","type":"error","inputs":[]},{"name":"OnlySelf","type":"error","inputs":[]},{"name":"SessionSignerCannotCallBeacon","type":"error","inputs":[]},{"name":"SessionSignerSelfCallNotAllowed","type":"error","inputs":[]},{"name":"SessionSignerUnauthorized","type":"error","inputs":[]},{"name":"TimelockInsufficientDelay","type":"error","inputs":[]},{"name":"Unauthorized","type":"error","inputs":[]},{"name":"ZeroAddress","type":"error","inputs":[]},{"name":"AllowanceRevoked","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"spender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"ApprovalForAllRevoked","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"BatchExecuted","type":"event","inputs":[{"name":"nonce","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"ERC1155BatchWithdrawal","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"ids","type":"uint256[]","indexed":false,"internalType":"uint256[]"},{"name":"amounts","type":"uint256[]","indexed":false,"internalType":"uint256[]"}],"anonymous":false},{"name":"ERC20Withdrawal","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Execution","type":"event","inputs":[{"name":"target","type":"address","indexed":true,"internalType":"address"},{"name":"value","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"data","type":"bytes","indexed":false,"internalType":"bytes"},{"name":"result","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false},{"name":"Initialized","type":"event","inputs":[{"name":"version","type":"uint64","indexed":false,"internalType":"uint64"}],"anonymous":false},{"name":"NativeWithdrawal","type":"event","inputs":[{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"OwnershipHandoverCanceled","type":"event","inputs":[{"name":"pendingOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"OwnershipHandoverCompleted","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"OwnershipHandoverRequested","type":"event","inputs":[{"name":"pendingOwner","type":"address","indexed":true,"internalType":"address"},{"name":"deadline","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"nonce","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"OwnershipTransferred","type":"event","inputs":[{"name":"oldOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"PasskeySessionSignerAuthorized","type":"event","inputs":[{"name":"passkeyId","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"x","type":"bytes32","indexed":false,"internalType":"bytes32"},{"name":"y","type":"bytes32","indexed":false,"internalType":"bytes32"},{"name":"validUntil","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"PasskeySessionSignerRevoked","type":"event","inputs":[{"name":"passkeyId","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"x","type":"bytes32","indexed":false,"internalType":"bytes32"},{"name":"y","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"name":"PasskeySessionSignerRevokedEmergency","type":"event","inputs":[{"name":"passkeyId","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"x","type":"bytes32","indexed":false,"internalType":"bytes32"},{"name":"y","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"name":"Paused","type":"event","inputs":[{"name":"timestamp","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"SessionSignerAuthorized","type":"event","inputs":[{"name":"sessionSigner","type":"address","indexed":true,"internalType":"address"},{"name":"validUntil","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"SessionSignerRevoked","type":"event","inputs":[{"name":"sessionSigner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"SessionSignerRevokedEmergency","type":"event","inputs":[{"name":"sessionSigner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"Unpaused","type":"event","inputs":[{"name":"timestamp","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"fallback","stateMutability":"payable"},{"name":"authorizePasskeySessionSigner","type":"function","inputs":[{"name":"_x","type":"bytes32","internalType":"bytes32"},{"name":"_y","type":"bytes32","internalType":"bytes32"},{"name":"_validUntil","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"authorizeSessionSigner","type":"function","inputs":[{"name":"_sessionSigner","type":"address","internalType":"address"},{"name":"_validUntil","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"cancelOwnershipHandover","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"completeOwnershipHandover","type":"function","inputs":[{"name":"_signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"eip712Domain","type":"function","inputs":[],"outputs":[{"name":"fields","type":"bytes1","internalType":"bytes1"},{"name":"name","type":"string","internalType":"string"},{"name":"version","type":"string","internalType":"string"},{"name":"chainId","type":"uint256","internalType":"uint256"},{"name":"verifyingContract","type":"address","internalType":"address"},{"name":"salt","type":"bytes32","internalType":"bytes32"},{"name":"extensions","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"name":"execute","type":"function","inputs":[{"name":"_batch","type":"tuple","components":[{"name":"wallet","type":"address","internalType":"address"},{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"},{"name":"calls","type":"tuple[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"value","type":"uint256","internalType":"uint256"},{"name":"data","type":"bytes","internalType":"bytes"}],"internalType":"struct Call[]"}],"internalType":"struct Batch"},{"name":"_signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"factory","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"id","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"initialize","type":"function","inputs":[{"name":"_owner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"isValidSignature","type":"function","inputs":[{"name":"_hash","type":"bytes32","internalType":"bytes32"},{"name":"_signature","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"result","type":"bytes4","internalType":"bytes4"}],"stateMutability":"view"},{"name":"nonce","type":"function","inputs":[],"outputs":[{"name":"nonce_","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"optIn","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"optOut","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"owner","type":"function","inputs":[],"outputs":[{"name":"result","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"passkeySessionSigner","type":"function","inputs":[{"name":"_passkeyId","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"x","type":"bytes32","internalType":"bytes32"},{"name":"y","type":"bytes32","internalType":"bytes32"},{"name":"validUntil","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"pause","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"paused","type":"function","inputs":[],"outputs":[{"name":"paused_","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"pendingOwner","type":"function","inputs":[],"outputs":[{"name":"result","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"pendingOwnerDeadline","type":"function","inputs":[],"outputs":[{"name":"result","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"pendingOwnerNonce","type":"function","inputs":[],"outputs":[{"name":"result","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"revokeAllowance","type":"function","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_spender","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokeApprovalForAll","type":"function","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_operator","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokePasskeySessionSigner","type":"function","inputs":[{"name":"_passkeyId","type":"bytes32","internalType":"bytes32"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokePasskeySessionSignerEmergency","type":"function","inputs":[{"name":"_passkeyId","type":"bytes32","internalType":"bytes32"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokeSessionSigner","type":"function","inputs":[{"name":"_sessionSigner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokeSessionSignerEmergency","type":"function","inputs":[{"name":"_sessionSigner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"sessionSignerAuthorizedUntil","type":"function","inputs":[{"name":"_signer","type":"address","internalType":"address"}],"outputs":[{"name":"validUntil_","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"transferOwnership","type":"function","inputs":[{"name":"_newOwner","type":"address","internalType":"address"},{"name":"_deadline","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"unpause","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"walletInterfaceId","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"pure"},{"name":"withdrawERC1155","type":"function","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_ids","type":"uint256[]","internalType":"uint256[]"},{"name":"_amounts","type":"uint256[]","internalType":"uint256[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"withdrawERC20","type":"function","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"withdrawNative","type":"function","inputs":[{"name":"_to","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"receive","stateMutability":"payable"}],"metadata":"{\"compiler\":{\"version\":\"0.8.34+commit.80d5c536\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"result\",\"type\":\"bytes\"}],\"name\":\"BatchCallFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BeaconUnresolvable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyBatch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Expired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FnSelectorNotRecognized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidNonce\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"x\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"y\",\"type\":\"bytes32\"}],\"name\":\"InvalidPasskeyPublicKey\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidValidUntil\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidWallet\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"MissingPrecompile\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoPendingOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotPaused\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyFactory\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlySelf\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionSignerCannotCallBeacon\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionSignerSelfCallNotAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionSignerUnauthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TimelockInsufficientDelay\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"AllowanceRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"ApprovalForAllRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"name\":\"BatchExecuted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"ERC1155BatchWithdrawal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ERC20Withdrawal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"result\",\"type\":\"bytes\"}],\"name\":\"Execution\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"NativeWithdrawal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"pendingOwner\",\"type\":\"address\"}],\"name\":\"OwnershipHandoverCanceled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipHandoverCompleted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"pendingOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"name\":\"OwnershipHandoverRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"passkeyId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"x\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"y\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"validUntil\",\"type\":\"uint256\"}],\"name\":\"PasskeySessionSignerAuthorized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"passkeyId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"x\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"y\",\"type\":\"bytes32\"}],\"name\":\"PasskeySessionSignerRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"passkeyId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"x\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"y\",\"type\":\"bytes32\"}],\"name\":\"PasskeySessionSignerRevokedEmergency\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sessionSigner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"validUntil\",\"type\":\"uint256\"}],\"name\":\"SessionSignerAuthorized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sessionSigner\",\"type\":\"address\"}],\"name\":\"SessionSignerRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sessionSigner\",\"type\":\"address\"}],\"name\":\"SessionSignerRevokedEmergency\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_x\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"_y\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_validUntil\",\"type\":\"uint256\"}],\"name\":\"authorizePasskeySessionSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_sessionSigner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_validUntil\",\"type\":\"uint256\"}],\"name\":\"authorizeSessionSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"cancelOwnershipHandover\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"}],\"name\":\"completeOwnershipHandover\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"eip712Domain\",\"outputs\":[{\"internalType\":\"bytes1\",\"name\":\"fields\",\"type\":\"bytes1\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"version\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"verifyingContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"internalType\":\"uint256[]\",\"name\":\"extensions\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"wallet\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"struct Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"internalType\":\"struct Batch\",\"name\":\"_batch\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"}],\"name\":\"execute\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"id\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_hash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"}],\"name\":\"isValidSignature\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"result\",\"type\":\"bytes4\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"nonce_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"optIn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"optOut\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"result\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_passkeyId\",\"type\":\"bytes32\"}],\"name\":\"passkeySessionSigner\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"x\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"y\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"validUntil\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"paused_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"result\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwnerDeadline\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"result\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwnerNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"result\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_spender\",\"type\":\"address\"}],\"name\":\"revokeAllowance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"}],\"name\":\"revokeApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_passkeyId\",\"type\":\"bytes32\"}],\"name\":\"revokePasskeySessionSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_passkeyId\",\"type\":\"bytes32\"}],\"name\":\"revokePasskeySessionSignerEmergency\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_sessionSigner\",\"type\":\"address\"}],\"name\":\"revokeSessionSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_sessionSigner\",\"type\":\"address\"}],\"name\":\"revokeSessionSignerEmergency\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_signer\",\"type\":\"address\"}],\"name\":\"sessionSignerAuthorizedUntil\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"validUntil_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newOwner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_deadline\",\"type\":\"uint256\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"walletInterfaceId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_amounts\",\"type\":\"uint256[]\"}],\"name\":\"withdrawERC1155\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawERC20\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawNative\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"author\":\"Polymarket\",\"details\":\"Deployed as an ERC-1967 beacon proxy via {DepositWalletFactory}. Supports batch execution      of arbitrary calls signed by the owner or an authorized session signer, ERC-1271      signature validation, two-step ownership transfers, and an owner-controlled pause      mechanism with a timelock for emergency asset recovery.\",\"errors\":{\"FnSelectorNotRecognized()\":[{\"details\":\"The function selector is not recognized.\"}],\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"MissingPrecompile(address)\":[{\"details\":\"A necessary precompile is missing.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}]},\"events\":{\"AllowanceRevoked(address,address)\":{\"params\":{\"spender\":\"The address whose allowance was revoked.\",\"token\":\"The address of the ERC-20 token.\"}},\"ApprovalForAllRevoked(address,address)\":{\"params\":{\"operator\":\"The address whose approval was revoked.\",\"token\":\"The address of the ERC-1155 token.\"}},\"BatchExecuted(uint256)\":{\"params\":{\"nonce\":\"The nonce of the executed batch.\"}},\"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])\":{\"params\":{\"amounts\":\"The amounts withdrawn for each token ID.\",\"ids\":\"The token IDs withdrawn.\",\"to\":\"The recipient address.\",\"token\":\"The address of the ERC-1155 token.\"}},\"ERC20Withdrawal(address,address,uint256)\":{\"params\":{\"amount\":\"The amount of tokens withdrawn.\",\"to\":\"The recipient address.\",\"token\":\"The address of the ERC-20 token.\"}},\"Execution(address,uint256,bytes,bytes)\":{\"params\":{\"data\":\"The calldata sent to the target.\",\"result\":\"The return data from the call.\",\"target\":\"The address called.\",\"value\":\"The ETH value sent with the call.\"}},\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized.\"},\"NativeWithdrawal(address,uint256)\":{\"params\":{\"amount\":\"The amount of native tokens withdrawn.\",\"to\":\"The recipient address.\"}},\"OwnershipHandoverCanceled(address)\":{\"params\":{\"pendingOwner\":\"The address of the canceled pending owner.\"}},\"OwnershipHandoverCompleted(address,address)\":{\"params\":{\"newOwner\":\"The address of the incoming owner.\",\"previousOwner\":\"The address of the outgoing owner.\"}},\"OwnershipHandoverRequested(address,uint256,uint256)\":{\"params\":{\"deadline\":\"The timestamp by which the pending owner must complete the handover.\",\"nonce\":\"The per-handover nonce embedded in the signed digest. Off-chain consumers              must use this value when producing the EIP-712 signature.\",\"pendingOwner\":\"The address of the proposed new owner.\"}},\"OwnershipTransferred(address,address)\":{\"params\":{\"newOwner\":\"The address of the new owner.\",\"oldOwner\":\"The address of the previous owner.\"}},\"Paused(uint256)\":{\"params\":{\"timestamp\":\"The block timestamp at which the wallet was paused.\"}},\"SessionSignerAuthorized(address,uint256)\":{\"params\":{\"sessionSigner\":\"The address of the authorized session signer.\",\"validUntil\":\"The timestamp until which the session signer is valid.\"}},\"SessionSignerRevoked(address)\":{\"params\":{\"sessionSigner\":\"The address of the revoked session signer.\"}},\"SessionSignerRevokedEmergency(address)\":{\"params\":{\"sessionSigner\":\"The address of the revoked session signer.\"}},\"Unpaused(uint256)\":{\"params\":{\"timestamp\":\"The block timestamp at which the wallet was unpaused.\"}}},\"kind\":\"dev\",\"methods\":{\"authorizeSessionSigner(address,uint256)\":{\"details\":\"Can only be invoked via batch execution (self-call).\",\"params\":{\"_sessionSigner\":\"The address to authorize as a session signer.\",\"_validUntil\":\"The timestamp until which the session signer is valid.\"}},\"cancelOwnershipHandover()\":{\"details\":\"Can only be invoked via batch execution (self-call).\"},\"completeOwnershipHandover(bytes)\":{\"details\":\"Permissionless — anyone may submit, but the pending owner must have signed an      EIP-712 `OwnershipHandover(newOwner, nonce)` message using the current      {pendingOwnerNonce}, and the on-chain {pendingOwnerDeadline} must not have elapsed.\",\"params\":{\"_signature\":\"The EIP-712 signature from the pending owner.\"}},\"constructor\":{\"details\":\"Disables initializers on the implementation contract to prevent misuse.\"},\"eip712Domain()\":{\"details\":\"See: https://eips.ethereum.org/EIPS/eip-5267\"},\"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)\":{\"details\":\"Validates the batch (non-empty, correct wallet, nonce, deadline), verifies the EIP-712      signature against the owner or an authorized session signer, then executes each call      sequentially. Session signers are prevented from calling the wallet itself.\",\"params\":{\"_batch\":\"The batch containing the target wallet, nonce, deadline, and calls.\",\"_signature\":\"The EIP-712 signature authorizing the batch (owner or session signer).\"}},\"factory()\":{\"returns\":{\"_0\":\"The factory address decoded from the proxy's immutable args.\"}},\"id()\":{\"returns\":{\"_0\":\"The wallet ID decoded from the proxy's immutable args.\"}},\"initialize(address)\":{\"details\":\"This replaces the constructor for upgradeable contracts.\",\"params\":{\"_owner\":\"The address to set as the wallet owner.\"}},\"isValidSignature(bytes32,bytes)\":{\"details\":\"Overrides Solady's ERC-1271 implementation to support session signer signatures.      The resolved signer is stored in memory at `_ERC1271_SIGNER_MEM_SLOT` so that      `_erc1271Signer` can return it to the parent verification logic.\",\"params\":{\"_hash\":\"The hash that was signed.\",\"_signature\":\"The signature to validate (may contain a session signer wrapper).\"},\"returns\":{\"result\":\"`ERC1271_MAGIC_VALUE` if the signature is valid, otherwise reverts or returns `ERC1271_INVALID_VALUE`.\"}},\"nonce()\":{\"returns\":{\"nonce_\":\"The current nonce.\"}},\"optIn()\":{\"details\":\"Requires the wallet to be paused and the timelock delay to have elapsed. Calls      {DepositWalletBeacon.optIn} from the wallet proxy's address; the beacon emits the      {OptedIn} event.      WARNING: opting in resubscribes the wallet to beacon-driven upgrades. After this      call:        - The wallet's next call delegates through whatever the beacon currently          publishes as `defaultImplementation()`, immediately, with no further owner          confirmation.        - Any future `beacon.upgradeTo(...)` likewise takes effect on this wallet from          the next call onward, on the timelock's schedule rather than the owner's.        - Before opting in the owner must understand what the current beacon          implementation does and verify that it is safe to adopt and will not break any          functionality this wallet depends on. This is especially important when the          pinned implementation is several upgrade versions behind the current default —          the wallet skips every intermediate version and lands directly on the latest,          so any storage, behavioral, or interface changes accumulated across those          versions take effect at once.      By calling this function the owner acknowledges the above and accepts the risk.\"},\"optOut()\":{\"details\":\"Requires the wallet to be paused and the timelock delay to have elapsed. Calls      {DepositWalletBeacon.optOut} from the wallet proxy's address; the beacon emits the      {OptedOut} event.      WARNING: opting out is a security-bearing decision the wallet owner takes on their      own behalf. After this call:        - The wallet permanently follows the implementation that is current at opt-out          time, regardless of future beacon upgrades.        - Future security fixes, bug patches, and feature updates published via          `beacon.upgradeTo(...)` will NOT reach this wallet.        - If the pinned implementation is later found vulnerable, the wallet stays          vulnerable. The beacon owner cannot un-pin the wallet — only the wallet owner          can call {optIn} to rejoin the upgrade cohort.        - The pause-based exit hatch (`pause` → wait → `withdrawERC20` / etc.) keeps          working as long as the pinned implementation provides those functions.      By calling this function the owner acknowledges the above and accepts the risk.\"},\"owner()\":{\"returns\":{\"result\":\"The owner address.\"}},\"pause()\":{\"details\":\"After pausing, the owner must wait for the timelock delay before calling      paused-only functions (e.g., withdrawals, revocations).\"},\"paused()\":{\"returns\":{\"paused_\":\"The paused timestamp, or zero if not paused.\"}},\"pendingOwner()\":{\"returns\":{\"result\":\"The pending owner address, or `address(0)` if none.\"}},\"pendingOwnerDeadline()\":{\"returns\":{\"result\":\"The acceptance-deadline timestamp, or zero if no handover is pending.\"}},\"pendingOwnerNonce()\":{\"returns\":{\"result\":\"The current handover nonce.\"}},\"revokeAllowance(address,address)\":{\"details\":\"Requires the wallet to be paused and the timelock delay to have elapsed.\",\"params\":{\"_spender\":\"The spender whose allowance is revoked.\",\"_token\":\"The ERC-20 token address.\"}},\"revokeApprovalForAll(address,address)\":{\"details\":\"Requires the wallet to be paused and the timelock delay to have elapsed.\",\"params\":{\"_operator\":\"The operator whose approval is revoked.\",\"_token\":\"The ERC-1155 token address.\"}},\"revokeSessionSigner(address)\":{\"details\":\"Can only be invoked via batch execution (self-call).\",\"params\":{\"_sessionSigner\":\"The session signer address to revoke.\"}},\"revokeSessionSignerEmergency(address)\":{\"details\":\"Requires the wallet to be paused and the timelock delay to have elapsed.\",\"params\":{\"_sessionSigner\":\"The session signer to revoke.\"}},\"sessionSignerAuthorizedUntil(address)\":{\"params\":{\"_signer\":\"The session signer address to query.\"},\"returns\":{\"validUntil_\":\"The authorization expiry timestamp, or zero if not authorized.\"}},\"transferOwnership(address,uint256)\":{\"details\":\"Can only be invoked via batch execution (self-call). Records the on-chain deadline      by which the pending owner must complete the handover and bumps the per-handover      nonce, invalidating any previously issued handover signature.\",\"params\":{\"_deadline\":\"The timestamp by which the pending owner must complete the handover.\",\"_newOwner\":\"The proposed new owner, distinct from the current owner and this wallet.\"}},\"unpause()\":{\"details\":\"Requires the wallet to be paused and the timelock delay to have elapsed.\"},\"walletInterfaceId()\":{\"details\":\"Probed by {DepositWalletBeacon} on every implementation install.\",\"returns\":{\"_0\":\"The wallet identity magic.\"}},\"withdrawERC1155(address,address,uint256[],uint256[])\":{\"details\":\"Requires the wallet to be paused and the timelock delay to have elapsed.\",\"params\":{\"_amounts\":\"The amounts for each token ID.\",\"_ids\":\"The token IDs to withdraw.\",\"_to\":\"The recipient address.\",\"_token\":\"The ERC-1155 token address.\"}},\"withdrawERC20(address,address,uint256)\":{\"details\":\"Requires the wallet to be paused and the timelock delay to have elapsed.\",\"params\":{\"_amount\":\"The amount of tokens to withdraw.\",\"_to\":\"The recipient address.\",\"_token\":\"The ERC-20 token address.\"}},\"withdrawNative(address,uint256)\":{\"details\":\"Requires the wallet to be paused and the timelock delay to have elapsed.\",\"params\":{\"_amount\":\"The amount of native tokens to withdraw.\",\"_to\":\"The recipient address.\"}}},\"stateVariables\":{\"_ERC1271_SIGNER_MEM_SLOT\":{\"details\":\"Scratch memory used to pass resolved signer data through Solady's ERC-1271 flow.\"},\"_ERC1967_BEACON_SLOT\":{\"details\":\"ERC-1967 beacon slot. `0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50`. Populated on the proxy at deploy time by {LibClone.deployDeterministicERC1967BeaconProxy}; remains      empty for legacy UUPS proxies migrated through {BeaconForwarder}.\"},\"_ERC1967_IMPLEMENTATION_SLOT\":{\"details\":\"ERC-1967 implementation slot. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`. Empty on native beacon proxies; points at the {BeaconForwarder} on legacy UUPS proxies      migrated through the adapter.\"},\"_IMMUTABLE_ARGS_LENGTH\":{\"details\":\"Byte length of the `(address factory, bytes32 id)` immutable args appended to the proxy bytecode.\"},\"_NONCE_SLOT\":{\"details\":\"Storage slot for the replay-protection nonce. keccak256(\\\"DepositWallet.nonce\\\") - 1\"},\"_PASSKEY_SESSION_SIGNER_SLOT\":{\"details\":\"Base storage slot for passkey session signer records. keccak256(\\\"DepositWallet.passkeySessionSigner\\\") - 1\"},\"_PAUSED_SLOT\":{\"details\":\"Storage slot for the paused timestamp. keccak256(\\\"DepositWallet.paused\\\") - 1\"},\"_SESSION_SIGNER_SLOT\":{\"details\":\"Base storage slot for the session signer mapping. keccak256(\\\"DepositWallet.sessionSignerAuthorizedUntil\\\") - 1\"},\"_WALLET_INTERFACE_ID\":{\"details\":\"Identity magic returned by {walletInterfaceId} and probed by {DepositWalletBeacon}      when installing a new implementation. Stable; not bumped per release.\"}},\"title\":\"DepositWallet\",\"version\":1},\"userdoc\":{\"errors\":{\"BatchCallFailed(uint256,address,bytes)\":[{\"notice\":\"Thrown when a low-level call within a batch execution fails.\"}],\"BeaconUnresolvable()\":[{\"notice\":\"Thrown when the wallet cannot resolve its beacon from on-proxy state — i.e., the         ERC-1967 beacon slot is empty AND the ERC-1967 implementation slot is either empty         or points at an address with no code.\"}],\"EmptyBatch()\":[{\"notice\":\"Thrown when a batch contains zero calls.\"}],\"Expired()\":[{\"notice\":\"Thrown when a deadline has passed.\"}],\"InvalidNonce()\":[{\"notice\":\"Thrown when the batch nonce does not match the wallet's current nonce.\"}],\"InvalidOwner()\":[{\"notice\":\"Thrown when the provided owner address is invalid (e.g., zero address).\"}],\"InvalidPasskeyPublicKey(bytes32,bytes32)\":[{\"notice\":\"Thrown when the supplied coordinates are not a valid P-256 public key.\"}],\"InvalidSignature()\":[{\"notice\":\"Thrown when a signature fails verification.\"}],\"InvalidValidUntil()\":[{\"notice\":\"Thrown when the provided `validUntil` timestamp is not in the future.\"}],\"InvalidWallet()\":[{\"notice\":\"Thrown when the batch's wallet address does not match the executing wallet.\"}],\"NoPendingOwner()\":[{\"notice\":\"Thrown when an ownership handover is expected but none is pending.\"}],\"NotPaused()\":[{\"notice\":\"Thrown when a paused-only function is called while the wallet is not paused.\"}],\"OnlyFactory()\":[{\"notice\":\"Thrown when the caller is not the factory contract.\"}],\"OnlySelf()\":[{\"notice\":\"Thrown when a function restricted to self-calls is invoked externally.\"}],\"SessionSignerCannotCallBeacon()\":[{\"notice\":\"Thrown when a session signer attempts to call the beacon — toggling the wallet's         beacon-upgrade pin is an owner-only privilege.\"}],\"SessionSignerSelfCallNotAllowed()\":[{\"notice\":\"Thrown when a session signer attempts to call the wallet itself.\"}],\"SessionSignerUnauthorized()\":[{\"notice\":\"Legacy error retained for ABI compatibility.\"}],\"TimelockInsufficientDelay()\":[{\"notice\":\"Thrown when the timelock delay has not elapsed since the wallet was paused.\"}],\"Unauthorized()\":[{\"notice\":\"Thrown when the caller is not authorized to perform the action.\"}],\"ZeroAddress()\":[{\"notice\":\"Thrown when the zero address is provided where a non-zero address is required.\"}]},\"events\":{\"AllowanceRevoked(address,address)\":{\"notice\":\"Emitted when an ERC-20 allowance is revoked by the owner.\"},\"ApprovalForAllRevoked(address,address)\":{\"notice\":\"Emitted when an ERC-1155 operator approval is revoked by the owner.\"},\"BatchExecuted(uint256)\":{\"notice\":\"Emitted after a batch of calls has been successfully executed.\"},\"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])\":{\"notice\":\"Emitted when ERC-1155 tokens are batch-withdrawn from the wallet by the owner.\"},\"ERC20Withdrawal(address,address,uint256)\":{\"notice\":\"Emitted when ERC-20 tokens are withdrawn from the wallet by the owner.\"},\"Execution(address,uint256,bytes,bytes)\":{\"notice\":\"Emitted for each individual call executed within a batch.\"},\"NativeWithdrawal(address,uint256)\":{\"notice\":\"Emitted when native tokens are withdrawn from the wallet by the owner.\"},\"OwnershipHandoverCanceled(address)\":{\"notice\":\"Emitted when a pending ownership handover is canceled.\"},\"OwnershipHandoverCompleted(address,address)\":{\"notice\":\"Emitted when a two-step ownership handover is completed.\"},\"OwnershipHandoverRequested(address,uint256,uint256)\":{\"notice\":\"Emitted when a two-step ownership handover is initiated.\"},\"OwnershipTransferred(address,address)\":{\"notice\":\"Emitted when ownership is transferred.\"},\"PasskeySessionSignerAuthorized(bytes32,bytes32,bytes32,uint256)\":{\"notice\":\"Emitted when a passkey session signer is authorized.\"},\"PasskeySessionSignerRevoked(bytes32,bytes32,bytes32)\":{\"notice\":\"Emitted when a passkey session signer is revoked via a self-call.\"},\"PasskeySessionSignerRevokedEmergency(bytes32,bytes32,bytes32)\":{\"notice\":\"Emitted when a passkey session signer is emergency-revoked by the owner.\"},\"Paused(uint256)\":{\"notice\":\"Emitted when the wallet is paused.\"},\"SessionSignerAuthorized(address,uint256)\":{\"notice\":\"Emitted when a session signer is authorized.\"},\"SessionSignerRevoked(address)\":{\"notice\":\"Emitted when a session signer is revoked via a self-call.\"},\"SessionSignerRevokedEmergency(address)\":{\"notice\":\"Emitted when a session signer is emergency-revoked by the owner while paused.\"},\"Unpaused(uint256)\":{\"notice\":\"Emitted when the wallet is unpaused.\"}},\"kind\":\"user\",\"methods\":{\"authorizePasskeySessionSigner(bytes32,bytes32,uint256)\":{\"notice\":\"Authorizes a P-256 passkey as a session signer.\"},\"authorizeSessionSigner(address,uint256)\":{\"notice\":\"Authorizes a session signer until the specified timestamp.\"},\"cancelOwnershipHandover()\":{\"notice\":\"Cancels any pending ownership handover.\"},\"completeOwnershipHandover(bytes)\":{\"notice\":\"Completes a pending ownership transfer.\"},\"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)\":{\"notice\":\"Executes a signed batch of calls through the factory.\"},\"factory()\":{\"notice\":\"Returns the factory contract that deployed this wallet.\"},\"id()\":{\"notice\":\"Returns the unique identifier assigned to this wallet at deployment.\"},\"initialize(address)\":{\"notice\":\"Initializes the wallet with a designated owner.\"},\"isValidSignature(bytes32,bytes)\":{\"notice\":\"Validates a signature against the wallet owner or an authorized session signer.\"},\"nonce()\":{\"notice\":\"Returns the wallet's current execution nonce.\"},\"optIn()\":{\"notice\":\"Clears the wallet's beacon-upgrade pin, rejoining the upgrade cohort.\"},\"optOut()\":{\"notice\":\"Opts the wallet out of beacon upgrades, pinning it to the current default         implementation.\"},\"owner()\":{\"notice\":\"Returns the current owner of the wallet.\"},\"passkeySessionSigner(bytes32)\":{\"notice\":\"Returns a passkey session signer's public key and authorization expiry.\"},\"pause()\":{\"notice\":\"Pauses the wallet, recording the current timestamp.\"},\"paused()\":{\"notice\":\"Returns the timestamp at which the wallet was paused.\"},\"pendingOwner()\":{\"notice\":\"Returns the pending owner awaiting handover completion.\"},\"pendingOwnerDeadline()\":{\"notice\":\"Returns the deadline by which the pending owner must complete the handover.\"},\"pendingOwnerNonce()\":{\"notice\":\"Returns the per-handover nonce embedded in the EIP-712 signature.\"},\"revokeAllowance(address,address)\":{\"notice\":\"Revokes an ERC-20 allowance by setting it to zero.\"},\"revokeApprovalForAll(address,address)\":{\"notice\":\"Revokes an ERC-1155 operator approval.\"},\"revokePasskeySessionSigner(bytes32)\":{\"notice\":\"Revokes a passkey session signer's authorization.\"},\"revokePasskeySessionSignerEmergency(bytes32)\":{\"notice\":\"Emergency revocation of a passkey session signer by the owner.\"},\"revokeSessionSigner(address)\":{\"notice\":\"Revokes a session signer's authorization.\"},\"revokeSessionSignerEmergency(address)\":{\"notice\":\"Emergency revocation of a session signer by the owner.\"},\"sessionSignerAuthorizedUntil(address)\":{\"notice\":\"Returns the timestamp until which a session signer is authorized.\"},\"transferOwnership(address,uint256)\":{\"notice\":\"Initiates a two-step ownership transfer to a new owner.\"},\"unpause()\":{\"notice\":\"Unpauses the wallet.\"},\"walletInterfaceId()\":{\"notice\":\"Returns a stable magic identifying this contract as a `DepositWallet`.\"},\"withdrawERC1155(address,address,uint256[],uint256[])\":{\"notice\":\"Batch-withdraws ERC-1155 tokens from the wallet.\"},\"withdrawERC20(address,address,uint256)\":{\"notice\":\"Withdraws ERC-20 tokens from the wallet.\"},\"withdrawNative(address,uint256)\":{\"notice\":\"Withdraws native tokens from the wallet.\"}},\"notice\":\"Minimal smart-contract wallet for deposit operations.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/DepositWallet.sol\":\"DepositWallet\"},\"evmVersion\":\"osaka\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[\":@deposit-wallet/src/=src/\",\":@forge-std/=lib/forge-std/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":@solady/=lib/solady/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/utils/Base64.sol\":{\"keccak256\":\"0xe802369c4d2d254590d371eca16c8d247d7e0782ad2faaaa0180159ea8e736af\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3afb5bedd76d842847c730499c3acc9c28e91ac981bb95467671118ec0c7cdc8\",\"dweb:/ipfs/QmWzjmjvZPJEvNTiN22V3E9hQ2JnGeZgYfhFjqGMPMcSNH\"]},\"lib/openzeppelin-contracts/contracts/utils/Bytes.sol\":{\"keccak256\":\"0xf80e4b96b6849936ea0fabd76cf81b13d7276295fddb1e1c07afb3ddf650b0ac\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6430007255ac11c6e9c4331a418f3af52ff66fbbae959f645301d025b20aeb08\",\"dweb:/ipfs/QmQE5fjmBBRw9ndnzJuC2uskYss1gbaR7JdazoCf1FGoBj\"]},\"lib/openzeppelin-contracts/contracts/utils/Errors.sol\":{\"keccak256\":\"0x6afa713bfd42cf0f7656efa91201007ac465e42049d7de1d50753a373648c123\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ba1d02f4847670a1b83dec9f7d37f0b0418d6043447b69f3a29a5f9efc547fcf\",\"dweb:/ipfs/QmQ7iH2keLNUKgq2xSWcRmuBE5eZ3F5whYAkAGzCNNoEWB\"]},\"lib/openzeppelin-contracts/contracts/utils/Panic.sol\":{\"keccak256\":\"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a\",\"dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG\"]},\"lib/openzeppelin-contracts/contracts/utils/Strings.sol\":{\"keccak256\":\"0x1fdc2de9585ab0f1c417f02a873a2b6343cd64bb7ffec6b00ffa11a4a158d9e8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1ab223a3d969c6cd7610049431dd42740960c477e45878f5d8b54411f7a32bdc\",\"dweb:/ipfs/QmWumhjvhpKcwx3vDPQninsNVTc3BGvqaihkQakFkQYpaS\"]},\"lib/openzeppelin-contracts/contracts/utils/cryptography/P256.sol\":{\"keccak256\":\"0x88c54d9537016a9c0af742fe9d6303e5b9ef76946866296382f62a34875d06e7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ffdc3422a88fdf71693a139af52f9a7c4e92cb9d2db1002a23c643dbbab1b42f\",\"dweb:/ipfs/Qma2hbbigJBetFACyFxwyakzHHLnP7T2kztKxXyNHtcFLR\"]},\"lib/openzeppelin-contracts/contracts/utils/math/Math.sol\":{\"keccak256\":\"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5\",\"dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y\"]},\"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol\":{\"keccak256\":\"0xc8cae21c9ae4a46e5162ff9bf5b351d6fa6a6eba72d515f3bc1bdfeda7fdf083\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ce830ebcf28e31643caba318996db3763c36d52cd0f23798ba83c135355d45e9\",\"dweb:/ipfs/QmdGPcvptHN7UBCbUYBbRX3hiRVRFLRwno8b4uga6uFNif\"]},\"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol\":{\"keccak256\":\"0xb1970fac7b64e6c09611e6691791e848d5e3fe410fa5899e7df2e0afd77a99e3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://db5fbb3dddd8b7047465b62575d96231ba8a2774d37fb4737fbf23340fabbb03\",\"dweb:/ipfs/QmVUSvooZKEdEdap619tcJjTLcAuH6QBdZqAzWwnAXZAWJ\"]},\"lib/solady/src/accounts/ERC1271.sol\":{\"keccak256\":\"0x196fbf4f691aba451297e24974216613d1d13514f35a446662ad6b8d62f1a2fd\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4fcf2fb41d12165cc219f737472023997b726247d7bc7f7e2b26fcf395047953\",\"dweb:/ipfs/QmYoHCQaLtW2M4U5NpYWPsomzqABu1GFJJ71TJHf4Qm33N\"]},\"lib/solady/src/accounts/Receiver.sol\":{\"keccak256\":\"0xc879aa81dd5639f5fd97b31acd91658ffe33ae4b72b70ed7bd701c37addce43b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2e03a8d37d48644857d94f7432c1e2272bfd19649dfe80aba8f979f157f71f00\",\"dweb:/ipfs/QmWWS34bNWhiZgLXS9gtD8N2dxreRsVXxhvQRKqd4wKUuU\"]},\"lib/solady/src/auth/Ownable.sol\":{\"keccak256\":\"0xc208cdd9de02bbf4b5edad18b88e23a2be7ff56d2287d5649329dc7cda64b9a3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e8fba079cc7230c617f7493a2e97873f88e59a53a5018fcb2e2b6ac42d8aa5a3\",\"dweb:/ipfs/QmTXg8GSt8hsK2cZhbPFrund1mrwVdkLQmEPoQaFy4fhjs\"]},\"lib/solady/src/auth/OwnableRoles.sol\":{\"keccak256\":\"0x34fc1e43ab0c413faea47d5198d49879ccafd3a46c1657083ec79e3f4ca4359d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://539e93fa51da529c6fdf122a68239652e98a4e31eaf5a08868339404878a095d\",\"dweb:/ipfs/Qmf4SGkn3LDLGAeFmuSnETrQUCa8g8h2dSoukCwyj36yy6\"]},\"lib/solady/src/tokens/ERC1155.sol\":{\"keccak256\":\"0x306249cc3611727ffa9e15ec816282a60fd9629e5ea03ab1c780d638d1537c68\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f5627bb90f7db938144047956c23ce8b1b00925aeceb75561f599585f14c2a76\",\"dweb:/ipfs/QmPQ9wMm5govH7jNTF7AMwvt6LrrZgurJhPe7feZBxfpop\"]},\"lib/solady/src/utils/CallContextChecker.sol\":{\"keccak256\":\"0xc54c743a03f4909826712e9c6b683ca95e8b0c120c55284a9e3572621ebd734b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3d3138009aba3d2fd310636f3cc1d6029e970c57ddb74693bebf2a02d3e6f12d\",\"dweb:/ipfs/QmauMpcVDyQqVnAUF75DXy831LvtxyFS7GND7kge1Zgw55\"]},\"lib/solady/src/utils/ECDSA.sol\":{\"keccak256\":\"0xb0754260daabfe6f20dd16f2213823f27c8df1089b43c8eda9b3c2a6eca07478\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ffef4ca363ec0e2437b5e195fbb3d58bdc6750921fce32f351ca1c092ad36a75\",\"dweb:/ipfs/QmTcnAyxwvQg3h357PdB8S8oz5bBt85J4SvEgmMqwAfPKF\"]},\"lib/solady/src/utils/EIP712.sol\":{\"keccak256\":\"0x53ccaa757944900e7423347c3c35ea5a905580f3f075452b8468a501a9c39839\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://aa5688d98319fbeb5b3c46330a394e15a0f2c862d651415e183da4179b918351\",\"dweb:/ipfs/QmZZFrFWmUCFL1qkZDVm3oqrDkQfumYnnksF6cpPkAHdtJ\"]},\"lib/solady/src/utils/Initializable.sol\":{\"keccak256\":\"0x58ee7b2e966232ca1ca9e9e705d8afcefa83fe29d37d6f8361d73015a9db1fe4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://59f134cb038e0a547f0a3dbfe9c9b6939f7b39dff64646a79e8cf2dd6ba14f80\",\"dweb:/ipfs/QmfXt149JQEWsYbLUkS9iLP6kGZqzHYyMg7SsLUUPgafEb\"]},\"lib/solady/src/utils/LibClone.sol\":{\"keccak256\":\"0x1b96fd03a3948155bd2fe95dc4980930c759b174026e18f11bc8e88d55ae030e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://64998d16472a127031ee6a796ed9afcf13dd662afd30eb4d3e2a42c2bc9fd204\",\"dweb:/ipfs/QmTXHGy9t8YTW96tjiZ8RBqmijXUTqc1JznEBqHv8Duc4A\"]},\"lib/solady/src/utils/SafeTransferLib.sol\":{\"keccak256\":\"0xf53a25143307304d9de7186f93f11faae3cc4f722c4b088aed6f4f8f87a02f7a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b722c08826ece540bbc4ee9f825aac501282c0900a0a2caa618154d77f23223d\",\"dweb:/ipfs/QmeMsPT5S4vV8f7DYC2eZ7TBCrtRi9cKMsoW6Ca62Uaqwg\"]},\"lib/solady/src/utils/SignatureCheckerLib.sol\":{\"keccak256\":\"0x098c7eb88b3048f227b240e0e5bf1da4a8f7622b30f6d7c06416bfcab3225e77\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://50c2766f652916c5d6433665fb1c3b2f04c3d9292a35c12e0f8d7c71dd6438cb\",\"dweb:/ipfs/QmWTMwN2RDZUUPg7KkH1qFBjTSh84Zw8bbYwRBCQUtLN2h\"]},\"lib/solady/src/utils/UUPSUpgradeable.sol\":{\"keccak256\":\"0x63899eaf1a24713464b8084ada33a83c4b7db789fe83ae22f016e39646bee361\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://617fa735ffa8ba31051745614a508abd69d2cfc1b1bc1eb3c772865db5f7ce65\",\"dweb:/ipfs/QmR1pQbHPyXcLbFm2vHrXBs1qRFrGC22gF7wWYamYy8aaE\"]},\"src/DepositWallet.sol\":{\"keccak256\":\"0x9572ccb1aa2414882e0ee7a2bd32ff9790a28cd4978cc428dfd414ac3fff5005\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://8965130a081357ea69a7e0131e277445dfb4a03c330236eaa42f06f8443891d6\",\"dweb:/ipfs/QmNkKKCuHRS1JrzXw55VcXng9ZRnAWhnHdGfUpni2kAga9\"]},\"src/DepositWalletBeacon.sol\":{\"keccak256\":\"0xa5cc7a92c07db2f298d1d0e91eecc9698f559cb1d3ed5f52481e3f14173dd8b9\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://63b03aeb1f52b8429ec70e1ff508e8ca721d529c388b2da2d7b9f2bdc972c10c\",\"dweb:/ipfs/Qmdzp2naUW98WSKV3WSvtHRceefSZE8CqM39pssKdDmWyP\"]},\"src/DepositWalletFactory.sol\":{\"keccak256\":\"0x99c4cc0d174b518a9066fd3f174bff453e06103b9a8047b4e2fb9bfafe2d832e\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://6755650fde18027cccdac1fd5d0615cf5eac55cd4f0a94c4d944d267aeef326e\",\"dweb:/ipfs/QmYBXh8h13nTP7Khsdy54ycvVGw3mjnbgUE1LX8EEVmERe\"]},\"src/Errors.sol\":{\"keccak256\":\"0x641a144833da4937522a190855503388ac8f43ca1de0db64fc646798f4fa46c8\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://4b40f47875b47995bd7f9e1aba2e724a69c0363d3c801403899630d9f5488365\",\"dweb:/ipfs/Qmf82WsA6eQRRUj6ScpmuBVKavimg3UL85yXYfL6QjdEPu\"]},\"src/Events.sol\":{\"keccak256\":\"0x698b5a64c71fe787e27c2c463130cb824395a1c294e56b73260f74dbe378deb6\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://e0c8c496369bbd56892f39ec215b0b367295f069ea186a96092cb6dbada7406c\",\"dweb:/ipfs/QmXn4cuDsZbNmaktQULBSihjnq1PMcLr5stXNNQK4p8JWj\"]},\"src/interfaces/IDepositWallet.sol\":{\"keccak256\":\"0x4174ab48008387f1ce4c1a5c6052a98968488885b592a9a850dcb6a3a5552f6a\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://ce3320db306c334438f015d12dc94ab7f5f18faf17964cd4d68fa863380ea246\",\"dweb:/ipfs/QmTmjXvJCisVUsHizdcin7VNAQc5arRZphL2f9ALNuH2F7\"]},\"src/libraries/Ownable.sol\":{\"keccak256\":\"0xaa50823c42a8079630b8204ad0e04523901c446fdd5802d1f7037f0ca223a94c\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://704d6247b9290805b380f2a279b22ef52bef2b60d3237ebff5e6bb925747693a\",\"dweb:/ipfs/QmTD3EvDjfCmscdfVNn5eXo6EaLgwwCCQB5T9qWaZ1xuhG\"]},\"src/libraries/PasskeySignerLib.sol\":{\"keccak256\":\"0x461a1af7331d1f2c40a79cd20829f2e30f89de24929a4cf6ed1781b50e6e6cfe\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://b47252e133e442607f9b8d47b8c9468f51912ffd69e364f73796c8929d0edb16\",\"dweb:/ipfs/QmeWzNFaKP1oTMBMyRKAYVMR6vStj2C4qbWrxT4oZVGLDc\"]},\"src/libraries/SessionSignerLib.sol\":{\"keccak256\":\"0xd1e34fa3aeb9650772c8e7e155b1f5aab2f04297c8bc96d141304f7038040c86\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://de0322d1ca80ebba60e4940d0ea402a3b2ba8be7f50e85aadaa4d8fc37d7363e\",\"dweb:/ipfs/QmesgdYCEGq8Vy4icvKzSnJrLXzRYLQbYHEgTB7UmbYUVc\"]},\"src/libraries/SignatureVerifierLib.sol\":{\"keccak256\":\"0x90d5668863c51105043dc6948da64177f92884286a369e91a88251091ecf783f\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://e9eaa83ef4c2f86a08043c0482cf8f8500ca9d373ea3c4b7d82a672a1b378f87\",\"dweb:/ipfs/QmcWN1DZffjFttkopQQdfagqHckYxZLhgW53SFZvM5qj3c\"]},\"src/libraries/WalletLib.sol\":{\"keccak256\":\"0xcd683a9161bc4c17220d606569729ddc5047cc22c3197e2e5e3130aac488e0f2\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://8096a63d894b255d64d4151ae9edf935c0c2e21a637613f6c068cce4c03008c4\",\"dweb:/ipfs/QmQHHxFJmYD5DGVXLz1kHwwBzF1J5D5wLnod7KzcTi5Ts5\"]},\"src/libraries/WebAuthnNative.sol\":{\"keccak256\":\"0x131b2efad64eabd9c36e5a7ffe5cb5bbcb81b3f7ebc1765e1ea2a9e4416cdeeb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://68e94df30f2854174e7f773b9f5dd58639349fd19e09c13dcbd3c03579fa2179\",\"dweb:/ipfs/QmSouGRUr9DfY13qKgFQwvrLuza9B6X2Loap1AwSdgBb4S\"]}},\"version\":1}","userdoc":{"kind":"user","errors":{"Expired()":[{"notice":"Thrown when a deadline has passed."}],"OnlySelf()":[{"notice":"Thrown when a function restricted to self-calls is invoked externally."}],"NotPaused()":[{"notice":"Thrown when a paused-only function is called while the wallet is not paused."}],"EmptyBatch()":[{"notice":"Thrown when a batch contains zero calls."}],"OnlyFactory()":[{"notice":"Thrown when the caller is not the factory contract."}],"ZeroAddress()":[{"notice":"Thrown when the zero address is provided where a non-zero address is required."}],"InvalidNonce()":[{"notice":"Thrown when the batch nonce does not match the wallet's current nonce."}],"InvalidOwner()":[{"notice":"Thrown when the provided owner address is invalid (e.g., zero address)."}],"Unauthorized()":[{"notice":"Thrown when the caller is not authorized to perform the action."}],"InvalidWallet()":[{"notice":"Thrown when the batch's wallet address does not match the executing wallet."}],"NoPendingOwner()":[{"notice":"Thrown when an ownership handover is expected but none is pending."}],"InvalidSignature()":[{"notice":"Thrown when a signature fails verification."}],"InvalidValidUntil()":[{"notice":"Thrown when the provided `validUntil` timestamp is not in the future."}],"BeaconUnresolvable()":[{"notice":"Thrown when the wallet cannot resolve its beacon from on-proxy state — i.e., the         ERC-1967 beacon slot is empty AND the ERC-1967 implementation slot is either empty         or points at an address with no code."}],"SessionSignerUnauthorized()":[{"notice":"Legacy error retained for ABI compatibility."}],"TimelockInsufficientDelay()":[{"notice":"Thrown when the timelock delay has not elapsed since the wallet was paused."}],"SessionSignerCannotCallBeacon()":[{"notice":"Thrown when a session signer attempts to call the beacon — toggling the wallet's         beacon-upgrade pin is an owner-only privilege."}],"SessionSignerSelfCallNotAllowed()":[{"notice":"Thrown when a session signer attempts to call the wallet itself."}],"BatchCallFailed(uint256,address,bytes)":[{"notice":"Thrown when a low-level call within a batch execution fails."}],"InvalidPasskeyPublicKey(bytes32,bytes32)":[{"notice":"Thrown when the supplied coordinates are not a valid P-256 public key."}]},"events":{"Paused(uint256)":{"notice":"Emitted when the wallet is paused."},"Unpaused(uint256)":{"notice":"Emitted when the wallet is unpaused."},"BatchExecuted(uint256)":{"notice":"Emitted after a batch of calls has been successfully executed."},"SessionSignerRevoked(address)":{"notice":"Emitted when a session signer is revoked via a self-call."},"AllowanceRevoked(address,address)":{"notice":"Emitted when an ERC-20 allowance is revoked by the owner."},"NativeWithdrawal(address,uint256)":{"notice":"Emitted when native tokens are withdrawn from the wallet by the owner."},"OwnershipHandoverCanceled(address)":{"notice":"Emitted when a pending ownership handover is canceled."},"OwnershipTransferred(address,address)":{"notice":"Emitted when ownership is transferred."},"ApprovalForAllRevoked(address,address)":{"notice":"Emitted when an ERC-1155 operator approval is revoked by the owner."},"Execution(address,uint256,bytes,bytes)":{"notice":"Emitted for each individual call executed within a batch."},"SessionSignerRevokedEmergency(address)":{"notice":"Emitted when a session signer is emergency-revoked by the owner while paused."},"ERC20Withdrawal(address,address,uint256)":{"notice":"Emitted when ERC-20 tokens are withdrawn from the wallet by the owner."},"SessionSignerAuthorized(address,uint256)":{"notice":"Emitted when a session signer is authorized."},"OwnershipHandoverCompleted(address,address)":{"notice":"Emitted when a two-step ownership handover is completed."},"OwnershipHandoverRequested(address,uint256,uint256)":{"notice":"Emitted when a two-step ownership handover is initiated."},"PasskeySessionSignerRevoked(bytes32,bytes32,bytes32)":{"notice":"Emitted when a passkey session signer is revoked via a self-call."},"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])":{"notice":"Emitted when ERC-1155 tokens are batch-withdrawn from the wallet by the owner."},"PasskeySessionSignerRevokedEmergency(bytes32,bytes32,bytes32)":{"notice":"Emitted when a passkey session signer is emergency-revoked by the owner."},"PasskeySessionSignerAuthorized(bytes32,bytes32,bytes32,uint256)":{"notice":"Emitted when a passkey session signer is authorized."}},"notice":"Minimal smart-contract wallet for deposit operations.","methods":{"id()":{"notice":"Returns the unique identifier assigned to this wallet at deployment."},"nonce()":{"notice":"Returns the wallet's current execution nonce."},"optIn()":{"notice":"Clears the wallet's beacon-upgrade pin, rejoining the upgrade cohort."},"owner()":{"notice":"Returns the current owner of the wallet."},"pause()":{"notice":"Pauses the wallet, recording the current timestamp."},"optOut()":{"notice":"Opts the wallet out of beacon upgrades, pinning it to the current default         implementation."},"paused()":{"notice":"Returns the timestamp at which the wallet was paused."},"factory()":{"notice":"Returns the factory contract that deployed this wallet."},"unpause()":{"notice":"Unpauses the wallet."},"pendingOwner()":{"notice":"Returns the pending owner awaiting handover completion."},"initialize(address)":{"notice":"Initializes the wallet with a designated owner."},"pendingOwnerNonce()":{"notice":"Returns the per-handover nonce embedded in the EIP-712 signature."},"walletInterfaceId()":{"notice":"Returns a stable magic identifying this contract as a `DepositWallet`."},"pendingOwnerDeadline()":{"notice":"Returns the deadline by which the pending owner must complete the handover."},"cancelOwnershipHandover()":{"notice":"Cancels any pending ownership handover."},"revokeSessionSigner(address)":{"notice":"Revokes a session signer's authorization."},"passkeySessionSigner(bytes32)":{"notice":"Returns a passkey session signer's public key and authorization expiry."},"isValidSignature(bytes32,bytes)":{"notice":"Validates a signature against the wallet owner or an authorized session signer."},"withdrawNative(address,uint256)":{"notice":"Withdraws native tokens from the wallet."},"completeOwnershipHandover(bytes)":{"notice":"Completes a pending ownership transfer."},"revokeAllowance(address,address)":{"notice":"Revokes an ERC-20 allowance by setting it to zero."},"transferOwnership(address,uint256)":{"notice":"Initiates a two-step ownership transfer to a new owner."},"revokePasskeySessionSigner(bytes32)":{"notice":"Revokes a passkey session signer's authorization."},"revokeApprovalForAll(address,address)":{"notice":"Revokes an ERC-1155 operator approval."},"revokeSessionSignerEmergency(address)":{"notice":"Emergency revocation of a session signer by the owner."},"sessionSignerAuthorizedUntil(address)":{"notice":"Returns the timestamp until which a session signer is authorized."},"withdrawERC20(address,address,uint256)":{"notice":"Withdraws ERC-20 tokens from the wallet."},"authorizeSessionSigner(address,uint256)":{"notice":"Authorizes a session signer until the specified timestamp."},"revokePasskeySessionSignerEmergency(bytes32)":{"notice":"Emergency revocation of a passkey session signer by the owner."},"withdrawERC1155(address,address,uint256[],uint256[])":{"notice":"Batch-withdraws ERC-1155 tokens from the wallet."},"authorizePasskeySessionSigner(bytes32,bytes32,uint256)":{"notice":"Authorizes a P-256 passkey as a session signer."},"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)":{"notice":"Executes a signed batch of calls through the factory."}},"version":1},"devdoc":{"kind":"dev","title":"DepositWallet","author":"Polymarket","errors":{"NotInitializing()":[{"details":"The contract is not initializing."}],"InvalidInitialization()":[{"details":"The contract is already initialized."}],"FnSelectorNotRecognized()":[{"details":"The function selector is not recognized."}],"MissingPrecompile(address)":[{"details":"A necessary precompile is missing."}]},"events":{"Paused(uint256)":{"params":{"timestamp":"The block timestamp at which the wallet was paused."}},"Unpaused(uint256)":{"params":{"timestamp":"The block timestamp at which the wallet was unpaused."}},"Initialized(uint64)":{"details":"Triggered when the contract has been initialized."},"BatchExecuted(uint256)":{"params":{"nonce":"The nonce of the executed batch."}},"SessionSignerRevoked(address)":{"params":{"sessionSigner":"The address of the revoked session signer."}},"AllowanceRevoked(address,address)":{"params":{"token":"The address of the ERC-20 token.","spender":"The address whose allowance was revoked."}},"NativeWithdrawal(address,uint256)":{"params":{"to":"The recipient address.","amount":"The amount of native tokens withdrawn."}},"OwnershipHandoverCanceled(address)":{"params":{"pendingOwner":"The address of the canceled pending owner."}},"OwnershipTransferred(address,address)":{"params":{"newOwner":"The address of the new owner.","oldOwner":"The address of the previous owner."}},"ApprovalForAllRevoked(address,address)":{"params":{"token":"The address of the ERC-1155 token.","operator":"The address whose approval was revoked."}},"Execution(address,uint256,bytes,bytes)":{"params":{"data":"The calldata sent to the target.","value":"The ETH value sent with the call.","result":"The return data from the call.","target":"The address called."}},"SessionSignerRevokedEmergency(address)":{"params":{"sessionSigner":"The address of the revoked session signer."}},"ERC20Withdrawal(address,address,uint256)":{"params":{"to":"The recipient address.","token":"The address of the ERC-20 token.","amount":"The amount of tokens withdrawn."}},"SessionSignerAuthorized(address,uint256)":{"params":{"validUntil":"The timestamp until which the session signer is valid.","sessionSigner":"The address of the authorized session signer."}},"OwnershipHandoverCompleted(address,address)":{"params":{"newOwner":"The address of the incoming owner.","previousOwner":"The address of the outgoing owner."}},"OwnershipHandoverRequested(address,uint256,uint256)":{"params":{"nonce":"The per-handover nonce embedded in the signed digest. Off-chain consumers              must use this value when producing the EIP-712 signature.","deadline":"The timestamp by which the pending owner must complete the handover.","pendingOwner":"The address of the proposed new owner."}},"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])":{"params":{"to":"The recipient address.","ids":"The token IDs withdrawn.","token":"The address of the ERC-1155 token.","amounts":"The amounts withdrawn for each token ID."}}},"details":"Deployed as an ERC-1967 beacon proxy via {DepositWalletFactory}. Supports batch execution      of arbitrary calls signed by the owner or an authorized session signer, ERC-1271      signature validation, two-step ownership transfers, and an owner-controlled pause      mechanism with a timelock for emergency asset recovery.","methods":{"id()":{"returns":{"_0":"The wallet ID decoded from the proxy's immutable args."}},"nonce()":{"returns":{"nonce_":"The current nonce."}},"optIn()":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed. Calls      {DepositWalletBeacon.optIn} from the wallet proxy's address; the beacon emits the      {OptedIn} event.      WARNING: opting in resubscribes the wallet to beacon-driven upgrades. After this      call:        - The wallet's next call delegates through whatever the beacon currently          publishes as `defaultImplementation()`, immediately, with no further owner          confirmation.        - Any future `beacon.upgradeTo(...)` likewise takes effect on this wallet from          the next call onward, on the timelock's schedule rather than the owner's.        - Before opting in the owner must understand what the current beacon          implementation does and verify that it is safe to adopt and will not break any          functionality this wallet depends on. This is especially important when the          pinned implementation is several upgrade versions behind the current default —          the wallet skips every intermediate version and lands directly on the latest,          so any storage, behavioral, or interface changes accumulated across those          versions take effect at once.      By calling this function the owner acknowledges the above and accepts the risk."},"owner()":{"returns":{"result":"The owner address."}},"pause()":{"details":"After pausing, the owner must wait for the timelock delay before calling      paused-only functions (e.g., withdrawals, revocations)."},"optOut()":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed. Calls      {DepositWalletBeacon.optOut} from the wallet proxy's address; the beacon emits the      {OptedOut} event.      WARNING: opting out is a security-bearing decision the wallet owner takes on their      own behalf. After this call:        - The wallet permanently follows the implementation that is current at opt-out          time, regardless of future beacon upgrades.        - Future security fixes, bug patches, and feature updates published via          `beacon.upgradeTo(...)` will NOT reach this wallet.        - If the pinned implementation is later found vulnerable, the wallet stays          vulnerable. The beacon owner cannot un-pin the wallet — only the wallet owner          can call {optIn} to rejoin the upgrade cohort.        - The pause-based exit hatch (`pause` → wait → `withdrawERC20` / etc.) keeps          working as long as the pinned implementation provides those functions.      By calling this function the owner acknowledges the above and accepts the risk."},"paused()":{"returns":{"paused_":"The paused timestamp, or zero if not paused."}},"factory()":{"returns":{"_0":"The factory address decoded from the proxy's immutable args."}},"unpause()":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"constructor":{"details":"Disables initializers on the implementation contract to prevent misuse."},"eip712Domain()":{"details":"See: https://eips.ethereum.org/EIPS/eip-5267"},"pendingOwner()":{"returns":{"result":"The pending owner address, or `address(0)` if none."}},"initialize(address)":{"params":{"_owner":"The address to set as the wallet owner."},"details":"This replaces the constructor for upgradeable contracts."},"pendingOwnerNonce()":{"returns":{"result":"The current handover nonce."}},"walletInterfaceId()":{"details":"Probed by {DepositWalletBeacon} on every implementation install.","returns":{"_0":"The wallet identity magic."}},"pendingOwnerDeadline()":{"returns":{"result":"The acceptance-deadline timestamp, or zero if no handover is pending."}},"cancelOwnershipHandover()":{"details":"Can only be invoked via batch execution (self-call)."},"revokeSessionSigner(address)":{"params":{"_sessionSigner":"The session signer address to revoke."},"details":"Can only be invoked via batch execution (self-call)."},"isValidSignature(bytes32,bytes)":{"params":{"_hash":"The hash that was signed.","_signature":"The signature to validate (may contain a session signer wrapper)."},"details":"Overrides Solady's ERC-1271 implementation to support session signer signatures.      The resolved signer is stored in memory at `_ERC1271_SIGNER_MEM_SLOT` so that      `_erc1271Signer` can return it to the parent verification logic.","returns":{"result":"`ERC1271_MAGIC_VALUE` if the signature is valid, otherwise reverts or returns `ERC1271_INVALID_VALUE`."}},"withdrawNative(address,uint256)":{"params":{"_to":"The recipient address.","_amount":"The amount of native tokens to withdraw."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"completeOwnershipHandover(bytes)":{"params":{"_signature":"The EIP-712 signature from the pending owner."},"details":"Permissionless — anyone may submit, but the pending owner must have signed an      EIP-712 `OwnershipHandover(newOwner, nonce)` message using the current      {pendingOwnerNonce}, and the on-chain {pendingOwnerDeadline} must not have elapsed."},"revokeAllowance(address,address)":{"params":{"_token":"The ERC-20 token address.","_spender":"The spender whose allowance is revoked."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"transferOwnership(address,uint256)":{"params":{"_deadline":"The timestamp by which the pending owner must complete the handover.","_newOwner":"The proposed new owner, distinct from the current owner and this wallet."},"details":"Can only be invoked via batch execution (self-call). Records the on-chain deadline      by which the pending owner must complete the handover and bumps the per-handover      nonce, invalidating any previously issued handover signature."},"revokeApprovalForAll(address,address)":{"params":{"_token":"The ERC-1155 token address.","_operator":"The operator whose approval is revoked."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"revokeSessionSignerEmergency(address)":{"params":{"_sessionSigner":"The session signer to revoke."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"sessionSignerAuthorizedUntil(address)":{"params":{"_signer":"The session signer address to query."},"returns":{"validUntil_":"The authorization expiry timestamp, or zero if not authorized."}},"withdrawERC20(address,address,uint256)":{"params":{"_to":"The recipient address.","_token":"The ERC-20 token address.","_amount":"The amount of tokens to withdraw."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"authorizeSessionSigner(address,uint256)":{"params":{"_validUntil":"The timestamp until which the session signer is valid.","_sessionSigner":"The address to authorize as a session signer."},"details":"Can only be invoked via batch execution (self-call)."},"withdrawERC1155(address,address,uint256[],uint256[])":{"params":{"_to":"The recipient address.","_ids":"The token IDs to withdraw.","_token":"The ERC-1155 token address.","_amounts":"The amounts for each token ID."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)":{"params":{"_batch":"The batch containing the target wallet, nonce, deadline, and calls.","_signature":"The EIP-712 signature authorizing the batch (owner or session signer)."},"details":"Validates the batch (non-empty, correct wallet, nonce, deadline), verifies the EIP-712      signature against the owner or an authorized session signer, then executes each call      sequentially. Session signers are prevented from calling the wallet itself."}},"version":1,"stateVariables":{"_NONCE_SLOT":{"details":"Storage slot for the replay-protection nonce. keccak256(\"DepositWallet.nonce\") - 1"},"_PAUSED_SLOT":{"details":"Storage slot for the paused timestamp. keccak256(\"DepositWallet.paused\") - 1"},"_ERC1967_BEACON_SLOT":{"details":"ERC-1967 beacon slot. `0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50`. Populated on the proxy at deploy time by {LibClone.deployDeterministicERC1967BeaconProxy}; remains      empty for legacy UUPS proxies migrated through {BeaconForwarder}."},"_SESSION_SIGNER_SLOT":{"details":"Base storage slot for the session signer mapping. keccak256(\"DepositWallet.sessionSignerAuthorizedUntil\") - 1"},"_WALLET_INTERFACE_ID":{"details":"Identity magic returned by {walletInterfaceId} and probed by {DepositWalletBeacon}      when installing a new implementation. Stable; not bumped per release."},"_IMMUTABLE_ARGS_LENGTH":{"details":"Byte length of the `(address factory, bytes32 id)` immutable args appended to the proxy bytecode."},"_ERC1271_SIGNER_MEM_SLOT":{"details":"Scratch memory used to pass resolved signer data through Solady's ERC-1271 flow."},"_ERC1967_IMPLEMENTATION_SLOT":{"details":"ERC-1967 implementation slot. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`. Empty on native beacon proxies; points at the {BeaconForwarder} on legacy UUPS proxies      migrated through the adapter."},"_PASSKEY_SESSION_SIGNER_SLOT":{"details":"Base storage slot for passkey session signer records. keccak256(\"DepositWallet.passkeySessionSigner\") - 1"}}},"storageLayout":{"types":null,"storage":[]},"transientStorageLayout":{"types":null,"storage":[]},"evm":{"bytecode":{"object":"610120604052348015610010575f5ffd5b50306080524660a05260608061005e604080518082018252600d81526c11195c1bdcda5d15d85b1b195d609a1b602080830191909152825180840190935260018352603160f81b9083015291565b815160209283012081519183019190912060c082905260e0819052604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8152938401929092529082015246606082015230608082015260a0902061010052506100ca90506100cf565b610134565b63409feecd19805460018116156100ed5763f92ee8a95f526004601cfd5b6001600160401b03808260011c1461012f578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60805160a05160c05160e0516101005161517a6101715f395f6130a501525f61315f01525f61313901525f6130e901525f6130c6015261517a5ff3fe608060405260043610610201575f3560e01c80638dc2c6891161011c578063d0f31620116100af578063e1f93ac51161007e578063e63f952f11610063578063e63f952f146105f5578063e8c8bf6414610614578063e9e371361461063357610208565b8063e1f93ac5146105c2578063e30c3978146105e157610208565b8063d0f3162014610536578063d4eec5a614610555578063d7fa476f14610569578063d8cb0d66146105a357610208565b8063affed0e0116100eb578063affed0e0146104d0578063b9ac71d6146104e4578063c45a015514610503578063c4d66de81461051757610208565b80638dc2c6891461044c578063a338d2171461046b578063adc8693e1461048a578063af640d0f146104bc57610208565b80635b48684e116101945780637ae26773116101635780637ae26773146103b95780638456cb59146103d857806384b0196e146103ec5780638da5cb5b1461041357610208565b80635b48684e1461035b5780635c975abb1461036f578063745ba8061461039157806376d0e490146103a557610208565b80632a45cacf116101d05780632a45cacf146102f55780633f4ba83a1461031457806344004cc11461032857806354d1f13d1461034757610208565b806307b18bde146102415780630a276680146102625780631626ba7e1461028157806324017fae146102d657610208565b3661020857005b5f3560e01c63bc197c81811463f23a6e6182141763150b7a028214171561023357806020526020603cf35b50633c10b94e5f526004601cfd5b34801561024c575f5ffd5b5061026061025b36600461441c565b610654565b005b34801561026d575f5ffd5b5061026061027c36600461441c565b6107cb565b34801561028c575f5ffd5b506102a061029b366004614484565b610812565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b3480156102e1575f5ffd5b506102606102f036600461441c565b6109a6565b348015610300575f5ffd5b5061026061030f3660046144cc565b610ac3565b34801561031f575f5ffd5b50610260610c90565b348015610333575f5ffd5b50610260610342366004614503565b610dfb565b348015610352575f5ffd5b50610260610f8b565b348015610366575f5ffd5b50610260610fcc565b34801561037a575f5ffd5b50610383611133565b6040519081526020016102cd565b34801561039c575f5ffd5b50610383611167565b3480156103b0575f5ffd5b50610383611175565b3480156103c4575f5ffd5b506102606103d33660046144cc565b61117e565b3480156103e3575f5ffd5b50610260611300565b3480156103f7575f5ffd5b50610400611371565b6040516102cd979695949392919061458d565b34801561041e575f5ffd5b50610427611419565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102cd565b348015610457575f5ffd5b5061026061046636600461464c565b611422565b348015610476575f5ffd5b50610260610485366004614663565b6114b0565b348015610495575f5ffd5b507f4bc04a483367e3b8d2c7dac8d60b56e696d24ef97f345830002d363ea50a2298610383565b3480156104c7575f5ffd5b506103836114ba565b3480156104db575f5ffd5b506103836114c4565b3480156104ef575f5ffd5b506103836104fe3660046146a2565b6114f1565b34801561050e575f5ffd5b5061042761152f565b348015610522575f5ffd5b506102606105313660046146a2565b611540565b348015610541575f5ffd5b5061026061055036600461464c565b6115d3565b348015610560575f5ffd5b50610260611734565b348015610574575f5ffd5b5061058861058336600461464c565b611882565b604080519384526020840192909252908201526060016102cd565b3480156105ae575f5ffd5b506102606105bd3660046146fe565b6118d5565b3480156105cd575f5ffd5b506102606105dc366004614792565b611ad4565b3480156105ec575f5ffd5b50610427611c0e565b348015610600575f5ffd5b5061026061060f3660046146a2565b611c17565b34801561061f575f5ffd5b5061026061062e3660046147bb565b611c9d565b34801561063e575f5ffd5b5061026061064d3660046146a2565b612357565b565b5f61065d611133565b9050805f03610698576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106a061152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106e8573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061070c919061480f565b6107169082614853565b421161074e576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107566124a7565b61077673ffffffffffffffffffffffffffffffffffffffff841683612513565b8273ffffffffffffffffffffffffffffffffffffffff167f2c876ecb97b3c6854f2488d373403f903eacb800e51c159a5c0c7a9c857e4827836040516107be91815260200190565b60405180910390a2505050565b333014610804576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61080e828261252c565b5050565b5f5f5f5f6108208686612682565b919450925090505f808080600187600281111561083f5761083f614866565b036108535761084c611419565b9350610967565b600287600281111561086757610867614866565b148015610872575084155b156108be57859350610883846114f1565b42106108b957507fffffffff00000000000000000000000000000000000000000000000000000000965061099f95505050505050565b610967565b60028760028111156108d2576108d2614866565b1480156108df5750600185145b15610937575f6108ee87611882565b9195509350905042811161092d57507fffffffff00000000000000000000000000000000000000000000000000000000975061099f9650505050505050565b6001915050610967565b507fffffffff00000000000000000000000000000000000000000000000000000000965061099f95505050505050565b836080528060a0528260c0528160e052610100604051101561098a576101006040525b6109958b8b8b6128a4565b9750505050505050505b9392505050565b3330146109df576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216610a2c576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b428111610a65576040517f488b16b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a6f828261290a565b8173ffffffffffffffffffffffffffffffffffffffff167fcacba9f642804cfed98e2bb1d1c05bc4c78b35a209cdffdb4674b3363bafd92b82604051610ab791815260200190565b60405180910390a25050565b5f610acc611133565b9050805f03610b07576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b0f61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b57573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b7b919061480f565b610b859082614853565b4211610bbd576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bc56124a7565b6040517fa22cb46500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301525f602483015284169063a22cb465906044015f604051808303815f87803b158015610c31575f5ffd5b505af1158015610c43573d5f5f3e3d5ffd5b505060405173ffffffffffffffffffffffffffffffffffffffff8086169350861691507ff9dfa223fca66e1e19e96ad420898db0b0ada933c1d0c0953b3d5a44176f495c905f90a3505050565b5f610c99611133565b9050805f03610cd4576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cdc61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d24573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d48919061480f565b610d529082614853565b4211610d8a576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d926124a7565b5f610dbe60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b5f81556040514281529091507f9dd715fed52c25e642f97653bb4c4339ad98fe6d6e130348be82ae5d86383a8c9060200160405180910390a15050565b5f610e04611133565b9050805f03610e3f576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e4761152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e8f573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610eb3919061480f565b610ebd9082614853565b4211610ef5576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610efd6124a7565b610f1e73ffffffffffffffffffffffffffffffffffffffff85168484612946565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f2fbb3e8dc2807d6a61feb98fc2120153f77b2c0d25ef6272e1756935dd62c84784604051610f7d91815260200190565b60405180910390a350505050565b333014610fc4576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610652612999565b5f610fd5611133565b9050805f03611010576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61101861152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611060573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611084919061480f565b61108e9082614853565b42116110c6576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110ce6124a7565b6110d6612a46565b73ffffffffffffffffffffffffffffffffffffffff16635b48684e6040518163ffffffff1660e01b81526004015f604051808303815f87803b15801561111a575f5ffd5b505af115801561112c573d5f5f3e3d5ffd5b5050505050565b5f8061116060017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b5492915050565b5f611170612b93565b905090565b5f611170612bc0565b5f611187611133565b9050805f036111c2576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111ca61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611212573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611236919061480f565b6112409082614853565b4211611278576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112806124a7565b6112a173ffffffffffffffffffffffffffffffffffffffff8416835f612bed565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8da578e4cb2672c4986388e504a6f639391986195c077e5db9f48e04c97a501b60405160405180910390a3505050565b6113086124a7565b5f61133460017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b428082556040519081529091507f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e9060200160405180910390a150565b7f0f000000000000000000000000000000000000000000000000000000000000006060805f808083611407604080518082018252600d81527f4465706f73697457616c6c6574000000000000000000000000000000000000006020808301919091528251808401909352600183527f31000000000000000000000000000000000000000000000000000000000000009083015291565b97989097965046955030945091925090565b5f611170612c36565b33301461145b576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5f61146683611882565b509092509050611478835f8080612c63565b604080518381526020810183905284917f415ca13a1f0f66d402c248f2677c40f1ec4794c656c96f71569a09831c99fb1e91016107be565b61080e8282612caa565b5f5f61099f612e95565b5f8061116060017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6614893565b5f8061151e60017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db614893565b5f9384526020525050604090205490565b5f5f611539612e95565b5092915050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156115915760018160011c14303b106115885763f92ee8a95f526004601cfd5b818160ff1b1b91505b5061159b82612f03565b801561080e576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15050565b5f6115dc611133565b9050805f03611617576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61161f61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611667573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061168b919061480f565b6116959082614853565b42116116cd576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6116d56124a7565b5f5f6116e084611882565b5090925090506116f2845f8080612c63565b604080518381526020810183905285917fad3961171307ef42f17267087f5444061f871d6b814636723504b96f1f0d36bd91015b60405180910390a250505050565b5f61173d611133565b9050805f03611778576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61178061152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117ec919061480f565b6117f69082614853565b421161182e576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118366124a7565b61183e612a46565b73ffffffffffffffffffffffffffffffffffffffff1663d4eec5a66040518163ffffffff1660e01b81526004015f604051808303815f87803b15801561111a575f5ffd5b5f8080806118b160017f3aeceb64e5bf1bc571c0f9d844588aca01e747977eb627cfe37418f8e321be26614893565b5f958652602052505060409092208054600182015460029092015490949193509150565b5f6118de611133565b9050805f03611919576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61192161152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611969573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061198d919061480f565b6119979082614853565b42116119cf576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119d76124a7565b6040517f2eb2c2d600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff881690632eb2c2d690611a339030908a908a908a908a908a906004016148ef565b5f604051808303815f87803b158015611a4a575f5ffd5b505af1158015611a5c573d5f5f3e3d5ffd5b505050508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fb790ced15183f79ade456fb39c4fc443005b36f92a7318ef6e0e9f18dc05b04087878787604051611ac3949392919061496b565b60405180910390a350505050505050565b333014611b0d576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611b178383612fc8565b83839091611b5f576040517f304d0228000000000000000000000000000000000000000000000000000000008152600481019290925260248201526044015b60405180910390fd5b5050428111611b9a576040517f488b16b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051602080820186905281830185905282518083038401815260609092019092528051910120611bce81858585612c63565b604080518581526020810185905290810183905281907fd5becded5e17b1418ca2798bb03d5ad44e2dbe712bc69040381f1cc3efffbd5390606001611726565b5f611170612fdc565b333014611c50576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c5a815f61290a565b60405173ffffffffffffffffffffffffffffffffffffffff8216907feac85989fadc30dfe2712c2308dcfecb3f9af1d15422056fc5a98ed1b49ca209905f90a250565b611ca561152f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d09576040517f0c6d42ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611d176060850185614991565b905011611d50576040517fc2e5347d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b30611d5e60208501856146a2565b73ffffffffffffffffffffffffffffffffffffffff1614611dab576040517f23455ba100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80611dd860017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6614893565b80546001810182559250905060208501358214611e21576040517f756688fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8460400135421115611e5f576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611e71611e6c87614b70565b613009565b90505f611e7d826130a3565b90507f1626ba7e00000000000000000000000000000000000000000000000000000000611eab828888610812565b7fffffffff000000000000000000000000000000000000000000000000000000001614611f04576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611f0f87876131b9565b90505f81611f1d575f611f25565b611f25612a46565b90505f5b611f3660608b018b614991565b905081101561232157821580611f9e575030611f5560608c018c614991565b83818110611f6557611f65614ce2565b9050602002810190611f779190614d0f565b611f859060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff1614155b611fd4576040517fde4e67c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b821580612049575073ffffffffffffffffffffffffffffffffffffffff821661200060608c018c614991565b8381811061201057612010614ce2565b90506020028101906120229190614d0f565b6120309060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff1614155b61207f576040517f63adb1da00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8061208e60608d018d614991565b8481811061209e5761209e614ce2565b90506020028101906120b09190614d0f565b6120be9060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff166120e160608e018e614991565b858181106120f1576120f1614ce2565b90506020028101906121039190614d0f565b6020013561211460608f018f614991565b8681811061212457612124614ce2565b90506020028101906121369190614d0f565b612144906040810190614d4b565b604051612152929190614dac565b5f6040518083038185875af1925050503d805f811461218c576040519150601f19603f3d011682016040523d82523d5f602084013e612191565b606091505b50909250905081836121a660608f018f614991565b868181106121b6576121b6614ce2565b90506020028101906121c89190614d0f565b6121d69060208101906146a2565b83909192612213576040517fb09725d2000000000000000000000000000000000000000000000000000000008152600401611b5693929190614dbb565b5061222491505060608d018d614991565b8481811061223457612234614ce2565b90506020028101906122469190614d0f565b6122549060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff167ffde9c64d8b0b21fe439285c271603188269ad7c561364f724d48e9846120d7b661229860608f018f614991565b868181106122a8576122a8614ce2565b90506020028101906122ba9190614d0f565b602001358e80606001906122ce9190614991565b878181106122de576122de614ce2565b90506020028101906122f09190614d0f565b6122fe906040810190614d4b565b8560405161230f9493929190614e36565b60405180910390a25050600101611f29565b60405187907fe9cc9bbe7de1cbb097a6357ca3182909488efe8d793e25665befc064a02d10a7905f90a250505050505050505050565b5f612360611133565b9050805f0361239b576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123a361152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156123eb573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061240f919061480f565b6124199082614853565b4211612451576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124596124a7565b612463825f61290a565b60405173ffffffffffffffffffffffffffffffffffffffff8316907f61be9e006b8f5c6e0e05905bb6a35efabbb3343c37d33552f634bd1d20f64141905f90a25050565b6124af611419565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610652576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f385f3884865af161080e5763b12d13eb5f526004601cfd5b73ffffffffffffffffffffffffffffffffffffffff8216158015906125845750612554611419565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156125a6575073ffffffffffffffffffffffffffffffffffffffff82163014155b6125dc576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80421115612616576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61261f826131e8565b6126288161321b565b5f612631613247565b604080518481526020810183905291925073ffffffffffffffffffffffffffffffffffffffff8516917f34280f73a4dfa646661714dfe2e00bc6df3de0581f552bd4420061f686d28bea91016107be565b5f8080602084101561269c5750600191505f90508061289d565b8484017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001357f6492649264926492649264926492649264926492649264926492649264926492145f80826126fe5750600194505f935083925061289d915050565b60a087101561271957505f945084935083925061289d915050565b505060408601356060808801359088359060208a013590841415806127675750612764601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff614893565b83115b1561278057505f965086955085945061289d9350505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe06127ad85601f614853565b1690506127db60a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff614893565b8111156127f757505f975087965086955061289d945050505050565b6128028160a0614853565b8a1461281d57505f975087965086955061289d945050505050565b816128665760a083901c158015612849575073ffffffffffffffffffffffffffffffffffffffff831615155b15612861575060029750909550935061289d92505050565b61288d565b60018214801561287557508215155b1561288d575060029750909550935061289d92505050565b505f975087965086955050505050505b9250925092565b5f816128e15761773961ffff8319040284036128e157507f773900010000000000000000000000000000000000000000000000000000000061099f565b5f6128f5856128f08686613283565b6132d1565b155f03631626ba7e1760e01b95945050505050565b5f61293660017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db614893565b5f93845260205250604090912055565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f51141661298f57803d853b15171061298f576390b8ec185f526004601cfd5b505f603452505050565b5f6129a2611c0e565b905073ffffffffffffffffffffffffffffffffffffffff81166129f1576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129fa5f6131e8565b612a035f61321b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92905f90a250565b5f8080612a7460017fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d51614893565b80549250905073ffffffffffffffffffffffffffffffffffffffff821615612a9c5750919050565b5f80612ac960017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd614893565b80549250905073ffffffffffffffffffffffffffffffffffffffff82163b612b1d576040517fe6e1262b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166349493a4d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b66573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b8a9190614e61565b94505050505090565b5f8061116060017fa250db4cdd0e79ff2dcd111477627e89b67cf8b26f7530ac9c97168fe892adcf614893565b5f8061116060017f83e56f89581bfd0d900ad9e7f5ffe08b050af9835151520198ecf6256538e8cb614893565b81601452806034526f095ea7b30000000000000000000000005f5260205f604460105f875af18060015f51141661298f57803d853b15171061298f57633e3f8f735f526004601cfd5b5f8061116060017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b5f612c8f60017f3aeceb64e5bf1bc571c0f9d844588aca01e747977eb627cfe37418f8e321be26614893565b5f958652602052506040909320918255600182015560020155565b5f612cb3611c0e565b905073ffffffffffffffffffffffffffffffffffffffff8116612d02576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612d0a611175565b421115612d43576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f9f22c1bf28d77bcb7ce8f5213eb18f0ddc1a5e8bd395eb34854777f52990c51782612d6e611167565b604051602001612da79392919092835273ffffffffffffffffffffffffffffffffffffffff919091166020830152604082015260600190565b6040516020818303038152906040528051906020012090505f612dc9826130a3565b9050612dd783828787613307565b612e0d576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612e16611419565b9050612e215f6131e8565b612e2a5f61321b565b612e33846134aa565b8373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f38bafbf020d44b4ca47fda166836e6a0e0a15a9d6fec166834c0125e193830ff60405160405180910390a3505050505050565b604080518181526060810182525f91829182916020820181803683370190505090503060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0823b0160208401833c81806020019051810190612ef89190614e7c565b909590945092505050565b73ffffffffffffffffffffffffffffffffffffffff8116612f50576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612f7c60017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b82815560405190915073ffffffffffffffffffffffffffffffffffffffff8316905f907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35050565b5f612fd38383613531565b90505b92915050565b5f8061116060017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770614893565b5f6040518060a00160405280606e81526020016150d7606e913980519060200120825f01518360200151846040015161304586606001516135b6565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff909416938501939093526060840191909152608083015260a082015260c0015b604051602081830303815290604052805190602001209050919050565b7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000030147f00000000000000000000000000000000000000000000000000000000000000004614166131965750604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527f000000000000000000000000000000000000000000000000000000000000000060208201527f00000000000000000000000000000000000000000000000000000000000000009181019190915246606082015230608082015260a090205b6719010000000000005f5280601a5281603a52604260182090505f603a52919050565b5f5f6131c58484612682565b50909150600290508160028111156131df576131df614866565b14949350505050565b5f61321460017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770614893565b9190915550565b5f61321460017f83e56f89581bfd0d900ad9e7f5ffe08b050af9835151520198ecf6256538e8cb614893565b5f8061327460017fa250db4cdd0e79ff2dcd111477627e89b67cf8b26f7530ac9c97168fe892adcf614893565b80546001019081905592915050565b818161649261ffff30801c1904028183017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00135036132ca57506040810135016020810190355b9250929050565b5f6132dd848484613680565b806132ee57506132ee848484613699565b806132ff57506132ff848484613911565b949350505050565b5f73ffffffffffffffffffffffffffffffffffffffff851661332a57505f6132ff565b60408214806133395750604182145b15613383578473ffffffffffffffffffffffffffffffffffffffff1661336085858561397c565b73ffffffffffffffffffffffffffffffffffffffff1603613383575060016132ff565b73ffffffffffffffffffffffffffffffffffffffff85163014806133bc575073ffffffffffffffffffffffffffffffffffffffff85163b155b156133c857505f6132ff565b5f8484846040516024016133de93929190614ea8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f1626ba7e0000000000000000000000000000000000000000000000000000000017815282519293505f928392918391908b5afa5f513d6020149091169250905081801561349e57507f1626ba7e0000000000000000000000000000000000000000000000000000000081145b98975050505050505050565b5f6134b3611419565b90505f6134e160017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b83815560405190915073ffffffffffffffffffffffffffffffffffffffff80851691908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f7fffffffff00000001000000000000000000000000ffffffffffffffffffffffff80838409817f5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b8387857fffffffff00000001000000000000000000000000fffffffffffffffffffffffc878b8c0908090894821191909310169190921416919050565b5f5f825167ffffffffffffffff8111156135d2576135d26149f5565b6040519080825280602002602001820160405280156135fb578160200160208202803683370190505b5090505f5b83518110156136505761362b84828151811061361e5761361e614ce2565b6020026020010151613a10565b82828151811061363d5761363d614ce2565b6020908102919091010152600101613600565b50806040516020016136629190614ec1565b60405160208183030381529060405280519060200120915050919050565b5f613689613a81565b1561099f576132ff848484613abd565b5f308015613705575f5f5f5f5f6136ae611371565b5060408051865160209788012081830152855195909601949094206060860152608085019290925273ffffffffffffffffffffffffffffffffffffffff1660a084015260c083015260e08201905296505050505050505b6040516002840385013560f01c8060420180860387016119015f52604081602037821582881017896042601e20181715613770575f94507f983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de85528860205260408520985050506138e8565b7f5479706564446174615369676e280000000000000000000000000000000000008452600e84018360408301823760288185019081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01515f1a602914613808575f6001858301035b6001820191506029828203515f1a14868310116137da57508085039450808560408501018337602881830153505b6f07fffffe00000000000001000000000081515f1a1c5b602882515f1a1461384557806512010000000183515f1a1c17905060018201915061381f565b7f20636f6e74656e74732c737472696e67206e616d652c737472696e670000000082527f2076657273696f6e2c75696e7432353620636861696e49642c61646472657373601c8301527f20766572696679696e67436f6e74726163742c627974657333322073616c7429603c830152605c820191508460408401833760408388379084018590038520865260e08620604052600116604201601e20985050909403935b50604052806138fd576138fa856130a3565b94505b613908858585613abd565b95945050505050565b5f3a61099f573a3a526d378edcd5b5b0a24f5342d8c1048560203a3a388461fffffa503a5161397057604051631626ba7e3a528160205260408052454561ffff0117805a10838814171561396157fe5b3a3a6064601c3085fa50506040525b506132ff848484613abd565b5f604051826040811461399757604181146139d75750613a08565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff166060526139e8565b60408501355f1a6020526040856040375b50845f526020604060805f60015afa505f6060523d606018519150806040525b509392505050565b805160208083015160408085015180519084012081517f84fa2cf05cd88e992eae77e851af68a4ee278dcff6ef504e487a55b3baadfbe59481019490945273ffffffffffffffffffffffffffffffffffffffff90941690830152606082015260808101919091525f9060a001613086565b5f613a8a61152f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b60a05160c05160e0515f9291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301613b0857613afe8783838989613b27565b935050505061099f565b613b1c613b1460805190565b888888613307565b979650505050505050565b5f5f36613b348585613b77565b9150915081801561349e575061349e88604051602001613b5691815260200190565b60405160208183030381529060405282613b6f90614ef6565b89895f613c73565b5f8260c0831015613b8a575f91506132ca565b5f613b988460808188614f8c565b613ba191614fb3565b90505f613bb18560a08189614f8c565b613bba91614fb3565b905081613bc8602087614893565b1080613bdd575080613bdb602087614893565b105b15613bec575f935050506132ca565b5f613bf98684818a614f8c565b613c0291614fb3565b90505f613c118784818b614f8c565b613c1a91614fb3565b9050816020613c29868a614893565b613c339190614893565b1080613c535750806020613c47858a614893565b613c519190614893565b105b15613c64575f9550505050506132ca565b60019550505050509250929050565b5f6024856080015151118015613ceb5750613ceb8560a0015186606001518181016020015191516014909101107fffffffffffffffffffffffffffffffffffffffffff0000000000000000000000919091167f2274797065223a22776562617574686e2e676574220000000000000000000000141690565b8015613d055750613d058560a00151866040015188613ef8565b8015613d535750613d538560800151602081518110613d2657613d26614ce2565b01602001517f01000000000000000000000000000000000000000000000000000000000000009081161490565b8015613da95750811580613da95750613da98560800151602081518110613d7c57613d7c614ce2565b01602001517f04000000000000000000000000000000000000000000000000000000000000009081161490565b8015613df65750613df68560800151602081518110613dca57613dca614ce2565b01602001517fff0000000000000000000000000000000000000000000000000000000000000016613f46565b8015613eee5750613eee6002866080015160028860a00151604051613e1b9190615006565b602060405180830381855afa158015613e36573d5f5f3e3d5ffd5b5050506040513d601f19601f82011682018060405250810190613e59919061480f565b604051602001613e6a929190615011565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052613ea291615006565b602060405180830381855afa158015613ebd573d5f5f3e3d5ffd5b5050506040513d601f19601f82011682018060405250810190613ee0919061480f565b865160208801518787613f99565b9695505050505050565b5f5f613f0383613ff1565b604051602001613f139190615029565b60405160208183030381529060405290505f613f3a8686613f35888651613ffe565b614035565b9050613eee81836140b6565b5f7f08000000000000000000000000000000000000000000000000000000000000008281161480612fd65750507f1000000000000000000000000000000000000000000000000000000000000000161590565b5f5f5f613fa988888888886140c1565b915091508015613fbb57509050613908565b6040517f42b01bce0000000000000000000000000000000000000000000000000000000081526101006004820152602401611b56565b6060612fd682600161419c565b5f828201838110159081027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808218830218613908565b606061404282855161431b565b915061404e838361431b565b92505f61405b8484614893565b67ffffffffffffffff811115614073576140736149f5565b6040519080825280601f01601f19166020018201604052801561409d576020820181803683370190505b509050838303846020870101602083015e949350505050565b5f612fd3838361432a565b5f5f6140cd868661434e565b15806140e057506140de8484613531565b155b156140f057505f90506001614192565b6140fd87878787876143b8565b1561410d57506001905080614192565b61417c7fbb5a52f42f9c9261ed4361f59422a1e30036e7c32b270c8807a419feca605023600560017fa71af64de5126a4a4e02b7922d66ce9415ce88a4c9d25514d91082c8725ac9577f5d47723c8fbe580bb369fec9c2665d8e30a435b9932645482e7c9f11e872296b6143b8565b1561418c57505f90506001614192565b505f9050805b9550959350505050565b606082515f036141ba575060408051602081019091525f8152612fd6565b5f826141ea576003845160026141d09190614853565b6141da9190615087565b6141e59060046150bf565b61420f565b6003845160046141fa91906150bf565b614205906002614853565b61420f9190615087565b905060405191507f4142434445464748494a4b4c4d4e4f505152535455565758595a616263646566601f5261067083027f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f18603f526020820181810185865187016020810180515f82525b828410156142cd576003840193508351603f8160121c16518753600187019650603f81600c1c16518753600187019650603f8160061c16518753600187019650603f81165187535060018601955061427a565b90525085905061430e576003865106600181146142f157600281146143045761430c565b603d6001840353603d600284035361430c565b603d60018403535b505b9183525060405292915050565b5f828218828410028218612fd3565b5f81518351148015612fd35750508051602091820120825192909101919091201490565b5f821580159061437d57507fffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc63255183105b801561438857508115155b8015612fd35750507f7fffffff800000007fffffffffffffffde737d56d38bcf4279dce5617e3192a81015919050565b5f6040518681528560208201528460408201528360608201528260808201525f5f5260205f60a0836101005afa6143eb57fe5b50505f5195945050505050565b73ffffffffffffffffffffffffffffffffffffffff81168114614419575f5ffd5b50565b5f5f6040838503121561442d575f5ffd5b8235614438816143f8565b946020939093013593505050565b5f5f83601f840112614456575f5ffd5b50813567ffffffffffffffff81111561446d575f5ffd5b6020830191508360208285010111156132ca575f5ffd5b5f5f5f60408486031215614496575f5ffd5b83359250602084013567ffffffffffffffff8111156144b3575f5ffd5b6144bf86828701614446565b9497909650939450505050565b5f5f604083850312156144dd575f5ffd5b82356144e8816143f8565b915060208301356144f8816143f8565b809150509250929050565b5f5f5f60608486031215614515575f5ffd5b8335614520816143f8565b92506020840135614530816143f8565b929592945050506040919091013590565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f6145c760e0830189614541565b82810360408401526145d98189614541565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b8181101561463b57835183526020938401939092019160010161461d565b50909b9a5050505050505050505050565b5f6020828403121561465c575f5ffd5b5035919050565b5f5f60208385031215614674575f5ffd5b823567ffffffffffffffff81111561468a575f5ffd5b61469685828601614446565b90969095509350505050565b5f602082840312156146b2575f5ffd5b813561099f816143f8565b5f5f83601f8401126146cd575f5ffd5b50813567ffffffffffffffff8111156146e4575f5ffd5b6020830191508360208260051b85010111156132ca575f5ffd5b5f5f5f5f5f5f60808789031215614713575f5ffd5b863561471e816143f8565b9550602087013561472e816143f8565b9450604087013567ffffffffffffffff811115614749575f5ffd5b61475589828a016146bd565b909550935050606087013567ffffffffffffffff811115614774575f5ffd5b61478089828a016146bd565b979a9699509497509295939492505050565b5f5f5f606084860312156147a4575f5ffd5b505081359360208301359350604090920135919050565b5f5f5f604084860312156147cd575f5ffd5b833567ffffffffffffffff8111156147e3575f5ffd5b8401608081870312156147f4575f5ffd5b9250602084013567ffffffffffffffff8111156144b3575f5ffd5b5f6020828403121561481f575f5ffd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115612fd657612fd6614826565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b81810381811115612fd657612fd6614826565b8183525f7f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156148d6575f5ffd5b8260051b80836020870137939093016020019392505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a060408201525f61493a60a0830186886148a6565b828103606084015261494d8185876148a6565b83810360809094019390935250505f81526020019695505050505050565b604081525f61497e6040830186886148a6565b8281036020840152613b1c8185876148a6565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126149c4575f5ffd5b83018035915067ffffffffffffffff8211156149de575f5ffd5b6020019150600581901b36038213156132ca575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff81118282101715614a4557614a456149f5565b60405290565b6040516060810167ffffffffffffffff81118282101715614a4557614a456149f5565b60405160c0810167ffffffffffffffff81118282101715614a4557614a456149f5565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614ad857614ad86149f5565b604052919050565b5f82601f830112614aef575f5ffd5b8135602083015f5f67ffffffffffffffff841115614b0f57614b0f6149f5565b50601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016602001614b4281614a91565b915050828152858383011115614b56575f5ffd5b828260208301375f92810160200192909252509392505050565b5f60808236031215614b80575f5ffd5b614b88614a22565b8235614b93816143f8565b81526020838101359082015260408084013590820152606083013567ffffffffffffffff811115614bc2575f5ffd5b830136601f820112614bd2575f5ffd5b803567ffffffffffffffff811115614bec57614bec6149f5565b8060051b614bfc60208201614a91565b91825260208184018101929081019036841115614c17575f5ffd5b6020850192505b83831015614cd257823567ffffffffffffffff811115614c3c575f5ffd5b85016060368290037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0011215614c70575f5ffd5b614c78614a4b565b6020820135614c86816143f8565b815260408201356020820152606082013567ffffffffffffffff811115614cab575f5ffd5b614cba36602083860101614ae0565b60408301525083525060209283019290910190614c1e565b6060860152509295945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa1833603018112614d41575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614d7e575f5ffd5b83018035915067ffffffffffffffff821115614d98575f5ffd5b6020019150368190038213156132ca575f5ffd5b818382375f9101908152919050565b83815273ffffffffffffffffffffffffffffffffffffffff83166020820152606060408201525f6139086060830184614541565b81835281816020850137505f602082840101525f60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b848152606060208201525f614e4f606083018587614def565b8281036040840152613b1c8185614541565b5f60208284031215614e71575f5ffd5b815161099f816143f8565b5f5f60408385031215614e8d575f5ffd5b8251614e98816143f8565b6020939093015192949293505050565b838152604060208201525f613908604083018486614def565b81515f90829060208501835b82811015614eeb578151845260209384019390910190600101614ecd565b509195945050505050565b5f60c08236031215614f06575f5ffd5b614f0e614a6e565b82358152602080840135908201526040808401359082015260608084013590820152608083013567ffffffffffffffff811115614f49575f5ffd5b614f5536828601614ae0565b60808301525060a083013567ffffffffffffffff811115614f74575f5ffd5b614f8036828601614ae0565b60a08301525092915050565b5f5f85851115614f9a575f5ffd5b83861115614fa6575f5ffd5b5050820193919092039150565b80356020831015612fd6577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602084900360031b1b1692915050565b5f81518060208401855e5f93019283525090919050565b5f612fd38284614fef565b5f61501c8285614fef565b9283525050602001919050565b7f226368616c6c656e6765223a220000000000000000000000000000000000000081525f61505a600d830184614fef565b7f220000000000000000000000000000000000000000000000000000000000000081526001019392505050565b5f826150ba577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b8082028115828204841417612fd657612fd661482656fe426174636828616464726573732077616c6c65742c75696e74323536206e6f6e63652c75696e7432353620646561646c696e652c43616c6c5b5d2063616c6c732943616c6c2861646472657373207461726765742c75696e743235362076616c75652c6279746573206461746129a26469706673582212206d19dcaff9b9dc0849f3b0fe54c3c1fcc7edb3fa2752f04846822667c2a8be1264736f6c63430008220033","sourceMap":"1849:30616:22:-:0;;;6074:53;;;;;;;;;-1:-1:-1;3066:4:16;3028:45;;3100:13;3083:30;;3124:18;;3240:23;32411:22:22;;;;;;;;;;;-1:-1:-1;;;32411:22:22;;;;;;;;32443:13;;;;;;;;;;;-1:-1:-1;;;32443:13:22;;;;32411:22;32241:222;3240:23:16;3340:22;;;;;;;3454:25;;;;;;;;;3489:26;;;;3525:32;;;;3737:4;3731:11;;3802:16;3792:27;;3843:12;;;3836:30;;;;3890:12;;;3883:33;3954:9;3947:4;3940:12;;3933:31;4002:9;3995:4;3988:12;;3981:31;4055:4;4042:18;;4093:34;;-1:-1:-1;6098:22:22;;-1:-1:-1;6098:20:22;:22::i;:::-;1849:30616;;7121:737:17;-1:-1:-1;;7297:8:17;;7328:1;7321:9;;7318:134;;;7362:10;7356:4;7349:24;7433:4;7427;7420:18;7318:134;-1:-1:-1;;;;;7537:9:17;7533:1;7530;7526:9;7523:24;7513:329;;7665:9;7662:1;7658:17;7655:1;7648:28;7755:9;7749:4;7742:23;7799:28;7793:4;7787;7782:46;7513:329;;;7274:578;7121:737::o;1849:30616:22:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"608060405260043610610201575f3560e01c80638dc2c6891161011c578063d0f31620116100af578063e1f93ac51161007e578063e63f952f11610063578063e63f952f146105f5578063e8c8bf6414610614578063e9e371361461063357610208565b8063e1f93ac5146105c2578063e30c3978146105e157610208565b8063d0f3162014610536578063d4eec5a614610555578063d7fa476f14610569578063d8cb0d66146105a357610208565b8063affed0e0116100eb578063affed0e0146104d0578063b9ac71d6146104e4578063c45a015514610503578063c4d66de81461051757610208565b80638dc2c6891461044c578063a338d2171461046b578063adc8693e1461048a578063af640d0f146104bc57610208565b80635b48684e116101945780637ae26773116101635780637ae26773146103b95780638456cb59146103d857806384b0196e146103ec5780638da5cb5b1461041357610208565b80635b48684e1461035b5780635c975abb1461036f578063745ba8061461039157806376d0e490146103a557610208565b80632a45cacf116101d05780632a45cacf146102f55780633f4ba83a1461031457806344004cc11461032857806354d1f13d1461034757610208565b806307b18bde146102415780630a276680146102625780631626ba7e1461028157806324017fae146102d657610208565b3661020857005b5f3560e01c63bc197c81811463f23a6e6182141763150b7a028214171561023357806020526020603cf35b50633c10b94e5f526004601cfd5b34801561024c575f5ffd5b5061026061025b36600461441c565b610654565b005b34801561026d575f5ffd5b5061026061027c36600461441c565b6107cb565b34801561028c575f5ffd5b506102a061029b366004614484565b610812565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b3480156102e1575f5ffd5b506102606102f036600461441c565b6109a6565b348015610300575f5ffd5b5061026061030f3660046144cc565b610ac3565b34801561031f575f5ffd5b50610260610c90565b348015610333575f5ffd5b50610260610342366004614503565b610dfb565b348015610352575f5ffd5b50610260610f8b565b348015610366575f5ffd5b50610260610fcc565b34801561037a575f5ffd5b50610383611133565b6040519081526020016102cd565b34801561039c575f5ffd5b50610383611167565b3480156103b0575f5ffd5b50610383611175565b3480156103c4575f5ffd5b506102606103d33660046144cc565b61117e565b3480156103e3575f5ffd5b50610260611300565b3480156103f7575f5ffd5b50610400611371565b6040516102cd979695949392919061458d565b34801561041e575f5ffd5b50610427611419565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102cd565b348015610457575f5ffd5b5061026061046636600461464c565b611422565b348015610476575f5ffd5b50610260610485366004614663565b6114b0565b348015610495575f5ffd5b507f4bc04a483367e3b8d2c7dac8d60b56e696d24ef97f345830002d363ea50a2298610383565b3480156104c7575f5ffd5b506103836114ba565b3480156104db575f5ffd5b506103836114c4565b3480156104ef575f5ffd5b506103836104fe3660046146a2565b6114f1565b34801561050e575f5ffd5b5061042761152f565b348015610522575f5ffd5b506102606105313660046146a2565b611540565b348015610541575f5ffd5b5061026061055036600461464c565b6115d3565b348015610560575f5ffd5b50610260611734565b348015610574575f5ffd5b5061058861058336600461464c565b611882565b604080519384526020840192909252908201526060016102cd565b3480156105ae575f5ffd5b506102606105bd3660046146fe565b6118d5565b3480156105cd575f5ffd5b506102606105dc366004614792565b611ad4565b3480156105ec575f5ffd5b50610427611c0e565b348015610600575f5ffd5b5061026061060f3660046146a2565b611c17565b34801561061f575f5ffd5b5061026061062e3660046147bb565b611c9d565b34801561063e575f5ffd5b5061026061064d3660046146a2565b612357565b565b5f61065d611133565b9050805f03610698576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106a061152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106e8573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061070c919061480f565b6107169082614853565b421161074e576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107566124a7565b61077673ffffffffffffffffffffffffffffffffffffffff841683612513565b8273ffffffffffffffffffffffffffffffffffffffff167f2c876ecb97b3c6854f2488d373403f903eacb800e51c159a5c0c7a9c857e4827836040516107be91815260200190565b60405180910390a2505050565b333014610804576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61080e828261252c565b5050565b5f5f5f5f6108208686612682565b919450925090505f808080600187600281111561083f5761083f614866565b036108535761084c611419565b9350610967565b600287600281111561086757610867614866565b148015610872575084155b156108be57859350610883846114f1565b42106108b957507fffffffff00000000000000000000000000000000000000000000000000000000965061099f95505050505050565b610967565b60028760028111156108d2576108d2614866565b1480156108df5750600185145b15610937575f6108ee87611882565b9195509350905042811161092d57507fffffffff00000000000000000000000000000000000000000000000000000000975061099f9650505050505050565b6001915050610967565b507fffffffff00000000000000000000000000000000000000000000000000000000965061099f95505050505050565b836080528060a0528260c0528160e052610100604051101561098a576101006040525b6109958b8b8b6128a4565b9750505050505050505b9392505050565b3330146109df576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216610a2c576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b428111610a65576040517f488b16b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a6f828261290a565b8173ffffffffffffffffffffffffffffffffffffffff167fcacba9f642804cfed98e2bb1d1c05bc4c78b35a209cdffdb4674b3363bafd92b82604051610ab791815260200190565b60405180910390a25050565b5f610acc611133565b9050805f03610b07576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b0f61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b57573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b7b919061480f565b610b859082614853565b4211610bbd576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bc56124a7565b6040517fa22cb46500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301525f602483015284169063a22cb465906044015f604051808303815f87803b158015610c31575f5ffd5b505af1158015610c43573d5f5f3e3d5ffd5b505060405173ffffffffffffffffffffffffffffffffffffffff8086169350861691507ff9dfa223fca66e1e19e96ad420898db0b0ada933c1d0c0953b3d5a44176f495c905f90a3505050565b5f610c99611133565b9050805f03610cd4576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cdc61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d24573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d48919061480f565b610d529082614853565b4211610d8a576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d926124a7565b5f610dbe60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b5f81556040514281529091507f9dd715fed52c25e642f97653bb4c4339ad98fe6d6e130348be82ae5d86383a8c9060200160405180910390a15050565b5f610e04611133565b9050805f03610e3f576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e4761152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e8f573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610eb3919061480f565b610ebd9082614853565b4211610ef5576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610efd6124a7565b610f1e73ffffffffffffffffffffffffffffffffffffffff85168484612946565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f2fbb3e8dc2807d6a61feb98fc2120153f77b2c0d25ef6272e1756935dd62c84784604051610f7d91815260200190565b60405180910390a350505050565b333014610fc4576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610652612999565b5f610fd5611133565b9050805f03611010576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61101861152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611060573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611084919061480f565b61108e9082614853565b42116110c6576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110ce6124a7565b6110d6612a46565b73ffffffffffffffffffffffffffffffffffffffff16635b48684e6040518163ffffffff1660e01b81526004015f604051808303815f87803b15801561111a575f5ffd5b505af115801561112c573d5f5f3e3d5ffd5b5050505050565b5f8061116060017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b5492915050565b5f611170612b93565b905090565b5f611170612bc0565b5f611187611133565b9050805f036111c2576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111ca61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611212573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611236919061480f565b6112409082614853565b4211611278576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112806124a7565b6112a173ffffffffffffffffffffffffffffffffffffffff8416835f612bed565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8da578e4cb2672c4986388e504a6f639391986195c077e5db9f48e04c97a501b60405160405180910390a3505050565b6113086124a7565b5f61133460017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99614893565b428082556040519081529091507f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e9060200160405180910390a150565b7f0f000000000000000000000000000000000000000000000000000000000000006060805f808083611407604080518082018252600d81527f4465706f73697457616c6c6574000000000000000000000000000000000000006020808301919091528251808401909352600183527f31000000000000000000000000000000000000000000000000000000000000009083015291565b97989097965046955030945091925090565b5f611170612c36565b33301461145b576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5f61146683611882565b509092509050611478835f8080612c63565b604080518381526020810183905284917f415ca13a1f0f66d402c248f2677c40f1ec4794c656c96f71569a09831c99fb1e91016107be565b61080e8282612caa565b5f5f61099f612e95565b5f8061116060017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6614893565b5f8061151e60017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db614893565b5f9384526020525050604090205490565b5f5f611539612e95565b5092915050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156115915760018160011c14303b106115885763f92ee8a95f526004601cfd5b818160ff1b1b91505b5061159b82612f03565b801561080e576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15050565b5f6115dc611133565b9050805f03611617576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61161f61152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611667573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061168b919061480f565b6116959082614853565b42116116cd576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6116d56124a7565b5f5f6116e084611882565b5090925090506116f2845f8080612c63565b604080518381526020810183905285917fad3961171307ef42f17267087f5444061f871d6b814636723504b96f1f0d36bd91015b60405180910390a250505050565b5f61173d611133565b9050805f03611778576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61178061152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117ec919061480f565b6117f69082614853565b421161182e576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118366124a7565b61183e612a46565b73ffffffffffffffffffffffffffffffffffffffff1663d4eec5a66040518163ffffffff1660e01b81526004015f604051808303815f87803b15801561111a575f5ffd5b5f8080806118b160017f3aeceb64e5bf1bc571c0f9d844588aca01e747977eb627cfe37418f8e321be26614893565b5f958652602052505060409092208054600182015460029092015490949193509150565b5f6118de611133565b9050805f03611919576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61192161152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611969573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061198d919061480f565b6119979082614853565b42116119cf576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119d76124a7565b6040517f2eb2c2d600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff881690632eb2c2d690611a339030908a908a908a908a908a906004016148ef565b5f604051808303815f87803b158015611a4a575f5ffd5b505af1158015611a5c573d5f5f3e3d5ffd5b505050508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fb790ced15183f79ade456fb39c4fc443005b36f92a7318ef6e0e9f18dc05b04087878787604051611ac3949392919061496b565b60405180910390a350505050505050565b333014611b0d576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611b178383612fc8565b83839091611b5f576040517f304d0228000000000000000000000000000000000000000000000000000000008152600481019290925260248201526044015b60405180910390fd5b5050428111611b9a576040517f488b16b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051602080820186905281830185905282518083038401815260609092019092528051910120611bce81858585612c63565b604080518581526020810185905290810183905281907fd5becded5e17b1418ca2798bb03d5ad44e2dbe712bc69040381f1cc3efffbd5390606001611726565b5f611170612fdc565b333014611c50576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c5a815f61290a565b60405173ffffffffffffffffffffffffffffffffffffffff8216907feac85989fadc30dfe2712c2308dcfecb3f9af1d15422056fc5a98ed1b49ca209905f90a250565b611ca561152f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d09576040517f0c6d42ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611d176060850185614991565b905011611d50576040517fc2e5347d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b30611d5e60208501856146a2565b73ffffffffffffffffffffffffffffffffffffffff1614611dab576040517f23455ba100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80611dd860017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6614893565b80546001810182559250905060208501358214611e21576040517f756688fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8460400135421115611e5f576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611e71611e6c87614b70565b613009565b90505f611e7d826130a3565b90507f1626ba7e00000000000000000000000000000000000000000000000000000000611eab828888610812565b7fffffffff000000000000000000000000000000000000000000000000000000001614611f04576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611f0f87876131b9565b90505f81611f1d575f611f25565b611f25612a46565b90505f5b611f3660608b018b614991565b905081101561232157821580611f9e575030611f5560608c018c614991565b83818110611f6557611f65614ce2565b9050602002810190611f779190614d0f565b611f859060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff1614155b611fd4576040517fde4e67c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b821580612049575073ffffffffffffffffffffffffffffffffffffffff821661200060608c018c614991565b8381811061201057612010614ce2565b90506020028101906120229190614d0f565b6120309060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff1614155b61207f576040517f63adb1da00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8061208e60608d018d614991565b8481811061209e5761209e614ce2565b90506020028101906120b09190614d0f565b6120be9060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff166120e160608e018e614991565b858181106120f1576120f1614ce2565b90506020028101906121039190614d0f565b6020013561211460608f018f614991565b8681811061212457612124614ce2565b90506020028101906121369190614d0f565b612144906040810190614d4b565b604051612152929190614dac565b5f6040518083038185875af1925050503d805f811461218c576040519150601f19603f3d011682016040523d82523d5f602084013e612191565b606091505b50909250905081836121a660608f018f614991565b868181106121b6576121b6614ce2565b90506020028101906121c89190614d0f565b6121d69060208101906146a2565b83909192612213576040517fb09725d2000000000000000000000000000000000000000000000000000000008152600401611b5693929190614dbb565b5061222491505060608d018d614991565b8481811061223457612234614ce2565b90506020028101906122469190614d0f565b6122549060208101906146a2565b73ffffffffffffffffffffffffffffffffffffffff167ffde9c64d8b0b21fe439285c271603188269ad7c561364f724d48e9846120d7b661229860608f018f614991565b868181106122a8576122a8614ce2565b90506020028101906122ba9190614d0f565b602001358e80606001906122ce9190614991565b878181106122de576122de614ce2565b90506020028101906122f09190614d0f565b6122fe906040810190614d4b565b8560405161230f9493929190614e36565b60405180910390a25050600101611f29565b60405187907fe9cc9bbe7de1cbb097a6357ca3182909488efe8d793e25665befc064a02d10a7905f90a250505050505050505050565b5f612360611133565b9050805f0361239b576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123a361152f565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156123eb573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061240f919061480f565b6124199082614853565b4211612451576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124596124a7565b612463825f61290a565b60405173ffffffffffffffffffffffffffffffffffffffff8316907f61be9e006b8f5c6e0e05905bb6a35efabbb3343c37d33552f634bd1d20f64141905f90a25050565b6124af611419565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610652576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f385f3884865af161080e5763b12d13eb5f526004601cfd5b73ffffffffffffffffffffffffffffffffffffffff8216158015906125845750612554611419565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156125a6575073ffffffffffffffffffffffffffffffffffffffff82163014155b6125dc576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80421115612616576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61261f826131e8565b6126288161321b565b5f612631613247565b604080518481526020810183905291925073ffffffffffffffffffffffffffffffffffffffff8516917f34280f73a4dfa646661714dfe2e00bc6df3de0581f552bd4420061f686d28bea91016107be565b5f8080602084101561269c5750600191505f90508061289d565b8484017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001357f6492649264926492649264926492649264926492649264926492649264926492145f80826126fe5750600194505f935083925061289d915050565b60a087101561271957505f945084935083925061289d915050565b505060408601356060808801359088359060208a013590841415806127675750612764601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff614893565b83115b1561278057505f965086955085945061289d9350505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe06127ad85601f614853565b1690506127db60a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff614893565b8111156127f757505f975087965086955061289d945050505050565b6128028160a0614853565b8a1461281d57505f975087965086955061289d945050505050565b816128665760a083901c158015612849575073ffffffffffffffffffffffffffffffffffffffff831615155b15612861575060029750909550935061289d92505050565b61288d565b60018214801561287557508215155b1561288d575060029750909550935061289d92505050565b505f975087965086955050505050505b9250925092565b5f816128e15761773961ffff8319040284036128e157507f773900010000000000000000000000000000000000000000000000000000000061099f565b5f6128f5856128f08686613283565b6132d1565b155f03631626ba7e1760e01b95945050505050565b5f61293660017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db614893565b5f93845260205250604090912055565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f51141661298f57803d853b15171061298f576390b8ec185f526004601cfd5b505f603452505050565b5f6129a2611c0e565b905073ffffffffffffffffffffffffffffffffffffffff81166129f1576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129fa5f6131e8565b612a035f61321b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92905f90a250565b5f8080612a7460017fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d51614893565b80549250905073ffffffffffffffffffffffffffffffffffffffff821615612a9c5750919050565b5f80612ac960017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd614893565b80549250905073ffffffffffffffffffffffffffffffffffffffff82163b612b1d576040517fe6e1262b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166349493a4d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b66573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b8a9190614e61565b94505050505090565b5f8061116060017fa250db4cdd0e79ff2dcd111477627e89b67cf8b26f7530ac9c97168fe892adcf614893565b5f8061116060017f83e56f89581bfd0d900ad9e7f5ffe08b050af9835151520198ecf6256538e8cb614893565b81601452806034526f095ea7b30000000000000000000000005f5260205f604460105f875af18060015f51141661298f57803d853b15171061298f57633e3f8f735f526004601cfd5b5f8061116060017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b5f612c8f60017f3aeceb64e5bf1bc571c0f9d844588aca01e747977eb627cfe37418f8e321be26614893565b5f958652602052506040909320918255600182015560020155565b5f612cb3611c0e565b905073ffffffffffffffffffffffffffffffffffffffff8116612d02576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612d0a611175565b421115612d43576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f9f22c1bf28d77bcb7ce8f5213eb18f0ddc1a5e8bd395eb34854777f52990c51782612d6e611167565b604051602001612da79392919092835273ffffffffffffffffffffffffffffffffffffffff919091166020830152604082015260600190565b6040516020818303038152906040528051906020012090505f612dc9826130a3565b9050612dd783828787613307565b612e0d576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612e16611419565b9050612e215f6131e8565b612e2a5f61321b565b612e33846134aa565b8373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f38bafbf020d44b4ca47fda166836e6a0e0a15a9d6fec166834c0125e193830ff60405160405180910390a3505050505050565b604080518181526060810182525f91829182916020820181803683370190505090503060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0823b0160208401833c81806020019051810190612ef89190614e7c565b909590945092505050565b73ffffffffffffffffffffffffffffffffffffffff8116612f50576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612f7c60017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b82815560405190915073ffffffffffffffffffffffffffffffffffffffff8316905f907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35050565b5f612fd38383613531565b90505b92915050565b5f8061116060017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770614893565b5f6040518060a00160405280606e81526020016150d7606e913980519060200120825f01518360200151846040015161304586606001516135b6565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff909416938501939093526060840191909152608083015260a082015260c0015b604051602081830303815290604052805190602001209050919050565b7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000030147f00000000000000000000000000000000000000000000000000000000000000004614166131965750604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527f000000000000000000000000000000000000000000000000000000000000000060208201527f00000000000000000000000000000000000000000000000000000000000000009181019190915246606082015230608082015260a090205b6719010000000000005f5280601a5281603a52604260182090505f603a52919050565b5f5f6131c58484612682565b50909150600290508160028111156131df576131df614866565b14949350505050565b5f61321460017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770614893565b9190915550565b5f61321460017f83e56f89581bfd0d900ad9e7f5ffe08b050af9835151520198ecf6256538e8cb614893565b5f8061327460017fa250db4cdd0e79ff2dcd111477627e89b67cf8b26f7530ac9c97168fe892adcf614893565b80546001019081905592915050565b818161649261ffff30801c1904028183017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00135036132ca57506040810135016020810190355b9250929050565b5f6132dd848484613680565b806132ee57506132ee848484613699565b806132ff57506132ff848484613911565b949350505050565b5f73ffffffffffffffffffffffffffffffffffffffff851661332a57505f6132ff565b60408214806133395750604182145b15613383578473ffffffffffffffffffffffffffffffffffffffff1661336085858561397c565b73ffffffffffffffffffffffffffffffffffffffff1603613383575060016132ff565b73ffffffffffffffffffffffffffffffffffffffff85163014806133bc575073ffffffffffffffffffffffffffffffffffffffff85163b155b156133c857505f6132ff565b5f8484846040516024016133de93929190614ea8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f1626ba7e0000000000000000000000000000000000000000000000000000000017815282519293505f928392918391908b5afa5f513d6020149091169250905081801561349e57507f1626ba7e0000000000000000000000000000000000000000000000000000000081145b98975050505050505050565b5f6134b3611419565b90505f6134e160017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b614893565b83815560405190915073ffffffffffffffffffffffffffffffffffffffff80851691908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f7fffffffff00000001000000000000000000000000ffffffffffffffffffffffff80838409817f5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b8387857fffffffff00000001000000000000000000000000fffffffffffffffffffffffc878b8c0908090894821191909310169190921416919050565b5f5f825167ffffffffffffffff8111156135d2576135d26149f5565b6040519080825280602002602001820160405280156135fb578160200160208202803683370190505b5090505f5b83518110156136505761362b84828151811061361e5761361e614ce2565b6020026020010151613a10565b82828151811061363d5761363d614ce2565b6020908102919091010152600101613600565b50806040516020016136629190614ec1565b60405160208183030381529060405280519060200120915050919050565b5f613689613a81565b1561099f576132ff848484613abd565b5f308015613705575f5f5f5f5f6136ae611371565b5060408051865160209788012081830152855195909601949094206060860152608085019290925273ffffffffffffffffffffffffffffffffffffffff1660a084015260c083015260e08201905296505050505050505b6040516002840385013560f01c8060420180860387016119015f52604081602037821582881017896042601e20181715613770575f94507f983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de85528860205260408520985050506138e8565b7f5479706564446174615369676e280000000000000000000000000000000000008452600e84018360408301823760288185019081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01515f1a602914613808575f6001858301035b6001820191506029828203515f1a14868310116137da57508085039450808560408501018337602881830153505b6f07fffffe00000000000001000000000081515f1a1c5b602882515f1a1461384557806512010000000183515f1a1c17905060018201915061381f565b7f20636f6e74656e74732c737472696e67206e616d652c737472696e670000000082527f2076657273696f6e2c75696e7432353620636861696e49642c61646472657373601c8301527f20766572696679696e67436f6e74726163742c627974657333322073616c7429603c830152605c820191508460408401833760408388379084018590038520865260e08620604052600116604201601e20985050909403935b50604052806138fd576138fa856130a3565b94505b613908858585613abd565b95945050505050565b5f3a61099f573a3a526d378edcd5b5b0a24f5342d8c1048560203a3a388461fffffa503a5161397057604051631626ba7e3a528160205260408052454561ffff0117805a10838814171561396157fe5b3a3a6064601c3085fa50506040525b506132ff848484613abd565b5f604051826040811461399757604181146139d75750613a08565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff166060526139e8565b60408501355f1a6020526040856040375b50845f526020604060805f60015afa505f6060523d606018519150806040525b509392505050565b805160208083015160408085015180519084012081517f84fa2cf05cd88e992eae77e851af68a4ee278dcff6ef504e487a55b3baadfbe59481019490945273ffffffffffffffffffffffffffffffffffffffff90941690830152606082015260808101919091525f9060a001613086565b5f613a8a61152f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b60a05160c05160e0515f9291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301613b0857613afe8783838989613b27565b935050505061099f565b613b1c613b1460805190565b888888613307565b979650505050505050565b5f5f36613b348585613b77565b9150915081801561349e575061349e88604051602001613b5691815260200190565b60405160208183030381529060405282613b6f90614ef6565b89895f613c73565b5f8260c0831015613b8a575f91506132ca565b5f613b988460808188614f8c565b613ba191614fb3565b90505f613bb18560a08189614f8c565b613bba91614fb3565b905081613bc8602087614893565b1080613bdd575080613bdb602087614893565b105b15613bec575f935050506132ca565b5f613bf98684818a614f8c565b613c0291614fb3565b90505f613c118784818b614f8c565b613c1a91614fb3565b9050816020613c29868a614893565b613c339190614893565b1080613c535750806020613c47858a614893565b613c519190614893565b105b15613c64575f9550505050506132ca565b60019550505050509250929050565b5f6024856080015151118015613ceb5750613ceb8560a0015186606001518181016020015191516014909101107fffffffffffffffffffffffffffffffffffffffffff0000000000000000000000919091167f2274797065223a22776562617574686e2e676574220000000000000000000000141690565b8015613d055750613d058560a00151866040015188613ef8565b8015613d535750613d538560800151602081518110613d2657613d26614ce2565b01602001517f01000000000000000000000000000000000000000000000000000000000000009081161490565b8015613da95750811580613da95750613da98560800151602081518110613d7c57613d7c614ce2565b01602001517f04000000000000000000000000000000000000000000000000000000000000009081161490565b8015613df65750613df68560800151602081518110613dca57613dca614ce2565b01602001517fff0000000000000000000000000000000000000000000000000000000000000016613f46565b8015613eee5750613eee6002866080015160028860a00151604051613e1b9190615006565b602060405180830381855afa158015613e36573d5f5f3e3d5ffd5b5050506040513d601f19601f82011682018060405250810190613e59919061480f565b604051602001613e6a929190615011565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052613ea291615006565b602060405180830381855afa158015613ebd573d5f5f3e3d5ffd5b5050506040513d601f19601f82011682018060405250810190613ee0919061480f565b865160208801518787613f99565b9695505050505050565b5f5f613f0383613ff1565b604051602001613f139190615029565b60405160208183030381529060405290505f613f3a8686613f35888651613ffe565b614035565b9050613eee81836140b6565b5f7f08000000000000000000000000000000000000000000000000000000000000008281161480612fd65750507f1000000000000000000000000000000000000000000000000000000000000000161590565b5f5f5f613fa988888888886140c1565b915091508015613fbb57509050613908565b6040517f42b01bce0000000000000000000000000000000000000000000000000000000081526101006004820152602401611b56565b6060612fd682600161419c565b5f828201838110159081027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808218830218613908565b606061404282855161431b565b915061404e838361431b565b92505f61405b8484614893565b67ffffffffffffffff811115614073576140736149f5565b6040519080825280601f01601f19166020018201604052801561409d576020820181803683370190505b509050838303846020870101602083015e949350505050565b5f612fd3838361432a565b5f5f6140cd868661434e565b15806140e057506140de8484613531565b155b156140f057505f90506001614192565b6140fd87878787876143b8565b1561410d57506001905080614192565b61417c7fbb5a52f42f9c9261ed4361f59422a1e30036e7c32b270c8807a419feca605023600560017fa71af64de5126a4a4e02b7922d66ce9415ce88a4c9d25514d91082c8725ac9577f5d47723c8fbe580bb369fec9c2665d8e30a435b9932645482e7c9f11e872296b6143b8565b1561418c57505f90506001614192565b505f9050805b9550959350505050565b606082515f036141ba575060408051602081019091525f8152612fd6565b5f826141ea576003845160026141d09190614853565b6141da9190615087565b6141e59060046150bf565b61420f565b6003845160046141fa91906150bf565b614205906002614853565b61420f9190615087565b905060405191507f4142434445464748494a4b4c4d4e4f505152535455565758595a616263646566601f5261067083027f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f18603f526020820181810185865187016020810180515f82525b828410156142cd576003840193508351603f8160121c16518753600187019650603f81600c1c16518753600187019650603f8160061c16518753600187019650603f81165187535060018601955061427a565b90525085905061430e576003865106600181146142f157600281146143045761430c565b603d6001840353603d600284035361430c565b603d60018403535b505b9183525060405292915050565b5f828218828410028218612fd3565b5f81518351148015612fd35750508051602091820120825192909101919091201490565b5f821580159061437d57507fffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc63255183105b801561438857508115155b8015612fd35750507f7fffffff800000007fffffffffffffffde737d56d38bcf4279dce5617e3192a81015919050565b5f6040518681528560208201528460408201528360608201528260808201525f5f5260205f60a0836101005afa6143eb57fe5b50505f5195945050505050565b73ffffffffffffffffffffffffffffffffffffffff81168114614419575f5ffd5b50565b5f5f6040838503121561442d575f5ffd5b8235614438816143f8565b946020939093013593505050565b5f5f83601f840112614456575f5ffd5b50813567ffffffffffffffff81111561446d575f5ffd5b6020830191508360208285010111156132ca575f5ffd5b5f5f5f60408486031215614496575f5ffd5b83359250602084013567ffffffffffffffff8111156144b3575f5ffd5b6144bf86828701614446565b9497909650939450505050565b5f5f604083850312156144dd575f5ffd5b82356144e8816143f8565b915060208301356144f8816143f8565b809150509250929050565b5f5f5f60608486031215614515575f5ffd5b8335614520816143f8565b92506020840135614530816143f8565b929592945050506040919091013590565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f6145c760e0830189614541565b82810360408401526145d98189614541565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b8181101561463b57835183526020938401939092019160010161461d565b50909b9a5050505050505050505050565b5f6020828403121561465c575f5ffd5b5035919050565b5f5f60208385031215614674575f5ffd5b823567ffffffffffffffff81111561468a575f5ffd5b61469685828601614446565b90969095509350505050565b5f602082840312156146b2575f5ffd5b813561099f816143f8565b5f5f83601f8401126146cd575f5ffd5b50813567ffffffffffffffff8111156146e4575f5ffd5b6020830191508360208260051b85010111156132ca575f5ffd5b5f5f5f5f5f5f60808789031215614713575f5ffd5b863561471e816143f8565b9550602087013561472e816143f8565b9450604087013567ffffffffffffffff811115614749575f5ffd5b61475589828a016146bd565b909550935050606087013567ffffffffffffffff811115614774575f5ffd5b61478089828a016146bd565b979a9699509497509295939492505050565b5f5f5f606084860312156147a4575f5ffd5b505081359360208301359350604090920135919050565b5f5f5f604084860312156147cd575f5ffd5b833567ffffffffffffffff8111156147e3575f5ffd5b8401608081870312156147f4575f5ffd5b9250602084013567ffffffffffffffff8111156144b3575f5ffd5b5f6020828403121561481f575f5ffd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115612fd657612fd6614826565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b81810381811115612fd657612fd6614826565b8183525f7f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156148d6575f5ffd5b8260051b80836020870137939093016020019392505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a060408201525f61493a60a0830186886148a6565b828103606084015261494d8185876148a6565b83810360809094019390935250505f81526020019695505050505050565b604081525f61497e6040830186886148a6565b8281036020840152613b1c8185876148a6565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126149c4575f5ffd5b83018035915067ffffffffffffffff8211156149de575f5ffd5b6020019150600581901b36038213156132ca575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff81118282101715614a4557614a456149f5565b60405290565b6040516060810167ffffffffffffffff81118282101715614a4557614a456149f5565b60405160c0810167ffffffffffffffff81118282101715614a4557614a456149f5565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614ad857614ad86149f5565b604052919050565b5f82601f830112614aef575f5ffd5b8135602083015f5f67ffffffffffffffff841115614b0f57614b0f6149f5565b50601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016602001614b4281614a91565b915050828152858383011115614b56575f5ffd5b828260208301375f92810160200192909252509392505050565b5f60808236031215614b80575f5ffd5b614b88614a22565b8235614b93816143f8565b81526020838101359082015260408084013590820152606083013567ffffffffffffffff811115614bc2575f5ffd5b830136601f820112614bd2575f5ffd5b803567ffffffffffffffff811115614bec57614bec6149f5565b8060051b614bfc60208201614a91565b91825260208184018101929081019036841115614c17575f5ffd5b6020850192505b83831015614cd257823567ffffffffffffffff811115614c3c575f5ffd5b85016060368290037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0011215614c70575f5ffd5b614c78614a4b565b6020820135614c86816143f8565b815260408201356020820152606082013567ffffffffffffffff811115614cab575f5ffd5b614cba36602083860101614ae0565b60408301525083525060209283019290910190614c1e565b6060860152509295945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa1833603018112614d41575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614d7e575f5ffd5b83018035915067ffffffffffffffff821115614d98575f5ffd5b6020019150368190038213156132ca575f5ffd5b818382375f9101908152919050565b83815273ffffffffffffffffffffffffffffffffffffffff83166020820152606060408201525f6139086060830184614541565b81835281816020850137505f602082840101525f60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b848152606060208201525f614e4f606083018587614def565b8281036040840152613b1c8185614541565b5f60208284031215614e71575f5ffd5b815161099f816143f8565b5f5f60408385031215614e8d575f5ffd5b8251614e98816143f8565b6020939093015192949293505050565b838152604060208201525f613908604083018486614def565b81515f90829060208501835b82811015614eeb578151845260209384019390910190600101614ecd565b509195945050505050565b5f60c08236031215614f06575f5ffd5b614f0e614a6e565b82358152602080840135908201526040808401359082015260608084013590820152608083013567ffffffffffffffff811115614f49575f5ffd5b614f5536828601614ae0565b60808301525060a083013567ffffffffffffffff811115614f74575f5ffd5b614f8036828601614ae0565b60a08301525092915050565b5f5f85851115614f9a575f5ffd5b83861115614fa6575f5ffd5b5050820193919092039150565b80356020831015612fd6577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602084900360031b1b1692915050565b5f81518060208401855e5f93019283525090919050565b5f612fd38284614fef565b5f61501c8285614fef565b9283525050602001919050565b7f226368616c6c656e6765223a220000000000000000000000000000000000000081525f61505a600d830184614fef565b7f220000000000000000000000000000000000000000000000000000000000000081526001019392505050565b5f826150ba577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b8082028115828204841417612fd657612fd661482656fe426174636828616464726573732077616c6c65742c75696e74323536206e6f6e63652c75696e7432353620646561646c696e652c43616c6c5b5d2063616c6c732943616c6c2861646472657373207461726765742c75696e743235362076616c75652c6279746573206461746129a26469706673582212206d19dcaff9b9dc0849f3b0fe54c3c1fcc7edb3fa2752f04846822667c2a8be1264736f6c63430008220033","sourceMap":"1849:30616:22:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1815:1:10;1802:15;1797:3;1793:25;2161:10;2158:1;2155:17;2142:10;2139:1;2136:17;2133:40;2120:10;2117:1;2114:17;2111:63;2108:298;;;2306:1;2300:4;2293:15;2300:4;2356;2349:18;2108:298;;1408:10:::1;1402:4;1395:24;1477:4;1471;1464:18;18349:175:22::0;;;;;;;;;;-1:-1:-1;18349:175:22;;;;;:::i;:::-;;:::i;:::-;;16063:140;;;;;;;;;;-1:-1:-1;16063:140:22;;;;;:::i;:::-;;:::i;28476:1778::-;;;;;;;;;;-1:-1:-1;28476:1778:22;;;;;:::i;:::-;;:::i;:::-;;;1599:66:34;1587:79;;;1569:98;;1557:2;1542:18;28476:1778:22;;;;;;;;13879:357;;;;;;;;;;-1:-1:-1;13879:357:22;;;;;:::i;:::-;;:::i;20458:219::-;;;;;;;;;;-1:-1:-1;20458:219:22;;;;;:::i;:::-;;:::i;17887:207::-;;;;;;;;;;;;;:::i;18820:230::-;;;;;;;;;;-1:-1:-1;18820:230:22;;;;;:::i;:::-;;:::i;16331:96::-;;;;;;;;;;;;;:::i;24442:81::-;;;;;;;;;;;;;:::i;7216:180::-;;;;;;;;;;;;;:::i;:::-;;;2730:25:34;;;2718:2;2703:18;7216:180:22;2584:177:34;10186:187:22;;;;;;;;;;;;;:::i;9854:193::-;;;;;;;;;;;;;:::i;20009:187::-;;;;;;;;;;-1:-1:-1;20009:187:22;;;;;:::i;:::-;;:::i;17556:202::-;;;;;;;;;;;;;:::i;11383:596:16:-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:::i;9242:127:22:-;;;;;;;;;;;;;:::i;:::-;;;4614:42:34;4602:55;;;4584:74;;4572:2;4557:18;9242:127:22;4438:226:34;15245:283:22;;;;;;;;;;-1:-1:-1;15245:283:22;;;;;:::i;:::-;;:::i;17020:126::-;;;;;;;;;;-1:-1:-1;17020:126:22;;;;;:::i;:::-;;:::i;10587:105::-;;;;;;;;;;-1:-1:-1;4721:37:22;10587:105;;8730:119;;;;;;;;;;;;;:::i;6895:176::-;;;;;;;;;;;;;:::i;7635:343::-;;;;;;;;;;-1:-1:-1;7635:343:22;;;;;:::i;:::-;;:::i;9004:133::-;;;;;;;;;;;;;:::i;6509:98::-;;;;;;;;;;-1:-1:-1;6509:98:22;;;;;:::i;:::-;;:::i;21191:313::-;;;;;;;;;;-1:-1:-1;21191:313:22;;;;;:::i;:::-;;:::i;22836:83::-;;;;;;;;;;;;;:::i;8072:496::-;;;;;;;;;;-1:-1:-1;8072:496:22;;;;;:::i;:::-;;:::i;:::-;;;;5950:25:34;;;6006:2;5991:18;;5984:34;;;;6034:18;;;6027:34;5938:2;5923:18;8072:496:22;5748:319:34;19401:337:22;;;;;;;;;;-1:-1:-1;19401:337:22;;;;;:::i;:::-;;:::i;14680:493::-;;;;;;;;;;-1:-1:-1;14680:493:22;;;;;:::i;:::-;;:::i;9522:141::-;;;;;;;;;;;;;:::i;14434:176::-;;;;;;;;;;-1:-1:-1;14434:176:22;;;;;:::i;:::-;;:::i;11423:1971::-;;;;;;;;;;-1:-1:-1;11423:1971:22;;;;;:::i;:::-;;:::i;20900:206::-;;;;;;;;;;-1:-1:-1;20900:206:22;;;;;:::i;:::-;;:::i;2751:58:10:-;:::o;18349:175:22:-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;18443:28:::2;:19;::::0;::::2;18463:7:::0;18443:19:::2;:28::i;:::-;18504:3;18487:30;;;18509:7;18487:30;;;;2730:25:34::0;;2718:2;2703:18;;2584:177;18487:30:22::2;;;;;;;;5425:258:::0;18349:175;;:::o;16063:140::-;5253:10;5275:4;5253:27;5245:48;;;;;;;;;;;;;;;;;16156:40:::1;16175:9;16186;16156:18;:40::i;:::-;16063:140:::0;;:::o;28476:1778::-;28631:13;28661:36;28699:16;28717:18;28751:32;:10;;:30;:32::i;:::-;28660:123;;-1:-1:-1;28660:123:22;-1:-1:-1;28660:123:22;-1:-1:-1;28794:14:22;;;;28957:40;28939:14;:58;;;;;;;;:::i;:::-;;28935:927;;29022:7;:5;:7::i;:::-;29013:16;;28935:927;;;29081:40;29063:14;:58;;;;;;;;:::i;:::-;;:121;;;;-1:-1:-1;29141:43:22;;29063:121;29046:816;;;29242:8;;-1:-1:-1;29290:36:22;29242:8;29290:28;:36::i;:::-;29271:15;:55;29267:122;;-1:-1:-1;29353:21:22;;-1:-1:-1;29346:28:22;;-1:-1:-1;;;;;;29346:28:22;29267:122;29046:816;;;29440:40;29422:14;:58;;;;;;;;:::i;:::-;;:116;;;;;561:1:30;29500:10:22;:38;29422:116;29405:457;;;29563:18;29630:30;29651:8;29630:20;:30::i;:::-;29595:65;;-1:-1:-1;29595:65:22;-1:-1:-1;29595:65:22;-1:-1:-1;29678:15:22;:29;-1:-1:-1;29674:63:22;;-1:-1:-1;29716:21:22;;-1:-1:-1;29709:28:22;;-1:-1:-1;;;;;;;29709:28:22;29674:63;561:1:30;29751:41:22;;29549:254;29405:457;;;-1:-1:-1;29830:21:22;;-1:-1:-1;29823:28:22;;-1:-1:-1;;;;;;29823:28:22;29405:457;29928:6;29902:24;29895:40;29986:14;29955:29;29948:53;30050:8;30021:27;30014:45;30108:8;30079:27;30072:45;30149:5;30142:4;30136:11;30133:22;30130:49;;;30171:5;30165:4;30158:19;30130:49;30206:41;30229:5;30236:10;;30206:22;:41::i;:::-;30199:48;;;;;;;;;28476:1778;;;;;;:::o;13879:357::-;5253:10;5275:4;5253:27;5245:48;;;;;;;;;;;;;;;;;13992:28:::1;::::0;::::1;13984:52;;;;;;;;;;;;;;;;;14068:15;14054:11;:29;14046:59;;;;;;;;;;;;;;;;;14115:46;14133:14;14149:11;14115:17;:46::i;:::-;14201:14;14177:52;;;14217:11;14177:52;;;;2730:25:34::0;;2718:2;2703:18;;2584:177;14177:52:22::1;;;;;;;;13879:357:::0;;:::o;20458:219::-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;20563:51:::2;::::0;;;;:33:::2;9542:55:34::0;;;20563:51:22::2;::::0;::::2;9524:74:34::0;20608:5:22::2;9614:18:34::0;;;9607:50;20563:33:22;::::2;::::0;::::2;::::0;9497:18:34;;20563:51:22::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;20630:40:22::2;::::0;::::2;::::0;;::::2;::::0;-1:-1:-1;20630:40:22;::::2;::::0;-1:-1:-1;20630:40:22::2;::::0;;;::::2;5425:258:::0;20458:219;;:::o;17887:207::-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;17946:12:::2;2914:46;2959:1;2922:33;2914:46;:::i;:::-;2906:55;18022:15:::0;;18062:25:::2;::::0;18071:15:::2;2730:25:34::0;;2906:55:22;;-1:-1:-1;18062:25:22::2;::::0;2718:2:34;2703:18;18062:25:22::2;;;;;;;17936:158;5425:258:::0;17887:207::o;18820:230::-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;18957:33:::2;:19;::::0;::::2;18977:3:::0;18982:7;18957:19:::2;:33::i;:::-;19030:3;19006:37;;19022:6;19006:37;;;19035:7;19006:37;;;;2730:25:34::0;;2718:2;2703:18;;2584:177;19006:37:22::2;;;;;;;;5425:258:::0;18820:230;;;:::o;16331:96::-;5253:10;5275:4;5253:27;5245:48;;;;;;;;;;;;;;;;;16394:26:::1;:24;:26::i;24442:81::-:0;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;24499:9:::2;:7;:9::i;:::-;:15;;;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5425:258:::0;24442:81::o;7216:180::-;7255:15;;2914:46;2959:1;2922:33;2914:46;:::i;:::-;7369:11;;7216:180;-1:-1:-1;;7216:180:22:o;10186:187::-;10302:14;10339:27;:25;:27::i;:::-;10332:34;;10186:187;:::o;9854:193::-;9973:14;10010:30;:28;:30::i;20009:187::-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;20108:31:::2;:18;::::0;::::2;20127:8:::0;20137:1:::2;20108:18;:31::i;:::-;20180:8;20155:34;;20172:6;20155:34;;;;;;;;;;;;5425:258:::0;20009:187;;:::o;17556:202::-;5771:13;:11;:13::i;:::-;17602:12:::1;2914:46;2959:1;2922:33;2914:46;:::i;:::-;17691:11;17678:25:::0;;;17728:23:::1;::::0;2730:25:34;;;2906:55:22;;-1:-1:-1;17728:23:22::1;::::0;2718:2:34;2703:18;17728:23:22::1;;;;;;;17592:166;17556:202::o:0;11383:596:16:-;11721:16;11508:18;;11481:13;;;11508:18;11779:23;32411:22:22;;;;;;;;;;;;;;;;;;;;32443:13;;;;;;;;;;;;;;;;32411:22;32241:222;11779:23:16;11383:596;;11761:41;;;-1:-1:-1;11822:13:16;;-1:-1:-1;11873:4:16;;-1:-1:-1;11383:596:16;;-1:-1:-1;11383:596:16;:::o;9242:127:22:-;9314:14;9347:15;:13;:15::i;15245:283::-;5253:10;5275:4;5253:27;5245:48;;;;;;;;;;;;;;;;;15330:9:::1;15341;15355:32;15376:10;15355:20;:32::i;:::-;-1:-1:-1::0;15329:58:22;;-1:-1:-1;15329:58:22;-1:-1:-1;15397:63:22::1;15422:10:::0;15442:1:::1;::::0;;15397:24:::1;:63::i;:::-;15476:45;::::0;;9975:25:34;;;10031:2;10016:18;;10009:34;;;15504:10:22;;15476:45:::1;::::0;9948:18:34;15476:45:22::1;9801:248:34::0;17020:126:22;17101:38;17128:10;;17101:26;:38::i;8730:119::-;8765:7;8787:11;8802:20;:18;:20::i;6895:176::-;6933:14;;2723:45;2767:1;2731:32;2723:45;:::i;7635:343::-;7735:19;;3163:68;3230:1;3171:55;3163:68;:::i;:::-;3155:77;7854:21;;;7895:4;7888:18;-1:-1:-1;;7956:4:22;7940:21;;7934:28;;7635:343::o;9004:133::-;9044:7;9064:16;9085:20;:18;:20::i;:::-;-1:-1:-1;9063:42:22;9004:133;-1:-1:-1;;9004:133:22:o;6509:98::-;2002:66:17;3769:8;;3867:1;3857:12;;3951:398;;;;4111:1;4107;4104;4100:9;4097:16;4085:9;4073:22;4070:44;4060:189;;4151:10;4145:4;4138:24;4226:4;4220;4213:18;4060:189;4288:1;4284;4279:3;4275:11;4271:19;4266:24;;3951:398;;6576:24:22::1;6593:6;6576:16;:24::i;:::-;4448:1:17::0;4445:264;;;4549:1;4546;4539:12;4630:1;4624:4;4617:15;4666:28;4660:4;4654;4649:46;4431:288;6509:98:22;:::o;21191:313::-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;21297:9:::2;21308;21322:32;21343:10;21322:20;:32::i;:::-;-1:-1:-1::0;21296:58:22;;-1:-1:-1;21296:58:22;-1:-1:-1;21364:63:22::2;21389:10:::0;21409:1:::2;::::0;;21364:24:::2;:63::i;:::-;21443:54;::::0;;9975:25:34;;;10031:2;10016:18;;10009:34;;;21480:10:22;;21443:54:::2;::::0;9948:18:34;21443:54:22::2;;;;;;;;21286:218;;5425:258:::0;21191:313;:::o;22836:83::-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;22894:9:::2;:7;:9::i;:::-;:16;;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8072:496:::0;8167:9;;;;3438:60;3497:1;3446:47;3438:60;:::i;:::-;3430:69;8315:24;;;8359:4;8352:18;-1:-1:-1;;8417:4:22;8401:21;;;8440:17;;8497:1;8481:18;;8475:25;8549:1;8533:18;;;8527:25;8440:17;;8475:25;;-1:-1:-1;8527:25:22;-1:-1:-1;8072:496:22:o;19401:337::-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;19587:77:::2;::::0;;;;:37:::2;::::0;::::2;::::0;::::2;::::0;:77:::2;::::0;19633:4:::2;::::0;19640:3;;19645:4;;;;19651:8;;;;19587:77:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19711:3;19680:51;;19703:6;19680:51;;;19716:4;;19722:8;;19680:51;;;;;;;;;:::i;:::-;;;;;;;;5425:258:::0;19401:337;;;;;;:::o;14680:493::-;5253:10;5275:4;5253:27;5245:48;;;;;;;;;;;;;;;;;14820:41:::1;14854:2;14858;14820:33;:41::i;:::-;14887:2;14891;14812:83;;;;;::::0;::::1;::::0;;::::1;::::0;::::1;9975:25:34::0;;;;10016:18;;;10009:34;9948:18;;14812:83:22::1;;;;;;;;;;;14927:15;14913:11;:29;14905:59;;;;;;;;;;;;;;;;;540:20:29::0;;;;;;;21059:19:34;;;21094:12;;;21087:28;;;540:20:29;;;;;;;;;21131:12:34;;;;540:20:29;;;530:31;;;;;15032:56:22::1;15057:9;15068:2;15072;15076:11;15032:24;:56::i;:::-;15104:62;::::0;;5950:25:34;;;6006:2;5991:18;;5984:34;;;6034:18;;;6027:34;;;15135:9:22;;15104:62:::1;::::0;5938:2:34;5923:18;15104:62:22::1;5748:319:34::0;9522:141:22;9601:14;9634:22;:20;:22::i;14434:176::-;5253:10;5275:4;5253:27;5245:48;;;;;;;;;;;;;;;;;14515:36:::1;14533:14;14549:1;14515:17;:36::i;:::-;14567;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;;::::1;14434:176:::0;:::o;11423:1971::-;5055:9;:7;:9::i;:::-;5041:23;;:10;:23;;;5033:47;;;;;;;;;;;;;;;;;11551:1:::1;11529:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;:19;;:23;11521:46;;;;;;;;;;;;;;;;;11610:4;11585:13;;::::0;::::1;:6:::0;:13:::1;:::i;:::-;:30;;;11577:56;;;;;;;;;;;;;;;;;11643:21;::::0;2723:45:::1;2767:1;2731:32;2723:45;:::i;:::-;11771:16:::0;;11837:1:::1;11818:21:::0;::::1;11800:40:::0;;11771:16;-1:-1:-1;2715:54:22;-1:-1:-1;11867:12:22::1;::::0;::::1;;:29:::0;::::1;11859:54;;;;;;;;;;;;;;;;;11950:6;:15;;;11931;:34;;11923:54;;;;;;;;;;;;;;;;;11988:17;12008:13;:11;:6:::0;:11:::1;:::i;:::-;;:13::i;:::-;11988:33;;12031:19;12053:25;12068:9;12053:14;:25::i;:::-;12031:47:::0;-1:-1:-1;12155:19:22;12110:41:::1;12031:47:::0;12140:10;;12110:16:::1;:41::i;:::-;:64:::0;::::1;;12089:115;;;;;;;;;;;;;;;;;12215:20;12238:37;:10;;:35;:37::i;:::-;12215:60;;12460:14;12477:15;:49;;12524:1;12477:49;;;12503:9;:7;:9::i;:::-;12460:66;;12537:9;12556:788;12567:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;:19;;12563:1;:23;12556:788;;;12629:15;12628:16;:59;;;-1:-1:-1::0;12682:4:22::1;12648:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;12661:1;12648:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:22;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;:39;;;;12628:59;12603:149;;;;;;;;;;;;;;;;;12792:15;12791:16;:52;;;-1:-1:-1::0;12811:32:22::1;::::0;::::1;:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;12824:1;12811:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:22;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;:32;;;;12791:52;12766:140;;;;;;;;;;;;;;;;;12922:12;::::0;12975::::1;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;12988:1;12975:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:22;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;:27;;13010:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;13023:1;13010:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:21;;;13033:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;13046:1;13033:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:20;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;12975:79;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;12921:133:22;;-1:-1:-1;12921:133:22;-1:-1:-1;12921:133:22;13102:1;13105:12:::1;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;13118:1;13105:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:22;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;13129:6;13069:68;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;13184:12:22::1;::::0;-1:-1:-1;;13184:12:22::1;::::0;::::1;:6:::0;:12:::1;:::i;:::-;13197:1;13184:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:22;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;13157:116;;;13208:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;13221:1;13208:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:21;;;13231:6;:12;;;;;;;;:::i;:::-;13244:1;13231:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:20;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;13253:6;13157:116;;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1::0;;13316:3:22::1;;12556:788;;;13359:28;::::0;13373:13;;13359:28:::1;::::0;;;::::1;11511:1883;;;;;;;11423:1971:::0;;;:::o;20900:206::-;5435:16;5454:8;:6;:8::i;:::-;5435:27;;5480:8;5492:1;5480:13;5472:35;;;;;;;;;;;;;;;;;5588:9;:7;:9::i;:::-;5567:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5556:58;;:8;:58;:::i;:::-;5538:15;:76;5517:148;;;;;;;;;;;;;;;;;5771:13:::1;:11;:13::i;:::-;21002:36:::2;21020:14;21036:1;21002:17;:36::i;:::-;21054:45;::::0;::::2;::::0;::::2;::::0;::::2;::::0;;;::::2;5425:258:::0;20900:206;:::o;5846:108:28:-;5923:7;:5;:7::i;:::-;5909:21;;:10;:21;;;5901:46;;;;;;;;;;;;;;;;4505:342:19;4707:4;4695:10;4689:4;4677:10;4669:6;4665:2;4658:5;4653:59;4643:188;;4745:10;4739:4;4732:24;4812:4;4806;4799:18;6753:509:28;6867:23;;;;;;;:47;;;6907:7;:5;:7::i;:::-;6894:20;;:9;:20;;;;6867:47;:77;;;;-1:-1:-1;6918:26:28;;;6939:4;6918:26;;6867:77;6846:136;;;;;;;;;;;;;;;;;7019:9;7000:15;:28;;6992:48;;;;;;;;;;;;;;;;;7051:27;7068:9;7051:16;:27::i;:::-;7088:35;7113:9;7088:24;:35::i;:::-;7133:16;7152:29;:27;:29::i;:::-;7197:58;;;9975:25:34;;;10031:2;10016:18;;10009:34;;;7133:48:28;;-1:-1:-1;7197:58:28;;;;;;9948:18:34;7197:58:28;9801:248:34;1774:2517:30;1877:28;;;1983:4;1963:24;;1959:119;;;-1:-1:-1;2011:40:30;;-1:-1:-1;2061:1:30;;-1:-1:-1;2061:1:30;2003:64;;1959:119;2255:52;;;2278:28;2255:52;2242:66;2326:26;2222:144;2088:13;;2222:144;2385:104;;-1:-1:-1;2422:40:30;;-1:-1:-1;2472:1:30;;-1:-1:-1;2472:1:30;;-1:-1:-1;2414:64:30;;-1:-1:-1;;2414:64:30;2385:104;2522:4;2502:24;;2498:118;;;-1:-1:-1;2550:39:30;;-1:-1:-1;2550:39:30;;-1:-1:-1;2550:39:30;;-1:-1:-1;2542:63:30;;-1:-1:-1;;2542:63:30;2498:118;-1:-1:-1;;2933:4:30;2910:28;;2897:42;3003:4;2980:28;;;2967:42;;2758:31;;;2861:4;2838:28;;2825:42;;3033:21;;;;:63;;-1:-1:-1;3072:24:30;3092:4;3072:17;:24;:::i;:::-;3058:11;:38;3033:63;3029:157;;;-1:-1:-1;3120:39:30;;-1:-1:-1;3120:39:30;;-1:-1:-1;3120:39:30;;-1:-1:-1;3112:63:30;;-1:-1:-1;;;;3112:63:30;3029:157;3196:25;3247:14;3225:18;:11;3256:4;3225:18;:::i;:::-;3224:37;;-1:-1:-1;3295:24:30;3315:4;3295:17;:24;:::i;:::-;3275:17;:44;3271:138;;;-1:-1:-1;3343:39:30;;-1:-1:-1;3343:39:30;;-1:-1:-1;3343:39:30;;-1:-1:-1;3335:63:30;;-1:-1:-1;;;;;3335:63:30;3271:138;3443:24;3450:17;3443:4;:24;:::i;:::-;3422:45;;3418:139;;-1:-1:-1;3491:39:30;;-1:-1:-1;3491:39:30;;-1:-1:-1;3491:39:30;;-1:-1:-1;3483:63:30;;-1:-1:-1;;;;;3483:63:30;3418:139;3571:19;3567:644;;3690:3;3660:33;;;:38;:120;;;;-1:-1:-1;3722:58:30;;;;;3660:120;3639:316;;;-1:-1:-1;3842:40:30;;-1:-1:-1;3884:17:30;;-1:-1:-1;3903:19:30;-1:-1:-1;3813:127:30;;-1:-1:-1;;;3813:127:30;3639:316;3567:644;;;561:1;3988:19;:47;:82;;;;-1:-1:-1;4039:31:30;;;3988:82;3971:240;;;-1:-1:-1;4119:40:30;;-1:-1:-1;4161:17:30;;-1:-1:-1;4180:19:30;-1:-1:-1;4095:105:30;;-1:-1:-1;;;4095:105:30;3971:240;-1:-1:-1;4229:39:30;;-1:-1:-1;4229:39:30;;-1:-1:-1;4229:39:30;;-1:-1:-1;;;;;;1774:2517:30;;;;;;:::o;1237:1144:9:-;1364:13;1721:9;1717:222;;1899:6;1890;1870:17;;:26;:35;1853:52;;1849:75;;-1:-1:-1;1907:17:9;;;1849:75;1958:12;1973:66;1998:4;2004:34;2028:9;;2004:23;:34::i;:::-;1973:24;:66::i;:::-;2347:15;2344:1;2340:23;2328:10;2325:39;2320:3;2316:49;;1237:1144;-1:-1:-1;;;;;1237:1144:9:o;26113:291:22:-;26197:12;3163:68;3230:1;3171:55;3163:68;:::i;:::-;3155:77;26281:21;;;26322:4;26315:18;-1:-1:-1;26369:4:22;26353:21;;;26346:42;26113:291::o;16340:887:19:-;16503:2;16497:4;16490:16;16560:6;16554:4;16547:20;16625:34;16619:4;16612:48;16821:4;16815;16809;16803;16800:1;16793:5;16786;16781:45;16873:7;16869:1;16862:4;16856:11;16853:18;16849:32;16839:275;;16964:7;16945:16;16936:5;16924:18;16917:26;16914:48;16911:61;16901:199;;17009:10;17003:4;16996:24;17077:4;17071;17064:18;16901:199;16839:275;17140:1;17134:4;17127:15;16340:887;;;:::o;7597:287:28:-;7660:15;7678:14;:12;:14::i;:::-;7660:32;-1:-1:-1;7711:21:28;;;7703:48;;;;;;;;;;;;;;;;;7762:28;7787:1;7762:16;:28::i;:::-;7800:27;7825:1;7800:24;:27::i;:::-;7843:34;;;;;;;;;;;7650:234;7597:287::o;25297:623:22:-;25339:19;;;3869:46;3914:1;3877:33;3869:46;:::i;:::-;25498:17;;;-1:-1:-1;3861:55:22;-1:-1:-1;25538:22:22;;;;25534:89;;-1:-1:-1;25603:8:22;25297:623;-1:-1:-1;25297:623:22:o;25534:89::-;25633:12;;4254:54;4307:1;4262:41;4254:54;:::i;:::-;25759:15;;;-1:-1:-1;4246:63:22;-1:-1:-1;25801:16:22;;;;25793:51;;;;;;;;;;;;;;;;;25898:4;25881:29;;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;25854:59;;;;;;25297:623;:::o;3484:194:28:-;3542:14;;1739:57;1795:1;1747:44;1739:57;:::i;2975:200::-;3036:14;;1540:60;1599:1;1548:47;1540:60;:::i;19032:823:19:-;19194:2;19188:4;19181:16;19251:6;19245:4;19238:20;19316:34;19310:4;19303:48;19450:4;19444;19438;19432;19429:1;19422:5;19415;19410:45;19502:7;19498:1;19491:4;19485:11;19482:18;19478:32;19468:274;;19593:7;19574:16;19565:5;19553:18;19546:26;19543:48;19540:61;19530:198;;19638:10;19632:4;19625:24;19705:4;19699;19692:18;2280:168:28;2326:14;;1091:45;1135:1;1099:32;1091:45;:::i;26466:501:22:-;26622:12;3438:60;3497:1;3446:47;3438:60;:::i;:::-;3430:69;26714:24;;;26758:4;26751:18;-1:-1:-1;26816:4:22;26800:21;;;26834:22;;;26892:1;26876:18;;26869:30;26935:1;26919:18;26912:39;26466:501::o;8429:792:28:-;8519:15;8537:14;:12;:14::i;:::-;8519:32;-1:-1:-1;8570:21:28;;;8562:48;;;;;;;;;;;;;;;;;8647:22;:20;:22::i;:::-;8628:15;:41;;8620:61;;;;;;;;;;;;;;;;;8692:18;1934:62;8776:7;8785:19;:17;:19::i;:::-;8735:70;;;;;;;;;20354:25:34;;;20427:42;20415:55;;;;20410:2;20395:18;;20388:83;20502:2;20487:18;;20480:34;20342:2;20327:18;;20152:368;8735:70:28;;;;;;;;;;;;;8725:81;;;;;;8692:114;;8816:14;8833:26;8848:10;8833:14;:26::i;:::-;8816:43;;8891:69;8932:7;8941:6;8949:10;;8891:40;:69::i;:::-;8870:132;;;;;;;;;;;;;;;;;9013:21;9037:7;:5;:7::i;:::-;9013:31;;9055:28;9080:1;9055:16;:28::i;:::-;9093:27;9118:1;9093:24;:27::i;:::-;9130:18;9140:7;9130:9;:18::i;:::-;9206:7;9164:50;;9191:13;9164:50;;;;;;;;;;;;8509:712;;;;8429:792;;:::o;27161:498:22:-;4485:2;27275:33;;;;;;;;;;27214:16;;;;;;27275:33;;;;;;;;;;-1:-1:-1;;27255:53:22;-1:-1:-1;27341:4:22;27543:22;27479:46;27483:17;;27479:46;27456:4;27446:15;;27341:4;27395:184;27627:4;27616:36;;;;;;;;;;;;:::i;:::-;27598:54;;;;-1:-1:-1;27161:498:22;-1:-1:-1;;;27161:498:22:o;4045:289:28:-;4125:23;;;4117:48;;;;;;;;;;;;;;;;;4176:12;1091:45;1135:1;1099:32;1091:45;:::i;:::-;4236:23;;;4284:43;;1083:54;;-1:-1:-1;4284:43:28;;;;1083:54;;4284:43;;1083:54;;4284:43;4107:227;4045:289;:::o;653:132:29:-;726:4;749:29;771:2;775;749:21;:29::i;:::-;742:36;;653:132;;;;;:::o;2601:183:28:-;2654:14;;1309:52;1360:1;1317:39;1309:52;:::i;2061:246:32:-;2119:7;986:19;;;;;;;;;;;;;;;;;970:37;;;;;;2212:6;:13;;;2227:6;:12;;;2241:6;:15;;;2258:18;2263:6;:12;;;2258:4;:18::i;:::-;2168:122;;;;;;21413:25:34;;;;21486:42;21474:55;;;21454:18;;;21447:83;;;;21546:18;;;21539:34;;;;21589:18;;;21582:34;21632:19;;;21625:35;21385:19;;2168:122:32;;;;;;;;;;;;;2145:155;;;;;;2138:162;;2061:246;;;:::o;6666:885:16:-;6975:22;13508:11;13649:9;13646:25;13463:14;13619:9;13616:28;13612:60;7011:73;;-1:-1:-1;12939:4:16;12933:11;;13000:16;12990:27;;12777:15;13044:4;13037:12;;13030:31;12820:18;13095:12;;;13088:33;;;;13155:9;13148:4;13141:12;;13134:31;13199:9;13192:4;13185:12;;13178:31;13248:4;13235:18;;7011:73;7218:18;7212:4;7205:32;7284:6;7278:4;7271:20;7348:10;7342:4;7335:24;7424:4;7418;7408:21;7398:31;;7533:1;7527:4;7520:15;6666:885;;;:::o;4383:240:30:-;4467:4;4484:28;4518:31;4538:10;;4518:19;:31::i;:::-;-1:-1:-1;4483:66:30;;-1:-1:-1;4576:40:30;;-1:-1:-1;4566:6:30;:50;;;;;;;;:::i;:::-;;;4383:240;-1:-1:-1;;;;4383:240:30:o;4843:187:28:-;4919:12;1309:52;1360:1;1317:39;1309:52;:::i;:::-;4987:27;;;;-1:-1:-1;4843:187:28:o;5194:196::-;5274:12;1540:60;1599:1;1548:47;1540:60;:::i;5537:237::-;5602:12;;1739:57;1795:1;1747:44;1739:57;:::i;:::-;5712:11;;5725:1;5708:19;5740:18;;;;5708:19;5537:237;-1:-1:-1;;5537:237:28:o;3600:770:9:-;3768:9;;4073:6;4117;4104:9;4089:25;;4085:30;4081:43;4069:56;4006:44;;;4025:24;4006:44;3993:58;3973:186;3970:384;;-1:-1:-1;4238:4:9;4219:24;;4206:38;4187:58;4335:4;4328:12;;;4279:15;3970:384;3600:770;;;;;:::o;4445:360::-;4582:4;4609:54;4647:4;4653:9;;4609:37;:54::i;:::-;:126;;;;4679:56;4719:4;4725:9;;4679:39;:56::i;:::-;4609:189;;;;4751:47;4782:4;4788:9;;4751:30;:47::i;:::-;4602:196;4445:360;-1:-1:-1;;;;4445:360:9:o;2479:896:31:-;2614:4;2638:21;;;2634:39;;-1:-1:-1;2668:5:31;2661:12;;2634:39;2709:2;2688:23;;;:50;;-1:-1:-1;2736:2:31;2715:23;;2688:50;2684:152;;;2805:7;2758:54;;:43;2783:5;2790:10;;2758:24;:43::i;:::-;:54;;;2754:71;;-1:-1:-1;2821:4:31;2814:11;;2754:71;2850:24;;;2869:4;2850:24;;:52;;-1:-1:-1;2878:19:31;;;;:24;2850:52;2846:70;;;-1:-1:-1;2911:5:31;2904:12;;2846:70;2927:21;2994:5;3001:10;;2951:62;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;3167:15;;2951:62;;-1:-1:-1;;;;;2951:62:31;-1:-1:-1;;3167:15:31;3137:7;3130:5;3119:76;3288:4;3282:11;3235:16;3253:4;3232:26;3219:40;;;;-1:-1:-1;3282:11:31;-1:-1:-1;3219:40:31;3319:49;;;;-1:-1:-1;3348:19:31;3330:38;;3319:49;3312:56;2479:896;-1:-1:-1;;;;;;;;2479:896:31:o;4458:257:28:-;4523:16;4542:7;:5;:7::i;:::-;4523:26;-1:-1:-1;4559:12:28;1091:45;1135:1;1099:32;1091:45;:::i;:::-;4619:23;;;4667:41;;1083:54;;-1:-1:-1;4667:41:28;;;;;;;;;;;1083:54;;4667:41;4513:202;;4458:257;:::o;9003:437:5:-;9074:11;9145:1;9183;9180;9177;9170:15;9271:1;9268;9264;9261;9257;9254;9250;9247;9244;9237:15;9230:29;9223:43;9216:57;9342:8;;-1:-1:-1;9352:8:5;;;;9338:23;9363:12;;;;9334:42;;9003:437;-1:-1:-1;9003:437:5:o;2503:292:32:-;2562:7;2581:23;2621:6;:13;2607:28;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2607:28:32;;2581:54;;2650:9;2645:92;2665:6;:13;2661:1;:17;2645:92;;;2711:15;2716:6;2723:1;2716:9;;;;;;;;:::i;:::-;;;;;;;2711:4;:15::i;:::-;2699:6;2706:1;2699:9;;;;;;;;:::i;:::-;;;;;;;;;;:27;2680:3;;2645:92;;;;2780:6;2763:24;;;;;;;;:::i;:::-;;;;;;;;;;;;;2753:35;;;;;;2746:42;;;2503:292;;;:::o;4989:273:9:-;5139:11;5170:22;:20;:22::i;:::-;5166:89;;;5203:52;5239:4;5245:9;;5203:35;:52::i;9312:5575::-;9464:11;9527:4;9642:15;;9638:911;;9709:18;9745:21;9784:15;9817:25;9860:12;9890:14;:12;:14::i;:::-;-1:-1:-1;10003:4:9;9997:11;;10198;;10191:4;10181:15;;;10171:39;10157:12;;;10150:61;10279:14;;10259:18;;;;10249:45;;;;10242:4;10235:12;;10228:67;10326:4;10319:12;;10312:29;;;;10379:35;;10372:4;10365:12;;10358:57;10446:4;10439:12;;10432:26;10495:4;10488:12;;10475:26;;9997:11;-1:-1:-1;;;;;;;9638:911:9;10639:4;10633:11;10872:1;10854:16;10850:24;10832:16;10828:47;10815:61;10810:3;10806:71;10939:1;10933:4;10929:12;11063:1;11045:16;11041:24;11023:16;11019:47;11124:6;11118:4;11111:20;11202:4;11199:1;11193:4;11180:27;11610:1;11603:9;11599:1;11581:16;11578:23;11575:38;11568:4;11561;11555;11545:21;11541:32;11538:76;11535:434;;;11642:1;11637:6;;11747:23;11744:1;11737:34;11805:4;11799;11792:18;11877:4;11874:1;11864:18;11856:26;;11946:5;;;;11535:434;12146:16;12143:1;12136:27;12251:4;12248:1;12244:12;12349:1;12342:4;12339:1;12335:12;12332:1;12319:32;12426:2;12415:9;;;12408:21;;;12503:17;;12497:24;12494:1;12489:33;12524:2;12486:41;12476:669;;12560:1;12658;12654;12651;12647:9;12643:17;12628:239;12706:1;12703;12699:9;12694:14;;12830:2;12824:1;12821;12817:9;12811:16;12808:1;12803:25;12800:33;12796:1;12793;12790:8;12787:47;12628:239;12777:68;12632:30;12900:1;12897;12893:9;12888:14;;13014:1;13010;13003:4;13000:1;12996:12;12992:20;12989:1;12976:40;13080:2;13076:1;13073;13069:9;13061:22;;12476:669;13264:33;13259:1;13253:8;13250:1;13245:17;13241:57;13395:178;13431:2;13426:1;13420:8;13417:1;13412:17;13409:25;13395:178;;13525:1;13508:14;13503:1;13497:8;13494:1;13489:17;13485:38;13482:45;13477:50;;13450:1;13447;13443:9;13438:14;;13395:178;;;13600:30;13597:1;13590:41;13704:34;13697:4;13694:1;13690:12;13683:56;13777:34;13770:4;13767:1;13763:12;13756:56;13841:4;13838:1;13834:12;13829:17;;13893:1;13886:4;13883:1;13879:12;13876:1;13863:32;14025:4;14022:1;14019;14006:24;14128:9;;;14124:17;;;14111:31;;14101:42;;14343:4;14330:18;;14324:4;14317:32;14519:1;14515:9;14509:4;14505:20;14499:4;14489:37;;-1:-1:-1;;14563:24:9;;;;10890:3760;-1:-1:-1;14670:4:9;14663:15;14737:1;14733:48;;14761:20;14776:4;14761:14;:20::i;:::-;14754:27;;14733:48;14828:52;14864:4;14870:9;;14828:35;:52::i;:::-;14819:61;9312:5575;-1:-1:-1;;;;;9312:5575:9:o;15068:2123::-;15211:11;15460;15456:1729;;15594:10;15582;15575:30;15723:42;15865:4;15853:10;15841;15829;15826:1;15818:6;15807:63;15803:68;16007:10;16001:17;15991:1095;;16057:4;16051:11;16136:10;16124;16117:30;16219:1;16213:4;16206:15;16304:4;16298;16291:18;16375:10;16362;16354:6;16350:23;16347:39;16537:9;16530:5;16527:20;16523:1;16517:4;16514:11;16511:37;16508:54;;;16551:9;16508:54;16984:10;16972;16966:4;16960;16949:9;16938;16927:68;-1:-1:-1;;17024:4:9;17017:15;15991:1095;;17122:52;17158:4;17164:9;;17122:35;:52::i;9664:1284:15:-;9779:14;9896:4;9890:11;9934:16;9972:2;9967:297;;;;10286:2;10281:204;;;;10512:5;;;9967:297;10042:4;10020:27;;;10007:41;10090:3;10086:12;;;10100:2;10082:21;10069:35;;;10146:30;;10140:4;10133:44;10219:18;;10213:4;10206:32;9967:297;;10281:204;10367:4;10349:16;10345:27;10332:41;10329:1;10324:50;10318:4;10311:64;10441:4;10423:16;10417:4;10404:42;9927:592;;10549:4;10543;10536:18;10614:4;10608;10602;10596;10593:1;10586:5;10575:44;10571:49;10650:1;10644:4;10637:15;10810:16;10804:4;10800:27;10794:34;10784:44;;10858:1;10852:4;10845:15;9875:1057;9879:24;9664:1284;;;;;:::o;2948:306:32:-;3112:12;;3142:11;;;;;3181:10;;;;;3171:21;;;;;;3053:184;;446:58;3053:184;;;22753:25:34;;;;22826:42;22814:55;;;22794:18;;;22787:83;22886:18;;;22879:34;22929:18;;;22922:34;;;;3004:7:32;;22725:19:34;;3053:184:32;22522:440:34;30670:125:22;30742:4;30779:9;:7;:9::i;:::-;30765:23;;:10;:23;;;30758:30;;30670:125;:::o;31287:695::-;31579:29;31573:36;31640:27;31634:34;31699:27;31693:34;31436:4;;31573:36;31634:34;31751:38;;;31747:136;;31812:60;31836:4;31842:8;31852;31862:9;;31812:23;:60::i;:::-;31805:67;;;;;;;31747:136;31900:75;31941:16;30472:24;30466:31;;30341:172;31941:16;31959:4;31965:9;;31900:40;:75::i;:::-;31893:82;31287:695;-1:-1:-1;;;;;;;31287:695:22:o;977:329:29:-;1106:4;1127:12;1141:35;1180:34;1203:10;;1180:22;:34::i;:::-;1126:88;;;;1231:7;:68;;;;;1242:57;1271:5;1258:19;;;;;;23096::34;;23140:2;23131:12;;22967:182;1258:19:29;;;;;;;;;;;;;1279:4;1242:57;;;:::i;:::-;1285:2;1289;1293:5;1242:15;:57::i;12020:1702:33:-;12112:12;12215;12326:4;12311:19;;12307:45;;;12340:5;12332:20;;;;12307:45;12441:31;12491:12;:5;12497:4;12491:5;;:12;:::i;:::-;12483:21;;;:::i;:::-;12475:30;-1:-1:-1;12475:30:33;12562:12;:5;12568:4;12562:5;;:12;:::i;:::-;12554:21;;;:::i;:::-;12546:30;-1:-1:-1;12850:23:33;12828:19;12843:4;12828:5;:19;:::i;:::-;:45;:107;;;-1:-1:-1;12915:20:33;12893:19;12908:4;12893:5;:19;:::i;:::-;:42;12828:107;12811:180;;;12968:5;12960:20;;;;;;12811:180;13093:31;13143;:5;13149:23;13143:5;;:31;:::i;:::-;13135:40;;;:::i;:::-;13127:49;-1:-1:-1;13127:49:33;13233:28;:5;13239:20;13233:5;;:28;:::i;:::-;13225:37;;;:::i;:::-;13217:46;-1:-1:-1;13546:23:33;13539:4;13498:38;13513:23;13498:5;:38;:::i;:::-;:45;;;;:::i;:::-;:71;:156;;;-1:-1:-1;13634:20:33;13627:4;13589:35;13604:20;13589:5;:35;:::i;:::-;:42;;;;:::i;:::-;:65;13498:156;13481:204;;;13673:5;13665:20;;;;;;;;13481:204;13704:4;13696:19;;;;;;12020:1702;;;;;:::o;5388:1221::-;5563:4;5805:2;5773:4;:22;;;:29;:34;:112;;;;;5823:62;5849:4;:19;;;5870:4;:14;;;7416:41;;;7440:4;7416:41;7410:48;7184:21;;7222:2;7207:18;;;-1:-1:-1;7460:15:33;7406:70;;;;7554:23;7244:351;7101:508;;6893:732;5823:62;5773:205;;;;;5907:71;5926:4;:19;;;5947:4;:19;;;5968:9;5907:18;:71::i;:::-;5773:281;;;;;6000:54;6027:4;:22;;;6050:2;6027:26;;;;;;;;:::i;:::-;;;;;9066:18;9035:26;;;9034:50;;8939:152;6000:54;5773:374;;;;;6078:9;6077:10;:69;;;;6091:55;6119:4;:22;;;6142:2;6119:26;;;;;;;;:::i;:::-;;;;;10147:18;10116:26;;;10115:50;;10019:153;6091:55;5773:458;;;;;6169:62;6204:4;:22;;;6227:2;6204:26;;;;;;;;:::i;:::-;;;;;;;6169:34;:62::i;:::-;5773:823;;;;;6337:259;6368:146;6418:4;:22;;;6454:34;6467:4;:19;;;6454:34;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6388:116;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;6368:146;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6528:6;;6548;;;;6568:2;6584;6337:17;:259::i;:::-;5766:830;5388:1221;-1:-1:-1;;;;;;5388:1221:33:o;7861:655::-;8019:4;8079:31;8156:27;8173:9;8156:16;:27::i;:::-;8125:64;;;;;;;;:::i;:::-;;;;;;;;;;;;;8079:110;;8199:29;8251:181;8286:14;8319;8351:67;8370:14;8392:17;8386:31;8351:18;:67::i;:::-;8251:11;:181::i;:::-;8199:243;;8460:49;8474:15;8491:17;8460:13;:49::i;11389:209::-;11469:4;11536:18;11505:26;;;11504:50;;:87;;-1:-1:-1;;11567:18:33;11559:26;11558:33;;11389:209::o;3586:328:5:-;3688:4;3705:10;3717:14;3735:33;3752:1;3755;3758;3761:2;3765;3735:16;:33::i;:::-;3704:64;;;;3782:9;3778:130;;;-1:-1:-1;3814:5:5;-1:-1:-1;3807:12:5;;3778:130;3857:40;;;;;3890:5;3857:40;;;4584:74:34;4557:18;;3857:40:5;4438:226:34;746:127:0;807:13;846:19;854:4;860;846:7;:19::i;3912:199:6:-;3980:7;1830:5;;;1859:6;;;;;1888:28;;4086:17;5328:5;;;5327:36;;5322:42;4061:43;5087:294;3858:448:1;3945:12;3995:28;4004:3;4009:6;:13;3995:8;:28::i;:::-;3989:34;;4041:20;4050:5;4057:3;4041:8;:20::i;:::-;4033:28;-1:-1:-1;4101:19:1;4133:11;4033:28;4133:3;:11;:::i;:::-;4123:22;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4123:22:1;;4101:44;;4259:5;4254:3;4250:15;4242:5;4235:4;4227:6;4223:17;4219:29;4212:4;4204:6;4200:17;4194:72;4293:6;3858:448;-1:-1:-1;;;;3858:448:1:o;4976:133:4:-;5048:4;5071:31;5089:1;5099;5071:11;:31::i;4036:1532:5:-;4187:10;4199:14;4230:24;4249:1;4252;4230:18;:24::i;:::-;4229:25;:54;;;;4259:24;4276:2;4280;4259:16;:24::i;:::-;4258:25;4229:54;4225:1337;;;-1:-1:-1;4307:5:5;;-1:-1:-1;4314:4:5;4299:20;;4225:1337;4411:25;4420:1;4423;4426;4429:2;4433;4411:8;:25::i;:::-;4407:1155;;;-1:-1:-1;4460:4:5;;-1:-1:-1;4460:4:5;4452:19;;4407:1155;4921:462;4947:66;5051;5135;5219;5303;4921:8;:462::i;:::-;4533:1029;;;-1:-1:-1;5416:5:5;;-1:-1:-1;5423:4:5;5408:20;;4533:1029;-1:-1:-1;5514:5:5;;-1:-1:-1;5514:5:5;4533:1029;4036:1532;;;;;;;;:::o;1542:5196:0:-;1625:19;1863:4;:11;1878:1;1863:16;1859:31;;-1:-1:-1;1881:9:0;;;;;;;;;-1:-1:-1;1881:9:0;;;;1859:31;2941:20;2964:18;:76;;3038:1;3019:4;:11;3033:1;3019:15;;;;:::i;:::-;3018:21;;;;:::i;:::-;3013:27;;:1;:27;:::i;:::-;2964:76;;;3009:1;2990:4;:11;2986:1;:15;;;;:::i;:::-;:19;;3004:1;2986:19;:::i;:::-;2985:25;;;;:::i;:::-;2941:99;;3106:4;3100:11;3090:21;;4065:34;4059:4;4052:48;4190:5;4170:18;4166:30;4130:34;4126:71;4120:4;4113:85;4297:4;4289:6;4285:17;4347:12;4336:9;4332:28;4388:4;4435;4429:11;4423:4;4419:22;4683:4;4675:6;4671:17;4725:8;4719:15;4764:4;4754:8;4747:22;4836:1167;4855:6;4846:7;4843:19;4836:1167;;;4943:1;4934:7;4930:15;4919:26;;4981:7;4975:14;5553:4;5545:5;5541:2;5537:14;5533:25;5527:32;5516:9;5508:52;5605:1;5594:9;5590:17;5577:30;;5680:4;5672:5;5668:2;5664:14;5660:25;5654:32;5643:9;5635:52;5732:1;5721:9;5717:17;5704:30;;5806:4;5798:5;5795:1;5791:13;5787:24;5781:31;5770:9;5762:51;5858:1;5847:9;5843:17;5830:30;;5924:4;5917:5;5913:16;5907:23;5896:9;5888:43;;5976:1;5965:9;5961:17;5948:30;;4836:1167;;;6064:28;;-1:-1:-1;6116:18:0;;-1:-1:-1;6106:461:0;;6306:1;6299:4;6293:11;6289:19;6330:1;6325:132;;;;6479:1;6474:79;;;;6282:271;;6325:132;6381:4;6377:1;6366:9;6362:17;6354:32;6434:4;6430:1;6419:9;6415:17;6407:32;6325:132;;6474:79;6530:4;6526:1;6515:9;6511:17;6503:32;6282:271;;6106:461;6658:28;;;-1:-1:-1;6706:4:0;6699:23;1542:5196;;;;:::o;5633:111:6:-;5691:7;5328:5;;;5725;;;5327:36;5322:42;;5717:20;5087:294;10418:152:1;10488:4;10523:1;:8;10511:1;:8;:20;:52;;;;-1:-1:-1;;10551:12:1;;;;;;;10535;;;;;;;;;;:28;;10418:152::o;9618:176:5:-;9690:4;9713:14;;;;;:32;;-1:-1:-1;1698:66:5;9731:14;;9713:32;:50;;;;-1:-1:-1;9749:14:5;;;9713:50;:74;;;;-1:-1:-1;;2326:66:5;-1:-1:-1;9767:20:5;;9618:176;-1:-1:-1;9618:176:5:o;5703:1121::-;5800:12;5970:4;5964:11;6000:1;5995:3;5988:14;6038:1;6031:4;6026:3;6022:14;6015:25;6076:1;6069:4;6064:3;6060:14;6053:25;6114:2;6107:4;6102:3;6098:14;6091:26;6153:2;6146:4;6141:3;6137:14;6130:26;6585:1;6579:4;6572:15;6725:4;6719;6713;6708:3;6701:5;6694;6683:47;6673:100;;6750:9;6673:100;-1:-1:-1;;6803:4:5;6797:11;;5703:1121;-1:-1:-1;;;;;5703:1121:5:o;14:154:34:-;100:42;93:5;89:54;82:5;79:65;69:93;;158:1;155;148:12;69:93;14:154;:::o;173:367::-;241:6;249;302:2;290:9;281:7;277:23;273:32;270:52;;;318:1;315;308:12;270:52;357:9;344:23;376:31;401:5;376:31;:::i;:::-;426:5;504:2;489:18;;;;476:32;;-1:-1:-1;;;173:367:34:o;545:347::-;596:8;606:6;660:3;653:4;645:6;641:17;637:27;627:55;;678:1;675;668:12;627:55;-1:-1:-1;701:20:34;;744:18;733:30;;730:50;;;776:1;773;766:12;730:50;813:4;805:6;801:17;789:29;;865:3;858:4;849:6;841;837:19;833:30;830:39;827:59;;;882:1;879;872:12;897:523;976:6;984;992;1045:2;1033:9;1024:7;1020:23;1016:32;1013:52;;;1061:1;1058;1051:12;1013:52;1106:23;;;-1:-1:-1;1204:2:34;1189:18;;1176:32;1231:18;1220:30;;1217:50;;;1263:1;1260;1253:12;1217:50;1302:58;1352:7;1343:6;1332:9;1328:22;1302:58;:::i;:::-;897:523;;1379:8;;-1:-1:-1;1276:84:34;;-1:-1:-1;;;;897:523:34:o;1678:388::-;1746:6;1754;1807:2;1795:9;1786:7;1782:23;1778:32;1775:52;;;1823:1;1820;1813:12;1775:52;1862:9;1849:23;1881:31;1906:5;1881:31;:::i;:::-;1931:5;-1:-1:-1;1988:2:34;1973:18;;1960:32;2001:33;1960:32;2001:33;:::i;:::-;2053:7;2043:17;;;1678:388;;;;;:::o;2071:508::-;2148:6;2156;2164;2217:2;2205:9;2196:7;2192:23;2188:32;2185:52;;;2233:1;2230;2223:12;2185:52;2272:9;2259:23;2291:31;2316:5;2291:31;:::i;:::-;2341:5;-1:-1:-1;2398:2:34;2383:18;;2370:32;2411:33;2370:32;2411:33;:::i;:::-;2071:508;;2463:7;;-1:-1:-1;;;2543:2:34;2528:18;;;;2515:32;;2071:508::o;2766:348::-;2808:3;2846:5;2840:12;2873:6;2868:3;2861:19;2929:6;2922:4;2915:5;2911:16;2904:4;2899:3;2895:14;2889:47;2981:1;2974:4;2965:6;2960:3;2956:16;2952:27;2945:38;3103:4;3033:66;3028:2;3020:6;3016:15;3012:88;3007:3;3003:98;2999:109;2992:116;;;2766:348;;;;:::o;3119:1314::-;3516:66;3508:6;3504:79;3493:9;3486:98;3620:3;3615:2;3604:9;3600:18;3593:31;3467:4;3647:46;3688:3;3677:9;3673:19;3665:6;3647:46;:::i;:::-;3741:9;3733:6;3729:22;3724:2;3713:9;3709:18;3702:50;3775:33;3801:6;3793;3775:33;:::i;:::-;3839:2;3824:18;;3817:34;;;3900:42;3888:55;;3882:3;3867:19;;3860:84;3975:3;3960:19;;3953:35;;;4025:22;;;4019:3;4004:19;;3997:51;4097:13;;4119:22;;;4169:2;4195:15;;;;-1:-1:-1;4157:15:34;;;;-1:-1:-1;4238:169:34;4252:6;4249:1;4246:13;4238:169;;;4313:13;;4301:26;;4356:2;4382:15;;;;4347:12;;;;4274:1;4267:9;4238:169;;;-1:-1:-1;4424:3:34;;3119:1314;-1:-1:-1;;;;;;;;;;;3119:1314:34:o;4669:226::-;4728:6;4781:2;4769:9;4760:7;4756:23;4752:32;4749:52;;;4797:1;4794;4787:12;4749:52;-1:-1:-1;4842:23:34;;4669:226;-1:-1:-1;4669:226:34:o;4900:409::-;4970:6;4978;5031:2;5019:9;5010:7;5006:23;5002:32;4999:52;;;5047:1;5044;5037:12;4999:52;5087:9;5074:23;5120:18;5112:6;5109:30;5106:50;;;5152:1;5149;5142:12;5106:50;5191:58;5241:7;5232:6;5221:9;5217:22;5191:58;:::i;:::-;5268:8;;5165:84;;-1:-1:-1;4900:409:34;-1:-1:-1;;;;4900:409:34:o;5496:247::-;5555:6;5608:2;5596:9;5587:7;5583:23;5579:32;5576:52;;;5624:1;5621;5614:12;5576:52;5663:9;5650:23;5682:31;5707:5;5682:31;:::i;6072:367::-;6135:8;6145:6;6199:3;6192:4;6184:6;6180:17;6176:27;6166:55;;6217:1;6214;6207:12;6166:55;-1:-1:-1;6240:20:34;;6283:18;6272:30;;6269:50;;;6315:1;6312;6305:12;6269:50;6352:4;6344:6;6340:17;6328:29;;6412:3;6405:4;6395:6;6392:1;6388:14;6380:6;6376:27;6372:38;6369:47;6366:67;;;6429:1;6426;6419:12;6444:1045;6584:6;6592;6600;6608;6616;6624;6677:3;6665:9;6656:7;6652:23;6648:33;6645:53;;;6694:1;6691;6684:12;6645:53;6733:9;6720:23;6752:31;6777:5;6752:31;:::i;:::-;6802:5;-1:-1:-1;6859:2:34;6844:18;;6831:32;6872:33;6831:32;6872:33;:::i;:::-;6924:7;-1:-1:-1;6982:2:34;6967:18;;6954:32;7009:18;6998:30;;6995:50;;;7041:1;7038;7031:12;6995:50;7080:70;7142:7;7133:6;7122:9;7118:22;7080:70;:::i;:::-;7169:8;;-1:-1:-1;7054:96:34;-1:-1:-1;;7257:2:34;7242:18;;7229:32;7286:18;7273:32;;7270:52;;;7318:1;7315;7308:12;7270:52;7357:72;7421:7;7410:8;7399:9;7395:24;7357:72;:::i;:::-;6444:1045;;;;-1:-1:-1;6444:1045:34;;-1:-1:-1;6444:1045:34;;7448:8;;6444:1045;-1:-1:-1;;;6444:1045:34:o;7494:466::-;7571:6;7579;7587;7640:2;7628:9;7619:7;7615:23;7611:32;7608:52;;;7656:1;7653;7646:12;7608:52;-1:-1:-1;;7701:23:34;;;7821:2;7806:18;;7793:32;;-1:-1:-1;7924:2:34;7909:18;;;7896:32;;7494:466;-1:-1:-1;7494:466:34:o;7965:689::-;8070:6;8078;8086;8139:2;8127:9;8118:7;8114:23;8110:32;8107:52;;;8155:1;8152;8145:12;8107:52;8195:9;8182:23;8228:18;8220:6;8217:30;8214:50;;;8260:1;8257;8250:12;8214:50;8283:22;;8339:3;8321:16;;;8317:26;8314:46;;;8356:1;8353;8346:12;8314:46;8379:2;-1:-1:-1;8434:2:34;8419:18;;8406:32;8463:18;8450:32;;8447:52;;;8495:1;8492;8485:12;8659:184;8729:6;8782:2;8770:9;8761:7;8757:23;8753:32;8750:52;;;8798:1;8795;8788:12;8750:52;-1:-1:-1;8821:16:34;;8659:184;-1:-1:-1;8659:184:34:o;8848:::-;8900:77;8897:1;8890:88;8997:4;8994:1;8987:15;9021:4;9018:1;9011:15;9037:125;9102:9;;;9123:10;;;9120:36;;;9136:18;;:::i;9167:184::-;9219:77;9216:1;9209:88;9316:4;9313:1;9306:15;9340:4;9337:1;9330:15;9668:128;9735:9;;;9756:11;;;9753:37;;;9770:18;;:::i;10054:358::-;10154:6;10149:3;10142:19;10124:3;10184:66;10176:6;10173:78;10170:98;;;10264:1;10261;10254:12;10170:98;10300:6;10297:1;10293:14;10352:8;10345:5;10338:4;10333:3;10329:14;10316:45;10381:18;;;;10401:4;10377:29;;10054:358;-1:-1:-1;;;10054:358:34:o;10417:985::-;10862:42;10854:6;10850:55;10839:9;10832:74;10954:42;10946:6;10942:55;10937:2;10926:9;10922:18;10915:83;11034:3;11029:2;11018:9;11014:18;11007:31;10813:4;11061:74;11130:3;11119:9;11115:19;11107:6;11099;11061:74;:::i;:::-;11183:9;11175:6;11171:22;11166:2;11155:9;11151:18;11144:50;11217:61;11271:6;11263;11255;11217:61;:::i;:::-;11315:22;;;11309:3;11294:19;;;11287:51;;;;-1:-1:-1;;11362:1:34;11347:17;;11393:2;11381:15;;10417:985;-1:-1:-1;;;;;;10417:985:34:o;11407:519::-;11684:2;11673:9;11666:21;11647:4;11710:73;11779:2;11768:9;11764:18;11756:6;11748;11710:73;:::i;:::-;11831:9;11823:6;11819:22;11814:2;11803:9;11799:18;11792:50;11859:61;11913:6;11905;11897;11859:61;:::i;11931:629::-;12049:4;12055:6;12115:11;12102:25;12205:66;12194:8;12178:14;12174:29;12170:102;12150:18;12146:127;12136:155;;12287:1;12284;12277:12;12136:155;12314:33;;12366:20;;;-1:-1:-1;12409:18:34;12398:30;;12395:50;;;12441:1;12438;12431:12;12395:50;12474:4;12462:17;;-1:-1:-1;12525:1:34;12521:14;;;12505;12501:35;12491:46;;12488:66;;;12550:1;12547;12540:12;12565:184;12617:77;12614:1;12607:88;12714:4;12711:1;12704:15;12738:4;12735:1;12728:15;12754:253;12826:2;12820:9;12868:4;12856:17;;12903:18;12888:34;;12924:22;;;12885:62;12882:88;;;12950:18;;:::i;:::-;12986:2;12979:22;12754:253;:::o;13012:251::-;13084:2;13078:9;13126:2;13114:15;;13159:18;13144:34;;13180:22;;;13141:62;13138:88;;;13206:18;;:::i;13268:253::-;13340:2;13334:9;13382:4;13370:17;;13417:18;13402:34;;13438:22;;;13399:62;13396:88;;;13464:18;;:::i;13526:334::-;13597:2;13591:9;13653:2;13643:13;;13658:66;13639:86;13627:99;;13756:18;13741:34;;13777:22;;;13738:62;13735:88;;;13803:18;;:::i;:::-;13839:2;13832:22;13526:334;;-1:-1:-1;13526:334:34:o;13865:688::-;13907:5;13960:3;13953:4;13945:6;13941:17;13937:27;13927:55;;13978:1;13975;13968:12;13927:55;14018:6;14005:20;14057:4;14049:6;14045:17;14086:1;14108;14132:18;14124:6;14121:30;14118:56;;;14154:18;;:::i;:::-;-1:-1:-1;14211:2:34;14199:15;;14216:66;14195:88;14285:4;14191:99;14310:21;14191:99;14310:21;:::i;:::-;14299:32;;;14356:6;14347:7;14340:23;14396:3;14387:6;14382:3;14378:16;14375:25;14372:45;;;14413:1;14410;14403:12;14372:45;14464:6;14459:3;14452:4;14443:7;14439:18;14426:45;14520:1;14491:20;;;14513:4;14487:31;14480:42;;;;-1:-1:-1;14495:7:34;13865:688;-1:-1:-1;;;13865:688:34:o;14558:2230::-;14658:9;14717:4;14709:5;14693:14;14689:26;14685:37;14682:57;;;14735:1;14732;14725:12;14682:57;14763:22;;:::i;:::-;14822:5;14809:19;14837:33;14862:7;14837:33;:::i;:::-;14879:24;;14972:2;14961:14;;;14948:28;14992:16;;;14985:33;15087:2;15076:14;;;15063:28;15107:16;;;15100:33;15180:2;15169:14;;15156:28;15207:18;15196:30;;15193:50;;;15239:1;15236;15229:12;15193:50;15262:18;;15318:14;15311:4;15303:13;;15299:34;15289:62;;15347:1;15344;15337:12;15289:62;15387:2;15374:16;15413:18;15405:6;15402:30;15399:56;;;15435:18;;:::i;:::-;15481:6;15478:1;15474:14;15508:28;15532:2;15528;15524:11;15508:28;:::i;:::-;15570:19;;;15614:2;15644:11;;;15640:20;;;15605:12;;;;15683:14;15672:26;;15669:46;;;15711:1;15708;15701:12;15669:46;15743:2;15739;15735:11;15724:22;;15755:958;15771:6;15766:3;15763:15;15755:958;;;15857:3;15844:17;15893:18;15880:11;15877:35;15874:55;;;15925:1;15922;15915:12;15874:55;15952:20;;16090:2;16000:14;15996:23;;;16021:66;15992:96;15988:105;15985:125;;;16106:1;16103;16096:12;15985:125;16138:22;;:::i;:::-;16209:2;16205;16201:11;16188:25;16226:33;16251:7;16226:33;:::i;:::-;16272:24;;16370:2;16362:11;;16349:25;16407:2;16394:16;;16387:33;16470:2;16462:11;;16449:25;16503:18;16490:32;;16487:52;;;16535:1;16532;16525:12;16487:52;16577:60;16622:14;16617:2;16606:8;16602:2;16598:17;16594:26;16577:60;:::i;:::-;16572:2;16559:16;;16552:86;-1:-1:-1;16651:20:34;;-1:-1:-1;16700:2:34;15788:12;;;;16691;;;;15755:958;;;16742:2;16729:16;;16722:31;-1:-1:-1;16733:7:34;;14558:2230;-1:-1:-1;;;;;14558:2230:34:o;16793:184::-;16845:77;16842:1;16835:88;16942:4;16939:1;16932:15;16966:4;16963:1;16956:15;16982:381;17073:4;17131:11;17118:25;17221:66;17210:8;17194:14;17190:29;17186:102;17166:18;17162:127;17152:155;;17303:1;17300;17293:12;17152:155;17324:33;;;;;16982:381;-1:-1:-1;;16982:381:34:o;17368:580::-;17445:4;17451:6;17511:11;17498:25;17601:66;17590:8;17574:14;17570:29;17566:102;17546:18;17542:127;17532:155;;17683:1;17680;17673:12;17532:155;17710:33;;17762:20;;;-1:-1:-1;17805:18:34;17794:30;;17791:50;;;17837:1;17834;17827:12;17791:50;17870:4;17858:17;;-1:-1:-1;17901:14:34;17897:27;;;17887:38;;17884:58;;;17938:1;17935;17928:12;17953:271;18136:6;18128;18123:3;18110:33;18092:3;18162:16;;18187:13;;;18162:16;17953:271;-1:-1:-1;17953:271:34:o;18229:409::-;18432:6;18421:9;18414:25;18487:42;18479:6;18475:55;18470:2;18459:9;18455:18;18448:83;18567:2;18562;18551:9;18547:18;18540:30;18395:4;18587:45;18628:2;18617:9;18613:18;18605:6;18587:45;:::i;18643:325::-;18731:6;18726:3;18719:19;18783:6;18776:5;18769:4;18764:3;18760:14;18747:43;;18835:1;18828:4;18819:6;18814:3;18810:16;18806:27;18799:38;18701:3;18957:4;18887:66;18882:2;18874:6;18870:15;18866:88;18861:3;18857:98;18853:109;18846:116;;18643:325;;;;:::o;18973:476::-;19204:6;19193:9;19186:25;19247:2;19242;19231:9;19227:18;19220:30;19167:4;19273:61;19330:2;19319:9;19315:18;19307:6;19299;19273:61;:::i;:::-;19382:9;19374:6;19370:22;19365:2;19354:9;19350:18;19343:50;19410:33;19436:6;19428;19410:33;:::i;19896:251::-;19966:6;20019:2;20007:9;19998:7;19994:23;19990:32;19987:52;;;20035:1;20032;20025:12;19987:52;20067:9;20061:16;20086:31;20111:5;20086:31;:::i;20525:372::-;20612:6;20620;20673:2;20661:9;20652:7;20648:23;20644:32;20641:52;;;20689:1;20686;20679:12;20641:52;20721:9;20715:16;20740:31;20765:5;20740:31;:::i;:::-;20861:2;20846:18;;;;20840:25;20790:5;;20840:25;;-1:-1:-1;;;20525:372:34:o;21671:315::-;21856:6;21845:9;21838:25;21899:2;21894;21883:9;21879:18;21872:30;21819:4;21919:61;21976:2;21965:9;21961:18;21953:6;21945;21919:61;:::i;21991:526::-;22209:13;;22152:3;;22183;;22278:4;22266:17;;22152:3;22311:179;22325:6;22322:1;22319:13;22311:179;;;22388:13;;22374:28;;22435:4;22424:16;;;;22463:17;;;;22347:1;22340:9;22311:179;;;-1:-1:-1;22506:5:34;;21991:526;-1:-1:-1;;;;;21991:526:34:o;23154:1122::-;23268:9;23327:4;23319:5;23303:14;23299:26;23295:37;23292:57;;;23345:1;23342;23335:12;23292:57;23373:22;;:::i;:::-;23440:19;;23468:24;;23561:2;23550:14;;;23537:28;23581:16;;;23574:33;23676:2;23665:14;;;23652:28;23696:16;;;23689:33;23791:2;23780:14;;;23767:28;23811:16;;;23804:33;23884:3;23873:15;;23860:29;23912:18;23901:30;;23898:50;;;23944:1;23941;23934:12;23898:50;23983:52;24020:14;24011:6;24004:5;24000:18;23983:52;:::i;:::-;23977:3;23968:7;23964:17;23957:79;;24085:3;24078:5;24074:15;24061:29;24115:18;24105:8;24102:32;24099:52;;;24147:1;24144;24137:12;24099:52;24186:54;24225:14;24214:8;24207:5;24203:20;24186:54;:::i;:::-;24180:3;24167:17;;24160:81;-1:-1:-1;24171:7:34;23154:1122;-1:-1:-1;;23154:1122:34:o;24281:331::-;24386:9;24397;24439:8;24427:10;24424:24;24421:44;;;24461:1;24458;24451:12;24421:44;24490:6;24480:8;24477:20;24474:40;;;24510:1;24507;24500:12;24474:40;-1:-1:-1;;24536:23:34;;;24581:25;;;;;-1:-1:-1;24281:331:34:o;24617:315::-;24737:19;;24776:2;24768:11;;24765:161;;;24848:66;24837:2;24833:12;;;24830:1;24826:20;24822:93;24811:105;24617:315;;;;:::o;24937:211::-;24978:3;25016:5;25010:12;25060:6;25053:4;25046:5;25042:16;25037:3;25031:36;25122:1;25086:16;;25111:13;;;-1:-1:-1;25086:16:34;;24937:211;-1:-1:-1;24937:211:34:o;25153:189::-;25282:3;25307:29;25332:3;25324:6;25307:29;:::i;25582:283::-;25739:3;25770:29;25795:3;25787:6;25770:29;:::i;:::-;25808:21;;;-1:-1:-1;;25856:2:34;25845:14;;25582:283;-1:-1:-1;25582:283:34:o;25870:594::-;26212:66;26207:3;26200:79;26182:3;26301:38;26335:2;26330:3;26326:12;26318:6;26301:38;:::i;:::-;26362:66;26348:81;;26456:1;26445:13;;25870:594;-1:-1:-1;;;25870:594:34:o;26469:274::-;26509:1;26535;26525:189;;26570:77;26567:1;26560:88;26671:4;26668:1;26661:15;26699:4;26696:1;26689:15;26525:189;-1:-1:-1;26728:9:34;;26469:274::o;26748:168::-;26821:9;;;26852;;26869:15;;;26863:22;;26849:37;26839:71;;26890:18;;:::i","linkReferences":{},"immutableReferences":{"10366":[{"start":12486,"length":32}],"10368":[{"start":12521,"length":32}],"10370":[{"start":12601,"length":32}],"10372":[{"start":12639,"length":32}],"10374":[{"start":12453,"length":32}]}}}}}}},"signatures":{"function":[{"signature":"authorizePasskeySessionSigner(bytes32,bytes32,uint256)","signatureHash4":"0xe1f93ac5","signatureHash32":"0xe1f93ac512bb1044da195af5d34e505c5ad8c4bf1a59276105809f5c47952b18"},{"signature":"authorizeSessionSigner(address,uint256)","signatureHash4":"0x24017fae","signatureHash32":"0x24017fae09dd286e0b5ad411d1e4aed48280c0aab2053bba88ed546564542eb6"},{"signature":"cancelOwnershipHandover()","signatureHash4":"0x54d1f13d","signatureHash32":"0x54d1f13d76f000aa202485e9c4b750a3fb26985ca34157c621201e1375bcbfac"},{"signature":"completeOwnershipHandover(bytes)","signatureHash4":"0xa338d217","signatureHash32":"0xa338d217a00928fa33cee6960c4b9d24090f181595cc926b617cc6f203c0654e"},{"signature":"eip712Domain()","signatureHash4":"0x84b0196e","signatureHash32":"0x84b0196e4b78e1918928c3b71e1f57a2bfc6d4a368fe07990ccc1367172719fb"},{"signature":"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)","signatureHash4":"0xe8c8bf64","signatureHash32":"0xe8c8bf642856aac9fc6bc2a8de259833da048d60ad1288c7678d415090e54772"},{"signature":"factory()","signatureHash4":"0xc45a0155","signatureHash32":"0xc45a01550ceb4bc5c6b2e6f722b5033a03078f9bd6673457375ba94c26ac1cf0"},{"signature":"id()","signatureHash4":"0xaf640d0f","signatureHash32":"0xaf640d0f8fdda2440c97539d4d0c782027af8ec45ed3bbceab6e99fcaeb97ce1"},{"signature":"initialize(address)","signatureHash4":"0xc4d66de8","signatureHash32":"0xc4d66de8473e8f74cb05df264ee8262da16b56717ef1f05d73bfdcea3adc85e5"},{"signature":"isValidSignature(bytes32,bytes)","signatureHash4":"0x1626ba7e","signatureHash32":"0x1626ba7e356f5979dd355a3d2bfb43e80420a480c3b854edce286a82d7496869"},{"signature":"nonce()","signatureHash4":"0xaffed0e0","signatureHash32":"0xaffed0e0ba94adda3772e73093f9f42c54ccf7ebf1e7dabc728520a58f80bdf5"},{"signature":"optIn()","signatureHash4":"0x5b48684e","signatureHash32":"0x5b48684e74d8eb7cd743a52b36de277692c3dc7954c1c208fd111675024db1f1"},{"signature":"optOut()","signatureHash4":"0xd4eec5a6","signatureHash32":"0xd4eec5a6bec1cb7c6bbaaf86936a1ae22c1ccba2899da396c63684300fbcca9e"},{"signature":"owner()","signatureHash4":"0x8da5cb5b","signatureHash32":"0x8da5cb5b36e7f68c1d2e56001220cdbdd3ba2616072f718acfda4a06441a807d"},{"signature":"passkeySessionSigner(bytes32)","signatureHash4":"0xd7fa476f","signatureHash32":"0xd7fa476fb9e29a22a06e45e1866771fdcf655478c049a75e455f448d8d0433bd"},{"signature":"pause()","signatureHash4":"0x8456cb59","signatureHash32":"0x8456cb591a934d53f6ccc6332123a165a1f3562907bf11330d847a29ca49eb89"},{"signature":"paused()","signatureHash4":"0x5c975abb","signatureHash32":"0x5c975abbf8c4d6efa68fc896e233763eb503f2318260b7bf59b19412913788b2"},{"signature":"pendingOwner()","signatureHash4":"0xe30c3978","signatureHash32":"0xe30c3978ddd82956a01b5cb08d17f1a2d73e636aeefb7b36f896e41d4c2aab90"},{"signature":"pendingOwnerDeadline()","signatureHash4":"0x76d0e490","signatureHash32":"0x76d0e490ac89be35b04a9b27e138b8887d8621949ac540c7a9dd8a78d8fc4af7"},{"signature":"pendingOwnerNonce()","signatureHash4":"0x745ba806","signatureHash32":"0x745ba806978e6e9a2ad5dff2e3a32ba574c6f2819d39dcb92a1bab412cf00c0f"},{"signature":"revokeAllowance(address,address)","signatureHash4":"0x7ae26773","signatureHash32":"0x7ae267733f07af3d3d477e32b909aa23fc1295fc9b36ad21e7f4748b549b5abf"},{"signature":"revokeApprovalForAll(address,address)","signatureHash4":"0x2a45cacf","signatureHash32":"0x2a45cacf6107cce5a5a03cb7cafc875d0433557e3038b05ab6fa4e19bf666fca"},{"signature":"revokePasskeySessionSigner(bytes32)","signatureHash4":"0x8dc2c689","signatureHash32":"0x8dc2c689d9e566ce978d61979eed6730c3efa86f9d6b6b3c0a2374beb1615d66"},{"signature":"revokePasskeySessionSignerEmergency(bytes32)","signatureHash4":"0xd0f31620","signatureHash32":"0xd0f316207c0a055b7a2bd546d228b188e991103e0a1dcabd0df40a81bfdbf4e4"},{"signature":"revokeSessionSigner(address)","signatureHash4":"0xe63f952f","signatureHash32":"0xe63f952f6d6a18cb4725850a8885ceeab5a62ed2e893e78235fa1e0f4e615381"},{"signature":"revokeSessionSignerEmergency(address)","signatureHash4":"0xe9e37136","signatureHash32":"0xe9e3713685b7078cd7fefe9cd75588c8f322b6b5483676171563e74b6c76c52e"},{"signature":"sessionSignerAuthorizedUntil(address)","signatureHash4":"0xb9ac71d6","signatureHash32":"0xb9ac71d68f710a2d867c828280df7620856d6cf1f0d62def3c2974a01469eac2"},{"signature":"transferOwnership(address,uint256)","signatureHash4":"0x0a276680","signatureHash32":"0x0a276680c2ca0b24df339aa4f09a43af8eddea940c869f255af6c14bbaec15e2"},{"signature":"unpause()","signatureHash4":"0x3f4ba83a","signatureHash32":"0x3f4ba83af89dc9793996d9e56b8abe6dc88cd97c9c2bb23027806e9c1ffd54dc"},{"signature":"walletInterfaceId()","signatureHash4":"0xadc8693e","signatureHash32":"0xadc8693ed21690c45ffb3eea906794fc5896666b23d8cb5693dc7c3d9c78430e"},{"signature":"withdrawERC1155(address,address,uint256[],uint256[])","signatureHash4":"0xd8cb0d66","signatureHash32":"0xd8cb0d66a081561580369b9d8ad59eca6474287a14faf665d7d2796638c600bd"},{"signature":"withdrawERC20(address,address,uint256)","signatureHash4":"0x44004cc1","signatureHash32":"0x44004cc1253230200d83e24d6012a7a07a038f45baeed894de0d37840e455b53"},{"signature":"withdrawNative(address,uint256)","signatureHash4":"0x07b18bde","signatureHash32":"0x07b18bde7a99bef06b195970e025b70450f9a976a7e2ab5f8bc058fa22eac3cc"}],"event":[{"signature":"AllowanceRevoked(address,address)","signatureHash4":"0x8da578e4","signatureHash32":"0x8da578e4cb2672c4986388e504a6f639391986195c077e5db9f48e04c97a501b"},{"signature":"ApprovalForAllRevoked(address,address)","signatureHash4":"0xf9dfa223","signatureHash32":"0xf9dfa223fca66e1e19e96ad420898db0b0ada933c1d0c0953b3d5a44176f495c"},{"signature":"BatchExecuted(uint256)","signatureHash4":"0xe9cc9bbe","signatureHash32":"0xe9cc9bbe7de1cbb097a6357ca3182909488efe8d793e25665befc064a02d10a7"},{"signature":"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])","signatureHash4":"0xb790ced1","signatureHash32":"0xb790ced15183f79ade456fb39c4fc443005b36f92a7318ef6e0e9f18dc05b040"},{"signature":"ERC20Withdrawal(address,address,uint256)","signatureHash4":"0x2fbb3e8d","signatureHash32":"0x2fbb3e8dc2807d6a61feb98fc2120153f77b2c0d25ef6272e1756935dd62c847"},{"signature":"Execution(address,uint256,bytes,bytes)","signatureHash4":"0xfde9c64d","signatureHash32":"0xfde9c64d8b0b21fe439285c271603188269ad7c561364f724d48e9846120d7b6"},{"signature":"Initialized(uint64)","signatureHash4":"0xc7f505b2","signatureHash32":"0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"},{"signature":"NativeWithdrawal(address,uint256)","signatureHash4":"0x2c876ecb","signatureHash32":"0x2c876ecb97b3c6854f2488d373403f903eacb800e51c159a5c0c7a9c857e4827"},{"signature":"OwnershipHandoverCanceled(address)","signatureHash4":"0xfa7b8eab","signatureHash32":"0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92"},{"signature":"OwnershipHandoverCompleted(address,address)","signatureHash4":"0x38bafbf0","signatureHash32":"0x38bafbf020d44b4ca47fda166836e6a0e0a15a9d6fec166834c0125e193830ff"},{"signature":"OwnershipHandoverRequested(address,uint256,uint256)","signatureHash4":"0x34280f73","signatureHash32":"0x34280f73a4dfa646661714dfe2e00bc6df3de0581f552bd4420061f686d28bea"},{"signature":"OwnershipTransferred(address,address)","signatureHash4":"0x8be0079c","signatureHash32":"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0"},{"signature":"PasskeySessionSignerAuthorized(bytes32,bytes32,bytes32,uint256)","signatureHash4":"0xd5becded","signatureHash32":"0xd5becded5e17b1418ca2798bb03d5ad44e2dbe712bc69040381f1cc3efffbd53"},{"signature":"PasskeySessionSignerRevoked(bytes32,bytes32,bytes32)","signatureHash4":"0x415ca13a","signatureHash32":"0x415ca13a1f0f66d402c248f2677c40f1ec4794c656c96f71569a09831c99fb1e"},{"signature":"PasskeySessionSignerRevokedEmergency(bytes32,bytes32,bytes32)","signatureHash4":"0xad396117","signatureHash32":"0xad3961171307ef42f17267087f5444061f871d6b814636723504b96f1f0d36bd"},{"signature":"Paused(uint256)","signatureHash4":"0x32fb7c98","signatureHash32":"0x32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e"},{"signature":"SessionSignerAuthorized(address,uint256)","signatureHash4":"0xcacba9f6","signatureHash32":"0xcacba9f642804cfed98e2bb1d1c05bc4c78b35a209cdffdb4674b3363bafd92b"},{"signature":"SessionSignerRevoked(address)","signatureHash4":"0xeac85989","signatureHash32":"0xeac85989fadc30dfe2712c2308dcfecb3f9af1d15422056fc5a98ed1b49ca209"},{"signature":"SessionSignerRevokedEmergency(address)","signatureHash4":"0x61be9e00","signatureHash32":"0x61be9e006b8f5c6e0e05905bb6a35efabbb3343c37d33552f634bd1d20f64141"},{"signature":"Unpaused(uint256)","signatureHash4":"0x9dd715fe","signatureHash32":"0x9dd715fed52c25e642f97653bb4c4339ad98fe6d6e130348be82ae5d86383a8c"}],"error":[{"signature":"BatchCallFailed(uint256,address,bytes)","signatureHash4":"0xb09725d2","signatureHash32":"0xb09725d225be24e4c12a505f7cd124430ffd09a057c0f2733d1388e1f6f5cf31"},{"signature":"BeaconUnresolvable()","signatureHash4":"0xe6e1262b","signatureHash32":"0xe6e1262b85647542810c875493983c950846dcd32a32c522d7eb986db1d39c25"},{"signature":"EmptyBatch()","signatureHash4":"0xc2e5347d","signatureHash32":"0xc2e5347df6cf8d1bf68f8a9651642312bd381b900d857d97cd665976180d6ae0"},{"signature":"Expired()","signatureHash4":"0x203d82d8","signatureHash32":"0x203d82d8d99f63bfecc8335216735e0271df4249ea752b030f9ab305b94e5afe"},{"signature":"FnSelectorNotRecognized()","signatureHash4":"0x3c10b94e","signatureHash32":"0x3c10b94ed38db24b2ddb45fabdb3c8e1b43dea2d2a216cc06ec344a46ef9d4cc"},{"signature":"InvalidInitialization()","signatureHash4":"0xf92ee8a9","signatureHash32":"0xf92ee8a957075833165f68c320933b1a1294aafc84ee6e0dd3fb178008f9aaf5"},{"signature":"InvalidNonce()","signatureHash4":"0x756688fe","signatureHash32":"0x756688fec2871909d72599c334b663ffcc94654c438569966c7fd3ab3a351f34"},{"signature":"InvalidOwner()","signatureHash4":"0x49e27cff","signatureHash32":"0x49e27cffb37b1ca4a9bf5318243b2014d13f940af232b8552c208bdea15739da"},{"signature":"InvalidPasskeyPublicKey(bytes32,bytes32)","signatureHash4":"0x304d0228","signatureHash32":"0x304d02285b88f65fe36bd781c37675aee64244d7dc50899b684fb0826758e11b"},{"signature":"InvalidSignature()","signatureHash4":"0x8baa579f","signatureHash32":"0x8baa579fce362245063d36f11747a89dd489c54795634fc673cc0e0db51fedc5"},{"signature":"InvalidValidUntil()","signatureHash4":"0x488b16b7","signatureHash32":"0x488b16b765ada145b6d50b0d4e38bd3670c51f8bf411df63f21fa8f01f866142"},{"signature":"InvalidWallet()","signatureHash4":"0x23455ba1","signatureHash32":"0x23455ba1dd5d22534bfa2aa6565424d4ca815608d443e8e14114d11de76a47e2"},{"signature":"MissingPrecompile(address)","signatureHash4":"0x42b01bce","signatureHash32":"0x42b01bce86456d56543feeed7169631635eed08bc11566d2951ad7397d0c88a0"},{"signature":"NoPendingOwner()","signatureHash4":"0x7c63ac36","signatureHash32":"0x7c63ac36a2c5c0c9bbce5b6b91079e677592a9bc937c574e35fecd2ce3032803"},{"signature":"NotInitializing()","signatureHash4":"0xd7e6bcf8","signatureHash32":"0xd7e6bcf8597daa127dc9f0048d2f08d5ef140a2cb659feabd700beff1f7a8302"},{"signature":"NotPaused()","signatureHash4":"0x6cd60201","signatureHash32":"0x6cd602013233635730773e15e89b8a778034d859147e8f706bcd1aa42e228e06"},{"signature":"OnlyFactory()","signatureHash4":"0x0c6d42ae","signatureHash32":"0x0c6d42aee1b4832deb27409f37a942e97dfedc101aa8a02a9e70506e047120da"},{"signature":"OnlySelf()","signatureHash4":"0x14d4a4e8","signatureHash32":"0x14d4a4e8a5140da60b7a280478fb427da973ca582a83cf5dbad8c5f2abee9ba4"},{"signature":"SessionSignerCannotCallBeacon()","signatureHash4":"0x63adb1da","signatureHash32":"0x63adb1da4a2ec9bad8bcd066ce2bc1ae6cd0eb2fc9f5fd1ab5f8155220e212d0"},{"signature":"SessionSignerSelfCallNotAllowed()","signatureHash4":"0xde4e67c5","signatureHash32":"0xde4e67c5b58b9c80abb5193d8ee3473d7aaa3f79c187f74e18a1a834a8ab2b04"},{"signature":"SessionSignerUnauthorized()","signatureHash4":"0x3d4b0145","signatureHash32":"0x3d4b0145af5bb0673615e34c55e5d897f4ce2358bc5cc15c1403455ddf5b0d54"},{"signature":"TimelockInsufficientDelay()","signatureHash4":"0xac90eb92","signatureHash32":"0xac90eb921f5ffc5d74440cbe693d217793f9bb3d22d59db9c8a82df3a9ac5b91"},{"signature":"Unauthorized()","signatureHash4":"0x82b42900","signatureHash32":"0x82b4290015f7ec7256ca2a6247d3c2a89c4865c0e791456df195f40ad0a81367"},{"signature":"ZeroAddress()","signatureHash4":"0xd92e233d","signatureHash32":"0xd92e233df2717d4a40030e20904abd27b68fcbeede117eaaccbbdac9618c8c73"}]},"proxyResolution":{"isProxy":false,"proxyType":null,"implementations":[]},"match":"exact_match","chainId":"137","address":"0xf7f27C29e60fe6325beF8dA7F93250353d2e3294"}