{"matchId":"6253359","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2025-04-01T10:25:14Z","creationBytecode":{"onchainBytecode":"0x610160604052348015610010575f5ffd5b50604080518082018252601381527f4e617469766520437265646974205661756c7400000000000000000000000000602080830191909152825180840190935260018352603160f81b9083015290610068825f61011a565b6101205261007781600161011a565b61014052815160208084019190912060e052815190820120610100524660a05261010360e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60805250503060c0526101153361014c565b6103a9565b5f6020835110156101355761012e83610168565b9050610146565b816101408482610297565b5060ff90505b92915050565b600380546001600160a01b0319169055610165816101ae565b50565b5f5f829050601f8151111561019b578260405163305a27a960e01b81526004016101929190610351565b60405180910390fd5b80516101a682610386565b179392505050565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061022757607f821691505b60208210810361024557634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561029257805f5260205f20601f840160051c810160208510156102705750805b601f840160051c820191505b8181101561028f575f815560010161027c565b50505b505050565b81516001600160401b038111156102b0576102b06101ff565b6102c4816102be8454610213565b8461024b565b6020601f8211600181146102f6575f83156102df5750848201515b5f19600385901b1c1916600184901b17845561028f565b5f84815260208120601f198516915b828110156103255787850151825560209485019460019092019101610305565b508482101561034257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80516020808301519190811015610245575f1960209190910360031b1b16919050565b60805160a05160c05160e0516101005161012051610140516151076103fa5f395f611abf01525f611a9501525f613f5301525f613f2b01525f613e8601525f613eb001525f613eda01526151075ff3fe608060405234801561000f575f5ffd5b50600436106102d7575f3560e01c806379ba509711610187578063b17b658d116100dd578063cab4f84c11610093578063f2fde38b1161006e578063f2fde38b14610784578063f6d95efd14610797578063f90cdb36146107cc575f5ffd5b8063cab4f84c14610729578063cc218ece1461073c578063e30c397814610766575f5ffd5b8063b7477674116100c3578063b7477674146106af578063c2b7307614610703578063c407687614610716575f5ffd5b8063b17b658d14610667578063b6bdff031461069c575f5ffd5b806392a88fa21161013d578063abb49f1911610118578063abb49f1914610622578063ae1914f814610635578063b0ab63ec14610648575f5ffd5b806392a88fa2146105da57806398221e94146105fc5780639be41fdb1461060f575f5ffd5b806384b0196e1161016d57806384b0196e1461058e5780638da5cb5b146105a95780639246261c146105c7575f5ffd5b806379ba50971461057357806381377bfd1461057b575f5ffd5b806341b1fa761161023c5780634e293ee9116101f2578063715018a6116101cd578063715018a6146105455780637362ecbe1461054d57806373eb513314610560575f5ffd5b80634e293ee9146104ff5780634f487eb8146105125780636c19e78314610532575f5ffd5b8063464b38bc11610222578063464b38bc1461049557806347de43e2146104c25780634bd21445146104d5575f5ffd5b806341b1fa761461043e578063422e0af014610460575f5ffd5b8063141a468c1161029157806320761fc41161027757806320761fc4146103dc578063238ac933146103fe57806332b4fa6b1461041e575f5ffd5b8063141a468c146103a75780631e777ad3146103c9575f5ffd5b80630d2a7ae8116102c15780630d2a7ae8146103035780630dfbe91b146103625780631241177214610394575f5ffd5b8062fc59c0146102db578063097a8ec4146102f0575b5f5ffd5b6102ee6102e93660046144e9565b6107ee565b005b6102ee6102fe36600461450b565b6108bd565b6103386103113660046144e9565b60116020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6103846103703660046144e9565b60086020525f908152604090205460ff1681565b6040519015158152602001610359565b6102ee6103a2366004614587565b610a4b565b6103846103b53660046145f4565b600c6020525f908152604090205460ff1681565b6102ee6103d736600461464c565b610e9b565b6103846103ea3660046144e9565b600f6020525f908152604090205460ff1681565b6005546103389073ffffffffffffffffffffffffffffffffffffffff1681565b6004546103389073ffffffffffffffffffffffffffffffffffffffff1681565b61038461044c3660046144e9565b60136020525f908152604090205460ff1681565b61033861046e3660046144e9565b60126020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6104b46104a33660046144e9565b60096020525f908152604090205481565b604051908152602001610359565b6102ee6104d03660046146ac565b610fac565b6104b46104e33660046146e9565b600d60209081525f928352604080842090915290825290205481565b6102ee61050d366004614736565b61114d565b6006546103389073ffffffffffffffffffffffffffffffffffffffff1681565b6102ee6105403660046144e9565b6114b4565b6102ee61157c565b6102ee61055b366004614786565b61158f565b6102ee61056e3660046144e9565b6116fe565b6102ee6117c6565b6102ee61058936600461464c565b611880565b610596611a88565b6040516103599796959493929190614829565b60025473ffffffffffffffffffffffffffffffffffffffff16610338565b6103386105d53660046145f4565b611b2a565b6103846105e83660046144e9565b60106020525f908152604090205460ff1681565b6102ee61060a3660046148e8565b611b5f565b6102ee61061d366004614736565b61213f565b6102ee610630366004614959565b6123f3565b6102ee61064336600461450b565b6124d1565b6104b46106563660046144e9565b600a6020525f908152604090205481565b6103386106753660046144e9565b600b6020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6102ee6106aa36600461464c565b61267d565b6106e86106bd3660046146e9565b601660209081525f928352604080842090915290825290208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610359565b6102ee610711366004614985565b612893565b6102ee6107243660046149f2565b612acb565b6102ee6107373660046144e9565b612c4c565b6104b461074a3660046146e9565b600e60209081525f928352604080842090915290825290205481565b60035473ffffffffffffffffffffffffffffffffffffffff16610338565b6102ee6107923660046144e9565b612f65565b6103386107a53660046144e9565b60156020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6103846107da3660046144e9565b60146020525f908152604090205460ff1681565b6107f6613015565b73ffffffffffffffffffffffffffffffffffffffff8116610843576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f15d0b1a02a4902c4788ceda199eb43e4a753d86c0dbb7412e8ba63feecb070fa906020015b60405180910390a150565b6108c5613015565b73ffffffffffffffffffffffffffffffffffffffff8216610912576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f9081526010602052604090205460ff1680610969575073ffffffffffffffffffffffffffffffffffffffff83165f9081526014602052604090205460ff165b61099f576040517f3be3aba200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080516060810182528281525f60208201529081016109c26201518042614a49565b905273ffffffffffffffffffffffffffffffffffffffff8481165f81815260166020908152604080832094881680845294825291829020855181558582015160018201559482015160029095019490945551848152919290917f39ff4a05a64bdf7e1dcb0b2d6b7e35b6a720a9412386a9e193c0e93d29a18470910160405180910390a3505050565b335f9081526014602052604090205460ff16610a93576040517f99b01c4700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a9b613096565b610aa683838361311a565b610b1d610ab66060850185614a81565b808060200260200160405190810160405280939291908181526020015f905b82821015610b0157610af260408302860136819003810190614ae5565b81526020019060010190610ad5565b50610b1893505060608801915050604087016144e9565b61335f565b335f9081526015602052604081205473ffffffffffffffffffffffffffffffffffffffff16905b610b516080860186614a81565b9050811015610c4657610b676080860186614a81565b82818110610b7757610b77614b62565b90506040020160200135600e5f876040016020810190610b9791906144e9565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040015f90812090610bcc6080890189614a81565b85818110610bdc57610bdc614b62565b610bf292602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254610c399190614b8f565b9091555050600101610b44565b505f5b610c566060860186614a81565b9050811015610d4c575f610c6d6060870187614a81565b83818110610c7d57610c7d614b62565b610c9392602060409092020190810191506144e9565b90505f610ca36060880188614a81565b84818110610cb357610cb3614b62565b9050604002016020013590505f811315610cf957610cf43330610cd58461354d565b73ffffffffffffffffffffffffffffffffffffffff86169291906135bc565b610d42565b610d143383610d0f610d0a85614ba2565b61354d565b613698565b610d4284610d24610d0a84614ba2565b73ffffffffffffffffffffffffffffffffffffffff851691906137aa565b5050600101610c49565b505f5b610d5c6080860186614a81565b9050811015610e26575f610d736080870187614a81565b83818110610d8357610d83614b62565b610d9992602060409092020190810191506144e9565b9050610dcc3382610dad60808a018a614a81565b86818110610dbd57610dbd614b62565b90506040020160200135613698565b610e1d83610ddd6080890189614a81565b85818110610ded57610ded614b62565b905060400201602001358373ffffffffffffffffffffffffffffffffffffffff166137aa9092919063ffffffff16565b50600101610d4f565b507fb5689a012cf77dd0a99ac07ed6f83009d7fbfca323bca73b34d6ed02bf413ab8610e5860608601604087016144e9565b33610e666060880188614a81565b610e7360808a018a614a81565b604051610e8596959493929190614c36565b60405180910390a150610e96613800565b505050565b610ea3613015565b5f5b82811015610fa6575f600b81868685818110610ec357610ec3614b62565b610ed992602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f20541603610f39576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f9e82858584818110610f4f57610f4f614b62565b90506040020160200135868685818110610f6b57610f6b614b62565b610f8192602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff16919061382a565b600101610ea5565b50505050565b610fb4613015565b73ffffffffffffffffffffffffffffffffffffffff831615801590610fee575073ffffffffffffffffffffffffffffffffffffffff821615155b611024576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611089576040517f88b43fad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8381165f81815260146020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016871515908117909155601583529281902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169588169590951790945583519283528201527f81e020344174972c59f6c11a8f6c90b141866214e3d9b544d030f0b532f5a10f91015b60405180910390a1505050565b61115d60608401604085016144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff1680156111a6575073ffffffffffffffffffffffffffffffffffffffff811633145b80611205575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff168015611205575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b61123b576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611243613096565b61124e848484613880565b5f5b61125d6060860186614a81565b9050811015611352576112736060860186614a81565b8281811061128357611283614b62565b90506040020160200135600e5f8760400160208101906112a391906144e9565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040015f908120906112d86060890189614a81565b858181106112e8576112e8614b62565b6112fe92602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546113459190614b8f565b9091555050600101611250565b505f60128161136760608801604089016144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f9081205490911691505b6113a46060870187614a81565b9050811015611455575f6113bb6060880188614a81565b838181106113cb576113cb614b62565b6113e192602060409092020190810191506144e9565b90505f6113f16060890189614a81565b8481811061140157611401614b62565b90506040020160200135905061142a88604001602081019061142391906144e9565b8383613698565b61144b73ffffffffffffffffffffffffffffffffffffffff831685836137aa565b5050600101611397565b507f455917442c530b052ee826d2556fad794f64a294e455930a63599688abbffa3c61148760608701604088016144e9565b6114946060880188614a81565b6040516114a393929190614ca1565b60405180910390a150610fa6613800565b6114bc613015565b73ffffffffffffffffffffffffffffffffffffffff8116611509576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f9eaa897564d022fb8c5efaf0acdb5d9d27b440b2aad44400b6e1c702e65b9ed3906020016108b2565b611584613015565b61158d5f6139aa565b565b335f9081526008602052604090205460ff166115d7576040517fd687c5f200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8481165f908152600b60205260409020541615801590611631575073ffffffffffffffffffffffffffffffffffffffff8281165f908152600b60205260409020541615155b611667576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8086165f908152600d60209081526040808320938816835292905290812080548592906116aa908490614cd9565b909155505073ffffffffffffffffffffffffffffffffffffffff8086165f908152600d60209081526040808320938616835292905290812080548392906116f2908490614d00565b90915550505050505050565b611706613015565b73ffffffffffffffffffffffffffffffffffffffff8116611753576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f538bd377a1e0d2ceca49908f540bafa1d8616cf49a7bcefcd0b479e7531ff8aa906020016108b2565b600354339073ffffffffffffffffffffffffffffffffffffffff168114611874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61187d816139aa565b50565b73ffffffffffffffffffffffffffffffffffffffff81165f90815260106020526040902054819060ff1680156118cb575073ffffffffffffffffffffffffffffffffffffffff811633145b8061192a575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff16801561192a575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b611960576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611968613096565b6119c38484808060200260200160405190810160405280939291908181526020015f905b828210156119b8576119a960408302860136819003810190614ae5565b8152602001906001019061198c565b50505050508361335f565b5f5b83811015611a4457611a3c33306119f68888868181106119e7576119e7614b62565b9050604002016020013561354d565b888886818110611a0857611a08614b62565b611a1e92602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff169291906135bc565b6001016119c5565b507fc8aa82285b2a9e22e0bda601a759e4f578e78f18015e543a4f66bb120a726953828585604051611a7893929190614ca1565b60405180910390a1610fa6613800565b5f60608082808083611aba7f0000000000000000000000000000000000000000000000000000000000000000836139db565b611ae57f000000000000000000000000000000000000000000000000000000000000000060016139db565b604080515f808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b60078181548110611b39575f80fd5b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60065473ffffffffffffffffffffffffffffffffffffffff163314611bb0576040517f16ced9a800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b81811015612101575f838383818110611bcd57611bcd614b62565b9050602002810190611bdf9190614d26565b611bed9060208101906144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600a602052604090205490915061708090611c239042614b8f565b1015611c5b576040517f0dc2dde400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848484818110611c6f57611c6f614b62565b9050602002810190611c819190614d26565b611c8f906020810190614d62565b90508110156120d2575f858585818110611cab57611cab614b62565b9050602002810190611cbd9190614d26565b611ccb906020810190614d62565b83818110611cdb57611cdb614b62565b611cf192602060609092020190810191506144e9565b90505f868686818110611d0657611d06614b62565b9050602002810190611d189190614d26565b611d26906020810190614d62565b84818110611d3657611d36614b62565b9050606002016020013590505f878787818110611d5557611d55614b62565b9050602002810190611d679190614d26565b611d75906020810190614d62565b85818110611d8557611d85614b62565b73ffffffffffffffffffffffffffffffffffffffff8681165f908152600b60205260409081902054606090930294909401939093013593509091169050611df8576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81156120295773ffffffffffffffffffffffffffffffffffffffff8084165f908152600b602090815260408083205481517f3ba0b9a9000000000000000000000000000000000000000000000000000000008152915193941692633ba0b9a9926004808401939192918290030181865afa158015611e78573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e9c9190614dc5565b73ffffffffffffffffffffffffffffffffffffffff8581165f908152600b6020526040908190205490517fc8cc5cd800000000000000000000000000000000000000000000000000000000815260048101879052929350169063c8cc5cd8906024015f604051808303815f87803b158015611f15575f5ffd5b505af1158015611f27573d5f5f3e3d5ffd5b50505050806064611f389190614ddc565b73ffffffffffffffffffffffffffffffffffffffff8086165f908152600b60209081526040918290205482517f3ba0b9a9000000000000000000000000000000000000000000000000000000008152925186949190911692633ba0b9a99260048083019391928290030181865afa158015611fb5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fd99190614dc5565b611fe39190614b8f565b611fef90612710614ddc565b1115612027576040517f0aa1e28500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b80156120695773ffffffffffffffffffffffffffffffffffffffff83165f9081526009602052604081208054839290612063908490614df3565b90915550505b61207b6120768383614df3565b613a86565b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d60209081526040808320938816835292905290812080549091906120be908490614d00565b909155505060019093019250611c5d915050565b5073ffffffffffffffffffffffffffffffffffffffff165f908152600a60205260409020429055600101611bb2565b507f90e0333a7f11b37e50e152c45bb5ebfc2ce2ace82e290567861d3ae8529688748282604051612133929190614e06565b60405180910390a15050565b61214f60608401604085016144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff168015612198575073ffffffffffffffffffffffffffffffffffffffff811633145b806121f7575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff1680156121f7575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b61222d576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612235613096565b612240848484613b37565b6122b26122506060860186614a81565b808060200260200160405190810160405280939291908181526020015f905b8282101561229b5761228c60408302860136819003810190614ae5565b8152602001906001019061226f565b50610b1893505060608901915050604088016144e9565b5f6012816122c660608801604089016144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f9081205490911691505b6123036060870187614a81565b90508110156123c1575f61231a6060880188614a81565b8381811061232a5761232a614b62565b61234092602060409092020190810191506144e9565b90505f6123506060890189614a81565b8481811061236057612360614b62565b9050604002016020013590505f811315612387576123823330610cd58461354d565b6123b7565b6123a761239a60608a0160408b016144e9565b83610d0f610d0a85614ba2565b6123b784610d24610d0a84614ba2565b50506001016122f6565b507f0279bcc316c233db88e8f3e463dcefc7fa661da21bc66eadc60f3835e41bba1161148760608701604088016144e9565b6123fb613015565b73ffffffffffffffffffffffffffffffffffffffff8216612448576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82165f8181526008602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527f947aca305c9b8d94b31792a7f80d331c9452e743508d61331561378673b50103910160405180910390a25050565b73ffffffffffffffffffffffffffffffffffffffff821661251e576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60045473ffffffffffffffffffffffffffffffffffffffff16331461256f576040517fdcdd32f100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f908152600960205260409020548111156125cd576040517fce11c63900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f9081526009602052604081208054839290612601908490614b8f565b90915550612628905073ffffffffffffffffffffffffffffffffffffffff841683836137aa565b6040805173ffffffffffffffffffffffffffffffffffffffff8086168252841660208201529081018290527fde13184e8cbb6eccbcecfc796bf8820e5ffde0534c01b4fabed4b05982964a4490606001611140565b612685613096565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff166126e3576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8281101561284f575f84848381811061270057612700614b62565b61271692602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600f602052604090205490915060ff16612777576040517f918aa47f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f85858481811061278a5761278a614b62565b90506040020160200135905080600e5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461281d9190614df3565b90915550612845905073ffffffffffffffffffffffffffffffffffffffff83163330846135bc565b50506001016126e5565b507f770dafe0b413d5c277b5f1a9d1d725e5ebafe92b5a16f3ebaae6e49e43b6649981848460405161288393929190614ca1565b60405180910390a1610e96613800565b61289b613015565b73ffffffffffffffffffffffffffffffffffffffff8516158015906128d5575073ffffffffffffffffffffffffffffffffffffffff841615155b80156128f6575073ffffffffffffffffffffffffffffffffffffffff831615155b61292c576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561299457508373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b6129ca576040517f5bc7a3a500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8581165f81815260106020908152604080832080548815157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091821681179092556011845282852080548c89167fffffffffffffffffffffffff00000000000000000000000000000000000000009182168117909255601286528487208054998d169990911689179055601385529483902080548915159216821790558251918252928101929092528101919091526060810192909252907f2353ec0fe56a376d3269d3e65521f1ce07dc5f544cc5b0ba4eb2ff03f771a4ad9060800160405180910390a25050505050565b335f908152600f602052604090205460ff16612b13576040517f918aa47f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1663c70920bc6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b5c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b809190614dc5565b811115612bb9576040517fff75bad100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c4882823373ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612c07573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612c2b9190614f9d565b73ffffffffffffffffffffffffffffffffffffffff1691906137aa565b5050565b612c54613015565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600f602052604090205460ff1615612cb3576040517fdeaabdc200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8173ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612cfd573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d219190614f9d565b73ffffffffffffffffffffffffffffffffffffffff8082165f908152600b602052604090205491925016158015612def57503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1663e2498f726040518163ffffffff1660e01b8152600401602060405180830381865afa158015612db3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612dd79190614f9d565b73ffffffffffffffffffffffffffffffffffffffff16145b612e25576040517f9db8d5b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116612e72576040517ff418616400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8181165f908152600b6020908152604080832080549487167fffffffffffffffffffffffff00000000000000000000000000000000000000009586168117909155808452600f835281842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091556007805491820181559094527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6889093018054909416831790935591519081527fcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f9101612133565b612f6d613015565b6003805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155612fd060025473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60025473ffffffffffffffffffffffffffffffffffffffff16331461158d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161186b565b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005c156130ef576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61158d7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f006001613bbd565b4283602001351015613158576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131628335613bc4565b5f7f76c5f3d53a01a9f0a59b081b22aba3a0f03248e9241993e97d1d025ef2ffaac28435602086013561319b60608801604089016144e9565b6131a86060890189614a81565b6040516020016131b9929190614fb8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905280516020909101206131fc60808a018a614a81565b60405160200161320d929190614fb8565b604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00181528282528051602091820120335f90815260158352839020549184019890985290820195909552606081019390935273ffffffffffffffffffffffffffffffffffffffff918216608084015260a083015260c0820193909352911660e0820152610100015b6040516020818303038152906040528051906020012090505f6132be82613c44565b90505f6133008286868080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250613c8b92505050565b60055490915073ffffffffffffffffffffffffffffffffffffffff808316911614613357576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b81515f5b81811015610fa6575f84828151811061337e5761337e614b62565b60200260200101515f015190505f85838151811061339e5761339e614b62565b60209081029190910181015181015173ffffffffffffffffffffffffffffffffffffffff8088165f908152600d845260408082209287168252919093528220549092506133ec908390614cd9565b73ffffffffffffffffffffffffffffffffffffffff8481165f908152600b60205260409020549192501661344c576040517ff418616400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d6020908152604080832093871683529290529081205461348b908490614fcb565b1215806134d4575073ffffffffffffffffffffffffffffffffffffffff8087165f908152600d602090815260408083209387168352929052908120546134d2908390614fcb565b125b1561350b576040517f09a09f7500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d60209081526040808320969093168252949094529092209190915550600101613363565b5f5f8212156135b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f736974697665604482015260640161186b565b5090565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610fa69085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152613cad565b73ffffffffffffffffffffffffffffffffffffffff8084165f9081526016602090815260408083209386168352929052908120906136d96201518042614a49565b90505f82600201548211156136ef575082613702565b8383600101546136ff9190614df3565b90505b82541580613711575082548111155b613747576040517ff5b71ffc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160608101825293548452602080850192835284820193845273ffffffffffffffffffffffffffffffffffffffff9788165f9081526016825282812097909816885295909552939094209051815591516001830155509051600290910155565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610e969084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401613616565b61158d7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005f613bbd565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610e969084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401613616565b42836020013510156138be576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6138c88335613bc4565b5f7f6b9aa5f8de278806afcc63bb2d2e633b4da3536375ca60f09ae8fae5829b3c468435602086013561390160608801604089016144e9565b61390e6060890189614a81565b60405160200161391f929190614fb8565b6040516020818303038152906040528051906020012060125f8a604001602081019061394b91906144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182015f2054825193840198909852908201959095526060810193909352908316608083015260a0820152911660c082015260e00161329c565b600380547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561187d81613dba565b606060ff83146139f5576139ee83613e30565b9050613a80565b818054613a0190615016565b80601f0160208091040260200160405190810160405280929190818152602001828054613a2d90615016565b8015613a785780601f10613a4f57610100808354040283529160200191613a78565b820191905f5260205f20905b815481529060010190602001808311613a5b57829003601f168201915b505050505090505b92915050565b5f7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8211156135b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e206160448201527f6e20696e74323536000000000000000000000000000000000000000000000000606482015260840161186b565b4283602001351015613b75576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613b7f8335613bc4565b5f7fe83563cdfbb4d31bd8759eea5a634fbe67ea13b6739d04d2426c621fee979fa48435602086013561390160608801604089016144e9565b905090565b80825d5050565b5f818152600c602052604090205460ff1615613c0c576040517f1f6d5aef00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f908152600c6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b5f613a80613c50613e6d565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b5f5f5f613c988585613fa3565b91509150613ca581613fe5565b509392505050565b5f613d0e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166141979092919063ffffffff16565b905080515f1480613d2e575080806020019051810190613d2e9190615061565b610e96576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161186b565b6002805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b60605f613e3c836141ad565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b5f3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016148015613ed257507f000000000000000000000000000000000000000000000000000000000000000046145b15613efc57507f000000000000000000000000000000000000000000000000000000000000000090565b613bb8604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b5f5f8251604103613fd7576020830151604084015160608501515f1a613fcb878285856141ed565b94509450505050613fde565b505f905060025b9250929050565b5f816004811115613ff857613ff861507c565b036140005750565b60018160048111156140145761401461507c565b0361407b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161186b565b600281600481111561408f5761408f61507c565b036140f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161186b565b600381600481111561410a5761410a61507c565b0361187d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161186b565b60606141a584845f856142d5565b949350505050565b5f60ff8216601f811115613a80576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561422257505f905060036142cc565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614273573d5f5f3e3d5ffd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166142c6575f600192509250506142cc565b91505f90505b94509492505050565b606082471015614367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161186b565b5f5f8673ffffffffffffffffffffffffffffffffffffffff16858760405161438f91906150a9565b5f6040518083038185875af1925050503d805f81146143c9576040519150601f19603f3d011682016040523d82523d5f602084013e6143ce565b606091505b50915091506143df878383876143ea565b979650505050505050565b6060831561447f5782515f036144785773ffffffffffffffffffffffffffffffffffffffff85163b614478576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161186b565b50816141a5565b6141a583838151156144945781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186b91906150bf565b73ffffffffffffffffffffffffffffffffffffffff8116811461187d575f5ffd5b5f602082840312156144f9575f5ffd5b8135614504816144c8565b9392505050565b5f5f5f6060848603121561451d575f5ffd5b8335614528816144c8565b92506020840135614538816144c8565b929592945050506040919091013590565b5f5f83601f840112614559575f5ffd5b50813567ffffffffffffffff811115614570575f5ffd5b602083019150836020828501011115613fde575f5ffd5b5f5f5f60408486031215614599575f5ffd5b833567ffffffffffffffff8111156145af575f5ffd5b840160a081870312156145c0575f5ffd5b9250602084013567ffffffffffffffff8111156145db575f5ffd5b6145e786828701614549565b9497909650939450505050565b5f60208284031215614604575f5ffd5b5035919050565b5f5f83601f84011261461b575f5ffd5b50813567ffffffffffffffff811115614632575f5ffd5b6020830191508360208260061b8501011115613fde575f5ffd5b5f5f5f6040848603121561465e575f5ffd5b833567ffffffffffffffff811115614674575f5ffd5b6146808682870161460b565b9094509250506020840135614694816144c8565b809150509250925092565b801515811461187d575f5ffd5b5f5f5f606084860312156146be575f5ffd5b83356146c9816144c8565b925060208401356146d9816144c8565b915060408401356146948161469f565b5f5f604083850312156146fa575f5ffd5b8235614705816144c8565b91506020830135614715816144c8565b809150509250929050565b5f60808284031215614730575f5ffd5b50919050565b5f5f5f60408486031215614748575f5ffd5b833567ffffffffffffffff81111561475e575f5ffd5b61476a86828701614720565b935050602084013567ffffffffffffffff8111156145db575f5ffd5b5f5f5f5f5f60a0868803121561479a575f5ffd5b85356147a5816144c8565b945060208601356147b5816144c8565b93506040860135925060608601356147cc816144c8565b949793965091946080013592915050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f61486360e08301896147dd565b828103604084015261487581896147dd565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b818110156148d75783518352602093840193909201916001016148b9565b50909b9a5050505050505050505050565b5f5f602083850312156148f9575f5ffd5b823567ffffffffffffffff81111561490f575f5ffd5b8301601f8101851361491f575f5ffd5b803567ffffffffffffffff811115614935575f5ffd5b8560208260051b8401011115614949575f5ffd5b6020919091019590945092505050565b5f5f6040838503121561496a575f5ffd5b8235614975816144c8565b915060208301356147158161469f565b5f5f5f5f5f60a08688031215614999575f5ffd5b85356149a4816144c8565b945060208601356149b4816144c8565b935060408601356149c4816144c8565b925060608601356149d48161469f565b915060808601356149e48161469f565b809150509295509295909350565b5f5f60408385031215614a03575f5ffd5b8235614a0e816144c8565b946020939093013593505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f82614a7c577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614ab4575f5ffd5b83018035915067ffffffffffffffff821115614ace575f5ffd5b6020019150600681901b3603821315613fde575f5ffd5b5f6040828403128015614af6575f5ffd5b506040805190810167ffffffffffffffff81118282101715614b3f577f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040528235614b4d816144c8565b81526020928301359281019290925250919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b81810381811115613a8057613a80614a1c565b5f7f80000000000000000000000000000000000000000000000000000000000000008203614bd257614bd2614a1c565b505f0390565b8183526020830192505f815f5b84811015614c2c578135614bf8816144c8565b73ffffffffffffffffffffffffffffffffffffffff1686526020828101359087015260409586019590910190600101614be5565b5093949350505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff86166020820152608060408201525f614c81608083018688614bd8565b8281036060840152614c94818587614bd8565b9998505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff84168152604060208201525f614cd0604083018486614bd8565b95945050505050565b8082018281125f831280158216821582161715614cf857614cf8614a1c565b505092915050565b8181035f831280158383131683831282161715614d1f57614d1f614a1c565b5092915050565b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc1833603018112614d58575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614d95575f5ffd5b83018035915067ffffffffffffffff821115614daf575f5ffd5b6020019150606081023603821315613fde575f5ffd5b5f60208284031215614dd5575f5ffd5b5051919050565b8082028115828204841417613a8057613a80614a1c565b80820180821115613a8057613a80614a1c565b602080825281018290525f6040600584901b8301810190830185837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc136839003015b87821015614f90577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08786030184528235818112614e84575f5ffd5b8901604086018135614e95816144c8565b73ffffffffffffffffffffffffffffffffffffffff1687526020820135368390037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1018112614ee2575f5ffd5b60209201918201913567ffffffffffffffff811115614eff575f5ffd5b606081023603831315614f10575f5ffd5b60406020890152908190525f90606088015b81831015614f74578335614f35816144c8565b73ffffffffffffffffffffffffffffffffffffffff16815260208481013590820152604080850135908201526060938401936001939093019201614f22565b9750505060209485019493909301925060019190910190614e48565b5092979650505050505050565b5f60208284031215614fad575f5ffd5b8151614504816144c8565b602081525f6141a5602083018486614bd8565b8082025f82127f80000000000000000000000000000000000000000000000000000000000000008414161561500257615002614a1c565b8181058314821517613a8057613a80614a1c565b600181811c9082168061502a57607f821691505b602082108103614730577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60208284031215615071575f5ffd5b81516145048161469f565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b5f82518060208501845e5f920191825250919050565b602081525f61450460208301846147dd56fea2646970667358221220a0ba8db9f3d9a667e49717c5614618d481311d4c3e69e51e9b53166a80821e6764736f6c634300081c0033","recompiledBytecode":"0x610160604052348015610010575f5ffd5b50604080518082018252601381527f4e617469766520437265646974205661756c7400000000000000000000000000602080830191909152825180840190935260018352603160f81b9083015290610068825f61011a565b6101205261007781600161011a565b61014052815160208084019190912060e052815190820120610100524660a05261010360e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60805250503060c0526101153361014c565b6103a9565b5f6020835110156101355761012e83610168565b9050610146565b816101408482610297565b5060ff90505b92915050565b600380546001600160a01b0319169055610165816101ae565b50565b5f5f829050601f8151111561019b578260405163305a27a960e01b81526004016101929190610351565b60405180910390fd5b80516101a682610386565b179392505050565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061022757607f821691505b60208210810361024557634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561029257805f5260205f20601f840160051c810160208510156102705750805b601f840160051c820191505b8181101561028f575f815560010161027c565b50505b505050565b81516001600160401b038111156102b0576102b06101ff565b6102c4816102be8454610213565b8461024b565b6020601f8211600181146102f6575f83156102df5750848201515b5f19600385901b1c1916600184901b17845561028f565b5f84815260208120601f198516915b828110156103255787850151825560209485019460019092019101610305565b508482101561034257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80516020808301519190811015610245575f1960209190910360031b1b16919050565b60805160a05160c05160e0516101005161012051610140516151076103fa5f395f611abf01525f611a9501525f613f5301525f613f2b01525f613e8601525f613eb001525f613eda01526151075ff3fe608060405234801561000f575f5ffd5b50600436106102d7575f3560e01c806379ba509711610187578063b17b658d116100dd578063cab4f84c11610093578063f2fde38b1161006e578063f2fde38b14610784578063f6d95efd14610797578063f90cdb36146107cc575f5ffd5b8063cab4f84c14610729578063cc218ece1461073c578063e30c397814610766575f5ffd5b8063b7477674116100c3578063b7477674146106af578063c2b7307614610703578063c407687614610716575f5ffd5b8063b17b658d14610667578063b6bdff031461069c575f5ffd5b806392a88fa21161013d578063abb49f1911610118578063abb49f1914610622578063ae1914f814610635578063b0ab63ec14610648575f5ffd5b806392a88fa2146105da57806398221e94146105fc5780639be41fdb1461060f575f5ffd5b806384b0196e1161016d57806384b0196e1461058e5780638da5cb5b146105a95780639246261c146105c7575f5ffd5b806379ba50971461057357806381377bfd1461057b575f5ffd5b806341b1fa761161023c5780634e293ee9116101f2578063715018a6116101cd578063715018a6146105455780637362ecbe1461054d57806373eb513314610560575f5ffd5b80634e293ee9146104ff5780634f487eb8146105125780636c19e78314610532575f5ffd5b8063464b38bc11610222578063464b38bc1461049557806347de43e2146104c25780634bd21445146104d5575f5ffd5b806341b1fa761461043e578063422e0af014610460575f5ffd5b8063141a468c1161029157806320761fc41161027757806320761fc4146103dc578063238ac933146103fe57806332b4fa6b1461041e575f5ffd5b8063141a468c146103a75780631e777ad3146103c9575f5ffd5b80630d2a7ae8116102c15780630d2a7ae8146103035780630dfbe91b146103625780631241177214610394575f5ffd5b8062fc59c0146102db578063097a8ec4146102f0575b5f5ffd5b6102ee6102e93660046144e9565b6107ee565b005b6102ee6102fe36600461450b565b6108bd565b6103386103113660046144e9565b60116020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6103846103703660046144e9565b60086020525f908152604090205460ff1681565b6040519015158152602001610359565b6102ee6103a2366004614587565b610a4b565b6103846103b53660046145f4565b600c6020525f908152604090205460ff1681565b6102ee6103d736600461464c565b610e9b565b6103846103ea3660046144e9565b600f6020525f908152604090205460ff1681565b6005546103389073ffffffffffffffffffffffffffffffffffffffff1681565b6004546103389073ffffffffffffffffffffffffffffffffffffffff1681565b61038461044c3660046144e9565b60136020525f908152604090205460ff1681565b61033861046e3660046144e9565b60126020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6104b46104a33660046144e9565b60096020525f908152604090205481565b604051908152602001610359565b6102ee6104d03660046146ac565b610fac565b6104b46104e33660046146e9565b600d60209081525f928352604080842090915290825290205481565b6102ee61050d366004614736565b61114d565b6006546103389073ffffffffffffffffffffffffffffffffffffffff1681565b6102ee6105403660046144e9565b6114b4565b6102ee61157c565b6102ee61055b366004614786565b61158f565b6102ee61056e3660046144e9565b6116fe565b6102ee6117c6565b6102ee61058936600461464c565b611880565b610596611a88565b6040516103599796959493929190614829565b60025473ffffffffffffffffffffffffffffffffffffffff16610338565b6103386105d53660046145f4565b611b2a565b6103846105e83660046144e9565b60106020525f908152604090205460ff1681565b6102ee61060a3660046148e8565b611b5f565b6102ee61061d366004614736565b61213f565b6102ee610630366004614959565b6123f3565b6102ee61064336600461450b565b6124d1565b6104b46106563660046144e9565b600a6020525f908152604090205481565b6103386106753660046144e9565b600b6020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6102ee6106aa36600461464c565b61267d565b6106e86106bd3660046146e9565b601660209081525f928352604080842090915290825290208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610359565b6102ee610711366004614985565b612893565b6102ee6107243660046149f2565b612acb565b6102ee6107373660046144e9565b612c4c565b6104b461074a3660046146e9565b600e60209081525f928352604080842090915290825290205481565b60035473ffffffffffffffffffffffffffffffffffffffff16610338565b6102ee6107923660046144e9565b612f65565b6103386107a53660046144e9565b60156020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6103846107da3660046144e9565b60146020525f908152604090205460ff1681565b6107f6613015565b73ffffffffffffffffffffffffffffffffffffffff8116610843576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f15d0b1a02a4902c4788ceda199eb43e4a753d86c0dbb7412e8ba63feecb070fa906020015b60405180910390a150565b6108c5613015565b73ffffffffffffffffffffffffffffffffffffffff8216610912576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f9081526010602052604090205460ff1680610969575073ffffffffffffffffffffffffffffffffffffffff83165f9081526014602052604090205460ff165b61099f576040517f3be3aba200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080516060810182528281525f60208201529081016109c26201518042614a49565b905273ffffffffffffffffffffffffffffffffffffffff8481165f81815260166020908152604080832094881680845294825291829020855181558582015160018201559482015160029095019490945551848152919290917f39ff4a05a64bdf7e1dcb0b2d6b7e35b6a720a9412386a9e193c0e93d29a18470910160405180910390a3505050565b335f9081526014602052604090205460ff16610a93576040517f99b01c4700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a9b613096565b610aa683838361311a565b610b1d610ab66060850185614a81565b808060200260200160405190810160405280939291908181526020015f905b82821015610b0157610af260408302860136819003810190614ae5565b81526020019060010190610ad5565b50610b1893505060608801915050604087016144e9565b61335f565b335f9081526015602052604081205473ffffffffffffffffffffffffffffffffffffffff16905b610b516080860186614a81565b9050811015610c4657610b676080860186614a81565b82818110610b7757610b77614b62565b90506040020160200135600e5f876040016020810190610b9791906144e9565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040015f90812090610bcc6080890189614a81565b85818110610bdc57610bdc614b62565b610bf292602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254610c399190614b8f565b9091555050600101610b44565b505f5b610c566060860186614a81565b9050811015610d4c575f610c6d6060870187614a81565b83818110610c7d57610c7d614b62565b610c9392602060409092020190810191506144e9565b90505f610ca36060880188614a81565b84818110610cb357610cb3614b62565b9050604002016020013590505f811315610cf957610cf43330610cd58461354d565b73ffffffffffffffffffffffffffffffffffffffff86169291906135bc565b610d42565b610d143383610d0f610d0a85614ba2565b61354d565b613698565b610d4284610d24610d0a84614ba2565b73ffffffffffffffffffffffffffffffffffffffff851691906137aa565b5050600101610c49565b505f5b610d5c6080860186614a81565b9050811015610e26575f610d736080870187614a81565b83818110610d8357610d83614b62565b610d9992602060409092020190810191506144e9565b9050610dcc3382610dad60808a018a614a81565b86818110610dbd57610dbd614b62565b90506040020160200135613698565b610e1d83610ddd6080890189614a81565b85818110610ded57610ded614b62565b905060400201602001358373ffffffffffffffffffffffffffffffffffffffff166137aa9092919063ffffffff16565b50600101610d4f565b507fb5689a012cf77dd0a99ac07ed6f83009d7fbfca323bca73b34d6ed02bf413ab8610e5860608601604087016144e9565b33610e666060880188614a81565b610e7360808a018a614a81565b604051610e8596959493929190614c36565b60405180910390a150610e96613800565b505050565b610ea3613015565b5f5b82811015610fa6575f600b81868685818110610ec357610ec3614b62565b610ed992602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f20541603610f39576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f9e82858584818110610f4f57610f4f614b62565b90506040020160200135868685818110610f6b57610f6b614b62565b610f8192602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff16919061382a565b600101610ea5565b50505050565b610fb4613015565b73ffffffffffffffffffffffffffffffffffffffff831615801590610fee575073ffffffffffffffffffffffffffffffffffffffff821615155b611024576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611089576040517f88b43fad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8381165f81815260146020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016871515908117909155601583529281902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169588169590951790945583519283528201527f81e020344174972c59f6c11a8f6c90b141866214e3d9b544d030f0b532f5a10f91015b60405180910390a1505050565b61115d60608401604085016144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff1680156111a6575073ffffffffffffffffffffffffffffffffffffffff811633145b80611205575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff168015611205575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b61123b576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611243613096565b61124e848484613880565b5f5b61125d6060860186614a81565b9050811015611352576112736060860186614a81565b8281811061128357611283614b62565b90506040020160200135600e5f8760400160208101906112a391906144e9565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040015f908120906112d86060890189614a81565b858181106112e8576112e8614b62565b6112fe92602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546113459190614b8f565b9091555050600101611250565b505f60128161136760608801604089016144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f9081205490911691505b6113a46060870187614a81565b9050811015611455575f6113bb6060880188614a81565b838181106113cb576113cb614b62565b6113e192602060409092020190810191506144e9565b90505f6113f16060890189614a81565b8481811061140157611401614b62565b90506040020160200135905061142a88604001602081019061142391906144e9565b8383613698565b61144b73ffffffffffffffffffffffffffffffffffffffff831685836137aa565b5050600101611397565b507f455917442c530b052ee826d2556fad794f64a294e455930a63599688abbffa3c61148760608701604088016144e9565b6114946060880188614a81565b6040516114a393929190614ca1565b60405180910390a150610fa6613800565b6114bc613015565b73ffffffffffffffffffffffffffffffffffffffff8116611509576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f9eaa897564d022fb8c5efaf0acdb5d9d27b440b2aad44400b6e1c702e65b9ed3906020016108b2565b611584613015565b61158d5f6139aa565b565b335f9081526008602052604090205460ff166115d7576040517fd687c5f200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8481165f908152600b60205260409020541615801590611631575073ffffffffffffffffffffffffffffffffffffffff8281165f908152600b60205260409020541615155b611667576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8086165f908152600d60209081526040808320938816835292905290812080548592906116aa908490614cd9565b909155505073ffffffffffffffffffffffffffffffffffffffff8086165f908152600d60209081526040808320938616835292905290812080548392906116f2908490614d00565b90915550505050505050565b611706613015565b73ffffffffffffffffffffffffffffffffffffffff8116611753576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f538bd377a1e0d2ceca49908f540bafa1d8616cf49a7bcefcd0b479e7531ff8aa906020016108b2565b600354339073ffffffffffffffffffffffffffffffffffffffff168114611874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61187d816139aa565b50565b73ffffffffffffffffffffffffffffffffffffffff81165f90815260106020526040902054819060ff1680156118cb575073ffffffffffffffffffffffffffffffffffffffff811633145b8061192a575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff16801561192a575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b611960576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611968613096565b6119c38484808060200260200160405190810160405280939291908181526020015f905b828210156119b8576119a960408302860136819003810190614ae5565b8152602001906001019061198c565b50505050508361335f565b5f5b83811015611a4457611a3c33306119f68888868181106119e7576119e7614b62565b9050604002016020013561354d565b888886818110611a0857611a08614b62565b611a1e92602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff169291906135bc565b6001016119c5565b507fc8aa82285b2a9e22e0bda601a759e4f578e78f18015e543a4f66bb120a726953828585604051611a7893929190614ca1565b60405180910390a1610fa6613800565b5f60608082808083611aba7f0000000000000000000000000000000000000000000000000000000000000000836139db565b611ae57f000000000000000000000000000000000000000000000000000000000000000060016139db565b604080515f808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b60078181548110611b39575f80fd5b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60065473ffffffffffffffffffffffffffffffffffffffff163314611bb0576040517f16ced9a800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b81811015612101575f838383818110611bcd57611bcd614b62565b9050602002810190611bdf9190614d26565b611bed9060208101906144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600a602052604090205490915061708090611c239042614b8f565b1015611c5b576040517f0dc2dde400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848484818110611c6f57611c6f614b62565b9050602002810190611c819190614d26565b611c8f906020810190614d62565b90508110156120d2575f858585818110611cab57611cab614b62565b9050602002810190611cbd9190614d26565b611ccb906020810190614d62565b83818110611cdb57611cdb614b62565b611cf192602060609092020190810191506144e9565b90505f868686818110611d0657611d06614b62565b9050602002810190611d189190614d26565b611d26906020810190614d62565b84818110611d3657611d36614b62565b9050606002016020013590505f878787818110611d5557611d55614b62565b9050602002810190611d679190614d26565b611d75906020810190614d62565b85818110611d8557611d85614b62565b73ffffffffffffffffffffffffffffffffffffffff8681165f908152600b60205260409081902054606090930294909401939093013593509091169050611df8576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81156120295773ffffffffffffffffffffffffffffffffffffffff8084165f908152600b602090815260408083205481517f3ba0b9a9000000000000000000000000000000000000000000000000000000008152915193941692633ba0b9a9926004808401939192918290030181865afa158015611e78573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e9c9190614dc5565b73ffffffffffffffffffffffffffffffffffffffff8581165f908152600b6020526040908190205490517fc8cc5cd800000000000000000000000000000000000000000000000000000000815260048101879052929350169063c8cc5cd8906024015f604051808303815f87803b158015611f15575f5ffd5b505af1158015611f27573d5f5f3e3d5ffd5b50505050806064611f389190614ddc565b73ffffffffffffffffffffffffffffffffffffffff8086165f908152600b60209081526040918290205482517f3ba0b9a9000000000000000000000000000000000000000000000000000000008152925186949190911692633ba0b9a99260048083019391928290030181865afa158015611fb5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fd99190614dc5565b611fe39190614b8f565b611fef90612710614ddc565b1115612027576040517f0aa1e28500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b80156120695773ffffffffffffffffffffffffffffffffffffffff83165f9081526009602052604081208054839290612063908490614df3565b90915550505b61207b6120768383614df3565b613a86565b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d60209081526040808320938816835292905290812080549091906120be908490614d00565b909155505060019093019250611c5d915050565b5073ffffffffffffffffffffffffffffffffffffffff165f908152600a60205260409020429055600101611bb2565b507f90e0333a7f11b37e50e152c45bb5ebfc2ce2ace82e290567861d3ae8529688748282604051612133929190614e06565b60405180910390a15050565b61214f60608401604085016144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff168015612198575073ffffffffffffffffffffffffffffffffffffffff811633145b806121f7575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff1680156121f7575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b61222d576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612235613096565b612240848484613b37565b6122b26122506060860186614a81565b808060200260200160405190810160405280939291908181526020015f905b8282101561229b5761228c60408302860136819003810190614ae5565b8152602001906001019061226f565b50610b1893505060608901915050604088016144e9565b5f6012816122c660608801604089016144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f9081205490911691505b6123036060870187614a81565b90508110156123c1575f61231a6060880188614a81565b8381811061232a5761232a614b62565b61234092602060409092020190810191506144e9565b90505f6123506060890189614a81565b8481811061236057612360614b62565b9050604002016020013590505f811315612387576123823330610cd58461354d565b6123b7565b6123a761239a60608a0160408b016144e9565b83610d0f610d0a85614ba2565b6123b784610d24610d0a84614ba2565b50506001016122f6565b507f0279bcc316c233db88e8f3e463dcefc7fa661da21bc66eadc60f3835e41bba1161148760608701604088016144e9565b6123fb613015565b73ffffffffffffffffffffffffffffffffffffffff8216612448576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82165f8181526008602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527f947aca305c9b8d94b31792a7f80d331c9452e743508d61331561378673b50103910160405180910390a25050565b73ffffffffffffffffffffffffffffffffffffffff821661251e576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60045473ffffffffffffffffffffffffffffffffffffffff16331461256f576040517fdcdd32f100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f908152600960205260409020548111156125cd576040517fce11c63900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f9081526009602052604081208054839290612601908490614b8f565b90915550612628905073ffffffffffffffffffffffffffffffffffffffff841683836137aa565b6040805173ffffffffffffffffffffffffffffffffffffffff8086168252841660208201529081018290527fde13184e8cbb6eccbcecfc796bf8820e5ffde0534c01b4fabed4b05982964a4490606001611140565b612685613096565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff166126e3576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8281101561284f575f84848381811061270057612700614b62565b61271692602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600f602052604090205490915060ff16612777576040517f918aa47f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f85858481811061278a5761278a614b62565b90506040020160200135905080600e5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461281d9190614df3565b90915550612845905073ffffffffffffffffffffffffffffffffffffffff83163330846135bc565b50506001016126e5565b507f770dafe0b413d5c277b5f1a9d1d725e5ebafe92b5a16f3ebaae6e49e43b6649981848460405161288393929190614ca1565b60405180910390a1610e96613800565b61289b613015565b73ffffffffffffffffffffffffffffffffffffffff8516158015906128d5575073ffffffffffffffffffffffffffffffffffffffff841615155b80156128f6575073ffffffffffffffffffffffffffffffffffffffff831615155b61292c576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561299457508373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b6129ca576040517f5bc7a3a500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8581165f81815260106020908152604080832080548815157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091821681179092556011845282852080548c89167fffffffffffffffffffffffff00000000000000000000000000000000000000009182168117909255601286528487208054998d169990911689179055601385529483902080548915159216821790558251918252928101929092528101919091526060810192909252907f2353ec0fe56a376d3269d3e65521f1ce07dc5f544cc5b0ba4eb2ff03f771a4ad9060800160405180910390a25050505050565b335f908152600f602052604090205460ff16612b13576040517f918aa47f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1663c70920bc6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b5c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b809190614dc5565b811115612bb9576040517fff75bad100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c4882823373ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612c07573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612c2b9190614f9d565b73ffffffffffffffffffffffffffffffffffffffff1691906137aa565b5050565b612c54613015565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600f602052604090205460ff1615612cb3576040517fdeaabdc200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8173ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612cfd573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d219190614f9d565b73ffffffffffffffffffffffffffffffffffffffff8082165f908152600b602052604090205491925016158015612def57503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1663e2498f726040518163ffffffff1660e01b8152600401602060405180830381865afa158015612db3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612dd79190614f9d565b73ffffffffffffffffffffffffffffffffffffffff16145b612e25576040517f9db8d5b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116612e72576040517ff418616400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8181165f908152600b6020908152604080832080549487167fffffffffffffffffffffffff00000000000000000000000000000000000000009586168117909155808452600f835281842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091556007805491820181559094527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6889093018054909416831790935591519081527fcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f9101612133565b612f6d613015565b6003805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155612fd060025473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60025473ffffffffffffffffffffffffffffffffffffffff16331461158d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161186b565b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005c156130ef576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61158d7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f006001613bbd565b4283602001351015613158576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131628335613bc4565b5f7f76c5f3d53a01a9f0a59b081b22aba3a0f03248e9241993e97d1d025ef2ffaac28435602086013561319b60608801604089016144e9565b6131a86060890189614a81565b6040516020016131b9929190614fb8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905280516020909101206131fc60808a018a614a81565b60405160200161320d929190614fb8565b604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00181528282528051602091820120335f90815260158352839020549184019890985290820195909552606081019390935273ffffffffffffffffffffffffffffffffffffffff918216608084015260a083015260c0820193909352911660e0820152610100015b6040516020818303038152906040528051906020012090505f6132be82613c44565b90505f6133008286868080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250613c8b92505050565b60055490915073ffffffffffffffffffffffffffffffffffffffff808316911614613357576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b81515f5b81811015610fa6575f84828151811061337e5761337e614b62565b60200260200101515f015190505f85838151811061339e5761339e614b62565b60209081029190910181015181015173ffffffffffffffffffffffffffffffffffffffff8088165f908152600d845260408082209287168252919093528220549092506133ec908390614cd9565b73ffffffffffffffffffffffffffffffffffffffff8481165f908152600b60205260409020549192501661344c576040517ff418616400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d6020908152604080832093871683529290529081205461348b908490614fcb565b1215806134d4575073ffffffffffffffffffffffffffffffffffffffff8087165f908152600d602090815260408083209387168352929052908120546134d2908390614fcb565b125b1561350b576040517f09a09f7500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d60209081526040808320969093168252949094529092209190915550600101613363565b5f5f8212156135b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f736974697665604482015260640161186b565b5090565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610fa69085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152613cad565b73ffffffffffffffffffffffffffffffffffffffff8084165f9081526016602090815260408083209386168352929052908120906136d96201518042614a49565b90505f82600201548211156136ef575082613702565b8383600101546136ff9190614df3565b90505b82541580613711575082548111155b613747576040517ff5b71ffc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160608101825293548452602080850192835284820193845273ffffffffffffffffffffffffffffffffffffffff9788165f9081526016825282812097909816885295909552939094209051815591516001830155509051600290910155565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610e969084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401613616565b61158d7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005f613bbd565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610e969084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401613616565b42836020013510156138be576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6138c88335613bc4565b5f7f6b9aa5f8de278806afcc63bb2d2e633b4da3536375ca60f09ae8fae5829b3c468435602086013561390160608801604089016144e9565b61390e6060890189614a81565b60405160200161391f929190614fb8565b6040516020818303038152906040528051906020012060125f8a604001602081019061394b91906144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182015f2054825193840198909852908201959095526060810193909352908316608083015260a0820152911660c082015260e00161329c565b600380547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561187d81613dba565b606060ff83146139f5576139ee83613e30565b9050613a80565b818054613a0190615016565b80601f0160208091040260200160405190810160405280929190818152602001828054613a2d90615016565b8015613a785780601f10613a4f57610100808354040283529160200191613a78565b820191905f5260205f20905b815481529060010190602001808311613a5b57829003601f168201915b505050505090505b92915050565b5f7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8211156135b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e206160448201527f6e20696e74323536000000000000000000000000000000000000000000000000606482015260840161186b565b4283602001351015613b75576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613b7f8335613bc4565b5f7fe83563cdfbb4d31bd8759eea5a634fbe67ea13b6739d04d2426c621fee979fa48435602086013561390160608801604089016144e9565b905090565b80825d5050565b5f818152600c602052604090205460ff1615613c0c576040517f1f6d5aef00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f908152600c6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b5f613a80613c50613e6d565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b5f5f5f613c988585613fa3565b91509150613ca581613fe5565b509392505050565b5f613d0e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166141979092919063ffffffff16565b905080515f1480613d2e575080806020019051810190613d2e9190615061565b610e96576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161186b565b6002805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b60605f613e3c836141ad565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b5f3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016148015613ed257507f000000000000000000000000000000000000000000000000000000000000000046145b15613efc57507f000000000000000000000000000000000000000000000000000000000000000090565b613bb8604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b5f5f8251604103613fd7576020830151604084015160608501515f1a613fcb878285856141ed565b94509450505050613fde565b505f905060025b9250929050565b5f816004811115613ff857613ff861507c565b036140005750565b60018160048111156140145761401461507c565b0361407b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161186b565b600281600481111561408f5761408f61507c565b036140f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161186b565b600381600481111561410a5761410a61507c565b0361187d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161186b565b60606141a584845f856142d5565b949350505050565b5f60ff8216601f811115613a80576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561422257505f905060036142cc565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614273573d5f5f3e3d5ffd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166142c6575f600192509250506142cc565b91505f90505b94509492505050565b606082471015614367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161186b565b5f5f8673ffffffffffffffffffffffffffffffffffffffff16858760405161438f91906150a9565b5f6040518083038185875af1925050503d805f81146143c9576040519150601f19603f3d011682016040523d82523d5f602084013e6143ce565b606091505b50915091506143df878383876143ea565b979650505050505050565b6060831561447f5782515f036144785773ffffffffffffffffffffffffffffffffffffffff85163b614478576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161186b565b50816141a5565b6141a583838151156144945781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186b91906150bf565b73ffffffffffffffffffffffffffffffffffffffff8116811461187d575f5ffd5b5f602082840312156144f9575f5ffd5b8135614504816144c8565b9392505050565b5f5f5f6060848603121561451d575f5ffd5b8335614528816144c8565b92506020840135614538816144c8565b929592945050506040919091013590565b5f5f83601f840112614559575f5ffd5b50813567ffffffffffffffff811115614570575f5ffd5b602083019150836020828501011115613fde575f5ffd5b5f5f5f60408486031215614599575f5ffd5b833567ffffffffffffffff8111156145af575f5ffd5b840160a081870312156145c0575f5ffd5b9250602084013567ffffffffffffffff8111156145db575f5ffd5b6145e786828701614549565b9497909650939450505050565b5f60208284031215614604575f5ffd5b5035919050565b5f5f83601f84011261461b575f5ffd5b50813567ffffffffffffffff811115614632575f5ffd5b6020830191508360208260061b8501011115613fde575f5ffd5b5f5f5f6040848603121561465e575f5ffd5b833567ffffffffffffffff811115614674575f5ffd5b6146808682870161460b565b9094509250506020840135614694816144c8565b809150509250925092565b801515811461187d575f5ffd5b5f5f5f606084860312156146be575f5ffd5b83356146c9816144c8565b925060208401356146d9816144c8565b915060408401356146948161469f565b5f5f604083850312156146fa575f5ffd5b8235614705816144c8565b91506020830135614715816144c8565b809150509250929050565b5f60808284031215614730575f5ffd5b50919050565b5f5f5f60408486031215614748575f5ffd5b833567ffffffffffffffff81111561475e575f5ffd5b61476a86828701614720565b935050602084013567ffffffffffffffff8111156145db575f5ffd5b5f5f5f5f5f60a0868803121561479a575f5ffd5b85356147a5816144c8565b945060208601356147b5816144c8565b93506040860135925060608601356147cc816144c8565b949793965091946080013592915050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f61486360e08301896147dd565b828103604084015261487581896147dd565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b818110156148d75783518352602093840193909201916001016148b9565b50909b9a5050505050505050505050565b5f5f602083850312156148f9575f5ffd5b823567ffffffffffffffff81111561490f575f5ffd5b8301601f8101851361491f575f5ffd5b803567ffffffffffffffff811115614935575f5ffd5b8560208260051b8401011115614949575f5ffd5b6020919091019590945092505050565b5f5f6040838503121561496a575f5ffd5b8235614975816144c8565b915060208301356147158161469f565b5f5f5f5f5f60a08688031215614999575f5ffd5b85356149a4816144c8565b945060208601356149b4816144c8565b935060408601356149c4816144c8565b925060608601356149d48161469f565b915060808601356149e48161469f565b809150509295509295909350565b5f5f60408385031215614a03575f5ffd5b8235614a0e816144c8565b946020939093013593505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f82614a7c577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614ab4575f5ffd5b83018035915067ffffffffffffffff821115614ace575f5ffd5b6020019150600681901b3603821315613fde575f5ffd5b5f6040828403128015614af6575f5ffd5b506040805190810167ffffffffffffffff81118282101715614b3f577f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040528235614b4d816144c8565b81526020928301359281019290925250919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b81810381811115613a8057613a80614a1c565b5f7f80000000000000000000000000000000000000000000000000000000000000008203614bd257614bd2614a1c565b505f0390565b8183526020830192505f815f5b84811015614c2c578135614bf8816144c8565b73ffffffffffffffffffffffffffffffffffffffff1686526020828101359087015260409586019590910190600101614be5565b5093949350505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff86166020820152608060408201525f614c81608083018688614bd8565b8281036060840152614c94818587614bd8565b9998505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff84168152604060208201525f614cd0604083018486614bd8565b95945050505050565b8082018281125f831280158216821582161715614cf857614cf8614a1c565b505092915050565b8181035f831280158383131683831282161715614d1f57614d1f614a1c565b5092915050565b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc1833603018112614d58575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614d95575f5ffd5b83018035915067ffffffffffffffff821115614daf575f5ffd5b6020019150606081023603821315613fde575f5ffd5b5f60208284031215614dd5575f5ffd5b5051919050565b8082028115828204841417613a8057613a80614a1c565b80820180821115613a8057613a80614a1c565b602080825281018290525f6040600584901b8301810190830185837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc136839003015b87821015614f90577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08786030184528235818112614e84575f5ffd5b8901604086018135614e95816144c8565b73ffffffffffffffffffffffffffffffffffffffff1687526020820135368390037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1018112614ee2575f5ffd5b60209201918201913567ffffffffffffffff811115614eff575f5ffd5b606081023603831315614f10575f5ffd5b60406020890152908190525f90606088015b81831015614f74578335614f35816144c8565b73ffffffffffffffffffffffffffffffffffffffff16815260208481013590820152604080850135908201526060938401936001939093019201614f22565b9750505060209485019493909301925060019190910190614e48565b5092979650505050505050565b5f60208284031215614fad575f5ffd5b8151614504816144c8565b602081525f6141a5602083018486614bd8565b8082025f82127f80000000000000000000000000000000000000000000000000000000000000008414161561500257615002614a1c565b8181058314821517613a8057613a80614a1c565b600181811c9082168061502a57607f821691505b602082108103614730577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60208284031215615071575f5ffd5b81516145048161469f565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b5f82518060208501845e5f920191825250919050565b602081525f61450460208301846147dd56fea2646970667358221220a0ba8db9f3d9a667e49717c5614618d481311d4c3e69e51e9b53166a80821e6764736f6c634300081c0033","sourceMap":"860:26822:18:-:0;;;3942:51;;;;;;;;;-1:-1:-1;3178:431:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3178:431:14;;;;;3251:45;3178:431;-1:-1:-1;3251:30:14;:45::i;:::-;3243:53;;3317:51;:7;3351:16;3317:33;:51::i;:::-;3306:62;;3392:22;;;;;;;;;;3378:36;;3441:25;;;;;;3424:42;;3494:13;3477:30;;3542:23;4077:11;;4090:14;;4054:81;;;1929:95;4054:81;;;2914:25:26;2955:18;;;2948:34;;;;2998:18;;;2991:34;4106:13:14;3041:18:26;;;3034:34;4129:4:14;3084:19:26;;;3077:61;4018:7:14;;2886:19:26;;4054:81:14;;;;;;;;;;;;4044:92;;;;;;4037:99;;3963:180;;3542:23;3517:48;;-1:-1:-1;;3597:4:14;3575:27;;936:32:0;734:10:9;936:18:0;:32::i;:::-;860:26822:18;;2895:341:10;2991:11;3040:2;3024:5;3018:19;:24;3014:216;;;3065:20;3079:5;3065:13;:20::i;:::-;3058:27;;;;3014:216;3142:5;3116:46;3157:5;3142;3116:46;:::i;:::-;-1:-1:-1;1371:66:10;;-1:-1:-1;3014:216:10;2895:341;;;;:::o;1501:153:1:-;1590:13;1583:20;;-1:-1:-1;;;;;;1583:20:1;;;1613:34;1638:8;1613:24;:34::i;:::-;1501:153;:::o;1689:286:10:-;1754:11;1777:17;1803:3;1777:30;;1835:2;1821:4;:11;:16;1817:72;;;1874:3;1860:18;;-1:-1:-1;;;1860:18:10;;;;;;;;:::i;:::-;;;;;;;;1817:72;1955:11;;1938:13;1955:4;1938:13;:::i;:::-;1930:36;;1689:286;-1:-1:-1;;;1689:286:10:o;2426:187:0:-;2518:6;;;-1:-1:-1;;;;;2534:17:0;;;-1:-1:-1;;;;;;2534:17:0;;;;;;;2566:40;;2518:6;;;2534:17;2518:6;;2566:40;;2499:16;;2566:40;2489:124;2426:187;:::o;14:127:26:-;75:10;70:3;66:20;63:1;56:31;106:4;103:1;96:15;130:4;127:1;120:15;146:380;225:1;221:12;;;;268;;;289:61;;343:4;335:6;331:17;321:27;;289:61;396:2;388:6;385:14;365:18;362:38;359:161;;442:10;437:3;433:20;430:1;423:31;477:4;474:1;467:15;505:4;502:1;495:15;359:161;;146:380;;;:::o;657:518::-;759:2;754:3;751:11;748:421;;;795:5;792:1;785:16;839:4;836:1;826:18;909:2;897:10;893:19;890:1;886:27;880:4;876:38;945:4;933:10;930:20;927:47;;;-1:-1:-1;968:4:26;927:47;1023:2;1018:3;1014:12;1011:1;1007:20;1001:4;997:31;987:41;;1078:81;1096:2;1089:5;1086:13;1078:81;;;1155:1;1141:16;;1122:1;1111:13;1078:81;;;1082:3;;748:421;657:518;;;:::o;1351:1299::-;1471:10;;-1:-1:-1;;;;;1493:30:26;;1490:56;;;1526:18;;:::i;:::-;1555:97;1645:6;1605:38;1637:4;1631:11;1605:38;:::i;:::-;1599:4;1555:97;:::i;:::-;1701:4;1732:2;1721:14;;1749:1;1744:649;;;;2437:1;2454:6;2451:89;;;-1:-1:-1;2506:19:26;;;2500:26;2451:89;-1:-1:-1;;1308:1:26;1304:11;;;1300:24;1296:29;1286:40;1332:1;1328:11;;;1283:57;2553:81;;1714:930;;1744:649;604:1;597:14;;;641:4;628:18;;-1:-1:-1;;1780:20:26;;;1898:222;1912:7;1909:1;1906:14;1898:222;;;1994:19;;;1988:26;1973:42;;2101:4;2086:20;;;;2054:1;2042:14;;;;1928:12;1898:222;;;1902:3;2148:6;2139:7;2136:19;2133:201;;;2209:19;;;2203:26;-1:-1:-1;;2292:1:26;2288:14;;;2304:3;2284:24;2280:37;2276:42;2261:58;2246:74;;2133:201;-1:-1:-1;;;;2380:1:26;2364:14;;;2360:22;2347:36;;-1:-1:-1;1351:1299:26:o;3149:418::-;3298:2;3287:9;3280:21;3261:4;3330:6;3324:13;3373:6;3368:2;3357:9;3353:18;3346:34;3432:6;3427:2;3419:6;3415:15;3410:2;3399:9;3395:18;3389:50;3488:1;3483:2;3474:6;3463:9;3459:22;3455:31;3448:42;3558:2;3551;3547:7;3542:2;3534:6;3530:15;3526:29;3515:9;3511:45;3507:54;3499:62;;;3149:418;;;;:::o;3572:297::-;3690:12;;3737:4;3726:16;;;3720:23;;3690:12;3755:16;;3752:111;;;-1:-1:-1;;3829:4:26;3825:17;;;;3822:1;3818:25;3814:38;3803:50;;3572:297;-1:-1:-1;3572:297:26:o;:::-;860:26822:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa2646970667358221220a0ba8db9f3d9a667e49717c5614618d481311d4c3e69e51e9b53166a80821e6764736f6c634300081c0033","offset":21708}},"transformations":[],"transformationValues":{}},"runtimeBytecode":{"onchainBytecode":"0x608060405234801561000f575f5ffd5b50600436106102d7575f3560e01c806379ba509711610187578063b17b658d116100dd578063cab4f84c11610093578063f2fde38b1161006e578063f2fde38b14610784578063f6d95efd14610797578063f90cdb36146107cc575f5ffd5b8063cab4f84c14610729578063cc218ece1461073c578063e30c397814610766575f5ffd5b8063b7477674116100c3578063b7477674146106af578063c2b7307614610703578063c407687614610716575f5ffd5b8063b17b658d14610667578063b6bdff031461069c575f5ffd5b806392a88fa21161013d578063abb49f1911610118578063abb49f1914610622578063ae1914f814610635578063b0ab63ec14610648575f5ffd5b806392a88fa2146105da57806398221e94146105fc5780639be41fdb1461060f575f5ffd5b806384b0196e1161016d57806384b0196e1461058e5780638da5cb5b146105a95780639246261c146105c7575f5ffd5b806379ba50971461057357806381377bfd1461057b575f5ffd5b806341b1fa761161023c5780634e293ee9116101f2578063715018a6116101cd578063715018a6146105455780637362ecbe1461054d57806373eb513314610560575f5ffd5b80634e293ee9146104ff5780634f487eb8146105125780636c19e78314610532575f5ffd5b8063464b38bc11610222578063464b38bc1461049557806347de43e2146104c25780634bd21445146104d5575f5ffd5b806341b1fa761461043e578063422e0af014610460575f5ffd5b8063141a468c1161029157806320761fc41161027757806320761fc4146103dc578063238ac933146103fe57806332b4fa6b1461041e575f5ffd5b8063141a468c146103a75780631e777ad3146103c9575f5ffd5b80630d2a7ae8116102c15780630d2a7ae8146103035780630dfbe91b146103625780631241177214610394575f5ffd5b8062fc59c0146102db578063097a8ec4146102f0575b5f5ffd5b6102ee6102e93660046144e9565b6107ee565b005b6102ee6102fe36600461450b565b6108bd565b6103386103113660046144e9565b60116020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6103846103703660046144e9565b60086020525f908152604090205460ff1681565b6040519015158152602001610359565b6102ee6103a2366004614587565b610a4b565b6103846103b53660046145f4565b600c6020525f908152604090205460ff1681565b6102ee6103d736600461464c565b610e9b565b6103846103ea3660046144e9565b600f6020525f908152604090205460ff1681565b6005546103389073ffffffffffffffffffffffffffffffffffffffff1681565b6004546103389073ffffffffffffffffffffffffffffffffffffffff1681565b61038461044c3660046144e9565b60136020525f908152604090205460ff1681565b61033861046e3660046144e9565b60126020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6104b46104a33660046144e9565b60096020525f908152604090205481565b604051908152602001610359565b6102ee6104d03660046146ac565b610fac565b6104b46104e33660046146e9565b600d60209081525f928352604080842090915290825290205481565b6102ee61050d366004614736565b61114d565b6006546103389073ffffffffffffffffffffffffffffffffffffffff1681565b6102ee6105403660046144e9565b6114b4565b6102ee61157c565b6102ee61055b366004614786565b61158f565b6102ee61056e3660046144e9565b6116fe565b6102ee6117c6565b6102ee61058936600461464c565b611880565b610596611a88565b6040516103599796959493929190614829565b60025473ffffffffffffffffffffffffffffffffffffffff16610338565b6103386105d53660046145f4565b611b2a565b6103846105e83660046144e9565b60106020525f908152604090205460ff1681565b6102ee61060a3660046148e8565b611b5f565b6102ee61061d366004614736565b61213f565b6102ee610630366004614959565b6123f3565b6102ee61064336600461450b565b6124d1565b6104b46106563660046144e9565b600a6020525f908152604090205481565b6103386106753660046144e9565b600b6020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6102ee6106aa36600461464c565b61267d565b6106e86106bd3660046146e9565b601660209081525f928352604080842090915290825290208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610359565b6102ee610711366004614985565b612893565b6102ee6107243660046149f2565b612acb565b6102ee6107373660046144e9565b612c4c565b6104b461074a3660046146e9565b600e60209081525f928352604080842090915290825290205481565b60035473ffffffffffffffffffffffffffffffffffffffff16610338565b6102ee6107923660046144e9565b612f65565b6103386107a53660046144e9565b60156020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6103846107da3660046144e9565b60146020525f908152604090205460ff1681565b6107f6613015565b73ffffffffffffffffffffffffffffffffffffffff8116610843576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f15d0b1a02a4902c4788ceda199eb43e4a753d86c0dbb7412e8ba63feecb070fa906020015b60405180910390a150565b6108c5613015565b73ffffffffffffffffffffffffffffffffffffffff8216610912576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f9081526010602052604090205460ff1680610969575073ffffffffffffffffffffffffffffffffffffffff83165f9081526014602052604090205460ff165b61099f576040517f3be3aba200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080516060810182528281525f60208201529081016109c26201518042614a49565b905273ffffffffffffffffffffffffffffffffffffffff8481165f81815260166020908152604080832094881680845294825291829020855181558582015160018201559482015160029095019490945551848152919290917f39ff4a05a64bdf7e1dcb0b2d6b7e35b6a720a9412386a9e193c0e93d29a18470910160405180910390a3505050565b335f9081526014602052604090205460ff16610a93576040517f99b01c4700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a9b613096565b610aa683838361311a565b610b1d610ab66060850185614a81565b808060200260200160405190810160405280939291908181526020015f905b82821015610b0157610af260408302860136819003810190614ae5565b81526020019060010190610ad5565b50610b1893505060608801915050604087016144e9565b61335f565b335f9081526015602052604081205473ffffffffffffffffffffffffffffffffffffffff16905b610b516080860186614a81565b9050811015610c4657610b676080860186614a81565b82818110610b7757610b77614b62565b90506040020160200135600e5f876040016020810190610b9791906144e9565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040015f90812090610bcc6080890189614a81565b85818110610bdc57610bdc614b62565b610bf292602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254610c399190614b8f565b9091555050600101610b44565b505f5b610c566060860186614a81565b9050811015610d4c575f610c6d6060870187614a81565b83818110610c7d57610c7d614b62565b610c9392602060409092020190810191506144e9565b90505f610ca36060880188614a81565b84818110610cb357610cb3614b62565b9050604002016020013590505f811315610cf957610cf43330610cd58461354d565b73ffffffffffffffffffffffffffffffffffffffff86169291906135bc565b610d42565b610d143383610d0f610d0a85614ba2565b61354d565b613698565b610d4284610d24610d0a84614ba2565b73ffffffffffffffffffffffffffffffffffffffff851691906137aa565b5050600101610c49565b505f5b610d5c6080860186614a81565b9050811015610e26575f610d736080870187614a81565b83818110610d8357610d83614b62565b610d9992602060409092020190810191506144e9565b9050610dcc3382610dad60808a018a614a81565b86818110610dbd57610dbd614b62565b90506040020160200135613698565b610e1d83610ddd6080890189614a81565b85818110610ded57610ded614b62565b905060400201602001358373ffffffffffffffffffffffffffffffffffffffff166137aa9092919063ffffffff16565b50600101610d4f565b507fb5689a012cf77dd0a99ac07ed6f83009d7fbfca323bca73b34d6ed02bf413ab8610e5860608601604087016144e9565b33610e666060880188614a81565b610e7360808a018a614a81565b604051610e8596959493929190614c36565b60405180910390a150610e96613800565b505050565b610ea3613015565b5f5b82811015610fa6575f600b81868685818110610ec357610ec3614b62565b610ed992602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f20541603610f39576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f9e82858584818110610f4f57610f4f614b62565b90506040020160200135868685818110610f6b57610f6b614b62565b610f8192602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff16919061382a565b600101610ea5565b50505050565b610fb4613015565b73ffffffffffffffffffffffffffffffffffffffff831615801590610fee575073ffffffffffffffffffffffffffffffffffffffff821615155b611024576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611089576040517f88b43fad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8381165f81815260146020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016871515908117909155601583529281902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169588169590951790945583519283528201527f81e020344174972c59f6c11a8f6c90b141866214e3d9b544d030f0b532f5a10f91015b60405180910390a1505050565b61115d60608401604085016144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff1680156111a6575073ffffffffffffffffffffffffffffffffffffffff811633145b80611205575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff168015611205575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b61123b576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611243613096565b61124e848484613880565b5f5b61125d6060860186614a81565b9050811015611352576112736060860186614a81565b8281811061128357611283614b62565b90506040020160200135600e5f8760400160208101906112a391906144e9565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040015f908120906112d86060890189614a81565b858181106112e8576112e8614b62565b6112fe92602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546113459190614b8f565b9091555050600101611250565b505f60128161136760608801604089016144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f9081205490911691505b6113a46060870187614a81565b9050811015611455575f6113bb6060880188614a81565b838181106113cb576113cb614b62565b6113e192602060409092020190810191506144e9565b90505f6113f16060890189614a81565b8481811061140157611401614b62565b90506040020160200135905061142a88604001602081019061142391906144e9565b8383613698565b61144b73ffffffffffffffffffffffffffffffffffffffff831685836137aa565b5050600101611397565b507f455917442c530b052ee826d2556fad794f64a294e455930a63599688abbffa3c61148760608701604088016144e9565b6114946060880188614a81565b6040516114a393929190614ca1565b60405180910390a150610fa6613800565b6114bc613015565b73ffffffffffffffffffffffffffffffffffffffff8116611509576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f9eaa897564d022fb8c5efaf0acdb5d9d27b440b2aad44400b6e1c702e65b9ed3906020016108b2565b611584613015565b61158d5f6139aa565b565b335f9081526008602052604090205460ff166115d7576040517fd687c5f200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8481165f908152600b60205260409020541615801590611631575073ffffffffffffffffffffffffffffffffffffffff8281165f908152600b60205260409020541615155b611667576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8086165f908152600d60209081526040808320938816835292905290812080548592906116aa908490614cd9565b909155505073ffffffffffffffffffffffffffffffffffffffff8086165f908152600d60209081526040808320938616835292905290812080548392906116f2908490614d00565b90915550505050505050565b611706613015565b73ffffffffffffffffffffffffffffffffffffffff8116611753576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f538bd377a1e0d2ceca49908f540bafa1d8616cf49a7bcefcd0b479e7531ff8aa906020016108b2565b600354339073ffffffffffffffffffffffffffffffffffffffff168114611874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61187d816139aa565b50565b73ffffffffffffffffffffffffffffffffffffffff81165f90815260106020526040902054819060ff1680156118cb575073ffffffffffffffffffffffffffffffffffffffff811633145b8061192a575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff16801561192a575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b611960576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611968613096565b6119c38484808060200260200160405190810160405280939291908181526020015f905b828210156119b8576119a960408302860136819003810190614ae5565b8152602001906001019061198c565b50505050508361335f565b5f5b83811015611a4457611a3c33306119f68888868181106119e7576119e7614b62565b9050604002016020013561354d565b888886818110611a0857611a08614b62565b611a1e92602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff169291906135bc565b6001016119c5565b507fc8aa82285b2a9e22e0bda601a759e4f578e78f18015e543a4f66bb120a726953828585604051611a7893929190614ca1565b60405180910390a1610fa6613800565b5f60608082808083611aba7f4e617469766520437265646974205661756c7400000000000000000000000013836139db565b611ae57f310000000000000000000000000000000000000000000000000000000000000160016139db565b604080515f808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b60078181548110611b39575f80fd5b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60065473ffffffffffffffffffffffffffffffffffffffff163314611bb0576040517f16ced9a800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b81811015612101575f838383818110611bcd57611bcd614b62565b9050602002810190611bdf9190614d26565b611bed9060208101906144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600a602052604090205490915061708090611c239042614b8f565b1015611c5b576040517f0dc2dde400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848484818110611c6f57611c6f614b62565b9050602002810190611c819190614d26565b611c8f906020810190614d62565b90508110156120d2575f858585818110611cab57611cab614b62565b9050602002810190611cbd9190614d26565b611ccb906020810190614d62565b83818110611cdb57611cdb614b62565b611cf192602060609092020190810191506144e9565b90505f868686818110611d0657611d06614b62565b9050602002810190611d189190614d26565b611d26906020810190614d62565b84818110611d3657611d36614b62565b9050606002016020013590505f878787818110611d5557611d55614b62565b9050602002810190611d679190614d26565b611d75906020810190614d62565b85818110611d8557611d85614b62565b73ffffffffffffffffffffffffffffffffffffffff8681165f908152600b60205260409081902054606090930294909401939093013593509091169050611df8576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81156120295773ffffffffffffffffffffffffffffffffffffffff8084165f908152600b602090815260408083205481517f3ba0b9a9000000000000000000000000000000000000000000000000000000008152915193941692633ba0b9a9926004808401939192918290030181865afa158015611e78573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e9c9190614dc5565b73ffffffffffffffffffffffffffffffffffffffff8581165f908152600b6020526040908190205490517fc8cc5cd800000000000000000000000000000000000000000000000000000000815260048101879052929350169063c8cc5cd8906024015f604051808303815f87803b158015611f15575f5ffd5b505af1158015611f27573d5f5f3e3d5ffd5b50505050806064611f389190614ddc565b73ffffffffffffffffffffffffffffffffffffffff8086165f908152600b60209081526040918290205482517f3ba0b9a9000000000000000000000000000000000000000000000000000000008152925186949190911692633ba0b9a99260048083019391928290030181865afa158015611fb5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fd99190614dc5565b611fe39190614b8f565b611fef90612710614ddc565b1115612027576040517f0aa1e28500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b80156120695773ffffffffffffffffffffffffffffffffffffffff83165f9081526009602052604081208054839290612063908490614df3565b90915550505b61207b6120768383614df3565b613a86565b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d60209081526040808320938816835292905290812080549091906120be908490614d00565b909155505060019093019250611c5d915050565b5073ffffffffffffffffffffffffffffffffffffffff165f908152600a60205260409020429055600101611bb2565b507f90e0333a7f11b37e50e152c45bb5ebfc2ce2ace82e290567861d3ae8529688748282604051612133929190614e06565b60405180910390a15050565b61214f60608401604085016144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff168015612198575073ffffffffffffffffffffffffffffffffffffffff811633145b806121f7575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff1680156121f7575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b61222d576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612235613096565b612240848484613b37565b6122b26122506060860186614a81565b808060200260200160405190810160405280939291908181526020015f905b8282101561229b5761228c60408302860136819003810190614ae5565b8152602001906001019061226f565b50610b1893505060608901915050604088016144e9565b5f6012816122c660608801604089016144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f9081205490911691505b6123036060870187614a81565b90508110156123c1575f61231a6060880188614a81565b8381811061232a5761232a614b62565b61234092602060409092020190810191506144e9565b90505f6123506060890189614a81565b8481811061236057612360614b62565b9050604002016020013590505f811315612387576123823330610cd58461354d565b6123b7565b6123a761239a60608a0160408b016144e9565b83610d0f610d0a85614ba2565b6123b784610d24610d0a84614ba2565b50506001016122f6565b507f0279bcc316c233db88e8f3e463dcefc7fa661da21bc66eadc60f3835e41bba1161148760608701604088016144e9565b6123fb613015565b73ffffffffffffffffffffffffffffffffffffffff8216612448576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82165f8181526008602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527f947aca305c9b8d94b31792a7f80d331c9452e743508d61331561378673b50103910160405180910390a25050565b73ffffffffffffffffffffffffffffffffffffffff821661251e576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60045473ffffffffffffffffffffffffffffffffffffffff16331461256f576040517fdcdd32f100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f908152600960205260409020548111156125cd576040517fce11c63900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f9081526009602052604081208054839290612601908490614b8f565b90915550612628905073ffffffffffffffffffffffffffffffffffffffff841683836137aa565b6040805173ffffffffffffffffffffffffffffffffffffffff8086168252841660208201529081018290527fde13184e8cbb6eccbcecfc796bf8820e5ffde0534c01b4fabed4b05982964a4490606001611140565b612685613096565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff166126e3576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8281101561284f575f84848381811061270057612700614b62565b61271692602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600f602052604090205490915060ff16612777576040517f918aa47f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f85858481811061278a5761278a614b62565b90506040020160200135905080600e5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461281d9190614df3565b90915550612845905073ffffffffffffffffffffffffffffffffffffffff83163330846135bc565b50506001016126e5565b507f770dafe0b413d5c277b5f1a9d1d725e5ebafe92b5a16f3ebaae6e49e43b6649981848460405161288393929190614ca1565b60405180910390a1610e96613800565b61289b613015565b73ffffffffffffffffffffffffffffffffffffffff8516158015906128d5575073ffffffffffffffffffffffffffffffffffffffff841615155b80156128f6575073ffffffffffffffffffffffffffffffffffffffff831615155b61292c576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561299457508373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b6129ca576040517f5bc7a3a500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8581165f81815260106020908152604080832080548815157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091821681179092556011845282852080548c89167fffffffffffffffffffffffff00000000000000000000000000000000000000009182168117909255601286528487208054998d169990911689179055601385529483902080548915159216821790558251918252928101929092528101919091526060810192909252907f2353ec0fe56a376d3269d3e65521f1ce07dc5f544cc5b0ba4eb2ff03f771a4ad9060800160405180910390a25050505050565b335f908152600f602052604090205460ff16612b13576040517f918aa47f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1663c70920bc6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b5c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b809190614dc5565b811115612bb9576040517fff75bad100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c4882823373ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612c07573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612c2b9190614f9d565b73ffffffffffffffffffffffffffffffffffffffff1691906137aa565b5050565b612c54613015565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600f602052604090205460ff1615612cb3576040517fdeaabdc200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8173ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612cfd573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d219190614f9d565b73ffffffffffffffffffffffffffffffffffffffff8082165f908152600b602052604090205491925016158015612def57503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1663e2498f726040518163ffffffff1660e01b8152600401602060405180830381865afa158015612db3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612dd79190614f9d565b73ffffffffffffffffffffffffffffffffffffffff16145b612e25576040517f9db8d5b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116612e72576040517ff418616400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8181165f908152600b6020908152604080832080549487167fffffffffffffffffffffffff00000000000000000000000000000000000000009586168117909155808452600f835281842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091556007805491820181559094527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6889093018054909416831790935591519081527fcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f9101612133565b612f6d613015565b6003805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155612fd060025473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60025473ffffffffffffffffffffffffffffffffffffffff16331461158d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161186b565b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005c156130ef576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61158d7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f006001613bbd565b4283602001351015613158576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131628335613bc4565b5f7f76c5f3d53a01a9f0a59b081b22aba3a0f03248e9241993e97d1d025ef2ffaac28435602086013561319b60608801604089016144e9565b6131a86060890189614a81565b6040516020016131b9929190614fb8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905280516020909101206131fc60808a018a614a81565b60405160200161320d929190614fb8565b604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00181528282528051602091820120335f90815260158352839020549184019890985290820195909552606081019390935273ffffffffffffffffffffffffffffffffffffffff918216608084015260a083015260c0820193909352911660e0820152610100015b6040516020818303038152906040528051906020012090505f6132be82613c44565b90505f6133008286868080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250613c8b92505050565b60055490915073ffffffffffffffffffffffffffffffffffffffff808316911614613357576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b81515f5b81811015610fa6575f84828151811061337e5761337e614b62565b60200260200101515f015190505f85838151811061339e5761339e614b62565b60209081029190910181015181015173ffffffffffffffffffffffffffffffffffffffff8088165f908152600d845260408082209287168252919093528220549092506133ec908390614cd9565b73ffffffffffffffffffffffffffffffffffffffff8481165f908152600b60205260409020549192501661344c576040517ff418616400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d6020908152604080832093871683529290529081205461348b908490614fcb565b1215806134d4575073ffffffffffffffffffffffffffffffffffffffff8087165f908152600d602090815260408083209387168352929052908120546134d2908390614fcb565b125b1561350b576040517f09a09f7500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d60209081526040808320969093168252949094529092209190915550600101613363565b5f5f8212156135b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f736974697665604482015260640161186b565b5090565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610fa69085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152613cad565b73ffffffffffffffffffffffffffffffffffffffff8084165f9081526016602090815260408083209386168352929052908120906136d96201518042614a49565b90505f82600201548211156136ef575082613702565b8383600101546136ff9190614df3565b90505b82541580613711575082548111155b613747576040517ff5b71ffc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160608101825293548452602080850192835284820193845273ffffffffffffffffffffffffffffffffffffffff9788165f9081526016825282812097909816885295909552939094209051815591516001830155509051600290910155565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610e969084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401613616565b61158d7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005f613bbd565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610e969084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401613616565b42836020013510156138be576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6138c88335613bc4565b5f7f6b9aa5f8de278806afcc63bb2d2e633b4da3536375ca60f09ae8fae5829b3c468435602086013561390160608801604089016144e9565b61390e6060890189614a81565b60405160200161391f929190614fb8565b6040516020818303038152906040528051906020012060125f8a604001602081019061394b91906144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182015f2054825193840198909852908201959095526060810193909352908316608083015260a0820152911660c082015260e00161329c565b600380547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561187d81613dba565b606060ff83146139f5576139ee83613e30565b9050613a80565b818054613a0190615016565b80601f0160208091040260200160405190810160405280929190818152602001828054613a2d90615016565b8015613a785780601f10613a4f57610100808354040283529160200191613a78565b820191905f5260205f20905b815481529060010190602001808311613a5b57829003601f168201915b505050505090505b92915050565b5f7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8211156135b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e206160448201527f6e20696e74323536000000000000000000000000000000000000000000000000606482015260840161186b565b4283602001351015613b75576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613b7f8335613bc4565b5f7fe83563cdfbb4d31bd8759eea5a634fbe67ea13b6739d04d2426c621fee979fa48435602086013561390160608801604089016144e9565b905090565b80825d5050565b5f818152600c602052604090205460ff1615613c0c576040517f1f6d5aef00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f908152600c6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b5f613a80613c50613e6d565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b5f5f5f613c988585613fa3565b91509150613ca581613fe5565b509392505050565b5f613d0e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166141979092919063ffffffff16565b905080515f1480613d2e575080806020019051810190613d2e9190615061565b610e96576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161186b565b6002805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b60605f613e3c836141ad565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b5f3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000e3d41d19564922c9952f692c5dd0563030f5f2ef16148015613ed257507f000000000000000000000000000000000000000000000000000000000000000146145b15613efc57507fe0be16eee9239282c6aa211218bd6c70acb346b073f8c9c534be1e19e4ee97e790565b613bb8604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f7d485e7f5909c9fced2f5688fd495e8d13121768f2de07ec12763d84bd75b422918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b5f5f8251604103613fd7576020830151604084015160608501515f1a613fcb878285856141ed565b94509450505050613fde565b505f905060025b9250929050565b5f816004811115613ff857613ff861507c565b036140005750565b60018160048111156140145761401461507c565b0361407b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161186b565b600281600481111561408f5761408f61507c565b036140f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161186b565b600381600481111561410a5761410a61507c565b0361187d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161186b565b60606141a584845f856142d5565b949350505050565b5f60ff8216601f811115613a80576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561422257505f905060036142cc565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614273573d5f5f3e3d5ffd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166142c6575f600192509250506142cc565b91505f90505b94509492505050565b606082471015614367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161186b565b5f5f8673ffffffffffffffffffffffffffffffffffffffff16858760405161438f91906150a9565b5f6040518083038185875af1925050503d805f81146143c9576040519150601f19603f3d011682016040523d82523d5f602084013e6143ce565b606091505b50915091506143df878383876143ea565b979650505050505050565b6060831561447f5782515f036144785773ffffffffffffffffffffffffffffffffffffffff85163b614478576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161186b565b50816141a5565b6141a583838151156144945781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186b91906150bf565b73ffffffffffffffffffffffffffffffffffffffff8116811461187d575f5ffd5b5f602082840312156144f9575f5ffd5b8135614504816144c8565b9392505050565b5f5f5f6060848603121561451d575f5ffd5b8335614528816144c8565b92506020840135614538816144c8565b929592945050506040919091013590565b5f5f83601f840112614559575f5ffd5b50813567ffffffffffffffff811115614570575f5ffd5b602083019150836020828501011115613fde575f5ffd5b5f5f5f60408486031215614599575f5ffd5b833567ffffffffffffffff8111156145af575f5ffd5b840160a081870312156145c0575f5ffd5b9250602084013567ffffffffffffffff8111156145db575f5ffd5b6145e786828701614549565b9497909650939450505050565b5f60208284031215614604575f5ffd5b5035919050565b5f5f83601f84011261461b575f5ffd5b50813567ffffffffffffffff811115614632575f5ffd5b6020830191508360208260061b8501011115613fde575f5ffd5b5f5f5f6040848603121561465e575f5ffd5b833567ffffffffffffffff811115614674575f5ffd5b6146808682870161460b565b9094509250506020840135614694816144c8565b809150509250925092565b801515811461187d575f5ffd5b5f5f5f606084860312156146be575f5ffd5b83356146c9816144c8565b925060208401356146d9816144c8565b915060408401356146948161469f565b5f5f604083850312156146fa575f5ffd5b8235614705816144c8565b91506020830135614715816144c8565b809150509250929050565b5f60808284031215614730575f5ffd5b50919050565b5f5f5f60408486031215614748575f5ffd5b833567ffffffffffffffff81111561475e575f5ffd5b61476a86828701614720565b935050602084013567ffffffffffffffff8111156145db575f5ffd5b5f5f5f5f5f60a0868803121561479a575f5ffd5b85356147a5816144c8565b945060208601356147b5816144c8565b93506040860135925060608601356147cc816144c8565b949793965091946080013592915050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f61486360e08301896147dd565b828103604084015261487581896147dd565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b818110156148d75783518352602093840193909201916001016148b9565b50909b9a5050505050505050505050565b5f5f602083850312156148f9575f5ffd5b823567ffffffffffffffff81111561490f575f5ffd5b8301601f8101851361491f575f5ffd5b803567ffffffffffffffff811115614935575f5ffd5b8560208260051b8401011115614949575f5ffd5b6020919091019590945092505050565b5f5f6040838503121561496a575f5ffd5b8235614975816144c8565b915060208301356147158161469f565b5f5f5f5f5f60a08688031215614999575f5ffd5b85356149a4816144c8565b945060208601356149b4816144c8565b935060408601356149c4816144c8565b925060608601356149d48161469f565b915060808601356149e48161469f565b809150509295509295909350565b5f5f60408385031215614a03575f5ffd5b8235614a0e816144c8565b946020939093013593505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f82614a7c577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614ab4575f5ffd5b83018035915067ffffffffffffffff821115614ace575f5ffd5b6020019150600681901b3603821315613fde575f5ffd5b5f6040828403128015614af6575f5ffd5b506040805190810167ffffffffffffffff81118282101715614b3f577f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040528235614b4d816144c8565b81526020928301359281019290925250919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b81810381811115613a8057613a80614a1c565b5f7f80000000000000000000000000000000000000000000000000000000000000008203614bd257614bd2614a1c565b505f0390565b8183526020830192505f815f5b84811015614c2c578135614bf8816144c8565b73ffffffffffffffffffffffffffffffffffffffff1686526020828101359087015260409586019590910190600101614be5565b5093949350505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff86166020820152608060408201525f614c81608083018688614bd8565b8281036060840152614c94818587614bd8565b9998505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff84168152604060208201525f614cd0604083018486614bd8565b95945050505050565b8082018281125f831280158216821582161715614cf857614cf8614a1c565b505092915050565b8181035f831280158383131683831282161715614d1f57614d1f614a1c565b5092915050565b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc1833603018112614d58575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614d95575f5ffd5b83018035915067ffffffffffffffff821115614daf575f5ffd5b6020019150606081023603821315613fde575f5ffd5b5f60208284031215614dd5575f5ffd5b5051919050565b8082028115828204841417613a8057613a80614a1c565b80820180821115613a8057613a80614a1c565b602080825281018290525f6040600584901b8301810190830185837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc136839003015b87821015614f90577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08786030184528235818112614e84575f5ffd5b8901604086018135614e95816144c8565b73ffffffffffffffffffffffffffffffffffffffff1687526020820135368390037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1018112614ee2575f5ffd5b60209201918201913567ffffffffffffffff811115614eff575f5ffd5b606081023603831315614f10575f5ffd5b60406020890152908190525f90606088015b81831015614f74578335614f35816144c8565b73ffffffffffffffffffffffffffffffffffffffff16815260208481013590820152604080850135908201526060938401936001939093019201614f22565b9750505060209485019493909301925060019190910190614e48565b5092979650505050505050565b5f60208284031215614fad575f5ffd5b8151614504816144c8565b602081525f6141a5602083018486614bd8565b8082025f82127f80000000000000000000000000000000000000000000000000000000000000008414161561500257615002614a1c565b8181058314821517613a8057613a80614a1c565b600181811c9082168061502a57607f821691505b602082108103614730577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60208284031215615071575f5ffd5b81516145048161469f565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b5f82518060208501845e5f920191825250919050565b602081525f61450460208301846147dd56fea2646970667358221220a0ba8db9f3d9a667e49717c5614618d481311d4c3e69e51e9b53166a80821e6764736f6c634300081c0033","recompiledBytecode":"0x608060405234801561000f575f5ffd5b50600436106102d7575f3560e01c806379ba509711610187578063b17b658d116100dd578063cab4f84c11610093578063f2fde38b1161006e578063f2fde38b14610784578063f6d95efd14610797578063f90cdb36146107cc575f5ffd5b8063cab4f84c14610729578063cc218ece1461073c578063e30c397814610766575f5ffd5b8063b7477674116100c3578063b7477674146106af578063c2b7307614610703578063c407687614610716575f5ffd5b8063b17b658d14610667578063b6bdff031461069c575f5ffd5b806392a88fa21161013d578063abb49f1911610118578063abb49f1914610622578063ae1914f814610635578063b0ab63ec14610648575f5ffd5b806392a88fa2146105da57806398221e94146105fc5780639be41fdb1461060f575f5ffd5b806384b0196e1161016d57806384b0196e1461058e5780638da5cb5b146105a95780639246261c146105c7575f5ffd5b806379ba50971461057357806381377bfd1461057b575f5ffd5b806341b1fa761161023c5780634e293ee9116101f2578063715018a6116101cd578063715018a6146105455780637362ecbe1461054d57806373eb513314610560575f5ffd5b80634e293ee9146104ff5780634f487eb8146105125780636c19e78314610532575f5ffd5b8063464b38bc11610222578063464b38bc1461049557806347de43e2146104c25780634bd21445146104d5575f5ffd5b806341b1fa761461043e578063422e0af014610460575f5ffd5b8063141a468c1161029157806320761fc41161027757806320761fc4146103dc578063238ac933146103fe57806332b4fa6b1461041e575f5ffd5b8063141a468c146103a75780631e777ad3146103c9575f5ffd5b80630d2a7ae8116102c15780630d2a7ae8146103035780630dfbe91b146103625780631241177214610394575f5ffd5b8062fc59c0146102db578063097a8ec4146102f0575b5f5ffd5b6102ee6102e93660046144e9565b6107ee565b005b6102ee6102fe36600461450b565b6108bd565b6103386103113660046144e9565b60116020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6103846103703660046144e9565b60086020525f908152604090205460ff1681565b6040519015158152602001610359565b6102ee6103a2366004614587565b610a4b565b6103846103b53660046145f4565b600c6020525f908152604090205460ff1681565b6102ee6103d736600461464c565b610e9b565b6103846103ea3660046144e9565b600f6020525f908152604090205460ff1681565b6005546103389073ffffffffffffffffffffffffffffffffffffffff1681565b6004546103389073ffffffffffffffffffffffffffffffffffffffff1681565b61038461044c3660046144e9565b60136020525f908152604090205460ff1681565b61033861046e3660046144e9565b60126020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6104b46104a33660046144e9565b60096020525f908152604090205481565b604051908152602001610359565b6102ee6104d03660046146ac565b610fac565b6104b46104e33660046146e9565b600d60209081525f928352604080842090915290825290205481565b6102ee61050d366004614736565b61114d565b6006546103389073ffffffffffffffffffffffffffffffffffffffff1681565b6102ee6105403660046144e9565b6114b4565b6102ee61157c565b6102ee61055b366004614786565b61158f565b6102ee61056e3660046144e9565b6116fe565b6102ee6117c6565b6102ee61058936600461464c565b611880565b610596611a88565b6040516103599796959493929190614829565b60025473ffffffffffffffffffffffffffffffffffffffff16610338565b6103386105d53660046145f4565b611b2a565b6103846105e83660046144e9565b60106020525f908152604090205460ff1681565b6102ee61060a3660046148e8565b611b5f565b6102ee61061d366004614736565b61213f565b6102ee610630366004614959565b6123f3565b6102ee61064336600461450b565b6124d1565b6104b46106563660046144e9565b600a6020525f908152604090205481565b6103386106753660046144e9565b600b6020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6102ee6106aa36600461464c565b61267d565b6106e86106bd3660046146e9565b601660209081525f928352604080842090915290825290208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610359565b6102ee610711366004614985565b612893565b6102ee6107243660046149f2565b612acb565b6102ee6107373660046144e9565b612c4c565b6104b461074a3660046146e9565b600e60209081525f928352604080842090915290825290205481565b60035473ffffffffffffffffffffffffffffffffffffffff16610338565b6102ee6107923660046144e9565b612f65565b6103386107a53660046144e9565b60156020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6103846107da3660046144e9565b60146020525f908152604090205460ff1681565b6107f6613015565b73ffffffffffffffffffffffffffffffffffffffff8116610843576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f15d0b1a02a4902c4788ceda199eb43e4a753d86c0dbb7412e8ba63feecb070fa906020015b60405180910390a150565b6108c5613015565b73ffffffffffffffffffffffffffffffffffffffff8216610912576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f9081526010602052604090205460ff1680610969575073ffffffffffffffffffffffffffffffffffffffff83165f9081526014602052604090205460ff165b61099f576040517f3be3aba200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080516060810182528281525f60208201529081016109c26201518042614a49565b905273ffffffffffffffffffffffffffffffffffffffff8481165f81815260166020908152604080832094881680845294825291829020855181558582015160018201559482015160029095019490945551848152919290917f39ff4a05a64bdf7e1dcb0b2d6b7e35b6a720a9412386a9e193c0e93d29a18470910160405180910390a3505050565b335f9081526014602052604090205460ff16610a93576040517f99b01c4700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a9b613096565b610aa683838361311a565b610b1d610ab66060850185614a81565b808060200260200160405190810160405280939291908181526020015f905b82821015610b0157610af260408302860136819003810190614ae5565b81526020019060010190610ad5565b50610b1893505060608801915050604087016144e9565b61335f565b335f9081526015602052604081205473ffffffffffffffffffffffffffffffffffffffff16905b610b516080860186614a81565b9050811015610c4657610b676080860186614a81565b82818110610b7757610b77614b62565b90506040020160200135600e5f876040016020810190610b9791906144e9565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040015f90812090610bcc6080890189614a81565b85818110610bdc57610bdc614b62565b610bf292602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254610c399190614b8f565b9091555050600101610b44565b505f5b610c566060860186614a81565b9050811015610d4c575f610c6d6060870187614a81565b83818110610c7d57610c7d614b62565b610c9392602060409092020190810191506144e9565b90505f610ca36060880188614a81565b84818110610cb357610cb3614b62565b9050604002016020013590505f811315610cf957610cf43330610cd58461354d565b73ffffffffffffffffffffffffffffffffffffffff86169291906135bc565b610d42565b610d143383610d0f610d0a85614ba2565b61354d565b613698565b610d4284610d24610d0a84614ba2565b73ffffffffffffffffffffffffffffffffffffffff851691906137aa565b5050600101610c49565b505f5b610d5c6080860186614a81565b9050811015610e26575f610d736080870187614a81565b83818110610d8357610d83614b62565b610d9992602060409092020190810191506144e9565b9050610dcc3382610dad60808a018a614a81565b86818110610dbd57610dbd614b62565b90506040020160200135613698565b610e1d83610ddd6080890189614a81565b85818110610ded57610ded614b62565b905060400201602001358373ffffffffffffffffffffffffffffffffffffffff166137aa9092919063ffffffff16565b50600101610d4f565b507fb5689a012cf77dd0a99ac07ed6f83009d7fbfca323bca73b34d6ed02bf413ab8610e5860608601604087016144e9565b33610e666060880188614a81565b610e7360808a018a614a81565b604051610e8596959493929190614c36565b60405180910390a150610e96613800565b505050565b610ea3613015565b5f5b82811015610fa6575f600b81868685818110610ec357610ec3614b62565b610ed992602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f20541603610f39576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f9e82858584818110610f4f57610f4f614b62565b90506040020160200135868685818110610f6b57610f6b614b62565b610f8192602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff16919061382a565b600101610ea5565b50505050565b610fb4613015565b73ffffffffffffffffffffffffffffffffffffffff831615801590610fee575073ffffffffffffffffffffffffffffffffffffffff821615155b611024576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611089576040517f88b43fad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8381165f81815260146020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016871515908117909155601583529281902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169588169590951790945583519283528201527f81e020344174972c59f6c11a8f6c90b141866214e3d9b544d030f0b532f5a10f91015b60405180910390a1505050565b61115d60608401604085016144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff1680156111a6575073ffffffffffffffffffffffffffffffffffffffff811633145b80611205575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff168015611205575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b61123b576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611243613096565b61124e848484613880565b5f5b61125d6060860186614a81565b9050811015611352576112736060860186614a81565b8281811061128357611283614b62565b90506040020160200135600e5f8760400160208101906112a391906144e9565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040015f908120906112d86060890189614a81565b858181106112e8576112e8614b62565b6112fe92602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546113459190614b8f565b9091555050600101611250565b505f60128161136760608801604089016144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f9081205490911691505b6113a46060870187614a81565b9050811015611455575f6113bb6060880188614a81565b838181106113cb576113cb614b62565b6113e192602060409092020190810191506144e9565b90505f6113f16060890189614a81565b8481811061140157611401614b62565b90506040020160200135905061142a88604001602081019061142391906144e9565b8383613698565b61144b73ffffffffffffffffffffffffffffffffffffffff831685836137aa565b5050600101611397565b507f455917442c530b052ee826d2556fad794f64a294e455930a63599688abbffa3c61148760608701604088016144e9565b6114946060880188614a81565b6040516114a393929190614ca1565b60405180910390a150610fa6613800565b6114bc613015565b73ffffffffffffffffffffffffffffffffffffffff8116611509576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f9eaa897564d022fb8c5efaf0acdb5d9d27b440b2aad44400b6e1c702e65b9ed3906020016108b2565b611584613015565b61158d5f6139aa565b565b335f9081526008602052604090205460ff166115d7576040517fd687c5f200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8481165f908152600b60205260409020541615801590611631575073ffffffffffffffffffffffffffffffffffffffff8281165f908152600b60205260409020541615155b611667576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8086165f908152600d60209081526040808320938816835292905290812080548592906116aa908490614cd9565b909155505073ffffffffffffffffffffffffffffffffffffffff8086165f908152600d60209081526040808320938616835292905290812080548392906116f2908490614d00565b90915550505050505050565b611706613015565b73ffffffffffffffffffffffffffffffffffffffff8116611753576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f538bd377a1e0d2ceca49908f540bafa1d8616cf49a7bcefcd0b479e7531ff8aa906020016108b2565b600354339073ffffffffffffffffffffffffffffffffffffffff168114611874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61187d816139aa565b50565b73ffffffffffffffffffffffffffffffffffffffff81165f90815260106020526040902054819060ff1680156118cb575073ffffffffffffffffffffffffffffffffffffffff811633145b8061192a575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff16801561192a575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b611960576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611968613096565b6119c38484808060200260200160405190810160405280939291908181526020015f905b828210156119b8576119a960408302860136819003810190614ae5565b8152602001906001019061198c565b50505050508361335f565b5f5b83811015611a4457611a3c33306119f68888868181106119e7576119e7614b62565b9050604002016020013561354d565b888886818110611a0857611a08614b62565b611a1e92602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff169291906135bc565b6001016119c5565b507fc8aa82285b2a9e22e0bda601a759e4f578e78f18015e543a4f66bb120a726953828585604051611a7893929190614ca1565b60405180910390a1610fa6613800565b5f60608082808083611aba7f0000000000000000000000000000000000000000000000000000000000000000836139db565b611ae57f000000000000000000000000000000000000000000000000000000000000000060016139db565b604080515f808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b60078181548110611b39575f80fd5b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60065473ffffffffffffffffffffffffffffffffffffffff163314611bb0576040517f16ced9a800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b81811015612101575f838383818110611bcd57611bcd614b62565b9050602002810190611bdf9190614d26565b611bed9060208101906144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600a602052604090205490915061708090611c239042614b8f565b1015611c5b576040517f0dc2dde400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848484818110611c6f57611c6f614b62565b9050602002810190611c819190614d26565b611c8f906020810190614d62565b90508110156120d2575f858585818110611cab57611cab614b62565b9050602002810190611cbd9190614d26565b611ccb906020810190614d62565b83818110611cdb57611cdb614b62565b611cf192602060609092020190810191506144e9565b90505f868686818110611d0657611d06614b62565b9050602002810190611d189190614d26565b611d26906020810190614d62565b84818110611d3657611d36614b62565b9050606002016020013590505f878787818110611d5557611d55614b62565b9050602002810190611d679190614d26565b611d75906020810190614d62565b85818110611d8557611d85614b62565b73ffffffffffffffffffffffffffffffffffffffff8681165f908152600b60205260409081902054606090930294909401939093013593509091169050611df8576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81156120295773ffffffffffffffffffffffffffffffffffffffff8084165f908152600b602090815260408083205481517f3ba0b9a9000000000000000000000000000000000000000000000000000000008152915193941692633ba0b9a9926004808401939192918290030181865afa158015611e78573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e9c9190614dc5565b73ffffffffffffffffffffffffffffffffffffffff8581165f908152600b6020526040908190205490517fc8cc5cd800000000000000000000000000000000000000000000000000000000815260048101879052929350169063c8cc5cd8906024015f604051808303815f87803b158015611f15575f5ffd5b505af1158015611f27573d5f5f3e3d5ffd5b50505050806064611f389190614ddc565b73ffffffffffffffffffffffffffffffffffffffff8086165f908152600b60209081526040918290205482517f3ba0b9a9000000000000000000000000000000000000000000000000000000008152925186949190911692633ba0b9a99260048083019391928290030181865afa158015611fb5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fd99190614dc5565b611fe39190614b8f565b611fef90612710614ddc565b1115612027576040517f0aa1e28500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b80156120695773ffffffffffffffffffffffffffffffffffffffff83165f9081526009602052604081208054839290612063908490614df3565b90915550505b61207b6120768383614df3565b613a86565b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d60209081526040808320938816835292905290812080549091906120be908490614d00565b909155505060019093019250611c5d915050565b5073ffffffffffffffffffffffffffffffffffffffff165f908152600a60205260409020429055600101611bb2565b507f90e0333a7f11b37e50e152c45bb5ebfc2ce2ace82e290567861d3ae8529688748282604051612133929190614e06565b60405180910390a15050565b61214f60608401604085016144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff168015612198575073ffffffffffffffffffffffffffffffffffffffff811633145b806121f7575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff1680156121f7575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b61222d576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612235613096565b612240848484613b37565b6122b26122506060860186614a81565b808060200260200160405190810160405280939291908181526020015f905b8282101561229b5761228c60408302860136819003810190614ae5565b8152602001906001019061226f565b50610b1893505060608901915050604088016144e9565b5f6012816122c660608801604089016144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f9081205490911691505b6123036060870187614a81565b90508110156123c1575f61231a6060880188614a81565b8381811061232a5761232a614b62565b61234092602060409092020190810191506144e9565b90505f6123506060890189614a81565b8481811061236057612360614b62565b9050604002016020013590505f811315612387576123823330610cd58461354d565b6123b7565b6123a761239a60608a0160408b016144e9565b83610d0f610d0a85614ba2565b6123b784610d24610d0a84614ba2565b50506001016122f6565b507f0279bcc316c233db88e8f3e463dcefc7fa661da21bc66eadc60f3835e41bba1161148760608701604088016144e9565b6123fb613015565b73ffffffffffffffffffffffffffffffffffffffff8216612448576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82165f8181526008602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527f947aca305c9b8d94b31792a7f80d331c9452e743508d61331561378673b50103910160405180910390a25050565b73ffffffffffffffffffffffffffffffffffffffff821661251e576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60045473ffffffffffffffffffffffffffffffffffffffff16331461256f576040517fdcdd32f100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f908152600960205260409020548111156125cd576040517fce11c63900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f9081526009602052604081208054839290612601908490614b8f565b90915550612628905073ffffffffffffffffffffffffffffffffffffffff841683836137aa565b6040805173ffffffffffffffffffffffffffffffffffffffff8086168252841660208201529081018290527fde13184e8cbb6eccbcecfc796bf8820e5ffde0534c01b4fabed4b05982964a4490606001611140565b612685613096565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff166126e3576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8281101561284f575f84848381811061270057612700614b62565b61271692602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600f602052604090205490915060ff16612777576040517f918aa47f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f85858481811061278a5761278a614b62565b90506040020160200135905080600e5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461281d9190614df3565b90915550612845905073ffffffffffffffffffffffffffffffffffffffff83163330846135bc565b50506001016126e5565b507f770dafe0b413d5c277b5f1a9d1d725e5ebafe92b5a16f3ebaae6e49e43b6649981848460405161288393929190614ca1565b60405180910390a1610e96613800565b61289b613015565b73ffffffffffffffffffffffffffffffffffffffff8516158015906128d5575073ffffffffffffffffffffffffffffffffffffffff841615155b80156128f6575073ffffffffffffffffffffffffffffffffffffffff831615155b61292c576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561299457508373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b6129ca576040517f5bc7a3a500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8581165f81815260106020908152604080832080548815157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091821681179092556011845282852080548c89167fffffffffffffffffffffffff00000000000000000000000000000000000000009182168117909255601286528487208054998d169990911689179055601385529483902080548915159216821790558251918252928101929092528101919091526060810192909252907f2353ec0fe56a376d3269d3e65521f1ce07dc5f544cc5b0ba4eb2ff03f771a4ad9060800160405180910390a25050505050565b335f908152600f602052604090205460ff16612b13576040517f918aa47f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1663c70920bc6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b5c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b809190614dc5565b811115612bb9576040517fff75bad100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c4882823373ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612c07573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612c2b9190614f9d565b73ffffffffffffffffffffffffffffffffffffffff1691906137aa565b5050565b612c54613015565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600f602052604090205460ff1615612cb3576040517fdeaabdc200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8173ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612cfd573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d219190614f9d565b73ffffffffffffffffffffffffffffffffffffffff8082165f908152600b602052604090205491925016158015612def57503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1663e2498f726040518163ffffffff1660e01b8152600401602060405180830381865afa158015612db3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612dd79190614f9d565b73ffffffffffffffffffffffffffffffffffffffff16145b612e25576040517f9db8d5b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116612e72576040517ff418616400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8181165f908152600b6020908152604080832080549487167fffffffffffffffffffffffff00000000000000000000000000000000000000009586168117909155808452600f835281842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091556007805491820181559094527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6889093018054909416831790935591519081527fcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f9101612133565b612f6d613015565b6003805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155612fd060025473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60025473ffffffffffffffffffffffffffffffffffffffff16331461158d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161186b565b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005c156130ef576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61158d7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f006001613bbd565b4283602001351015613158576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131628335613bc4565b5f7f76c5f3d53a01a9f0a59b081b22aba3a0f03248e9241993e97d1d025ef2ffaac28435602086013561319b60608801604089016144e9565b6131a86060890189614a81565b6040516020016131b9929190614fb8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905280516020909101206131fc60808a018a614a81565b60405160200161320d929190614fb8565b604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00181528282528051602091820120335f90815260158352839020549184019890985290820195909552606081019390935273ffffffffffffffffffffffffffffffffffffffff918216608084015260a083015260c0820193909352911660e0820152610100015b6040516020818303038152906040528051906020012090505f6132be82613c44565b90505f6133008286868080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250613c8b92505050565b60055490915073ffffffffffffffffffffffffffffffffffffffff808316911614613357576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b81515f5b81811015610fa6575f84828151811061337e5761337e614b62565b60200260200101515f015190505f85838151811061339e5761339e614b62565b60209081029190910181015181015173ffffffffffffffffffffffffffffffffffffffff8088165f908152600d845260408082209287168252919093528220549092506133ec908390614cd9565b73ffffffffffffffffffffffffffffffffffffffff8481165f908152600b60205260409020549192501661344c576040517ff418616400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d6020908152604080832093871683529290529081205461348b908490614fcb565b1215806134d4575073ffffffffffffffffffffffffffffffffffffffff8087165f908152600d602090815260408083209387168352929052908120546134d2908390614fcb565b125b1561350b576040517f09a09f7500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d60209081526040808320969093168252949094529092209190915550600101613363565b5f5f8212156135b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f736974697665604482015260640161186b565b5090565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610fa69085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152613cad565b73ffffffffffffffffffffffffffffffffffffffff8084165f9081526016602090815260408083209386168352929052908120906136d96201518042614a49565b90505f82600201548211156136ef575082613702565b8383600101546136ff9190614df3565b90505b82541580613711575082548111155b613747576040517ff5b71ffc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160608101825293548452602080850192835284820193845273ffffffffffffffffffffffffffffffffffffffff9788165f9081526016825282812097909816885295909552939094209051815591516001830155509051600290910155565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610e969084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401613616565b61158d7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005f613bbd565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610e969084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401613616565b42836020013510156138be576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6138c88335613bc4565b5f7f6b9aa5f8de278806afcc63bb2d2e633b4da3536375ca60f09ae8fae5829b3c468435602086013561390160608801604089016144e9565b61390e6060890189614a81565b60405160200161391f929190614fb8565b6040516020818303038152906040528051906020012060125f8a604001602081019061394b91906144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182015f2054825193840198909852908201959095526060810193909352908316608083015260a0820152911660c082015260e00161329c565b600380547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561187d81613dba565b606060ff83146139f5576139ee83613e30565b9050613a80565b818054613a0190615016565b80601f0160208091040260200160405190810160405280929190818152602001828054613a2d90615016565b8015613a785780601f10613a4f57610100808354040283529160200191613a78565b820191905f5260205f20905b815481529060010190602001808311613a5b57829003601f168201915b505050505090505b92915050565b5f7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8211156135b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e206160448201527f6e20696e74323536000000000000000000000000000000000000000000000000606482015260840161186b565b4283602001351015613b75576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613b7f8335613bc4565b5f7fe83563cdfbb4d31bd8759eea5a634fbe67ea13b6739d04d2426c621fee979fa48435602086013561390160608801604089016144e9565b905090565b80825d5050565b5f818152600c602052604090205460ff1615613c0c576040517f1f6d5aef00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f908152600c6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b5f613a80613c50613e6d565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b5f5f5f613c988585613fa3565b91509150613ca581613fe5565b509392505050565b5f613d0e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166141979092919063ffffffff16565b905080515f1480613d2e575080806020019051810190613d2e9190615061565b610e96576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161186b565b6002805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b60605f613e3c836141ad565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b5f3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016148015613ed257507f000000000000000000000000000000000000000000000000000000000000000046145b15613efc57507f000000000000000000000000000000000000000000000000000000000000000090565b613bb8604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b5f5f8251604103613fd7576020830151604084015160608501515f1a613fcb878285856141ed565b94509450505050613fde565b505f905060025b9250929050565b5f816004811115613ff857613ff861507c565b036140005750565b60018160048111156140145761401461507c565b0361407b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161186b565b600281600481111561408f5761408f61507c565b036140f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161186b565b600381600481111561410a5761410a61507c565b0361187d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161186b565b60606141a584845f856142d5565b949350505050565b5f60ff8216601f811115613a80576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561422257505f905060036142cc565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614273573d5f5f3e3d5ffd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166142c6575f600192509250506142cc565b91505f90505b94509492505050565b606082471015614367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161186b565b5f5f8673ffffffffffffffffffffffffffffffffffffffff16858760405161438f91906150a9565b5f6040518083038185875af1925050503d805f81146143c9576040519150601f19603f3d011682016040523d82523d5f602084013e6143ce565b606091505b50915091506143df878383876143ea565b979650505050505050565b6060831561447f5782515f036144785773ffffffffffffffffffffffffffffffffffffffff85163b614478576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161186b565b50816141a5565b6141a583838151156144945781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186b91906150bf565b73ffffffffffffffffffffffffffffffffffffffff8116811461187d575f5ffd5b5f602082840312156144f9575f5ffd5b8135614504816144c8565b9392505050565b5f5f5f6060848603121561451d575f5ffd5b8335614528816144c8565b92506020840135614538816144c8565b929592945050506040919091013590565b5f5f83601f840112614559575f5ffd5b50813567ffffffffffffffff811115614570575f5ffd5b602083019150836020828501011115613fde575f5ffd5b5f5f5f60408486031215614599575f5ffd5b833567ffffffffffffffff8111156145af575f5ffd5b840160a081870312156145c0575f5ffd5b9250602084013567ffffffffffffffff8111156145db575f5ffd5b6145e786828701614549565b9497909650939450505050565b5f60208284031215614604575f5ffd5b5035919050565b5f5f83601f84011261461b575f5ffd5b50813567ffffffffffffffff811115614632575f5ffd5b6020830191508360208260061b8501011115613fde575f5ffd5b5f5f5f6040848603121561465e575f5ffd5b833567ffffffffffffffff811115614674575f5ffd5b6146808682870161460b565b9094509250506020840135614694816144c8565b809150509250925092565b801515811461187d575f5ffd5b5f5f5f606084860312156146be575f5ffd5b83356146c9816144c8565b925060208401356146d9816144c8565b915060408401356146948161469f565b5f5f604083850312156146fa575f5ffd5b8235614705816144c8565b91506020830135614715816144c8565b809150509250929050565b5f60808284031215614730575f5ffd5b50919050565b5f5f5f60408486031215614748575f5ffd5b833567ffffffffffffffff81111561475e575f5ffd5b61476a86828701614720565b935050602084013567ffffffffffffffff8111156145db575f5ffd5b5f5f5f5f5f60a0868803121561479a575f5ffd5b85356147a5816144c8565b945060208601356147b5816144c8565b93506040860135925060608601356147cc816144c8565b949793965091946080013592915050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f61486360e08301896147dd565b828103604084015261487581896147dd565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b818110156148d75783518352602093840193909201916001016148b9565b50909b9a5050505050505050505050565b5f5f602083850312156148f9575f5ffd5b823567ffffffffffffffff81111561490f575f5ffd5b8301601f8101851361491f575f5ffd5b803567ffffffffffffffff811115614935575f5ffd5b8560208260051b8401011115614949575f5ffd5b6020919091019590945092505050565b5f5f6040838503121561496a575f5ffd5b8235614975816144c8565b915060208301356147158161469f565b5f5f5f5f5f60a08688031215614999575f5ffd5b85356149a4816144c8565b945060208601356149b4816144c8565b935060408601356149c4816144c8565b925060608601356149d48161469f565b915060808601356149e48161469f565b809150509295509295909350565b5f5f60408385031215614a03575f5ffd5b8235614a0e816144c8565b946020939093013593505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f82614a7c577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614ab4575f5ffd5b83018035915067ffffffffffffffff821115614ace575f5ffd5b6020019150600681901b3603821315613fde575f5ffd5b5f6040828403128015614af6575f5ffd5b506040805190810167ffffffffffffffff81118282101715614b3f577f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040528235614b4d816144c8565b81526020928301359281019290925250919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b81810381811115613a8057613a80614a1c565b5f7f80000000000000000000000000000000000000000000000000000000000000008203614bd257614bd2614a1c565b505f0390565b8183526020830192505f815f5b84811015614c2c578135614bf8816144c8565b73ffffffffffffffffffffffffffffffffffffffff1686526020828101359087015260409586019590910190600101614be5565b5093949350505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff86166020820152608060408201525f614c81608083018688614bd8565b8281036060840152614c94818587614bd8565b9998505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff84168152604060208201525f614cd0604083018486614bd8565b95945050505050565b8082018281125f831280158216821582161715614cf857614cf8614a1c565b505092915050565b8181035f831280158383131683831282161715614d1f57614d1f614a1c565b5092915050565b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc1833603018112614d58575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614d95575f5ffd5b83018035915067ffffffffffffffff821115614daf575f5ffd5b6020019150606081023603821315613fde575f5ffd5b5f60208284031215614dd5575f5ffd5b5051919050565b8082028115828204841417613a8057613a80614a1c565b80820180821115613a8057613a80614a1c565b602080825281018290525f6040600584901b8301810190830185837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc136839003015b87821015614f90577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08786030184528235818112614e84575f5ffd5b8901604086018135614e95816144c8565b73ffffffffffffffffffffffffffffffffffffffff1687526020820135368390037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1018112614ee2575f5ffd5b60209201918201913567ffffffffffffffff811115614eff575f5ffd5b606081023603831315614f10575f5ffd5b60406020890152908190525f90606088015b81831015614f74578335614f35816144c8565b73ffffffffffffffffffffffffffffffffffffffff16815260208481013590820152604080850135908201526060938401936001939093019201614f22565b9750505060209485019493909301925060019190910190614e48565b5092979650505050505050565b5f60208284031215614fad575f5ffd5b8151614504816144c8565b602081525f6141a5602083018486614bd8565b8082025f82127f80000000000000000000000000000000000000000000000000000000000000008414161561500257615002614a1c565b8181058314821517613a8057613a80614a1c565b600181811c9082168061502a57607f821691505b602082108103614730577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60208284031215615071575f5ffd5b81516145048161469f565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b5f82518060208501845e5f920191825250919050565b602081525f61450460208301846147dd56fea2646970667358221220a0ba8db9f3d9a667e49717c5614618d481311d4c3e69e51e9b53166a80821e6764736f6c634300081c0033","sourceMap":"860:26822:18:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21656:245;;;;;;:::i;:::-;;:::i;:::-;;18023:468;;;;;;:::i;:::-;;:::i;2971:50::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1414:42:26;1402:55;;;1384:74;;1372:2;1357:18;2971:50:18;;;;;;;;1847:43;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1634:14:26;;1627:22;1609:41;;1597:2;1582:18;1847:43:18;1469:187:26;11149:1627:18;;;;;;:::i;:::-;;:::i;2323:38::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;17262:333;;;;;;:::i;:::-;;:::i;2714:48::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;1447:21;;;;;;;;;1319:28;;;;;;;;;3289:48;;;;;;:::i;:::-;;;;;;;;;;;;;;;;3163:52;;;;;;:::i;:::-;;;;;;;;;;;;;;;;1980:46;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;4136:25:26;;;4124:2;4109:18;1980:46:18;3990:177:26;20003:426:18;;;;;;:::i;:::-;;:::i;2470:63::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;9080:898;;;;;;:::i;:::-;;:::i;1513:27::-;;;;;;;;;20707:188;;;;;;:::i;:::-;;:::i;1824:101:0:-;;;:::i;4509:508:18:-;;;;;;:::i;:::-;;:::i;21162:230::-;;;;;;:::i;:::-;;:::i;1734:212:1:-;;;:::i;10205:564:18:-;;;;;;:::i;:::-;;:::i;5021:633:14:-;;;:::i;:::-;;;;;;;;;;;;;:::i;1201:85:0:-;1273:6;;;;1201:85;;1585:34:18;;;;;;:::i;:::-;;:::i;2823:39::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;5445:1856;;;;;;:::i;:::-;;:::i;7658:1068::-;;;;;;:::i;:::-;;:::i;16738:228::-;;;;;;:::i;:::-;;:::i;16034:539::-;;;;;;:::i;:::-;;:::i;2071:59::-;;;;;;:::i;:::-;;;;;;;;;;;;;;2193:49;;;;;;:::i;:::-;;;;;;;;;;;;;;;;14001:562;;;;;;:::i;:::-;;:::i;3650:73::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11606:25:26;;;11662:2;11647:18;;11640:34;;;;11690:18;;;11683:34;11594:2;11579:18;3650:73:18;11404:319:26;19018:661:18;;;;;;:::i;:::-;;:::i;13015:387::-;;;;;;:::i;:::-;;:::i;14922:805::-;;;;;;:::i;:::-;;:::i;2602:65::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;847:99:1;926:13;;;;847:99;;1139:178;;;;;;:::i;:::-;;:::i;3512:56:18:-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;3386:43;;;;;;:::i;:::-;;;;;;;;;;;;;;;;21656:245;1094:13:0;:11;:13::i;:::-;21751:28:18::1;::::0;::::1;21743:62;;;;;;;;;;;;;;;;;21816:13;:30:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;21862:32:::1;::::0;1384:74:26;;;21862:32:18::1;::::0;1372:2:26;1357:18;21862:32:18::1;;;;;;;;21656:245:::0;:::o;18023:468::-;1094:13:0;:11;:13::i;:::-;18133:19:18::1;::::0;::::1;18125:53;;;;;;;;;;;;;;;;;18196:17;::::0;::::1;;::::0;;;:7:::1;:17;::::0;;;;;::::1;;::::0;:42:::1;;-1:-1:-1::0;18217:21:18::1;::::0;::::1;;::::0;;;:11:::1;:21;::::0;;;;;::::1;;18196:42;18188:86;;;;;;;;;;;;;;;;;18353:72;::::0;;::::1;::::0;::::1;::::0;;;;;-1:-1:-1;18353:72:18::1;::::0;::::1;::::0;;;;18399:24:::1;18417:6;18399:15;:24;:::i;:::-;18353:72:::0;;18320:23:::1;::::0;;::::1;;::::0;;;:13:::1;:23;::::0;;;;;;;:30;;::::1;::::0;;;;;;;;;;:105;;;;;;::::1;::::0;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;::::1;::::0;;;;18441:43;4136:25:26;;;18320:30:18;;:23;;18441:43:::1;::::0;4109:18:26;18441:43:18::1;;;;;;;18023:468:::0;;;:::o;11149:1627::-;27622:10;27610:23;;;;:11;:23;;;;;;;;27602:60;;;;;;;;;;;;;;;;;1158:21:23::1;:19;:21::i;:::-;11300:47:18::2;11328:7;11337:9;;11300:27;:47::i;:::-;11358:57;11375:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;11358:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;::::2;;::::0;;::::2;::::0;::::2;::::0;::::2;:::i;:::-;;;;;;;;;;;;-1:-1:-1::0;11400:14:18::2;::::0;-1:-1:-1;;11400:14:18;;;;-1:-1:-1;;11400:14:18::2;::::0;::::2;;:::i;:::-;11358:16;:57::i;:::-;11468:10;11426:17;11446:33:::0;;;:21:::2;:33;::::0;;;;;::::2;;::::0;11490:182:::2;11510:24;;::::0;::::2;:7:::0;:24:::2;:::i;:::-;:31;;11506:1;:35;11490:182;;;11627:24;;::::0;::::2;:7:::0;:24:::2;:::i;:::-;11652:1;11627:27;;;;;;;:::i;:::-;;;;;;:34;;;11562:10;:26;11573:7;:14;;;;;;;;;;:::i;:::-;11562:26;;::::0;;::::2;::::0;::::2;::::0;;;;;;-1:-1:-1;11562:26:18;;;;11589:24:::2;;::::0;::::2;:7:::0;:24:::2;:::i;:::-;11614:1;11589:27;;;;;;;:::i;:::-;:33;::::0;::::2;:27;::::0;;::::2;;:33:::0;;::::2;::::0;-1:-1:-1;11589:33:18::2;:::i;:::-;11562:61;;;;;;;;;;;;;;;;:99;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;11543:3:18::2;;11490:182;;;;11687:9;11682:590;11702:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;:30;;11698:1;:34;11682:590;;;11753:13;11769:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;11793:1;11769:26;;;;;;;:::i;:::-;:32;::::0;::::2;:26;::::0;;::::2;;:32:::0;;::::2;::::0;-1:-1:-1;11769:32:18::2;:::i;:::-;11753:48:::0;-1:-1:-1;11815:13:18::2;11831:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;11855:1;11831:26;;;;;;;:::i;:::-;;;;;;:33;;;11815:49;;11892:1;11883:6;:10;11879:383;;;11913:77;11944:10;11964:4;11971:18;:6;:16;:18::i;:::-;11913:30;::::0;::::2;::::0;:77;;:30:::2;:77::i;:::-;11879:383;;;12107:61;12127:10;12139:5:::0;12146:21:::2;12147:7;12148:6:::0;12147:7:::2;:::i;:::-;12146:19;:21::i;:::-;12107:19;:61::i;:::-;12187:60;12214:9:::0;12225:21:::2;12226:7;12227:6:::0;12226:7:::2;:::i;12225:21::-;12187:26;::::0;::::2;::::0;:60;:26:::2;:60::i;:::-;-1:-1:-1::0;;11734:3:18::2;;11682:590;;;;12287:9;12282:383;12302:24;;::::0;::::2;:7:::0;:24:::2;:::i;:::-;:31;;12298:1;:35;12282:383;;;12354:13;12370:24;;::::0;::::2;:7:::0;:24:::2;:::i;:::-;12395:1;12370:27;;;;;;;:::i;:::-;:33;::::0;::::2;:27;::::0;;::::2;;:33:::0;;::::2;::::0;-1:-1:-1;12370:33:18::2;:::i;:::-;12354:49:::0;-1:-1:-1;12492:74:18::2;12512:10;12354:49:::0;12531:24:::2;;::::0;::::2;:7:::0;:24:::2;:::i;:::-;12556:1;12531:27;;;;;;;:::i;:::-;;;;;;:34;;;12492:19;:74::i;:::-;12581:73;12608:9:::0;12619:24:::2;;::::0;::::2;:7:::0;:24:::2;:::i;:::-;12644:1;12619:27;;;;;;;:::i;:::-;;;;;;:34;;;12588:5;12581:26;;;;:73;;;;;:::i;:::-;-1:-1:-1::0;12335:3:18::2;;12282:383;;;-1:-1:-1::0;12680:89:18::2;12691:14;::::0;;;::::2;::::0;::::2;;:::i;:::-;12707:10;12719:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;12744:24;;::::0;::::2;:7:::0;:24:::2;:::i;:::-;12680:89;;;;;;;;;;;:::i;:::-;;;;;;;;11290:1486;1200:20:23::1;:18;:20::i;:::-;11149:1627:18::0;;;:::o;17262:333::-;1094:13:0;:11;:13::i;:::-;17367:9:18::1;17362:227;17378:17:::0;;::::1;17362:227;;;17470:1;17432:8;17470:1:::0;17441:6;;17448:1;17441:9;;::::1;;;;;:::i;:::-;:15;::::0;::::1;:9;::::0;;::::1;;:15:::0;;::::1;::::0;-1:-1:-1;17441:15:18::1;:::i;:::-;17432:25;::::0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;17432:25:18;;::::1;17424:48:::0;17416:88:::1;;;;;;;;;;;;;;;;;17519:59;17555:4;17561:6;;17568:1;17561:9;;;;;;;:::i;:::-;;;;;;:16;;;17526:6;;17533:1;17526:9;;;;;;;:::i;:::-;:15;::::0;::::1;:9;::::0;;::::1;;:15:::0;;::::1;::::0;-1:-1:-1;17526:15:18::1;:::i;:::-;17519:35;;::::0;:59;:35:::1;:59::i;:::-;17397:3;;17362:227;;;;17262:333:::0;;;:::o;20003:426::-;1094:13:0;:11;:13::i;:::-;20115:24:18::1;::::0;::::1;::::0;;::::1;::::0;:51:::1;;-1:-1:-1::0;20143:23:18::1;::::0;::::1;::::0;::::1;20115:51;20107:85;;;;;;;;;;;;;;;;;20224:9;20210:23;;:10;:23;;::::0;20202:73:::1;;;;;;;;;;;;;;;;;20286:23;::::0;;::::1;;::::0;;;:11:::1;:23;::::0;;;;;;;:32;;;::::1;::::0;::::1;;::::0;;::::1;::::0;;;20328:21:::1;:33:::0;;;;;;:45;;;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;20389:33;;18561:74:26;;;18651:18;;18644:50;20389:33:18::1;::::0;18534:18:26;20389:33:18::1;;;;;;;;20003:426:::0;;;:::o;9080:898::-;9225:14;;;;;;;;:::i;:::-;27262:15;;;;;;;:7;:15;;;;;;;;:39;;;;-1:-1:-1;27281:20:18;;;27291:10;27281:20;27262:39;27261:180;;;-1:-1:-1;27384:15:18;;;;;;;:7;:15;;;;;;;;:56;;;;-1:-1:-1;27417:23:18;;;;;;;;:15;:23;;;;;;;27403:10;:37;27384:56;27240:302;;;;;;;;;;;;;;;;;1158:21:23::1;:19;:21::i;:::-;9264:52:18::2;9297:7;9306:9;;9264:32;:52::i;:::-;9332:9;9327:152;9347:14;;::::0;::::2;:7:::0;:14:::2;:::i;:::-;:21;;9343:1;:25;9327:152;;;9444:14;;::::0;::::2;:7:::0;:14:::2;:::i;:::-;9459:1;9444:17;;;;;;;:::i;:::-;;;;;;:24;;;9389:10;:26;9400:7;:14;;;;;;;;;;:::i;:::-;9389:26;;::::0;;::::2;::::0;::::2;::::0;;;;;;-1:-1:-1;9389:26:18;;;;9416:14:::2;;::::0;::::2;:7:::0;:14:::2;:::i;:::-;9431:1;9416:17;;;;;;;:::i;:::-;:23;::::0;::::2;:17;::::0;;::::2;;:23:::0;;::::2;::::0;-1:-1:-1;9416:23:18::2;:::i;:::-;9389:51;;;;;;;;;;;;;;;;:79;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;9370:3:18::2;;9327:152;;;-1:-1:-1::0;9489:17:18::2;9509;9489::::0;9527:14:::2;::::0;;;::::2;::::0;::::2;;:::i;:::-;9509:33;::::0;;::::2;::::0;;::::2;::::0;::::2;::::0;;;;;;-1:-1:-1;9509:33:18;;;;;;::::2;::::0;-1:-1:-1;9552:355:18::2;9572:14;;::::0;::::2;:7:::0;:14:::2;:::i;:::-;:21;;9568:1;:25;9552:355;;;9614:13;9630:14;;::::0;::::2;:7:::0;:14:::2;:::i;:::-;9645:1;9630:17;;;;;;;:::i;:::-;:23;::::0;::::2;:17;::::0;;::::2;;:23:::0;;::::2;::::0;-1:-1:-1;9630:23:18::2;:::i;:::-;9614:39:::0;-1:-1:-1;9667:14:18::2;9684;;::::0;::::2;:7:::0;:14:::2;:::i;:::-;9699:1;9684:17;;;;;;;:::i;:::-;;;;;;:24;;;9667:41;;9786:50;9806:7;:14;;;;;;;;;;:::i;:::-;9822:5;9829:6;9786:19;:50::i;:::-;9851:45;:26;::::0;::::2;9878:9:::0;9889:6;9851:26:::2;:45::i;:::-;-1:-1:-1::0;;9595:3:18::2;;9552:355;;;-1:-1:-1::0;9922:49:18::2;9940:14;::::0;;;::::2;::::0;::::2;;:::i;:::-;9956;;::::0;::::2;:7:::0;:14:::2;:::i;:::-;9922:49;;;;;;;;:::i;:::-;;;;;;;;9254:724;1200:20:23::1;:18;:20::i;20707:188:18:-:0;1094:13:0;:11;:13::i;:::-;20780:21:18::1;::::0;::::1;20772:55;;;;;;;;;;;;;;;;;20838:6;:16:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;20870:18:::1;::::0;1384:74:26;;;20870:18:18::1;::::0;1372:2:26;1357:18;20870::18::1;1238:226:26::0;1824:101:0;1094:13;:11;:13::i;:::-;1888:30:::1;1915:1;1888:18;:30::i;:::-;1824:101::o:0;4509:508:18:-;4702:10;4690:23;;;;:11;:23;;;;;;;;4682:60;;;;;;;;;;;;;;;;;4773:40;4781:17;;;4811:1;4781:17;;;:8;:17;;;;;;;4773:40;;;;:85;;-1:-1:-1;4817:41:18;4825:18;;;4856:1;4825:18;;;:8;:18;;;;;;;4817:41;;4773:85;4752:159;;;;;;;;;;;;;;;;;4922:17;;;;;;;;:9;:17;;;;;;;;:26;;;;;;;;;;;:38;;4952:8;;4922:17;:38;;4952:8;;4922:38;:::i;:::-;;;;-1:-1:-1;;4970:17:18;;;;;;;;:9;:17;;;;;;;;:27;;;;;;;;;;;:40;;5001:9;;4970:17;:40;;5001:9;;4970:40;:::i;:::-;;;;-1:-1:-1;;;;;;;4509:508:18:o;21162:230::-;1094:13:0;:11;:13::i;:::-;21247:27:18::1;::::0;::::1;21239:61;;;;;;;;;;;;;;;;;21311:12;:28:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;21355:30:::1;::::0;1384:74:26;;;21355:30:18::1;::::0;1372:2:26;1357:18;21355:30:18::1;1238:226:26::0;1734:212:1;926:13;;734:10:9;;1833:24:1;926:13;1833:24;;1825:78;;;;;;;19837:2:26;1825:78:1;;;19819:21:26;19876:2;19856:18;;;19849:30;19915:34;19895:18;;;19888:62;19986:11;19966:18;;;19959:39;20015:19;;1825:78:1;;;;;;;;;1913:26;1932:6;1913:18;:26::i;:::-;1776:170;1734:212::o;10205:564:18:-;27262:15;;;;;;;:7;:15;;;;;;10330:6;;27262:15;;:39;;;;-1:-1:-1;27281:20:18;;;27291:10;27281:20;27262:39;27261:180;;;-1:-1:-1;27384:15:18;;;;;;;:7;:15;;;;;;;;:56;;;;-1:-1:-1;27417:23:18;;;;;;;;:15;:23;;;;;;;27403:10;:37;27384:56;27240:302;;;;;;;;;;;;;;;;;1158:21:23::1;:19;:21::i;:::-;10361:41:18::2;10378:15;;10361:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;::::2;;::::0;;::::2;::::0;::::2;::::0;::::2;:::i;:::-;;;;;;;;;;;;;;;;;10395:6;10361:16;:41::i;:::-;10502:9;10497:219;10513:26:::0;;::::2;10497:219;;;10560:145;10627:10;10647:4;10654:37;:15;;10670:1;10654:18;;;;;;;:::i;:::-;;;;;;:25;;;:35;:37::i;:::-;10567:15;;10583:1;10567:18;;;;;;;:::i;:::-;:24;::::0;::::2;:18;::::0;;::::2;;:24:::0;;::::2;::::0;-1:-1:-1;10567:24:18::2;:::i;:::-;10560:49;;::::0;:145;;:49:::2;:145::i;:::-;10541:3;;10497:219;;;;10731:31;10738:6;10746:15;;10731:31;;;;;;;;:::i;:::-;;;;;;;;1200:20:23::1;:18;:20::i;5021:633:14:-:0;5136:13;5163:18;;5136:13;;;5163:18;5427:41;:5;5136:13;5427:26;:41::i;:::-;5482:47;:8;5512:16;5482:29;:47::i;:::-;5621:16;;;5605:1;5621:16;;;;;;;;;5376:271;;;;-1:-1:-1;5376:271:14;;-1:-1:-1;5543:13:14;;-1:-1:-1;5578:4:14;;-1:-1:-1;5605:1:14;-1:-1:-1;5621:16:14;-1:-1:-1;5376:271:14;-1:-1:-1;5021:633:14:o;1585:34:18:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1585:34:18;:::o;5445:1856::-;5549:12;;;;5535:10;:26;5527:65;;;;;;;;;;;;;;;;;5608:9;5603:1651;5619:22;;;5603:1651;;;5662:14;5679:11;;5691:1;5679:14;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:21;;;;;;;:::i;:::-;5737:32;;;;;;;:24;:32;;;;;;5662:38;;-1:-1:-1;219:7:21;;5719:50:18;;:15;:50;:::i;:::-;:74;5715:153;;;5820:33;;;;;;;;;;;;;;5715:153;5887:9;5882:1297;5902:11;;5914:1;5902:14;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:25;;;;;;;:::i;:::-;:32;;5898:1;:36;5882:1297;;;5959:13;5975:11;;5987:1;5975:14;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:25;;;;;;;:::i;:::-;6001:1;5975:28;;;;;;;:::i;:::-;:34;;;:28;;;;;:34;;;;-1:-1:-1;5975:34:18;:::i;:::-;5959:50;;6027:18;6048:11;;6060:1;6048:14;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:25;;;;;;;:::i;:::-;6074:1;6048:28;;;;;;;:::i;:::-;;;;;;:39;;;6027:60;;6105:18;6126:11;;6138:1;6126:14;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:25;;;;;;;:::i;:::-;6152:1;6126:28;;;;;;;:::i;:::-;6254:38;6262:15;;;6290:1;6262:15;;;:8;:15;;6126:39;6262:15;;;;;6126:28;;;;;;;;:39;;;;;;-1:-1:-1;6262:15:18;;;;-1:-1:-1;6246:78:18;;;;;;;;;;;;;;;;;6347:14;;6343:546;;6414:15;;;;6385:26;6414:15;;;:8;:15;;;;;;;;;:30;;;;;;;6385:26;;6414:15;;:28;;:30;;;;;:15;;:30;;;;;;:15;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6536:15;;;;;;;;:8;:15;;;;;;;;:43;;;;;;;;4136:25:26;;;6385:59:18;;-1:-1:-1;6536:15:18;;:31;;4109:18:26;;6536:43:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6750:18;6771:3;6750:24;;;;:::i;:::-;6685:15;;;;;;;;:8;:15;;;;;;;;;;:30;;;;;;;6718:18;;6685:15;;;;;:28;;:30;;;;;:15;;:30;;;;;:15;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:51;;;;:::i;:::-;6684:62;;6740:6;6684:62;:::i;:::-;6683:91;6679:192;;;6809:39;;;;;;;;;;;;;;6679:192;6363:526;6343:546;6911:14;;6907:93;;6949:18;;;;;;;:11;:18;;;;;:32;;6971:10;;6949:18;:32;;6971:10;;6949:32;:::i;:::-;;;;-1:-1:-1;;6907:93:18;7128:36;7129:23;7142:10;7129;:23;:::i;:::-;7128:34;:36::i;:::-;7100:17;;;;;;;;:9;:17;;;;;;;;:24;;;;;;;;;;;:64;;:24;;:17;:64;;;;;:::i;:::-;;;;-1:-1:-1;;5936:3:18;;;;;-1:-1:-1;5882:1297:18;;-1:-1:-1;;5882:1297:18;;-1:-1:-1;7193:32:18;;;;;;:24;:32;;;;;7228:15;7193:50;;5643:3;;5603:1651;;;;7269:25;7282:11;;7269:25;;;;;;;:::i;:::-;;;;;;;;5445:1856;;:::o;7658:1068::-;7787:14;;;;;;;;:::i;:::-;27262:15;;;;;;;:7;:15;;;;;;;;:39;;;;-1:-1:-1;27281:20:18;;;27291:10;27281:20;27262:39;27261:180;;;-1:-1:-1;27384:15:18;;;;;;;:7;:15;;;;;;;;:56;;;;-1:-1:-1;27417:23:18;;;;;;;;:15;:23;;;;;;;27403:10;:37;27384:56;27240:302;;;;;;;;;;;;;;;;;1158:21:23::1;:19;:21::i;:::-;7826:42:18::2;7849:7;7858:9;;7826:22;:42::i;:::-;7879:57;7896:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;7879:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;::::2;;::::0;;::::2;::::0;::::2;::::0;::::2;:::i;:::-;;;;;;;;;;;;-1:-1:-1::0;7921:14:18::2;::::0;-1:-1:-1;;7921:14:18;;;;-1:-1:-1;;7921:14:18::2;::::0;::::2;;:::i;7879:57::-;7947:17;7967;7947::::0;7985:14:::2;::::0;;;::::2;::::0;::::2;;:::i;:::-;7967:33;::::0;;::::2;::::0;;::::2;::::0;::::2;::::0;;;;;;-1:-1:-1;7967:33:18;;;;;;::::2;::::0;-1:-1:-1;8046:610:18::2;8066:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;:30;;8062:1;:34;8046:610;;;8117:13;8133:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;8157:1;8133:26;;;;;;;:::i;:::-;:32;::::0;::::2;:26;::::0;;::::2;;:32:::0;;::::2;::::0;-1:-1:-1;8133:32:18::2;:::i;:::-;8117:48:::0;-1:-1:-1;8179:13:18::2;8195:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;8219:1;8195:26;;;;;;;:::i;:::-;;;;;;:33;;;8179:49;;8256:1;8247:6;:10;8243:403;;;8277:77;8308:10;8328:4;8335:18;:6;:16;:18::i;8277:77::-;8243:403;;;8487:65;8507:14;::::0;;;::::2;::::0;::::2;;:::i;:::-;8523:5:::0;8530:21:::2;8531:7;8532:6:::0;8531:7:::2;:::i;8487:65::-;8571:60;8598:9:::0;8609:21:::2;8610:7;8611:6:::0;8610:7:::2;:::i;8571:60::-;-1:-1:-1::0;;8098:3:18::2;;8046:610;;;-1:-1:-1::0;8671:48:18::2;8679:14;::::0;;;::::2;::::0;::::2;;:::i;16738:228::-:0;1094:13:0;:11;:13::i;:::-;16827:18:18::1;::::0;::::1;16819:52;;;;;;;;;;;;;;;;;16882:17;::::0;::::1;;::::0;;;:11:::1;:17;::::0;;;;;;;;:28;;;::::1;::::0;::::1;;::::0;;::::1;::::0;;;16926:33;;1609:41:26;;;16926:33:18::1;::::0;1582:18:26;16926:33:18::1;;;;;;;16738:228:::0;;:::o;16034:539::-;16141:23;;;16133:57;;;;;;;;;;;;;;;;;16222:13;;;;16208:10;:27;16200:67;;;;;;;;;;;;;;;;;16295:23;;;;;;;:11;:23;;;;;;16285:33;;;16277:79;;;;;;;;;;;;;;;;;16367:23;;;;;;;:11;:23;;;;;:33;;16394:6;;16367:23;:33;;16394:6;;16367:33;:::i;:::-;;;;-1:-1:-1;16453:50:18;;-1:-1:-1;16453:31:18;;;16485:9;16496:6;16453:31;:50::i;:::-;16519:47;;;25076:42:26;25064:55;;;25046:74;;25156:55;;25151:2;25136:18;;25129:83;25228:18;;;25221:34;;;16519:47:18;;25034:2:26;25019:18;16519:47:18;24844:417:26;14001:562:18;1158:21:23;:19;:21::i;:::-;14115:15:18::1;::::0;::::1;;::::0;;;:7:::1;:15;::::0;;;;;::::1;;14107:48;;;;;;;;;;;;;;;;;14171:9;14166:344;14182:17:::0;;::::1;14166:344;;;14220:13;14236:6;;14243:1;14236:9;;;;;;;:::i;:::-;:15;::::0;::::1;:9;::::0;;::::1;;:15:::0;;::::1;::::0;-1:-1:-1;14236:15:18::1;:::i;:::-;14273:23;::::0;::::1;;::::0;;;:16:::1;:23;::::0;;;;;14220:31;;-1:-1:-1;14273:23:18::1;;14265:57;;;;;;;;;;;;;;;;;14337:14;14354:6;;14361:1;14354:9;;;;;;;:::i;:::-;;;;;;:16;;;14337:33;;14413:6;14384:10;:18;14395:6;14384:18;;;;;;;;;;;;;;;:25;14403:5;14384:25;;;;;;;;;;;;;;;;:35;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;14434:65:18::1;::::0;-1:-1:-1;14434:30:18::1;::::0;::::1;14465:10;14485:4;14492:6:::0;14434:30:::1;:65::i;:::-;-1:-1:-1::0;;14201:3:18::1;;14166:344;;;;14525:31;14541:6;14549;;14525:31;;;;;;;;:::i;:::-;;;;;;;;1200:20:23::0;:18;:20::i;19018:661:18:-;1094:13:0;:11;:13::i;:::-;19211:20:18::1;::::0;::::1;::::0;;::::1;::::0;:45:::1;;-1:-1:-1::0;19235:21:18::1;::::0;::::1;::::0;::::1;19211:45;:72;;;;-1:-1:-1::0;19260:23:18::1;::::0;::::1;::::0;::::1;19211:72;19203:106;;;;;;;;;;;;;;;;;19340:6;19327:19;;:9;:19;;;;:43;;;;;19363:7;19350:20;;:9;:20;;;;19327:43;19319:89;;;;;;;;;;;;;;;;;19419:15;::::0;;::::1;;::::0;;;:7:::1;:15;::::0;;;;;;;:26;;;::::1;;::::0;;;::::1;::::0;::::1;::::0;;;19455:15:::1;:23:::0;;;;;:33;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;19498:17:::1;:25:::0;;;;;:37;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;19546:16:::1;:24:::0;;;;;;:44;;;::::1;;::::0;::::1;::::0;::::1;::::0;;19606:66;;25485:41:26;;;25542:18;;;25535:50;;;;25601:18;;25594:83;;;;25708:2;25693:18;;25686:83;;;;19419:15:18;19606:66:::1;::::0;25472:3:26;25457:19;19606:66:18::1;;;;;;;19018:661:::0;;;;;:::o;13015:387::-;13100:10;13083:28;;;;:16;:28;;;;;;;;13075:62;;;;;;;;;;;;;;;;;13179:10;13165:41;;;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;13155:6;:53;;13147:98;;;;;;;;;;;;;;;;;13324:71;13384:2;13388:6;13345:10;13331:36;;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;13324:59;;;:71;:59;:71::i;:::-;13015:387;;:::o;14922:805::-;1094:13:0;:11;:13::i;:::-;15051:34:18::1;::::0;::::1;;::::0;;;:16:::1;:34;::::0;;;;;::::1;;15050:35;15042:76;;;;;;;;;;;;;;;;;15129:18;15158:7;:18;;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;15250:43;15258:20:::0;;::::1;15291:1;15258:20:::0;;;:8:::1;:20;::::0;;;;;15129:50;;-1:-1:-1;15258:20:18::1;15250:43:::0;:85;::::1;;;;15330:4;15297:38;;:7;:19;;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:38;;;15250:85;15229:155;;;;;;;;;;;;;;;;;15459:33;::::0;::::1;15451:70;;;;;;;;;;;;;;;;;15558:20;::::0;;::::1;;::::0;;;:8:::1;:20;::::0;;;;;;;:30;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;15598:34;;;:16:::1;:34:::0;;;;;:41;;;::::1;-1:-1:-1::0;15598:41:18;;::::1;::::0;;;15649:11:::1;:25:::0;;;;::::1;::::0;;;;;;;;::::1;::::0;;;;::::1;::::0;::::1;::::0;;;15690:30;;1384:74:26;;;15690:30:18::1;::::0;1357:18:26;15690:30:18::1;1238:226:26::0;1139:178:1;1094:13:0;:11;:13::i;:::-;1228::1::1;:24:::0;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;1292:7:::1;1273:6:0::0;;;;;1201:85;1292:7:1::1;1267:43;;;;;;;;;;;;1139:178:::0;:::o;1359:130:0:-;1273:6;;1422:23;1273:6;734:10:9;1422:23:0;1414:68;;;;;;;26532:2:26;1414:68:0;;;26514:21:26;;;26551:18;;;26544:30;26610:34;26590:18;;;26583:62;26662:18;;1414:68:0;26330:356:26;1233:334:23;580:66;427:11:25;1356:93:23;;;1408:30;;;;;;;;;;;;;;1356:93;1523:37;580:66;1555:4;1523:31;:37::i;25958:881:18:-;26140:15;26120:7;:16;;;:35;;26112:72;;;;;;;;;;;;;;;;;26195:27;26208:13;;26195:12;:27::i;:::-;26233:15;1063:151:21;26354:13:18;;26385:16;;;;26419:14;;;;;;;;:::i;:::-;26472:23;;;;:7;:23;:::i;:::-;26461:35;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;26451:46;;26461:35;26451:46;;;;26536:24;;;;:7;:24;:::i;:::-;26525:36;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;26515:47;;26525:36;26515:47;;;;26602:10;26580:33;;;;:21;:33;;;;;;26274:353;;;27772:25:26;;;;27813:18;;;27806:34;;;;27856:18;;;27849:34;;;;26580:33:18;27919:55:26;;;27899:18;;;27892:83;27991:19;;;27984:35;28035:19;;;28028:35;;;;26580:33:18;;28079:19:26;;;28072:84;27744:19;;26274:353:18;;;;;;;;;;;;;26251:386;;;;;;26233:404;;26647:14;26664:25;26681:7;26664:16;:25::i;:::-;26647:42;;26699:23;26725:32;26739:6;26747:9;;26725:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26725:13:18;;-1:-1:-1;;;26725:32:18:i;:::-;26795:6;;26699:58;;-1:-1:-1;26795:6:18;26776:25;;;26795:6;;26776:25;26768:64;;;;;;;;;;;;;;;;;26102:737;;;25958:881;;;:::o;22272:912::-;22411:22;;22387:21;22443:735;22463:13;22459:1;:17;22443:735;;;22497:13;22513:15;22529:1;22513:18;;;;;;;;:::i;:::-;;;;;;;:24;;;22497:40;;22551:13;22567:15;22583:1;22567:18;;;;;;;;:::i;:::-;;;;;;;;;;;;:25;;;22627:17;;;;22606:18;22627:17;;;:9;:17;;;;;;:24;;;;;;;;;;;;22567:25;;-1:-1:-1;22627:33:18;;22567:25;;22627:33;:::i;:::-;22747:38;22755:15;;;22783:1;22755:15;;;:8;:15;;;;;;22606:54;;-1:-1:-1;22755:15:18;22739:75;;;;;;;;;;;;;;;;;22950:17;;;;22987:1;22950:17;;;:9;:17;;;;;;;;:24;;;;;;;;;;;;:33;;22977:6;;22950:33;:::i;:::-;:38;;:84;;;-1:-1:-1;22992:17:18;;;;23033:1;22992:17;;;:9;:17;;;;;;;;:24;;;;;;;;;;;;:38;;23019:11;;22992:38;:::i;:::-;:42;22950:84;22946:169;;;23061:39;;;;;;;;;;;;;;22946:169;23129:17;;;;;;;;:9;:17;;;;;;;;:24;;;;;;;;;;;;;:38;;;;-1:-1:-1;22478:3:18;;22443:735;;17187:168:16;17243:7;17279:1;17270:5;:10;;17262:55;;;;;;;28666:2:26;17262:55:16;;;28648:21:26;;;28685:18;;;28678:30;28744:34;28724:18;;;28717:62;28796:18;;17262:55:16;28464:356:26;17262:55:16;-1:-1:-1;17342:5:16;17187:168::o;1723:203:24:-;1850:68;;25076:42:26;25064:55;;;1850:68:24;;;25046:74:26;25156:55;;25136:18;;;25129:83;25228:18;;;25221:34;;;1823:96:24;;1843:5;;1873:27;;25019:18:26;;1850:68:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1823:19;:96::i;23511:797:18:-;23633:21;;;;23606:24;23633:21;;;:13;:21;;;;;;;;:28;;;;;;;;;;;;23692:24;23710:6;23692:15;:24;:::i;:::-;23671:45;;23726:15;23849:3;:11;;;23836:10;:24;23832:129;;;-1:-1:-1;23886:6:18;23832:129;;;23944:6;23933:3;:8;;;:17;;;;:::i;:::-;23923:27;;23832:129;24072:9;;:14;;:38;;-1:-1:-1;24101:9:18;;24090:20;;;24072:38;24064:83;;;;;;;;;;;;;;;;;24233:68;;;;;;;;24254:9;;24233:68;;;;;;;;;;;;;;;24202:21;;;;-1:-1:-1;24202:21:18;;;:13;:21;;;;;:28;;;;;;;;;;;;;;:99;;;;;;;;;;-1:-1:-1;24202:99:18;;;;;;;23511:797::o;1309:175:24:-;1418:58;;29029:42:26;29017:55;;1418:58:24;;;28999:74:26;29089:18;;;29082:34;;;1391:86:24;;1411:5;;1441:23;;28972:18:26;;1418:58:24;28825:297:26;1573:93:23;1621:38;580:66;1653:5;1621:31;:38::i;2186:620:24:-;2736:62;;29029:42:26;29017:55;;2736:62:24;;;28999:74:26;29089:18;;;29082:34;;;2709:90:24;;2729:5;;2759:22;;28972:18:26;;2736:62:24;28825:297:26;25129:823:18;25321:15;25301:7;:16;;;:35;;25293:72;;;;;;;;;;;;;;;;;25376:27;25389:13;;25376:12;:27::i;:::-;25414:15;829:116:21;25541:13:18;;25572:16;;;;25606:14;;;;;;;;:::i;:::-;25659;;;;:7;:14;:::i;:::-;25648:26;;;;;;;;;:::i;:::-;;;;;;;;;;;;;25638:37;;;;;;25693:17;:33;25711:7;:14;;;;;;;;;;:::i;:::-;25693:33;;;;;;;;;;;;;;;;;;-1:-1:-1;25693:33:18;;25455:285;;;;;29414:25:26;;;;29455:18;;;29448:34;;;;29498:18;;;29491:34;;;;29561:55;;;29541:18;;;29534:83;29633:19;;;29626:35;25693:33:18;;29677:19:26;;;29670:84;29386:19;;25455:285:18;29127:633:26;1501:153:1;1590:13;1583:20;;;;;;1613:34;1638:8;1613:24;:34::i;3367:268:10:-;3461:13;1371:66;3490:47;;3486:143;;3560:15;3569:5;3560:8;:15::i;:::-;3553:22;;;;3486:143;3613:5;3606:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3486:143;3367:268;;;;:::o;34781:297:16:-;34837:6;34979:16;34962:5;:34;;34954:87;;;;;;;30409:2:26;34954:87:16;;;30391:21:26;30448:2;30428:18;;;30421:30;30487:34;30467:18;;;30460:62;30558:10;30538:18;;;30531:38;30586:19;;34954:87:16;30207:404:26;24314:809:18;24490:15;24470:7;:16;;;:35;;24462:72;;;;;;;;;;;;;;;;;24545:27;24558:13;;24545:12;:27::i;:::-;24583:15;570:125:21;24703:13:18;;24734:16;;;;24768:14;;;;;;;;:::i;1926:32:23:-;1919:39;;1845:120;:::o;658:119:25:-;755:5;749:4;742:19;658:119;;:::o;22126:140:18:-;22191:13;;;;:6;:13;;;;;;;;22190:14;22182:46;;;;;;;;;;;;;;;;;22239:13;;;;:6;:13;;;;;:20;;;;22255:4;22239:20;;;22126:140::o;4768:165:14:-;4845:7;4871:55;4893:20;:18;:20::i;:::-;4915:10;8536:4:13;8530:11;8566:10;8554:23;;8606:4;8597:14;;8590:39;;;;8658:4;8649:14;;8642:34;8712:4;8697:20;;;8336:397;3661:227;3739:7;3759:17;3778:18;3800:27;3811:4;3817:9;3800:10;:27::i;:::-;3758:69;;;;3837:18;3849:5;3837:11;:18::i;:::-;-1:-1:-1;3872:9:13;3661:227;-1:-1:-1;;;3661:227:13:o;4258:642:24:-;4677:23;4703:69;4731:4;4703:69;;;;;;;;;;;;;;;;;4711:5;4703:27;;;;:69;;;;;:::i;:::-;4677:95;;4790:10;:17;4811:1;4790:22;:56;;;;4827:10;4816:30;;;;;;;;;;;;:::i;:::-;4782:111;;;;;;;31068:2:26;4782:111:24;;;31050:21:26;31107:2;31087:18;;;31080:30;31146:34;31126:18;;;31119:62;31217:12;31197:18;;;31190:40;31247:19;;4782:111:24;30866:406:26;2426:187:0;2518:6;;;;2534:17;;;;;;;;;;;2566:40;;2518:6;;;2534:17;2518:6;;2566:40;;2499:16;;2566:40;2489:124;2426:187;:::o;2059:405:10:-;2118:13;2143:11;2157:16;2168:4;2157:10;:16::i;:::-;2281:14;;;2292:2;2281:14;;;;;;;;;2143:30;;-1:-1:-1;2261:17:10;;2281:14;;;;;;;;;-1:-1:-1;;;2371:16:10;;;-1:-1:-1;2416:4:10;2407:14;;2400:28;;;;-1:-1:-1;2371:16:10;2059:405::o;3695:262:14:-;3748:7;3779:4;3771:28;3788:11;3771:28;;:63;;;;;3820:14;3803:13;:31;3771:63;3767:184;;;-1:-1:-1;3857:22:14;;3695:262::o;3767:184::-;3917:23;4054:81;;;1929:95;4054:81;;;32841:25:26;4077:11:14;32882:18:26;;;32875:34;;;;4090:14:14;32925:18:26;;;32918:34;4106:13:14;32968:18:26;;;32961:34;4129:4:14;33011:19:26;;;33004:84;4018:7:14;;32813:19:26;;4054:81:14;;;;;;;;;;;;4044:92;;;;;;4037:99;;3963:180;;2145:730:13;2226:7;2235:12;2263:9;:16;2283:2;2263:22;2259:610;;2599:4;2584:20;;2578:27;2648:4;2633:20;;2627:27;2705:4;2690:20;;2684:27;2301:9;2676:36;2746:25;2757:4;2676:36;2578:27;2627;2746:10;:25::i;:::-;2739:32;;;;;;;;;2259:610;-1:-1:-1;2818:1:13;;-1:-1:-1;2822:35:13;2259:610;2145:730;;;;;:::o;570:511::-;647:20;638:5;:29;;;;;;;;:::i;:::-;;634:441;;570:511;:::o;634:441::-;743:29;734:5;:38;;;;;;;;:::i;:::-;;730:345;;788:34;;;;;31668:2:26;788:34:13;;;31650:21:26;31707:2;31687:18;;;31680:30;31746:26;31726:18;;;31719:54;31790:18;;788:34:13;31466:348:26;730:345:13;852:35;843:5;:44;;;;;;;;:::i;:::-;;839:236;;903:41;;;;;32021:2:26;903:41:13;;;32003:21:26;32060:2;32040:18;;;32033:30;32099:33;32079:18;;;32072:61;32150:18;;903:41:13;31819:355:26;839:236:13;974:30;965:5;:39;;;;;;;;:::i;:::-;;961:114;;1020:44;;;;;32381:2:26;1020:44:13;;;32363:21:26;32420:2;32400:18;;;32393:30;32459:34;32439:18;;;32432:62;32530:4;32510:18;;;32503:32;32552:19;;1020:44:13;32179:398:26;4108:223:8;4241:12;4272:52;4294:6;4302:4;4308:1;4311:12;4272:21;:52::i;:::-;4265:59;4108:223;-1:-1:-1;;;;4108:223:8:o;2536:245:10:-;2597:7;2669:4;2633:40;;2696:2;2687:11;;2683:69;;;2721:20;;;;;;;;;;;;;;5009:1456:13;5097:7;;6021:66;6008:79;;6004:161;;;-1:-1:-1;6119:1:13;;-1:-1:-1;6123:30:13;6103:51;;6004:161;6276:24;;;6259:14;6276:24;;;;;;;;;33326:25:26;;;33399:4;33387:17;;33367:18;;;33360:45;;;;33421:18;;;33414:34;;;33464:18;;;33457:34;;;6276:24:13;;33298:19:26;;6276:24:13;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6276:24:13;;;;;;-1:-1:-1;;6314:20:13;;;6310:101;;6366:1;6370:29;6350:50;;;;;;;6310:101;6429:6;-1:-1:-1;6437:20:13;;-1:-1:-1;5009:1456:13;;;;;;;;:::o;5165:446:8:-;5330:12;5387:5;5362:21;:30;;5354:81;;;;;;;33704:2:26;5354:81:8;;;33686:21:26;33743:2;33723:18;;;33716:30;33782:34;33762:18;;;33755:62;33853:8;33833:18;;;33826:36;33879:19;;5354:81:8;33502:402:26;5354:81:8;5446:12;5460:23;5487:6;:11;;5506:5;5513:4;5487:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5445:73;;;;5535:69;5562:6;5570:7;5579:10;5591:12;5535:26;:69::i;:::-;5528:76;5165:446;-1:-1:-1;;;;;;;5165:446:8:o;7671:628::-;7851:12;7879:7;7875:418;;;7906:10;:17;7927:1;7906:22;7902:286;;1702:19;;;;8113:60;;;;;;;34417:2:26;8113:60:8;;;34399:21:26;34456:2;34436:18;;;34429:30;34495:31;34475:18;;;34468:59;34544:18;;8113:60:8;34215:353:26;8113:60:8;-1:-1:-1;8208:10:8;8201:17;;7875:418;8249:33;8257:10;8269:12;8980:17;;:21;8976:379;;9208:10;9202:17;9264:15;9251:10;9247:2;9243:19;9236:44;8976:379;9331:12;9324:20;;;;;;;;;;;:::i;14:162:26:-;108:42;101:5;97:54;90:5;87:65;77:93;;166:1;163;156:12;181:263;248:6;301:2;289:9;280:7;276:23;272:32;269:52;;;317:1;314;307:12;269:52;356:9;343:23;375:39;408:5;375:39;:::i;:::-;433:5;181:263;-1:-1:-1;;;181:263:26:o;449:524::-;526:6;534;542;595:2;583:9;574:7;570:23;566:32;563:52;;;611:1;608;601:12;563:52;650:9;637:23;669:39;702:5;669:39;:::i;:::-;727:5;-1:-1:-1;784:2:26;769:18;;756:32;797:41;756:32;797:41;:::i;:::-;449:524;;857:7;;-1:-1:-1;;;937:2:26;922:18;;;;909:32;;449:524::o;1661:347::-;1712:8;1722:6;1776:3;1769:4;1761:6;1757:17;1753:27;1743:55;;1794:1;1791;1784:12;1743:55;-1:-1:-1;1817:20:26;;1860:18;1849:30;;1846:50;;;1892:1;1889;1882:12;1846:50;1929:4;1921:6;1917:17;1905:29;;1981:3;1974:4;1965:6;1957;1953:19;1949:30;1946:39;1943:59;;;1998:1;1995;1988:12;2013:701;2130:6;2138;2146;2199:2;2187:9;2178:7;2174:23;2170:32;2167:52;;;2215:1;2212;2205:12;2167:52;2255:9;2242:23;2288:18;2280:6;2277:30;2274:50;;;2320:1;2317;2310:12;2274:50;2343:22;;2399:3;2381:16;;;2377:26;2374:46;;;2416:1;2413;2406:12;2374:46;2439:2;-1:-1:-1;2494:2:26;2479:18;;2466:32;2523:18;2510:32;;2507:52;;;2555:1;2552;2545:12;2507:52;2594:60;2646:7;2635:8;2624:9;2620:24;2594:60;:::i;:::-;2013:701;;2673:8;;-1:-1:-1;2568:86:26;;-1:-1:-1;;;;2013:701:26:o;2719:226::-;2778:6;2831:2;2819:9;2810:7;2806:23;2802:32;2799:52;;;2847:1;2844;2837:12;2799:52;-1:-1:-1;2892:23:26;;2719:226;-1:-1:-1;2719:226:26:o;2950:391::-;3037:8;3047:6;3101:3;3094:4;3086:6;3082:17;3078:27;3068:55;;3119:1;3116;3109:12;3068:55;-1:-1:-1;3142:20:26;;3185:18;3174:30;;3171:50;;;3217:1;3214;3207:12;3171:50;3254:4;3246:6;3242:17;3230:29;;3314:3;3307:4;3297:6;3294:1;3290:14;3282:6;3278:27;3274:38;3271:47;3268:67;;;3331:1;3328;3321:12;3346:639;3476:6;3484;3492;3545:2;3533:9;3524:7;3520:23;3516:32;3513:52;;;3561:1;3558;3551:12;3513:52;3601:9;3588:23;3634:18;3626:6;3623:30;3620:50;;;3666:1;3663;3656:12;3620:50;3705:94;3791:7;3782:6;3771:9;3767:22;3705:94;:::i;:::-;3818:8;;-1:-1:-1;3679:120:26;-1:-1:-1;;3903:2:26;3888:18;;3875:32;3916:39;3875:32;3916:39;:::i;:::-;3974:5;3964:15;;;3346:639;;;;;:::o;4172:118::-;4258:5;4251:13;4244:21;4237:5;4234:32;4224:60;;4280:1;4277;4270:12;4295:539;4369:6;4377;4385;4438:2;4426:9;4417:7;4413:23;4409:32;4406:52;;;4454:1;4451;4444:12;4406:52;4493:9;4480:23;4512:39;4545:5;4512:39;:::i;:::-;4570:5;-1:-1:-1;4627:2:26;4612:18;;4599:32;4640:41;4599:32;4640:41;:::i;:::-;4700:7;-1:-1:-1;4759:2:26;4744:18;;4731:32;4772:30;4731:32;4772:30;:::i;4839:404::-;4907:6;4915;4968:2;4956:9;4947:7;4943:23;4939:32;4936:52;;;4984:1;4981;4974:12;4936:52;5023:9;5010:23;5042:39;5075:5;5042:39;:::i;:::-;5100:5;-1:-1:-1;5157:2:26;5142:18;;5129:32;5170:41;5129:32;5170:41;:::i;:::-;5230:7;5220:17;;;4839:404;;;;;:::o;5428:172::-;5504:5;5549:3;5540:6;5535:3;5531:16;5527:26;5524:46;;;5566:1;5563;5556:12;5524:46;-1:-1:-1;5588:6:26;5428:172;-1:-1:-1;5428:172:26:o;5605:691::-;5727:6;5735;5743;5796:2;5784:9;5775:7;5771:23;5767:32;5764:52;;;5812:1;5809;5802:12;5764:52;5852:9;5839:23;5885:18;5877:6;5874:30;5871:50;;;5917:1;5914;5907:12;5871:50;5940:83;6015:7;6006:6;5995:9;5991:22;5940:83;:::i;:::-;5930:93;;;6076:2;6065:9;6061:18;6048:32;6105:18;6095:8;6092:32;6089:52;;;6137:1;6134;6127:12;6301:793;6394:6;6402;6410;6418;6426;6479:3;6467:9;6458:7;6454:23;6450:33;6447:53;;;6496:1;6493;6486:12;6447:53;6535:9;6522:23;6554:39;6587:5;6554:39;:::i;:::-;6612:5;-1:-1:-1;6669:2:26;6654:18;;6641:32;6682:41;6641:32;6682:41;:::i;:::-;6742:7;-1:-1:-1;6822:2:26;6807:18;;6794:32;;-1:-1:-1;6904:2:26;6889:18;;6876:32;6917:41;6876:32;6917:41;:::i;:::-;6301:793;;;;-1:-1:-1;6301:793:26;;7057:3;7042:19;7029:33;;6301:793;-1:-1:-1;;6301:793:26:o;7742:348::-;7784:3;7822:5;7816:12;7849:6;7844:3;7837:19;7905:6;7898:4;7891:5;7887:16;7880:4;7875:3;7871:14;7865:47;7957:1;7950:4;7941:6;7936:3;7932:16;7928:27;7921:38;8079:4;8009:66;8004:2;7996:6;7992:15;7988:88;7983:3;7979:98;7975:109;7968:116;;;7742:348;;;;:::o;8095:1314::-;8492:66;8484:6;8480:79;8469:9;8462:98;8596:3;8591:2;8580:9;8576:18;8569:31;8443:4;8623:46;8664:3;8653:9;8649:19;8641:6;8623:46;:::i;:::-;8717:9;8709:6;8705:22;8700:2;8689:9;8685:18;8678:50;8751:33;8777:6;8769;8751:33;:::i;:::-;8815:2;8800:18;;8793:34;;;8876:42;8864:55;;8858:3;8843:19;;8836:84;8951:3;8936:19;;8929:35;;;9001:22;;;8995:3;8980:19;;8973:51;9073:13;;9095:22;;;9145:2;9171:15;;;;-1:-1:-1;9133:15:26;;;;-1:-1:-1;9214:169:26;9228:6;9225:1;9222:13;9214:169;;;9289:13;;9277:26;;9332:2;9358:15;;;;9323:12;;;;9250:1;9243:9;9214:169;;;-1:-1:-1;9400:3:26;;8095:1314;-1:-1:-1;;;;;;;;;;;8095:1314:26:o;9667:647::-;9790:6;9798;9851:2;9839:9;9830:7;9826:23;9822:32;9819:52;;;9867:1;9864;9857:12;9819:52;9907:9;9894:23;9940:18;9932:6;9929:30;9926:50;;;9972:1;9969;9962:12;9926:50;9995:22;;10048:4;10040:13;;10036:27;-1:-1:-1;10026:55:26;;10077:1;10074;10067:12;10026:55;10117:2;10104:16;10143:18;10135:6;10132:30;10129:50;;;10175:1;10172;10165:12;10129:50;10228:7;10223:2;10213:6;10210:1;10206:14;10202:2;10198:23;10194:32;10191:45;10188:65;;;10249:1;10246;10239:12;10188:65;10280:2;10272:11;;;;;10302:6;;-1:-1:-1;9667:647:26;-1:-1:-1;;;9667:647:26:o;11009:390::-;11074:6;11082;11135:2;11123:9;11114:7;11110:23;11106:32;11103:52;;;11151:1;11148;11141:12;11103:52;11190:9;11177:23;11209:39;11242:5;11209:39;:::i;:::-;11267:5;-1:-1:-1;11324:2:26;11309:18;;11296:32;11337:30;11296:32;11337:30;:::i;11728:825::-;11817:6;11825;11833;11841;11849;11902:3;11890:9;11881:7;11877:23;11873:33;11870:53;;;11919:1;11916;11909:12;11870:53;11958:9;11945:23;11977:39;12010:5;11977:39;:::i;:::-;12035:5;-1:-1:-1;12092:2:26;12077:18;;12064:32;12105:41;12064:32;12105:41;:::i;:::-;12165:7;-1:-1:-1;12224:2:26;12209:18;;12196:32;12237:41;12196:32;12237:41;:::i;:::-;12297:7;-1:-1:-1;12356:2:26;12341:18;;12328:32;12369:30;12328:32;12369:30;:::i;:::-;12418:7;-1:-1:-1;12477:3:26;12462:19;;12449:33;12491:30;12449:33;12491:30;:::i;:::-;12540:7;12530:17;;;11728:825;;;;;;;;:::o;12558:375::-;12626:6;12634;12687:2;12675:9;12666:7;12662:23;12658:32;12655:52;;;12703:1;12700;12693:12;12655:52;12742:9;12729:23;12761:39;12794:5;12761:39;:::i;:::-;12819:5;12897:2;12882:18;;;;12869:32;;-1:-1:-1;;;12558:375:26:o;13459:184::-;13511:77;13508:1;13501:88;13608:4;13605:1;13598:15;13632:4;13629:1;13622:15;13648:274;13688:1;13714;13704:189;;13749:77;13746:1;13739:88;13850:4;13847:1;13840:15;13878:4;13875:1;13868:15;13704:189;-1:-1:-1;13907:9:26;;13648:274::o;13927:638::-;14054:4;14060:6;14120:11;14107:25;14210:66;14199:8;14183:14;14179:29;14175:102;14155:18;14151:127;14141:155;;14292:1;14289;14282:12;14141:155;14319:33;;14371:20;;;-1:-1:-1;14414:18:26;14403:30;;14400:50;;;14446:1;14443;14436:12;14400:50;14479:4;14467:17;;-1:-1:-1;14530:1:26;14526:14;;;14510;14506:35;14496:46;;14493:66;;;14555:1;14552;14545:12;14759:829;14850:6;14910:2;14898:9;14889:7;14885:23;14881:32;14925:2;14922:22;;;14940:1;14937;14930:12;14922:22;-1:-1:-1;14989:2:26;14983:9;;;15019:15;;15064:18;15049:34;;15085:22;;;15046:62;15043:242;;;15141:77;15138:1;15131:88;15242:4;15239:1;15232:15;15270:4;15267:1;15260:15;15043:242;15301:2;15294:22;15338:23;;15370:39;15338:23;15370:39;:::i;:::-;15418:21;;15512:2;15497:18;;;15484:32;15532:15;;;15525:32;;;;-1:-1:-1;15425:6:26;14759:829;-1:-1:-1;14759:829:26:o;16237:184::-;16289:77;16286:1;16279:88;16386:4;16383:1;16376:15;16410:4;16407:1;16400:15;16426:128;16493:9;;;16514:11;;;16511:37;;;16528:18;;:::i;16559:191::-;16594:3;16625:66;16618:5;16615:77;16612:103;;16695:18;;:::i;:::-;-1:-1:-1;16735:1:26;16731:13;;16559:191::o;16755:687::-;16878:6;16873:3;16866:19;16910:4;16905:3;16901:14;16894:21;;16848:3;16938:5;16961:1;16971:446;16985:6;16982:1;16979:13;16971:446;;;17062:6;17049:20;17082:41;17115:7;17082:41;:::i;:::-;17161:42;17148:56;17136:69;;17283:4;17271:17;;;17258:31;17309:14;;;17302:31;17362:4;17353:14;;;;17390:17;;;;17007:1;17000:9;16971:446;;;-1:-1:-1;17433:3:26;;16755:687;-1:-1:-1;;;;16755:687:26:o;17447:941::-;17926:42;17918:6;17914:55;17903:9;17896:74;18018:42;18010:6;18006:55;18001:2;17990:9;17986:18;17979:83;18098:3;18093:2;18082:9;18078:18;18071:31;17877:4;18125:97;18217:3;18206:9;18202:19;18194:6;18186;18125:97;:::i;:::-;18270:9;18262:6;18258:22;18253:2;18242:9;18238:18;18231:50;18298:84;18375:6;18367;18359;18298:84;:::i;:::-;18290:92;17447:941;-1:-1:-1;;;;;;;;;17447:941:26:o;18705:499::-;19002:42;18994:6;18990:55;18979:9;18972:74;19082:2;19077;19066:9;19062:18;19055:30;18953:4;19102:96;19194:2;19183:9;19179:18;19171:6;19163;19102:96;:::i;:::-;19094:104;18705:499;-1:-1:-1;;;;;18705:499:26:o;19209:216::-;19273:9;;;19301:11;;;19248:3;19331:9;;19359:10;;19355:19;;19384:10;;19376:19;;19352:44;19349:70;;;19399:18;;:::i;:::-;19349:70;;19209:216;;;;:::o;19430:200::-;19496:9;;;19469:4;19524:9;;19552:10;;19564:12;;;19548:29;19587:12;;;19579:21;;19545:56;19542:82;;;19604:18;;:::i;:::-;19542:82;19430:200;;;;:::o;20547:393::-;20650:4;20708:11;20695:25;20798:66;20787:8;20771:14;20767:29;20763:102;20743:18;20739:127;20729:155;;20880:1;20877;20870:12;20729:155;20901:33;;;;;20547:393;-1:-1:-1;;20547:393:26:o;20945:643::-;21074:4;21080:6;21140:11;21127:25;21230:66;21219:8;21203:14;21199:29;21195:102;21175:18;21171:127;21161:155;;21312:1;21309;21302:12;21161:155;21339:33;;21391:20;;;-1:-1:-1;21434:18:26;21423:30;;21420:50;;;21466:1;21463;21456:12;21420:50;21499:4;21487:17;;-1:-1:-1;21558:4:26;21546:17;;21530:14;21526:38;21516:49;;21513:69;;;21578:1;21575;21568:12;21593:184;21663:6;21716:2;21704:9;21695:7;21691:23;21687:32;21684:52;;;21732:1;21729;21722:12;21684:52;-1:-1:-1;21755:16:26;;21593:184;-1:-1:-1;21593:184:26:o;21782:168::-;21855:9;;;21886;;21903:15;;;21897:22;;21883:37;21873:71;;21924:18;;:::i;21955:125::-;22020:9;;;22041:10;;;22038:36;;;22054:18;;:::i;22085:2754::-;22357:2;22369:21;;;22342:18;;22425:22;;;-1:-1:-1;22478:2:26;22527:1;22523:14;;;22508:30;;22504:39;;;22463:18;;22566:6;-1:-1:-1;22643:66:26;22618:14;22614:27;;;22610:100;22719:2091;22733:6;22730:1;22727:13;22719:2091;;;22822:66;22810:9;22802:6;22798:22;22794:95;22789:3;22782:108;22942:6;22929:20;22996:2;22976:18;22972:27;22962:55;;23013:1;23010;23003:12;22962:55;23043:31;;23113:2;23101:15;;23144:19;;23176:41;23144:19;23176:41;:::i;:::-;23258:42;23245:56;23230:72;;23367:2;23356:14;;23343:28;23428:14;23424:26;;;23452:66;23420:99;23394:126;;23384:154;;23534:1;23531;23524:12;23384:154;23687:2;23566:32;;23674:16;;;;23625:21;23717:18;23706:30;;23703:50;;;23749:1;23746;23739:12;23703:50;23814:4;23806:6;23802:17;23786:14;23782:38;23773:7;23769:52;23766:72;;;23834:1;23831;23824:12;23766:72;23875:2;23870;23858:15;;23851:27;23923:22;;;;24044:1;;23979:4;23967:17;;24058:644;24074:6;24069:3;24066:15;24058:644;;;24163:8;24150:22;24189:41;24222:7;24189:41;:::i;:::-;24274:42;24261:56;24247:71;;24406:2;24392:17;;;24379:31;24434:14;;;24427:31;24546:2;24532:17;;;24519:31;24574:14;;;24567:31;24635:4;24669:19;;;;24100:1;24091:11;;;;;24624:16;24058:644;;;24725:5;-1:-1:-1;;;24765:2:26;24788:12;;;;24753:15;;;;;-1:-1:-1;22755:1:26;22748:9;;;;;22719:2091;;;-1:-1:-1;24827:6:26;;22085:2754;-1:-1:-1;;;;;;;22085:2754:26:o;25780:281::-;25872:6;25925:2;25913:9;25904:7;25900:23;25896:32;25893:52;;;25941:1;25938;25931:12;25893:52;25973:9;25967:16;25992:39;26025:5;25992:39;:::i;26691:377::-;26946:2;26935:9;26928:21;26909:4;26966:96;27058:2;27047:9;27043:18;27035:6;27027;26966:96;:::i;28167:292::-;28239:9;;;28206:7;28264:9;;28281:66;28275:73;;28260:89;28257:115;;;28352:18;;:::i;:::-;28425:1;28416:7;28411:16;28408:1;28405:23;28401:1;28394:9;28391:38;28381:72;;28433:18;;:::i;29765:437::-;29844:1;29840:12;;;;29887;;;29908:61;;29962:4;29954:6;29950:17;29940:27;;29908:61;30015:2;30007:6;30004:14;29984:18;29981:38;29978:218;;30052:77;30049:1;30042:88;30153:4;30150:1;30143:15;30181:4;30178:1;30171:15;30616:245;30683:6;30736:2;30724:9;30715:7;30711:23;30707:32;30704:52;;;30752:1;30749;30742:12;30704:52;30784:9;30778:16;30803:28;30825:5;30803:28;:::i;31277:184::-;31329:77;31326:1;31319:88;31426:4;31423:1;31416:15;31450:4;31447:1;31440:15;33909:301;34038:3;34076:6;34070:13;34122:6;34115:4;34107:6;34103:17;34098:3;34092:37;34184:1;34148:16;;34173:13;;;-1:-1:-1;34148:16:26;33909:301;-1:-1:-1;33909:301:26:o;34573:220::-;34722:2;34711:9;34704:21;34685:4;34742:45;34783:2;34772:9;34768:18;34760:6;34742:45;:::i","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa2646970667358221220a0ba8db9f3d9a667e49717c5614618d481311d4c3e69e51e9b53166a80821e6764736f6c634300081c0033","offset":20690}},"immutableReferences":{"2620":[{"start":16090,"length":32}],"2622":[{"start":16048,"length":32}],"2624":[{"start":16006,"length":32}],"2626":[{"start":16171,"length":32}],"2628":[{"start":16211,"length":32}],"2631":[{"start":6805,"length":32}],"2634":[{"start":6847,"length":32}]},"transformations":[{"id":"2620","type":"replace","offset":16090,"reason":"immutable"},{"id":"2622","type":"replace","offset":16048,"reason":"immutable"},{"id":"2624","type":"replace","offset":16006,"reason":"immutable"},{"id":"2626","type":"replace","offset":16171,"reason":"immutable"},{"id":"2628","type":"replace","offset":16211,"reason":"immutable"},{"id":"2631","type":"replace","offset":6805,"reason":"immutable"},{"id":"2634","type":"replace","offset":6847,"reason":"immutable"}],"transformationValues":{"immutables":{"2620":"0xe0be16eee9239282c6aa211218bd6c70acb346b073f8c9c534be1e19e4ee97e7","2622":"0x0000000000000000000000000000000000000000000000000000000000000001","2624":"0x000000000000000000000000e3d41d19564922c9952f692c5dd0563030f5f2ef","2626":"0x7d485e7f5909c9fced2f5688fd495e8d13121768f2de07ec12763d84bd75b422","2628":"0xc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6","2631":"0x4e617469766520437265646974205661756c7400000000000000000000000013","2634":"0x3100000000000000000000000000000000000000000000000000000000000001"}}},"deployment":{"transactionHash":"0xf3e6aaf76e6dd3f537762c9c7787336bd93a1cc719405ea135f2cc714dfc39f2","blockNumber":"22173196","transactionIndex":"113","deployer":"0x974c46127593e0a30F8AEBa15001F7Ef5Cf2E2F7"},"sources":{"src/CreditVault.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.28;\n\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeCast} from \"@openzeppelin/contracts/utils/math/SafeCast.sol\";\nimport {Ownable2Step} from \"@openzeppelin/contracts/access/Ownable2Step.sol\";\nimport {EIP712, ECDSA} from \"@openzeppelin/contracts/utils/cryptography/EIP712.sol\";\n\nimport \"./libraries/ConstantsLib.sol\";\nimport {ErrorsLib} from \"./libraries/ErrorsLib.sol\";\nimport {SafeERC20} from \"./libraries/SafeERC20.sol\";\nimport {ICreditVault} from \"./interfaces/ICreditVault.sol\";\nimport {ReentrancyGuardTransient} from \"./libraries/ReentrancyGuardTransient.sol\";\n\nimport {NativeLPToken} from \"./NativeLPToken.sol\";\n\n/// @title CreditVault - Manages trader positions and collateral\n/// @notice Handles asset custody, position settlement, and LP token integration\ncontract CreditVault is ICreditVault, EIP712, Ownable2Step, ReentrancyGuardTransient {\n    using SafeERC20 for IERC20;\n    using SafeCast for uint256;\n    using SafeCast for int256;\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                     STATE VARIABLES\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Address that can withdraw protocol fees\n    address public feeWithdrawer;\n\n    /// @notice signer for permissioned functions: liquidate, settle, removeCollateral, etc.\n    address public signer;\n\n    /// @notice epoch updater address\n    address public epochUpdater;\n\n    /// @notice A list of all markets\n    NativeLPToken[] public allLPTokens;\n\n    /// @notice Authorized Native Pool, enable market makers to lend funds from this vault for quoting\n    /// @dev The credit pool lends tokens from the credit vault and must update the trader's position via a callback.\n    mapping(address => bool) public creditPools;\n\n    /// @notice Mapping of accumulated reserveFees per token (token => fee amount)\n    mapping(address => uint256) public reserveFees;\n\n    /// @notice (trader => timestamp)\n    mapping(address => uint256) public lastEpochUpdateTimestamp;\n\n    /// @notice map from underlying address to LP token\n    mapping(address => NativeLPToken) public lpTokens;\n\n    // @notice Mapping to track used nonces for preventing replay attacks\n    mapping(uint256 => bool) public nonces;\n\n    /// @notice  trader_address => underlying token => amount (positive for long, negative for short)\n    mapping(address => mapping(address => int256)) public positions;\n\n    /// @notice traders' collateral trader => token => amount\n    mapping(address => mapping(address => uint256)) public collateral;\n\n    /// @dev If a LP token is supported\n    mapping(address => bool) public supportedMarkets;\n\n    /// @notice whitelist for traders (Market Makers)\n    mapping(address => bool) public traders;\n\n    /// @notice Maps trader address to settler address which can settle positions on behalf of trader\n    mapping(address => address) public traderToSettler;\n\n    /// @notice maps trader to their recipient address\n    /// @dev Address receives tokens from settlements and collateral operations\n    mapping(address => address) public traderToRecipient;\n\n    /// @notice whitelist traders that can bypass the credit check\n    mapping(address => bool) public whitelistTraders;\n\n    /// @notice whitelist for liquidators\n    mapping(address => bool) public liquidators;\n\n    /// @notice maps liquidator to their recipient address for liquidations\n    mapping(address => address) public liquidatorToRecipient;\n\n    /// @notice Tracks rebalance caps for each trader/liquidator and token\n    mapping(address => mapping(address => RebalanceCap)) public rebalanceCaps;\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                     CONSTRUCTOR\n    //////////////////////////////////////////////////////////////////////////*/\n\n    constructor() EIP712(\"Native Credit Vault\", \"1\") {}\n\n    /// @notice Callback function called by NativeRFQPool after swap execution to update trader positions\n    /// @dev Only callable by whitelisted NativePools, it's called after the swap is executed\n    /// @param trader The address of the market maker\n    /// @param tokenIn The address of the token that is selling\n    /// @param amountIn The amount of the token that is selling\n    /// @param tokenOut The address of the token that is buying\n    /// @param amountOut The amount of the token that is buying\n    function swapCallback(\n        address trader,\n        address tokenIn,\n        int256 amountIn,\n        address tokenOut,\n        int256 amountOut\n    ) external {\n        require(creditPools[msg.sender], ErrorsLib.OnlyCreditPool());\n        require(\n            address(lpTokens[tokenIn]) != address(0) && address(lpTokens[tokenOut]) != address(0),\n            ErrorsLib.InvalidUnderlying()\n        );\n\n        positions[trader][tokenIn] += amountIn;\n        positions[trader][tokenOut] -= amountOut;\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                    PERMISSIONED FUNCTIONS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Updates funding fees for traders at the end of each epoch\n    /// @dev Only callable by the epoch updater\n    /// @param accruedFees Array of funding fee updates for different traders\n    function epochUpdate(AccruedFundingFee[] calldata accruedFees) external {\n        require(msg.sender == epochUpdater, ErrorsLib.OnlyEpochUpdater());\n\n        for (uint256 i; i < accruedFees.length; ++i) {\n            address trader = accruedFees[i].trader;\n\n            if (block.timestamp - lastEpochUpdateTimestamp[trader] < EPOCH_UPDATE_INTERVAL) {\n                revert ErrorsLib.EpochUpdateInCoolDown();\n            }\n\n            for (uint256 j; j < accruedFees[i].feeUpdates.length; ++j) {\n                address token = accruedFees[i].feeUpdates[j].token;\n                uint256 fundingFee = accruedFees[i].feeUpdates[j].fundingFee;\n                uint256 reserveFee = accruedFees[i].feeUpdates[j].reserveFee;\n\n                // Check if the underlying token is supported\n                require(address(lpTokens[token]) != address(0), ErrorsLib.InvalidUnderlying());\n\n                if (fundingFee > 0) {\n                    uint256 beforeExchangeRate = lpTokens[token].exchangeRate();\n\n                    // Distribute funding fee to all LPToken holders\n                    lpTokens[token].distributeYield(fundingFee);\n\n                    // Verify the exchange rate increase is not more than 1%\n                    if (((lpTokens[token].exchangeRate() - beforeExchangeRate) * 10_000) > beforeExchangeRate * 100) {\n                        revert ErrorsLib.ExchangeRateIncreaseTooMuch();\n                    }\n                }\n\n                if (reserveFee > 0) {\n                    reserveFees[token] += reserveFee;\n                }\n                // Subtract reserve fee and funding fee from the trader's position\n                positions[trader][token] -= (reserveFee + fundingFee).toInt256();\n            }\n\n            lastEpochUpdateTimestamp[trader] = block.timestamp;\n        }\n\n        emit EpochUpdated(accruedFees);\n    }\n\n    /// @notice Called by traders to settle the positions\n    /// @dev This transaction requires off-chain calculation to verify if the trader's credit meets the criteria.\n    /// @param request The struct of the settlement request containing info of long and short positions to settle\n    /// @param signature The signature of the settlement request\n    function settle(\n        SettlementRequest calldata request,\n        bytes calldata signature\n    ) external onlyTraderOrSettler(request.trader) nonReentrant {\n        _verifySettleSignature(request, signature);\n\n        _updatePositions(request.positionUpdates, request.trader);\n\n        address recipient = traderToRecipient[request.trader];\n\n        // execute token transfers\n        for (uint256 i; i < request.positionUpdates.length; ++i) {\n            address token = request.positionUpdates[i].token;\n            int256 amount = request.positionUpdates[i].amount;\n\n            if (amount > 0) {\n                IERC20(token).safeTransferFrom(msg.sender, address(this), amount.toUint256());\n            } else {\n                /// Enforce rebalance cap before funds leave vault to ensure limit compliance\n                _updateRebalanceCap(request.trader, token, (-amount).toUint256());\n\n                IERC20(token).safeTransfer(recipient, (-amount).toUint256());\n            }\n        }\n\n        emit Settled(request.trader, request.positionUpdates);\n    }\n\n    /// @notice Called by traders to remove collateral\n    /// @dev This transaction requires off-chain calculation to verify if the trader's credit meets the criteria.\n    /// @param request The struct of the remove collateral request containing info of collateral to remove\n    /// @param signature The signature of the remove collateral request\n    function removeCollateral(\n        RemoveCollateralRequest calldata request,\n        bytes calldata signature\n    ) external onlyTraderOrSettler(request.trader) nonReentrant {\n        _verifyRemoveCollateralSignature(request, signature);\n\n        for (uint256 i; i < request.tokens.length; ++i) {\n            collateral[request.trader][request.tokens[i].token] -= request.tokens[i].amount;\n        }\n\n        address recipient = traderToRecipient[request.trader];\n        for (uint256 i; i < request.tokens.length; ++i) {\n            address token = request.tokens[i].token;\n            uint256 amount = request.tokens[i].amount;\n\n            /// Enforce rebalance cap before funds leave vault\n            _updateRebalanceCap(request.trader, token, amount);\n\n            IERC20(token).safeTransfer(recipient, amount);\n        }\n\n        emit CollateralRemoved(request.trader, request.tokens);\n    }\n\n    /// @notice Repays trader's short positions\n    /// @param positionUpdates Array of {token, amount} structs representing positions to repay\n    /// @param trader Address of the trader whose positions are being repaid\n    function repay(\n        TokenAmountInt[] calldata positionUpdates,\n        address trader\n    ) external onlyTraderOrSettler(trader) nonReentrant {\n        _updatePositions(positionUpdates, trader);\n\n        // the safeCast to Uint256 will revert if the repayments amount is negative\n        for (uint256 i; i < positionUpdates.length; ++i) {\n            IERC20(positionUpdates[i].token).safeTransferFrom(\n                msg.sender, address(this), positionUpdates[i].amount.toUint256()\n            );\n        }\n\n        emit Repaid(trader, positionUpdates);\n    }\n\n    /// @notice Called by liquidators to liquidate the underwater positions\n    /// @dev This transaction requires off-chain calculation to verify if the trader's credit meets the criteria.\n    /// @param request The struct of the liquidation request containing info of long and short positions to liquidate\n    /// @param signature The signature of the liquidation request\n    function liquidate(\n        LiquidationRequest calldata request,\n        bytes calldata signature\n    ) external onlyLiquidator nonReentrant {\n        _verifyLiquidationSignature(request, signature);\n\n        _updatePositions(request.positionUpdates, request.trader);\n\n        address recipient = liquidatorToRecipient[msg.sender];\n\n        for (uint256 i; i < request.claimCollaterals.length; ++i) {\n            collateral[request.trader][request.claimCollaterals[i].token] -= request.claimCollaterals[i].amount;\n        }\n\n        for (uint256 i; i < request.positionUpdates.length; ++i) {\n            address token = request.positionUpdates[i].token;\n            int256 amount = request.positionUpdates[i].amount;\n\n            if (amount > 0) {\n                IERC20(token).safeTransferFrom(msg.sender, address(this), amount.toUint256());\n            } else {\n                /// Enforce rebalance cap before underlying token leave vault\n                _updateRebalanceCap(msg.sender, token, (-amount).toUint256());\n\n                IERC20(token).safeTransfer(recipient, (-amount).toUint256());\n            }\n        }\n\n        for (uint256 i; i < request.claimCollaterals.length; ++i) {\n            address token = request.claimCollaterals[i].token;\n\n            /// Enforce rebalance cap before collateral token leave vault\n            _updateRebalanceCap(msg.sender, token, request.claimCollaterals[i].amount);\n\n            IERC20(token).safeTransfer(recipient, request.claimCollaterals[i].amount);\n        }\n\n        emit Liquidated(request.trader, msg.sender, request.positionUpdates, request.claimCollaterals);\n    }\n\n    /// @notice Transfers underlying assets from vault to recipient\n    /// @dev Only callable by supported LP tokens\n    /// @param to Recipient of the underlying assets\n    /// @param amount Amount of underlying assets to transfer\n    function pay(address to, uint256 amount) external {\n        require(supportedMarkets[msg.sender], ErrorsLib.OnlyLpToken());\n        require(amount <= NativeLPToken(msg.sender).totalUnderlying(), ErrorsLib.InsufficientUnderlying());\n\n        // Each LP token can only transfer its own underlying token\n        IERC20(NativeLPToken(msg.sender).underlying()).safeTransfer(to, amount);\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                    PERMISSIONLESS FUNCTIONS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Adds collateral for a trader's position\n    /// @dev PERMISSIONLESS: Anyone can add collateral for any trader\n    /// @dev Off-chain system will update trader's credit limit off-chain via event emission\n    /// @param tokens Array of {token, amount} structs to be added as collateral\n    /// @param trader Address of the trader receiving the collateral\n    function addCollateral(TokenAmountUint[] calldata tokens, address trader) external nonReentrant {\n        require(traders[trader], ErrorsLib.OnlyTrader());\n\n        for (uint256 i; i < tokens.length; ++i) {\n            address token = tokens[i].token;\n            require(supportedMarkets[token], ErrorsLib.OnlyLpToken());\n\n            uint256 amount = tokens[i].amount;\n            collateral[trader][token] += amount;\n\n            IERC20(token).safeTransferFrom(msg.sender, address(this), amount);\n        }\n\n        emit CollateralAdded(trader, tokens);\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                ADMIN FUNCTIONS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Lists a new market (LP token)\n    /// @dev Only callable by owner\n    /// @param lpToken Address of the LP token to be listed\n    function supportMarket(NativeLPToken lpToken) external onlyOwner {\n        // Check if market is already listed\n        require(!supportedMarkets[address(lpToken)], ErrorsLib.TokenAlreadyListed());\n\n        address underlying = address(lpToken.underlying());\n\n        // Verify market configuration\n        require(\n            address(lpTokens[underlying]) == address(0) && lpToken.creditVault() == address(this),\n            ErrorsLib.InvalidMarket()\n        );\n\n        // Sanity check to make sure its really LPToken\n        require(address(underlying) != address(0), ErrorsLib.InvalidLPToken());\n\n        // Update storage\n        lpTokens[underlying] = lpToken;\n        supportedMarkets[address(lpToken)] = true;\n        allLPTokens.push(lpToken);\n\n        emit MarketListed(address(lpToken));\n    }\n\n    /// @notice Allows fee withdrawer to claim accumulated funding fees\n    /// @dev Only callable by feeWithdrawer\n    /// @param underlying The token address of the fees to withdraw\n    /// @param recipient The address that will receive the fees\n    /// @param amount The amount of fees to withdraw\n    function withdrawReserve(address underlying, address recipient, uint256 amount) external {\n        require(recipient != address(0), ErrorsLib.ZeroAddress());\n        require(msg.sender == feeWithdrawer, ErrorsLib.OnlyFeeWithdrawer());\n        require(amount <= reserveFees[underlying], ErrorsLib.InsufficientFundingFees());\n\n        reserveFees[underlying] -= amount;\n\n        // Withdraw underlying from vault\n        IERC20(underlying).safeTransfer(recipient, amount);\n\n        emit ReserveWithdrawn(underlying, recipient, amount);\n    }\n\n    /// @notice Updates credit pool status\n    /// @param pool The address of credit pool\n    /// @param isActive to whitelist, false to remove from whitelist\n    function setCreditPool(address pool, bool isActive) external onlyOwner {\n        require(pool != address(0), ErrorsLib.ZeroAddress());\n\n        creditPools[pool] = isActive;\n\n        emit CreditPoolUpdated(pool, isActive);\n    }\n\n    /// @notice Approves native pool to spend vault's underlying tokens\n    /// @dev Only callable by owner\n    /// @dev Pool must be whitelisted as native pool\n    /// @param tokens Array of {token, amount} structs to approve\n    /// @param pool Address of native pool to receive approval\n    function setAllowance(TokenAmountUint[] calldata tokens, address pool) external onlyOwner {\n        for (uint256 i; i < tokens.length; ++i) {\n            require(address(lpTokens[tokens[i].token]) != address(0), ErrorsLib.InvalidUnderlying());\n\n            IERC20(tokens[i].token).safeApprove(pool, tokens[i].amount);\n        }\n    }\n\n    /// @notice Set or update the daily rebalance limit for a specific trader or liquidator and token\n    /// @dev A limit of 0 means unlimited rebalancing is allowed\n    /// @param operator The address of the trader or liquidator whose limit is being set\n    /// @param token The token address for which the limit applies\n    /// @param limit The maximum amount of tokens that can be rebalanced per day (0 for unlimited)\n    function setRebalanceCap(address operator, address token, uint256 limit) external onlyOwner {\n        require(token != address(0), ErrorsLib.ZeroAddress());\n        require(traders[operator] || liquidators[operator], ErrorsLib.NotTraderOrLiquidator());\n\n        // used will be reset to 0\n        rebalanceCaps[operator][token] = RebalanceCap({limit: limit, used: 0, lastDay: block.timestamp / 86_400});\n\n        emit RebalanceCapUpdated(operator, token, limit);\n    }\n\n    /// @notice Manages trader permissions and settlement addresses\n    /// @dev Only callable by owner\n    /// @param trader Address to configure trading permissions for\n    /// @param settler Address authorized to settle positions on trader's behalf\n    /// @param recipient Address authorized to receive tokens from settlements and collateral operations\n    /// @param isTrader True to enable trading, false to revoke permissions\n    /// @param isWhitelistTrader True to enable whitelist which can bypass credit check\n    function setTrader(\n        address trader,\n        address settler,\n        address recipient,\n        bool isTrader,\n        bool isWhitelistTrader\n    ) external onlyOwner {\n        require(trader != address(0) && settler != address(0) && recipient != address(0), ErrorsLib.ZeroAddress());\n        require(recipient != trader && recipient != settler, ErrorsLib.TraderRecipientConflict());\n\n        traders[trader] = isTrader;\n        traderToSettler[trader] = settler;\n        traderToRecipient[trader] = recipient;\n\n        whitelistTraders[trader] = isWhitelistTrader;\n\n        emit TraderSet(trader, isTrader, isWhitelistTrader, settler, recipient);\n    }\n\n    /// @notice Set or remove liquidator permissions\n    /// @dev Only callable by owner\n    /// @param liquidator The address to grant/revoke liquidator permissions\n    /// @param recipient Address authorized to receive tokens from liquidations\n    /// @param status True to whitelist, false to remove from whitelist\n    function setLiquidator(address liquidator, address recipient, bool status) external onlyOwner {\n        require(liquidator != address(0) && recipient != address(0), ErrorsLib.ZeroAddress());\n        require(liquidator != recipient, ErrorsLib.LiquidatorRecipientConflict());\n\n        liquidators[liquidator] = status;\n        liquidatorToRecipient[liquidator] = recipient;\n\n        emit LiquidatorSet(liquidator, status);\n    }\n\n    /// @notice Updates the authorized signer for permissioned operations\n    /// @dev Only callable by owner\n    /// @dev Signer verifies signatures for settlements, liquidations, and collateral removals\n    /// @param _signer New signer address (cannot be zero address)\n    function setSigner(address _signer) external onlyOwner {\n        require(_signer != address(0), ErrorsLib.ZeroAddress());\n\n        signer = _signer;\n\n        emit SignerSet(_signer);\n    }\n\n    /// @notice Updates the authorized epoch updater address\n    /// @dev Only callable by owner\n    /// @dev Epoch updater is responsible for funding fee updates and distributions\n    /// @param _epochUpdater New epoch updater address (cannot be zero address)\n    function setEpochUpdater(address _epochUpdater) external onlyOwner {\n        require(_epochUpdater != address(0), ErrorsLib.ZeroAddress());\n\n        epochUpdater = _epochUpdater;\n\n        emit EpochUpdaterSet(_epochUpdater);\n    }\n\n    /// @notice Updates the authorized fee withdrawer address\n    /// @dev Only callable by owner\n    /// @dev Fee withdrawer can claim accumulated funding fees from the vault\n    /// @param _feeWithdrawer New fee withdrawer address (cannot be zero address)\n    function setFeeWithdrawer(address payable _feeWithdrawer) external onlyOwner {\n        require(_feeWithdrawer != address(0), ErrorsLib.ZeroAddress());\n\n        feeWithdrawer = _feeWithdrawer;\n\n        emit FeeWithdrawerSet(_feeWithdrawer);\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                     INTERNAL FUNCTIONS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    function _updateNonce(uint256 nonce) internal {\n        require(!nonces[nonce], ErrorsLib.NonceUsed());\n\n        nonces[nonce] = true;\n    }\n\n    function _updatePositions(ICreditVault.TokenAmountInt[] memory positionUpdates, address trader) internal {\n        uint256 updatesLength = positionUpdates.length;\n        for (uint256 i; i < updatesLength; ++i) {\n            address token = positionUpdates[i].token;\n            int256 amount = positionUpdates[i].amount;\n            int256 newPosition = positions[trader][token] + amount;\n            // Make sure the token is supported underlying token\n            require(address(lpTokens[token]) != address(0), ErrorsLib.InvalidLPToken());\n\n            // Position must decrease without flipping its sign (e.g. long 100 -> long 50, not long 100 -> short 20)\n            if (positions[trader][token] * amount >= 0 || positions[trader][token] * newPosition < 0) {\n                revert ErrorsLib.InvalidPositionUpdateAmount();\n            }\n\n            positions[trader][token] = newPosition;\n        }\n    }\n\n    /// @notice Check and update daily rebalance tracking for a trader's token position\n    /// @param trader The address of the trader attempting to rebalance\n    /// @param token The token address being rebalanced, can be underlying token or collateral token\n    /// @param amount The amount of tokens being rebalanced\n    function _updateRebalanceCap(address trader, address token, uint256 amount) internal {\n        RebalanceCap storage cap = rebalanceCaps[trader][token];\n        uint256 currentDay = block.timestamp / 86_400;\n        uint256 newUsed;\n\n        // Reset daily used amount if it's a new day, otherwise add to existing\n        if (currentDay > cap.lastDay) {\n            newUsed = amount;\n        } else {\n            newUsed = cap.used + amount;\n        }\n\n        // Check if rebalance would exceed daily limit, skip check if limit is 0 (unlimited)\n        require(cap.limit == 0 || newUsed <= cap.limit, ErrorsLib.RebalanceLimitExceeded());\n\n        // Update storage in a single write\n        rebalanceCaps[trader][token] = RebalanceCap({limit: cap.limit, used: newUsed, lastDay: currentDay});\n    }\n\n    function _verifySettleSignature(\n        ICreditVault.SettlementRequest calldata request,\n        bytes calldata signature\n    ) internal {\n        require(request.deadline >= block.timestamp, ErrorsLib.RequestExpired());\n\n        _updateNonce(request.nonce);\n\n        bytes32 msgHash = keccak256(\n            abi.encode(\n                SETTLEMENT_REQUEST_SIGNATURE_HASH,\n                request.nonce,\n                request.deadline,\n                request.trader,\n                keccak256(abi.encode(request.positionUpdates)),\n                traderToRecipient[request.trader]\n            )\n        );\n        bytes32 digest = _hashTypedDataV4(msgHash);\n        address recoveredSigner = ECDSA.recover(digest, signature);\n\n        require(recoveredSigner == signer, ErrorsLib.InvalidSignature());\n    }\n\n    function _verifyRemoveCollateralSignature(\n        ICreditVault.RemoveCollateralRequest calldata request,\n        bytes calldata signature\n    ) internal {\n        require(request.deadline >= block.timestamp, ErrorsLib.RequestExpired());\n\n        _updateNonce(request.nonce);\n\n        bytes32 msgHash = keccak256(\n            abi.encode(\n                REMOVE_COLLATERAL_REQUEST_SIGNATURE_HASH,\n                request.nonce,\n                request.deadline,\n                request.trader,\n                keccak256(abi.encode(request.tokens)),\n                traderToRecipient[request.trader]\n            )\n        );\n        bytes32 digest = _hashTypedDataV4(msgHash);\n        address recoveredSigner = ECDSA.recover(digest, signature);\n\n        require(recoveredSigner == signer, ErrorsLib.InvalidSignature());\n    }\n\n    function _verifyLiquidationSignature(\n        ICreditVault.LiquidationRequest calldata request,\n        bytes calldata signature\n    ) internal {\n        require(request.deadline >= block.timestamp, ErrorsLib.RequestExpired());\n\n        _updateNonce(request.nonce);\n\n        bytes32 msgHash = keccak256(\n            abi.encode(\n                LIQUIDATION_REQUEST_SIGNATURE_HASH,\n                request.nonce,\n                request.deadline,\n                request.trader,\n                keccak256(abi.encode(request.positionUpdates)),\n                keccak256(abi.encode(request.claimCollaterals)),\n                liquidatorToRecipient[msg.sender]\n            )\n        );\n        bytes32 digest = _hashTypedDataV4(msgHash);\n        address recoveredSigner = ECDSA.recover(digest, signature);\n\n        require(recoveredSigner == signer, ErrorsLib.InvalidSignature());\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                     MODIFIERS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Separate the trader and settler accounts, they have different operation frequency and security setup requirements\n    modifier onlyTraderOrSettler(address trader) {\n        require(\n            (traders[trader] && trader == msg.sender) // Make sure a trader can only dispose of their own position\n                || (traders[trader] && msg.sender == traderToSettler[trader]), // Trader's settler can also settle their own position\n            ErrorsLib.OnlyTrader()\n        );\n        _;\n    }\n\n    modifier onlyLiquidator() {\n        require(liquidators[msg.sender], ErrorsLib.OnlyLiquidator());\n        _;\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the amount of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the amount of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves `amount` tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Moves `amount` tokens from `from` to `to` using the\n     * allowance mechanism. `amount` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 amount) external returns (bool);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX 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 *\n * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\n * all math on `uint256` and `int256` and then downcasting.\n */\nlibrary SafeCast {\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     * _Available since v4.7._\n     */\n    function toUint248(uint256 value) internal pure returns (uint248) {\n        require(value <= type(uint248).max, \"SafeCast: value doesn't fit in 248 bits\");\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     * _Available since v4.7._\n     */\n    function toUint240(uint256 value) internal pure returns (uint240) {\n        require(value <= type(uint240).max, \"SafeCast: value doesn't fit in 240 bits\");\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     * _Available since v4.7._\n     */\n    function toUint232(uint256 value) internal pure returns (uint232) {\n        require(value <= type(uint232).max, \"SafeCast: value doesn't fit in 232 bits\");\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     * _Available since v4.2._\n     */\n    function toUint224(uint256 value) internal pure returns (uint224) {\n        require(value <= type(uint224).max, \"SafeCast: value doesn't fit in 224 bits\");\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     * _Available since v4.7._\n     */\n    function toUint216(uint256 value) internal pure returns (uint216) {\n        require(value <= type(uint216).max, \"SafeCast: value doesn't fit in 216 bits\");\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     * _Available since v4.7._\n     */\n    function toUint208(uint256 value) internal pure returns (uint208) {\n        require(value <= type(uint208).max, \"SafeCast: value doesn't fit in 208 bits\");\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     * _Available since v4.7._\n     */\n    function toUint200(uint256 value) internal pure returns (uint200) {\n        require(value <= type(uint200).max, \"SafeCast: value doesn't fit in 200 bits\");\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     * _Available since v4.7._\n     */\n    function toUint192(uint256 value) internal pure returns (uint192) {\n        require(value <= type(uint192).max, \"SafeCast: value doesn't fit in 192 bits\");\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     * _Available since v4.7._\n     */\n    function toUint184(uint256 value) internal pure returns (uint184) {\n        require(value <= type(uint184).max, \"SafeCast: value doesn't fit in 184 bits\");\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     * _Available since v4.7._\n     */\n    function toUint176(uint256 value) internal pure returns (uint176) {\n        require(value <= type(uint176).max, \"SafeCast: value doesn't fit in 176 bits\");\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     * _Available since v4.7._\n     */\n    function toUint168(uint256 value) internal pure returns (uint168) {\n        require(value <= type(uint168).max, \"SafeCast: value doesn't fit in 168 bits\");\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     * _Available since v4.7._\n     */\n    function toUint160(uint256 value) internal pure returns (uint160) {\n        require(value <= type(uint160).max, \"SafeCast: value doesn't fit in 160 bits\");\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     * _Available since v4.7._\n     */\n    function toUint152(uint256 value) internal pure returns (uint152) {\n        require(value <= type(uint152).max, \"SafeCast: value doesn't fit in 152 bits\");\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     * _Available since v4.7._\n     */\n    function toUint144(uint256 value) internal pure returns (uint144) {\n        require(value <= type(uint144).max, \"SafeCast: value doesn't fit in 144 bits\");\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     * _Available since v4.7._\n     */\n    function toUint136(uint256 value) internal pure returns (uint136) {\n        require(value <= type(uint136).max, \"SafeCast: value doesn't fit in 136 bits\");\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     * _Available since v2.5._\n     */\n    function toUint128(uint256 value) internal pure returns (uint128) {\n        require(value <= type(uint128).max, \"SafeCast: value doesn't fit in 128 bits\");\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     * _Available since v4.7._\n     */\n    function toUint120(uint256 value) internal pure returns (uint120) {\n        require(value <= type(uint120).max, \"SafeCast: value doesn't fit in 120 bits\");\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     * _Available since v4.7._\n     */\n    function toUint112(uint256 value) internal pure returns (uint112) {\n        require(value <= type(uint112).max, \"SafeCast: value doesn't fit in 112 bits\");\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     * _Available since v4.7._\n     */\n    function toUint104(uint256 value) internal pure returns (uint104) {\n        require(value <= type(uint104).max, \"SafeCast: value doesn't fit in 104 bits\");\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     * _Available since v4.2._\n     */\n    function toUint96(uint256 value) internal pure returns (uint96) {\n        require(value <= type(uint96).max, \"SafeCast: value doesn't fit in 96 bits\");\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     * _Available since v4.7._\n     */\n    function toUint88(uint256 value) internal pure returns (uint88) {\n        require(value <= type(uint88).max, \"SafeCast: value doesn't fit in 88 bits\");\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     * _Available since v4.7._\n     */\n    function toUint80(uint256 value) internal pure returns (uint80) {\n        require(value <= type(uint80).max, \"SafeCast: value doesn't fit in 80 bits\");\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     * _Available since v4.7._\n     */\n    function toUint72(uint256 value) internal pure returns (uint72) {\n        require(value <= type(uint72).max, \"SafeCast: value doesn't fit in 72 bits\");\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     * _Available since v2.5._\n     */\n    function toUint64(uint256 value) internal pure returns (uint64) {\n        require(value <= type(uint64).max, \"SafeCast: value doesn't fit in 64 bits\");\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     * _Available since v4.7._\n     */\n    function toUint56(uint256 value) internal pure returns (uint56) {\n        require(value <= type(uint56).max, \"SafeCast: value doesn't fit in 56 bits\");\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     * _Available since v4.7._\n     */\n    function toUint48(uint256 value) internal pure returns (uint48) {\n        require(value <= type(uint48).max, \"SafeCast: value doesn't fit in 48 bits\");\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     * _Available since v4.7._\n     */\n    function toUint40(uint256 value) internal pure returns (uint40) {\n        require(value <= type(uint40).max, \"SafeCast: value doesn't fit in 40 bits\");\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     * _Available since v2.5._\n     */\n    function toUint32(uint256 value) internal pure returns (uint32) {\n        require(value <= type(uint32).max, \"SafeCast: value doesn't fit in 32 bits\");\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     * _Available since v4.7._\n     */\n    function toUint24(uint256 value) internal pure returns (uint24) {\n        require(value <= type(uint24).max, \"SafeCast: value doesn't fit in 24 bits\");\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     * _Available since v2.5._\n     */\n    function toUint16(uint256 value) internal pure returns (uint16) {\n        require(value <= type(uint16).max, \"SafeCast: value doesn't fit in 16 bits\");\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     * _Available since v2.5._\n     */\n    function toUint8(uint256 value) internal pure returns (uint8) {\n        require(value <= type(uint8).max, \"SafeCast: value doesn't fit in 8 bits\");\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     * _Available since v3.0._\n     */\n    function toUint256(int256 value) internal pure returns (uint256) {\n        require(value >= 0, \"SafeCast: value must be positive\");\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     * _Available since v4.7._\n     */\n    function toInt248(int256 value) internal pure returns (int248 downcasted) {\n        downcasted = int248(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 248 bits\");\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     * _Available since v4.7._\n     */\n    function toInt240(int256 value) internal pure returns (int240 downcasted) {\n        downcasted = int240(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 240 bits\");\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     * _Available since v4.7._\n     */\n    function toInt232(int256 value) internal pure returns (int232 downcasted) {\n        downcasted = int232(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 232 bits\");\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     * _Available since v4.7._\n     */\n    function toInt224(int256 value) internal pure returns (int224 downcasted) {\n        downcasted = int224(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 224 bits\");\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     * _Available since v4.7._\n     */\n    function toInt216(int256 value) internal pure returns (int216 downcasted) {\n        downcasted = int216(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 216 bits\");\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     * _Available since v4.7._\n     */\n    function toInt208(int256 value) internal pure returns (int208 downcasted) {\n        downcasted = int208(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 208 bits\");\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     * _Available since v4.7._\n     */\n    function toInt200(int256 value) internal pure returns (int200 downcasted) {\n        downcasted = int200(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 200 bits\");\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     * _Available since v4.7._\n     */\n    function toInt192(int256 value) internal pure returns (int192 downcasted) {\n        downcasted = int192(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 192 bits\");\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     * _Available since v4.7._\n     */\n    function toInt184(int256 value) internal pure returns (int184 downcasted) {\n        downcasted = int184(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 184 bits\");\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     * _Available since v4.7._\n     */\n    function toInt176(int256 value) internal pure returns (int176 downcasted) {\n        downcasted = int176(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 176 bits\");\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     * _Available since v4.7._\n     */\n    function toInt168(int256 value) internal pure returns (int168 downcasted) {\n        downcasted = int168(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 168 bits\");\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     * _Available since v4.7._\n     */\n    function toInt160(int256 value) internal pure returns (int160 downcasted) {\n        downcasted = int160(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 160 bits\");\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     * _Available since v4.7._\n     */\n    function toInt152(int256 value) internal pure returns (int152 downcasted) {\n        downcasted = int152(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 152 bits\");\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     * _Available since v4.7._\n     */\n    function toInt144(int256 value) internal pure returns (int144 downcasted) {\n        downcasted = int144(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 144 bits\");\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     * _Available since v4.7._\n     */\n    function toInt136(int256 value) internal pure returns (int136 downcasted) {\n        downcasted = int136(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 136 bits\");\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     * _Available since v3.1._\n     */\n    function toInt128(int256 value) internal pure returns (int128 downcasted) {\n        downcasted = int128(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 128 bits\");\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     * _Available since v4.7._\n     */\n    function toInt120(int256 value) internal pure returns (int120 downcasted) {\n        downcasted = int120(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 120 bits\");\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     * _Available since v4.7._\n     */\n    function toInt112(int256 value) internal pure returns (int112 downcasted) {\n        downcasted = int112(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 112 bits\");\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     * _Available since v4.7._\n     */\n    function toInt104(int256 value) internal pure returns (int104 downcasted) {\n        downcasted = int104(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 104 bits\");\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     * _Available since v4.7._\n     */\n    function toInt96(int256 value) internal pure returns (int96 downcasted) {\n        downcasted = int96(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 96 bits\");\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     * _Available since v4.7._\n     */\n    function toInt88(int256 value) internal pure returns (int88 downcasted) {\n        downcasted = int88(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 88 bits\");\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     * _Available since v4.7._\n     */\n    function toInt80(int256 value) internal pure returns (int80 downcasted) {\n        downcasted = int80(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 80 bits\");\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     * _Available since v4.7._\n     */\n    function toInt72(int256 value) internal pure returns (int72 downcasted) {\n        downcasted = int72(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 72 bits\");\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     * _Available since v3.1._\n     */\n    function toInt64(int256 value) internal pure returns (int64 downcasted) {\n        downcasted = int64(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 64 bits\");\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     * _Available since v4.7._\n     */\n    function toInt56(int256 value) internal pure returns (int56 downcasted) {\n        downcasted = int56(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 56 bits\");\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     * _Available since v4.7._\n     */\n    function toInt48(int256 value) internal pure returns (int48 downcasted) {\n        downcasted = int48(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 48 bits\");\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     * _Available since v4.7._\n     */\n    function toInt40(int256 value) internal pure returns (int40 downcasted) {\n        downcasted = int40(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 40 bits\");\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     * _Available since v3.1._\n     */\n    function toInt32(int256 value) internal pure returns (int32 downcasted) {\n        downcasted = int32(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 32 bits\");\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     * _Available since v4.7._\n     */\n    function toInt24(int256 value) internal pure returns (int24 downcasted) {\n        downcasted = int24(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 24 bits\");\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     * _Available since v3.1._\n     */\n    function toInt16(int256 value) internal pure returns (int16 downcasted) {\n        downcasted = int16(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 16 bits\");\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     * _Available since v3.1._\n     */\n    function toInt8(int256 value) internal pure returns (int8 downcasted) {\n        downcasted = int8(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 8 bits\");\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     * _Available since v3.0._\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        require(value <= uint256(type(int256).max), \"SafeCast: value doesn't fit in an int256\");\n        return int256(value);\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/access/Ownable2Step.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./Ownable.sol\";\n\n/**\n * @dev Contract module which provides access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership} and {acceptOwnership}.\n *\n * This module is used through inheritance. It will make available all functions\n * from parent (Ownable).\n */\nabstract contract Ownable2Step is Ownable {\n    address private _pendingOwner;\n\n    event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Returns the address of the pending owner.\n     */\n    function pendingOwner() public view virtual returns (address) {\n        return _pendingOwner;\n    }\n\n    /**\n     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual override onlyOwner {\n        _pendingOwner = newOwner;\n        emit OwnershipTransferStarted(owner(), newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual override {\n        delete _pendingOwner;\n        super._transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev The new owner accepts the ownership transfer.\n     */\n    function acceptOwnership() public virtual {\n        address sender = _msgSender();\n        require(pendingOwner() == sender, \"Ownable2Step: caller is not the new owner\");\n        _transferOwnership(sender);\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/cryptography/EIP712.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.8;\n\nimport \"./ECDSA.sol\";\nimport \"../ShortStrings.sol\";\nimport \"../../interfaces/IERC5267.sol\";\n\n/**\n * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.\n *\n * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,\n * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding\n * they need in their contracts using a combination of `abi.encode` and `keccak256`.\n *\n * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding\n * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA\n * ({_hashTypedDataV4}).\n *\n * The implementation of the domain separator was designed to be as efficient as possible while still properly updating\n * the chain id to protect against replay attacks on an eventual fork of the chain.\n *\n * NOTE: This contract implements the version of the encoding known as \"v4\", as implemented by the JSON RPC method\n * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].\n *\n * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain\n * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the\n * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.\n *\n * _Available since v3.4._\n *\n * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\n */\nabstract contract EIP712 is IERC5267 {\n    using ShortStrings for *;\n\n    bytes32 private constant _TYPE_HASH =\n        keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to\n    // invalidate the cached domain separator if the chain id changes.\n    bytes32 private immutable _cachedDomainSeparator;\n    uint256 private immutable _cachedChainId;\n    address private immutable _cachedThis;\n\n    bytes32 private immutable _hashedName;\n    bytes32 private immutable _hashedVersion;\n\n    ShortString private immutable _name;\n    ShortString private immutable _version;\n    string private _nameFallback;\n    string private _versionFallback;\n\n    /**\n     * @dev Initializes the domain separator and parameter caches.\n     *\n     * The meaning of `name` and `version` is specified in\n     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:\n     *\n     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.\n     * - `version`: the current major version of the signing domain.\n     *\n     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart\n     * contract upgrade].\n     */\n    constructor(string memory name, string memory version) {\n        _name = name.toShortStringWithFallback(_nameFallback);\n        _version = version.toShortStringWithFallback(_versionFallback);\n        _hashedName = keccak256(bytes(name));\n        _hashedVersion = keccak256(bytes(version));\n\n        _cachedChainId = block.chainid;\n        _cachedDomainSeparator = _buildDomainSeparator();\n        _cachedThis = address(this);\n    }\n\n    /**\n     * @dev Returns the domain separator for the current chain.\n     */\n    function _domainSeparatorV4() internal view returns (bytes32) {\n        if (address(this) == _cachedThis && block.chainid == _cachedChainId) {\n            return _cachedDomainSeparator;\n        } else {\n            return _buildDomainSeparator();\n        }\n    }\n\n    function _buildDomainSeparator() private view returns (bytes32) {\n        return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));\n    }\n\n    /**\n     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this\n     * function returns the hash of the fully encoded EIP712 message for this domain.\n     *\n     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:\n     *\n     * ```solidity\n     * bytes32 digest = _hashTypedDataV4(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     */\n    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {\n        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);\n    }\n\n    /**\n     * @dev See {EIP-5267}.\n     *\n     * _Available since v4.9._\n     */\n    function eip712Domain()\n        public\n        view\n        virtual\n        override\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        return (\n            hex\"0f\", // 01111\n            _name.toStringWithFallback(_nameFallback),\n            _version.toStringWithFallback(_versionFallback),\n            block.chainid,\n            address(this),\n            bytes32(0),\n            new uint256[](0)\n        );\n    }\n}\n"},"src/libraries/ConstantsLib.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.28;\n\n/// @dev Every interval, the system performs an epoch update to calculate and settle funding fees between traders\nuint256 constant EPOCH_UPDATE_INTERVAL = 8 hours;\n\n/// @dev Maximum early withdrawal fee in basis points (10%)\nuint256 constant MAX_EARLY_WITHDRAW_FEE_BIPS = 1000;\n\n/// @dev Maximum widget fee in basis points (20%)\nuint256 constant MAX_WIDGET_FEE_BIPS = 2000;\n\n/// @dev The EIP-712 typeHash for Settle Market Maker Position Authorization.\nbytes32 constant SETTLEMENT_REQUEST_SIGNATURE_HASH = keccak256(\n    \"SettlementRequest(uint256 nonce,uint256 deadline,address trader,bytes32 positionUpdates,address recipient)\"\n);\n\n/// @dev The EIP-712 typeHash for Remove Collateral Authorization.\nbytes32 constant REMOVE_COLLATERAL_REQUEST_SIGNATURE_HASH =\n    keccak256(\"RemoveCollateralRequest(uint256 nonce,uint256 deadline,address trader,bytes32 tokens,address recipient)\");\n\n/// @dev The EIP-712 typeHash for Liquidation Authorization.\nbytes32 constant LIQUIDATION_REQUEST_SIGNATURE_HASH = keccak256(\n    \"LiquidationRequest(uint256 nonce,uint256 deadline,address trader,bytes32 positionUpdates,bytes32 claimCollaterals,address recipient)\"\n);\n\n/// @dev The EIP-712 typeHash for Market Maker RFQ Quote Authorization.\nbytes32 constant ORDER_SIGNATURE_HASH = keccak256(\n    \"Order(uint256 id,address signer,address buyer,address seller,address buyerToken,address sellerToken,uint256 buyerTokenAmount,uint256 sellerTokenAmount,uint256 deadlineTimestamp,address caller,bytes16 quoteId)\"\n);\n\n/// @dev The EIP-712 typeHash for RFQ Quote Widget Authorization.\nbytes32 constant RFQ_QUOTE_WIDGET_SIGNATURE_HASH =\n    keccak256(\"RFQTQuote(bytes32 quote,address widgetFeeRecipient,uint256 widgetFeeRate)\");\n\n/// @dev The EIP-712 typeHash for Fill Order Authorization.\nbytes32 constant FILL_ORDER_SIGNATURE_HASH = keccak256(\n    \"fillOrder(uint256 nonce,address recipient,address tokenIn,address tokenOut,uint256 amountIn,uint256 amountOut,uint256 deadline,address widgetFeeRecipient,uint256 widgetFeeRate)\"\n);\n"},"src/libraries/ErrorsLib.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.28;\n\n/// @title Custom error definitions for the protocol\n/// @notice This library contains all the error definitions used throughout the contract\n/// @dev The errors are arranged in alphabetical order\nlibrary ErrorsLib {\n    /// @notice Thrown when array lengths don't match in a function requiring equal-length arrays\n    error ArraysLengthMismatch();\n\n    /// @notice Thrown when deposit amount is below minimum required\n    error BelowMinimumDeposit();\n\n    /// @notice Thrown when caller is not the authorized epoch updater\n    error CallerNotEpochUpdater();\n\n    /// @notice Thrown when caller is not an authorized liquidator\n    error CallerNotLiquidator();\n\n    /// @notice Thrown when caller is not a trader or authorized settler\n    error CallerNotTraderSettler();\n\n    /// @notice Thrown when caller is not the WETH9 contract\n    error CallerNotWETH9();\n\n    /// @notice Thrown when epoch update is attempted before minimum interval\n    error EpochUpdateInCoolDown();\n\n    /// @notice Thrown when LP token exchange rate increases more than allowed\n    error ExchangeRateIncreaseTooMuch();\n\n    /// @notice Thrown when an external contract call fails\n    error ExternalCallFailed(address target, bytes4 selector);\n\n    /// @notice Thrown when feature is paused\n    error FeaturePaused();\n\n    /// @notice Thrown when there are insufficient funding fees to withdraw\n    error InsufficientFundingFees();\n\n    /// @notice Thrown when LP token shares are insufficient\n    error InsufficientShares();\n\n    /// @notice Thrown when LP token underlying is insufficient\n    error InsufficientUnderlying();\n\n    /// @notice Thrown when there is insufficient WETH9 to unwrap\n    error InsufficientWETH9();\n\n    /// @notice Thrown when an amount parameter is invalid\n    error InvalidAmount();\n\n    /// @notice Thrown when fee rate in basis points exceeds maximum (10000)\n    error InvalidFeeBips();\n\n    /// @notice Thrown when LP token address is invalid\n    error InvalidLPToken();\n\n    /// @notice Thrown when underlying are not supported in the credit vault\n    error InvalidUnderlying();\n\n    /// @notice Thrown when market (LP token) is invalid\n    error InvalidMarket();\n\n    /// @notice Thrown when position update amount is invalid\n    error InvalidPositionUpdateAmount();\n\n    /// @notice Thrown when the pool address is invalid Native pool\n    error InvalidNativePool();\n\n    /// @notice Thrown when signature verification fails\n    error InvalidSignature();\n\n    /// @notice Thrown when signer is not authorized\n    error InvalidSigner();\n\n    /// @notice Thrown when WETH9 unwrap amount is zero or exceeds balance\n    error InvalidWETH9Amount();\n\n    /// @notice Thrown when widget fee rate is invalid\n    error InvalidWidgetFeeRate();\n\n    /// @notice Thrown when liquidator and recipient are the same\n    error LiquidatorRecipientConflict();\n\n    /// @notice Thrown when nonce is used\n    error NonceUsed();\n\n    /// @notice Thrown when output amount is less than minimum required\n    error NotEnoughAmountOut(uint256 amountOut, uint256 amountOutMinimum);\n\n    /// @notice Thrown when insufficient token output received\n    error NotEnoughTokenReceived();\n\n    /// @notice Thrown the address is not a trader or liquidator\n    error NotTraderOrLiquidator();\n\n    /// @notice Error when caller is not a trusted operator\n    error NotTrustedOperator();\n\n    /// @notice Thrown when there is no yield to distribute\n    error NoYieldToDistribute();\n\n    /// @notice Thrown when caller is not the credit pool\n    error OnlyCreditPool();\n\n    /// @notice Thrown when caller is not the credit vault\n    error OnlyCreditVault();\n\n    /// @notice Thrown when caller is not the epoch updater\n    error OnlyEpochUpdater();\n\n    /// @notice Thrown when caller is not the fee withdrawer\n    error OnlyFeeWithdrawer();\n\n    /// @notice Thrown when caller is not an authorized liquidator\n    error OnlyLiquidator();\n\n    /// @notice Thrown when caller is not an LP token\n    error OnlyLpToken();\n\n    /// @notice Thrown when caller is not the native router\n    error OnlyNativeRouter();\n\n    /// @notice Thrown when caller is not the owner\n    error OnlyOwner();\n\n    /// @notice Thrown when caller is not an authorized trader\n    error OnlyTrader();\n\n    /// @notice Thrown when caller is not the WETH9 contract\n    error OnlyWETH9();\n\n    /// @notice Thrown when order has expired\n    error OrderExpired();\n\n    /// @notice Thrown when arithmetic operation would overflow\n    error Overflow();\n\n    /// @notice Thrown when permit2 token mismatch quote\n    error Permit2TokenMismatch();\n\n    /// @notice Thrown when LP pool has no deposits yet\n    error PoolNotInitialized();\n\n    /// @notice Thrown when quote has expired\n    error QuoteExpired();\n\n    /// @notice Thrown when rebalance limit is exceeded\n    error RebalanceLimitExceeded();\n\n    /// @notice Thrown when request has expired\n    error RequestExpired();\n\n    /// @notice Thrown when token is already listed\n    error TokenAlreadyListed();\n\n    /// @notice Thrown when trader, settler and recipient are the same\n    error TraderRecipientConflict();\n\n    /// @notice Thrown when transfer is in cooldown period\n    error TransferInCooldown();\n\n    /// @notice Thrown when transfer to self\n    error TransferSelf();\n\n    /// @notice Thrown when transfer to current contract\n    error TransferToContract();\n\n    /// @notice Thrown when unexpected msg.value is sent\n    error UnexpectedMsgValue();\n\n    /// @notice Thrown when zero address is provided\n    error ZeroAddress();\n\n    /// @notice Thrown when amount is zero\n    error ZeroAmount();\n\n    /// @notice Thrown when input is zero or empty\n    error ZeroInput();\n}\n"},"src/libraries/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\n// Copy from: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.6/contracts/token/ERC20/utils/SafeERC20.sol\n\n// NOTE: We disable 'SafeApprove' function beblow feature\n// same with uniswap v3 transferHelper: https://github.com/Uniswap/v3-periphery/blob/main/contracts/libraries/TransferHelper.sol\n// require(\n//     (value == 0) || (token.allowance(address(this), spender) == 0),\n//     \"SafeERC20: approve from non-zero to non-zero allowance\"\n// );\n\nimport \"openzeppelin/token/ERC20/IERC20.sol\";\nimport \"openzeppelin/utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    using Address for address;\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n    }\n\n    /**\n     * @dev Deprecated. This function has issues similar to the ones found in\n     * {IERC20-approve}, and its usage is discouraged.\n     *\n     * Whenever possible, use {safeIncreaseAllowance} and\n     * {safeDecreaseAllowance} instead.\n     */\n    function safeApprove(IERC20 token, address spender, uint256 value) internal {\n        // safeApprove should only be called when setting an initial allowance,\n        // or when resetting it to zero. To increase and decrease it, use\n        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n\n        // NOTE: we disable this\n        // require(\n        //     (value == 0) || (token.allowance(address(this), spender) == 0),\n        //     \"SafeERC20: approve from non-zero to non-zero allowance\"\n        // );\n\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        unchecked {\n            uint256 oldAllowance = token.allowance(address(this), spender);\n            require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     */\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n        // the target address contains contract code and also asserts for success in the low-level call.\n\n        bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n        require(returndata.length == 0 || abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n    }\n}\n"},"src/interfaces/ICreditVault.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.28;\n\ninterface ICreditVault {\n    function swapCallback(\n        address signer,\n        address sellerToken,\n        int256 amount0Delta,\n        address buyerToken,\n        int256 amount1Delta\n    ) external;\n\n    /// @notice Struct for tracking daily rebalance limits per trader/liquidator and token\n    /// @param limit Daily rebalance limit\n    /// @param used Amount rebalanced today\n    /// @param lastDay Last rebalance day timestamp\n    struct RebalanceCap {\n        uint256 limit;\n        uint256 used;\n        uint256 lastDay;\n    }\n\n    /// @notice Epoch Funding fee updates for a specific trader\n    /// @param trader The address of the trader\n    /// @param feeUpdates Array of funding fee updates for different tokens\n    struct AccruedFundingFee {\n        address trader;\n        FundingFeeAmount[] feeUpdates;\n    }\n\n    /// @notice Details of funding and reserve fees for a specific token\n    /// @param token The unerlying token address\n    /// @param fundingFee  Amount of fee distributed to LP holders\n    /// @param reserveFee Amount of fee reserved for the protocol\n    struct FundingFeeAmount {\n        address token;\n        uint256 fundingFee;\n        uint256 reserveFee;\n    }\n\n    /// @notice Represents a token amount with unsigned integer value\n    /// @param token The address of underlying token\n    /// @param amount The unsigned amount of tokens\n    struct TokenAmountUint {\n        address token;\n        uint256 amount;\n    }\n\n    /// @notice Represents a token amount with signed integer value (for positions)\n    /// @param token The address of underlying token\n    /// @param amount The signed amount (positive for long, negative for short)\n    struct TokenAmountInt {\n        address token;\n        int256 amount;\n    }\n\n    /// @notice Request parameters for position settlement\n    /// @param nonce Unique identifier to prevent replay attacks\n    /// @param deadline Timestamp after which the request expires\n    /// @param trader Address of the trader whose positions are being settled\n    /// @param positionUpdates Array of position changes to be settled\n    struct SettlementRequest {\n        uint256 nonce;\n        uint256 deadline;\n        address trader;\n        TokenAmountInt[] positionUpdates;\n    }\n\n    /// @notice Request parameters for collateral removal\n    /// @param nonce Unique identifier to prevent replay attacks\n    /// @param deadline Timestamp after which the request expires\n    /// @param trader Address of the trader removing collateral\n    /// @param tokens Array of collateral tokens to be removed\n    struct RemoveCollateralRequest {\n        uint256 nonce;\n        uint256 deadline;\n        address trader;\n        TokenAmountUint[] tokens;\n    }\n\n    /// @notice Request parameters for position liquidation\n    /// @param nonce Unique identifier to prevent replay attacks\n    /// @param deadline Timestamp after which the request expires\n    /// @param trader Address of the trader being liquidated\n    /// @param positionUpdates Array of position changes from liquidation\n    /// @param claimCollaterals Array of collateral tokens to be claimed\n    struct LiquidationRequest {\n        uint256 nonce;\n        uint256 deadline;\n        address trader;\n        TokenAmountInt[] positionUpdates;\n        TokenAmountUint[] claimCollaterals;\n    }\n\n    /// @notice Emitted when a new market (LP token) is listed\n    /// @param lpToken The address of the newly listed LP token\n    event MarketListed(address lpToken);\n\n    /// @notice Emitted when epoch funding fees are updated for traders\n    /// @param accruedFundingFees Array of funding fee updates for different traders\n    event EpochUpdated(AccruedFundingFee[] accruedFundingFees);\n\n    /// @notice Emitted when a trader's positions are repaid\n    /// @param trader The address of the trader whose positions are being repaid\n    /// @param repayments Array of token amounts being repaid\n    event Repaid(address trader, TokenAmountInt[] repayments);\n\n    /// @notice Emitted when a trader's positions are settled\n    /// @param trader The address of the trader whose positions are being settled\n    /// @param positionUpdates Array of position changes\n    event Settled(address trader, TokenAmountInt[] positionUpdates);\n\n    /// @notice Emitted when collateral is added for a trader\n    /// @param trader The address of the trader receiving collateral\n    /// @param collateralUpdates Array of collateral token amounts added\n    event CollateralAdded(address trader, TokenAmountUint[] collateralUpdates);\n\n    /// @notice Emitted when collateral is removed for a trader\n    /// @param trader The address of the trader removing collateral\n    /// @param collateralUpdates Array of collateral token amounts removed\n    event CollateralRemoved(address trader, TokenAmountUint[] collateralUpdates);\n\n    /// @notice Emitted when a trader's positions are liquidated\n    /// @param trader The address of the trader being liquidated\n    /// @param liquidator The address performing the liquidation\n    /// @param positionUpdates Array of position changes from liquidation\n    /// @param claimCollaterals Array of collateral tokens claimed by liquidator\n    event Liquidated(\n        address trader, address liquidator, TokenAmountInt[] positionUpdates, TokenAmountUint[] claimCollaterals\n    );\n\n    /// @notice Emitted when a credit pool's status is updated\n    /// @param pool The address of the credit pool\n    /// @param isActive The new status of the pool\n    event CreditPoolUpdated(address indexed pool, bool isActive);\n\n    /// @notice Emitted when a trader or liquidator's rebalance limit is updated for a token\n    /// @param operator The trader or liquidator address\n    /// @param token The token address\n    /// @param limit The new daily limit (0 means unlimited)\n    event RebalanceCapUpdated(address indexed operator, address indexed token, uint256 limit);\n\n    /// @notice Emitted when a trader's info is updated\n    /// @param trader The address of the trader whose info is being updated\n    /// @param isTrader Whether the address is enabled for trading\n    /// @param isWhitelistTrader Whether the trader can bypass credit checks\n    /// @param settler The address authorized to settle positions for this trader\n    /// @param recipient The address authorized to receive tokens from settlements\n\n    event TraderSet(address indexed trader, bool isTrader, bool isWhitelistTrader, address settler, address recipient);\n\n    /// @notice Emitted when liquidator is set\n    event LiquidatorSet(address liquidator, bool status);\n\n    /// @notice Emitted when signer is set\n    event SignerSet(address signer);\n\n    /// @notice Emitted when epoch updater is set\n    event EpochUpdaterSet(address epochUpdater);\n\n    /// @notice Emitted when fee withdrawer is set\n    event FeeWithdrawerSet(address feeWithdrawer);\n\n    /// @notice Emitted when reserve fees are withdrawn\n    event ReserveWithdrawn(address underlying, address recipient, uint256 amount);\n}\n"},"src/libraries/ReentrancyGuardTransient.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.28;\n\nimport {TStorage} from \"./TStorage.sol\";\n\n// Refer from OpenZeppelin https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v5.1/contracts/utils/ReentrancyGuardTransient.sol\n\n/**\n * @dev Variant of {ReentrancyGuard} that uses transient storage.\n */\nabstract contract ReentrancyGuardTransient {\n    using TStorage for bytes32;\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.ReentrancyGuard\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant REENTRANCY_GUARD_STORAGE =\n        0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;\n\n    /**\n     * @dev Unauthorized reentrant call.\n     */\n    error ReentrancyGuardReentrantCall();\n\n    /**\n     * @dev Prevents a contract from calling itself, directly or indirectly.\n     * Calling a `nonReentrant` function from another `nonReentrant`\n     * function is not supported. It is possible to prevent this from happening\n     * by making the `nonReentrant` function external, and making it call a\n     * `private` function that does the actual work.\n     */\n    modifier nonReentrant() {\n        _nonReentrantBefore();\n        _;\n        _nonReentrantAfter();\n    }\n\n    function _nonReentrantBefore() private {\n        // On the first call to nonReentrant, _status will be NOT_ENTERED\n        if (_reentrancyGuardEntered()) {\n            revert ReentrancyGuardReentrantCall();\n        }\n\n        // Any calls to nonReentrant after this point will fail\n        REENTRANCY_GUARD_STORAGE.tstore(true);\n    }\n\n    function _nonReentrantAfter() private {\n        REENTRANCY_GUARD_STORAGE.tstore(false);\n    }\n\n    /**\n     * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n     * `nonReentrant` function in the call stack.\n     */\n    function _reentrancyGuardEntered() internal view returns (bool) {\n        return REENTRANCY_GUARD_STORAGE.tload();\n    }\n}\n"},"src/NativeLPToken.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.28;\n\nimport {ERC20} from \"@openzeppelin/contracts/token/ERC20/ERC20.sol\";\nimport {Ownable2Step} from \"@openzeppelin/contracts/access/Ownable2Step.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IERC20Metadata as IERC20} from \"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\";\n\nimport \"./libraries/ConstantsLib.sol\";\nimport {CreditVault} from \"./CreditVault.sol\";\nimport {ErrorsLib} from \"./libraries/ErrorsLib.sol\";\nimport {ReentrancyGuardTransient} from \"./libraries/ReentrancyGuardTransient.sol\";\n\n/// @title NativeLPToken - Yield-bearing LP token contract\n/// @notice A token contract that represents liquidity provider positions and distributes yield\n/// @dev This contract manages LP shares and underlying assets, accruing yield based on protocol revenue\ncontract NativeLPToken is ERC20, Ownable2Step, ReentrancyGuardTransient {\n    using SafeERC20 for IERC20;\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                     STATE VARIABLES\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Whether deposit operations are paused\n    bool public depositPaused;\n\n    /// @notice Whether redeem operations are paused\n    bool public redeemPaused;\n\n    /// @notice The underlying token that this LP token represents\n    IERC20 public underlying;\n\n    /// @notice The address of the credit vault contract\n    address public creditVault;\n\n    /// @notice The number of decimals for this token, matching the underlying token's decimals\n    uint8 private _decimals;\n\n    /// @notice Early withdrawal fee in basis points (1 bip = 0.01%)\n    /// @dev Applied to prevent front-running by users who deposit right before yield distribution and immediately redeem after\n    uint256 public earlyWithdrawFeeBips;\n\n    /// @notice Total amount of underlying assets deposited by LPs\n    uint256 public totalUnderlying;\n\n    /// @notice Total number of shares issued\n    uint256 public totalShares;\n\n    /// @notice Minimum time interval between deposit and redeem (in seconds)\n    uint256 public minRedeemInterval = 8 hours;\n\n    /// @notice Minimum amount required for deposits\n    uint256 public minDeposit;\n\n    /// @notice Mapping of user addresses to their share balances\n    mapping(address => uint256) public shares;\n\n    /// @notice Mapping of trusted operators who can call depositFor and redeemTo functions\n    mapping(address => bool) public trustedOperators;\n\n    /// @notice Mapping of user addresses to their last deposit timestamp\n    mapping(address => uint256) public lastDepositTimestamp;\n\n    /// @notice Mapping of addresses exempt from redeem cooldown period and early withdrawal fees\n    mapping(address => bool) public redeemCooldownExempt;\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                        EVENTS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Event emitted when deposit operation is paused\n    event DepositPaused();\n\n    /// @notice Event emitted when deposit operation is unpaused\n    event DepositUnpaused();\n\n    /// @notice Event emitted when redeem operation is paused\n    event RedeemPaused();\n\n    /// @notice Event emitted when redeem operation is unpaused\n    event RedeemUnpaused();\n\n    /// @notice Event emitted when yield is distributed to LP holders\n    event YieldDistributed(uint256 yieldAmount);\n\n    /// @notice Event emitted when minimum redeem interval is updated\n    event MinRedeemIntervalUpdated(uint256 newInterval);\n\n    /// @notice Event emitted when shares are transferred between addresses\n    event TransferShares(address indexed from, address indexed to, uint256 shares);\n\n    /// @notice Event emitted when new shares are minted\n    event SharesMinted(address indexed from, address indexed to, uint256 shares, uint256 underlyingAmount);\n\n    /// @notice Event emitted when shares are burned\n    event SharesBurned(address indexed from, address indexed to, uint256 shares, uint256 underlyingAmount);\n\n    /// @notice Event emitted when minimum deposit amount is updated\n    event MinDepositUpdated(uint256 oldAmount, uint256 newAmount);\n\n    /// @notice Event emitted when early withdraw fee is updated\n    event EarlyWithdrawFeeBipsUpdated(uint256 oldFeeBips, uint256 newFeeBips);\n\n    /// @notice Event emitted when a trusted operator status is updated\n    event TrustedOperatorUpdated(address indexed account, bool status);\n\n    /// @notice Event emitted when an address's redeem cooldown exemption status is updated\n    event RedeemCooldownExemptUpdated(address indexed account, bool status);\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                     CONSTRUCTOR\n    //////////////////////////////////////////////////////////////////////////*/\n\n    constructor(\n        string memory _name,\n        string memory _symbol,\n        address _underlying,\n        address _creditVault\n    ) ERC20(_name, _symbol) {\n        underlying = IERC20(_underlying);\n        creditVault = _creditVault;\n\n        _decimals = IERC20(address(underlying)).decimals();\n    }\n\n    /// @notice Deposit underlying tokens to mint LP tokens\n    /// @param amount Amount of underlying tokens to deposit\n    /// @return sharesToMint Amount of LP tokens minted\n    function deposit(uint256 amount)\n        external\n        nonReentrant\n        whenNotPaused(depositPaused)\n        returns (uint256 sharesToMint)\n    {\n        sharesToMint = _deposit(msg.sender, msg.sender, amount);\n    }\n\n    /// @notice Deposit underlying tokens on behalf of another address\n    /// @param to The address to mint shares to\n    /// @param amount Amount of underlying tokens to deposit\n    /// @return sharesToMint Amount of LP tokens minted\n    function depositFor(\n        address to,\n        uint256 amount\n    ) external nonReentrant whenNotPaused(depositPaused) returns (uint256 sharesToMint) {\n        require(to != address(0), ErrorsLib.ZeroAddress());\n        require(trustedOperators[msg.sender], ErrorsLib.NotTrustedOperator());\n        sharesToMint = _deposit(msg.sender, to, amount);\n    }\n\n    /// @notice Redeem LP tokens for underlying tokens\n    /// @param sharesToBurn Amount of LP tokens to burn\n    /// @return underlyingAmount Amount of underlying tokens received\n    function redeem(uint256 sharesToBurn)\n        external\n        nonReentrant\n        whenNotPaused(redeemPaused)\n        returns (uint256 underlyingAmount)\n    {\n        underlyingAmount = _redeem(sharesToBurn, msg.sender);\n    }\n\n    /// @notice Redeem LP tokens and send underlying tokens to a specified address\n    /// @param sharesToBurn Amount of LP tokens to burn from caller's balance\n    /// @param to Address that will receive the underlying tokens\n    /// @return underlyingAmount Amount of underlying tokens sent to the recipient\n    function redeemTo(\n        uint256 sharesToBurn,\n        address to\n    ) external nonReentrant whenNotPaused(redeemPaused) returns (uint256 underlyingAmount) {\n        require(to != address(0), ErrorsLib.ZeroAddress());\n        require(trustedOperators[msg.sender], ErrorsLib.NotTrustedOperator());\n        underlyingAmount = _redeem(sharesToBurn, to);\n    }\n\n    /// @notice Transfers shares from sender to recipient\n    /// @param recipient The address to transfer shares to\n    /// @param sharesAmount The number of shares to transfer\n    /// @return The amount of underlying tokens the shares represent\n    function transferShares(address recipient, uint256 sharesAmount) external returns (uint256) {\n        _transferShares(msg.sender, recipient, sharesAmount);\n        uint256 tokensAmount = getUnderlyingByShares(sharesAmount);\n        _emitTransferEvents(msg.sender, recipient, tokensAmount, sharesAmount);\n        return tokensAmount;\n    }\n\n    /// @notice Distributes yield to LP token holders\n    /// @param yieldAmount Amount of yield to distribute\n    /// @dev Can only be called by the credit vault\n    function distributeYield(uint256 yieldAmount) external {\n        require(totalShares > 0, ErrorsLib.PoolNotInitialized());\n        require(yieldAmount > 0, ErrorsLib.NoYieldToDistribute());\n        require(msg.sender == creditVault, ErrorsLib.OnlyCreditVault());\n\n        totalUnderlying += yieldAmount;\n\n        emit YieldDistributed(yieldAmount);\n    }\n\n    /// @notice Gets the underlying token balance of an account\n    /// @param account The address to check the balance for\n    /// @return The amount of underlying tokens the account effectively owns\n    function balanceOf(address account) public view override returns (uint256) {\n        return getUnderlyingByShares(shares[account]);\n    }\n\n    /// @notice Gets the total supply of underlying tokens in the pool\n    /// @return The total amount of underlying tokens managed by this contract\n    function totalSupply() public view override returns (uint256) {\n        return totalUnderlying;\n    }\n\n    /// @notice Gets the number of shares owned by an account\n    /// @param account The address to check shares for\n    /// @return The number of shares owned by the account\n    function sharesOf(address account) public view returns (uint256) {\n        return shares[account];\n    }\n\n    /// @notice Calculates the underlying token amount for a given number of shares\n    /// @param sharesAmount The number of shares to convert\n    /// @return The corresponding amount of underlying tokens\n    function getUnderlyingByShares(uint256 sharesAmount) public view returns (uint256) {\n        if (totalShares == 0) {\n            return sharesAmount;\n        }\n        return (sharesAmount * totalUnderlying) / totalShares;\n    }\n\n    /// @notice Calculates the number of shares for a given amount of underlying tokens\n    /// @param underlyingAmount The amount of underlying tokens to convert\n    /// @return The corresponding number of shares\n    function getSharesByUnderlying(uint256 underlyingAmount) public view returns (uint256) {\n        if (totalShares == 0) {\n            return underlyingAmount;\n        }\n        return (underlyingAmount * totalShares) / totalUnderlying;\n    }\n\n    /// @notice Gets the current exchange rate between shares and underlying tokens\n    /// @return The exchange rate scaled by 1e18 (1:1 = 1e18)\n    function exchangeRate() public view returns (uint256) {\n        if (totalShares == 0) {\n            return 1e18; // Initial exchange rate 1:1\n        }\n        return (totalUnderlying * 1e18) / totalShares;\n    }\n\n    /// @notice Gets the number of decimals for this token\n    /// @return The number of decimals, matching the underlying token\n    function decimals() public view override returns (uint8) {\n        return _decimals;\n    }\n\n    /// @notice Sets the minimum deposit amount\n    /// @param _minDeposit New minimum deposit amount\n    /// @dev Can only be called by the owner\n    function setMinDeposit(uint256 _minDeposit) external onlyOwner {\n        uint256 oldAmount = minDeposit;\n        minDeposit = _minDeposit;\n        emit MinDepositUpdated(oldAmount, _minDeposit);\n    }\n\n    /// @notice Sets the minimum time interval required between deposit and redeem\n    /// @param _interval New minimum interval in seconds\n    /// @dev Can only be called by the owner\n    function setMinRedeemInterval(uint256 _interval) external onlyOwner {\n        minRedeemInterval = _interval;\n\n        emit MinRedeemIntervalUpdated(_interval);\n    }\n\n    /// @notice Sets the early withdrawal fee in basis points (BIPs)\n    /// @param _earlyWithdrawFeeBips New early withdrawal fee in BIPs\n    /// @dev Can only be called by the owner\n    function setEarlyWithdrawFeeBips(uint256 _earlyWithdrawFeeBips) external onlyOwner {\n        require(_earlyWithdrawFeeBips <= MAX_EARLY_WITHDRAW_FEE_BIPS, ErrorsLib.InvalidFeeBips());\n\n        uint256 oldFeeBips = earlyWithdrawFeeBips;\n        earlyWithdrawFeeBips = _earlyWithdrawFeeBips;\n\n        emit EarlyWithdrawFeeBipsUpdated(oldFeeBips, _earlyWithdrawFeeBips);\n    }\n\n    /// @notice Sets the trusted operator status for an address\n    /// @param account The address to update\n    /// @param status The new operator status\n    function setTrustedOperator(address account, bool status) external onlyOwner {\n        require(account != address(0), ErrorsLib.ZeroAddress());\n\n        trustedOperators[account] = status;\n        emit TrustedOperatorUpdated(account, status);\n    }\n\n    /// @notice Sets the redeem cooldown exemption status for an address\n    /// @param account The address to update\n    /// @param status The new exemption status\n    /// @dev Can only be called by the owner\n    function setRedeemCooldownExempt(address account, bool status) external onlyOwner {\n        require(account != address(0), ErrorsLib.ZeroAddress());\n\n        redeemCooldownExempt[account] = status;\n        emit RedeemCooldownExemptUpdated(account, status);\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                     PAUSE OPERATIONS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Function to pause deposit operation\n    function pauseDeposit() external onlyOwner {\n        depositPaused = true;\n        emit DepositPaused();\n    }\n\n    /// @notice Function to unpause deposit operation\n    function unpauseDeposit() external onlyOwner {\n        depositPaused = false;\n        emit DepositUnpaused();\n    }\n\n    /// @notice Function to pause redeem operation\n    function pauseRedeem() external onlyOwner {\n        redeemPaused = true;\n        emit RedeemPaused();\n    }\n\n    /// @notice Function to unpause redeem operation\n    function unpauseRedeem() external onlyOwner {\n        redeemPaused = false;\n        emit RedeemUnpaused();\n    }\n\n    modifier whenNotPaused(bool feature) {\n        if (feature) {\n            revert ErrorsLib.FeaturePaused();\n        }\n        _;\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                INTERNAL FUNCTIONS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    function _deposit(address from, address to, uint256 amount) internal returns (uint256 sharesToMint) {\n        require(amount >= minDeposit && amount > 0, ErrorsLib.BelowMinimumDeposit());\n\n        // Transfer underlying to vault\n        uint256 balanceBefore = underlying.balanceOf(creditVault);\n        underlying.safeTransferFrom(from, creditVault, amount);\n        amount = underlying.balanceOf(creditVault) - balanceBefore;\n\n        // Calculate shares to mint\n        if (totalShares == 0) {\n            sharesToMint = amount; // Initial shares 1:1\n        } else {\n            sharesToMint = (amount * totalShares) / totalUnderlying;\n        }\n\n        // Mint shares\n        _mintShares(to, sharesToMint);\n\n        // Update total underlying\n        totalUnderlying += amount;\n\n        lastDepositTimestamp[to] = block.timestamp;\n\n        emit SharesMinted(from, to, sharesToMint, amount);\n    }\n\n    function _redeem(uint256 sharesToBurn, address to) internal returns (uint256 underlyingAmount) {\n        require(sharesToBurn > 0, ErrorsLib.ZeroAmount());\n        require(shares[msg.sender] >= sharesToBurn, ErrorsLib.InsufficientShares());\n\n        // Calculate underlying amount\n        underlyingAmount = (sharesToBurn * totalUnderlying) / totalShares;\n\n        if (\n            block.timestamp < lastDepositTimestamp[msg.sender] + minRedeemInterval && earlyWithdrawFeeBips > 0\n                && !redeemCooldownExempt[msg.sender]\n        ) {\n            underlyingAmount -= (underlyingAmount * earlyWithdrawFeeBips) / 10_000;\n        }\n\n        // Burn shares first\n        _burnShares(msg.sender, sharesToBurn);\n\n        // Transfer underlying from vault to msg.sender\n        uint256 balanceBefore = underlying.balanceOf(creditVault);\n        CreditVault(creditVault).pay(to, underlyingAmount);\n        underlyingAmount = balanceBefore - underlying.balanceOf(creditVault);\n\n        // Update total underlying\n        totalUnderlying -= underlyingAmount;\n\n        emit SharesBurned(msg.sender, to, sharesToBurn, underlyingAmount);\n    }\n\n    function _mintShares(address to, uint256 shareAmount) internal {\n        require(shareAmount > 0, ErrorsLib.ZeroAmount());\n        require(to != address(0), ErrorsLib.ZeroAddress());\n\n        shares[to] += shareAmount;\n        totalShares += shareAmount;\n    }\n\n    function _burnShares(address from, uint256 shareAmount) internal {\n        require(shareAmount > 0, ErrorsLib.ZeroAmount());\n        require(from != address(0), ErrorsLib.ZeroAddress());\n\n        shares[from] -= shareAmount;\n        totalShares -= shareAmount;\n    }\n\n    /// @notice Override ERC20's _transfer to handle yield-bearing LP token transfers\n    /// @dev Since this is a yield-bearing token, the actual transfer is done by transferring shares\n    ///      rather than token amounts directly. The shares represent the user's proportion of the\n    ///      total underlying assets including yield.\n    /// @param from The address to transfer from\n    /// @param to The address to transfer to\n    /// @param amount The underlying token amount to transfer\n    function _transfer(address from, address to, uint256 amount) internal override {\n        uint256 sharesToTransfer = getSharesByUnderlying(amount);\n        _transferShares(from, to, sharesToTransfer);\n        _emitTransferEvents(from, to, amount, sharesToTransfer);\n    }\n\n    function _transferShares(address from, address to, uint256 _shares) internal {\n        require(from != address(0) && to != address(0), ErrorsLib.ZeroAddress());\n        require(from != to, ErrorsLib.TransferSelf());\n        require(to != address(this), ErrorsLib.TransferToContract());\n\n        _validateTransferCooldown(from);\n\n        shares[from] -= _shares;\n        shares[to] += _shares;\n    }\n\n    function _validateTransferCooldown(address user) internal view {\n        // During cooldown period, user can't transfer shares, but can still redeem\n        require(\n            lastDepositTimestamp[user] + minRedeemInterval <= block.timestamp || redeemCooldownExempt[user],\n            ErrorsLib.TransferInCooldown()\n        );\n    }\n\n    function _emitTransferEvents(address from, address to, uint256 tokenAmount, uint256 sharesAmount) internal {\n        emit Transfer(from, to, tokenAmount);\n        emit TransferShares(from, to, sharesAmount);\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/access/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n    address private _owner;\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the deployer as the initial owner.\n     */\n    constructor() {\n        _transferOwnership(_msgSender());\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view virtual returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if the sender is not the owner.\n     */\n    function _checkOwner() internal view virtual {\n        require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual onlyOwner {\n        _transferOwnership(address(0));\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n        _transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../Strings.sol\";\n\n/**\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\n *\n * These functions can be used to verify that a message was signed by the holder\n * of the private keys of a given address.\n */\nlibrary ECDSA {\n    enum RecoverError {\n        NoError,\n        InvalidSignature,\n        InvalidSignatureLength,\n        InvalidSignatureS,\n        InvalidSignatureV // Deprecated in v4.8\n    }\n\n    function _throwError(RecoverError error) private pure {\n        if (error == RecoverError.NoError) {\n            return; // no error: do nothing\n        } else if (error == RecoverError.InvalidSignature) {\n            revert(\"ECDSA: invalid signature\");\n        } else if (error == RecoverError.InvalidSignatureLength) {\n            revert(\"ECDSA: invalid signature length\");\n        } else if (error == RecoverError.InvalidSignatureS) {\n            revert(\"ECDSA: invalid signature 's' value\");\n        }\n    }\n\n    /**\n     * @dev Returns the address that signed a hashed message (`hash`) with\n     * `signature` or error string. This address can then be used for verification purposes.\n     *\n     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n     * this function rejects them by requiring the `s` value to be in the lower\n     * half order, and the `v` value to be either 27 or 28.\n     *\n     * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n     * verification to be secure: it is possible to craft signatures that\n     * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n     * this is by receiving a hash of the original message (which may otherwise\n     * be too long), and then calling {toEthSignedMessageHash} on it.\n     *\n     * Documentation for signature generation:\n     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\n     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\n     *\n     * _Available since v4.3._\n     */\n    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\n        if (signature.length == 65) {\n            bytes32 r;\n            bytes32 s;\n            uint8 v;\n            // ecrecover takes the signature parameters, and the only way to get them\n            // currently is to use assembly.\n            /// @solidity memory-safe-assembly\n            assembly {\n                r := mload(add(signature, 0x20))\n                s := mload(add(signature, 0x40))\n                v := byte(0, mload(add(signature, 0x60)))\n            }\n            return tryRecover(hash, v, r, s);\n        } else {\n            return (address(0), RecoverError.InvalidSignatureLength);\n        }\n    }\n\n    /**\n     * @dev Returns the address that signed a hashed message (`hash`) with\n     * `signature`. This address can then be used for verification purposes.\n     *\n     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n     * this function rejects them by requiring the `s` value to be in the lower\n     * half order, and the `v` value to be either 27 or 28.\n     *\n     * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n     * verification to be secure: it is possible to craft signatures that\n     * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n     * this is by receiving a hash of the original message (which may otherwise\n     * be too long), and then calling {toEthSignedMessageHash} on it.\n     */\n    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n        (address recovered, RecoverError error) = tryRecover(hash, signature);\n        _throwError(error);\n        return recovered;\n    }\n\n    /**\n     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\n     *\n     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\n     *\n     * _Available since v4.3._\n     */\n    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {\n        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n        uint8 v = uint8((uint256(vs) >> 255) + 27);\n        return tryRecover(hash, v, r, s);\n    }\n\n    /**\n     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n     *\n     * _Available since v4.2._\n     */\n    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n        (address recovered, RecoverError error) = tryRecover(hash, r, vs);\n        _throwError(error);\n        return recovered;\n    }\n\n    /**\n     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\n     * `r` and `s` signature fields separately.\n     *\n     * _Available since v4.3._\n     */\n    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {\n        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\n        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\n        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most\n        // signatures from current libraries generate a unique signature with an s-value in the lower half order.\n        //\n        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\n        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\n        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\n        // these malleable signatures as well.\n        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\n            return (address(0), RecoverError.InvalidSignatureS);\n        }\n\n        // If the signature is valid (and not malleable), return the signer address\n        address signer = ecrecover(hash, v, r, s);\n        if (signer == address(0)) {\n            return (address(0), RecoverError.InvalidSignature);\n        }\n\n        return (signer, RecoverError.NoError);\n    }\n\n    /**\n     * @dev Overload of {ECDSA-recover} that receives the `v`,\n     * `r` and `s` signature fields separately.\n     */\n    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\n        _throwError(error);\n        return recovered;\n    }\n\n    /**\n     * @dev Returns an Ethereum Signed Message, created from a `hash`. This\n     * produces hash corresponding to the one signed with the\n     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\n     * JSON-RPC method as part of EIP-191.\n     *\n     * See {recover}.\n     */\n    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {\n        // 32 is the length in bytes of hash,\n        // enforced by the type signature above\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\")\n            mstore(0x1c, hash)\n            message := keccak256(0x00, 0x3c)\n        }\n    }\n\n    /**\n     * @dev Returns an Ethereum Signed Message, created from `s`. This\n     * produces hash corresponding to the one signed with the\n     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\n     * JSON-RPC method as part of EIP-191.\n     *\n     * See {recover}.\n     */\n    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\n        return keccak256(abi.encodePacked(\"\\x19Ethereum Signed Message:\\n\", Strings.toString(s.length), s));\n    }\n\n    /**\n     * @dev Returns an Ethereum Signed Typed Data, created from a\n     * `domainSeparator` and a `structHash`. This produces hash corresponding\n     * to the one signed with the\n     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\n     * JSON-RPC method as part of EIP-712.\n     *\n     * See {recover}.\n     */\n    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let ptr := mload(0x40)\n            mstore(ptr, \"\\x19\\x01\")\n            mstore(add(ptr, 0x02), domainSeparator)\n            mstore(add(ptr, 0x22), structHash)\n            data := keccak256(ptr, 0x42)\n        }\n    }\n\n    /**\n     * @dev Returns an Ethereum Signed Data with intended validator, created from a\n     * `validator` and `data` according to the version 0 of EIP-191.\n     *\n     * See {recover}.\n     */\n    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n        return keccak256(abi.encodePacked(\"\\x19\\x00\", validator, data));\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/ShortStrings.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/ShortStrings.sol)\n\npragma solidity ^0.8.8;\n\nimport \"./StorageSlot.sol\";\n\n// | string  | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA   |\n// | length  | 0x                                                              BB |\ntype ShortString is bytes32;\n\n/**\n * @dev This library provides functions to convert short memory strings\n * into a `ShortString` type that can be used as an immutable variable.\n *\n * Strings of arbitrary length can be optimized using this library if\n * they are short enough (up to 31 bytes) by packing them with their\n * length (1 byte) in a single EVM word (32 bytes). Additionally, a\n * fallback mechanism can be used for every other case.\n *\n * Usage example:\n *\n * ```solidity\n * contract Named {\n *     using ShortStrings for *;\n *\n *     ShortString private immutable _name;\n *     string private _nameFallback;\n *\n *     constructor(string memory contractName) {\n *         _name = contractName.toShortStringWithFallback(_nameFallback);\n *     }\n *\n *     function name() external view returns (string memory) {\n *         return _name.toStringWithFallback(_nameFallback);\n *     }\n * }\n * ```\n */\nlibrary ShortStrings {\n    // Used as an identifier for strings longer than 31 bytes.\n    bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;\n\n    error StringTooLong(string str);\n    error InvalidShortString();\n\n    /**\n     * @dev Encode a string of at most 31 chars into a `ShortString`.\n     *\n     * This will trigger a `StringTooLong` error is the input string is too long.\n     */\n    function toShortString(string memory str) internal pure returns (ShortString) {\n        bytes memory bstr = bytes(str);\n        if (bstr.length > 31) {\n            revert StringTooLong(str);\n        }\n        return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));\n    }\n\n    /**\n     * @dev Decode a `ShortString` back to a \"normal\" string.\n     */\n    function toString(ShortString sstr) internal pure returns (string memory) {\n        uint256 len = byteLength(sstr);\n        // using `new string(len)` would work locally but is not memory safe.\n        string memory str = new string(32);\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(str, len)\n            mstore(add(str, 0x20), sstr)\n        }\n        return str;\n    }\n\n    /**\n     * @dev Return the length of a `ShortString`.\n     */\n    function byteLength(ShortString sstr) internal pure returns (uint256) {\n        uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;\n        if (result > 31) {\n            revert InvalidShortString();\n        }\n        return result;\n    }\n\n    /**\n     * @dev Encode a string into a `ShortString`, or write it to storage if it is too long.\n     */\n    function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {\n        if (bytes(value).length < 32) {\n            return toShortString(value);\n        } else {\n            StorageSlot.getStringSlot(store).value = value;\n            return ShortString.wrap(_FALLBACK_SENTINEL);\n        }\n    }\n\n    /**\n     * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.\n     */\n    function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {\n        if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {\n            return toString(value);\n        } else {\n            return store;\n        }\n    }\n\n    /**\n     * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}.\n     *\n     * WARNING: This will return the \"byte length\" of the string. This may not reflect the actual length in terms of\n     * actual characters as the UTF-8 encoding of a single character can span over multiple bytes.\n     */\n    function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {\n        if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {\n            return byteLength(value);\n        } else {\n            return bytes(store).length;\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC5267.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol)\n\npragma solidity ^0.8.0;\n\ninterface IERC5267 {\n    /**\n     * @dev MAY be emitted to signal that the domain could have changed.\n     */\n    event EIP712DomainChanged();\n\n    /**\n     * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n     * signature.\n     */\n    function eip712Domain()\n        external\n        view\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"},"lib/openzeppelin-contracts/contracts/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n    /**\n     * @dev Returns true if `account` is a contract.\n     *\n     * [IMPORTANT]\n     * ====\n     * It is unsafe to assume that an address for which this function returns\n     * false is an externally-owned account (EOA) and not a contract.\n     *\n     * Among others, `isContract` will return false for the following\n     * types of addresses:\n     *\n     *  - an externally-owned account\n     *  - a contract in construction\n     *  - an address where a contract will be created\n     *  - an address where a contract lived, but was destroyed\n     *\n     * Furthermore, `isContract` will also return true if the target contract within\n     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n     * which only has an effect at the end of a transaction.\n     * ====\n     *\n     * [IMPORTANT]\n     * ====\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\n     *\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n     * constructor.\n     * ====\n     */\n    function isContract(address account) internal view returns (bool) {\n        // This method relies on extcodesize/address.code.length, which returns 0\n        // for contracts in construction, since the code is only stored at the end\n        // of the constructor execution.\n\n        return account.code.length > 0;\n    }\n\n    /**\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n     * `recipient`, forwarding all available gas and reverting on errors.\n     *\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\n     * imposed by `transfer`, making them unable to receive funds via\n     * `transfer`. {sendValue} removes this limitation.\n     *\n     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n     *\n     * IMPORTANT: because control is transferred to `recipient`, care must be\n     * taken to not create reentrancy vulnerabilities. Consider using\n     * {ReentrancyGuard} or the\n     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n     */\n    function sendValue(address payable recipient, uint256 amount) internal {\n        require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n        (bool success, ) = recipient.call{value: amount}(\"\");\n        require(success, \"Address: unable to send value, recipient may have reverted\");\n    }\n\n    /**\n     * @dev Performs a Solidity function call using a low level `call`. A\n     * plain `call` is an unsafe replacement for a function call: use this\n     * function instead.\n     *\n     * If `target` reverts with a revert reason, it is bubbled up by this\n     * function (like regular Solidity function calls).\n     *\n     * Returns the raw returned data. To convert to the expected return value,\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n     *\n     * Requirements:\n     *\n     * - `target` must be a contract.\n     * - calling `target` with `data` must not revert.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n     * `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but also transferring `value` wei to `target`.\n     *\n     * Requirements:\n     *\n     * - the calling contract must have an ETH balance of at least `value`.\n     * - the called Solidity function must be `payable`.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(\n        address target,\n        bytes memory data,\n        uint256 value,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        require(address(this).balance >= value, \"Address: insufficient balance for call\");\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n        return functionStaticCall(target, data, \"Address: low-level static call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.staticcall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.delegatecall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n     *\n     * _Available since v4.8._\n     */\n    function verifyCallResultFromTarget(\n        address target,\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        if (success) {\n            if (returndata.length == 0) {\n                // only check isContract if the call was successful and the return data is empty\n                // otherwise we already know that it was a contract\n                require(isContract(target), \"Address: call to non-contract\");\n            }\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    /**\n     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n     * revert reason or using the provided one.\n     *\n     * _Available since v4.3._\n     */\n    function verifyCallResult(\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal pure returns (bytes memory) {\n        if (success) {\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    function _revert(bytes memory returndata, string memory errorMessage) private pure {\n        // Look for revert reason and bubble it up if present\n        if (returndata.length > 0) {\n            // The easiest way to bubble the revert reason is using memory via assembly\n            /// @solidity memory-safe-assembly\n            assembly {\n                let returndata_size := mload(returndata)\n                revert(add(32, returndata), returndata_size)\n            }\n        } else {\n            revert(errorMessage);\n        }\n    }\n}\n"},"src/libraries/TStorage.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.28;\n\n/// @title Transient storage utils\nlibrary TStorage {\n    /// @notice Loads a boolean value from transient storage at a given slot.\n    /// @param slot The storage slot to read from.\n    /// @return value The boolean value stored at the specified slot.\n    function tload(bytes32 slot) internal view returns (bool value) {\n        assembly {\n            value := tload(slot)\n        }\n    }\n\n    /// @notice Stores a boolean value in transient storage at a given slot.\n    /// @param slot The storage slot to write to.\n    /// @param value The boolean value to store at the specified slot.\n    function tstore(bytes32 slot, bool value) internal {\n        assembly {\n            tstore(slot, value)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC20.sol\";\nimport \"./extensions/IERC20Metadata.sol\";\nimport \"../../utils/Context.sol\";\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n * For a generic mechanism see {ERC20PresetMinterPauser}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * The default value of {decimals} is 18. To change this, you should override\n * this function so it returns a different value.\n *\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\n * instead returning `false` on failure. This behavior is nonetheless\n * conventional and does not conflict with the expectations of ERC20\n * applications.\n *\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\n * This allows applications to reconstruct the allowance for all accounts just\n * by listening to said events. Other implementations of the EIP may not emit\n * these events, as it isn't required by the specification.\n *\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\n * functions have been added to mitigate the well-known issues around setting\n * allowances. See {IERC20-approve}.\n */\ncontract ERC20 is Context, IERC20, IERC20Metadata {\n    mapping(address => uint256) private _balances;\n\n    mapping(address => mapping(address => uint256)) private _allowances;\n\n    uint256 private _totalSupply;\n\n    string private _name;\n    string private _symbol;\n\n    /**\n     * @dev Sets the values for {name} and {symbol}.\n     *\n     * All two of these values are immutable: they can only be set once during\n     * construction.\n     */\n    constructor(string memory name_, string memory symbol_) {\n        _name = name_;\n        _symbol = symbol_;\n    }\n\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() public view virtual override returns (string memory) {\n        return _name;\n    }\n\n    /**\n     * @dev Returns the symbol of the token, usually a shorter version of the\n     * name.\n     */\n    function symbol() public view virtual override returns (string memory) {\n        return _symbol;\n    }\n\n    /**\n     * @dev Returns the number of decimals used to get its user representation.\n     * For example, if `decimals` equals `2`, a balance of `505` tokens should\n     * be displayed to a user as `5.05` (`505 / 10 ** 2`).\n     *\n     * Tokens usually opt for a value of 18, imitating the relationship between\n     * Ether and Wei. This is the default value returned by this function, unless\n     * it's overridden.\n     *\n     * NOTE: This information is only used for _display_ purposes: it in\n     * no way affects any of the arithmetic of the contract, including\n     * {IERC20-balanceOf} and {IERC20-transfer}.\n     */\n    function decimals() public view virtual override returns (uint8) {\n        return 18;\n    }\n\n    /**\n     * @dev See {IERC20-totalSupply}.\n     */\n    function totalSupply() public view virtual override returns (uint256) {\n        return _totalSupply;\n    }\n\n    /**\n     * @dev See {IERC20-balanceOf}.\n     */\n    function balanceOf(address account) public view virtual override returns (uint256) {\n        return _balances[account];\n    }\n\n    /**\n     * @dev See {IERC20-transfer}.\n     *\n     * Requirements:\n     *\n     * - `to` cannot be the zero address.\n     * - the caller must have a balance of at least `amount`.\n     */\n    function transfer(address to, uint256 amount) public virtual override returns (bool) {\n        address owner = _msgSender();\n        _transfer(owner, to, amount);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-allowance}.\n     */\n    function allowance(address owner, address spender) public view virtual override returns (uint256) {\n        return _allowances[owner][spender];\n    }\n\n    /**\n     * @dev See {IERC20-approve}.\n     *\n     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\n     * `transferFrom`. This is semantically equivalent to an infinite approval.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function approve(address spender, uint256 amount) public virtual override returns (bool) {\n        address owner = _msgSender();\n        _approve(owner, spender, amount);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-transferFrom}.\n     *\n     * Emits an {Approval} event indicating the updated allowance. This is not\n     * required by the EIP. See the note at the beginning of {ERC20}.\n     *\n     * NOTE: Does not update the allowance if the current allowance\n     * is the maximum `uint256`.\n     *\n     * Requirements:\n     *\n     * - `from` and `to` cannot be the zero address.\n     * - `from` must have a balance of at least `amount`.\n     * - the caller must have allowance for ``from``'s tokens of at least\n     * `amount`.\n     */\n    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {\n        address spender = _msgSender();\n        _spendAllowance(from, spender, amount);\n        _transfer(from, to, amount);\n        return true;\n    }\n\n    /**\n     * @dev Atomically increases the allowance granted to `spender` by the caller.\n     *\n     * This is an alternative to {approve} that can be used as a mitigation for\n     * problems described in {IERC20-approve}.\n     *\n     * Emits an {Approval} event indicating the updated allowance.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\n        address owner = _msgSender();\n        _approve(owner, spender, allowance(owner, spender) + addedValue);\n        return true;\n    }\n\n    /**\n     * @dev Atomically decreases the allowance granted to `spender` by the caller.\n     *\n     * This is an alternative to {approve} that can be used as a mitigation for\n     * problems described in {IERC20-approve}.\n     *\n     * Emits an {Approval} event indicating the updated allowance.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     * - `spender` must have allowance for the caller of at least\n     * `subtractedValue`.\n     */\n    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\n        address owner = _msgSender();\n        uint256 currentAllowance = allowance(owner, spender);\n        require(currentAllowance >= subtractedValue, \"ERC20: decreased allowance below zero\");\n        unchecked {\n            _approve(owner, spender, currentAllowance - subtractedValue);\n        }\n\n        return true;\n    }\n\n    /**\n     * @dev Moves `amount` of tokens from `from` to `to`.\n     *\n     * This internal function is equivalent to {transfer}, and can be used to\n     * e.g. implement automatic token fees, slashing mechanisms, etc.\n     *\n     * Emits a {Transfer} event.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `from` must have a balance of at least `amount`.\n     */\n    function _transfer(address from, address to, uint256 amount) internal virtual {\n        require(from != address(0), \"ERC20: transfer from the zero address\");\n        require(to != address(0), \"ERC20: transfer to the zero address\");\n\n        _beforeTokenTransfer(from, to, amount);\n\n        uint256 fromBalance = _balances[from];\n        require(fromBalance >= amount, \"ERC20: transfer amount exceeds balance\");\n        unchecked {\n            _balances[from] = fromBalance - amount;\n            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\n            // decrementing then incrementing.\n            _balances[to] += amount;\n        }\n\n        emit Transfer(from, to, amount);\n\n        _afterTokenTransfer(from, to, amount);\n    }\n\n    /** @dev Creates `amount` tokens and assigns them to `account`, increasing\n     * the total supply.\n     *\n     * Emits a {Transfer} event with `from` set to the zero address.\n     *\n     * Requirements:\n     *\n     * - `account` cannot be the zero address.\n     */\n    function _mint(address account, uint256 amount) internal virtual {\n        require(account != address(0), \"ERC20: mint to the zero address\");\n\n        _beforeTokenTransfer(address(0), account, amount);\n\n        _totalSupply += amount;\n        unchecked {\n            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\n            _balances[account] += amount;\n        }\n        emit Transfer(address(0), account, amount);\n\n        _afterTokenTransfer(address(0), account, amount);\n    }\n\n    /**\n     * @dev Destroys `amount` tokens from `account`, reducing the\n     * total supply.\n     *\n     * Emits a {Transfer} event with `to` set to the zero address.\n     *\n     * Requirements:\n     *\n     * - `account` cannot be the zero address.\n     * - `account` must have at least `amount` tokens.\n     */\n    function _burn(address account, uint256 amount) internal virtual {\n        require(account != address(0), \"ERC20: burn from the zero address\");\n\n        _beforeTokenTransfer(account, address(0), amount);\n\n        uint256 accountBalance = _balances[account];\n        require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n        unchecked {\n            _balances[account] = accountBalance - amount;\n            // Overflow not possible: amount <= accountBalance <= totalSupply.\n            _totalSupply -= amount;\n        }\n\n        emit Transfer(account, address(0), amount);\n\n        _afterTokenTransfer(account, address(0), amount);\n    }\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\n     *\n     * This internal function is equivalent to `approve`, and can be used to\n     * e.g. set automatic allowances for certain subsystems, etc.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `owner` cannot be the zero address.\n     * - `spender` cannot be the zero address.\n     */\n    function _approve(address owner, address spender, uint256 amount) internal virtual {\n        require(owner != address(0), \"ERC20: approve from the zero address\");\n        require(spender != address(0), \"ERC20: approve to the zero address\");\n\n        _allowances[owner][spender] = amount;\n        emit Approval(owner, spender, amount);\n    }\n\n    /**\n     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\n     *\n     * Does not update the allowance amount in case of infinite allowance.\n     * Revert if not enough allowance is available.\n     *\n     * Might emit an {Approval} event.\n     */\n    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {\n        uint256 currentAllowance = allowance(owner, spender);\n        if (currentAllowance != type(uint256).max) {\n            require(currentAllowance >= amount, \"ERC20: insufficient allowance\");\n            unchecked {\n                _approve(owner, spender, currentAllowance - amount);\n            }\n        }\n    }\n\n    /**\n     * @dev Hook that is called before any transfer of tokens. This includes\n     * minting and burning.\n     *\n     * Calling conditions:\n     *\n     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n     * will be transferred to `to`.\n     * - when `from` is zero, `amount` tokens will be minted for `to`.\n     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\n     * - `from` and `to` are never both zero.\n     *\n     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n     */\n    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}\n\n    /**\n     * @dev Hook that is called after any transfer of tokens. This includes\n     * minting and burning.\n     *\n     * Calling conditions:\n     *\n     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n     * has been transferred to `to`.\n     * - when `from` is zero, `amount` tokens have been minted for `to`.\n     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\n     * - `from` and `to` are never both zero.\n     *\n     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n     */\n    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\nimport \"../extensions/IERC20Permit.sol\";\nimport \"../../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    using Address for address;\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n    }\n\n    /**\n     * @dev Deprecated. This function has issues similar to the ones found in\n     * {IERC20-approve}, and its usage is discouraged.\n     *\n     * Whenever possible, use {safeIncreaseAllowance} and\n     * {safeDecreaseAllowance} instead.\n     */\n    function safeApprove(IERC20 token, address spender, uint256 value) internal {\n        // safeApprove should only be called when setting an initial allowance,\n        // or when resetting it to zero. To increase and decrease it, use\n        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n        require(\n            (value == 0) || (token.allowance(address(this), spender) == 0),\n            \"SafeERC20: approve from non-zero to non-zero allowance\"\n        );\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        unchecked {\n            uint256 oldAllowance = token.allowance(address(this), spender);\n            require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\n        }\n    }\n\n    /**\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n     * to be set to zero before setting it to a non-zero value, such as USDT.\n     */\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\n        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\n\n        if (!_callOptionalReturnBool(token, approvalCall)) {\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\n            _callOptionalReturn(token, approvalCall);\n        }\n    }\n\n    /**\n     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\n     * Revert on invalid signature.\n     */\n    function safePermit(\n        IERC20Permit token,\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        uint256 nonceBefore = token.nonces(owner);\n        token.permit(owner, spender, value, deadline, v, r, s);\n        uint256 nonceAfter = token.nonces(owner);\n        require(nonceAfter == nonceBefore + 1, \"SafeERC20: permit did not succeed\");\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     */\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n        // the target address contains contract code and also asserts for success in the low-level call.\n\n        bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n        require(returndata.length == 0 || abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     *\n     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\n     */\n    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\n        // and not revert is the subcall reverts.\n\n        (bool success, bytes memory returndata) = address(token).call(data);\n        return\n            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n *\n * _Available since v4.1._\n */\ninterface IERC20Metadata is IERC20 {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Context.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Strings.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/Math.sol\";\nimport \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n    bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n    uint8 private constant _ADDRESS_LENGTH = 20;\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n     */\n    function toString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            uint256 length = Math.log10(value) + 1;\n            string memory buffer = new string(length);\n            uint256 ptr;\n            /// @solidity memory-safe-assembly\n            assembly {\n                ptr := add(buffer, add(32, length))\n            }\n            while (true) {\n                ptr--;\n                /// @solidity memory-safe-assembly\n                assembly {\n                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n                }\n                value /= 10;\n                if (value == 0) break;\n            }\n            return buffer;\n        }\n    }\n\n    /**\n     * @dev Converts a `int256` to its ASCII `string` decimal representation.\n     */\n    function toString(int256 value) internal pure returns (string memory) {\n        return string(abi.encodePacked(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value))));\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            return toHexString(value, Math.log256(value) + 1);\n        }\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n     */\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n        bytes memory buffer = new bytes(2 * length + 2);\n        buffer[0] = \"0\";\n        buffer[1] = \"x\";\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\n            buffer[i] = _SYMBOLS[value & 0xf];\n            value >>= 4;\n        }\n        require(value == 0, \"Strings: hex length insufficient\");\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n     */\n    function toHexString(address addr) internal pure returns (string memory) {\n        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n    }\n\n    /**\n     * @dev Returns true if the two strings are equal.\n     */\n    function equal(string memory a, string memory b) internal pure returns (bool) {\n        return keccak256(bytes(a)) == keccak256(bytes(b));\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Library for reading and writing primitive types to specific storage slots.\n *\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\n *\n * Example usage to set ERC1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n *\n *     function _getImplementation() internal view returns (address) {\n *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\n *     }\n *\n *     function _setImplementation(address newImplementation) internal {\n *         require(Address.isContract(newImplementation), \"ERC1967: new implementation is not a contract\");\n *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n *     }\n * }\n * ```\n *\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\n * _Available since v4.9 for `string`, `bytes`._\n */\nlibrary StorageSlot {\n    struct AddressSlot {\n        address value;\n    }\n\n    struct BooleanSlot {\n        bool value;\n    }\n\n    struct Bytes32Slot {\n        bytes32 value;\n    }\n\n    struct Uint256Slot {\n        uint256 value;\n    }\n\n    struct StringSlot {\n        string value;\n    }\n\n    struct BytesSlot {\n        bytes value;\n    }\n\n    /**\n     * @dev Returns an `AddressSlot` with member `value` located at `slot`.\n     */\n    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\n     */\n    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\n     */\n    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\n     */\n    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `StringSlot` with member `value` located at `slot`.\n     */\n    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n     */\n    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := store.slot\n        }\n    }\n\n    /**\n     * @dev Returns an `BytesSlot` with member `value` located at `slot`.\n     */\n    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n     */\n    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := store.slot\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n *\n * ==== Security Considerations\n *\n * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature\n * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be\n * considered as an intention to spend the allowance in any specific way. The second is that because permits have\n * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should\n * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be\n * generally recommended is:\n *\n * ```solidity\n * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {\n *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}\n *     doThing(..., value);\n * }\n *\n * function doThing(..., uint256 value) public {\n *     token.safeTransferFrom(msg.sender, address(this), value);\n *     ...\n * }\n * ```\n *\n * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of\n * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also\n * {SafeERC20-safeTransferFrom}).\n *\n * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so\n * contracts should have entry points that don't rely on permit.\n */\ninterface IERC20Permit {\n    /**\n     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n     * given ``owner``'s signed approval.\n     *\n     * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n     * ordering also apply here.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     * - `deadline` must be a timestamp in the future.\n     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n     * over the EIP712-formatted function arguments.\n     * - the signature must use ``owner``'s current nonce (see {nonces}).\n     *\n     * For more information on the signature format, see the\n     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n     * section].\n     *\n     * CAUTION: See Security Considerations above.\n     */\n    function permit(\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external;\n\n    /**\n     * @dev Returns the current nonce for `owner`. This value must be\n     * included whenever a signature is generated for {permit}.\n     *\n     * Every successful call to {permit} increases ``owner``'s nonce by one. This\n     * prevents a signature from being used multiple times.\n     */\n    function nonces(address owner) external view returns (uint256);\n\n    /**\n     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n     */\n    // solhint-disable-next-line func-name-mixedcase\n    function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    enum Rounding {\n        Down, // Toward negative infinity\n        Up, // Toward infinity\n        Zero // Toward zero\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b) / 2 can overflow.\n        return (a & b) + (a ^ b) / 2;\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds up instead\n     * of rounding down.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b - 1) / b can overflow on addition, so we distribute.\n        return a == 0 ? 0 : (a - 1) / b + 1;\n    }\n\n    /**\n     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n     * with further edits by Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n            // variables such that product = prod1 * 2^256 + prod0.\n            uint256 prod0; // Least significant 256 bits of the product\n            uint256 prod1; // Most significant 256 bits of the product\n            assembly {\n                let mm := mulmod(x, y, not(0))\n                prod0 := mul(x, y)\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n            }\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (prod1 == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return prod0 / denominator;\n            }\n\n            // Make sure the result is less than 2^256. Also prevents denominator == 0.\n            require(denominator > prod1, \"Math: mulDiv overflow\");\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [prod1 prod0].\n            uint256 remainder;\n            assembly {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                prod1 := sub(prod1, gt(remainder, prod0))\n                prod0 := sub(prod0, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n            // See https://cs.stackexchange.com/q/138556/92363.\n\n            // Does not overflow because the denominator cannot be zero at this stage in the function.\n            uint256 twos = denominator & (~denominator + 1);\n            assembly {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [prod1 prod0] by twos.\n                prod0 := div(prod0, twos)\n\n                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from prod1 into prod0.\n            prod0 |= prod1 * twos;\n\n            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv = 1 mod 2^4.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n            // in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2^8\n            inverse *= 2 - denominator * inverse; // inverse mod 2^16\n            inverse *= 2 - denominator * inverse; // inverse mod 2^32\n            inverse *= 2 - denominator * inverse; // inverse mod 2^64\n            inverse *= 2 - denominator * inverse; // inverse mod 2^128\n            inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n            // is no longer required.\n            result = prod0 * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        uint256 result = mulDiv(x, y, denominator);\n        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n            result += 1;\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n     *\n     * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        if (a == 0) {\n            return 0;\n        }\n\n        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n        //\n        // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n        //\n        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n        //\n        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n        uint256 result = 1 << (log2(a) >> 1);\n\n        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n        // into the expected uint128 result.\n        unchecked {\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            return min(result, a / result);\n        }\n    }\n\n    /**\n     * @notice Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 128;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 64;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 32;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 16;\n            }\n            if (value >> 8 > 0) {\n                value >>= 8;\n                result += 8;\n            }\n            if (value >> 4 > 0) {\n                value >>= 4;\n                result += 4;\n            }\n            if (value >> 2 > 0) {\n                value >>= 2;\n                result += 2;\n            }\n            if (value >> 1 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 16;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 8;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 4;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 2;\n            }\n            if (value >> 8 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n    /**\n     * @dev Returns the largest of two signed numbers.\n     */\n    function max(int256 a, int256 b) internal pure returns (int256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two signed numbers.\n     */\n    function min(int256 a, int256 b) internal pure returns (int256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two signed numbers without overflow.\n     * The result is rounded towards zero.\n     */\n    function average(int256 a, int256 b) internal pure returns (int256) {\n        // Formula from the book \"Hacker's Delight\"\n        int256 x = (a & b) + ((a ^ b) >> 1);\n        return x + (int256(uint256(x) >> 255) & (a ^ b));\n    }\n\n    /**\n     * @dev Returns the absolute unsigned value of a signed value.\n     */\n    function abs(int256 n) internal pure returns (uint256) {\n        unchecked {\n            // must be unchecked in order to support `n = type(int256).min`\n            return uint256(n >= 0 ? n : -n);\n        }\n    }\n}\n"}},"compilation":{"language":"Solidity","compiler":"solc","compilerVersion":"0.8.28+commit.7893614a","compilerSettings":{"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"optimizer":{"runs":2000000,"enabled":true},"evmVersion":"cancun","remappings":[":@openzeppelin/=lib/openzeppelin-contracts/",":@permit2/=lib/permit2/src/",":ds-test/=lib/solmate/lib/ds-test/src/",":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",":forge-gas-snapshot/=lib/permit2/lib/forge-gas-snapshot/src/",":forge-std/=lib/forge-std/src/",":openzeppelin-contracts/=lib/openzeppelin-contracts/",":openzeppelin/=lib/openzeppelin-contracts/contracts/",":permit2/=lib/permit2/",":solmate/=lib/solmate/"]},"name":"CreditVault","fullyQualifiedName":"src/CreditVault.sol:CreditVault"},"abi":[{"type":"constructor","inputs":[],"stateMutability":"nonpayable"},{"name":"EpochUpdateInCoolDown","type":"error","inputs":[]},{"name":"ExchangeRateIncreaseTooMuch","type":"error","inputs":[]},{"name":"InsufficientFundingFees","type":"error","inputs":[]},{"name":"InsufficientUnderlying","type":"error","inputs":[]},{"name":"InvalidLPToken","type":"error","inputs":[]},{"name":"InvalidMarket","type":"error","inputs":[]},{"name":"InvalidPositionUpdateAmount","type":"error","inputs":[]},{"name":"InvalidShortString","type":"error","inputs":[]},{"name":"InvalidSignature","type":"error","inputs":[]},{"name":"InvalidUnderlying","type":"error","inputs":[]},{"name":"LiquidatorRecipientConflict","type":"error","inputs":[]},{"name":"NonceUsed","type":"error","inputs":[]},{"name":"NotTraderOrLiquidator","type":"error","inputs":[]},{"name":"OnlyCreditPool","type":"error","inputs":[]},{"name":"OnlyEpochUpdater","type":"error","inputs":[]},{"name":"OnlyFeeWithdrawer","type":"error","inputs":[]},{"name":"OnlyLiquidator","type":"error","inputs":[]},{"name":"OnlyLpToken","type":"error","inputs":[]},{"name":"OnlyTrader","type":"error","inputs":[]},{"name":"RebalanceLimitExceeded","type":"error","inputs":[]},{"name":"ReentrancyGuardReentrantCall","type":"error","inputs":[]},{"name":"RequestExpired","type":"error","inputs":[]},{"name":"StringTooLong","type":"error","inputs":[{"name":"str","type":"string","internalType":"string"}]},{"name":"TokenAlreadyListed","type":"error","inputs":[]},{"name":"TraderRecipientConflict","type":"error","inputs":[]},{"name":"ZeroAddress","type":"error","inputs":[]},{"name":"CollateralAdded","type":"event","inputs":[{"name":"trader","type":"address","indexed":false,"internalType":"address"},{"name":"collateralUpdates","type":"tuple[]","indexed":false,"components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]"}],"anonymous":false},{"name":"CollateralRemoved","type":"event","inputs":[{"name":"trader","type":"address","indexed":false,"internalType":"address"},{"name":"collateralUpdates","type":"tuple[]","indexed":false,"components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]"}],"anonymous":false},{"name":"CreditPoolUpdated","type":"event","inputs":[{"name":"pool","type":"address","indexed":true,"internalType":"address"},{"name":"isActive","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"name":"EIP712DomainChanged","type":"event","inputs":[],"anonymous":false},{"name":"EpochUpdated","type":"event","inputs":[{"name":"accruedFundingFees","type":"tuple[]","indexed":false,"components":[{"name":"trader","type":"address","internalType":"address"},{"name":"feeUpdates","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"fundingFee","type":"uint256","internalType":"uint256"},{"name":"reserveFee","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.FundingFeeAmount[]"}],"internalType":"struct ICreditVault.AccruedFundingFee[]"}],"anonymous":false},{"name":"EpochUpdaterSet","type":"event","inputs":[{"name":"epochUpdater","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"FeeWithdrawerSet","type":"event","inputs":[{"name":"feeWithdrawer","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"Liquidated","type":"event","inputs":[{"name":"trader","type":"address","indexed":false,"internalType":"address"},{"name":"liquidator","type":"address","indexed":false,"internalType":"address"},{"name":"positionUpdates","type":"tuple[]","indexed":false,"components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"int256","internalType":"int256"}],"internalType":"struct ICreditVault.TokenAmountInt[]"},{"name":"claimCollaterals","type":"tuple[]","indexed":false,"components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]"}],"anonymous":false},{"name":"LiquidatorSet","type":"event","inputs":[{"name":"liquidator","type":"address","indexed":false,"internalType":"address"},{"name":"status","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"name":"MarketListed","type":"event","inputs":[{"name":"lpToken","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"OwnershipTransferStarted","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"OwnershipTransferred","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"RebalanceCapUpdated","type":"event","inputs":[{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"limit","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Repaid","type":"event","inputs":[{"name":"trader","type":"address","indexed":false,"internalType":"address"},{"name":"repayments","type":"tuple[]","indexed":false,"components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"int256","internalType":"int256"}],"internalType":"struct ICreditVault.TokenAmountInt[]"}],"anonymous":false},{"name":"ReserveWithdrawn","type":"event","inputs":[{"name":"underlying","type":"address","indexed":false,"internalType":"address"},{"name":"recipient","type":"address","indexed":false,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Settled","type":"event","inputs":[{"name":"trader","type":"address","indexed":false,"internalType":"address"},{"name":"positionUpdates","type":"tuple[]","indexed":false,"components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"int256","internalType":"int256"}],"internalType":"struct ICreditVault.TokenAmountInt[]"}],"anonymous":false},{"name":"SignerSet","type":"event","inputs":[{"name":"signer","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"TraderSet","type":"event","inputs":[{"name":"trader","type":"address","indexed":true,"internalType":"address"},{"name":"isTrader","type":"bool","indexed":false,"internalType":"bool"},{"name":"isWhitelistTrader","type":"bool","indexed":false,"internalType":"bool"},{"name":"settler","type":"address","indexed":false,"internalType":"address"},{"name":"recipient","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"acceptOwnership","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"addCollateral","type":"function","inputs":[{"name":"tokens","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]"},{"name":"trader","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"allLPTokens","type":"function","inputs":[{"name":"","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"contract NativeLPToken"}],"stateMutability":"view"},{"name":"collateral","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"creditPools","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"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":"epochUpdate","type":"function","inputs":[{"name":"accruedFees","type":"tuple[]","components":[{"name":"trader","type":"address","internalType":"address"},{"name":"feeUpdates","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"fundingFee","type":"uint256","internalType":"uint256"},{"name":"reserveFee","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.FundingFeeAmount[]"}],"internalType":"struct ICreditVault.AccruedFundingFee[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"epochUpdater","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"feeWithdrawer","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"lastEpochUpdateTimestamp","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"liquidate","type":"function","inputs":[{"name":"request","type":"tuple","components":[{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"},{"name":"trader","type":"address","internalType":"address"},{"name":"positionUpdates","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"int256","internalType":"int256"}],"internalType":"struct ICreditVault.TokenAmountInt[]"},{"name":"claimCollaterals","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]"}],"internalType":"struct ICreditVault.LiquidationRequest"},{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"liquidatorToRecipient","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"liquidators","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"lpTokens","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"contract NativeLPToken"}],"stateMutability":"view"},{"name":"nonces","type":"function","inputs":[{"name":"","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"owner","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"pay","type":"function","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"pendingOwner","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"positions","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"int256","internalType":"int256"}],"stateMutability":"view"},{"name":"rebalanceCaps","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"limit","type":"uint256","internalType":"uint256"},{"name":"used","type":"uint256","internalType":"uint256"},{"name":"lastDay","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"removeCollateral","type":"function","inputs":[{"name":"request","type":"tuple","components":[{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"},{"name":"trader","type":"address","internalType":"address"},{"name":"tokens","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]"}],"internalType":"struct ICreditVault.RemoveCollateralRequest"},{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"renounceOwnership","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"repay","type":"function","inputs":[{"name":"positionUpdates","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"int256","internalType":"int256"}],"internalType":"struct ICreditVault.TokenAmountInt[]"},{"name":"trader","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"reserveFees","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"setAllowance","type":"function","inputs":[{"name":"tokens","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]"},{"name":"pool","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setCreditPool","type":"function","inputs":[{"name":"pool","type":"address","internalType":"address"},{"name":"isActive","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setEpochUpdater","type":"function","inputs":[{"name":"_epochUpdater","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setFeeWithdrawer","type":"function","inputs":[{"name":"_feeWithdrawer","type":"address","internalType":"address payable"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setLiquidator","type":"function","inputs":[{"name":"liquidator","type":"address","internalType":"address"},{"name":"recipient","type":"address","internalType":"address"},{"name":"status","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setRebalanceCap","type":"function","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"token","type":"address","internalType":"address"},{"name":"limit","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setSigner","type":"function","inputs":[{"name":"_signer","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setTrader","type":"function","inputs":[{"name":"trader","type":"address","internalType":"address"},{"name":"settler","type":"address","internalType":"address"},{"name":"recipient","type":"address","internalType":"address"},{"name":"isTrader","type":"bool","internalType":"bool"},{"name":"isWhitelistTrader","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"settle","type":"function","inputs":[{"name":"request","type":"tuple","components":[{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"},{"name":"trader","type":"address","internalType":"address"},{"name":"positionUpdates","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"int256","internalType":"int256"}],"internalType":"struct ICreditVault.TokenAmountInt[]"}],"internalType":"struct ICreditVault.SettlementRequest"},{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"signer","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"supportMarket","type":"function","inputs":[{"name":"lpToken","type":"address","internalType":"contract NativeLPToken"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"supportedMarkets","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"swapCallback","type":"function","inputs":[{"name":"trader","type":"address","internalType":"address"},{"name":"tokenIn","type":"address","internalType":"address"},{"name":"amountIn","type":"int256","internalType":"int256"},{"name":"tokenOut","type":"address","internalType":"address"},{"name":"amountOut","type":"int256","internalType":"int256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"traderToRecipient","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"traderToSettler","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"traders","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"transferOwnership","type":"function","inputs":[{"name":"newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"whitelistTraders","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"withdrawReserve","type":"function","inputs":[{"name":"underlying","type":"address","internalType":"address"},{"name":"recipient","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"}],"metadata":{"compiler":{"version":"0.8.28+commit.7893614a"},"language":"Solidity","output":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EpochUpdateInCoolDown","type":"error"},{"inputs":[],"name":"ExchangeRateIncreaseTooMuch","type":"error"},{"inputs":[],"name":"InsufficientFundingFees","type":"error"},{"inputs":[],"name":"InsufficientUnderlying","type":"error"},{"inputs":[],"name":"InvalidLPToken","type":"error"},{"inputs":[],"name":"InvalidMarket","type":"error"},{"inputs":[],"name":"InvalidPositionUpdateAmount","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidUnderlying","type":"error"},{"inputs":[],"name":"LiquidatorRecipientConflict","type":"error"},{"inputs":[],"name":"NonceUsed","type":"error"},{"inputs":[],"name":"NotTraderOrLiquidator","type":"error"},{"inputs":[],"name":"OnlyCreditPool","type":"error"},{"inputs":[],"name":"OnlyEpochUpdater","type":"error"},{"inputs":[],"name":"OnlyFeeWithdrawer","type":"error"},{"inputs":[],"name":"OnlyLiquidator","type":"error"},{"inputs":[],"name":"OnlyLpToken","type":"error"},{"inputs":[],"name":"OnlyTrader","type":"error"},{"inputs":[],"name":"RebalanceLimitExceeded","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"RequestExpired","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"inputs":[],"name":"TokenAlreadyListed","type":"error"},{"inputs":[],"name":"TraderRecipientConflict","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"trader","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"indexed":false,"internalType":"struct ICreditVault.TokenAmountUint[]","name":"collateralUpdates","type":"tuple[]"}],"name":"CollateralAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"trader","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"indexed":false,"internalType":"struct ICreditVault.TokenAmountUint[]","name":"collateralUpdates","type":"tuple[]"}],"name":"CollateralRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"bool","name":"isActive","type":"bool"}],"name":"CreditPoolUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"trader","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"fundingFee","type":"uint256"},{"internalType":"uint256","name":"reserveFee","type":"uint256"}],"internalType":"struct ICreditVault.FundingFeeAmount[]","name":"feeUpdates","type":"tuple[]"}],"indexed":false,"internalType":"struct ICreditVault.AccruedFundingFee[]","name":"accruedFundingFees","type":"tuple[]"}],"name":"EpochUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"epochUpdater","type":"address"}],"name":"EpochUpdaterSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeWithdrawer","type":"address"}],"name":"FeeWithdrawerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"trader","type":"address"},{"indexed":false,"internalType":"address","name":"liquidator","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"int256","name":"amount","type":"int256"}],"indexed":false,"internalType":"struct ICreditVault.TokenAmountInt[]","name":"positionUpdates","type":"tuple[]"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"indexed":false,"internalType":"struct ICreditVault.TokenAmountUint[]","name":"claimCollaterals","type":"tuple[]"}],"name":"Liquidated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"liquidator","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"LiquidatorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"lpToken","type":"address"}],"name":"MarketListed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"limit","type":"uint256"}],"name":"RebalanceCapUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"trader","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"int256","name":"amount","type":"int256"}],"indexed":false,"internalType":"struct ICreditVault.TokenAmountInt[]","name":"repayments","type":"tuple[]"}],"name":"Repaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"underlying","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ReserveWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"trader","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"int256","name":"amount","type":"int256"}],"indexed":false,"internalType":"struct ICreditVault.TokenAmountInt[]","name":"positionUpdates","type":"tuple[]"}],"name":"Settled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"signer","type":"address"}],"name":"SignerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"trader","type":"address"},{"indexed":false,"internalType":"bool","name":"isTrader","type":"bool"},{"indexed":false,"internalType":"bool","name":"isWhitelistTrader","type":"bool"},{"indexed":false,"internalType":"address","name":"settler","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"}],"name":"TraderSet","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]","name":"tokens","type":"tuple[]"},{"internalType":"address","name":"trader","type":"address"}],"name":"addCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allLPTokens","outputs":[{"internalType":"contract NativeLPToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"collateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"creditPools","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"trader","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"fundingFee","type":"uint256"},{"internalType":"uint256","name":"reserveFee","type":"uint256"}],"internalType":"struct ICreditVault.FundingFeeAmount[]","name":"feeUpdates","type":"tuple[]"}],"internalType":"struct ICreditVault.AccruedFundingFee[]","name":"accruedFees","type":"tuple[]"}],"name":"epochUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"epochUpdater","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeWithdrawer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastEpochUpdateTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"address","name":"trader","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"int256","name":"amount","type":"int256"}],"internalType":"struct ICreditVault.TokenAmountInt[]","name":"positionUpdates","type":"tuple[]"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]","name":"claimCollaterals","type":"tuple[]"}],"internalType":"struct ICreditVault.LiquidationRequest","name":"request","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"liquidate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"liquidatorToRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"liquidators","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lpTokens","outputs":[{"internalType":"contract NativeLPToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nonces","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"pay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"positions","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"rebalanceCaps","outputs":[{"internalType":"uint256","name":"limit","type":"uint256"},{"internalType":"uint256","name":"used","type":"uint256"},{"internalType":"uint256","name":"lastDay","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"address","name":"trader","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]","name":"tokens","type":"tuple[]"}],"internalType":"struct ICreditVault.RemoveCollateralRequest","name":"request","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"removeCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"int256","name":"amount","type":"int256"}],"internalType":"struct ICreditVault.TokenAmountInt[]","name":"positionUpdates","type":"tuple[]"},{"internalType":"address","name":"trader","type":"address"}],"name":"repay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"reserveFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]","name":"tokens","type":"tuple[]"},{"internalType":"address","name":"pool","type":"address"}],"name":"setAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setCreditPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_epochUpdater","type":"address"}],"name":"setEpochUpdater","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_feeWithdrawer","type":"address"}],"name":"setFeeWithdrawer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"liquidator","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setLiquidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setRebalanceCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"trader","type":"address"},{"internalType":"address","name":"settler","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"isTrader","type":"bool"},{"internalType":"bool","name":"isWhitelistTrader","type":"bool"}],"name":"setTrader","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"address","name":"trader","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"int256","name":"amount","type":"int256"}],"internalType":"struct ICreditVault.TokenAmountInt[]","name":"positionUpdates","type":"tuple[]"}],"internalType":"struct ICreditVault.SettlementRequest","name":"request","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"settle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract NativeLPToken","name":"lpToken","type":"address"}],"name":"supportMarket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"supportedMarkets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"trader","type":"address"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"int256","name":"amountIn","type":"int256"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"int256","name":"amountOut","type":"int256"}],"name":"swapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"traderToRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"traderToSettler","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"traders","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistTraders","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"underlying","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawReserve","outputs":[],"stateMutability":"nonpayable","type":"function"}],"devdoc":{"errors":{"ReentrancyGuardReentrantCall()":[{"details":"Unauthorized reentrant call."}]},"events":{"CollateralAdded(address,(address,uint256)[])":{"params":{"collateralUpdates":"Array of collateral token amounts added","trader":"The address of the trader receiving collateral"}},"CollateralRemoved(address,(address,uint256)[])":{"params":{"collateralUpdates":"Array of collateral token amounts removed","trader":"The address of the trader removing collateral"}},"CreditPoolUpdated(address,bool)":{"params":{"isActive":"The new status of the pool","pool":"The address of the credit pool"}},"EIP712DomainChanged()":{"details":"MAY be emitted to signal that the domain could have changed."},"EpochUpdated((address,(address,uint256,uint256)[])[])":{"params":{"accruedFundingFees":"Array of funding fee updates for different traders"}},"Liquidated(address,address,(address,int256)[],(address,uint256)[])":{"params":{"claimCollaterals":"Array of collateral tokens claimed by liquidator","liquidator":"The address performing the liquidation","positionUpdates":"Array of position changes from liquidation","trader":"The address of the trader being liquidated"}},"MarketListed(address)":{"params":{"lpToken":"The address of the newly listed LP token"}},"RebalanceCapUpdated(address,address,uint256)":{"params":{"limit":"The new daily limit (0 means unlimited)","operator":"The trader or liquidator address","token":"The token address"}},"Repaid(address,(address,int256)[])":{"params":{"repayments":"Array of token amounts being repaid","trader":"The address of the trader whose positions are being repaid"}},"Settled(address,(address,int256)[])":{"params":{"positionUpdates":"Array of position changes","trader":"The address of the trader whose positions are being settled"}},"TraderSet(address,bool,bool,address,address)":{"params":{"isTrader":"Whether the address is enabled for trading","isWhitelistTrader":"Whether the trader can bypass credit checks","recipient":"The address authorized to receive tokens from settlements","settler":"The address authorized to settle positions for this trader","trader":"The address of the trader whose info is being updated"}}},"kind":"dev","methods":{"acceptOwnership()":{"details":"The new owner accepts the ownership transfer."},"addCollateral((address,uint256)[],address)":{"details":"PERMISSIONLESS: Anyone can add collateral for any traderOff-chain system will update trader's credit limit off-chain via event emission","params":{"tokens":"Array of {token, amount} structs to be added as collateral","trader":"Address of the trader receiving the collateral"}},"eip712Domain()":{"details":"See {EIP-5267}. _Available since v4.9._"},"epochUpdate((address,(address,uint256,uint256)[])[])":{"details":"Only callable by the epoch updater","params":{"accruedFees":"Array of funding fee updates for different traders"}},"liquidate((uint256,uint256,address,(address,int256)[],(address,uint256)[]),bytes)":{"details":"This transaction requires off-chain calculation to verify if the trader's credit meets the criteria.","params":{"request":"The struct of the liquidation request containing info of long and short positions to liquidate","signature":"The signature of the liquidation request"}},"owner()":{"details":"Returns the address of the current owner."},"pay(address,uint256)":{"details":"Only callable by supported LP tokens","params":{"amount":"Amount of underlying assets to transfer","to":"Recipient of the underlying assets"}},"pendingOwner()":{"details":"Returns the address of the pending owner."},"removeCollateral((uint256,uint256,address,(address,uint256)[]),bytes)":{"details":"This transaction requires off-chain calculation to verify if the trader's credit meets the criteria.","params":{"request":"The struct of the remove collateral request containing info of collateral to remove","signature":"The signature of the remove collateral request"}},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."},"repay((address,int256)[],address)":{"params":{"positionUpdates":"Array of {token, amount} structs representing positions to repay","trader":"Address of the trader whose positions are being repaid"}},"setAllowance((address,uint256)[],address)":{"details":"Only callable by ownerPool must be whitelisted as native pool","params":{"pool":"Address of native pool to receive approval","tokens":"Array of {token, amount} structs to approve"}},"setCreditPool(address,bool)":{"params":{"isActive":"to whitelist, false to remove from whitelist","pool":"The address of credit pool"}},"setEpochUpdater(address)":{"details":"Only callable by ownerEpoch updater is responsible for funding fee updates and distributions","params":{"_epochUpdater":"New epoch updater address (cannot be zero address)"}},"setFeeWithdrawer(address)":{"details":"Only callable by ownerFee withdrawer can claim accumulated funding fees from the vault","params":{"_feeWithdrawer":"New fee withdrawer address (cannot be zero address)"}},"setLiquidator(address,address,bool)":{"details":"Only callable by owner","params":{"liquidator":"The address to grant/revoke liquidator permissions","recipient":"Address authorized to receive tokens from liquidations","status":"True to whitelist, false to remove from whitelist"}},"setRebalanceCap(address,address,uint256)":{"details":"A limit of 0 means unlimited rebalancing is allowed","params":{"limit":"The maximum amount of tokens that can be rebalanced per day (0 for unlimited)","operator":"The address of the trader or liquidator whose limit is being set","token":"The token address for which the limit applies"}},"setSigner(address)":{"details":"Only callable by ownerSigner verifies signatures for settlements, liquidations, and collateral removals","params":{"_signer":"New signer address (cannot be zero address)"}},"setTrader(address,address,address,bool,bool)":{"details":"Only callable by owner","params":{"isTrader":"True to enable trading, false to revoke permissions","isWhitelistTrader":"True to enable whitelist which can bypass credit check","recipient":"Address authorized to receive tokens from settlements and collateral operations","settler":"Address authorized to settle positions on trader's behalf","trader":"Address to configure trading permissions for"}},"settle((uint256,uint256,address,(address,int256)[]),bytes)":{"details":"This transaction requires off-chain calculation to verify if the trader's credit meets the criteria.","params":{"request":"The struct of the settlement request containing info of long and short positions to settle","signature":"The signature of the settlement request"}},"supportMarket(address)":{"details":"Only callable by owner","params":{"lpToken":"Address of the LP token to be listed"}},"swapCallback(address,address,int256,address,int256)":{"details":"Only callable by whitelisted NativePools, it's called after the swap is executed","params":{"amountIn":"The amount of the token that is selling","amountOut":"The amount of the token that is buying","tokenIn":"The address of the token that is selling","tokenOut":"The address of the token that is buying","trader":"The address of the market maker"}},"transferOwnership(address)":{"details":"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner."},"withdrawReserve(address,address,uint256)":{"details":"Only callable by feeWithdrawer","params":{"amount":"The amount of fees to withdraw","recipient":"The address that will receive the fees","underlying":"The token address of the fees to withdraw"}}},"stateVariables":{"creditPools":{"details":"The credit pool lends tokens from the credit vault and must update the trader's position via a callback."},"supportedMarkets":{"details":"If a LP token is supported"},"traderToRecipient":{"details":"Address receives tokens from settlements and collateral operations"}},"title":"CreditVault - Manages trader positions and collateral","version":1},"userdoc":{"errors":{"EpochUpdateInCoolDown()":[{"notice":"Thrown when epoch update is attempted before minimum interval"}],"ExchangeRateIncreaseTooMuch()":[{"notice":"Thrown when LP token exchange rate increases more than allowed"}],"InsufficientFundingFees()":[{"notice":"Thrown when there are insufficient funding fees to withdraw"}],"InsufficientUnderlying()":[{"notice":"Thrown when LP token underlying is insufficient"}],"InvalidLPToken()":[{"notice":"Thrown when LP token address is invalid"}],"InvalidMarket()":[{"notice":"Thrown when market (LP token) is invalid"}],"InvalidPositionUpdateAmount()":[{"notice":"Thrown when position update amount is invalid"}],"InvalidSignature()":[{"notice":"Thrown when signature verification fails"}],"InvalidUnderlying()":[{"notice":"Thrown when underlying are not supported in the credit vault"}],"LiquidatorRecipientConflict()":[{"notice":"Thrown when liquidator and recipient are the same"}],"NonceUsed()":[{"notice":"Thrown when nonce is used"}],"NotTraderOrLiquidator()":[{"notice":"Thrown the address is not a trader or liquidator"}],"OnlyCreditPool()":[{"notice":"Thrown when caller is not the credit pool"}],"OnlyEpochUpdater()":[{"notice":"Thrown when caller is not the epoch updater"}],"OnlyFeeWithdrawer()":[{"notice":"Thrown when caller is not the fee withdrawer"}],"OnlyLiquidator()":[{"notice":"Thrown when caller is not an authorized liquidator"}],"OnlyLpToken()":[{"notice":"Thrown when caller is not an LP token"}],"OnlyTrader()":[{"notice":"Thrown when caller is not an authorized trader"}],"RebalanceLimitExceeded()":[{"notice":"Thrown when rebalance limit is exceeded"}],"RequestExpired()":[{"notice":"Thrown when request has expired"}],"TokenAlreadyListed()":[{"notice":"Thrown when token is already listed"}],"TraderRecipientConflict()":[{"notice":"Thrown when trader, settler and recipient are the same"}],"ZeroAddress()":[{"notice":"Thrown when zero address is provided"}]},"events":{"CollateralAdded(address,(address,uint256)[])":{"notice":"Emitted when collateral is added for a trader"},"CollateralRemoved(address,(address,uint256)[])":{"notice":"Emitted when collateral is removed for a trader"},"CreditPoolUpdated(address,bool)":{"notice":"Emitted when a credit pool's status is updated"},"EpochUpdated((address,(address,uint256,uint256)[])[])":{"notice":"Emitted when epoch funding fees are updated for traders"},"EpochUpdaterSet(address)":{"notice":"Emitted when epoch updater is set"},"FeeWithdrawerSet(address)":{"notice":"Emitted when fee withdrawer is set"},"Liquidated(address,address,(address,int256)[],(address,uint256)[])":{"notice":"Emitted when a trader's positions are liquidated"},"LiquidatorSet(address,bool)":{"notice":"Emitted when liquidator is set"},"MarketListed(address)":{"notice":"Emitted when a new market (LP token) is listed"},"RebalanceCapUpdated(address,address,uint256)":{"notice":"Emitted when a trader or liquidator's rebalance limit is updated for a token"},"Repaid(address,(address,int256)[])":{"notice":"Emitted when a trader's positions are repaid"},"ReserveWithdrawn(address,address,uint256)":{"notice":"Emitted when reserve fees are withdrawn"},"Settled(address,(address,int256)[])":{"notice":"Emitted when a trader's positions are settled"},"SignerSet(address)":{"notice":"Emitted when signer is set"},"TraderSet(address,bool,bool,address,address)":{"notice":"Emitted when a trader's info is updated"}},"kind":"user","methods":{"addCollateral((address,uint256)[],address)":{"notice":"Adds collateral for a trader's position"},"allLPTokens(uint256)":{"notice":"A list of all markets"},"collateral(address,address)":{"notice":"traders' collateral trader => token => amount"},"creditPools(address)":{"notice":"Authorized Native Pool, enable market makers to lend funds from this vault for quoting"},"epochUpdate((address,(address,uint256,uint256)[])[])":{"notice":"Updates funding fees for traders at the end of each epoch"},"epochUpdater()":{"notice":"epoch updater address"},"feeWithdrawer()":{"notice":"Address that can withdraw protocol fees"},"lastEpochUpdateTimestamp(address)":{"notice":"(trader => timestamp)"},"liquidate((uint256,uint256,address,(address,int256)[],(address,uint256)[]),bytes)":{"notice":"Called by liquidators to liquidate the underwater positions"},"liquidatorToRecipient(address)":{"notice":"maps liquidator to their recipient address for liquidations"},"liquidators(address)":{"notice":"whitelist for liquidators"},"lpTokens(address)":{"notice":"map from underlying address to LP token"},"pay(address,uint256)":{"notice":"Transfers underlying assets from vault to recipient"},"positions(address,address)":{"notice":"trader_address => underlying token => amount (positive for long, negative for short)"},"rebalanceCaps(address,address)":{"notice":"Tracks rebalance caps for each trader/liquidator and token"},"removeCollateral((uint256,uint256,address,(address,uint256)[]),bytes)":{"notice":"Called by traders to remove collateral"},"repay((address,int256)[],address)":{"notice":"Repays trader's short positions"},"reserveFees(address)":{"notice":"Mapping of accumulated reserveFees per token (token => fee amount)"},"setAllowance((address,uint256)[],address)":{"notice":"Approves native pool to spend vault's underlying tokens"},"setCreditPool(address,bool)":{"notice":"Updates credit pool status"},"setEpochUpdater(address)":{"notice":"Updates the authorized epoch updater address"},"setFeeWithdrawer(address)":{"notice":"Updates the authorized fee withdrawer address"},"setLiquidator(address,address,bool)":{"notice":"Set or remove liquidator permissions"},"setRebalanceCap(address,address,uint256)":{"notice":"Set or update the daily rebalance limit for a specific trader or liquidator and token"},"setSigner(address)":{"notice":"Updates the authorized signer for permissioned operations"},"setTrader(address,address,address,bool,bool)":{"notice":"Manages trader permissions and settlement addresses"},"settle((uint256,uint256,address,(address,int256)[]),bytes)":{"notice":"Called by traders to settle the positions"},"signer()":{"notice":"signer for permissioned functions: liquidate, settle, removeCollateral, etc."},"supportMarket(address)":{"notice":"Lists a new market (LP token)"},"swapCallback(address,address,int256,address,int256)":{"notice":"Callback function called by NativeRFQPool after swap execution to update trader positions"},"traderToRecipient(address)":{"notice":"maps trader to their recipient address"},"traderToSettler(address)":{"notice":"Maps trader address to settler address which can settle positions on behalf of trader"},"traders(address)":{"notice":"whitelist for traders (Market Makers)"},"whitelistTraders(address)":{"notice":"whitelist traders that can bypass the credit check"},"withdrawReserve(address,address,uint256)":{"notice":"Allows fee withdrawer to claim accumulated funding fees"}},"notice":"Handles asset custody, position settlement, and LP token integration","version":1}},"settings":{"compilationTarget":{"src/CreditVault.sol":"CreditVault"},"evmVersion":"cancun","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":2000000},"remappings":[":@openzeppelin/=lib/openzeppelin-contracts/",":@permit2/=lib/permit2/src/",":ds-test/=lib/solmate/lib/ds-test/src/",":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",":forge-gas-snapshot/=lib/permit2/lib/forge-gas-snapshot/src/",":forge-std/=lib/forge-std/src/",":openzeppelin-contracts/=lib/openzeppelin-contracts/",":openzeppelin/=lib/openzeppelin-contracts/contracts/",":permit2/=lib/permit2/",":solmate/=lib/solmate/"]},"sources":{"lib/openzeppelin-contracts/contracts/access/Ownable.sol":{"keccak256":"0xba43b97fba0d32eb4254f6a5a297b39a19a247082a02d6e69349e071e2946218","license":"MIT","urls":["bzz-raw://fc980984badf3984b6303b377711220e067722bbd6a135b24669ff5069ef9f32","dweb:/ipfs/QmPHXMSXj99XjSVM21YsY6aNtLLjLVXDbyN76J5HQYvvrz"]},"lib/openzeppelin-contracts/contracts/access/Ownable2Step.sol":{"keccak256":"0xde231558366826d7cb61725af8147965a61c53b77a352cc8c9af38fc5a92ac3c","license":"MIT","urls":["bzz-raw://1fd55624076bf61d44af5ff351919e32dda748567acfbdd6ba3d6c7be61c758e","dweb:/ipfs/QmSki4dTrf4GPm7MTpG3fk8mC7rnjwd2zMomLp6jLuF63Q"]},"lib/openzeppelin-contracts/contracts/interfaces/IERC5267.sol":{"keccak256":"0xac6c2efc64baccbde4904ae18ed45139c9aa8cff96d6888344d1e4d2eb8b659f","license":"MIT","urls":["bzz-raw://6e416a280c610b6b7a5f158e4a41aacfaec01ef14d5d1de13b46be9e090265fc","dweb:/ipfs/QmYZP2KrdyccBbhLZT42auhvBTMkwiwUS3V6HWb42rbwbG"]},"lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol":{"keccak256":"0xa56ca923f70c1748830700250b19c61b70db9a683516dc5e216694a50445d99c","license":"MIT","urls":["bzz-raw://cac938788bc4be12101e59d45588b4e059579f4e61062e1cda8d6b06c0191b15","dweb:/ipfs/QmV2JKCyjTVH3rkWNrfdJRhAT7tZ3usAN2XcnD4h53Mvih"]},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"keccak256":"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305","license":"MIT","urls":["bzz-raw://bd39944e8fc06be6dbe2dd1d8449b5336e23c6a7ba3e8e9ae5ae0f37f35283f5","dweb:/ipfs/QmPV3FGYjVwvKSgAXKUN3r9T9GwniZz83CxBpM7vyj2G53"]},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"keccak256":"0x8de418a5503946cabe331f35fe242d3201a73f67f77aaeb7110acb1f30423aca","license":"MIT","urls":["bzz-raw://5a376d3dda2cb70536c0a45c208b29b34ac560c4cb4f513a42079f96ba47d2dd","dweb:/ipfs/QmZQg6gn1sUpM8wHzwNvSnihumUCAhxD119MpXeKp8B9s8"]},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol":{"keccak256":"0xb264c03a3442eb37a68ad620cefd1182766b58bee6cec40343480392d6b14d69","license":"MIT","urls":["bzz-raw://28879d01fd22c07b44f006612775f8577defbe459cb01685c5e25cd518c91a71","dweb:/ipfs/QmVgfkwv2Fxw6hhTcDUZhE7NkoSKjab3ipM7UaRbt6uXb5"]},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"keccak256":"0xabefac93435967b4d36a4fabcbdbb918d1f0b7ae3c3d85bc30923b326c927ed1","license":"MIT","urls":["bzz-raw://9d213d3befca47da33f6db0310826bcdb148299805c10d77175ecfe1d06a9a68","dweb:/ipfs/QmRgCn6SP1hbBkExUADFuDo8xkT4UU47yjNF5FhCeRbQmS"]},"lib/openzeppelin-contracts/contracts/utils/Address.sol":{"keccak256":"0x006dd67219697fe68d7fbfdea512e7c4cb64a43565ed86171d67e844982da6fa","license":"MIT","urls":["bzz-raw://2455248c8ddd9cc6a7af76a13973cddf222072427e7b0e2a7d1aff345145e931","dweb:/ipfs/QmfYjnjRbWqYpuxurqveE6HtzsY1Xx323J428AKQgtBJZm"]},"lib/openzeppelin-contracts/contracts/utils/Context.sol":{"keccak256":"0xa92e4fa126feb6907daa0513ddd816b2eb91f30a808de54f63c17d0e162c3439","license":"MIT","urls":["bzz-raw://a367861093b74443b137564d3f3c472f70bcf114739e62059c939f25e315706c","dweb:/ipfs/Qmd7JMpcxD9RuQjK3uM3EzJUgSqdN8vzp8eytEiuwxQJ6h"]},"lib/openzeppelin-contracts/contracts/utils/ShortStrings.sol":{"keccak256":"0xc0e310c163edf15db45d4ff938113ab357f94fa86e61ea8e790853c4d2e13256","license":"MIT","urls":["bzz-raw://04db5bc05dcb05ba1f6ca2dfbead17adc8a2e2f911aa80b05e7a36d9eaf96516","dweb:/ipfs/QmVkfHZbXVBUPsTopueCn3qGJX8aEjahFF3Fn4NcygLNm5"]},"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol":{"keccak256":"0xf09e68aa0dc6722a25bc46490e8d48ed864466d17313b8a0b254c36b54e49899","license":"MIT","urls":["bzz-raw://e26daf81e2252dc1fe1ce0e4b55c2eb7c6d1ee84ae6558d1a9554432ea1d32da","dweb:/ipfs/Qmb1UANWiWq5pCKbmHSu772hd4nt374dVaghGmwSVNuk8Q"]},"lib/openzeppelin-contracts/contracts/utils/Strings.sol":{"keccak256":"0x3088eb2868e8d13d89d16670b5f8612c4ab9ff8956272837d8e90106c59c14a0","license":"MIT","urls":["bzz-raw://b81d9ff6559ea5c47fc573e17ece6d9ba5d6839e213e6ebc3b4c5c8fe4199d7f","dweb:/ipfs/QmPCW1bFisUzJkyjroY3yipwfism9RRCigCcK1hbXtVM8n"]},"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol":{"keccak256":"0x809bc3edb4bcbef8263fa616c1b60ee0004b50a8a1bfa164d8f57fd31f520c58","license":"MIT","urls":["bzz-raw://8b93a1e39a4a19eba1600b92c96f435442db88cac91e315c8291547a2a7bcfe2","dweb:/ipfs/QmTm34KVe6uZBZwq8dZDNWwPcm24qBJdxqL3rPxBJ4LrMv"]},"lib/openzeppelin-contracts/contracts/utils/cryptography/EIP712.sol":{"keccak256":"0x8432884527a7ad91e6eed1cfc5a0811ae2073e5bca107bd0ca442e9236b03dbd","license":"MIT","urls":["bzz-raw://e3aa0eadab7aafcf91a95684765f778f64386f0368de88522ce873c21385278a","dweb:/ipfs/QmPfaVAqWgH1QsT3dHVuL6jwMZbVKdoP8w1PvpiPT2FPWd"]},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"keccak256":"0xe4455ac1eb7fc497bb7402579e7b4d64d928b846fce7d2b6fde06d366f21c2b3","license":"MIT","urls":["bzz-raw://cc8841b3cd48ad125e2f46323c8bad3aa0e88e399ec62acb9e57efa7e7c8058c","dweb:/ipfs/QmSqE4mXHA2BXW58deDbXE8MTcsL5JSKNDbm23sVQxRLPS"]},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"keccak256":"0x52a8cfb0f5239d11b457dcdd1b326992ef672714ca8da71a157255bddd13f3ad","license":"MIT","urls":["bzz-raw://495145362c7ff1c9ca88c58bbbbcb412e3c2004406647412394486552ff6c278","dweb:/ipfs/QmNNCeng6d5eRPDn6tkWSQhjE39XWfQEfjA63rRwHmr1iH"]},"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol":{"keccak256":"0xf92515413956f529d95977adc9b0567d583c6203fc31ab1c23824c35187e3ddc","license":"MIT","urls":["bzz-raw://c50fcc459e49a9858b6d8ad5f911295cb7c9ab57567845a250bf0153f84a95c7","dweb:/ipfs/QmcEW85JRzvDkQggxiBBLVAasXWdkhEysqypj9EaB6H2g6"]},"src/CreditVault.sol":{"keccak256":"0x2687f4eed4f54502491bff24817ab8ffba787efa46428cfd7d60e2f891968725","license":"UNLICENSED","urls":["bzz-raw://50ff4752a59a813846b210ba48659dd134cfe1d5a0204340ab42c900588e13a1","dweb:/ipfs/QmReDFZvgejSCiaaHiZt3wpSJG2vFKqMEAcGMvbp8tk3eF"]},"src/NativeLPToken.sol":{"keccak256":"0x36fede73bd1d52a5e6c4881710e92e33c661d308ee20a9466e697fcc056cd048","license":"UNLICENSED","urls":["bzz-raw://9b6cb64fc73e5ffb5c8c9c918171fe20f3e9d5f95978e475805cbfebae323612","dweb:/ipfs/QmYmLMnQLuXuywdYNixXXfGZwwow4h1rLMXqYbEWJ258P9"]},"src/interfaces/ICreditVault.sol":{"keccak256":"0xdbec8e3095e1ec49de4a4b8114a61dd8c1e61b81e41258ff39c1d4b6bdcd3e3f","license":"UNLICENSED","urls":["bzz-raw://61613b10e7b64b9147ecf43d8f5b41812e89162d96194663103c40682ad1bbaa","dweb:/ipfs/Qmdc3KFRfTZEwcf9Qysz3zENdMJqMtS1XXiPen8PjeLijM"]},"src/libraries/ConstantsLib.sol":{"keccak256":"0x5af5642216c6672359902afc792e42a5615b9848c415c6df4f0da956383c9ca7","license":"UNLICENSED","urls":["bzz-raw://400c84a3796c5d68618b8955811696b9e8c748c446ecade9f4e2194affa4f838","dweb:/ipfs/Qmdpisj49892TDiSUE4431G5K2niRs9qWwUw72LopPAJ5n"]},"src/libraries/ErrorsLib.sol":{"keccak256":"0xa6113fd2258791cc9387ba3b5fdf44280b16665532da4d54f71f08c34f23ab11","license":"UNLICENSED","urls":["bzz-raw://7e6c38e3a9f3693a66562d3666cfcf2c60bda292ef7927ac7e71ac5e6773a668","dweb:/ipfs/QmWEvgPNtg9FGNqBsnMUtTCthw3tbCg4y8K6kEcq7MrbSU"]},"src/libraries/ReentrancyGuardTransient.sol":{"keccak256":"0x181b5cda59c69a5a7594edc3ad4d20c8cbcdb0f4696a29c1c8925374d21a0476","license":"MIT","urls":["bzz-raw://36a8ab878f5ece2c68a858cacdb8c2d319a247510abd50eb0c5dd3c9bf9cebc9","dweb:/ipfs/QmcPaZLSVq63rDNiZCtiZXnfCRPu3KuqMUcuvVn2PvMgYw"]},"src/libraries/SafeERC20.sol":{"keccak256":"0xb5a6b23c6f8f2438a66cc26872c1c658fb703aeb911d0dbf297297c730bf6005","license":"MIT","urls":["bzz-raw://fb303ec6df832dbb713bd9e07a671a4d0b88baf1e0a37367b65267857b18b998","dweb:/ipfs/QmcST3kJJJ29LEV77jHUrT4uwnzuy6dTDSmWsNzfqJUSRh"]},"src/libraries/TStorage.sol":{"keccak256":"0x31318f97f41a531a9698fd8fdf1f56efb994caf791881e4ff5971d3cec5e82ce","license":"UNLICENSED","urls":["bzz-raw://4e4a617f2d6d3d1bdd6a52a7bc4496865058dd18e0bbc0b3d04a9d40f98c39d1","dweb:/ipfs/Qmdf8BS3SvxvbUHeSTgk958jrH7yLpYY3k7axqypFfGaTL"]}},"version":1},"storageLayout":{"types":{"t_bool":{"label":"bool","encoding":"inplace","numberOfBytes":"1"},"t_int256":{"label":"int256","encoding":"inplace","numberOfBytes":"32"},"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_string_storage":{"label":"string","encoding":"bytes","numberOfBytes":"32"},"t_mapping(t_address,t_bool)":{"key":"t_address","label":"mapping(address => bool)","value":"t_bool","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_bool)":{"key":"t_uint256","label":"mapping(uint256 => bool)","value":"t_bool","encoding":"mapping","numberOfBytes":"32"},"t_contract(NativeLPToken)8520":{"label":"contract NativeLPToken","encoding":"inplace","numberOfBytes":"20"},"t_mapping(t_address,t_int256)":{"key":"t_address","label":"mapping(address => int256)","value":"t_int256","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_address)":{"key":"t_address","label":"mapping(address => address)","value":"t_address","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_uint256)":{"key":"t_address","label":"mapping(address => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"},"t_struct(RebalanceCap)8543_storage":{"label":"struct ICreditVault.RebalanceCap","members":[{"slot":"0","type":"t_uint256","astId":8538,"label":"limit","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"1","type":"t_uint256","astId":8540,"label":"used","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"2","type":"t_uint256","astId":8542,"label":"lastDay","offset":0,"contract":"src/CreditVault.sol:CreditVault"}],"encoding":"inplace","numberOfBytes":"96"},"t_array(t_contract(NativeLPToken)8520)dyn_storage":{"base":"t_contract(NativeLPToken)8520","label":"contract NativeLPToken[]","encoding":"dynamic_array","numberOfBytes":"32"},"t_mapping(t_address,t_contract(NativeLPToken)8520)":{"key":"t_address","label":"mapping(address => contract NativeLPToken)","value":"t_contract(NativeLPToken)8520","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_mapping(t_address,t_int256))":{"key":"t_address","label":"mapping(address => mapping(address => int256))","value":"t_mapping(t_address,t_int256)","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_mapping(t_address,t_uint256))":{"key":"t_address","label":"mapping(address => mapping(address => uint256))","value":"t_mapping(t_address,t_uint256)","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_struct(RebalanceCap)8543_storage)":{"key":"t_address","label":"mapping(address => struct ICreditVault.RebalanceCap)","value":"t_struct(RebalanceCap)8543_storage","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_mapping(t_address,t_struct(RebalanceCap)8543_storage))":{"key":"t_address","label":"mapping(address => mapping(address => struct ICreditVault.RebalanceCap))","value":"t_mapping(t_address,t_struct(RebalanceCap)8543_storage)","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_string_storage","astId":2636,"label":"_nameFallback","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"1","type":"t_string_storage","astId":2638,"label":"_versionFallback","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"2","type":"t_address","astId":7,"label":"_owner","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"3","type":"t_address","astId":120,"label":"_pendingOwner","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"4","type":"t_address","astId":5363,"label":"feeWithdrawer","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"5","type":"t_address","astId":5366,"label":"signer","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"6","type":"t_address","astId":5369,"label":"epochUpdater","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"7","type":"t_array(t_contract(NativeLPToken)8520)dyn_storage","astId":5374,"label":"allLPTokens","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"8","type":"t_mapping(t_address,t_bool)","astId":5379,"label":"creditPools","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"9","type":"t_mapping(t_address,t_uint256)","astId":5384,"label":"reserveFees","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"10","type":"t_mapping(t_address,t_uint256)","astId":5389,"label":"lastEpochUpdateTimestamp","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"11","type":"t_mapping(t_address,t_contract(NativeLPToken)8520)","astId":5395,"label":"lpTokens","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"12","type":"t_mapping(t_uint256,t_bool)","astId":5399,"label":"nonces","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"13","type":"t_mapping(t_address,t_mapping(t_address,t_int256))","astId":5406,"label":"positions","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"14","type":"t_mapping(t_address,t_mapping(t_address,t_uint256))","astId":5413,"label":"collateral","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"15","type":"t_mapping(t_address,t_bool)","astId":5418,"label":"supportedMarkets","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"16","type":"t_mapping(t_address,t_bool)","astId":5423,"label":"traders","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"17","type":"t_mapping(t_address,t_address)","astId":5428,"label":"traderToSettler","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"18","type":"t_mapping(t_address,t_address)","astId":5433,"label":"traderToRecipient","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"19","type":"t_mapping(t_address,t_bool)","astId":5438,"label":"whitelistTraders","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"20","type":"t_mapping(t_address,t_bool)","astId":5443,"label":"liquidators","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"21","type":"t_mapping(t_address,t_address)","astId":5448,"label":"liquidatorToRecipient","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"22","type":"t_mapping(t_address,t_mapping(t_address,t_struct(RebalanceCap)8543_storage))","astId":5456,"label":"rebalanceCaps","offset":0,"contract":"src/CreditVault.sol:CreditVault"}]},"transientStorageLayout":null,"userdoc":{"kind":"user","errors":{"NonceUsed()":[{"notice":"Thrown when nonce is used"}],"OnlyTrader()":[{"notice":"Thrown when caller is not an authorized trader"}],"OnlyLpToken()":[{"notice":"Thrown when caller is not an LP token"}],"ZeroAddress()":[{"notice":"Thrown when zero address is provided"}],"InvalidMarket()":[{"notice":"Thrown when market (LP token) is invalid"}],"InvalidLPToken()":[{"notice":"Thrown when LP token address is invalid"}],"OnlyCreditPool()":[{"notice":"Thrown when caller is not the credit pool"}],"OnlyLiquidator()":[{"notice":"Thrown when caller is not an authorized liquidator"}],"RequestExpired()":[{"notice":"Thrown when request has expired"}],"InvalidSignature()":[{"notice":"Thrown when signature verification fails"}],"OnlyEpochUpdater()":[{"notice":"Thrown when caller is not the epoch updater"}],"InvalidUnderlying()":[{"notice":"Thrown when underlying are not supported in the credit vault"}],"OnlyFeeWithdrawer()":[{"notice":"Thrown when caller is not the fee withdrawer"}],"TokenAlreadyListed()":[{"notice":"Thrown when token is already listed"}],"EpochUpdateInCoolDown()":[{"notice":"Thrown when epoch update is attempted before minimum interval"}],"NotTraderOrLiquidator()":[{"notice":"Thrown the address is not a trader or liquidator"}],"InsufficientUnderlying()":[{"notice":"Thrown when LP token underlying is insufficient"}],"RebalanceLimitExceeded()":[{"notice":"Thrown when rebalance limit is exceeded"}],"InsufficientFundingFees()":[{"notice":"Thrown when there are insufficient funding fees to withdraw"}],"TraderRecipientConflict()":[{"notice":"Thrown when trader, settler and recipient are the same"}],"ExchangeRateIncreaseTooMuch()":[{"notice":"Thrown when LP token exchange rate increases more than allowed"}],"InvalidPositionUpdateAmount()":[{"notice":"Thrown when position update amount is invalid"}],"LiquidatorRecipientConflict()":[{"notice":"Thrown when liquidator and recipient are the same"}]},"events":{"SignerSet(address)":{"notice":"Emitted when signer is set"},"MarketListed(address)":{"notice":"Emitted when a new market (LP token) is listed"},"EpochUpdaterSet(address)":{"notice":"Emitted when epoch updater is set"},"FeeWithdrawerSet(address)":{"notice":"Emitted when fee withdrawer is set"},"LiquidatorSet(address,bool)":{"notice":"Emitted when liquidator is set"},"CreditPoolUpdated(address,bool)":{"notice":"Emitted when a credit pool's status is updated"},"Repaid(address,(address,int256)[])":{"notice":"Emitted when a trader's positions are repaid"},"Settled(address,(address,int256)[])":{"notice":"Emitted when a trader's positions are settled"},"ReserveWithdrawn(address,address,uint256)":{"notice":"Emitted when reserve fees are withdrawn"},"CollateralAdded(address,(address,uint256)[])":{"notice":"Emitted when collateral is added for a trader"},"RebalanceCapUpdated(address,address,uint256)":{"notice":"Emitted when a trader or liquidator's rebalance limit is updated for a token"},"TraderSet(address,bool,bool,address,address)":{"notice":"Emitted when a trader's info is updated"},"CollateralRemoved(address,(address,uint256)[])":{"notice":"Emitted when collateral is removed for a trader"},"EpochUpdated((address,(address,uint256,uint256)[])[])":{"notice":"Emitted when epoch funding fees are updated for traders"},"Liquidated(address,address,(address,int256)[],(address,uint256)[])":{"notice":"Emitted when a trader's positions are liquidated"}},"notice":"Handles asset custody, position settlement, and LP token integration","methods":{"signer()":{"notice":"signer for permissioned functions: liquidate, settle, removeCollateral, etc."},"epochUpdater()":{"notice":"epoch updater address"},"feeWithdrawer()":{"notice":"Address that can withdraw protocol fees"},"traders(address)":{"notice":"whitelist for traders (Market Makers)"},"lpTokens(address)":{"notice":"map from underlying address to LP token"},"setSigner(address)":{"notice":"Updates the authorized signer for permissioned operations"},"allLPTokens(uint256)":{"notice":"A list of all markets"},"creditPools(address)":{"notice":"Authorized Native Pool, enable market makers to lend funds from this vault for quoting"},"liquidators(address)":{"notice":"whitelist for liquidators"},"pay(address,uint256)":{"notice":"Transfers underlying assets from vault to recipient"},"reserveFees(address)":{"notice":"Mapping of accumulated reserveFees per token (token => fee amount)"},"supportMarket(address)":{"notice":"Lists a new market (LP token)"},"setEpochUpdater(address)":{"notice":"Updates the authorized epoch updater address"},"traderToSettler(address)":{"notice":"Maps trader address to settler address which can settle positions on behalf of trader"},"setFeeWithdrawer(address)":{"notice":"Updates the authorized fee withdrawer address"},"whitelistTraders(address)":{"notice":"whitelist traders that can bypass the credit check"},"positions(address,address)":{"notice":"trader_address => underlying token => amount (positive for long, negative for short)"},"traderToRecipient(address)":{"notice":"maps trader to their recipient address"},"collateral(address,address)":{"notice":"traders' collateral trader => token => amount"},"setCreditPool(address,bool)":{"notice":"Updates credit pool status"},"liquidatorToRecipient(address)":{"notice":"maps liquidator to their recipient address for liquidations"},"rebalanceCaps(address,address)":{"notice":"Tracks rebalance caps for each trader/liquidator and token"},"lastEpochUpdateTimestamp(address)":{"notice":"(trader => timestamp)"},"repay((address,int256)[],address)":{"notice":"Repays trader's short positions"},"setLiquidator(address,address,bool)":{"notice":"Set or remove liquidator permissions"},"setRebalanceCap(address,address,uint256)":{"notice":"Set or update the daily rebalance limit for a specific trader or liquidator and token"},"withdrawReserve(address,address,uint256)":{"notice":"Allows fee withdrawer to claim accumulated funding fees"},"setAllowance((address,uint256)[],address)":{"notice":"Approves native pool to spend vault's underlying tokens"},"addCollateral((address,uint256)[],address)":{"notice":"Adds collateral for a trader's position"},"setTrader(address,address,address,bool,bool)":{"notice":"Manages trader permissions and settlement addresses"},"swapCallback(address,address,int256,address,int256)":{"notice":"Callback function called by NativeRFQPool after swap execution to update trader positions"},"epochUpdate((address,(address,uint256,uint256)[])[])":{"notice":"Updates funding fees for traders at the end of each epoch"},"settle((uint256,uint256,address,(address,int256)[]),bytes)":{"notice":"Called by traders to settle the positions"},"removeCollateral((uint256,uint256,address,(address,uint256)[]),bytes)":{"notice":"Called by traders to remove collateral"},"liquidate((uint256,uint256,address,(address,int256)[],(address,uint256)[]),bytes)":{"notice":"Called by liquidators to liquidate the underwater positions"}},"version":1},"devdoc":{"kind":"dev","title":"CreditVault - Manages trader positions and collateral","errors":{"ReentrancyGuardReentrantCall()":[{"details":"Unauthorized reentrant call."}]},"events":{"EIP712DomainChanged()":{"details":"MAY be emitted to signal that the domain could have changed."},"MarketListed(address)":{"params":{"lpToken":"The address of the newly listed LP token"}},"CreditPoolUpdated(address,bool)":{"params":{"pool":"The address of the credit pool","isActive":"The new status of the pool"}},"Repaid(address,(address,int256)[])":{"params":{"trader":"The address of the trader whose positions are being repaid","repayments":"Array of token amounts being repaid"}},"Settled(address,(address,int256)[])":{"params":{"trader":"The address of the trader whose positions are being settled","positionUpdates":"Array of position changes"}},"CollateralAdded(address,(address,uint256)[])":{"params":{"trader":"The address of the trader receiving collateral","collateralUpdates":"Array of collateral token amounts added"}},"RebalanceCapUpdated(address,address,uint256)":{"params":{"limit":"The new daily limit (0 means unlimited)","token":"The token address","operator":"The trader or liquidator address"}},"TraderSet(address,bool,bool,address,address)":{"params":{"trader":"The address of the trader whose info is being updated","settler":"The address authorized to settle positions for this trader","isTrader":"Whether the address is enabled for trading","recipient":"The address authorized to receive tokens from settlements","isWhitelistTrader":"Whether the trader can bypass credit checks"}},"CollateralRemoved(address,(address,uint256)[])":{"params":{"trader":"The address of the trader removing collateral","collateralUpdates":"Array of collateral token amounts removed"}},"EpochUpdated((address,(address,uint256,uint256)[])[])":{"params":{"accruedFundingFees":"Array of funding fee updates for different traders"}},"Liquidated(address,address,(address,int256)[],(address,uint256)[])":{"params":{"trader":"The address of the trader being liquidated","liquidator":"The address performing the liquidation","positionUpdates":"Array of position changes from liquidation","claimCollaterals":"Array of collateral tokens claimed by liquidator"}}},"methods":{"owner()":{"details":"Returns the address of the current owner."},"eip712Domain()":{"details":"See {EIP-5267}. _Available since v4.9._"},"pendingOwner()":{"details":"Returns the address of the pending owner."},"acceptOwnership()":{"details":"The new owner accepts the ownership transfer."},"setSigner(address)":{"params":{"_signer":"New signer address (cannot be zero address)"},"details":"Only callable by ownerSigner verifies signatures for settlements, liquidations, and collateral removals"},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."},"pay(address,uint256)":{"params":{"to":"Recipient of the underlying assets","amount":"Amount of underlying assets to transfer"},"details":"Only callable by supported LP tokens"},"supportMarket(address)":{"params":{"lpToken":"Address of the LP token to be listed"},"details":"Only callable by owner"},"setEpochUpdater(address)":{"params":{"_epochUpdater":"New epoch updater address (cannot be zero address)"},"details":"Only callable by ownerEpoch updater is responsible for funding fee updates and distributions"},"setFeeWithdrawer(address)":{"params":{"_feeWithdrawer":"New fee withdrawer address (cannot be zero address)"},"details":"Only callable by ownerFee withdrawer can claim accumulated funding fees from the vault"},"transferOwnership(address)":{"details":"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner."},"setCreditPool(address,bool)":{"params":{"pool":"The address of credit pool","isActive":"to whitelist, false to remove from whitelist"}},"repay((address,int256)[],address)":{"params":{"trader":"Address of the trader whose positions are being repaid","positionUpdates":"Array of {token, amount} structs representing positions to repay"}},"setLiquidator(address,address,bool)":{"params":{"status":"True to whitelist, false to remove from whitelist","recipient":"Address authorized to receive tokens from liquidations","liquidator":"The address to grant/revoke liquidator permissions"},"details":"Only callable by owner"},"setRebalanceCap(address,address,uint256)":{"params":{"limit":"The maximum amount of tokens that can be rebalanced per day (0 for unlimited)","token":"The token address for which the limit applies","operator":"The address of the trader or liquidator whose limit is being set"},"details":"A limit of 0 means unlimited rebalancing is allowed"},"withdrawReserve(address,address,uint256)":{"params":{"amount":"The amount of fees to withdraw","recipient":"The address that will receive the fees","underlying":"The token address of the fees to withdraw"},"details":"Only callable by feeWithdrawer"},"setAllowance((address,uint256)[],address)":{"params":{"pool":"Address of native pool to receive approval","tokens":"Array of {token, amount} structs to approve"},"details":"Only callable by ownerPool must be whitelisted as native pool"},"addCollateral((address,uint256)[],address)":{"params":{"tokens":"Array of {token, amount} structs to be added as collateral","trader":"Address of the trader receiving the collateral"},"details":"PERMISSIONLESS: Anyone can add collateral for any traderOff-chain system will update trader's credit limit off-chain via event emission"},"setTrader(address,address,address,bool,bool)":{"params":{"trader":"Address to configure trading permissions for","settler":"Address authorized to settle positions on trader's behalf","isTrader":"True to enable trading, false to revoke permissions","recipient":"Address authorized to receive tokens from settlements and collateral operations","isWhitelistTrader":"True to enable whitelist which can bypass credit check"},"details":"Only callable by owner"},"swapCallback(address,address,int256,address,int256)":{"params":{"trader":"The address of the market maker","tokenIn":"The address of the token that is selling","amountIn":"The amount of the token that is selling","tokenOut":"The address of the token that is buying","amountOut":"The amount of the token that is buying"},"details":"Only callable by whitelisted NativePools, it's called after the swap is executed"},"epochUpdate((address,(address,uint256,uint256)[])[])":{"params":{"accruedFees":"Array of funding fee updates for different traders"},"details":"Only callable by the epoch updater"},"settle((uint256,uint256,address,(address,int256)[]),bytes)":{"params":{"request":"The struct of the settlement request containing info of long and short positions to settle","signature":"The signature of the settlement request"},"details":"This transaction requires off-chain calculation to verify if the trader's credit meets the criteria."},"removeCollateral((uint256,uint256,address,(address,uint256)[]),bytes)":{"params":{"request":"The struct of the remove collateral request containing info of collateral to remove","signature":"The signature of the remove collateral request"},"details":"This transaction requires off-chain calculation to verify if the trader's credit meets the criteria."},"liquidate((uint256,uint256,address,(address,int256)[],(address,uint256)[]),bytes)":{"params":{"request":"The struct of the liquidation request containing info of long and short positions to liquidate","signature":"The signature of the liquidation request"},"details":"This transaction requires off-chain calculation to verify if the trader's credit meets the criteria."}},"version":1,"stateVariables":{"creditPools":{"details":"The credit pool lends tokens from the credit vault and must update the trader's position via a callback."},"supportedMarkets":{"details":"If a LP token is supported"},"traderToRecipient":{"details":"Address receives tokens from settlements and collateral operations"}}},"sourceIds":{"src/CreditVault.sol":{"id":18},"src/NativeLPToken.sol":{"id":19},"src/libraries/TStorage.sol":{"id":25},"src/libraries/ErrorsLib.sol":{"id":22},"src/libraries/SafeERC20.sol":{"id":24},"src/libraries/ConstantsLib.sol":{"id":21},"src/interfaces/ICreditVault.sol":{"id":20},"src/libraries/ReentrancyGuardTransient.sol":{"id":23},"lib/openzeppelin-contracts/contracts/utils/Address.sol":{"id":8},"lib/openzeppelin-contracts/contracts/utils/Context.sol":{"id":9},"lib/openzeppelin-contracts/contracts/utils/Strings.sol":{"id":12},"lib/openzeppelin-contracts/contracts/access/Ownable.sol":{"id":0},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"id":15},"lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol":{"id":3},"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol":{"id":11},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"id":4},"lib/openzeppelin-contracts/contracts/utils/ShortStrings.sol":{"id":10},"lib/openzeppelin-contracts/contracts/access/Ownable2Step.sol":{"id":1},"lib/openzeppelin-contracts/contracts/interfaces/IERC5267.sol":{"id":2},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"id":16},"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol":{"id":17},"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol":{"id":13},"lib/openzeppelin-contracts/contracts/utils/cryptography/EIP712.sol":{"id":14},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"id":7},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol":{"id":6},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"id":5}},"additionalInput":null,"stdJsonInput":{"sources":{"src/CreditVault.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.28;\n\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeCast} from \"@openzeppelin/contracts/utils/math/SafeCast.sol\";\nimport {Ownable2Step} from \"@openzeppelin/contracts/access/Ownable2Step.sol\";\nimport {EIP712, ECDSA} from \"@openzeppelin/contracts/utils/cryptography/EIP712.sol\";\n\nimport \"./libraries/ConstantsLib.sol\";\nimport {ErrorsLib} from \"./libraries/ErrorsLib.sol\";\nimport {SafeERC20} from \"./libraries/SafeERC20.sol\";\nimport {ICreditVault} from \"./interfaces/ICreditVault.sol\";\nimport {ReentrancyGuardTransient} from \"./libraries/ReentrancyGuardTransient.sol\";\n\nimport {NativeLPToken} from \"./NativeLPToken.sol\";\n\n/// @title CreditVault - Manages trader positions and collateral\n/// @notice Handles asset custody, position settlement, and LP token integration\ncontract CreditVault is ICreditVault, EIP712, Ownable2Step, ReentrancyGuardTransient {\n    using SafeERC20 for IERC20;\n    using SafeCast for uint256;\n    using SafeCast for int256;\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                     STATE VARIABLES\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Address that can withdraw protocol fees\n    address public feeWithdrawer;\n\n    /// @notice signer for permissioned functions: liquidate, settle, removeCollateral, etc.\n    address public signer;\n\n    /// @notice epoch updater address\n    address public epochUpdater;\n\n    /// @notice A list of all markets\n    NativeLPToken[] public allLPTokens;\n\n    /// @notice Authorized Native Pool, enable market makers to lend funds from this vault for quoting\n    /// @dev The credit pool lends tokens from the credit vault and must update the trader's position via a callback.\n    mapping(address => bool) public creditPools;\n\n    /// @notice Mapping of accumulated reserveFees per token (token => fee amount)\n    mapping(address => uint256) public reserveFees;\n\n    /// @notice (trader => timestamp)\n    mapping(address => uint256) public lastEpochUpdateTimestamp;\n\n    /// @notice map from underlying address to LP token\n    mapping(address => NativeLPToken) public lpTokens;\n\n    // @notice Mapping to track used nonces for preventing replay attacks\n    mapping(uint256 => bool) public nonces;\n\n    /// @notice  trader_address => underlying token => amount (positive for long, negative for short)\n    mapping(address => mapping(address => int256)) public positions;\n\n    /// @notice traders' collateral trader => token => amount\n    mapping(address => mapping(address => uint256)) public collateral;\n\n    /// @dev If a LP token is supported\n    mapping(address => bool) public supportedMarkets;\n\n    /// @notice whitelist for traders (Market Makers)\n    mapping(address => bool) public traders;\n\n    /// @notice Maps trader address to settler address which can settle positions on behalf of trader\n    mapping(address => address) public traderToSettler;\n\n    /// @notice maps trader to their recipient address\n    /// @dev Address receives tokens from settlements and collateral operations\n    mapping(address => address) public traderToRecipient;\n\n    /// @notice whitelist traders that can bypass the credit check\n    mapping(address => bool) public whitelistTraders;\n\n    /// @notice whitelist for liquidators\n    mapping(address => bool) public liquidators;\n\n    /// @notice maps liquidator to their recipient address for liquidations\n    mapping(address => address) public liquidatorToRecipient;\n\n    /// @notice Tracks rebalance caps for each trader/liquidator and token\n    mapping(address => mapping(address => RebalanceCap)) public rebalanceCaps;\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                     CONSTRUCTOR\n    //////////////////////////////////////////////////////////////////////////*/\n\n    constructor() EIP712(\"Native Credit Vault\", \"1\") {}\n\n    /// @notice Callback function called by NativeRFQPool after swap execution to update trader positions\n    /// @dev Only callable by whitelisted NativePools, it's called after the swap is executed\n    /// @param trader The address of the market maker\n    /// @param tokenIn The address of the token that is selling\n    /// @param amountIn The amount of the token that is selling\n    /// @param tokenOut The address of the token that is buying\n    /// @param amountOut The amount of the token that is buying\n    function swapCallback(\n        address trader,\n        address tokenIn,\n        int256 amountIn,\n        address tokenOut,\n        int256 amountOut\n    ) external {\n        require(creditPools[msg.sender], ErrorsLib.OnlyCreditPool());\n        require(\n            address(lpTokens[tokenIn]) != address(0) && address(lpTokens[tokenOut]) != address(0),\n            ErrorsLib.InvalidUnderlying()\n        );\n\n        positions[trader][tokenIn] += amountIn;\n        positions[trader][tokenOut] -= amountOut;\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                    PERMISSIONED FUNCTIONS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Updates funding fees for traders at the end of each epoch\n    /// @dev Only callable by the epoch updater\n    /// @param accruedFees Array of funding fee updates for different traders\n    function epochUpdate(AccruedFundingFee[] calldata accruedFees) external {\n        require(msg.sender == epochUpdater, ErrorsLib.OnlyEpochUpdater());\n\n        for (uint256 i; i < accruedFees.length; ++i) {\n            address trader = accruedFees[i].trader;\n\n            if (block.timestamp - lastEpochUpdateTimestamp[trader] < EPOCH_UPDATE_INTERVAL) {\n                revert ErrorsLib.EpochUpdateInCoolDown();\n            }\n\n            for (uint256 j; j < accruedFees[i].feeUpdates.length; ++j) {\n                address token = accruedFees[i].feeUpdates[j].token;\n                uint256 fundingFee = accruedFees[i].feeUpdates[j].fundingFee;\n                uint256 reserveFee = accruedFees[i].feeUpdates[j].reserveFee;\n\n                // Check if the underlying token is supported\n                require(address(lpTokens[token]) != address(0), ErrorsLib.InvalidUnderlying());\n\n                if (fundingFee > 0) {\n                    uint256 beforeExchangeRate = lpTokens[token].exchangeRate();\n\n                    // Distribute funding fee to all LPToken holders\n                    lpTokens[token].distributeYield(fundingFee);\n\n                    // Verify the exchange rate increase is not more than 1%\n                    if (((lpTokens[token].exchangeRate() - beforeExchangeRate) * 10_000) > beforeExchangeRate * 100) {\n                        revert ErrorsLib.ExchangeRateIncreaseTooMuch();\n                    }\n                }\n\n                if (reserveFee > 0) {\n                    reserveFees[token] += reserveFee;\n                }\n                // Subtract reserve fee and funding fee from the trader's position\n                positions[trader][token] -= (reserveFee + fundingFee).toInt256();\n            }\n\n            lastEpochUpdateTimestamp[trader] = block.timestamp;\n        }\n\n        emit EpochUpdated(accruedFees);\n    }\n\n    /// @notice Called by traders to settle the positions\n    /// @dev This transaction requires off-chain calculation to verify if the trader's credit meets the criteria.\n    /// @param request The struct of the settlement request containing info of long and short positions to settle\n    /// @param signature The signature of the settlement request\n    function settle(\n        SettlementRequest calldata request,\n        bytes calldata signature\n    ) external onlyTraderOrSettler(request.trader) nonReentrant {\n        _verifySettleSignature(request, signature);\n\n        _updatePositions(request.positionUpdates, request.trader);\n\n        address recipient = traderToRecipient[request.trader];\n\n        // execute token transfers\n        for (uint256 i; i < request.positionUpdates.length; ++i) {\n            address token = request.positionUpdates[i].token;\n            int256 amount = request.positionUpdates[i].amount;\n\n            if (amount > 0) {\n                IERC20(token).safeTransferFrom(msg.sender, address(this), amount.toUint256());\n            } else {\n                /// Enforce rebalance cap before funds leave vault to ensure limit compliance\n                _updateRebalanceCap(request.trader, token, (-amount).toUint256());\n\n                IERC20(token).safeTransfer(recipient, (-amount).toUint256());\n            }\n        }\n\n        emit Settled(request.trader, request.positionUpdates);\n    }\n\n    /// @notice Called by traders to remove collateral\n    /// @dev This transaction requires off-chain calculation to verify if the trader's credit meets the criteria.\n    /// @param request The struct of the remove collateral request containing info of collateral to remove\n    /// @param signature The signature of the remove collateral request\n    function removeCollateral(\n        RemoveCollateralRequest calldata request,\n        bytes calldata signature\n    ) external onlyTraderOrSettler(request.trader) nonReentrant {\n        _verifyRemoveCollateralSignature(request, signature);\n\n        for (uint256 i; i < request.tokens.length; ++i) {\n            collateral[request.trader][request.tokens[i].token] -= request.tokens[i].amount;\n        }\n\n        address recipient = traderToRecipient[request.trader];\n        for (uint256 i; i < request.tokens.length; ++i) {\n            address token = request.tokens[i].token;\n            uint256 amount = request.tokens[i].amount;\n\n            /// Enforce rebalance cap before funds leave vault\n            _updateRebalanceCap(request.trader, token, amount);\n\n            IERC20(token).safeTransfer(recipient, amount);\n        }\n\n        emit CollateralRemoved(request.trader, request.tokens);\n    }\n\n    /// @notice Repays trader's short positions\n    /// @param positionUpdates Array of {token, amount} structs representing positions to repay\n    /// @param trader Address of the trader whose positions are being repaid\n    function repay(\n        TokenAmountInt[] calldata positionUpdates,\n        address trader\n    ) external onlyTraderOrSettler(trader) nonReentrant {\n        _updatePositions(positionUpdates, trader);\n\n        // the safeCast to Uint256 will revert if the repayments amount is negative\n        for (uint256 i; i < positionUpdates.length; ++i) {\n            IERC20(positionUpdates[i].token).safeTransferFrom(\n                msg.sender, address(this), positionUpdates[i].amount.toUint256()\n            );\n        }\n\n        emit Repaid(trader, positionUpdates);\n    }\n\n    /// @notice Called by liquidators to liquidate the underwater positions\n    /// @dev This transaction requires off-chain calculation to verify if the trader's credit meets the criteria.\n    /// @param request The struct of the liquidation request containing info of long and short positions to liquidate\n    /// @param signature The signature of the liquidation request\n    function liquidate(\n        LiquidationRequest calldata request,\n        bytes calldata signature\n    ) external onlyLiquidator nonReentrant {\n        _verifyLiquidationSignature(request, signature);\n\n        _updatePositions(request.positionUpdates, request.trader);\n\n        address recipient = liquidatorToRecipient[msg.sender];\n\n        for (uint256 i; i < request.claimCollaterals.length; ++i) {\n            collateral[request.trader][request.claimCollaterals[i].token] -= request.claimCollaterals[i].amount;\n        }\n\n        for (uint256 i; i < request.positionUpdates.length; ++i) {\n            address token = request.positionUpdates[i].token;\n            int256 amount = request.positionUpdates[i].amount;\n\n            if (amount > 0) {\n                IERC20(token).safeTransferFrom(msg.sender, address(this), amount.toUint256());\n            } else {\n                /// Enforce rebalance cap before underlying token leave vault\n                _updateRebalanceCap(msg.sender, token, (-amount).toUint256());\n\n                IERC20(token).safeTransfer(recipient, (-amount).toUint256());\n            }\n        }\n\n        for (uint256 i; i < request.claimCollaterals.length; ++i) {\n            address token = request.claimCollaterals[i].token;\n\n            /// Enforce rebalance cap before collateral token leave vault\n            _updateRebalanceCap(msg.sender, token, request.claimCollaterals[i].amount);\n\n            IERC20(token).safeTransfer(recipient, request.claimCollaterals[i].amount);\n        }\n\n        emit Liquidated(request.trader, msg.sender, request.positionUpdates, request.claimCollaterals);\n    }\n\n    /// @notice Transfers underlying assets from vault to recipient\n    /// @dev Only callable by supported LP tokens\n    /// @param to Recipient of the underlying assets\n    /// @param amount Amount of underlying assets to transfer\n    function pay(address to, uint256 amount) external {\n        require(supportedMarkets[msg.sender], ErrorsLib.OnlyLpToken());\n        require(amount <= NativeLPToken(msg.sender).totalUnderlying(), ErrorsLib.InsufficientUnderlying());\n\n        // Each LP token can only transfer its own underlying token\n        IERC20(NativeLPToken(msg.sender).underlying()).safeTransfer(to, amount);\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                    PERMISSIONLESS FUNCTIONS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Adds collateral for a trader's position\n    /// @dev PERMISSIONLESS: Anyone can add collateral for any trader\n    /// @dev Off-chain system will update trader's credit limit off-chain via event emission\n    /// @param tokens Array of {token, amount} structs to be added as collateral\n    /// @param trader Address of the trader receiving the collateral\n    function addCollateral(TokenAmountUint[] calldata tokens, address trader) external nonReentrant {\n        require(traders[trader], ErrorsLib.OnlyTrader());\n\n        for (uint256 i; i < tokens.length; ++i) {\n            address token = tokens[i].token;\n            require(supportedMarkets[token], ErrorsLib.OnlyLpToken());\n\n            uint256 amount = tokens[i].amount;\n            collateral[trader][token] += amount;\n\n            IERC20(token).safeTransferFrom(msg.sender, address(this), amount);\n        }\n\n        emit CollateralAdded(trader, tokens);\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                ADMIN FUNCTIONS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Lists a new market (LP token)\n    /// @dev Only callable by owner\n    /// @param lpToken Address of the LP token to be listed\n    function supportMarket(NativeLPToken lpToken) external onlyOwner {\n        // Check if market is already listed\n        require(!supportedMarkets[address(lpToken)], ErrorsLib.TokenAlreadyListed());\n\n        address underlying = address(lpToken.underlying());\n\n        // Verify market configuration\n        require(\n            address(lpTokens[underlying]) == address(0) && lpToken.creditVault() == address(this),\n            ErrorsLib.InvalidMarket()\n        );\n\n        // Sanity check to make sure its really LPToken\n        require(address(underlying) != address(0), ErrorsLib.InvalidLPToken());\n\n        // Update storage\n        lpTokens[underlying] = lpToken;\n        supportedMarkets[address(lpToken)] = true;\n        allLPTokens.push(lpToken);\n\n        emit MarketListed(address(lpToken));\n    }\n\n    /// @notice Allows fee withdrawer to claim accumulated funding fees\n    /// @dev Only callable by feeWithdrawer\n    /// @param underlying The token address of the fees to withdraw\n    /// @param recipient The address that will receive the fees\n    /// @param amount The amount of fees to withdraw\n    function withdrawReserve(address underlying, address recipient, uint256 amount) external {\n        require(recipient != address(0), ErrorsLib.ZeroAddress());\n        require(msg.sender == feeWithdrawer, ErrorsLib.OnlyFeeWithdrawer());\n        require(amount <= reserveFees[underlying], ErrorsLib.InsufficientFundingFees());\n\n        reserveFees[underlying] -= amount;\n\n        // Withdraw underlying from vault\n        IERC20(underlying).safeTransfer(recipient, amount);\n\n        emit ReserveWithdrawn(underlying, recipient, amount);\n    }\n\n    /// @notice Updates credit pool status\n    /// @param pool The address of credit pool\n    /// @param isActive to whitelist, false to remove from whitelist\n    function setCreditPool(address pool, bool isActive) external onlyOwner {\n        require(pool != address(0), ErrorsLib.ZeroAddress());\n\n        creditPools[pool] = isActive;\n\n        emit CreditPoolUpdated(pool, isActive);\n    }\n\n    /// @notice Approves native pool to spend vault's underlying tokens\n    /// @dev Only callable by owner\n    /// @dev Pool must be whitelisted as native pool\n    /// @param tokens Array of {token, amount} structs to approve\n    /// @param pool Address of native pool to receive approval\n    function setAllowance(TokenAmountUint[] calldata tokens, address pool) external onlyOwner {\n        for (uint256 i; i < tokens.length; ++i) {\n            require(address(lpTokens[tokens[i].token]) != address(0), ErrorsLib.InvalidUnderlying());\n\n            IERC20(tokens[i].token).safeApprove(pool, tokens[i].amount);\n        }\n    }\n\n    /// @notice Set or update the daily rebalance limit for a specific trader or liquidator and token\n    /// @dev A limit of 0 means unlimited rebalancing is allowed\n    /// @param operator The address of the trader or liquidator whose limit is being set\n    /// @param token The token address for which the limit applies\n    /// @param limit The maximum amount of tokens that can be rebalanced per day (0 for unlimited)\n    function setRebalanceCap(address operator, address token, uint256 limit) external onlyOwner {\n        require(token != address(0), ErrorsLib.ZeroAddress());\n        require(traders[operator] || liquidators[operator], ErrorsLib.NotTraderOrLiquidator());\n\n        // used will be reset to 0\n        rebalanceCaps[operator][token] = RebalanceCap({limit: limit, used: 0, lastDay: block.timestamp / 86_400});\n\n        emit RebalanceCapUpdated(operator, token, limit);\n    }\n\n    /// @notice Manages trader permissions and settlement addresses\n    /// @dev Only callable by owner\n    /// @param trader Address to configure trading permissions for\n    /// @param settler Address authorized to settle positions on trader's behalf\n    /// @param recipient Address authorized to receive tokens from settlements and collateral operations\n    /// @param isTrader True to enable trading, false to revoke permissions\n    /// @param isWhitelistTrader True to enable whitelist which can bypass credit check\n    function setTrader(\n        address trader,\n        address settler,\n        address recipient,\n        bool isTrader,\n        bool isWhitelistTrader\n    ) external onlyOwner {\n        require(trader != address(0) && settler != address(0) && recipient != address(0), ErrorsLib.ZeroAddress());\n        require(recipient != trader && recipient != settler, ErrorsLib.TraderRecipientConflict());\n\n        traders[trader] = isTrader;\n        traderToSettler[trader] = settler;\n        traderToRecipient[trader] = recipient;\n\n        whitelistTraders[trader] = isWhitelistTrader;\n\n        emit TraderSet(trader, isTrader, isWhitelistTrader, settler, recipient);\n    }\n\n    /// @notice Set or remove liquidator permissions\n    /// @dev Only callable by owner\n    /// @param liquidator The address to grant/revoke liquidator permissions\n    /// @param recipient Address authorized to receive tokens from liquidations\n    /// @param status True to whitelist, false to remove from whitelist\n    function setLiquidator(address liquidator, address recipient, bool status) external onlyOwner {\n        require(liquidator != address(0) && recipient != address(0), ErrorsLib.ZeroAddress());\n        require(liquidator != recipient, ErrorsLib.LiquidatorRecipientConflict());\n\n        liquidators[liquidator] = status;\n        liquidatorToRecipient[liquidator] = recipient;\n\n        emit LiquidatorSet(liquidator, status);\n    }\n\n    /// @notice Updates the authorized signer for permissioned operations\n    /// @dev Only callable by owner\n    /// @dev Signer verifies signatures for settlements, liquidations, and collateral removals\n    /// @param _signer New signer address (cannot be zero address)\n    function setSigner(address _signer) external onlyOwner {\n        require(_signer != address(0), ErrorsLib.ZeroAddress());\n\n        signer = _signer;\n\n        emit SignerSet(_signer);\n    }\n\n    /// @notice Updates the authorized epoch updater address\n    /// @dev Only callable by owner\n    /// @dev Epoch updater is responsible for funding fee updates and distributions\n    /// @param _epochUpdater New epoch updater address (cannot be zero address)\n    function setEpochUpdater(address _epochUpdater) external onlyOwner {\n        require(_epochUpdater != address(0), ErrorsLib.ZeroAddress());\n\n        epochUpdater = _epochUpdater;\n\n        emit EpochUpdaterSet(_epochUpdater);\n    }\n\n    /// @notice Updates the authorized fee withdrawer address\n    /// @dev Only callable by owner\n    /// @dev Fee withdrawer can claim accumulated funding fees from the vault\n    /// @param _feeWithdrawer New fee withdrawer address (cannot be zero address)\n    function setFeeWithdrawer(address payable _feeWithdrawer) external onlyOwner {\n        require(_feeWithdrawer != address(0), ErrorsLib.ZeroAddress());\n\n        feeWithdrawer = _feeWithdrawer;\n\n        emit FeeWithdrawerSet(_feeWithdrawer);\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                     INTERNAL FUNCTIONS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    function _updateNonce(uint256 nonce) internal {\n        require(!nonces[nonce], ErrorsLib.NonceUsed());\n\n        nonces[nonce] = true;\n    }\n\n    function _updatePositions(ICreditVault.TokenAmountInt[] memory positionUpdates, address trader) internal {\n        uint256 updatesLength = positionUpdates.length;\n        for (uint256 i; i < updatesLength; ++i) {\n            address token = positionUpdates[i].token;\n            int256 amount = positionUpdates[i].amount;\n            int256 newPosition = positions[trader][token] + amount;\n            // Make sure the token is supported underlying token\n            require(address(lpTokens[token]) != address(0), ErrorsLib.InvalidLPToken());\n\n            // Position must decrease without flipping its sign (e.g. long 100 -> long 50, not long 100 -> short 20)\n            if (positions[trader][token] * amount >= 0 || positions[trader][token] * newPosition < 0) {\n                revert ErrorsLib.InvalidPositionUpdateAmount();\n            }\n\n            positions[trader][token] = newPosition;\n        }\n    }\n\n    /// @notice Check and update daily rebalance tracking for a trader's token position\n    /// @param trader The address of the trader attempting to rebalance\n    /// @param token The token address being rebalanced, can be underlying token or collateral token\n    /// @param amount The amount of tokens being rebalanced\n    function _updateRebalanceCap(address trader, address token, uint256 amount) internal {\n        RebalanceCap storage cap = rebalanceCaps[trader][token];\n        uint256 currentDay = block.timestamp / 86_400;\n        uint256 newUsed;\n\n        // Reset daily used amount if it's a new day, otherwise add to existing\n        if (currentDay > cap.lastDay) {\n            newUsed = amount;\n        } else {\n            newUsed = cap.used + amount;\n        }\n\n        // Check if rebalance would exceed daily limit, skip check if limit is 0 (unlimited)\n        require(cap.limit == 0 || newUsed <= cap.limit, ErrorsLib.RebalanceLimitExceeded());\n\n        // Update storage in a single write\n        rebalanceCaps[trader][token] = RebalanceCap({limit: cap.limit, used: newUsed, lastDay: currentDay});\n    }\n\n    function _verifySettleSignature(\n        ICreditVault.SettlementRequest calldata request,\n        bytes calldata signature\n    ) internal {\n        require(request.deadline >= block.timestamp, ErrorsLib.RequestExpired());\n\n        _updateNonce(request.nonce);\n\n        bytes32 msgHash = keccak256(\n            abi.encode(\n                SETTLEMENT_REQUEST_SIGNATURE_HASH,\n                request.nonce,\n                request.deadline,\n                request.trader,\n                keccak256(abi.encode(request.positionUpdates)),\n                traderToRecipient[request.trader]\n            )\n        );\n        bytes32 digest = _hashTypedDataV4(msgHash);\n        address recoveredSigner = ECDSA.recover(digest, signature);\n\n        require(recoveredSigner == signer, ErrorsLib.InvalidSignature());\n    }\n\n    function _verifyRemoveCollateralSignature(\n        ICreditVault.RemoveCollateralRequest calldata request,\n        bytes calldata signature\n    ) internal {\n        require(request.deadline >= block.timestamp, ErrorsLib.RequestExpired());\n\n        _updateNonce(request.nonce);\n\n        bytes32 msgHash = keccak256(\n            abi.encode(\n                REMOVE_COLLATERAL_REQUEST_SIGNATURE_HASH,\n                request.nonce,\n                request.deadline,\n                request.trader,\n                keccak256(abi.encode(request.tokens)),\n                traderToRecipient[request.trader]\n            )\n        );\n        bytes32 digest = _hashTypedDataV4(msgHash);\n        address recoveredSigner = ECDSA.recover(digest, signature);\n\n        require(recoveredSigner == signer, ErrorsLib.InvalidSignature());\n    }\n\n    function _verifyLiquidationSignature(\n        ICreditVault.LiquidationRequest calldata request,\n        bytes calldata signature\n    ) internal {\n        require(request.deadline >= block.timestamp, ErrorsLib.RequestExpired());\n\n        _updateNonce(request.nonce);\n\n        bytes32 msgHash = keccak256(\n            abi.encode(\n                LIQUIDATION_REQUEST_SIGNATURE_HASH,\n                request.nonce,\n                request.deadline,\n                request.trader,\n                keccak256(abi.encode(request.positionUpdates)),\n                keccak256(abi.encode(request.claimCollaterals)),\n                liquidatorToRecipient[msg.sender]\n            )\n        );\n        bytes32 digest = _hashTypedDataV4(msgHash);\n        address recoveredSigner = ECDSA.recover(digest, signature);\n\n        require(recoveredSigner == signer, ErrorsLib.InvalidSignature());\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                     MODIFIERS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Separate the trader and settler accounts, they have different operation frequency and security setup requirements\n    modifier onlyTraderOrSettler(address trader) {\n        require(\n            (traders[trader] && trader == msg.sender) // Make sure a trader can only dispose of their own position\n                || (traders[trader] && msg.sender == traderToSettler[trader]), // Trader's settler can also settle their own position\n            ErrorsLib.OnlyTrader()\n        );\n        _;\n    }\n\n    modifier onlyLiquidator() {\n        require(liquidators[msg.sender], ErrorsLib.OnlyLiquidator());\n        _;\n    }\n}\n"},"src/NativeLPToken.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.28;\n\nimport {ERC20} from \"@openzeppelin/contracts/token/ERC20/ERC20.sol\";\nimport {Ownable2Step} from \"@openzeppelin/contracts/access/Ownable2Step.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IERC20Metadata as IERC20} from \"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\";\n\nimport \"./libraries/ConstantsLib.sol\";\nimport {CreditVault} from \"./CreditVault.sol\";\nimport {ErrorsLib} from \"./libraries/ErrorsLib.sol\";\nimport {ReentrancyGuardTransient} from \"./libraries/ReentrancyGuardTransient.sol\";\n\n/// @title NativeLPToken - Yield-bearing LP token contract\n/// @notice A token contract that represents liquidity provider positions and distributes yield\n/// @dev This contract manages LP shares and underlying assets, accruing yield based on protocol revenue\ncontract NativeLPToken is ERC20, Ownable2Step, ReentrancyGuardTransient {\n    using SafeERC20 for IERC20;\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                     STATE VARIABLES\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Whether deposit operations are paused\n    bool public depositPaused;\n\n    /// @notice Whether redeem operations are paused\n    bool public redeemPaused;\n\n    /// @notice The underlying token that this LP token represents\n    IERC20 public underlying;\n\n    /// @notice The address of the credit vault contract\n    address public creditVault;\n\n    /// @notice The number of decimals for this token, matching the underlying token's decimals\n    uint8 private _decimals;\n\n    /// @notice Early withdrawal fee in basis points (1 bip = 0.01%)\n    /// @dev Applied to prevent front-running by users who deposit right before yield distribution and immediately redeem after\n    uint256 public earlyWithdrawFeeBips;\n\n    /// @notice Total amount of underlying assets deposited by LPs\n    uint256 public totalUnderlying;\n\n    /// @notice Total number of shares issued\n    uint256 public totalShares;\n\n    /// @notice Minimum time interval between deposit and redeem (in seconds)\n    uint256 public minRedeemInterval = 8 hours;\n\n    /// @notice Minimum amount required for deposits\n    uint256 public minDeposit;\n\n    /// @notice Mapping of user addresses to their share balances\n    mapping(address => uint256) public shares;\n\n    /// @notice Mapping of trusted operators who can call depositFor and redeemTo functions\n    mapping(address => bool) public trustedOperators;\n\n    /// @notice Mapping of user addresses to their last deposit timestamp\n    mapping(address => uint256) public lastDepositTimestamp;\n\n    /// @notice Mapping of addresses exempt from redeem cooldown period and early withdrawal fees\n    mapping(address => bool) public redeemCooldownExempt;\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                        EVENTS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Event emitted when deposit operation is paused\n    event DepositPaused();\n\n    /// @notice Event emitted when deposit operation is unpaused\n    event DepositUnpaused();\n\n    /// @notice Event emitted when redeem operation is paused\n    event RedeemPaused();\n\n    /// @notice Event emitted when redeem operation is unpaused\n    event RedeemUnpaused();\n\n    /// @notice Event emitted when yield is distributed to LP holders\n    event YieldDistributed(uint256 yieldAmount);\n\n    /// @notice Event emitted when minimum redeem interval is updated\n    event MinRedeemIntervalUpdated(uint256 newInterval);\n\n    /// @notice Event emitted when shares are transferred between addresses\n    event TransferShares(address indexed from, address indexed to, uint256 shares);\n\n    /// @notice Event emitted when new shares are minted\n    event SharesMinted(address indexed from, address indexed to, uint256 shares, uint256 underlyingAmount);\n\n    /// @notice Event emitted when shares are burned\n    event SharesBurned(address indexed from, address indexed to, uint256 shares, uint256 underlyingAmount);\n\n    /// @notice Event emitted when minimum deposit amount is updated\n    event MinDepositUpdated(uint256 oldAmount, uint256 newAmount);\n\n    /// @notice Event emitted when early withdraw fee is updated\n    event EarlyWithdrawFeeBipsUpdated(uint256 oldFeeBips, uint256 newFeeBips);\n\n    /// @notice Event emitted when a trusted operator status is updated\n    event TrustedOperatorUpdated(address indexed account, bool status);\n\n    /// @notice Event emitted when an address's redeem cooldown exemption status is updated\n    event RedeemCooldownExemptUpdated(address indexed account, bool status);\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                     CONSTRUCTOR\n    //////////////////////////////////////////////////////////////////////////*/\n\n    constructor(\n        string memory _name,\n        string memory _symbol,\n        address _underlying,\n        address _creditVault\n    ) ERC20(_name, _symbol) {\n        underlying = IERC20(_underlying);\n        creditVault = _creditVault;\n\n        _decimals = IERC20(address(underlying)).decimals();\n    }\n\n    /// @notice Deposit underlying tokens to mint LP tokens\n    /// @param amount Amount of underlying tokens to deposit\n    /// @return sharesToMint Amount of LP tokens minted\n    function deposit(uint256 amount)\n        external\n        nonReentrant\n        whenNotPaused(depositPaused)\n        returns (uint256 sharesToMint)\n    {\n        sharesToMint = _deposit(msg.sender, msg.sender, amount);\n    }\n\n    /// @notice Deposit underlying tokens on behalf of another address\n    /// @param to The address to mint shares to\n    /// @param amount Amount of underlying tokens to deposit\n    /// @return sharesToMint Amount of LP tokens minted\n    function depositFor(\n        address to,\n        uint256 amount\n    ) external nonReentrant whenNotPaused(depositPaused) returns (uint256 sharesToMint) {\n        require(to != address(0), ErrorsLib.ZeroAddress());\n        require(trustedOperators[msg.sender], ErrorsLib.NotTrustedOperator());\n        sharesToMint = _deposit(msg.sender, to, amount);\n    }\n\n    /// @notice Redeem LP tokens for underlying tokens\n    /// @param sharesToBurn Amount of LP tokens to burn\n    /// @return underlyingAmount Amount of underlying tokens received\n    function redeem(uint256 sharesToBurn)\n        external\n        nonReentrant\n        whenNotPaused(redeemPaused)\n        returns (uint256 underlyingAmount)\n    {\n        underlyingAmount = _redeem(sharesToBurn, msg.sender);\n    }\n\n    /// @notice Redeem LP tokens and send underlying tokens to a specified address\n    /// @param sharesToBurn Amount of LP tokens to burn from caller's balance\n    /// @param to Address that will receive the underlying tokens\n    /// @return underlyingAmount Amount of underlying tokens sent to the recipient\n    function redeemTo(\n        uint256 sharesToBurn,\n        address to\n    ) external nonReentrant whenNotPaused(redeemPaused) returns (uint256 underlyingAmount) {\n        require(to != address(0), ErrorsLib.ZeroAddress());\n        require(trustedOperators[msg.sender], ErrorsLib.NotTrustedOperator());\n        underlyingAmount = _redeem(sharesToBurn, to);\n    }\n\n    /// @notice Transfers shares from sender to recipient\n    /// @param recipient The address to transfer shares to\n    /// @param sharesAmount The number of shares to transfer\n    /// @return The amount of underlying tokens the shares represent\n    function transferShares(address recipient, uint256 sharesAmount) external returns (uint256) {\n        _transferShares(msg.sender, recipient, sharesAmount);\n        uint256 tokensAmount = getUnderlyingByShares(sharesAmount);\n        _emitTransferEvents(msg.sender, recipient, tokensAmount, sharesAmount);\n        return tokensAmount;\n    }\n\n    /// @notice Distributes yield to LP token holders\n    /// @param yieldAmount Amount of yield to distribute\n    /// @dev Can only be called by the credit vault\n    function distributeYield(uint256 yieldAmount) external {\n        require(totalShares > 0, ErrorsLib.PoolNotInitialized());\n        require(yieldAmount > 0, ErrorsLib.NoYieldToDistribute());\n        require(msg.sender == creditVault, ErrorsLib.OnlyCreditVault());\n\n        totalUnderlying += yieldAmount;\n\n        emit YieldDistributed(yieldAmount);\n    }\n\n    /// @notice Gets the underlying token balance of an account\n    /// @param account The address to check the balance for\n    /// @return The amount of underlying tokens the account effectively owns\n    function balanceOf(address account) public view override returns (uint256) {\n        return getUnderlyingByShares(shares[account]);\n    }\n\n    /// @notice Gets the total supply of underlying tokens in the pool\n    /// @return The total amount of underlying tokens managed by this contract\n    function totalSupply() public view override returns (uint256) {\n        return totalUnderlying;\n    }\n\n    /// @notice Gets the number of shares owned by an account\n    /// @param account The address to check shares for\n    /// @return The number of shares owned by the account\n    function sharesOf(address account) public view returns (uint256) {\n        return shares[account];\n    }\n\n    /// @notice Calculates the underlying token amount for a given number of shares\n    /// @param sharesAmount The number of shares to convert\n    /// @return The corresponding amount of underlying tokens\n    function getUnderlyingByShares(uint256 sharesAmount) public view returns (uint256) {\n        if (totalShares == 0) {\n            return sharesAmount;\n        }\n        return (sharesAmount * totalUnderlying) / totalShares;\n    }\n\n    /// @notice Calculates the number of shares for a given amount of underlying tokens\n    /// @param underlyingAmount The amount of underlying tokens to convert\n    /// @return The corresponding number of shares\n    function getSharesByUnderlying(uint256 underlyingAmount) public view returns (uint256) {\n        if (totalShares == 0) {\n            return underlyingAmount;\n        }\n        return (underlyingAmount * totalShares) / totalUnderlying;\n    }\n\n    /// @notice Gets the current exchange rate between shares and underlying tokens\n    /// @return The exchange rate scaled by 1e18 (1:1 = 1e18)\n    function exchangeRate() public view returns (uint256) {\n        if (totalShares == 0) {\n            return 1e18; // Initial exchange rate 1:1\n        }\n        return (totalUnderlying * 1e18) / totalShares;\n    }\n\n    /// @notice Gets the number of decimals for this token\n    /// @return The number of decimals, matching the underlying token\n    function decimals() public view override returns (uint8) {\n        return _decimals;\n    }\n\n    /// @notice Sets the minimum deposit amount\n    /// @param _minDeposit New minimum deposit amount\n    /// @dev Can only be called by the owner\n    function setMinDeposit(uint256 _minDeposit) external onlyOwner {\n        uint256 oldAmount = minDeposit;\n        minDeposit = _minDeposit;\n        emit MinDepositUpdated(oldAmount, _minDeposit);\n    }\n\n    /// @notice Sets the minimum time interval required between deposit and redeem\n    /// @param _interval New minimum interval in seconds\n    /// @dev Can only be called by the owner\n    function setMinRedeemInterval(uint256 _interval) external onlyOwner {\n        minRedeemInterval = _interval;\n\n        emit MinRedeemIntervalUpdated(_interval);\n    }\n\n    /// @notice Sets the early withdrawal fee in basis points (BIPs)\n    /// @param _earlyWithdrawFeeBips New early withdrawal fee in BIPs\n    /// @dev Can only be called by the owner\n    function setEarlyWithdrawFeeBips(uint256 _earlyWithdrawFeeBips) external onlyOwner {\n        require(_earlyWithdrawFeeBips <= MAX_EARLY_WITHDRAW_FEE_BIPS, ErrorsLib.InvalidFeeBips());\n\n        uint256 oldFeeBips = earlyWithdrawFeeBips;\n        earlyWithdrawFeeBips = _earlyWithdrawFeeBips;\n\n        emit EarlyWithdrawFeeBipsUpdated(oldFeeBips, _earlyWithdrawFeeBips);\n    }\n\n    /// @notice Sets the trusted operator status for an address\n    /// @param account The address to update\n    /// @param status The new operator status\n    function setTrustedOperator(address account, bool status) external onlyOwner {\n        require(account != address(0), ErrorsLib.ZeroAddress());\n\n        trustedOperators[account] = status;\n        emit TrustedOperatorUpdated(account, status);\n    }\n\n    /// @notice Sets the redeem cooldown exemption status for an address\n    /// @param account The address to update\n    /// @param status The new exemption status\n    /// @dev Can only be called by the owner\n    function setRedeemCooldownExempt(address account, bool status) external onlyOwner {\n        require(account != address(0), ErrorsLib.ZeroAddress());\n\n        redeemCooldownExempt[account] = status;\n        emit RedeemCooldownExemptUpdated(account, status);\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                     PAUSE OPERATIONS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    /// @notice Function to pause deposit operation\n    function pauseDeposit() external onlyOwner {\n        depositPaused = true;\n        emit DepositPaused();\n    }\n\n    /// @notice Function to unpause deposit operation\n    function unpauseDeposit() external onlyOwner {\n        depositPaused = false;\n        emit DepositUnpaused();\n    }\n\n    /// @notice Function to pause redeem operation\n    function pauseRedeem() external onlyOwner {\n        redeemPaused = true;\n        emit RedeemPaused();\n    }\n\n    /// @notice Function to unpause redeem operation\n    function unpauseRedeem() external onlyOwner {\n        redeemPaused = false;\n        emit RedeemUnpaused();\n    }\n\n    modifier whenNotPaused(bool feature) {\n        if (feature) {\n            revert ErrorsLib.FeaturePaused();\n        }\n        _;\n    }\n\n    /*//////////////////////////////////////////////////////////////////////////\n                                INTERNAL FUNCTIONS\n    //////////////////////////////////////////////////////////////////////////*/\n\n    function _deposit(address from, address to, uint256 amount) internal returns (uint256 sharesToMint) {\n        require(amount >= minDeposit && amount > 0, ErrorsLib.BelowMinimumDeposit());\n\n        // Transfer underlying to vault\n        uint256 balanceBefore = underlying.balanceOf(creditVault);\n        underlying.safeTransferFrom(from, creditVault, amount);\n        amount = underlying.balanceOf(creditVault) - balanceBefore;\n\n        // Calculate shares to mint\n        if (totalShares == 0) {\n            sharesToMint = amount; // Initial shares 1:1\n        } else {\n            sharesToMint = (amount * totalShares) / totalUnderlying;\n        }\n\n        // Mint shares\n        _mintShares(to, sharesToMint);\n\n        // Update total underlying\n        totalUnderlying += amount;\n\n        lastDepositTimestamp[to] = block.timestamp;\n\n        emit SharesMinted(from, to, sharesToMint, amount);\n    }\n\n    function _redeem(uint256 sharesToBurn, address to) internal returns (uint256 underlyingAmount) {\n        require(sharesToBurn > 0, ErrorsLib.ZeroAmount());\n        require(shares[msg.sender] >= sharesToBurn, ErrorsLib.InsufficientShares());\n\n        // Calculate underlying amount\n        underlyingAmount = (sharesToBurn * totalUnderlying) / totalShares;\n\n        if (\n            block.timestamp < lastDepositTimestamp[msg.sender] + minRedeemInterval && earlyWithdrawFeeBips > 0\n                && !redeemCooldownExempt[msg.sender]\n        ) {\n            underlyingAmount -= (underlyingAmount * earlyWithdrawFeeBips) / 10_000;\n        }\n\n        // Burn shares first\n        _burnShares(msg.sender, sharesToBurn);\n\n        // Transfer underlying from vault to msg.sender\n        uint256 balanceBefore = underlying.balanceOf(creditVault);\n        CreditVault(creditVault).pay(to, underlyingAmount);\n        underlyingAmount = balanceBefore - underlying.balanceOf(creditVault);\n\n        // Update total underlying\n        totalUnderlying -= underlyingAmount;\n\n        emit SharesBurned(msg.sender, to, sharesToBurn, underlyingAmount);\n    }\n\n    function _mintShares(address to, uint256 shareAmount) internal {\n        require(shareAmount > 0, ErrorsLib.ZeroAmount());\n        require(to != address(0), ErrorsLib.ZeroAddress());\n\n        shares[to] += shareAmount;\n        totalShares += shareAmount;\n    }\n\n    function _burnShares(address from, uint256 shareAmount) internal {\n        require(shareAmount > 0, ErrorsLib.ZeroAmount());\n        require(from != address(0), ErrorsLib.ZeroAddress());\n\n        shares[from] -= shareAmount;\n        totalShares -= shareAmount;\n    }\n\n    /// @notice Override ERC20's _transfer to handle yield-bearing LP token transfers\n    /// @dev Since this is a yield-bearing token, the actual transfer is done by transferring shares\n    ///      rather than token amounts directly. The shares represent the user's proportion of the\n    ///      total underlying assets including yield.\n    /// @param from The address to transfer from\n    /// @param to The address to transfer to\n    /// @param amount The underlying token amount to transfer\n    function _transfer(address from, address to, uint256 amount) internal override {\n        uint256 sharesToTransfer = getSharesByUnderlying(amount);\n        _transferShares(from, to, sharesToTransfer);\n        _emitTransferEvents(from, to, amount, sharesToTransfer);\n    }\n\n    function _transferShares(address from, address to, uint256 _shares) internal {\n        require(from != address(0) && to != address(0), ErrorsLib.ZeroAddress());\n        require(from != to, ErrorsLib.TransferSelf());\n        require(to != address(this), ErrorsLib.TransferToContract());\n\n        _validateTransferCooldown(from);\n\n        shares[from] -= _shares;\n        shares[to] += _shares;\n    }\n\n    function _validateTransferCooldown(address user) internal view {\n        // During cooldown period, user can't transfer shares, but can still redeem\n        require(\n            lastDepositTimestamp[user] + minRedeemInterval <= block.timestamp || redeemCooldownExempt[user],\n            ErrorsLib.TransferInCooldown()\n        );\n    }\n\n    function _emitTransferEvents(address from, address to, uint256 tokenAmount, uint256 sharesAmount) internal {\n        emit Transfer(from, to, tokenAmount);\n        emit TransferShares(from, to, sharesAmount);\n    }\n}\n"},"src/libraries/TStorage.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.28;\n\n/// @title Transient storage utils\nlibrary TStorage {\n    /// @notice Loads a boolean value from transient storage at a given slot.\n    /// @param slot The storage slot to read from.\n    /// @return value The boolean value stored at the specified slot.\n    function tload(bytes32 slot) internal view returns (bool value) {\n        assembly {\n            value := tload(slot)\n        }\n    }\n\n    /// @notice Stores a boolean value in transient storage at a given slot.\n    /// @param slot The storage slot to write to.\n    /// @param value The boolean value to store at the specified slot.\n    function tstore(bytes32 slot, bool value) internal {\n        assembly {\n            tstore(slot, value)\n        }\n    }\n}\n"},"src/libraries/ErrorsLib.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.28;\n\n/// @title Custom error definitions for the protocol\n/// @notice This library contains all the error definitions used throughout the contract\n/// @dev The errors are arranged in alphabetical order\nlibrary ErrorsLib {\n    /// @notice Thrown when array lengths don't match in a function requiring equal-length arrays\n    error ArraysLengthMismatch();\n\n    /// @notice Thrown when deposit amount is below minimum required\n    error BelowMinimumDeposit();\n\n    /// @notice Thrown when caller is not the authorized epoch updater\n    error CallerNotEpochUpdater();\n\n    /// @notice Thrown when caller is not an authorized liquidator\n    error CallerNotLiquidator();\n\n    /// @notice Thrown when caller is not a trader or authorized settler\n    error CallerNotTraderSettler();\n\n    /// @notice Thrown when caller is not the WETH9 contract\n    error CallerNotWETH9();\n\n    /// @notice Thrown when epoch update is attempted before minimum interval\n    error EpochUpdateInCoolDown();\n\n    /// @notice Thrown when LP token exchange rate increases more than allowed\n    error ExchangeRateIncreaseTooMuch();\n\n    /// @notice Thrown when an external contract call fails\n    error ExternalCallFailed(address target, bytes4 selector);\n\n    /// @notice Thrown when feature is paused\n    error FeaturePaused();\n\n    /// @notice Thrown when there are insufficient funding fees to withdraw\n    error InsufficientFundingFees();\n\n    /// @notice Thrown when LP token shares are insufficient\n    error InsufficientShares();\n\n    /// @notice Thrown when LP token underlying is insufficient\n    error InsufficientUnderlying();\n\n    /// @notice Thrown when there is insufficient WETH9 to unwrap\n    error InsufficientWETH9();\n\n    /// @notice Thrown when an amount parameter is invalid\n    error InvalidAmount();\n\n    /// @notice Thrown when fee rate in basis points exceeds maximum (10000)\n    error InvalidFeeBips();\n\n    /// @notice Thrown when LP token address is invalid\n    error InvalidLPToken();\n\n    /// @notice Thrown when underlying are not supported in the credit vault\n    error InvalidUnderlying();\n\n    /// @notice Thrown when market (LP token) is invalid\n    error InvalidMarket();\n\n    /// @notice Thrown when position update amount is invalid\n    error InvalidPositionUpdateAmount();\n\n    /// @notice Thrown when the pool address is invalid Native pool\n    error InvalidNativePool();\n\n    /// @notice Thrown when signature verification fails\n    error InvalidSignature();\n\n    /// @notice Thrown when signer is not authorized\n    error InvalidSigner();\n\n    /// @notice Thrown when WETH9 unwrap amount is zero or exceeds balance\n    error InvalidWETH9Amount();\n\n    /// @notice Thrown when widget fee rate is invalid\n    error InvalidWidgetFeeRate();\n\n    /// @notice Thrown when liquidator and recipient are the same\n    error LiquidatorRecipientConflict();\n\n    /// @notice Thrown when nonce is used\n    error NonceUsed();\n\n    /// @notice Thrown when output amount is less than minimum required\n    error NotEnoughAmountOut(uint256 amountOut, uint256 amountOutMinimum);\n\n    /// @notice Thrown when insufficient token output received\n    error NotEnoughTokenReceived();\n\n    /// @notice Thrown the address is not a trader or liquidator\n    error NotTraderOrLiquidator();\n\n    /// @notice Error when caller is not a trusted operator\n    error NotTrustedOperator();\n\n    /// @notice Thrown when there is no yield to distribute\n    error NoYieldToDistribute();\n\n    /// @notice Thrown when caller is not the credit pool\n    error OnlyCreditPool();\n\n    /// @notice Thrown when caller is not the credit vault\n    error OnlyCreditVault();\n\n    /// @notice Thrown when caller is not the epoch updater\n    error OnlyEpochUpdater();\n\n    /// @notice Thrown when caller is not the fee withdrawer\n    error OnlyFeeWithdrawer();\n\n    /// @notice Thrown when caller is not an authorized liquidator\n    error OnlyLiquidator();\n\n    /// @notice Thrown when caller is not an LP token\n    error OnlyLpToken();\n\n    /// @notice Thrown when caller is not the native router\n    error OnlyNativeRouter();\n\n    /// @notice Thrown when caller is not the owner\n    error OnlyOwner();\n\n    /// @notice Thrown when caller is not an authorized trader\n    error OnlyTrader();\n\n    /// @notice Thrown when caller is not the WETH9 contract\n    error OnlyWETH9();\n\n    /// @notice Thrown when order has expired\n    error OrderExpired();\n\n    /// @notice Thrown when arithmetic operation would overflow\n    error Overflow();\n\n    /// @notice Thrown when permit2 token mismatch quote\n    error Permit2TokenMismatch();\n\n    /// @notice Thrown when LP pool has no deposits yet\n    error PoolNotInitialized();\n\n    /// @notice Thrown when quote has expired\n    error QuoteExpired();\n\n    /// @notice Thrown when rebalance limit is exceeded\n    error RebalanceLimitExceeded();\n\n    /// @notice Thrown when request has expired\n    error RequestExpired();\n\n    /// @notice Thrown when token is already listed\n    error TokenAlreadyListed();\n\n    /// @notice Thrown when trader, settler and recipient are the same\n    error TraderRecipientConflict();\n\n    /// @notice Thrown when transfer is in cooldown period\n    error TransferInCooldown();\n\n    /// @notice Thrown when transfer to self\n    error TransferSelf();\n\n    /// @notice Thrown when transfer to current contract\n    error TransferToContract();\n\n    /// @notice Thrown when unexpected msg.value is sent\n    error UnexpectedMsgValue();\n\n    /// @notice Thrown when zero address is provided\n    error ZeroAddress();\n\n    /// @notice Thrown when amount is zero\n    error ZeroAmount();\n\n    /// @notice Thrown when input is zero or empty\n    error ZeroInput();\n}\n"},"src/libraries/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\n// Copy from: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.6/contracts/token/ERC20/utils/SafeERC20.sol\n\n// NOTE: We disable 'SafeApprove' function beblow feature\n// same with uniswap v3 transferHelper: https://github.com/Uniswap/v3-periphery/blob/main/contracts/libraries/TransferHelper.sol\n// require(\n//     (value == 0) || (token.allowance(address(this), spender) == 0),\n//     \"SafeERC20: approve from non-zero to non-zero allowance\"\n// );\n\nimport \"openzeppelin/token/ERC20/IERC20.sol\";\nimport \"openzeppelin/utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    using Address for address;\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n    }\n\n    /**\n     * @dev Deprecated. This function has issues similar to the ones found in\n     * {IERC20-approve}, and its usage is discouraged.\n     *\n     * Whenever possible, use {safeIncreaseAllowance} and\n     * {safeDecreaseAllowance} instead.\n     */\n    function safeApprove(IERC20 token, address spender, uint256 value) internal {\n        // safeApprove should only be called when setting an initial allowance,\n        // or when resetting it to zero. To increase and decrease it, use\n        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n\n        // NOTE: we disable this\n        // require(\n        //     (value == 0) || (token.allowance(address(this), spender) == 0),\n        //     \"SafeERC20: approve from non-zero to non-zero allowance\"\n        // );\n\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        unchecked {\n            uint256 oldAllowance = token.allowance(address(this), spender);\n            require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     */\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n        // the target address contains contract code and also asserts for success in the low-level call.\n\n        bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n        require(returndata.length == 0 || abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n    }\n}\n"},"src/libraries/ConstantsLib.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.28;\n\n/// @dev Every interval, the system performs an epoch update to calculate and settle funding fees between traders\nuint256 constant EPOCH_UPDATE_INTERVAL = 8 hours;\n\n/// @dev Maximum early withdrawal fee in basis points (10%)\nuint256 constant MAX_EARLY_WITHDRAW_FEE_BIPS = 1000;\n\n/// @dev Maximum widget fee in basis points (20%)\nuint256 constant MAX_WIDGET_FEE_BIPS = 2000;\n\n/// @dev The EIP-712 typeHash for Settle Market Maker Position Authorization.\nbytes32 constant SETTLEMENT_REQUEST_SIGNATURE_HASH = keccak256(\n    \"SettlementRequest(uint256 nonce,uint256 deadline,address trader,bytes32 positionUpdates,address recipient)\"\n);\n\n/// @dev The EIP-712 typeHash for Remove Collateral Authorization.\nbytes32 constant REMOVE_COLLATERAL_REQUEST_SIGNATURE_HASH =\n    keccak256(\"RemoveCollateralRequest(uint256 nonce,uint256 deadline,address trader,bytes32 tokens,address recipient)\");\n\n/// @dev The EIP-712 typeHash for Liquidation Authorization.\nbytes32 constant LIQUIDATION_REQUEST_SIGNATURE_HASH = keccak256(\n    \"LiquidationRequest(uint256 nonce,uint256 deadline,address trader,bytes32 positionUpdates,bytes32 claimCollaterals,address recipient)\"\n);\n\n/// @dev The EIP-712 typeHash for Market Maker RFQ Quote Authorization.\nbytes32 constant ORDER_SIGNATURE_HASH = keccak256(\n    \"Order(uint256 id,address signer,address buyer,address seller,address buyerToken,address sellerToken,uint256 buyerTokenAmount,uint256 sellerTokenAmount,uint256 deadlineTimestamp,address caller,bytes16 quoteId)\"\n);\n\n/// @dev The EIP-712 typeHash for RFQ Quote Widget Authorization.\nbytes32 constant RFQ_QUOTE_WIDGET_SIGNATURE_HASH =\n    keccak256(\"RFQTQuote(bytes32 quote,address widgetFeeRecipient,uint256 widgetFeeRate)\");\n\n/// @dev The EIP-712 typeHash for Fill Order Authorization.\nbytes32 constant FILL_ORDER_SIGNATURE_HASH = keccak256(\n    \"fillOrder(uint256 nonce,address recipient,address tokenIn,address tokenOut,uint256 amountIn,uint256 amountOut,uint256 deadline,address widgetFeeRecipient,uint256 widgetFeeRate)\"\n);\n"},"src/interfaces/ICreditVault.sol":{"content":"// SPDX-License-Identifier: UNLICENSED\npragma solidity 0.8.28;\n\ninterface ICreditVault {\n    function swapCallback(\n        address signer,\n        address sellerToken,\n        int256 amount0Delta,\n        address buyerToken,\n        int256 amount1Delta\n    ) external;\n\n    /// @notice Struct for tracking daily rebalance limits per trader/liquidator and token\n    /// @param limit Daily rebalance limit\n    /// @param used Amount rebalanced today\n    /// @param lastDay Last rebalance day timestamp\n    struct RebalanceCap {\n        uint256 limit;\n        uint256 used;\n        uint256 lastDay;\n    }\n\n    /// @notice Epoch Funding fee updates for a specific trader\n    /// @param trader The address of the trader\n    /// @param feeUpdates Array of funding fee updates for different tokens\n    struct AccruedFundingFee {\n        address trader;\n        FundingFeeAmount[] feeUpdates;\n    }\n\n    /// @notice Details of funding and reserve fees for a specific token\n    /// @param token The unerlying token address\n    /// @param fundingFee  Amount of fee distributed to LP holders\n    /// @param reserveFee Amount of fee reserved for the protocol\n    struct FundingFeeAmount {\n        address token;\n        uint256 fundingFee;\n        uint256 reserveFee;\n    }\n\n    /// @notice Represents a token amount with unsigned integer value\n    /// @param token The address of underlying token\n    /// @param amount The unsigned amount of tokens\n    struct TokenAmountUint {\n        address token;\n        uint256 amount;\n    }\n\n    /// @notice Represents a token amount with signed integer value (for positions)\n    /// @param token The address of underlying token\n    /// @param amount The signed amount (positive for long, negative for short)\n    struct TokenAmountInt {\n        address token;\n        int256 amount;\n    }\n\n    /// @notice Request parameters for position settlement\n    /// @param nonce Unique identifier to prevent replay attacks\n    /// @param deadline Timestamp after which the request expires\n    /// @param trader Address of the trader whose positions are being settled\n    /// @param positionUpdates Array of position changes to be settled\n    struct SettlementRequest {\n        uint256 nonce;\n        uint256 deadline;\n        address trader;\n        TokenAmountInt[] positionUpdates;\n    }\n\n    /// @notice Request parameters for collateral removal\n    /// @param nonce Unique identifier to prevent replay attacks\n    /// @param deadline Timestamp after which the request expires\n    /// @param trader Address of the trader removing collateral\n    /// @param tokens Array of collateral tokens to be removed\n    struct RemoveCollateralRequest {\n        uint256 nonce;\n        uint256 deadline;\n        address trader;\n        TokenAmountUint[] tokens;\n    }\n\n    /// @notice Request parameters for position liquidation\n    /// @param nonce Unique identifier to prevent replay attacks\n    /// @param deadline Timestamp after which the request expires\n    /// @param trader Address of the trader being liquidated\n    /// @param positionUpdates Array of position changes from liquidation\n    /// @param claimCollaterals Array of collateral tokens to be claimed\n    struct LiquidationRequest {\n        uint256 nonce;\n        uint256 deadline;\n        address trader;\n        TokenAmountInt[] positionUpdates;\n        TokenAmountUint[] claimCollaterals;\n    }\n\n    /// @notice Emitted when a new market (LP token) is listed\n    /// @param lpToken The address of the newly listed LP token\n    event MarketListed(address lpToken);\n\n    /// @notice Emitted when epoch funding fees are updated for traders\n    /// @param accruedFundingFees Array of funding fee updates for different traders\n    event EpochUpdated(AccruedFundingFee[] accruedFundingFees);\n\n    /// @notice Emitted when a trader's positions are repaid\n    /// @param trader The address of the trader whose positions are being repaid\n    /// @param repayments Array of token amounts being repaid\n    event Repaid(address trader, TokenAmountInt[] repayments);\n\n    /// @notice Emitted when a trader's positions are settled\n    /// @param trader The address of the trader whose positions are being settled\n    /// @param positionUpdates Array of position changes\n    event Settled(address trader, TokenAmountInt[] positionUpdates);\n\n    /// @notice Emitted when collateral is added for a trader\n    /// @param trader The address of the trader receiving collateral\n    /// @param collateralUpdates Array of collateral token amounts added\n    event CollateralAdded(address trader, TokenAmountUint[] collateralUpdates);\n\n    /// @notice Emitted when collateral is removed for a trader\n    /// @param trader The address of the trader removing collateral\n    /// @param collateralUpdates Array of collateral token amounts removed\n    event CollateralRemoved(address trader, TokenAmountUint[] collateralUpdates);\n\n    /// @notice Emitted when a trader's positions are liquidated\n    /// @param trader The address of the trader being liquidated\n    /// @param liquidator The address performing the liquidation\n    /// @param positionUpdates Array of position changes from liquidation\n    /// @param claimCollaterals Array of collateral tokens claimed by liquidator\n    event Liquidated(\n        address trader, address liquidator, TokenAmountInt[] positionUpdates, TokenAmountUint[] claimCollaterals\n    );\n\n    /// @notice Emitted when a credit pool's status is updated\n    /// @param pool The address of the credit pool\n    /// @param isActive The new status of the pool\n    event CreditPoolUpdated(address indexed pool, bool isActive);\n\n    /// @notice Emitted when a trader or liquidator's rebalance limit is updated for a token\n    /// @param operator The trader or liquidator address\n    /// @param token The token address\n    /// @param limit The new daily limit (0 means unlimited)\n    event RebalanceCapUpdated(address indexed operator, address indexed token, uint256 limit);\n\n    /// @notice Emitted when a trader's info is updated\n    /// @param trader The address of the trader whose info is being updated\n    /// @param isTrader Whether the address is enabled for trading\n    /// @param isWhitelistTrader Whether the trader can bypass credit checks\n    /// @param settler The address authorized to settle positions for this trader\n    /// @param recipient The address authorized to receive tokens from settlements\n\n    event TraderSet(address indexed trader, bool isTrader, bool isWhitelistTrader, address settler, address recipient);\n\n    /// @notice Emitted when liquidator is set\n    event LiquidatorSet(address liquidator, bool status);\n\n    /// @notice Emitted when signer is set\n    event SignerSet(address signer);\n\n    /// @notice Emitted when epoch updater is set\n    event EpochUpdaterSet(address epochUpdater);\n\n    /// @notice Emitted when fee withdrawer is set\n    event FeeWithdrawerSet(address feeWithdrawer);\n\n    /// @notice Emitted when reserve fees are withdrawn\n    event ReserveWithdrawn(address underlying, address recipient, uint256 amount);\n}\n"},"src/libraries/ReentrancyGuardTransient.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.28;\n\nimport {TStorage} from \"./TStorage.sol\";\n\n// Refer from OpenZeppelin https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v5.1/contracts/utils/ReentrancyGuardTransient.sol\n\n/**\n * @dev Variant of {ReentrancyGuard} that uses transient storage.\n */\nabstract contract ReentrancyGuardTransient {\n    using TStorage for bytes32;\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.ReentrancyGuard\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant REENTRANCY_GUARD_STORAGE =\n        0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;\n\n    /**\n     * @dev Unauthorized reentrant call.\n     */\n    error ReentrancyGuardReentrantCall();\n\n    /**\n     * @dev Prevents a contract from calling itself, directly or indirectly.\n     * Calling a `nonReentrant` function from another `nonReentrant`\n     * function is not supported. It is possible to prevent this from happening\n     * by making the `nonReentrant` function external, and making it call a\n     * `private` function that does the actual work.\n     */\n    modifier nonReentrant() {\n        _nonReentrantBefore();\n        _;\n        _nonReentrantAfter();\n    }\n\n    function _nonReentrantBefore() private {\n        // On the first call to nonReentrant, _status will be NOT_ENTERED\n        if (_reentrancyGuardEntered()) {\n            revert ReentrancyGuardReentrantCall();\n        }\n\n        // Any calls to nonReentrant after this point will fail\n        REENTRANCY_GUARD_STORAGE.tstore(true);\n    }\n\n    function _nonReentrantAfter() private {\n        REENTRANCY_GUARD_STORAGE.tstore(false);\n    }\n\n    /**\n     * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n     * `nonReentrant` function in the call stack.\n     */\n    function _reentrancyGuardEntered() internal view returns (bool) {\n        return REENTRANCY_GUARD_STORAGE.tload();\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n    /**\n     * @dev Returns true if `account` is a contract.\n     *\n     * [IMPORTANT]\n     * ====\n     * It is unsafe to assume that an address for which this function returns\n     * false is an externally-owned account (EOA) and not a contract.\n     *\n     * Among others, `isContract` will return false for the following\n     * types of addresses:\n     *\n     *  - an externally-owned account\n     *  - a contract in construction\n     *  - an address where a contract will be created\n     *  - an address where a contract lived, but was destroyed\n     *\n     * Furthermore, `isContract` will also return true if the target contract within\n     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n     * which only has an effect at the end of a transaction.\n     * ====\n     *\n     * [IMPORTANT]\n     * ====\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\n     *\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n     * constructor.\n     * ====\n     */\n    function isContract(address account) internal view returns (bool) {\n        // This method relies on extcodesize/address.code.length, which returns 0\n        // for contracts in construction, since the code is only stored at the end\n        // of the constructor execution.\n\n        return account.code.length > 0;\n    }\n\n    /**\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n     * `recipient`, forwarding all available gas and reverting on errors.\n     *\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\n     * imposed by `transfer`, making them unable to receive funds via\n     * `transfer`. {sendValue} removes this limitation.\n     *\n     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n     *\n     * IMPORTANT: because control is transferred to `recipient`, care must be\n     * taken to not create reentrancy vulnerabilities. Consider using\n     * {ReentrancyGuard} or the\n     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n     */\n    function sendValue(address payable recipient, uint256 amount) internal {\n        require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n        (bool success, ) = recipient.call{value: amount}(\"\");\n        require(success, \"Address: unable to send value, recipient may have reverted\");\n    }\n\n    /**\n     * @dev Performs a Solidity function call using a low level `call`. A\n     * plain `call` is an unsafe replacement for a function call: use this\n     * function instead.\n     *\n     * If `target` reverts with a revert reason, it is bubbled up by this\n     * function (like regular Solidity function calls).\n     *\n     * Returns the raw returned data. To convert to the expected return value,\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n     *\n     * Requirements:\n     *\n     * - `target` must be a contract.\n     * - calling `target` with `data` must not revert.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n     * `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but also transferring `value` wei to `target`.\n     *\n     * Requirements:\n     *\n     * - the calling contract must have an ETH balance of at least `value`.\n     * - the called Solidity function must be `payable`.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(\n        address target,\n        bytes memory data,\n        uint256 value,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        require(address(this).balance >= value, \"Address: insufficient balance for call\");\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n        return functionStaticCall(target, data, \"Address: low-level static call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.staticcall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.delegatecall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n     *\n     * _Available since v4.8._\n     */\n    function verifyCallResultFromTarget(\n        address target,\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        if (success) {\n            if (returndata.length == 0) {\n                // only check isContract if the call was successful and the return data is empty\n                // otherwise we already know that it was a contract\n                require(isContract(target), \"Address: call to non-contract\");\n            }\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    /**\n     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n     * revert reason or using the provided one.\n     *\n     * _Available since v4.3._\n     */\n    function verifyCallResult(\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal pure returns (bytes memory) {\n        if (success) {\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    function _revert(bytes memory returndata, string memory errorMessage) private pure {\n        // Look for revert reason and bubble it up if present\n        if (returndata.length > 0) {\n            // The easiest way to bubble the revert reason is using memory via assembly\n            /// @solidity memory-safe-assembly\n            assembly {\n                let returndata_size := mload(returndata)\n                revert(add(32, returndata), returndata_size)\n            }\n        } else {\n            revert(errorMessage);\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Context.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/Strings.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/Math.sol\";\nimport \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n    bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n    uint8 private constant _ADDRESS_LENGTH = 20;\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n     */\n    function toString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            uint256 length = Math.log10(value) + 1;\n            string memory buffer = new string(length);\n            uint256 ptr;\n            /// @solidity memory-safe-assembly\n            assembly {\n                ptr := add(buffer, add(32, length))\n            }\n            while (true) {\n                ptr--;\n                /// @solidity memory-safe-assembly\n                assembly {\n                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n                }\n                value /= 10;\n                if (value == 0) break;\n            }\n            return buffer;\n        }\n    }\n\n    /**\n     * @dev Converts a `int256` to its ASCII `string` decimal representation.\n     */\n    function toString(int256 value) internal pure returns (string memory) {\n        return string(abi.encodePacked(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value))));\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            return toHexString(value, Math.log256(value) + 1);\n        }\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n     */\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n        bytes memory buffer = new bytes(2 * length + 2);\n        buffer[0] = \"0\";\n        buffer[1] = \"x\";\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\n            buffer[i] = _SYMBOLS[value & 0xf];\n            value >>= 4;\n        }\n        require(value == 0, \"Strings: hex length insufficient\");\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n     */\n    function toHexString(address addr) internal pure returns (string memory) {\n        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n    }\n\n    /**\n     * @dev Returns true if the two strings are equal.\n     */\n    function equal(string memory a, string memory b) internal pure returns (bool) {\n        return keccak256(bytes(a)) == keccak256(bytes(b));\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/access/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n    address private _owner;\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the deployer as the initial owner.\n     */\n    constructor() {\n        _transferOwnership(_msgSender());\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view virtual returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if the sender is not the owner.\n     */\n    function _checkOwner() internal view virtual {\n        require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual onlyOwner {\n        _transferOwnership(address(0));\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n        _transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    enum Rounding {\n        Down, // Toward negative infinity\n        Up, // Toward infinity\n        Zero // Toward zero\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b) / 2 can overflow.\n        return (a & b) + (a ^ b) / 2;\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds up instead\n     * of rounding down.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b - 1) / b can overflow on addition, so we distribute.\n        return a == 0 ? 0 : (a - 1) / b + 1;\n    }\n\n    /**\n     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n     * with further edits by Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n            // variables such that product = prod1 * 2^256 + prod0.\n            uint256 prod0; // Least significant 256 bits of the product\n            uint256 prod1; // Most significant 256 bits of the product\n            assembly {\n                let mm := mulmod(x, y, not(0))\n                prod0 := mul(x, y)\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n            }\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (prod1 == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return prod0 / denominator;\n            }\n\n            // Make sure the result is less than 2^256. Also prevents denominator == 0.\n            require(denominator > prod1, \"Math: mulDiv overflow\");\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [prod1 prod0].\n            uint256 remainder;\n            assembly {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                prod1 := sub(prod1, gt(remainder, prod0))\n                prod0 := sub(prod0, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n            // See https://cs.stackexchange.com/q/138556/92363.\n\n            // Does not overflow because the denominator cannot be zero at this stage in the function.\n            uint256 twos = denominator & (~denominator + 1);\n            assembly {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [prod1 prod0] by twos.\n                prod0 := div(prod0, twos)\n\n                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from prod1 into prod0.\n            prod0 |= prod1 * twos;\n\n            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv = 1 mod 2^4.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n            // in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2^8\n            inverse *= 2 - denominator * inverse; // inverse mod 2^16\n            inverse *= 2 - denominator * inverse; // inverse mod 2^32\n            inverse *= 2 - denominator * inverse; // inverse mod 2^64\n            inverse *= 2 - denominator * inverse; // inverse mod 2^128\n            inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n            // is no longer required.\n            result = prod0 * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        uint256 result = mulDiv(x, y, denominator);\n        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n            result += 1;\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n     *\n     * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        if (a == 0) {\n            return 0;\n        }\n\n        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n        //\n        // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n        //\n        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n        //\n        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n        uint256 result = 1 << (log2(a) >> 1);\n\n        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n        // into the expected uint128 result.\n        unchecked {\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            return min(result, a / result);\n        }\n    }\n\n    /**\n     * @notice Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 128;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 64;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 32;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 16;\n            }\n            if (value >> 8 > 0) {\n                value >>= 8;\n                result += 8;\n            }\n            if (value >> 4 > 0) {\n                value >>= 4;\n                result += 4;\n            }\n            if (value >> 2 > 0) {\n                value >>= 2;\n                result += 2;\n            }\n            if (value >> 1 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 16;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 8;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 4;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 2;\n            }\n            if (value >> 8 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC20.sol\";\nimport \"./extensions/IERC20Metadata.sol\";\nimport \"../../utils/Context.sol\";\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n * For a generic mechanism see {ERC20PresetMinterPauser}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * The default value of {decimals} is 18. To change this, you should override\n * this function so it returns a different value.\n *\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\n * instead returning `false` on failure. This behavior is nonetheless\n * conventional and does not conflict with the expectations of ERC20\n * applications.\n *\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\n * This allows applications to reconstruct the allowance for all accounts just\n * by listening to said events. Other implementations of the EIP may not emit\n * these events, as it isn't required by the specification.\n *\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\n * functions have been added to mitigate the well-known issues around setting\n * allowances. See {IERC20-approve}.\n */\ncontract ERC20 is Context, IERC20, IERC20Metadata {\n    mapping(address => uint256) private _balances;\n\n    mapping(address => mapping(address => uint256)) private _allowances;\n\n    uint256 private _totalSupply;\n\n    string private _name;\n    string private _symbol;\n\n    /**\n     * @dev Sets the values for {name} and {symbol}.\n     *\n     * All two of these values are immutable: they can only be set once during\n     * construction.\n     */\n    constructor(string memory name_, string memory symbol_) {\n        _name = name_;\n        _symbol = symbol_;\n    }\n\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() public view virtual override returns (string memory) {\n        return _name;\n    }\n\n    /**\n     * @dev Returns the symbol of the token, usually a shorter version of the\n     * name.\n     */\n    function symbol() public view virtual override returns (string memory) {\n        return _symbol;\n    }\n\n    /**\n     * @dev Returns the number of decimals used to get its user representation.\n     * For example, if `decimals` equals `2`, a balance of `505` tokens should\n     * be displayed to a user as `5.05` (`505 / 10 ** 2`).\n     *\n     * Tokens usually opt for a value of 18, imitating the relationship between\n     * Ether and Wei. This is the default value returned by this function, unless\n     * it's overridden.\n     *\n     * NOTE: This information is only used for _display_ purposes: it in\n     * no way affects any of the arithmetic of the contract, including\n     * {IERC20-balanceOf} and {IERC20-transfer}.\n     */\n    function decimals() public view virtual override returns (uint8) {\n        return 18;\n    }\n\n    /**\n     * @dev See {IERC20-totalSupply}.\n     */\n    function totalSupply() public view virtual override returns (uint256) {\n        return _totalSupply;\n    }\n\n    /**\n     * @dev See {IERC20-balanceOf}.\n     */\n    function balanceOf(address account) public view virtual override returns (uint256) {\n        return _balances[account];\n    }\n\n    /**\n     * @dev See {IERC20-transfer}.\n     *\n     * Requirements:\n     *\n     * - `to` cannot be the zero address.\n     * - the caller must have a balance of at least `amount`.\n     */\n    function transfer(address to, uint256 amount) public virtual override returns (bool) {\n        address owner = _msgSender();\n        _transfer(owner, to, amount);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-allowance}.\n     */\n    function allowance(address owner, address spender) public view virtual override returns (uint256) {\n        return _allowances[owner][spender];\n    }\n\n    /**\n     * @dev See {IERC20-approve}.\n     *\n     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\n     * `transferFrom`. This is semantically equivalent to an infinite approval.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function approve(address spender, uint256 amount) public virtual override returns (bool) {\n        address owner = _msgSender();\n        _approve(owner, spender, amount);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-transferFrom}.\n     *\n     * Emits an {Approval} event indicating the updated allowance. This is not\n     * required by the EIP. See the note at the beginning of {ERC20}.\n     *\n     * NOTE: Does not update the allowance if the current allowance\n     * is the maximum `uint256`.\n     *\n     * Requirements:\n     *\n     * - `from` and `to` cannot be the zero address.\n     * - `from` must have a balance of at least `amount`.\n     * - the caller must have allowance for ``from``'s tokens of at least\n     * `amount`.\n     */\n    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {\n        address spender = _msgSender();\n        _spendAllowance(from, spender, amount);\n        _transfer(from, to, amount);\n        return true;\n    }\n\n    /**\n     * @dev Atomically increases the allowance granted to `spender` by the caller.\n     *\n     * This is an alternative to {approve} that can be used as a mitigation for\n     * problems described in {IERC20-approve}.\n     *\n     * Emits an {Approval} event indicating the updated allowance.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\n        address owner = _msgSender();\n        _approve(owner, spender, allowance(owner, spender) + addedValue);\n        return true;\n    }\n\n    /**\n     * @dev Atomically decreases the allowance granted to `spender` by the caller.\n     *\n     * This is an alternative to {approve} that can be used as a mitigation for\n     * problems described in {IERC20-approve}.\n     *\n     * Emits an {Approval} event indicating the updated allowance.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     * - `spender` must have allowance for the caller of at least\n     * `subtractedValue`.\n     */\n    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\n        address owner = _msgSender();\n        uint256 currentAllowance = allowance(owner, spender);\n        require(currentAllowance >= subtractedValue, \"ERC20: decreased allowance below zero\");\n        unchecked {\n            _approve(owner, spender, currentAllowance - subtractedValue);\n        }\n\n        return true;\n    }\n\n    /**\n     * @dev Moves `amount` of tokens from `from` to `to`.\n     *\n     * This internal function is equivalent to {transfer}, and can be used to\n     * e.g. implement automatic token fees, slashing mechanisms, etc.\n     *\n     * Emits a {Transfer} event.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `from` must have a balance of at least `amount`.\n     */\n    function _transfer(address from, address to, uint256 amount) internal virtual {\n        require(from != address(0), \"ERC20: transfer from the zero address\");\n        require(to != address(0), \"ERC20: transfer to the zero address\");\n\n        _beforeTokenTransfer(from, to, amount);\n\n        uint256 fromBalance = _balances[from];\n        require(fromBalance >= amount, \"ERC20: transfer amount exceeds balance\");\n        unchecked {\n            _balances[from] = fromBalance - amount;\n            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\n            // decrementing then incrementing.\n            _balances[to] += amount;\n        }\n\n        emit Transfer(from, to, amount);\n\n        _afterTokenTransfer(from, to, amount);\n    }\n\n    /** @dev Creates `amount` tokens and assigns them to `account`, increasing\n     * the total supply.\n     *\n     * Emits a {Transfer} event with `from` set to the zero address.\n     *\n     * Requirements:\n     *\n     * - `account` cannot be the zero address.\n     */\n    function _mint(address account, uint256 amount) internal virtual {\n        require(account != address(0), \"ERC20: mint to the zero address\");\n\n        _beforeTokenTransfer(address(0), account, amount);\n\n        _totalSupply += amount;\n        unchecked {\n            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\n            _balances[account] += amount;\n        }\n        emit Transfer(address(0), account, amount);\n\n        _afterTokenTransfer(address(0), account, amount);\n    }\n\n    /**\n     * @dev Destroys `amount` tokens from `account`, reducing the\n     * total supply.\n     *\n     * Emits a {Transfer} event with `to` set to the zero address.\n     *\n     * Requirements:\n     *\n     * - `account` cannot be the zero address.\n     * - `account` must have at least `amount` tokens.\n     */\n    function _burn(address account, uint256 amount) internal virtual {\n        require(account != address(0), \"ERC20: burn from the zero address\");\n\n        _beforeTokenTransfer(account, address(0), amount);\n\n        uint256 accountBalance = _balances[account];\n        require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n        unchecked {\n            _balances[account] = accountBalance - amount;\n            // Overflow not possible: amount <= accountBalance <= totalSupply.\n            _totalSupply -= amount;\n        }\n\n        emit Transfer(account, address(0), amount);\n\n        _afterTokenTransfer(account, address(0), amount);\n    }\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\n     *\n     * This internal function is equivalent to `approve`, and can be used to\n     * e.g. set automatic allowances for certain subsystems, etc.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `owner` cannot be the zero address.\n     * - `spender` cannot be the zero address.\n     */\n    function _approve(address owner, address spender, uint256 amount) internal virtual {\n        require(owner != address(0), \"ERC20: approve from the zero address\");\n        require(spender != address(0), \"ERC20: approve to the zero address\");\n\n        _allowances[owner][spender] = amount;\n        emit Approval(owner, spender, amount);\n    }\n\n    /**\n     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\n     *\n     * Does not update the allowance amount in case of infinite allowance.\n     * Revert if not enough allowance is available.\n     *\n     * Might emit an {Approval} event.\n     */\n    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {\n        uint256 currentAllowance = allowance(owner, spender);\n        if (currentAllowance != type(uint256).max) {\n            require(currentAllowance >= amount, \"ERC20: insufficient allowance\");\n            unchecked {\n                _approve(owner, spender, currentAllowance - amount);\n            }\n        }\n    }\n\n    /**\n     * @dev Hook that is called before any transfer of tokens. This includes\n     * minting and burning.\n     *\n     * Calling conditions:\n     *\n     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n     * will be transferred to `to`.\n     * - when `from` is zero, `amount` tokens will be minted for `to`.\n     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\n     * - `from` and `to` are never both zero.\n     *\n     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n     */\n    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}\n\n    /**\n     * @dev Hook that is called after any transfer of tokens. This includes\n     * minting and burning.\n     *\n     * Calling conditions:\n     *\n     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n     * has been transferred to `to`.\n     * - when `from` is zero, `amount` tokens have been minted for `to`.\n     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\n     * - `from` and `to` are never both zero.\n     *\n     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n     */\n    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}\n}\n"},"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Library for reading and writing primitive types to specific storage slots.\n *\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\n *\n * Example usage to set ERC1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n *\n *     function _getImplementation() internal view returns (address) {\n *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\n *     }\n *\n *     function _setImplementation(address newImplementation) internal {\n *         require(Address.isContract(newImplementation), \"ERC1967: new implementation is not a contract\");\n *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n *     }\n * }\n * ```\n *\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\n * _Available since v4.9 for `string`, `bytes`._\n */\nlibrary StorageSlot {\n    struct AddressSlot {\n        address value;\n    }\n\n    struct BooleanSlot {\n        bool value;\n    }\n\n    struct Bytes32Slot {\n        bytes32 value;\n    }\n\n    struct Uint256Slot {\n        uint256 value;\n    }\n\n    struct StringSlot {\n        string value;\n    }\n\n    struct BytesSlot {\n        bytes value;\n    }\n\n    /**\n     * @dev Returns an `AddressSlot` with member `value` located at `slot`.\n     */\n    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\n     */\n    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\n     */\n    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\n     */\n    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `StringSlot` with member `value` located at `slot`.\n     */\n    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n     */\n    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := store.slot\n        }\n    }\n\n    /**\n     * @dev Returns an `BytesSlot` with member `value` located at `slot`.\n     */\n    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n     */\n    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := store.slot\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the amount of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the amount of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves `amount` tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Moves `amount` tokens from `from` to `to` using the\n     * allowance mechanism. `amount` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 amount) external returns (bool);\n}\n"},"lib/openzeppelin-contracts/contracts/utils/ShortStrings.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/ShortStrings.sol)\n\npragma solidity ^0.8.8;\n\nimport \"./StorageSlot.sol\";\n\n// | string  | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA   |\n// | length  | 0x                                                              BB |\ntype ShortString is bytes32;\n\n/**\n * @dev This library provides functions to convert short memory strings\n * into a `ShortString` type that can be used as an immutable variable.\n *\n * Strings of arbitrary length can be optimized using this library if\n * they are short enough (up to 31 bytes) by packing them with their\n * length (1 byte) in a single EVM word (32 bytes). Additionally, a\n * fallback mechanism can be used for every other case.\n *\n * Usage example:\n *\n * ```solidity\n * contract Named {\n *     using ShortStrings for *;\n *\n *     ShortString private immutable _name;\n *     string private _nameFallback;\n *\n *     constructor(string memory contractName) {\n *         _name = contractName.toShortStringWithFallback(_nameFallback);\n *     }\n *\n *     function name() external view returns (string memory) {\n *         return _name.toStringWithFallback(_nameFallback);\n *     }\n * }\n * ```\n */\nlibrary ShortStrings {\n    // Used as an identifier for strings longer than 31 bytes.\n    bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;\n\n    error StringTooLong(string str);\n    error InvalidShortString();\n\n    /**\n     * @dev Encode a string of at most 31 chars into a `ShortString`.\n     *\n     * This will trigger a `StringTooLong` error is the input string is too long.\n     */\n    function toShortString(string memory str) internal pure returns (ShortString) {\n        bytes memory bstr = bytes(str);\n        if (bstr.length > 31) {\n            revert StringTooLong(str);\n        }\n        return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));\n    }\n\n    /**\n     * @dev Decode a `ShortString` back to a \"normal\" string.\n     */\n    function toString(ShortString sstr) internal pure returns (string memory) {\n        uint256 len = byteLength(sstr);\n        // using `new string(len)` would work locally but is not memory safe.\n        string memory str = new string(32);\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(str, len)\n            mstore(add(str, 0x20), sstr)\n        }\n        return str;\n    }\n\n    /**\n     * @dev Return the length of a `ShortString`.\n     */\n    function byteLength(ShortString sstr) internal pure returns (uint256) {\n        uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;\n        if (result > 31) {\n            revert InvalidShortString();\n        }\n        return result;\n    }\n\n    /**\n     * @dev Encode a string into a `ShortString`, or write it to storage if it is too long.\n     */\n    function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {\n        if (bytes(value).length < 32) {\n            return toShortString(value);\n        } else {\n            StorageSlot.getStringSlot(store).value = value;\n            return ShortString.wrap(_FALLBACK_SENTINEL);\n        }\n    }\n\n    /**\n     * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.\n     */\n    function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {\n        if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {\n            return toString(value);\n        } else {\n            return store;\n        }\n    }\n\n    /**\n     * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}.\n     *\n     * WARNING: This will return the \"byte length\" of the string. This may not reflect the actual length in terms of\n     * actual characters as the UTF-8 encoding of a single character can span over multiple bytes.\n     */\n    function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {\n        if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {\n            return byteLength(value);\n        } else {\n            return bytes(store).length;\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/access/Ownable2Step.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./Ownable.sol\";\n\n/**\n * @dev Contract module which provides access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership} and {acceptOwnership}.\n *\n * This module is used through inheritance. It will make available all functions\n * from parent (Ownable).\n */\nabstract contract Ownable2Step is Ownable {\n    address private _pendingOwner;\n\n    event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Returns the address of the pending owner.\n     */\n    function pendingOwner() public view virtual returns (address) {\n        return _pendingOwner;\n    }\n\n    /**\n     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual override onlyOwner {\n        _pendingOwner = newOwner;\n        emit OwnershipTransferStarted(owner(), newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual override {\n        delete _pendingOwner;\n        super._transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev The new owner accepts the ownership transfer.\n     */\n    function acceptOwnership() public virtual {\n        address sender = _msgSender();\n        require(pendingOwner() == sender, \"Ownable2Step: caller is not the new owner\");\n        _transferOwnership(sender);\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC5267.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol)\n\npragma solidity ^0.8.0;\n\ninterface IERC5267 {\n    /**\n     * @dev MAY be emitted to signal that the domain could have changed.\n     */\n    event EIP712DomainChanged();\n\n    /**\n     * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n     * signature.\n     */\n    function eip712Domain()\n        external\n        view\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"},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX 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 *\n * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\n * all math on `uint256` and `int256` and then downcasting.\n */\nlibrary SafeCast {\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     * _Available since v4.7._\n     */\n    function toUint248(uint256 value) internal pure returns (uint248) {\n        require(value <= type(uint248).max, \"SafeCast: value doesn't fit in 248 bits\");\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     * _Available since v4.7._\n     */\n    function toUint240(uint256 value) internal pure returns (uint240) {\n        require(value <= type(uint240).max, \"SafeCast: value doesn't fit in 240 bits\");\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     * _Available since v4.7._\n     */\n    function toUint232(uint256 value) internal pure returns (uint232) {\n        require(value <= type(uint232).max, \"SafeCast: value doesn't fit in 232 bits\");\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     * _Available since v4.2._\n     */\n    function toUint224(uint256 value) internal pure returns (uint224) {\n        require(value <= type(uint224).max, \"SafeCast: value doesn't fit in 224 bits\");\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     * _Available since v4.7._\n     */\n    function toUint216(uint256 value) internal pure returns (uint216) {\n        require(value <= type(uint216).max, \"SafeCast: value doesn't fit in 216 bits\");\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     * _Available since v4.7._\n     */\n    function toUint208(uint256 value) internal pure returns (uint208) {\n        require(value <= type(uint208).max, \"SafeCast: value doesn't fit in 208 bits\");\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     * _Available since v4.7._\n     */\n    function toUint200(uint256 value) internal pure returns (uint200) {\n        require(value <= type(uint200).max, \"SafeCast: value doesn't fit in 200 bits\");\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     * _Available since v4.7._\n     */\n    function toUint192(uint256 value) internal pure returns (uint192) {\n        require(value <= type(uint192).max, \"SafeCast: value doesn't fit in 192 bits\");\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     * _Available since v4.7._\n     */\n    function toUint184(uint256 value) internal pure returns (uint184) {\n        require(value <= type(uint184).max, \"SafeCast: value doesn't fit in 184 bits\");\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     * _Available since v4.7._\n     */\n    function toUint176(uint256 value) internal pure returns (uint176) {\n        require(value <= type(uint176).max, \"SafeCast: value doesn't fit in 176 bits\");\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     * _Available since v4.7._\n     */\n    function toUint168(uint256 value) internal pure returns (uint168) {\n        require(value <= type(uint168).max, \"SafeCast: value doesn't fit in 168 bits\");\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     * _Available since v4.7._\n     */\n    function toUint160(uint256 value) internal pure returns (uint160) {\n        require(value <= type(uint160).max, \"SafeCast: value doesn't fit in 160 bits\");\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     * _Available since v4.7._\n     */\n    function toUint152(uint256 value) internal pure returns (uint152) {\n        require(value <= type(uint152).max, \"SafeCast: value doesn't fit in 152 bits\");\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     * _Available since v4.7._\n     */\n    function toUint144(uint256 value) internal pure returns (uint144) {\n        require(value <= type(uint144).max, \"SafeCast: value doesn't fit in 144 bits\");\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     * _Available since v4.7._\n     */\n    function toUint136(uint256 value) internal pure returns (uint136) {\n        require(value <= type(uint136).max, \"SafeCast: value doesn't fit in 136 bits\");\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     * _Available since v2.5._\n     */\n    function toUint128(uint256 value) internal pure returns (uint128) {\n        require(value <= type(uint128).max, \"SafeCast: value doesn't fit in 128 bits\");\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     * _Available since v4.7._\n     */\n    function toUint120(uint256 value) internal pure returns (uint120) {\n        require(value <= type(uint120).max, \"SafeCast: value doesn't fit in 120 bits\");\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     * _Available since v4.7._\n     */\n    function toUint112(uint256 value) internal pure returns (uint112) {\n        require(value <= type(uint112).max, \"SafeCast: value doesn't fit in 112 bits\");\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     * _Available since v4.7._\n     */\n    function toUint104(uint256 value) internal pure returns (uint104) {\n        require(value <= type(uint104).max, \"SafeCast: value doesn't fit in 104 bits\");\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     * _Available since v4.2._\n     */\n    function toUint96(uint256 value) internal pure returns (uint96) {\n        require(value <= type(uint96).max, \"SafeCast: value doesn't fit in 96 bits\");\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     * _Available since v4.7._\n     */\n    function toUint88(uint256 value) internal pure returns (uint88) {\n        require(value <= type(uint88).max, \"SafeCast: value doesn't fit in 88 bits\");\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     * _Available since v4.7._\n     */\n    function toUint80(uint256 value) internal pure returns (uint80) {\n        require(value <= type(uint80).max, \"SafeCast: value doesn't fit in 80 bits\");\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     * _Available since v4.7._\n     */\n    function toUint72(uint256 value) internal pure returns (uint72) {\n        require(value <= type(uint72).max, \"SafeCast: value doesn't fit in 72 bits\");\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     * _Available since v2.5._\n     */\n    function toUint64(uint256 value) internal pure returns (uint64) {\n        require(value <= type(uint64).max, \"SafeCast: value doesn't fit in 64 bits\");\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     * _Available since v4.7._\n     */\n    function toUint56(uint256 value) internal pure returns (uint56) {\n        require(value <= type(uint56).max, \"SafeCast: value doesn't fit in 56 bits\");\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     * _Available since v4.7._\n     */\n    function toUint48(uint256 value) internal pure returns (uint48) {\n        require(value <= type(uint48).max, \"SafeCast: value doesn't fit in 48 bits\");\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     * _Available since v4.7._\n     */\n    function toUint40(uint256 value) internal pure returns (uint40) {\n        require(value <= type(uint40).max, \"SafeCast: value doesn't fit in 40 bits\");\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     * _Available since v2.5._\n     */\n    function toUint32(uint256 value) internal pure returns (uint32) {\n        require(value <= type(uint32).max, \"SafeCast: value doesn't fit in 32 bits\");\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     * _Available since v4.7._\n     */\n    function toUint24(uint256 value) internal pure returns (uint24) {\n        require(value <= type(uint24).max, \"SafeCast: value doesn't fit in 24 bits\");\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     * _Available since v2.5._\n     */\n    function toUint16(uint256 value) internal pure returns (uint16) {\n        require(value <= type(uint16).max, \"SafeCast: value doesn't fit in 16 bits\");\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     * _Available since v2.5._\n     */\n    function toUint8(uint256 value) internal pure returns (uint8) {\n        require(value <= type(uint8).max, \"SafeCast: value doesn't fit in 8 bits\");\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     * _Available since v3.0._\n     */\n    function toUint256(int256 value) internal pure returns (uint256) {\n        require(value >= 0, \"SafeCast: value must be positive\");\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     * _Available since v4.7._\n     */\n    function toInt248(int256 value) internal pure returns (int248 downcasted) {\n        downcasted = int248(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 248 bits\");\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     * _Available since v4.7._\n     */\n    function toInt240(int256 value) internal pure returns (int240 downcasted) {\n        downcasted = int240(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 240 bits\");\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     * _Available since v4.7._\n     */\n    function toInt232(int256 value) internal pure returns (int232 downcasted) {\n        downcasted = int232(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 232 bits\");\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     * _Available since v4.7._\n     */\n    function toInt224(int256 value) internal pure returns (int224 downcasted) {\n        downcasted = int224(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 224 bits\");\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     * _Available since v4.7._\n     */\n    function toInt216(int256 value) internal pure returns (int216 downcasted) {\n        downcasted = int216(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 216 bits\");\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     * _Available since v4.7._\n     */\n    function toInt208(int256 value) internal pure returns (int208 downcasted) {\n        downcasted = int208(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 208 bits\");\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     * _Available since v4.7._\n     */\n    function toInt200(int256 value) internal pure returns (int200 downcasted) {\n        downcasted = int200(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 200 bits\");\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     * _Available since v4.7._\n     */\n    function toInt192(int256 value) internal pure returns (int192 downcasted) {\n        downcasted = int192(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 192 bits\");\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     * _Available since v4.7._\n     */\n    function toInt184(int256 value) internal pure returns (int184 downcasted) {\n        downcasted = int184(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 184 bits\");\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     * _Available since v4.7._\n     */\n    function toInt176(int256 value) internal pure returns (int176 downcasted) {\n        downcasted = int176(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 176 bits\");\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     * _Available since v4.7._\n     */\n    function toInt168(int256 value) internal pure returns (int168 downcasted) {\n        downcasted = int168(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 168 bits\");\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     * _Available since v4.7._\n     */\n    function toInt160(int256 value) internal pure returns (int160 downcasted) {\n        downcasted = int160(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 160 bits\");\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     * _Available since v4.7._\n     */\n    function toInt152(int256 value) internal pure returns (int152 downcasted) {\n        downcasted = int152(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 152 bits\");\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     * _Available since v4.7._\n     */\n    function toInt144(int256 value) internal pure returns (int144 downcasted) {\n        downcasted = int144(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 144 bits\");\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     * _Available since v4.7._\n     */\n    function toInt136(int256 value) internal pure returns (int136 downcasted) {\n        downcasted = int136(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 136 bits\");\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     * _Available since v3.1._\n     */\n    function toInt128(int256 value) internal pure returns (int128 downcasted) {\n        downcasted = int128(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 128 bits\");\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     * _Available since v4.7._\n     */\n    function toInt120(int256 value) internal pure returns (int120 downcasted) {\n        downcasted = int120(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 120 bits\");\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     * _Available since v4.7._\n     */\n    function toInt112(int256 value) internal pure returns (int112 downcasted) {\n        downcasted = int112(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 112 bits\");\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     * _Available since v4.7._\n     */\n    function toInt104(int256 value) internal pure returns (int104 downcasted) {\n        downcasted = int104(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 104 bits\");\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     * _Available since v4.7._\n     */\n    function toInt96(int256 value) internal pure returns (int96 downcasted) {\n        downcasted = int96(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 96 bits\");\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     * _Available since v4.7._\n     */\n    function toInt88(int256 value) internal pure returns (int88 downcasted) {\n        downcasted = int88(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 88 bits\");\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     * _Available since v4.7._\n     */\n    function toInt80(int256 value) internal pure returns (int80 downcasted) {\n        downcasted = int80(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 80 bits\");\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     * _Available since v4.7._\n     */\n    function toInt72(int256 value) internal pure returns (int72 downcasted) {\n        downcasted = int72(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 72 bits\");\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     * _Available since v3.1._\n     */\n    function toInt64(int256 value) internal pure returns (int64 downcasted) {\n        downcasted = int64(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 64 bits\");\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     * _Available since v4.7._\n     */\n    function toInt56(int256 value) internal pure returns (int56 downcasted) {\n        downcasted = int56(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 56 bits\");\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     * _Available since v4.7._\n     */\n    function toInt48(int256 value) internal pure returns (int48 downcasted) {\n        downcasted = int48(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 48 bits\");\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     * _Available since v4.7._\n     */\n    function toInt40(int256 value) internal pure returns (int40 downcasted) {\n        downcasted = int40(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 40 bits\");\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     * _Available since v3.1._\n     */\n    function toInt32(int256 value) internal pure returns (int32 downcasted) {\n        downcasted = int32(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 32 bits\");\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     * _Available since v4.7._\n     */\n    function toInt24(int256 value) internal pure returns (int24 downcasted) {\n        downcasted = int24(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 24 bits\");\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     * _Available since v3.1._\n     */\n    function toInt16(int256 value) internal pure returns (int16 downcasted) {\n        downcasted = int16(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 16 bits\");\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     * _Available since v3.1._\n     */\n    function toInt8(int256 value) internal pure returns (int8 downcasted) {\n        downcasted = int8(value);\n        require(downcasted == value, \"SafeCast: value doesn't fit in 8 bits\");\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     * _Available since v3.0._\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        require(value <= uint256(type(int256).max), \"SafeCast: value doesn't fit in an int256\");\n        return int256(value);\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n    /**\n     * @dev Returns the largest of two signed numbers.\n     */\n    function max(int256 a, int256 b) internal pure returns (int256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two signed numbers.\n     */\n    function min(int256 a, int256 b) internal pure returns (int256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two signed numbers without overflow.\n     * The result is rounded towards zero.\n     */\n    function average(int256 a, int256 b) internal pure returns (int256) {\n        // Formula from the book \"Hacker's Delight\"\n        int256 x = (a & b) + ((a ^ b) >> 1);\n        return x + (int256(uint256(x) >> 255) & (a ^ b));\n    }\n\n    /**\n     * @dev Returns the absolute unsigned value of a signed value.\n     */\n    function abs(int256 n) internal pure returns (uint256) {\n        unchecked {\n            // must be unchecked in order to support `n = type(int256).min`\n            return uint256(n >= 0 ? n : -n);\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../Strings.sol\";\n\n/**\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\n *\n * These functions can be used to verify that a message was signed by the holder\n * of the private keys of a given address.\n */\nlibrary ECDSA {\n    enum RecoverError {\n        NoError,\n        InvalidSignature,\n        InvalidSignatureLength,\n        InvalidSignatureS,\n        InvalidSignatureV // Deprecated in v4.8\n    }\n\n    function _throwError(RecoverError error) private pure {\n        if (error == RecoverError.NoError) {\n            return; // no error: do nothing\n        } else if (error == RecoverError.InvalidSignature) {\n            revert(\"ECDSA: invalid signature\");\n        } else if (error == RecoverError.InvalidSignatureLength) {\n            revert(\"ECDSA: invalid signature length\");\n        } else if (error == RecoverError.InvalidSignatureS) {\n            revert(\"ECDSA: invalid signature 's' value\");\n        }\n    }\n\n    /**\n     * @dev Returns the address that signed a hashed message (`hash`) with\n     * `signature` or error string. This address can then be used for verification purposes.\n     *\n     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n     * this function rejects them by requiring the `s` value to be in the lower\n     * half order, and the `v` value to be either 27 or 28.\n     *\n     * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n     * verification to be secure: it is possible to craft signatures that\n     * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n     * this is by receiving a hash of the original message (which may otherwise\n     * be too long), and then calling {toEthSignedMessageHash} on it.\n     *\n     * Documentation for signature generation:\n     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\n     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\n     *\n     * _Available since v4.3._\n     */\n    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\n        if (signature.length == 65) {\n            bytes32 r;\n            bytes32 s;\n            uint8 v;\n            // ecrecover takes the signature parameters, and the only way to get them\n            // currently is to use assembly.\n            /// @solidity memory-safe-assembly\n            assembly {\n                r := mload(add(signature, 0x20))\n                s := mload(add(signature, 0x40))\n                v := byte(0, mload(add(signature, 0x60)))\n            }\n            return tryRecover(hash, v, r, s);\n        } else {\n            return (address(0), RecoverError.InvalidSignatureLength);\n        }\n    }\n\n    /**\n     * @dev Returns the address that signed a hashed message (`hash`) with\n     * `signature`. This address can then be used for verification purposes.\n     *\n     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n     * this function rejects them by requiring the `s` value to be in the lower\n     * half order, and the `v` value to be either 27 or 28.\n     *\n     * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n     * verification to be secure: it is possible to craft signatures that\n     * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n     * this is by receiving a hash of the original message (which may otherwise\n     * be too long), and then calling {toEthSignedMessageHash} on it.\n     */\n    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n        (address recovered, RecoverError error) = tryRecover(hash, signature);\n        _throwError(error);\n        return recovered;\n    }\n\n    /**\n     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\n     *\n     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\n     *\n     * _Available since v4.3._\n     */\n    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {\n        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n        uint8 v = uint8((uint256(vs) >> 255) + 27);\n        return tryRecover(hash, v, r, s);\n    }\n\n    /**\n     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n     *\n     * _Available since v4.2._\n     */\n    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n        (address recovered, RecoverError error) = tryRecover(hash, r, vs);\n        _throwError(error);\n        return recovered;\n    }\n\n    /**\n     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\n     * `r` and `s` signature fields separately.\n     *\n     * _Available since v4.3._\n     */\n    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {\n        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\n        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\n        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most\n        // signatures from current libraries generate a unique signature with an s-value in the lower half order.\n        //\n        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\n        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\n        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\n        // these malleable signatures as well.\n        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\n            return (address(0), RecoverError.InvalidSignatureS);\n        }\n\n        // If the signature is valid (and not malleable), return the signer address\n        address signer = ecrecover(hash, v, r, s);\n        if (signer == address(0)) {\n            return (address(0), RecoverError.InvalidSignature);\n        }\n\n        return (signer, RecoverError.NoError);\n    }\n\n    /**\n     * @dev Overload of {ECDSA-recover} that receives the `v`,\n     * `r` and `s` signature fields separately.\n     */\n    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\n        _throwError(error);\n        return recovered;\n    }\n\n    /**\n     * @dev Returns an Ethereum Signed Message, created from a `hash`. This\n     * produces hash corresponding to the one signed with the\n     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\n     * JSON-RPC method as part of EIP-191.\n     *\n     * See {recover}.\n     */\n    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {\n        // 32 is the length in bytes of hash,\n        // enforced by the type signature above\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\")\n            mstore(0x1c, hash)\n            message := keccak256(0x00, 0x3c)\n        }\n    }\n\n    /**\n     * @dev Returns an Ethereum Signed Message, created from `s`. This\n     * produces hash corresponding to the one signed with the\n     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\n     * JSON-RPC method as part of EIP-191.\n     *\n     * See {recover}.\n     */\n    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\n        return keccak256(abi.encodePacked(\"\\x19Ethereum Signed Message:\\n\", Strings.toString(s.length), s));\n    }\n\n    /**\n     * @dev Returns an Ethereum Signed Typed Data, created from a\n     * `domainSeparator` and a `structHash`. This produces hash corresponding\n     * to the one signed with the\n     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\n     * JSON-RPC method as part of EIP-712.\n     *\n     * See {recover}.\n     */\n    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let ptr := mload(0x40)\n            mstore(ptr, \"\\x19\\x01\")\n            mstore(add(ptr, 0x02), domainSeparator)\n            mstore(add(ptr, 0x22), structHash)\n            data := keccak256(ptr, 0x42)\n        }\n    }\n\n    /**\n     * @dev Returns an Ethereum Signed Data with intended validator, created from a\n     * `validator` and `data` according to the version 0 of EIP-191.\n     *\n     * See {recover}.\n     */\n    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n        return keccak256(abi.encodePacked(\"\\x19\\x00\", validator, data));\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/utils/cryptography/EIP712.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.8;\n\nimport \"./ECDSA.sol\";\nimport \"../ShortStrings.sol\";\nimport \"../../interfaces/IERC5267.sol\";\n\n/**\n * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.\n *\n * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,\n * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding\n * they need in their contracts using a combination of `abi.encode` and `keccak256`.\n *\n * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding\n * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA\n * ({_hashTypedDataV4}).\n *\n * The implementation of the domain separator was designed to be as efficient as possible while still properly updating\n * the chain id to protect against replay attacks on an eventual fork of the chain.\n *\n * NOTE: This contract implements the version of the encoding known as \"v4\", as implemented by the JSON RPC method\n * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].\n *\n * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain\n * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the\n * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.\n *\n * _Available since v3.4._\n *\n * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\n */\nabstract contract EIP712 is IERC5267 {\n    using ShortStrings for *;\n\n    bytes32 private constant _TYPE_HASH =\n        keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to\n    // invalidate the cached domain separator if the chain id changes.\n    bytes32 private immutable _cachedDomainSeparator;\n    uint256 private immutable _cachedChainId;\n    address private immutable _cachedThis;\n\n    bytes32 private immutable _hashedName;\n    bytes32 private immutable _hashedVersion;\n\n    ShortString private immutable _name;\n    ShortString private immutable _version;\n    string private _nameFallback;\n    string private _versionFallback;\n\n    /**\n     * @dev Initializes the domain separator and parameter caches.\n     *\n     * The meaning of `name` and `version` is specified in\n     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:\n     *\n     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.\n     * - `version`: the current major version of the signing domain.\n     *\n     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart\n     * contract upgrade].\n     */\n    constructor(string memory name, string memory version) {\n        _name = name.toShortStringWithFallback(_nameFallback);\n        _version = version.toShortStringWithFallback(_versionFallback);\n        _hashedName = keccak256(bytes(name));\n        _hashedVersion = keccak256(bytes(version));\n\n        _cachedChainId = block.chainid;\n        _cachedDomainSeparator = _buildDomainSeparator();\n        _cachedThis = address(this);\n    }\n\n    /**\n     * @dev Returns the domain separator for the current chain.\n     */\n    function _domainSeparatorV4() internal view returns (bytes32) {\n        if (address(this) == _cachedThis && block.chainid == _cachedChainId) {\n            return _cachedDomainSeparator;\n        } else {\n            return _buildDomainSeparator();\n        }\n    }\n\n    function _buildDomainSeparator() private view returns (bytes32) {\n        return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));\n    }\n\n    /**\n     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this\n     * function returns the hash of the fully encoded EIP712 message for this domain.\n     *\n     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:\n     *\n     * ```solidity\n     * bytes32 digest = _hashTypedDataV4(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     */\n    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {\n        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);\n    }\n\n    /**\n     * @dev See {EIP-5267}.\n     *\n     * _Available since v4.9._\n     */\n    function eip712Domain()\n        public\n        view\n        virtual\n        override\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        return (\n            hex\"0f\", // 01111\n            _name.toStringWithFallback(_nameFallback),\n            _version.toStringWithFallback(_versionFallback),\n            block.chainid,\n            address(this),\n            bytes32(0),\n            new uint256[](0)\n        );\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\nimport \"../extensions/IERC20Permit.sol\";\nimport \"../../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    using Address for address;\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n    }\n\n    /**\n     * @dev Deprecated. This function has issues similar to the ones found in\n     * {IERC20-approve}, and its usage is discouraged.\n     *\n     * Whenever possible, use {safeIncreaseAllowance} and\n     * {safeDecreaseAllowance} instead.\n     */\n    function safeApprove(IERC20 token, address spender, uint256 value) internal {\n        // safeApprove should only be called when setting an initial allowance,\n        // or when resetting it to zero. To increase and decrease it, use\n        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n        require(\n            (value == 0) || (token.allowance(address(this), spender) == 0),\n            \"SafeERC20: approve from non-zero to non-zero allowance\"\n        );\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        unchecked {\n            uint256 oldAllowance = token.allowance(address(this), spender);\n            require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\n        }\n    }\n\n    /**\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n     * to be set to zero before setting it to a non-zero value, such as USDT.\n     */\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\n        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\n\n        if (!_callOptionalReturnBool(token, approvalCall)) {\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\n            _callOptionalReturn(token, approvalCall);\n        }\n    }\n\n    /**\n     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\n     * Revert on invalid signature.\n     */\n    function safePermit(\n        IERC20Permit token,\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        uint256 nonceBefore = token.nonces(owner);\n        token.permit(owner, spender, value, deadline, v, r, s);\n        uint256 nonceAfter = token.nonces(owner);\n        require(nonceAfter == nonceBefore + 1, \"SafeERC20: permit did not succeed\");\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     */\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n        // the target address contains contract code and also asserts for success in the low-level call.\n\n        bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n        require(returndata.length == 0 || abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     *\n     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\n     */\n    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\n        // and not revert is the subcall reverts.\n\n        (bool success, bytes memory returndata) = address(token).call(data);\n        return\n            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));\n    }\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n *\n * ==== Security Considerations\n *\n * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature\n * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be\n * considered as an intention to spend the allowance in any specific way. The second is that because permits have\n * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should\n * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be\n * generally recommended is:\n *\n * ```solidity\n * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {\n *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}\n *     doThing(..., value);\n * }\n *\n * function doThing(..., uint256 value) public {\n *     token.safeTransferFrom(msg.sender, address(this), value);\n *     ...\n * }\n * ```\n *\n * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of\n * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also\n * {SafeERC20-safeTransferFrom}).\n *\n * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so\n * contracts should have entry points that don't rely on permit.\n */\ninterface IERC20Permit {\n    /**\n     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n     * given ``owner``'s signed approval.\n     *\n     * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n     * ordering also apply here.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     * - `deadline` must be a timestamp in the future.\n     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n     * over the EIP712-formatted function arguments.\n     * - the signature must use ``owner``'s current nonce (see {nonces}).\n     *\n     * For more information on the signature format, see the\n     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n     * section].\n     *\n     * CAUTION: See Security Considerations above.\n     */\n    function permit(\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external;\n\n    /**\n     * @dev Returns the current nonce for `owner`. This value must be\n     * included whenever a signature is generated for {permit}.\n     *\n     * Every successful call to {permit} increases ``owner``'s nonce by one. This\n     * prevents a signature from being used multiple times.\n     */\n    function nonces(address owner) external view returns (uint256);\n\n    /**\n     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n     */\n    // solhint-disable-next-line func-name-mixedcase\n    function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n *\n * _Available since v4.1._\n */\ninterface IERC20Metadata is IERC20 {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"}},"language":"Solidity","settings":{"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"optimizer":{"runs":2000000,"enabled":true},"evmVersion":"cancun","remappings":[":@openzeppelin/=lib/openzeppelin-contracts/",":@permit2/=lib/permit2/src/",":ds-test/=lib/solmate/lib/ds-test/src/",":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",":forge-gas-snapshot/=lib/permit2/lib/forge-gas-snapshot/src/",":forge-std/=lib/forge-std/src/",":openzeppelin-contracts/=lib/openzeppelin-contracts/",":openzeppelin/=lib/openzeppelin-contracts/contracts/",":permit2/=lib/permit2/",":solmate/=lib/solmate/"]}},"stdJsonOutput":{"sources":{"src/CreditVault.sol":{"id":18},"src/NativeLPToken.sol":{"id":19},"src/libraries/TStorage.sol":{"id":25},"src/libraries/ErrorsLib.sol":{"id":22},"src/libraries/SafeERC20.sol":{"id":24},"src/libraries/ConstantsLib.sol":{"id":21},"src/interfaces/ICreditVault.sol":{"id":20},"src/libraries/ReentrancyGuardTransient.sol":{"id":23},"lib/openzeppelin-contracts/contracts/utils/Address.sol":{"id":8},"lib/openzeppelin-contracts/contracts/utils/Context.sol":{"id":9},"lib/openzeppelin-contracts/contracts/utils/Strings.sol":{"id":12},"lib/openzeppelin-contracts/contracts/access/Ownable.sol":{"id":0},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"id":15},"lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol":{"id":3},"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol":{"id":11},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"id":4},"lib/openzeppelin-contracts/contracts/utils/ShortStrings.sol":{"id":10},"lib/openzeppelin-contracts/contracts/access/Ownable2Step.sol":{"id":1},"lib/openzeppelin-contracts/contracts/interfaces/IERC5267.sol":{"id":2},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"id":16},"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol":{"id":17},"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol":{"id":13},"lib/openzeppelin-contracts/contracts/utils/cryptography/EIP712.sol":{"id":14},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"id":7},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol":{"id":6},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"id":5}},"contracts":{"src/CreditVault.sol":{"CreditVault":{"abi":[{"type":"constructor","inputs":[],"stateMutability":"nonpayable"},{"name":"EpochUpdateInCoolDown","type":"error","inputs":[]},{"name":"ExchangeRateIncreaseTooMuch","type":"error","inputs":[]},{"name":"InsufficientFundingFees","type":"error","inputs":[]},{"name":"InsufficientUnderlying","type":"error","inputs":[]},{"name":"InvalidLPToken","type":"error","inputs":[]},{"name":"InvalidMarket","type":"error","inputs":[]},{"name":"InvalidPositionUpdateAmount","type":"error","inputs":[]},{"name":"InvalidShortString","type":"error","inputs":[]},{"name":"InvalidSignature","type":"error","inputs":[]},{"name":"InvalidUnderlying","type":"error","inputs":[]},{"name":"LiquidatorRecipientConflict","type":"error","inputs":[]},{"name":"NonceUsed","type":"error","inputs":[]},{"name":"NotTraderOrLiquidator","type":"error","inputs":[]},{"name":"OnlyCreditPool","type":"error","inputs":[]},{"name":"OnlyEpochUpdater","type":"error","inputs":[]},{"name":"OnlyFeeWithdrawer","type":"error","inputs":[]},{"name":"OnlyLiquidator","type":"error","inputs":[]},{"name":"OnlyLpToken","type":"error","inputs":[]},{"name":"OnlyTrader","type":"error","inputs":[]},{"name":"RebalanceLimitExceeded","type":"error","inputs":[]},{"name":"ReentrancyGuardReentrantCall","type":"error","inputs":[]},{"name":"RequestExpired","type":"error","inputs":[]},{"name":"StringTooLong","type":"error","inputs":[{"name":"str","type":"string","internalType":"string"}]},{"name":"TokenAlreadyListed","type":"error","inputs":[]},{"name":"TraderRecipientConflict","type":"error","inputs":[]},{"name":"ZeroAddress","type":"error","inputs":[]},{"name":"CollateralAdded","type":"event","inputs":[{"name":"trader","type":"address","indexed":false,"internalType":"address"},{"name":"collateralUpdates","type":"tuple[]","indexed":false,"components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]"}],"anonymous":false},{"name":"CollateralRemoved","type":"event","inputs":[{"name":"trader","type":"address","indexed":false,"internalType":"address"},{"name":"collateralUpdates","type":"tuple[]","indexed":false,"components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]"}],"anonymous":false},{"name":"CreditPoolUpdated","type":"event","inputs":[{"name":"pool","type":"address","indexed":true,"internalType":"address"},{"name":"isActive","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"name":"EIP712DomainChanged","type":"event","inputs":[],"anonymous":false},{"name":"EpochUpdated","type":"event","inputs":[{"name":"accruedFundingFees","type":"tuple[]","indexed":false,"components":[{"name":"trader","type":"address","internalType":"address"},{"name":"feeUpdates","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"fundingFee","type":"uint256","internalType":"uint256"},{"name":"reserveFee","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.FundingFeeAmount[]"}],"internalType":"struct ICreditVault.AccruedFundingFee[]"}],"anonymous":false},{"name":"EpochUpdaterSet","type":"event","inputs":[{"name":"epochUpdater","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"FeeWithdrawerSet","type":"event","inputs":[{"name":"feeWithdrawer","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"Liquidated","type":"event","inputs":[{"name":"trader","type":"address","indexed":false,"internalType":"address"},{"name":"liquidator","type":"address","indexed":false,"internalType":"address"},{"name":"positionUpdates","type":"tuple[]","indexed":false,"components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"int256","internalType":"int256"}],"internalType":"struct ICreditVault.TokenAmountInt[]"},{"name":"claimCollaterals","type":"tuple[]","indexed":false,"components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]"}],"anonymous":false},{"name":"LiquidatorSet","type":"event","inputs":[{"name":"liquidator","type":"address","indexed":false,"internalType":"address"},{"name":"status","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"name":"MarketListed","type":"event","inputs":[{"name":"lpToken","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"OwnershipTransferStarted","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"OwnershipTransferred","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"RebalanceCapUpdated","type":"event","inputs":[{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"limit","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Repaid","type":"event","inputs":[{"name":"trader","type":"address","indexed":false,"internalType":"address"},{"name":"repayments","type":"tuple[]","indexed":false,"components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"int256","internalType":"int256"}],"internalType":"struct ICreditVault.TokenAmountInt[]"}],"anonymous":false},{"name":"ReserveWithdrawn","type":"event","inputs":[{"name":"underlying","type":"address","indexed":false,"internalType":"address"},{"name":"recipient","type":"address","indexed":false,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Settled","type":"event","inputs":[{"name":"trader","type":"address","indexed":false,"internalType":"address"},{"name":"positionUpdates","type":"tuple[]","indexed":false,"components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"int256","internalType":"int256"}],"internalType":"struct ICreditVault.TokenAmountInt[]"}],"anonymous":false},{"name":"SignerSet","type":"event","inputs":[{"name":"signer","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"TraderSet","type":"event","inputs":[{"name":"trader","type":"address","indexed":true,"internalType":"address"},{"name":"isTrader","type":"bool","indexed":false,"internalType":"bool"},{"name":"isWhitelistTrader","type":"bool","indexed":false,"internalType":"bool"},{"name":"settler","type":"address","indexed":false,"internalType":"address"},{"name":"recipient","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"acceptOwnership","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"addCollateral","type":"function","inputs":[{"name":"tokens","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]"},{"name":"trader","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"allLPTokens","type":"function","inputs":[{"name":"","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"contract NativeLPToken"}],"stateMutability":"view"},{"name":"collateral","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"creditPools","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"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":"epochUpdate","type":"function","inputs":[{"name":"accruedFees","type":"tuple[]","components":[{"name":"trader","type":"address","internalType":"address"},{"name":"feeUpdates","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"fundingFee","type":"uint256","internalType":"uint256"},{"name":"reserveFee","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.FundingFeeAmount[]"}],"internalType":"struct ICreditVault.AccruedFundingFee[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"epochUpdater","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"feeWithdrawer","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"lastEpochUpdateTimestamp","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"liquidate","type":"function","inputs":[{"name":"request","type":"tuple","components":[{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"},{"name":"trader","type":"address","internalType":"address"},{"name":"positionUpdates","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"int256","internalType":"int256"}],"internalType":"struct ICreditVault.TokenAmountInt[]"},{"name":"claimCollaterals","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]"}],"internalType":"struct ICreditVault.LiquidationRequest"},{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"liquidatorToRecipient","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"liquidators","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"lpTokens","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"contract NativeLPToken"}],"stateMutability":"view"},{"name":"nonces","type":"function","inputs":[{"name":"","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"owner","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"pay","type":"function","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"pendingOwner","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"positions","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"int256","internalType":"int256"}],"stateMutability":"view"},{"name":"rebalanceCaps","type":"function","inputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"limit","type":"uint256","internalType":"uint256"},{"name":"used","type":"uint256","internalType":"uint256"},{"name":"lastDay","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"removeCollateral","type":"function","inputs":[{"name":"request","type":"tuple","components":[{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"},{"name":"trader","type":"address","internalType":"address"},{"name":"tokens","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]"}],"internalType":"struct ICreditVault.RemoveCollateralRequest"},{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"renounceOwnership","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"repay","type":"function","inputs":[{"name":"positionUpdates","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"int256","internalType":"int256"}],"internalType":"struct ICreditVault.TokenAmountInt[]"},{"name":"trader","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"reserveFees","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"setAllowance","type":"function","inputs":[{"name":"tokens","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"internalType":"struct ICreditVault.TokenAmountUint[]"},{"name":"pool","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setCreditPool","type":"function","inputs":[{"name":"pool","type":"address","internalType":"address"},{"name":"isActive","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setEpochUpdater","type":"function","inputs":[{"name":"_epochUpdater","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setFeeWithdrawer","type":"function","inputs":[{"name":"_feeWithdrawer","type":"address","internalType":"address payable"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setLiquidator","type":"function","inputs":[{"name":"liquidator","type":"address","internalType":"address"},{"name":"recipient","type":"address","internalType":"address"},{"name":"status","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setRebalanceCap","type":"function","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"token","type":"address","internalType":"address"},{"name":"limit","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setSigner","type":"function","inputs":[{"name":"_signer","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setTrader","type":"function","inputs":[{"name":"trader","type":"address","internalType":"address"},{"name":"settler","type":"address","internalType":"address"},{"name":"recipient","type":"address","internalType":"address"},{"name":"isTrader","type":"bool","internalType":"bool"},{"name":"isWhitelistTrader","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"settle","type":"function","inputs":[{"name":"request","type":"tuple","components":[{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"},{"name":"trader","type":"address","internalType":"address"},{"name":"positionUpdates","type":"tuple[]","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"int256","internalType":"int256"}],"internalType":"struct ICreditVault.TokenAmountInt[]"}],"internalType":"struct ICreditVault.SettlementRequest"},{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"signer","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"supportMarket","type":"function","inputs":[{"name":"lpToken","type":"address","internalType":"contract NativeLPToken"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"supportedMarkets","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"swapCallback","type":"function","inputs":[{"name":"trader","type":"address","internalType":"address"},{"name":"tokenIn","type":"address","internalType":"address"},{"name":"amountIn","type":"int256","internalType":"int256"},{"name":"tokenOut","type":"address","internalType":"address"},{"name":"amountOut","type":"int256","internalType":"int256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"traderToRecipient","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"traderToSettler","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"traders","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"transferOwnership","type":"function","inputs":[{"name":"newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"whitelistTraders","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"withdrawReserve","type":"function","inputs":[{"name":"underlying","type":"address","internalType":"address"},{"name":"recipient","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"}],"metadata":"{\"compiler\":{\"version\":\"0.8.28+commit.7893614a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"EpochUpdateInCoolDown\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ExchangeRateIncreaseTooMuch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientFundingFees\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientUnderlying\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidLPToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidMarket\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidPositionUpdateAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidShortString\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidUnderlying\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LiquidatorRecipientConflict\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NonceUsed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotTraderOrLiquidator\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyCreditPool\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyEpochUpdater\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyFeeWithdrawer\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyLiquidator\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyLpToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyTrader\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RebalanceLimitExceeded\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyGuardReentrantCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RequestExpired\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"str\",\"type\":\"string\"}],\"name\":\"StringTooLong\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenAlreadyListed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TraderRecipientConflict\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"struct ICreditVault.TokenAmountUint[]\",\"name\":\"collateralUpdates\",\"type\":\"tuple[]\"}],\"name\":\"CollateralAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"struct ICreditVault.TokenAmountUint[]\",\"name\":\"collateralUpdates\",\"type\":\"tuple[]\"}],\"name\":\"CollateralRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"isActive\",\"type\":\"bool\"}],\"name\":\"CreditPoolUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"EIP712DomainChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"fundingFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveFee\",\"type\":\"uint256\"}],\"internalType\":\"struct ICreditVault.FundingFeeAmount[]\",\"name\":\"feeUpdates\",\"type\":\"tuple[]\"}],\"indexed\":false,\"internalType\":\"struct ICreditVault.AccruedFundingFee[]\",\"name\":\"accruedFundingFees\",\"type\":\"tuple[]\"}],\"name\":\"EpochUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"epochUpdater\",\"type\":\"address\"}],\"name\":\"EpochUpdaterSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"feeWithdrawer\",\"type\":\"address\"}],\"name\":\"FeeWithdrawerSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"liquidator\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"int256\",\"name\":\"amount\",\"type\":\"int256\"}],\"indexed\":false,\"internalType\":\"struct ICreditVault.TokenAmountInt[]\",\"name\":\"positionUpdates\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"struct ICreditVault.TokenAmountUint[]\",\"name\":\"claimCollaterals\",\"type\":\"tuple[]\"}],\"name\":\"Liquidated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"liquidator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"}],\"name\":\"LiquidatorSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"}],\"name\":\"MarketListed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"limit\",\"type\":\"uint256\"}],\"name\":\"RebalanceCapUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"int256\",\"name\":\"amount\",\"type\":\"int256\"}],\"indexed\":false,\"internalType\":\"struct ICreditVault.TokenAmountInt[]\",\"name\":\"repayments\",\"type\":\"tuple[]\"}],\"name\":\"Repaid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ReserveWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"int256\",\"name\":\"amount\",\"type\":\"int256\"}],\"indexed\":false,\"internalType\":\"struct ICreditVault.TokenAmountInt[]\",\"name\":\"positionUpdates\",\"type\":\"tuple[]\"}],\"name\":\"Settled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"}],\"name\":\"SignerSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"isTrader\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"isWhitelistTrader\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"settler\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"TraderSet\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"struct ICreditVault.TokenAmountUint[]\",\"name\":\"tokens\",\"type\":\"tuple[]\"},{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"}],\"name\":\"addCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"allLPTokens\",\"outputs\":[{\"internalType\":\"contract NativeLPToken\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"collateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"creditPools\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"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\":\"trader\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"fundingFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveFee\",\"type\":\"uint256\"}],\"internalType\":\"struct ICreditVault.FundingFeeAmount[]\",\"name\":\"feeUpdates\",\"type\":\"tuple[]\"}],\"internalType\":\"struct ICreditVault.AccruedFundingFee[]\",\"name\":\"accruedFees\",\"type\":\"tuple[]\"}],\"name\":\"epochUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"epochUpdater\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeWithdrawer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"lastEpochUpdateTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"int256\",\"name\":\"amount\",\"type\":\"int256\"}],\"internalType\":\"struct ICreditVault.TokenAmountInt[]\",\"name\":\"positionUpdates\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"struct ICreditVault.TokenAmountUint[]\",\"name\":\"claimCollaterals\",\"type\":\"tuple[]\"}],\"internalType\":\"struct ICreditVault.LiquidationRequest\",\"name\":\"request\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"liquidate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"liquidatorToRecipient\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"liquidators\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"lpTokens\",\"outputs\":[{\"internalType\":\"contract NativeLPToken\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"pay\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"positions\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"rebalanceCaps\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"limit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"used\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastDay\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"struct ICreditVault.TokenAmountUint[]\",\"name\":\"tokens\",\"type\":\"tuple[]\"}],\"internalType\":\"struct ICreditVault.RemoveCollateralRequest\",\"name\":\"request\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"removeCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"int256\",\"name\":\"amount\",\"type\":\"int256\"}],\"internalType\":\"struct ICreditVault.TokenAmountInt[]\",\"name\":\"positionUpdates\",\"type\":\"tuple[]\"},{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"}],\"name\":\"repay\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"reserveFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"struct ICreditVault.TokenAmountUint[]\",\"name\":\"tokens\",\"type\":\"tuple[]\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"setAllowance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isActive\",\"type\":\"bool\"}],\"name\":\"setCreditPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_epochUpdater\",\"type\":\"address\"}],\"name\":\"setEpochUpdater\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"_feeWithdrawer\",\"type\":\"address\"}],\"name\":\"setFeeWithdrawer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"liquidator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"}],\"name\":\"setLiquidator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"limit\",\"type\":\"uint256\"}],\"name\":\"setRebalanceCap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_signer\",\"type\":\"address\"}],\"name\":\"setSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"settler\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isTrader\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isWhitelistTrader\",\"type\":\"bool\"}],\"name\":\"setTrader\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"int256\",\"name\":\"amount\",\"type\":\"int256\"}],\"internalType\":\"struct ICreditVault.TokenAmountInt[]\",\"name\":\"positionUpdates\",\"type\":\"tuple[]\"}],\"internalType\":\"struct ICreditVault.SettlementRequest\",\"name\":\"request\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"settle\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract NativeLPToken\",\"name\":\"lpToken\",\"type\":\"address\"}],\"name\":\"supportMarket\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"supportedMarkets\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"int256\",\"name\":\"amountIn\",\"type\":\"int256\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"int256\",\"name\":\"amountOut\",\"type\":\"int256\"}],\"name\":\"swapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"traderToRecipient\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"traderToSettler\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"traders\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"whitelistTraders\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawReserve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"ReentrancyGuardReentrantCall()\":[{\"details\":\"Unauthorized reentrant call.\"}]},\"events\":{\"CollateralAdded(address,(address,uint256)[])\":{\"params\":{\"collateralUpdates\":\"Array of collateral token amounts added\",\"trader\":\"The address of the trader receiving collateral\"}},\"CollateralRemoved(address,(address,uint256)[])\":{\"params\":{\"collateralUpdates\":\"Array of collateral token amounts removed\",\"trader\":\"The address of the trader removing collateral\"}},\"CreditPoolUpdated(address,bool)\":{\"params\":{\"isActive\":\"The new status of the pool\",\"pool\":\"The address of the credit pool\"}},\"EIP712DomainChanged()\":{\"details\":\"MAY be emitted to signal that the domain could have changed.\"},\"EpochUpdated((address,(address,uint256,uint256)[])[])\":{\"params\":{\"accruedFundingFees\":\"Array of funding fee updates for different traders\"}},\"Liquidated(address,address,(address,int256)[],(address,uint256)[])\":{\"params\":{\"claimCollaterals\":\"Array of collateral tokens claimed by liquidator\",\"liquidator\":\"The address performing the liquidation\",\"positionUpdates\":\"Array of position changes from liquidation\",\"trader\":\"The address of the trader being liquidated\"}},\"MarketListed(address)\":{\"params\":{\"lpToken\":\"The address of the newly listed LP token\"}},\"RebalanceCapUpdated(address,address,uint256)\":{\"params\":{\"limit\":\"The new daily limit (0 means unlimited)\",\"operator\":\"The trader or liquidator address\",\"token\":\"The token address\"}},\"Repaid(address,(address,int256)[])\":{\"params\":{\"repayments\":\"Array of token amounts being repaid\",\"trader\":\"The address of the trader whose positions are being repaid\"}},\"Settled(address,(address,int256)[])\":{\"params\":{\"positionUpdates\":\"Array of position changes\",\"trader\":\"The address of the trader whose positions are being settled\"}},\"TraderSet(address,bool,bool,address,address)\":{\"params\":{\"isTrader\":\"Whether the address is enabled for trading\",\"isWhitelistTrader\":\"Whether the trader can bypass credit checks\",\"recipient\":\"The address authorized to receive tokens from settlements\",\"settler\":\"The address authorized to settle positions for this trader\",\"trader\":\"The address of the trader whose info is being updated\"}}},\"kind\":\"dev\",\"methods\":{\"acceptOwnership()\":{\"details\":\"The new owner accepts the ownership transfer.\"},\"addCollateral((address,uint256)[],address)\":{\"details\":\"PERMISSIONLESS: Anyone can add collateral for any traderOff-chain system will update trader's credit limit off-chain via event emission\",\"params\":{\"tokens\":\"Array of {token, amount} structs to be added as collateral\",\"trader\":\"Address of the trader receiving the collateral\"}},\"eip712Domain()\":{\"details\":\"See {EIP-5267}. _Available since v4.9._\"},\"epochUpdate((address,(address,uint256,uint256)[])[])\":{\"details\":\"Only callable by the epoch updater\",\"params\":{\"accruedFees\":\"Array of funding fee updates for different traders\"}},\"liquidate((uint256,uint256,address,(address,int256)[],(address,uint256)[]),bytes)\":{\"details\":\"This transaction requires off-chain calculation to verify if the trader's credit meets the criteria.\",\"params\":{\"request\":\"The struct of the liquidation request containing info of long and short positions to liquidate\",\"signature\":\"The signature of the liquidation request\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pay(address,uint256)\":{\"details\":\"Only callable by supported LP tokens\",\"params\":{\"amount\":\"Amount of underlying assets to transfer\",\"to\":\"Recipient of the underlying assets\"}},\"pendingOwner()\":{\"details\":\"Returns the address of the pending owner.\"},\"removeCollateral((uint256,uint256,address,(address,uint256)[]),bytes)\":{\"details\":\"This transaction requires off-chain calculation to verify if the trader's credit meets the criteria.\",\"params\":{\"request\":\"The struct of the remove collateral request containing info of collateral to remove\",\"signature\":\"The signature of the remove collateral request\"}},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"repay((address,int256)[],address)\":{\"params\":{\"positionUpdates\":\"Array of {token, amount} structs representing positions to repay\",\"trader\":\"Address of the trader whose positions are being repaid\"}},\"setAllowance((address,uint256)[],address)\":{\"details\":\"Only callable by ownerPool must be whitelisted as native pool\",\"params\":{\"pool\":\"Address of native pool to receive approval\",\"tokens\":\"Array of {token, amount} structs to approve\"}},\"setCreditPool(address,bool)\":{\"params\":{\"isActive\":\"to whitelist, false to remove from whitelist\",\"pool\":\"The address of credit pool\"}},\"setEpochUpdater(address)\":{\"details\":\"Only callable by ownerEpoch updater is responsible for funding fee updates and distributions\",\"params\":{\"_epochUpdater\":\"New epoch updater address (cannot be zero address)\"}},\"setFeeWithdrawer(address)\":{\"details\":\"Only callable by ownerFee withdrawer can claim accumulated funding fees from the vault\",\"params\":{\"_feeWithdrawer\":\"New fee withdrawer address (cannot be zero address)\"}},\"setLiquidator(address,address,bool)\":{\"details\":\"Only callable by owner\",\"params\":{\"liquidator\":\"The address to grant/revoke liquidator permissions\",\"recipient\":\"Address authorized to receive tokens from liquidations\",\"status\":\"True to whitelist, false to remove from whitelist\"}},\"setRebalanceCap(address,address,uint256)\":{\"details\":\"A limit of 0 means unlimited rebalancing is allowed\",\"params\":{\"limit\":\"The maximum amount of tokens that can be rebalanced per day (0 for unlimited)\",\"operator\":\"The address of the trader or liquidator whose limit is being set\",\"token\":\"The token address for which the limit applies\"}},\"setSigner(address)\":{\"details\":\"Only callable by ownerSigner verifies signatures for settlements, liquidations, and collateral removals\",\"params\":{\"_signer\":\"New signer address (cannot be zero address)\"}},\"setTrader(address,address,address,bool,bool)\":{\"details\":\"Only callable by owner\",\"params\":{\"isTrader\":\"True to enable trading, false to revoke permissions\",\"isWhitelistTrader\":\"True to enable whitelist which can bypass credit check\",\"recipient\":\"Address authorized to receive tokens from settlements and collateral operations\",\"settler\":\"Address authorized to settle positions on trader's behalf\",\"trader\":\"Address to configure trading permissions for\"}},\"settle((uint256,uint256,address,(address,int256)[]),bytes)\":{\"details\":\"This transaction requires off-chain calculation to verify if the trader's credit meets the criteria.\",\"params\":{\"request\":\"The struct of the settlement request containing info of long and short positions to settle\",\"signature\":\"The signature of the settlement request\"}},\"supportMarket(address)\":{\"details\":\"Only callable by owner\",\"params\":{\"lpToken\":\"Address of the LP token to be listed\"}},\"swapCallback(address,address,int256,address,int256)\":{\"details\":\"Only callable by whitelisted NativePools, it's called after the swap is executed\",\"params\":{\"amountIn\":\"The amount of the token that is selling\",\"amountOut\":\"The amount of the token that is buying\",\"tokenIn\":\"The address of the token that is selling\",\"tokenOut\":\"The address of the token that is buying\",\"trader\":\"The address of the market maker\"}},\"transferOwnership(address)\":{\"details\":\"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner.\"},\"withdrawReserve(address,address,uint256)\":{\"details\":\"Only callable by feeWithdrawer\",\"params\":{\"amount\":\"The amount of fees to withdraw\",\"recipient\":\"The address that will receive the fees\",\"underlying\":\"The token address of the fees to withdraw\"}}},\"stateVariables\":{\"creditPools\":{\"details\":\"The credit pool lends tokens from the credit vault and must update the trader's position via a callback.\"},\"supportedMarkets\":{\"details\":\"If a LP token is supported\"},\"traderToRecipient\":{\"details\":\"Address receives tokens from settlements and collateral operations\"}},\"title\":\"CreditVault - Manages trader positions and collateral\",\"version\":1},\"userdoc\":{\"errors\":{\"EpochUpdateInCoolDown()\":[{\"notice\":\"Thrown when epoch update is attempted before minimum interval\"}],\"ExchangeRateIncreaseTooMuch()\":[{\"notice\":\"Thrown when LP token exchange rate increases more than allowed\"}],\"InsufficientFundingFees()\":[{\"notice\":\"Thrown when there are insufficient funding fees to withdraw\"}],\"InsufficientUnderlying()\":[{\"notice\":\"Thrown when LP token underlying is insufficient\"}],\"InvalidLPToken()\":[{\"notice\":\"Thrown when LP token address is invalid\"}],\"InvalidMarket()\":[{\"notice\":\"Thrown when market (LP token) is invalid\"}],\"InvalidPositionUpdateAmount()\":[{\"notice\":\"Thrown when position update amount is invalid\"}],\"InvalidSignature()\":[{\"notice\":\"Thrown when signature verification fails\"}],\"InvalidUnderlying()\":[{\"notice\":\"Thrown when underlying are not supported in the credit vault\"}],\"LiquidatorRecipientConflict()\":[{\"notice\":\"Thrown when liquidator and recipient are the same\"}],\"NonceUsed()\":[{\"notice\":\"Thrown when nonce is used\"}],\"NotTraderOrLiquidator()\":[{\"notice\":\"Thrown the address is not a trader or liquidator\"}],\"OnlyCreditPool()\":[{\"notice\":\"Thrown when caller is not the credit pool\"}],\"OnlyEpochUpdater()\":[{\"notice\":\"Thrown when caller is not the epoch updater\"}],\"OnlyFeeWithdrawer()\":[{\"notice\":\"Thrown when caller is not the fee withdrawer\"}],\"OnlyLiquidator()\":[{\"notice\":\"Thrown when caller is not an authorized liquidator\"}],\"OnlyLpToken()\":[{\"notice\":\"Thrown when caller is not an LP token\"}],\"OnlyTrader()\":[{\"notice\":\"Thrown when caller is not an authorized trader\"}],\"RebalanceLimitExceeded()\":[{\"notice\":\"Thrown when rebalance limit is exceeded\"}],\"RequestExpired()\":[{\"notice\":\"Thrown when request has expired\"}],\"TokenAlreadyListed()\":[{\"notice\":\"Thrown when token is already listed\"}],\"TraderRecipientConflict()\":[{\"notice\":\"Thrown when trader, settler and recipient are the same\"}],\"ZeroAddress()\":[{\"notice\":\"Thrown when zero address is provided\"}]},\"events\":{\"CollateralAdded(address,(address,uint256)[])\":{\"notice\":\"Emitted when collateral is added for a trader\"},\"CollateralRemoved(address,(address,uint256)[])\":{\"notice\":\"Emitted when collateral is removed for a trader\"},\"CreditPoolUpdated(address,bool)\":{\"notice\":\"Emitted when a credit pool's status is updated\"},\"EpochUpdated((address,(address,uint256,uint256)[])[])\":{\"notice\":\"Emitted when epoch funding fees are updated for traders\"},\"EpochUpdaterSet(address)\":{\"notice\":\"Emitted when epoch updater is set\"},\"FeeWithdrawerSet(address)\":{\"notice\":\"Emitted when fee withdrawer is set\"},\"Liquidated(address,address,(address,int256)[],(address,uint256)[])\":{\"notice\":\"Emitted when a trader's positions are liquidated\"},\"LiquidatorSet(address,bool)\":{\"notice\":\"Emitted when liquidator is set\"},\"MarketListed(address)\":{\"notice\":\"Emitted when a new market (LP token) is listed\"},\"RebalanceCapUpdated(address,address,uint256)\":{\"notice\":\"Emitted when a trader or liquidator's rebalance limit is updated for a token\"},\"Repaid(address,(address,int256)[])\":{\"notice\":\"Emitted when a trader's positions are repaid\"},\"ReserveWithdrawn(address,address,uint256)\":{\"notice\":\"Emitted when reserve fees are withdrawn\"},\"Settled(address,(address,int256)[])\":{\"notice\":\"Emitted when a trader's positions are settled\"},\"SignerSet(address)\":{\"notice\":\"Emitted when signer is set\"},\"TraderSet(address,bool,bool,address,address)\":{\"notice\":\"Emitted when a trader's info is updated\"}},\"kind\":\"user\",\"methods\":{\"addCollateral((address,uint256)[],address)\":{\"notice\":\"Adds collateral for a trader's position\"},\"allLPTokens(uint256)\":{\"notice\":\"A list of all markets\"},\"collateral(address,address)\":{\"notice\":\"traders' collateral trader => token => amount\"},\"creditPools(address)\":{\"notice\":\"Authorized Native Pool, enable market makers to lend funds from this vault for quoting\"},\"epochUpdate((address,(address,uint256,uint256)[])[])\":{\"notice\":\"Updates funding fees for traders at the end of each epoch\"},\"epochUpdater()\":{\"notice\":\"epoch updater address\"},\"feeWithdrawer()\":{\"notice\":\"Address that can withdraw protocol fees\"},\"lastEpochUpdateTimestamp(address)\":{\"notice\":\"(trader => timestamp)\"},\"liquidate((uint256,uint256,address,(address,int256)[],(address,uint256)[]),bytes)\":{\"notice\":\"Called by liquidators to liquidate the underwater positions\"},\"liquidatorToRecipient(address)\":{\"notice\":\"maps liquidator to their recipient address for liquidations\"},\"liquidators(address)\":{\"notice\":\"whitelist for liquidators\"},\"lpTokens(address)\":{\"notice\":\"map from underlying address to LP token\"},\"pay(address,uint256)\":{\"notice\":\"Transfers underlying assets from vault to recipient\"},\"positions(address,address)\":{\"notice\":\"trader_address => underlying token => amount (positive for long, negative for short)\"},\"rebalanceCaps(address,address)\":{\"notice\":\"Tracks rebalance caps for each trader/liquidator and token\"},\"removeCollateral((uint256,uint256,address,(address,uint256)[]),bytes)\":{\"notice\":\"Called by traders to remove collateral\"},\"repay((address,int256)[],address)\":{\"notice\":\"Repays trader's short positions\"},\"reserveFees(address)\":{\"notice\":\"Mapping of accumulated reserveFees per token (token => fee amount)\"},\"setAllowance((address,uint256)[],address)\":{\"notice\":\"Approves native pool to spend vault's underlying tokens\"},\"setCreditPool(address,bool)\":{\"notice\":\"Updates credit pool status\"},\"setEpochUpdater(address)\":{\"notice\":\"Updates the authorized epoch updater address\"},\"setFeeWithdrawer(address)\":{\"notice\":\"Updates the authorized fee withdrawer address\"},\"setLiquidator(address,address,bool)\":{\"notice\":\"Set or remove liquidator permissions\"},\"setRebalanceCap(address,address,uint256)\":{\"notice\":\"Set or update the daily rebalance limit for a specific trader or liquidator and token\"},\"setSigner(address)\":{\"notice\":\"Updates the authorized signer for permissioned operations\"},\"setTrader(address,address,address,bool,bool)\":{\"notice\":\"Manages trader permissions and settlement addresses\"},\"settle((uint256,uint256,address,(address,int256)[]),bytes)\":{\"notice\":\"Called by traders to settle the positions\"},\"signer()\":{\"notice\":\"signer for permissioned functions: liquidate, settle, removeCollateral, etc.\"},\"supportMarket(address)\":{\"notice\":\"Lists a new market (LP token)\"},\"swapCallback(address,address,int256,address,int256)\":{\"notice\":\"Callback function called by NativeRFQPool after swap execution to update trader positions\"},\"traderToRecipient(address)\":{\"notice\":\"maps trader to their recipient address\"},\"traderToSettler(address)\":{\"notice\":\"Maps trader address to settler address which can settle positions on behalf of trader\"},\"traders(address)\":{\"notice\":\"whitelist for traders (Market Makers)\"},\"whitelistTraders(address)\":{\"notice\":\"whitelist traders that can bypass the credit check\"},\"withdrawReserve(address,address,uint256)\":{\"notice\":\"Allows fee withdrawer to claim accumulated funding fees\"}},\"notice\":\"Handles asset custody, position settlement, and LP token integration\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/CreditVault.sol\":\"CreditVault\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":2000000},\"remappings\":[\":@openzeppelin/=lib/openzeppelin-contracts/\",\":@permit2/=lib/permit2/src/\",\":ds-test/=lib/solmate/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-gas-snapshot/=lib/permit2/lib/forge-gas-snapshot/src/\",\":forge-std/=lib/forge-std/src/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":openzeppelin/=lib/openzeppelin-contracts/contracts/\",\":permit2/=lib/permit2/\",\":solmate/=lib/solmate/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/access/Ownable.sol\":{\"keccak256\":\"0xba43b97fba0d32eb4254f6a5a297b39a19a247082a02d6e69349e071e2946218\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fc980984badf3984b6303b377711220e067722bbd6a135b24669ff5069ef9f32\",\"dweb:/ipfs/QmPHXMSXj99XjSVM21YsY6aNtLLjLVXDbyN76J5HQYvvrz\"]},\"lib/openzeppelin-contracts/contracts/access/Ownable2Step.sol\":{\"keccak256\":\"0xde231558366826d7cb61725af8147965a61c53b77a352cc8c9af38fc5a92ac3c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1fd55624076bf61d44af5ff351919e32dda748567acfbdd6ba3d6c7be61c758e\",\"dweb:/ipfs/QmSki4dTrf4GPm7MTpG3fk8mC7rnjwd2zMomLp6jLuF63Q\"]},\"lib/openzeppelin-contracts/contracts/interfaces/IERC5267.sol\":{\"keccak256\":\"0xac6c2efc64baccbde4904ae18ed45139c9aa8cff96d6888344d1e4d2eb8b659f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6e416a280c610b6b7a5f158e4a41aacfaec01ef14d5d1de13b46be9e090265fc\",\"dweb:/ipfs/QmYZP2KrdyccBbhLZT42auhvBTMkwiwUS3V6HWb42rbwbG\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0xa56ca923f70c1748830700250b19c61b70db9a683516dc5e216694a50445d99c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://cac938788bc4be12101e59d45588b4e059579f4e61062e1cda8d6b06c0191b15\",\"dweb:/ipfs/QmV2JKCyjTVH3rkWNrfdJRhAT7tZ3usAN2XcnD4h53Mvih\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bd39944e8fc06be6dbe2dd1d8449b5336e23c6a7ba3e8e9ae5ae0f37f35283f5\",\"dweb:/ipfs/QmPV3FGYjVwvKSgAXKUN3r9T9GwniZz83CxBpM7vyj2G53\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"keccak256\":\"0x8de418a5503946cabe331f35fe242d3201a73f67f77aaeb7110acb1f30423aca\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5a376d3dda2cb70536c0a45c208b29b34ac560c4cb4f513a42079f96ba47d2dd\",\"dweb:/ipfs/QmZQg6gn1sUpM8wHzwNvSnihumUCAhxD119MpXeKp8B9s8\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol\":{\"keccak256\":\"0xb264c03a3442eb37a68ad620cefd1182766b58bee6cec40343480392d6b14d69\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://28879d01fd22c07b44f006612775f8577defbe459cb01685c5e25cd518c91a71\",\"dweb:/ipfs/QmVgfkwv2Fxw6hhTcDUZhE7NkoSKjab3ipM7UaRbt6uXb5\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol\":{\"keccak256\":\"0xabefac93435967b4d36a4fabcbdbb918d1f0b7ae3c3d85bc30923b326c927ed1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9d213d3befca47da33f6db0310826bcdb148299805c10d77175ecfe1d06a9a68\",\"dweb:/ipfs/QmRgCn6SP1hbBkExUADFuDo8xkT4UU47yjNF5FhCeRbQmS\"]},\"lib/openzeppelin-contracts/contracts/utils/Address.sol\":{\"keccak256\":\"0x006dd67219697fe68d7fbfdea512e7c4cb64a43565ed86171d67e844982da6fa\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2455248c8ddd9cc6a7af76a13973cddf222072427e7b0e2a7d1aff345145e931\",\"dweb:/ipfs/QmfYjnjRbWqYpuxurqveE6HtzsY1Xx323J428AKQgtBJZm\"]},\"lib/openzeppelin-contracts/contracts/utils/Context.sol\":{\"keccak256\":\"0xa92e4fa126feb6907daa0513ddd816b2eb91f30a808de54f63c17d0e162c3439\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a367861093b74443b137564d3f3c472f70bcf114739e62059c939f25e315706c\",\"dweb:/ipfs/Qmd7JMpcxD9RuQjK3uM3EzJUgSqdN8vzp8eytEiuwxQJ6h\"]},\"lib/openzeppelin-contracts/contracts/utils/ShortStrings.sol\":{\"keccak256\":\"0xc0e310c163edf15db45d4ff938113ab357f94fa86e61ea8e790853c4d2e13256\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://04db5bc05dcb05ba1f6ca2dfbead17adc8a2e2f911aa80b05e7a36d9eaf96516\",\"dweb:/ipfs/QmVkfHZbXVBUPsTopueCn3qGJX8aEjahFF3Fn4NcygLNm5\"]},\"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol\":{\"keccak256\":\"0xf09e68aa0dc6722a25bc46490e8d48ed864466d17313b8a0b254c36b54e49899\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e26daf81e2252dc1fe1ce0e4b55c2eb7c6d1ee84ae6558d1a9554432ea1d32da\",\"dweb:/ipfs/Qmb1UANWiWq5pCKbmHSu772hd4nt374dVaghGmwSVNuk8Q\"]},\"lib/openzeppelin-contracts/contracts/utils/Strings.sol\":{\"keccak256\":\"0x3088eb2868e8d13d89d16670b5f8612c4ab9ff8956272837d8e90106c59c14a0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b81d9ff6559ea5c47fc573e17ece6d9ba5d6839e213e6ebc3b4c5c8fe4199d7f\",\"dweb:/ipfs/QmPCW1bFisUzJkyjroY3yipwfism9RRCigCcK1hbXtVM8n\"]},\"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol\":{\"keccak256\":\"0x809bc3edb4bcbef8263fa616c1b60ee0004b50a8a1bfa164d8f57fd31f520c58\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8b93a1e39a4a19eba1600b92c96f435442db88cac91e315c8291547a2a7bcfe2\",\"dweb:/ipfs/QmTm34KVe6uZBZwq8dZDNWwPcm24qBJdxqL3rPxBJ4LrMv\"]},\"lib/openzeppelin-contracts/contracts/utils/cryptography/EIP712.sol\":{\"keccak256\":\"0x8432884527a7ad91e6eed1cfc5a0811ae2073e5bca107bd0ca442e9236b03dbd\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e3aa0eadab7aafcf91a95684765f778f64386f0368de88522ce873c21385278a\",\"dweb:/ipfs/QmPfaVAqWgH1QsT3dHVuL6jwMZbVKdoP8w1PvpiPT2FPWd\"]},\"lib/openzeppelin-contracts/contracts/utils/math/Math.sol\":{\"keccak256\":\"0xe4455ac1eb7fc497bb7402579e7b4d64d928b846fce7d2b6fde06d366f21c2b3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://cc8841b3cd48ad125e2f46323c8bad3aa0e88e399ec62acb9e57efa7e7c8058c\",\"dweb:/ipfs/QmSqE4mXHA2BXW58deDbXE8MTcsL5JSKNDbm23sVQxRLPS\"]},\"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol\":{\"keccak256\":\"0x52a8cfb0f5239d11b457dcdd1b326992ef672714ca8da71a157255bddd13f3ad\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://495145362c7ff1c9ca88c58bbbbcb412e3c2004406647412394486552ff6c278\",\"dweb:/ipfs/QmNNCeng6d5eRPDn6tkWSQhjE39XWfQEfjA63rRwHmr1iH\"]},\"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol\":{\"keccak256\":\"0xf92515413956f529d95977adc9b0567d583c6203fc31ab1c23824c35187e3ddc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c50fcc459e49a9858b6d8ad5f911295cb7c9ab57567845a250bf0153f84a95c7\",\"dweb:/ipfs/QmcEW85JRzvDkQggxiBBLVAasXWdkhEysqypj9EaB6H2g6\"]},\"src/CreditVault.sol\":{\"keccak256\":\"0x2687f4eed4f54502491bff24817ab8ffba787efa46428cfd7d60e2f891968725\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://50ff4752a59a813846b210ba48659dd134cfe1d5a0204340ab42c900588e13a1\",\"dweb:/ipfs/QmReDFZvgejSCiaaHiZt3wpSJG2vFKqMEAcGMvbp8tk3eF\"]},\"src/NativeLPToken.sol\":{\"keccak256\":\"0x36fede73bd1d52a5e6c4881710e92e33c661d308ee20a9466e697fcc056cd048\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://9b6cb64fc73e5ffb5c8c9c918171fe20f3e9d5f95978e475805cbfebae323612\",\"dweb:/ipfs/QmYmLMnQLuXuywdYNixXXfGZwwow4h1rLMXqYbEWJ258P9\"]},\"src/interfaces/ICreditVault.sol\":{\"keccak256\":\"0xdbec8e3095e1ec49de4a4b8114a61dd8c1e61b81e41258ff39c1d4b6bdcd3e3f\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://61613b10e7b64b9147ecf43d8f5b41812e89162d96194663103c40682ad1bbaa\",\"dweb:/ipfs/Qmdc3KFRfTZEwcf9Qysz3zENdMJqMtS1XXiPen8PjeLijM\"]},\"src/libraries/ConstantsLib.sol\":{\"keccak256\":\"0x5af5642216c6672359902afc792e42a5615b9848c415c6df4f0da956383c9ca7\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://400c84a3796c5d68618b8955811696b9e8c748c446ecade9f4e2194affa4f838\",\"dweb:/ipfs/Qmdpisj49892TDiSUE4431G5K2niRs9qWwUw72LopPAJ5n\"]},\"src/libraries/ErrorsLib.sol\":{\"keccak256\":\"0xa6113fd2258791cc9387ba3b5fdf44280b16665532da4d54f71f08c34f23ab11\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://7e6c38e3a9f3693a66562d3666cfcf2c60bda292ef7927ac7e71ac5e6773a668\",\"dweb:/ipfs/QmWEvgPNtg9FGNqBsnMUtTCthw3tbCg4y8K6kEcq7MrbSU\"]},\"src/libraries/ReentrancyGuardTransient.sol\":{\"keccak256\":\"0x181b5cda59c69a5a7594edc3ad4d20c8cbcdb0f4696a29c1c8925374d21a0476\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://36a8ab878f5ece2c68a858cacdb8c2d319a247510abd50eb0c5dd3c9bf9cebc9\",\"dweb:/ipfs/QmcPaZLSVq63rDNiZCtiZXnfCRPu3KuqMUcuvVn2PvMgYw\"]},\"src/libraries/SafeERC20.sol\":{\"keccak256\":\"0xb5a6b23c6f8f2438a66cc26872c1c658fb703aeb911d0dbf297297c730bf6005\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fb303ec6df832dbb713bd9e07a671a4d0b88baf1e0a37367b65267857b18b998\",\"dweb:/ipfs/QmcST3kJJJ29LEV77jHUrT4uwnzuy6dTDSmWsNzfqJUSRh\"]},\"src/libraries/TStorage.sol\":{\"keccak256\":\"0x31318f97f41a531a9698fd8fdf1f56efb994caf791881e4ff5971d3cec5e82ce\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://4e4a617f2d6d3d1bdd6a52a7bc4496865058dd18e0bbc0b3d04a9d40f98c39d1\",\"dweb:/ipfs/Qmdf8BS3SvxvbUHeSTgk958jrH7yLpYY3k7axqypFfGaTL\"]}},\"version\":1}","userdoc":{"kind":"user","errors":{"NonceUsed()":[{"notice":"Thrown when nonce is used"}],"OnlyTrader()":[{"notice":"Thrown when caller is not an authorized trader"}],"OnlyLpToken()":[{"notice":"Thrown when caller is not an LP token"}],"ZeroAddress()":[{"notice":"Thrown when zero address is provided"}],"InvalidMarket()":[{"notice":"Thrown when market (LP token) is invalid"}],"InvalidLPToken()":[{"notice":"Thrown when LP token address is invalid"}],"OnlyCreditPool()":[{"notice":"Thrown when caller is not the credit pool"}],"OnlyLiquidator()":[{"notice":"Thrown when caller is not an authorized liquidator"}],"RequestExpired()":[{"notice":"Thrown when request has expired"}],"InvalidSignature()":[{"notice":"Thrown when signature verification fails"}],"OnlyEpochUpdater()":[{"notice":"Thrown when caller is not the epoch updater"}],"InvalidUnderlying()":[{"notice":"Thrown when underlying are not supported in the credit vault"}],"OnlyFeeWithdrawer()":[{"notice":"Thrown when caller is not the fee withdrawer"}],"TokenAlreadyListed()":[{"notice":"Thrown when token is already listed"}],"EpochUpdateInCoolDown()":[{"notice":"Thrown when epoch update is attempted before minimum interval"}],"NotTraderOrLiquidator()":[{"notice":"Thrown the address is not a trader or liquidator"}],"InsufficientUnderlying()":[{"notice":"Thrown when LP token underlying is insufficient"}],"RebalanceLimitExceeded()":[{"notice":"Thrown when rebalance limit is exceeded"}],"InsufficientFundingFees()":[{"notice":"Thrown when there are insufficient funding fees to withdraw"}],"TraderRecipientConflict()":[{"notice":"Thrown when trader, settler and recipient are the same"}],"ExchangeRateIncreaseTooMuch()":[{"notice":"Thrown when LP token exchange rate increases more than allowed"}],"InvalidPositionUpdateAmount()":[{"notice":"Thrown when position update amount is invalid"}],"LiquidatorRecipientConflict()":[{"notice":"Thrown when liquidator and recipient are the same"}]},"events":{"SignerSet(address)":{"notice":"Emitted when signer is set"},"MarketListed(address)":{"notice":"Emitted when a new market (LP token) is listed"},"EpochUpdaterSet(address)":{"notice":"Emitted when epoch updater is set"},"FeeWithdrawerSet(address)":{"notice":"Emitted when fee withdrawer is set"},"LiquidatorSet(address,bool)":{"notice":"Emitted when liquidator is set"},"CreditPoolUpdated(address,bool)":{"notice":"Emitted when a credit pool's status is updated"},"Repaid(address,(address,int256)[])":{"notice":"Emitted when a trader's positions are repaid"},"Settled(address,(address,int256)[])":{"notice":"Emitted when a trader's positions are settled"},"ReserveWithdrawn(address,address,uint256)":{"notice":"Emitted when reserve fees are withdrawn"},"CollateralAdded(address,(address,uint256)[])":{"notice":"Emitted when collateral is added for a trader"},"RebalanceCapUpdated(address,address,uint256)":{"notice":"Emitted when a trader or liquidator's rebalance limit is updated for a token"},"TraderSet(address,bool,bool,address,address)":{"notice":"Emitted when a trader's info is updated"},"CollateralRemoved(address,(address,uint256)[])":{"notice":"Emitted when collateral is removed for a trader"},"EpochUpdated((address,(address,uint256,uint256)[])[])":{"notice":"Emitted when epoch funding fees are updated for traders"},"Liquidated(address,address,(address,int256)[],(address,uint256)[])":{"notice":"Emitted when a trader's positions are liquidated"}},"notice":"Handles asset custody, position settlement, and LP token integration","methods":{"signer()":{"notice":"signer for permissioned functions: liquidate, settle, removeCollateral, etc."},"epochUpdater()":{"notice":"epoch updater address"},"feeWithdrawer()":{"notice":"Address that can withdraw protocol fees"},"traders(address)":{"notice":"whitelist for traders (Market Makers)"},"lpTokens(address)":{"notice":"map from underlying address to LP token"},"setSigner(address)":{"notice":"Updates the authorized signer for permissioned operations"},"allLPTokens(uint256)":{"notice":"A list of all markets"},"creditPools(address)":{"notice":"Authorized Native Pool, enable market makers to lend funds from this vault for quoting"},"liquidators(address)":{"notice":"whitelist for liquidators"},"pay(address,uint256)":{"notice":"Transfers underlying assets from vault to recipient"},"reserveFees(address)":{"notice":"Mapping of accumulated reserveFees per token (token => fee amount)"},"supportMarket(address)":{"notice":"Lists a new market (LP token)"},"setEpochUpdater(address)":{"notice":"Updates the authorized epoch updater address"},"traderToSettler(address)":{"notice":"Maps trader address to settler address which can settle positions on behalf of trader"},"setFeeWithdrawer(address)":{"notice":"Updates the authorized fee withdrawer address"},"whitelistTraders(address)":{"notice":"whitelist traders that can bypass the credit check"},"positions(address,address)":{"notice":"trader_address => underlying token => amount (positive for long, negative for short)"},"traderToRecipient(address)":{"notice":"maps trader to their recipient address"},"collateral(address,address)":{"notice":"traders' collateral trader => token => amount"},"setCreditPool(address,bool)":{"notice":"Updates credit pool status"},"liquidatorToRecipient(address)":{"notice":"maps liquidator to their recipient address for liquidations"},"rebalanceCaps(address,address)":{"notice":"Tracks rebalance caps for each trader/liquidator and token"},"lastEpochUpdateTimestamp(address)":{"notice":"(trader => timestamp)"},"repay((address,int256)[],address)":{"notice":"Repays trader's short positions"},"setLiquidator(address,address,bool)":{"notice":"Set or remove liquidator permissions"},"setRebalanceCap(address,address,uint256)":{"notice":"Set or update the daily rebalance limit for a specific trader or liquidator and token"},"withdrawReserve(address,address,uint256)":{"notice":"Allows fee withdrawer to claim accumulated funding fees"},"setAllowance((address,uint256)[],address)":{"notice":"Approves native pool to spend vault's underlying tokens"},"addCollateral((address,uint256)[],address)":{"notice":"Adds collateral for a trader's position"},"setTrader(address,address,address,bool,bool)":{"notice":"Manages trader permissions and settlement addresses"},"swapCallback(address,address,int256,address,int256)":{"notice":"Callback function called by NativeRFQPool after swap execution to update trader positions"},"epochUpdate((address,(address,uint256,uint256)[])[])":{"notice":"Updates funding fees for traders at the end of each epoch"},"settle((uint256,uint256,address,(address,int256)[]),bytes)":{"notice":"Called by traders to settle the positions"},"removeCollateral((uint256,uint256,address,(address,uint256)[]),bytes)":{"notice":"Called by traders to remove collateral"},"liquidate((uint256,uint256,address,(address,int256)[],(address,uint256)[]),bytes)":{"notice":"Called by liquidators to liquidate the underwater positions"}},"version":1},"devdoc":{"kind":"dev","title":"CreditVault - Manages trader positions and collateral","errors":{"ReentrancyGuardReentrantCall()":[{"details":"Unauthorized reentrant call."}]},"events":{"EIP712DomainChanged()":{"details":"MAY be emitted to signal that the domain could have changed."},"MarketListed(address)":{"params":{"lpToken":"The address of the newly listed LP token"}},"CreditPoolUpdated(address,bool)":{"params":{"pool":"The address of the credit pool","isActive":"The new status of the pool"}},"Repaid(address,(address,int256)[])":{"params":{"trader":"The address of the trader whose positions are being repaid","repayments":"Array of token amounts being repaid"}},"Settled(address,(address,int256)[])":{"params":{"trader":"The address of the trader whose positions are being settled","positionUpdates":"Array of position changes"}},"CollateralAdded(address,(address,uint256)[])":{"params":{"trader":"The address of the trader receiving collateral","collateralUpdates":"Array of collateral token amounts added"}},"RebalanceCapUpdated(address,address,uint256)":{"params":{"limit":"The new daily limit (0 means unlimited)","token":"The token address","operator":"The trader or liquidator address"}},"TraderSet(address,bool,bool,address,address)":{"params":{"trader":"The address of the trader whose info is being updated","settler":"The address authorized to settle positions for this trader","isTrader":"Whether the address is enabled for trading","recipient":"The address authorized to receive tokens from settlements","isWhitelistTrader":"Whether the trader can bypass credit checks"}},"CollateralRemoved(address,(address,uint256)[])":{"params":{"trader":"The address of the trader removing collateral","collateralUpdates":"Array of collateral token amounts removed"}},"EpochUpdated((address,(address,uint256,uint256)[])[])":{"params":{"accruedFundingFees":"Array of funding fee updates for different traders"}},"Liquidated(address,address,(address,int256)[],(address,uint256)[])":{"params":{"trader":"The address of the trader being liquidated","liquidator":"The address performing the liquidation","positionUpdates":"Array of position changes from liquidation","claimCollaterals":"Array of collateral tokens claimed by liquidator"}}},"methods":{"owner()":{"details":"Returns the address of the current owner."},"eip712Domain()":{"details":"See {EIP-5267}. _Available since v4.9._"},"pendingOwner()":{"details":"Returns the address of the pending owner."},"acceptOwnership()":{"details":"The new owner accepts the ownership transfer."},"setSigner(address)":{"params":{"_signer":"New signer address (cannot be zero address)"},"details":"Only callable by ownerSigner verifies signatures for settlements, liquidations, and collateral removals"},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."},"pay(address,uint256)":{"params":{"to":"Recipient of the underlying assets","amount":"Amount of underlying assets to transfer"},"details":"Only callable by supported LP tokens"},"supportMarket(address)":{"params":{"lpToken":"Address of the LP token to be listed"},"details":"Only callable by owner"},"setEpochUpdater(address)":{"params":{"_epochUpdater":"New epoch updater address (cannot be zero address)"},"details":"Only callable by ownerEpoch updater is responsible for funding fee updates and distributions"},"setFeeWithdrawer(address)":{"params":{"_feeWithdrawer":"New fee withdrawer address (cannot be zero address)"},"details":"Only callable by ownerFee withdrawer can claim accumulated funding fees from the vault"},"transferOwnership(address)":{"details":"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner."},"setCreditPool(address,bool)":{"params":{"pool":"The address of credit pool","isActive":"to whitelist, false to remove from whitelist"}},"repay((address,int256)[],address)":{"params":{"trader":"Address of the trader whose positions are being repaid","positionUpdates":"Array of {token, amount} structs representing positions to repay"}},"setLiquidator(address,address,bool)":{"params":{"status":"True to whitelist, false to remove from whitelist","recipient":"Address authorized to receive tokens from liquidations","liquidator":"The address to grant/revoke liquidator permissions"},"details":"Only callable by owner"},"setRebalanceCap(address,address,uint256)":{"params":{"limit":"The maximum amount of tokens that can be rebalanced per day (0 for unlimited)","token":"The token address for which the limit applies","operator":"The address of the trader or liquidator whose limit is being set"},"details":"A limit of 0 means unlimited rebalancing is allowed"},"withdrawReserve(address,address,uint256)":{"params":{"amount":"The amount of fees to withdraw","recipient":"The address that will receive the fees","underlying":"The token address of the fees to withdraw"},"details":"Only callable by feeWithdrawer"},"setAllowance((address,uint256)[],address)":{"params":{"pool":"Address of native pool to receive approval","tokens":"Array of {token, amount} structs to approve"},"details":"Only callable by ownerPool must be whitelisted as native pool"},"addCollateral((address,uint256)[],address)":{"params":{"tokens":"Array of {token, amount} structs to be added as collateral","trader":"Address of the trader receiving the collateral"},"details":"PERMISSIONLESS: Anyone can add collateral for any traderOff-chain system will update trader's credit limit off-chain via event emission"},"setTrader(address,address,address,bool,bool)":{"params":{"trader":"Address to configure trading permissions for","settler":"Address authorized to settle positions on trader's behalf","isTrader":"True to enable trading, false to revoke permissions","recipient":"Address authorized to receive tokens from settlements and collateral operations","isWhitelistTrader":"True to enable whitelist which can bypass credit check"},"details":"Only callable by owner"},"swapCallback(address,address,int256,address,int256)":{"params":{"trader":"The address of the market maker","tokenIn":"The address of the token that is selling","amountIn":"The amount of the token that is selling","tokenOut":"The address of the token that is buying","amountOut":"The amount of the token that is buying"},"details":"Only callable by whitelisted NativePools, it's called after the swap is executed"},"epochUpdate((address,(address,uint256,uint256)[])[])":{"params":{"accruedFees":"Array of funding fee updates for different traders"},"details":"Only callable by the epoch updater"},"settle((uint256,uint256,address,(address,int256)[]),bytes)":{"params":{"request":"The struct of the settlement request containing info of long and short positions to settle","signature":"The signature of the settlement request"},"details":"This transaction requires off-chain calculation to verify if the trader's credit meets the criteria."},"removeCollateral((uint256,uint256,address,(address,uint256)[]),bytes)":{"params":{"request":"The struct of the remove collateral request containing info of collateral to remove","signature":"The signature of the remove collateral request"},"details":"This transaction requires off-chain calculation to verify if the trader's credit meets the criteria."},"liquidate((uint256,uint256,address,(address,int256)[],(address,uint256)[]),bytes)":{"params":{"request":"The struct of the liquidation request containing info of long and short positions to liquidate","signature":"The signature of the liquidation request"},"details":"This transaction requires off-chain calculation to verify if the trader's credit meets the criteria."}},"version":1,"stateVariables":{"creditPools":{"details":"The credit pool lends tokens from the credit vault and must update the trader's position via a callback."},"supportedMarkets":{"details":"If a LP token is supported"},"traderToRecipient":{"details":"Address receives tokens from settlements and collateral operations"}}},"storageLayout":{"types":{"t_bool":{"label":"bool","encoding":"inplace","numberOfBytes":"1"},"t_int256":{"label":"int256","encoding":"inplace","numberOfBytes":"32"},"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_string_storage":{"label":"string","encoding":"bytes","numberOfBytes":"32"},"t_mapping(t_address,t_bool)":{"key":"t_address","label":"mapping(address => bool)","value":"t_bool","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_bool)":{"key":"t_uint256","label":"mapping(uint256 => bool)","value":"t_bool","encoding":"mapping","numberOfBytes":"32"},"t_contract(NativeLPToken)8520":{"label":"contract NativeLPToken","encoding":"inplace","numberOfBytes":"20"},"t_mapping(t_address,t_int256)":{"key":"t_address","label":"mapping(address => int256)","value":"t_int256","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_address)":{"key":"t_address","label":"mapping(address => address)","value":"t_address","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_uint256)":{"key":"t_address","label":"mapping(address => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"},"t_struct(RebalanceCap)8543_storage":{"label":"struct ICreditVault.RebalanceCap","members":[{"slot":"0","type":"t_uint256","astId":8538,"label":"limit","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"1","type":"t_uint256","astId":8540,"label":"used","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"2","type":"t_uint256","astId":8542,"label":"lastDay","offset":0,"contract":"src/CreditVault.sol:CreditVault"}],"encoding":"inplace","numberOfBytes":"96"},"t_array(t_contract(NativeLPToken)8520)dyn_storage":{"base":"t_contract(NativeLPToken)8520","label":"contract NativeLPToken[]","encoding":"dynamic_array","numberOfBytes":"32"},"t_mapping(t_address,t_contract(NativeLPToken)8520)":{"key":"t_address","label":"mapping(address => contract NativeLPToken)","value":"t_contract(NativeLPToken)8520","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_mapping(t_address,t_int256))":{"key":"t_address","label":"mapping(address => mapping(address => int256))","value":"t_mapping(t_address,t_int256)","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_mapping(t_address,t_uint256))":{"key":"t_address","label":"mapping(address => mapping(address => uint256))","value":"t_mapping(t_address,t_uint256)","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_struct(RebalanceCap)8543_storage)":{"key":"t_address","label":"mapping(address => struct ICreditVault.RebalanceCap)","value":"t_struct(RebalanceCap)8543_storage","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_mapping(t_address,t_struct(RebalanceCap)8543_storage))":{"key":"t_address","label":"mapping(address => mapping(address => struct ICreditVault.RebalanceCap))","value":"t_mapping(t_address,t_struct(RebalanceCap)8543_storage)","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_string_storage","astId":2636,"label":"_nameFallback","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"1","type":"t_string_storage","astId":2638,"label":"_versionFallback","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"2","type":"t_address","astId":7,"label":"_owner","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"3","type":"t_address","astId":120,"label":"_pendingOwner","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"4","type":"t_address","astId":5363,"label":"feeWithdrawer","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"5","type":"t_address","astId":5366,"label":"signer","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"6","type":"t_address","astId":5369,"label":"epochUpdater","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"7","type":"t_array(t_contract(NativeLPToken)8520)dyn_storage","astId":5374,"label":"allLPTokens","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"8","type":"t_mapping(t_address,t_bool)","astId":5379,"label":"creditPools","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"9","type":"t_mapping(t_address,t_uint256)","astId":5384,"label":"reserveFees","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"10","type":"t_mapping(t_address,t_uint256)","astId":5389,"label":"lastEpochUpdateTimestamp","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"11","type":"t_mapping(t_address,t_contract(NativeLPToken)8520)","astId":5395,"label":"lpTokens","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"12","type":"t_mapping(t_uint256,t_bool)","astId":5399,"label":"nonces","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"13","type":"t_mapping(t_address,t_mapping(t_address,t_int256))","astId":5406,"label":"positions","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"14","type":"t_mapping(t_address,t_mapping(t_address,t_uint256))","astId":5413,"label":"collateral","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"15","type":"t_mapping(t_address,t_bool)","astId":5418,"label":"supportedMarkets","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"16","type":"t_mapping(t_address,t_bool)","astId":5423,"label":"traders","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"17","type":"t_mapping(t_address,t_address)","astId":5428,"label":"traderToSettler","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"18","type":"t_mapping(t_address,t_address)","astId":5433,"label":"traderToRecipient","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"19","type":"t_mapping(t_address,t_bool)","astId":5438,"label":"whitelistTraders","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"20","type":"t_mapping(t_address,t_bool)","astId":5443,"label":"liquidators","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"21","type":"t_mapping(t_address,t_address)","astId":5448,"label":"liquidatorToRecipient","offset":0,"contract":"src/CreditVault.sol:CreditVault"},{"slot":"22","type":"t_mapping(t_address,t_mapping(t_address,t_struct(RebalanceCap)8543_storage))","astId":5456,"label":"rebalanceCaps","offset":0,"contract":"src/CreditVault.sol:CreditVault"}]},"transientStorageLayout":null,"evm":{"bytecode":{"object":"610160604052348015610010575f5ffd5b50604080518082018252601381527f4e617469766520437265646974205661756c7400000000000000000000000000602080830191909152825180840190935260018352603160f81b9083015290610068825f61011a565b6101205261007781600161011a565b61014052815160208084019190912060e052815190820120610100524660a05261010360e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60805250503060c0526101153361014c565b6103a9565b5f6020835110156101355761012e83610168565b9050610146565b816101408482610297565b5060ff90505b92915050565b600380546001600160a01b0319169055610165816101ae565b50565b5f5f829050601f8151111561019b578260405163305a27a960e01b81526004016101929190610351565b60405180910390fd5b80516101a682610386565b179392505050565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061022757607f821691505b60208210810361024557634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561029257805f5260205f20601f840160051c810160208510156102705750805b601f840160051c820191505b8181101561028f575f815560010161027c565b50505b505050565b81516001600160401b038111156102b0576102b06101ff565b6102c4816102be8454610213565b8461024b565b6020601f8211600181146102f6575f83156102df5750848201515b5f19600385901b1c1916600184901b17845561028f565b5f84815260208120601f198516915b828110156103255787850151825560209485019460019092019101610305565b508482101561034257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80516020808301519190811015610245575f1960209190910360031b1b16919050565b60805160a05160c05160e0516101005161012051610140516151076103fa5f395f611abf01525f611a9501525f613f5301525f613f2b01525f613e8601525f613eb001525f613eda01526151075ff3fe608060405234801561000f575f5ffd5b50600436106102d7575f3560e01c806379ba509711610187578063b17b658d116100dd578063cab4f84c11610093578063f2fde38b1161006e578063f2fde38b14610784578063f6d95efd14610797578063f90cdb36146107cc575f5ffd5b8063cab4f84c14610729578063cc218ece1461073c578063e30c397814610766575f5ffd5b8063b7477674116100c3578063b7477674146106af578063c2b7307614610703578063c407687614610716575f5ffd5b8063b17b658d14610667578063b6bdff031461069c575f5ffd5b806392a88fa21161013d578063abb49f1911610118578063abb49f1914610622578063ae1914f814610635578063b0ab63ec14610648575f5ffd5b806392a88fa2146105da57806398221e94146105fc5780639be41fdb1461060f575f5ffd5b806384b0196e1161016d57806384b0196e1461058e5780638da5cb5b146105a95780639246261c146105c7575f5ffd5b806379ba50971461057357806381377bfd1461057b575f5ffd5b806341b1fa761161023c5780634e293ee9116101f2578063715018a6116101cd578063715018a6146105455780637362ecbe1461054d57806373eb513314610560575f5ffd5b80634e293ee9146104ff5780634f487eb8146105125780636c19e78314610532575f5ffd5b8063464b38bc11610222578063464b38bc1461049557806347de43e2146104c25780634bd21445146104d5575f5ffd5b806341b1fa761461043e578063422e0af014610460575f5ffd5b8063141a468c1161029157806320761fc41161027757806320761fc4146103dc578063238ac933146103fe57806332b4fa6b1461041e575f5ffd5b8063141a468c146103a75780631e777ad3146103c9575f5ffd5b80630d2a7ae8116102c15780630d2a7ae8146103035780630dfbe91b146103625780631241177214610394575f5ffd5b8062fc59c0146102db578063097a8ec4146102f0575b5f5ffd5b6102ee6102e93660046144e9565b6107ee565b005b6102ee6102fe36600461450b565b6108bd565b6103386103113660046144e9565b60116020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6103846103703660046144e9565b60086020525f908152604090205460ff1681565b6040519015158152602001610359565b6102ee6103a2366004614587565b610a4b565b6103846103b53660046145f4565b600c6020525f908152604090205460ff1681565b6102ee6103d736600461464c565b610e9b565b6103846103ea3660046144e9565b600f6020525f908152604090205460ff1681565b6005546103389073ffffffffffffffffffffffffffffffffffffffff1681565b6004546103389073ffffffffffffffffffffffffffffffffffffffff1681565b61038461044c3660046144e9565b60136020525f908152604090205460ff1681565b61033861046e3660046144e9565b60126020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6104b46104a33660046144e9565b60096020525f908152604090205481565b604051908152602001610359565b6102ee6104d03660046146ac565b610fac565b6104b46104e33660046146e9565b600d60209081525f928352604080842090915290825290205481565b6102ee61050d366004614736565b61114d565b6006546103389073ffffffffffffffffffffffffffffffffffffffff1681565b6102ee6105403660046144e9565b6114b4565b6102ee61157c565b6102ee61055b366004614786565b61158f565b6102ee61056e3660046144e9565b6116fe565b6102ee6117c6565b6102ee61058936600461464c565b611880565b610596611a88565b6040516103599796959493929190614829565b60025473ffffffffffffffffffffffffffffffffffffffff16610338565b6103386105d53660046145f4565b611b2a565b6103846105e83660046144e9565b60106020525f908152604090205460ff1681565b6102ee61060a3660046148e8565b611b5f565b6102ee61061d366004614736565b61213f565b6102ee610630366004614959565b6123f3565b6102ee61064336600461450b565b6124d1565b6104b46106563660046144e9565b600a6020525f908152604090205481565b6103386106753660046144e9565b600b6020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6102ee6106aa36600461464c565b61267d565b6106e86106bd3660046146e9565b601660209081525f928352604080842090915290825290208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610359565b6102ee610711366004614985565b612893565b6102ee6107243660046149f2565b612acb565b6102ee6107373660046144e9565b612c4c565b6104b461074a3660046146e9565b600e60209081525f928352604080842090915290825290205481565b60035473ffffffffffffffffffffffffffffffffffffffff16610338565b6102ee6107923660046144e9565b612f65565b6103386107a53660046144e9565b60156020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6103846107da3660046144e9565b60146020525f908152604090205460ff1681565b6107f6613015565b73ffffffffffffffffffffffffffffffffffffffff8116610843576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f15d0b1a02a4902c4788ceda199eb43e4a753d86c0dbb7412e8ba63feecb070fa906020015b60405180910390a150565b6108c5613015565b73ffffffffffffffffffffffffffffffffffffffff8216610912576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f9081526010602052604090205460ff1680610969575073ffffffffffffffffffffffffffffffffffffffff83165f9081526014602052604090205460ff165b61099f576040517f3be3aba200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080516060810182528281525f60208201529081016109c26201518042614a49565b905273ffffffffffffffffffffffffffffffffffffffff8481165f81815260166020908152604080832094881680845294825291829020855181558582015160018201559482015160029095019490945551848152919290917f39ff4a05a64bdf7e1dcb0b2d6b7e35b6a720a9412386a9e193c0e93d29a18470910160405180910390a3505050565b335f9081526014602052604090205460ff16610a93576040517f99b01c4700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a9b613096565b610aa683838361311a565b610b1d610ab66060850185614a81565b808060200260200160405190810160405280939291908181526020015f905b82821015610b0157610af260408302860136819003810190614ae5565b81526020019060010190610ad5565b50610b1893505060608801915050604087016144e9565b61335f565b335f9081526015602052604081205473ffffffffffffffffffffffffffffffffffffffff16905b610b516080860186614a81565b9050811015610c4657610b676080860186614a81565b82818110610b7757610b77614b62565b90506040020160200135600e5f876040016020810190610b9791906144e9565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040015f90812090610bcc6080890189614a81565b85818110610bdc57610bdc614b62565b610bf292602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254610c399190614b8f565b9091555050600101610b44565b505f5b610c566060860186614a81565b9050811015610d4c575f610c6d6060870187614a81565b83818110610c7d57610c7d614b62565b610c9392602060409092020190810191506144e9565b90505f610ca36060880188614a81565b84818110610cb357610cb3614b62565b9050604002016020013590505f811315610cf957610cf43330610cd58461354d565b73ffffffffffffffffffffffffffffffffffffffff86169291906135bc565b610d42565b610d143383610d0f610d0a85614ba2565b61354d565b613698565b610d4284610d24610d0a84614ba2565b73ffffffffffffffffffffffffffffffffffffffff851691906137aa565b5050600101610c49565b505f5b610d5c6080860186614a81565b9050811015610e26575f610d736080870187614a81565b83818110610d8357610d83614b62565b610d9992602060409092020190810191506144e9565b9050610dcc3382610dad60808a018a614a81565b86818110610dbd57610dbd614b62565b90506040020160200135613698565b610e1d83610ddd6080890189614a81565b85818110610ded57610ded614b62565b905060400201602001358373ffffffffffffffffffffffffffffffffffffffff166137aa9092919063ffffffff16565b50600101610d4f565b507fb5689a012cf77dd0a99ac07ed6f83009d7fbfca323bca73b34d6ed02bf413ab8610e5860608601604087016144e9565b33610e666060880188614a81565b610e7360808a018a614a81565b604051610e8596959493929190614c36565b60405180910390a150610e96613800565b505050565b610ea3613015565b5f5b82811015610fa6575f600b81868685818110610ec357610ec3614b62565b610ed992602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f20541603610f39576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f9e82858584818110610f4f57610f4f614b62565b90506040020160200135868685818110610f6b57610f6b614b62565b610f8192602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff16919061382a565b600101610ea5565b50505050565b610fb4613015565b73ffffffffffffffffffffffffffffffffffffffff831615801590610fee575073ffffffffffffffffffffffffffffffffffffffff821615155b611024576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611089576040517f88b43fad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8381165f81815260146020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016871515908117909155601583529281902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169588169590951790945583519283528201527f81e020344174972c59f6c11a8f6c90b141866214e3d9b544d030f0b532f5a10f91015b60405180910390a1505050565b61115d60608401604085016144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff1680156111a6575073ffffffffffffffffffffffffffffffffffffffff811633145b80611205575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff168015611205575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b61123b576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611243613096565b61124e848484613880565b5f5b61125d6060860186614a81565b9050811015611352576112736060860186614a81565b8281811061128357611283614b62565b90506040020160200135600e5f8760400160208101906112a391906144e9565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040015f908120906112d86060890189614a81565b858181106112e8576112e8614b62565b6112fe92602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546113459190614b8f565b9091555050600101611250565b505f60128161136760608801604089016144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f9081205490911691505b6113a46060870187614a81565b9050811015611455575f6113bb6060880188614a81565b838181106113cb576113cb614b62565b6113e192602060409092020190810191506144e9565b90505f6113f16060890189614a81565b8481811061140157611401614b62565b90506040020160200135905061142a88604001602081019061142391906144e9565b8383613698565b61144b73ffffffffffffffffffffffffffffffffffffffff831685836137aa565b5050600101611397565b507f455917442c530b052ee826d2556fad794f64a294e455930a63599688abbffa3c61148760608701604088016144e9565b6114946060880188614a81565b6040516114a393929190614ca1565b60405180910390a150610fa6613800565b6114bc613015565b73ffffffffffffffffffffffffffffffffffffffff8116611509576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f9eaa897564d022fb8c5efaf0acdb5d9d27b440b2aad44400b6e1c702e65b9ed3906020016108b2565b611584613015565b61158d5f6139aa565b565b335f9081526008602052604090205460ff166115d7576040517fd687c5f200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8481165f908152600b60205260409020541615801590611631575073ffffffffffffffffffffffffffffffffffffffff8281165f908152600b60205260409020541615155b611667576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8086165f908152600d60209081526040808320938816835292905290812080548592906116aa908490614cd9565b909155505073ffffffffffffffffffffffffffffffffffffffff8086165f908152600d60209081526040808320938616835292905290812080548392906116f2908490614d00565b90915550505050505050565b611706613015565b73ffffffffffffffffffffffffffffffffffffffff8116611753576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f538bd377a1e0d2ceca49908f540bafa1d8616cf49a7bcefcd0b479e7531ff8aa906020016108b2565b600354339073ffffffffffffffffffffffffffffffffffffffff168114611874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61187d816139aa565b50565b73ffffffffffffffffffffffffffffffffffffffff81165f90815260106020526040902054819060ff1680156118cb575073ffffffffffffffffffffffffffffffffffffffff811633145b8061192a575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff16801561192a575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b611960576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611968613096565b6119c38484808060200260200160405190810160405280939291908181526020015f905b828210156119b8576119a960408302860136819003810190614ae5565b8152602001906001019061198c565b50505050508361335f565b5f5b83811015611a4457611a3c33306119f68888868181106119e7576119e7614b62565b9050604002016020013561354d565b888886818110611a0857611a08614b62565b611a1e92602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff169291906135bc565b6001016119c5565b507fc8aa82285b2a9e22e0bda601a759e4f578e78f18015e543a4f66bb120a726953828585604051611a7893929190614ca1565b60405180910390a1610fa6613800565b5f60608082808083611aba7f0000000000000000000000000000000000000000000000000000000000000000836139db565b611ae57f000000000000000000000000000000000000000000000000000000000000000060016139db565b604080515f808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b60078181548110611b39575f80fd5b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60065473ffffffffffffffffffffffffffffffffffffffff163314611bb0576040517f16ced9a800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b81811015612101575f838383818110611bcd57611bcd614b62565b9050602002810190611bdf9190614d26565b611bed9060208101906144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600a602052604090205490915061708090611c239042614b8f565b1015611c5b576040517f0dc2dde400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848484818110611c6f57611c6f614b62565b9050602002810190611c819190614d26565b611c8f906020810190614d62565b90508110156120d2575f858585818110611cab57611cab614b62565b9050602002810190611cbd9190614d26565b611ccb906020810190614d62565b83818110611cdb57611cdb614b62565b611cf192602060609092020190810191506144e9565b90505f868686818110611d0657611d06614b62565b9050602002810190611d189190614d26565b611d26906020810190614d62565b84818110611d3657611d36614b62565b9050606002016020013590505f878787818110611d5557611d55614b62565b9050602002810190611d679190614d26565b611d75906020810190614d62565b85818110611d8557611d85614b62565b73ffffffffffffffffffffffffffffffffffffffff8681165f908152600b60205260409081902054606090930294909401939093013593509091169050611df8576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81156120295773ffffffffffffffffffffffffffffffffffffffff8084165f908152600b602090815260408083205481517f3ba0b9a9000000000000000000000000000000000000000000000000000000008152915193941692633ba0b9a9926004808401939192918290030181865afa158015611e78573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e9c9190614dc5565b73ffffffffffffffffffffffffffffffffffffffff8581165f908152600b6020526040908190205490517fc8cc5cd800000000000000000000000000000000000000000000000000000000815260048101879052929350169063c8cc5cd8906024015f604051808303815f87803b158015611f15575f5ffd5b505af1158015611f27573d5f5f3e3d5ffd5b50505050806064611f389190614ddc565b73ffffffffffffffffffffffffffffffffffffffff8086165f908152600b60209081526040918290205482517f3ba0b9a9000000000000000000000000000000000000000000000000000000008152925186949190911692633ba0b9a99260048083019391928290030181865afa158015611fb5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fd99190614dc5565b611fe39190614b8f565b611fef90612710614ddc565b1115612027576040517f0aa1e28500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b80156120695773ffffffffffffffffffffffffffffffffffffffff83165f9081526009602052604081208054839290612063908490614df3565b90915550505b61207b6120768383614df3565b613a86565b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d60209081526040808320938816835292905290812080549091906120be908490614d00565b909155505060019093019250611c5d915050565b5073ffffffffffffffffffffffffffffffffffffffff165f908152600a60205260409020429055600101611bb2565b507f90e0333a7f11b37e50e152c45bb5ebfc2ce2ace82e290567861d3ae8529688748282604051612133929190614e06565b60405180910390a15050565b61214f60608401604085016144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff168015612198575073ffffffffffffffffffffffffffffffffffffffff811633145b806121f7575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff1680156121f7575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b61222d576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612235613096565b612240848484613b37565b6122b26122506060860186614a81565b808060200260200160405190810160405280939291908181526020015f905b8282101561229b5761228c60408302860136819003810190614ae5565b8152602001906001019061226f565b50610b1893505060608901915050604088016144e9565b5f6012816122c660608801604089016144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f9081205490911691505b6123036060870187614a81565b90508110156123c1575f61231a6060880188614a81565b8381811061232a5761232a614b62565b61234092602060409092020190810191506144e9565b90505f6123506060890189614a81565b8481811061236057612360614b62565b9050604002016020013590505f811315612387576123823330610cd58461354d565b6123b7565b6123a761239a60608a0160408b016144e9565b83610d0f610d0a85614ba2565b6123b784610d24610d0a84614ba2565b50506001016122f6565b507f0279bcc316c233db88e8f3e463dcefc7fa661da21bc66eadc60f3835e41bba1161148760608701604088016144e9565b6123fb613015565b73ffffffffffffffffffffffffffffffffffffffff8216612448576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82165f8181526008602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527f947aca305c9b8d94b31792a7f80d331c9452e743508d61331561378673b50103910160405180910390a25050565b73ffffffffffffffffffffffffffffffffffffffff821661251e576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60045473ffffffffffffffffffffffffffffffffffffffff16331461256f576040517fdcdd32f100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f908152600960205260409020548111156125cd576040517fce11c63900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f9081526009602052604081208054839290612601908490614b8f565b90915550612628905073ffffffffffffffffffffffffffffffffffffffff841683836137aa565b6040805173ffffffffffffffffffffffffffffffffffffffff8086168252841660208201529081018290527fde13184e8cbb6eccbcecfc796bf8820e5ffde0534c01b4fabed4b05982964a4490606001611140565b612685613096565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff166126e3576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8281101561284f575f84848381811061270057612700614b62565b61271692602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600f602052604090205490915060ff16612777576040517f918aa47f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f85858481811061278a5761278a614b62565b90506040020160200135905080600e5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461281d9190614df3565b90915550612845905073ffffffffffffffffffffffffffffffffffffffff83163330846135bc565b50506001016126e5565b507f770dafe0b413d5c277b5f1a9d1d725e5ebafe92b5a16f3ebaae6e49e43b6649981848460405161288393929190614ca1565b60405180910390a1610e96613800565b61289b613015565b73ffffffffffffffffffffffffffffffffffffffff8516158015906128d5575073ffffffffffffffffffffffffffffffffffffffff841615155b80156128f6575073ffffffffffffffffffffffffffffffffffffffff831615155b61292c576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561299457508373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b6129ca576040517f5bc7a3a500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8581165f81815260106020908152604080832080548815157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091821681179092556011845282852080548c89167fffffffffffffffffffffffff00000000000000000000000000000000000000009182168117909255601286528487208054998d169990911689179055601385529483902080548915159216821790558251918252928101929092528101919091526060810192909252907f2353ec0fe56a376d3269d3e65521f1ce07dc5f544cc5b0ba4eb2ff03f771a4ad9060800160405180910390a25050505050565b335f908152600f602052604090205460ff16612b13576040517f918aa47f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1663c70920bc6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b5c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b809190614dc5565b811115612bb9576040517fff75bad100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c4882823373ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612c07573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612c2b9190614f9d565b73ffffffffffffffffffffffffffffffffffffffff1691906137aa565b5050565b612c54613015565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600f602052604090205460ff1615612cb3576040517fdeaabdc200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8173ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612cfd573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d219190614f9d565b73ffffffffffffffffffffffffffffffffffffffff8082165f908152600b602052604090205491925016158015612def57503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1663e2498f726040518163ffffffff1660e01b8152600401602060405180830381865afa158015612db3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612dd79190614f9d565b73ffffffffffffffffffffffffffffffffffffffff16145b612e25576040517f9db8d5b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116612e72576040517ff418616400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8181165f908152600b6020908152604080832080549487167fffffffffffffffffffffffff00000000000000000000000000000000000000009586168117909155808452600f835281842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091556007805491820181559094527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6889093018054909416831790935591519081527fcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f9101612133565b612f6d613015565b6003805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155612fd060025473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60025473ffffffffffffffffffffffffffffffffffffffff16331461158d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161186b565b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005c156130ef576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61158d7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f006001613bbd565b4283602001351015613158576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131628335613bc4565b5f7f76c5f3d53a01a9f0a59b081b22aba3a0f03248e9241993e97d1d025ef2ffaac28435602086013561319b60608801604089016144e9565b6131a86060890189614a81565b6040516020016131b9929190614fb8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905280516020909101206131fc60808a018a614a81565b60405160200161320d929190614fb8565b604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00181528282528051602091820120335f90815260158352839020549184019890985290820195909552606081019390935273ffffffffffffffffffffffffffffffffffffffff918216608084015260a083015260c0820193909352911660e0820152610100015b6040516020818303038152906040528051906020012090505f6132be82613c44565b90505f6133008286868080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250613c8b92505050565b60055490915073ffffffffffffffffffffffffffffffffffffffff808316911614613357576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b81515f5b81811015610fa6575f84828151811061337e5761337e614b62565b60200260200101515f015190505f85838151811061339e5761339e614b62565b60209081029190910181015181015173ffffffffffffffffffffffffffffffffffffffff8088165f908152600d845260408082209287168252919093528220549092506133ec908390614cd9565b73ffffffffffffffffffffffffffffffffffffffff8481165f908152600b60205260409020549192501661344c576040517ff418616400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d6020908152604080832093871683529290529081205461348b908490614fcb565b1215806134d4575073ffffffffffffffffffffffffffffffffffffffff8087165f908152600d602090815260408083209387168352929052908120546134d2908390614fcb565b125b1561350b576040517f09a09f7500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d60209081526040808320969093168252949094529092209190915550600101613363565b5f5f8212156135b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f736974697665604482015260640161186b565b5090565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610fa69085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152613cad565b73ffffffffffffffffffffffffffffffffffffffff8084165f9081526016602090815260408083209386168352929052908120906136d96201518042614a49565b90505f82600201548211156136ef575082613702565b8383600101546136ff9190614df3565b90505b82541580613711575082548111155b613747576040517ff5b71ffc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160608101825293548452602080850192835284820193845273ffffffffffffffffffffffffffffffffffffffff9788165f9081526016825282812097909816885295909552939094209051815591516001830155509051600290910155565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610e969084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401613616565b61158d7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005f613bbd565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610e969084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401613616565b42836020013510156138be576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6138c88335613bc4565b5f7f6b9aa5f8de278806afcc63bb2d2e633b4da3536375ca60f09ae8fae5829b3c468435602086013561390160608801604089016144e9565b61390e6060890189614a81565b60405160200161391f929190614fb8565b6040516020818303038152906040528051906020012060125f8a604001602081019061394b91906144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182015f2054825193840198909852908201959095526060810193909352908316608083015260a0820152911660c082015260e00161329c565b600380547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561187d81613dba565b606060ff83146139f5576139ee83613e30565b9050613a80565b818054613a0190615016565b80601f0160208091040260200160405190810160405280929190818152602001828054613a2d90615016565b8015613a785780601f10613a4f57610100808354040283529160200191613a78565b820191905f5260205f20905b815481529060010190602001808311613a5b57829003601f168201915b505050505090505b92915050565b5f7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8211156135b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e206160448201527f6e20696e74323536000000000000000000000000000000000000000000000000606482015260840161186b565b4283602001351015613b75576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613b7f8335613bc4565b5f7fe83563cdfbb4d31bd8759eea5a634fbe67ea13b6739d04d2426c621fee979fa48435602086013561390160608801604089016144e9565b905090565b80825d5050565b5f818152600c602052604090205460ff1615613c0c576040517f1f6d5aef00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f908152600c6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b5f613a80613c50613e6d565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b5f5f5f613c988585613fa3565b91509150613ca581613fe5565b509392505050565b5f613d0e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166141979092919063ffffffff16565b905080515f1480613d2e575080806020019051810190613d2e9190615061565b610e96576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161186b565b6002805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b60605f613e3c836141ad565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b5f3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016148015613ed257507f000000000000000000000000000000000000000000000000000000000000000046145b15613efc57507f000000000000000000000000000000000000000000000000000000000000000090565b613bb8604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b5f5f8251604103613fd7576020830151604084015160608501515f1a613fcb878285856141ed565b94509450505050613fde565b505f905060025b9250929050565b5f816004811115613ff857613ff861507c565b036140005750565b60018160048111156140145761401461507c565b0361407b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161186b565b600281600481111561408f5761408f61507c565b036140f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161186b565b600381600481111561410a5761410a61507c565b0361187d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161186b565b60606141a584845f856142d5565b949350505050565b5f60ff8216601f811115613a80576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561422257505f905060036142cc565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614273573d5f5f3e3d5ffd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166142c6575f600192509250506142cc565b91505f90505b94509492505050565b606082471015614367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161186b565b5f5f8673ffffffffffffffffffffffffffffffffffffffff16858760405161438f91906150a9565b5f6040518083038185875af1925050503d805f81146143c9576040519150601f19603f3d011682016040523d82523d5f602084013e6143ce565b606091505b50915091506143df878383876143ea565b979650505050505050565b6060831561447f5782515f036144785773ffffffffffffffffffffffffffffffffffffffff85163b614478576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161186b565b50816141a5565b6141a583838151156144945781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186b91906150bf565b73ffffffffffffffffffffffffffffffffffffffff8116811461187d575f5ffd5b5f602082840312156144f9575f5ffd5b8135614504816144c8565b9392505050565b5f5f5f6060848603121561451d575f5ffd5b8335614528816144c8565b92506020840135614538816144c8565b929592945050506040919091013590565b5f5f83601f840112614559575f5ffd5b50813567ffffffffffffffff811115614570575f5ffd5b602083019150836020828501011115613fde575f5ffd5b5f5f5f60408486031215614599575f5ffd5b833567ffffffffffffffff8111156145af575f5ffd5b840160a081870312156145c0575f5ffd5b9250602084013567ffffffffffffffff8111156145db575f5ffd5b6145e786828701614549565b9497909650939450505050565b5f60208284031215614604575f5ffd5b5035919050565b5f5f83601f84011261461b575f5ffd5b50813567ffffffffffffffff811115614632575f5ffd5b6020830191508360208260061b8501011115613fde575f5ffd5b5f5f5f6040848603121561465e575f5ffd5b833567ffffffffffffffff811115614674575f5ffd5b6146808682870161460b565b9094509250506020840135614694816144c8565b809150509250925092565b801515811461187d575f5ffd5b5f5f5f606084860312156146be575f5ffd5b83356146c9816144c8565b925060208401356146d9816144c8565b915060408401356146948161469f565b5f5f604083850312156146fa575f5ffd5b8235614705816144c8565b91506020830135614715816144c8565b809150509250929050565b5f60808284031215614730575f5ffd5b50919050565b5f5f5f60408486031215614748575f5ffd5b833567ffffffffffffffff81111561475e575f5ffd5b61476a86828701614720565b935050602084013567ffffffffffffffff8111156145db575f5ffd5b5f5f5f5f5f60a0868803121561479a575f5ffd5b85356147a5816144c8565b945060208601356147b5816144c8565b93506040860135925060608601356147cc816144c8565b949793965091946080013592915050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f61486360e08301896147dd565b828103604084015261487581896147dd565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b818110156148d75783518352602093840193909201916001016148b9565b50909b9a5050505050505050505050565b5f5f602083850312156148f9575f5ffd5b823567ffffffffffffffff81111561490f575f5ffd5b8301601f8101851361491f575f5ffd5b803567ffffffffffffffff811115614935575f5ffd5b8560208260051b8401011115614949575f5ffd5b6020919091019590945092505050565b5f5f6040838503121561496a575f5ffd5b8235614975816144c8565b915060208301356147158161469f565b5f5f5f5f5f60a08688031215614999575f5ffd5b85356149a4816144c8565b945060208601356149b4816144c8565b935060408601356149c4816144c8565b925060608601356149d48161469f565b915060808601356149e48161469f565b809150509295509295909350565b5f5f60408385031215614a03575f5ffd5b8235614a0e816144c8565b946020939093013593505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f82614a7c577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614ab4575f5ffd5b83018035915067ffffffffffffffff821115614ace575f5ffd5b6020019150600681901b3603821315613fde575f5ffd5b5f6040828403128015614af6575f5ffd5b506040805190810167ffffffffffffffff81118282101715614b3f577f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040528235614b4d816144c8565b81526020928301359281019290925250919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b81810381811115613a8057613a80614a1c565b5f7f80000000000000000000000000000000000000000000000000000000000000008203614bd257614bd2614a1c565b505f0390565b8183526020830192505f815f5b84811015614c2c578135614bf8816144c8565b73ffffffffffffffffffffffffffffffffffffffff1686526020828101359087015260409586019590910190600101614be5565b5093949350505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff86166020820152608060408201525f614c81608083018688614bd8565b8281036060840152614c94818587614bd8565b9998505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff84168152604060208201525f614cd0604083018486614bd8565b95945050505050565b8082018281125f831280158216821582161715614cf857614cf8614a1c565b505092915050565b8181035f831280158383131683831282161715614d1f57614d1f614a1c565b5092915050565b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc1833603018112614d58575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614d95575f5ffd5b83018035915067ffffffffffffffff821115614daf575f5ffd5b6020019150606081023603821315613fde575f5ffd5b5f60208284031215614dd5575f5ffd5b5051919050565b8082028115828204841417613a8057613a80614a1c565b80820180821115613a8057613a80614a1c565b602080825281018290525f6040600584901b8301810190830185837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc136839003015b87821015614f90577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08786030184528235818112614e84575f5ffd5b8901604086018135614e95816144c8565b73ffffffffffffffffffffffffffffffffffffffff1687526020820135368390037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1018112614ee2575f5ffd5b60209201918201913567ffffffffffffffff811115614eff575f5ffd5b606081023603831315614f10575f5ffd5b60406020890152908190525f90606088015b81831015614f74578335614f35816144c8565b73ffffffffffffffffffffffffffffffffffffffff16815260208481013590820152604080850135908201526060938401936001939093019201614f22565b9750505060209485019493909301925060019190910190614e48565b5092979650505050505050565b5f60208284031215614fad575f5ffd5b8151614504816144c8565b602081525f6141a5602083018486614bd8565b8082025f82127f80000000000000000000000000000000000000000000000000000000000000008414161561500257615002614a1c565b8181058314821517613a8057613a80614a1c565b600181811c9082168061502a57607f821691505b602082108103614730577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60208284031215615071575f5ffd5b81516145048161469f565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b5f82518060208501845e5f920191825250919050565b602081525f61450460208301846147dd56fea2646970667358221220a0ba8db9f3d9a667e49717c5614618d481311d4c3e69e51e9b53166a80821e6764736f6c634300081c0033","sourceMap":"860:26822:18:-:0;;;3942:51;;;;;;;;;-1:-1:-1;3178:431:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3178:431:14;;;;;3251:45;3178:431;-1:-1:-1;3251:30:14;:45::i;:::-;3243:53;;3317:51;:7;3351:16;3317:33;:51::i;:::-;3306:62;;3392:22;;;;;;;;;;3378:36;;3441:25;;;;;;3424:42;;3494:13;3477:30;;3542:23;4077:11;;4090:14;;4054:81;;;1929:95;4054:81;;;2914:25:26;2955:18;;;2948:34;;;;2998:18;;;2991:34;4106:13:14;3041:18:26;;;3034:34;4129:4:14;3084:19:26;;;3077:61;4018:7:14;;2886:19:26;;4054:81:14;;;;;;;;;;;;4044:92;;;;;;4037:99;;3963:180;;3542:23;3517:48;;-1:-1:-1;;3597:4:14;3575:27;;936:32:0;734:10:9;936:18:0;:32::i;:::-;860:26822:18;;2895:341:10;2991:11;3040:2;3024:5;3018:19;:24;3014:216;;;3065:20;3079:5;3065:13;:20::i;:::-;3058:27;;;;3014:216;3142:5;3116:46;3157:5;3142;3116:46;:::i;:::-;-1:-1:-1;1371:66:10;;-1:-1:-1;3014:216:10;2895:341;;;;:::o;1501:153:1:-;1590:13;1583:20;;-1:-1:-1;;;;;;1583:20:1;;;1613:34;1638:8;1613:24;:34::i;:::-;1501:153;:::o;1689:286:10:-;1754:11;1777:17;1803:3;1777:30;;1835:2;1821:4;:11;:16;1817:72;;;1874:3;1860:18;;-1:-1:-1;;;1860:18:10;;;;;;;;:::i;:::-;;;;;;;;1817:72;1955:11;;1938:13;1955:4;1938:13;:::i;:::-;1930:36;;1689:286;-1:-1:-1;;;1689:286:10:o;2426:187:0:-;2518:6;;;-1:-1:-1;;;;;2534:17:0;;;-1:-1:-1;;;;;;2534:17:0;;;;;;;2566:40;;2518:6;;;2534:17;2518:6;;2566:40;;2499:16;;2566:40;2489:124;2426:187;:::o;14:127:26:-;75:10;70:3;66:20;63:1;56:31;106:4;103:1;96:15;130:4;127:1;120:15;146:380;225:1;221:12;;;;268;;;289:61;;343:4;335:6;331:17;321:27;;289:61;396:2;388:6;385:14;365:18;362:38;359:161;;442:10;437:3;433:20;430:1;423:31;477:4;474:1;467:15;505:4;502:1;495:15;359:161;;146:380;;;:::o;657:518::-;759:2;754:3;751:11;748:421;;;795:5;792:1;785:16;839:4;836:1;826:18;909:2;897:10;893:19;890:1;886:27;880:4;876:38;945:4;933:10;930:20;927:47;;;-1:-1:-1;968:4:26;927:47;1023:2;1018:3;1014:12;1011:1;1007:20;1001:4;997:31;987:41;;1078:81;1096:2;1089:5;1086:13;1078:81;;;1155:1;1141:16;;1122:1;1111:13;1078:81;;;1082:3;;748:421;657:518;;;:::o;1351:1299::-;1471:10;;-1:-1:-1;;;;;1493:30:26;;1490:56;;;1526:18;;:::i;:::-;1555:97;1645:6;1605:38;1637:4;1631:11;1605:38;:::i;:::-;1599:4;1555:97;:::i;:::-;1701:4;1732:2;1721:14;;1749:1;1744:649;;;;2437:1;2454:6;2451:89;;;-1:-1:-1;2506:19:26;;;2500:26;2451:89;-1:-1:-1;;1308:1:26;1304:11;;;1300:24;1296:29;1286:40;1332:1;1328:11;;;1283:57;2553:81;;1714:930;;1744:649;604:1;597:14;;;641:4;628:18;;-1:-1:-1;;1780:20:26;;;1898:222;1912:7;1909:1;1906:14;1898:222;;;1994:19;;;1988:26;1973:42;;2101:4;2086:20;;;;2054:1;2042:14;;;;1928:12;1898:222;;;1902:3;2148:6;2139:7;2136:19;2133:201;;;2209:19;;;2203:26;-1:-1:-1;;2292:1:26;2288:14;;;2304:3;2284:24;2280:37;2276:42;2261:58;2246:74;;2133:201;-1:-1:-1;;;;2380:1:26;2364:14;;;2360:22;2347:36;;-1:-1:-1;1351:1299:26:o;3149:418::-;3298:2;3287:9;3280:21;3261:4;3330:6;3324:13;3373:6;3368:2;3357:9;3353:18;3346:34;3432:6;3427:2;3419:6;3415:15;3410:2;3399:9;3395:18;3389:50;3488:1;3483:2;3474:6;3463:9;3459:22;3455:31;3448:42;3558:2;3551;3547:7;3542:2;3534:6;3530:15;3526:29;3515:9;3511:45;3507:54;3499:62;;;3149:418;;;;:::o;3572:297::-;3690:12;;3737:4;3726:16;;;3720:23;;3690:12;3755:16;;3752:111;;;-1:-1:-1;;3829:4:26;3825:17;;;;3822:1;3818:25;3814:38;3803:50;;3572:297;-1:-1:-1;3572:297:26:o;:::-;860:26822:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"608060405234801561000f575f5ffd5b50600436106102d7575f3560e01c806379ba509711610187578063b17b658d116100dd578063cab4f84c11610093578063f2fde38b1161006e578063f2fde38b14610784578063f6d95efd14610797578063f90cdb36146107cc575f5ffd5b8063cab4f84c14610729578063cc218ece1461073c578063e30c397814610766575f5ffd5b8063b7477674116100c3578063b7477674146106af578063c2b7307614610703578063c407687614610716575f5ffd5b8063b17b658d14610667578063b6bdff031461069c575f5ffd5b806392a88fa21161013d578063abb49f1911610118578063abb49f1914610622578063ae1914f814610635578063b0ab63ec14610648575f5ffd5b806392a88fa2146105da57806398221e94146105fc5780639be41fdb1461060f575f5ffd5b806384b0196e1161016d57806384b0196e1461058e5780638da5cb5b146105a95780639246261c146105c7575f5ffd5b806379ba50971461057357806381377bfd1461057b575f5ffd5b806341b1fa761161023c5780634e293ee9116101f2578063715018a6116101cd578063715018a6146105455780637362ecbe1461054d57806373eb513314610560575f5ffd5b80634e293ee9146104ff5780634f487eb8146105125780636c19e78314610532575f5ffd5b8063464b38bc11610222578063464b38bc1461049557806347de43e2146104c25780634bd21445146104d5575f5ffd5b806341b1fa761461043e578063422e0af014610460575f5ffd5b8063141a468c1161029157806320761fc41161027757806320761fc4146103dc578063238ac933146103fe57806332b4fa6b1461041e575f5ffd5b8063141a468c146103a75780631e777ad3146103c9575f5ffd5b80630d2a7ae8116102c15780630d2a7ae8146103035780630dfbe91b146103625780631241177214610394575f5ffd5b8062fc59c0146102db578063097a8ec4146102f0575b5f5ffd5b6102ee6102e93660046144e9565b6107ee565b005b6102ee6102fe36600461450b565b6108bd565b6103386103113660046144e9565b60116020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6103846103703660046144e9565b60086020525f908152604090205460ff1681565b6040519015158152602001610359565b6102ee6103a2366004614587565b610a4b565b6103846103b53660046145f4565b600c6020525f908152604090205460ff1681565b6102ee6103d736600461464c565b610e9b565b6103846103ea3660046144e9565b600f6020525f908152604090205460ff1681565b6005546103389073ffffffffffffffffffffffffffffffffffffffff1681565b6004546103389073ffffffffffffffffffffffffffffffffffffffff1681565b61038461044c3660046144e9565b60136020525f908152604090205460ff1681565b61033861046e3660046144e9565b60126020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6104b46104a33660046144e9565b60096020525f908152604090205481565b604051908152602001610359565b6102ee6104d03660046146ac565b610fac565b6104b46104e33660046146e9565b600d60209081525f928352604080842090915290825290205481565b6102ee61050d366004614736565b61114d565b6006546103389073ffffffffffffffffffffffffffffffffffffffff1681565b6102ee6105403660046144e9565b6114b4565b6102ee61157c565b6102ee61055b366004614786565b61158f565b6102ee61056e3660046144e9565b6116fe565b6102ee6117c6565b6102ee61058936600461464c565b611880565b610596611a88565b6040516103599796959493929190614829565b60025473ffffffffffffffffffffffffffffffffffffffff16610338565b6103386105d53660046145f4565b611b2a565b6103846105e83660046144e9565b60106020525f908152604090205460ff1681565b6102ee61060a3660046148e8565b611b5f565b6102ee61061d366004614736565b61213f565b6102ee610630366004614959565b6123f3565b6102ee61064336600461450b565b6124d1565b6104b46106563660046144e9565b600a6020525f908152604090205481565b6103386106753660046144e9565b600b6020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6102ee6106aa36600461464c565b61267d565b6106e86106bd3660046146e9565b601660209081525f928352604080842090915290825290208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610359565b6102ee610711366004614985565b612893565b6102ee6107243660046149f2565b612acb565b6102ee6107373660046144e9565b612c4c565b6104b461074a3660046146e9565b600e60209081525f928352604080842090915290825290205481565b60035473ffffffffffffffffffffffffffffffffffffffff16610338565b6102ee6107923660046144e9565b612f65565b6103386107a53660046144e9565b60156020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6103846107da3660046144e9565b60146020525f908152604090205460ff1681565b6107f6613015565b73ffffffffffffffffffffffffffffffffffffffff8116610843576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f15d0b1a02a4902c4788ceda199eb43e4a753d86c0dbb7412e8ba63feecb070fa906020015b60405180910390a150565b6108c5613015565b73ffffffffffffffffffffffffffffffffffffffff8216610912576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f9081526010602052604090205460ff1680610969575073ffffffffffffffffffffffffffffffffffffffff83165f9081526014602052604090205460ff165b61099f576040517f3be3aba200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080516060810182528281525f60208201529081016109c26201518042614a49565b905273ffffffffffffffffffffffffffffffffffffffff8481165f81815260166020908152604080832094881680845294825291829020855181558582015160018201559482015160029095019490945551848152919290917f39ff4a05a64bdf7e1dcb0b2d6b7e35b6a720a9412386a9e193c0e93d29a18470910160405180910390a3505050565b335f9081526014602052604090205460ff16610a93576040517f99b01c4700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a9b613096565b610aa683838361311a565b610b1d610ab66060850185614a81565b808060200260200160405190810160405280939291908181526020015f905b82821015610b0157610af260408302860136819003810190614ae5565b81526020019060010190610ad5565b50610b1893505060608801915050604087016144e9565b61335f565b335f9081526015602052604081205473ffffffffffffffffffffffffffffffffffffffff16905b610b516080860186614a81565b9050811015610c4657610b676080860186614a81565b82818110610b7757610b77614b62565b90506040020160200135600e5f876040016020810190610b9791906144e9565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040015f90812090610bcc6080890189614a81565b85818110610bdc57610bdc614b62565b610bf292602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254610c399190614b8f565b9091555050600101610b44565b505f5b610c566060860186614a81565b9050811015610d4c575f610c6d6060870187614a81565b83818110610c7d57610c7d614b62565b610c9392602060409092020190810191506144e9565b90505f610ca36060880188614a81565b84818110610cb357610cb3614b62565b9050604002016020013590505f811315610cf957610cf43330610cd58461354d565b73ffffffffffffffffffffffffffffffffffffffff86169291906135bc565b610d42565b610d143383610d0f610d0a85614ba2565b61354d565b613698565b610d4284610d24610d0a84614ba2565b73ffffffffffffffffffffffffffffffffffffffff851691906137aa565b5050600101610c49565b505f5b610d5c6080860186614a81565b9050811015610e26575f610d736080870187614a81565b83818110610d8357610d83614b62565b610d9992602060409092020190810191506144e9565b9050610dcc3382610dad60808a018a614a81565b86818110610dbd57610dbd614b62565b90506040020160200135613698565b610e1d83610ddd6080890189614a81565b85818110610ded57610ded614b62565b905060400201602001358373ffffffffffffffffffffffffffffffffffffffff166137aa9092919063ffffffff16565b50600101610d4f565b507fb5689a012cf77dd0a99ac07ed6f83009d7fbfca323bca73b34d6ed02bf413ab8610e5860608601604087016144e9565b33610e666060880188614a81565b610e7360808a018a614a81565b604051610e8596959493929190614c36565b60405180910390a150610e96613800565b505050565b610ea3613015565b5f5b82811015610fa6575f600b81868685818110610ec357610ec3614b62565b610ed992602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f20541603610f39576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f9e82858584818110610f4f57610f4f614b62565b90506040020160200135868685818110610f6b57610f6b614b62565b610f8192602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff16919061382a565b600101610ea5565b50505050565b610fb4613015565b73ffffffffffffffffffffffffffffffffffffffff831615801590610fee575073ffffffffffffffffffffffffffffffffffffffff821615155b611024576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611089576040517f88b43fad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8381165f81815260146020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016871515908117909155601583529281902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169588169590951790945583519283528201527f81e020344174972c59f6c11a8f6c90b141866214e3d9b544d030f0b532f5a10f91015b60405180910390a1505050565b61115d60608401604085016144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff1680156111a6575073ffffffffffffffffffffffffffffffffffffffff811633145b80611205575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff168015611205575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b61123b576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611243613096565b61124e848484613880565b5f5b61125d6060860186614a81565b9050811015611352576112736060860186614a81565b8281811061128357611283614b62565b90506040020160200135600e5f8760400160208101906112a391906144e9565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040015f908120906112d86060890189614a81565b858181106112e8576112e8614b62565b6112fe92602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546113459190614b8f565b9091555050600101611250565b505f60128161136760608801604089016144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f9081205490911691505b6113a46060870187614a81565b9050811015611455575f6113bb6060880188614a81565b838181106113cb576113cb614b62565b6113e192602060409092020190810191506144e9565b90505f6113f16060890189614a81565b8481811061140157611401614b62565b90506040020160200135905061142a88604001602081019061142391906144e9565b8383613698565b61144b73ffffffffffffffffffffffffffffffffffffffff831685836137aa565b5050600101611397565b507f455917442c530b052ee826d2556fad794f64a294e455930a63599688abbffa3c61148760608701604088016144e9565b6114946060880188614a81565b6040516114a393929190614ca1565b60405180910390a150610fa6613800565b6114bc613015565b73ffffffffffffffffffffffffffffffffffffffff8116611509576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f9eaa897564d022fb8c5efaf0acdb5d9d27b440b2aad44400b6e1c702e65b9ed3906020016108b2565b611584613015565b61158d5f6139aa565b565b335f9081526008602052604090205460ff166115d7576040517fd687c5f200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8481165f908152600b60205260409020541615801590611631575073ffffffffffffffffffffffffffffffffffffffff8281165f908152600b60205260409020541615155b611667576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8086165f908152600d60209081526040808320938816835292905290812080548592906116aa908490614cd9565b909155505073ffffffffffffffffffffffffffffffffffffffff8086165f908152600d60209081526040808320938616835292905290812080548392906116f2908490614d00565b90915550505050505050565b611706613015565b73ffffffffffffffffffffffffffffffffffffffff8116611753576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f538bd377a1e0d2ceca49908f540bafa1d8616cf49a7bcefcd0b479e7531ff8aa906020016108b2565b600354339073ffffffffffffffffffffffffffffffffffffffff168114611874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61187d816139aa565b50565b73ffffffffffffffffffffffffffffffffffffffff81165f90815260106020526040902054819060ff1680156118cb575073ffffffffffffffffffffffffffffffffffffffff811633145b8061192a575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff16801561192a575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b611960576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611968613096565b6119c38484808060200260200160405190810160405280939291908181526020015f905b828210156119b8576119a960408302860136819003810190614ae5565b8152602001906001019061198c565b50505050508361335f565b5f5b83811015611a4457611a3c33306119f68888868181106119e7576119e7614b62565b9050604002016020013561354d565b888886818110611a0857611a08614b62565b611a1e92602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff169291906135bc565b6001016119c5565b507fc8aa82285b2a9e22e0bda601a759e4f578e78f18015e543a4f66bb120a726953828585604051611a7893929190614ca1565b60405180910390a1610fa6613800565b5f60608082808083611aba7f0000000000000000000000000000000000000000000000000000000000000000836139db565b611ae57f000000000000000000000000000000000000000000000000000000000000000060016139db565b604080515f808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b60078181548110611b39575f80fd5b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60065473ffffffffffffffffffffffffffffffffffffffff163314611bb0576040517f16ced9a800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b81811015612101575f838383818110611bcd57611bcd614b62565b9050602002810190611bdf9190614d26565b611bed9060208101906144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600a602052604090205490915061708090611c239042614b8f565b1015611c5b576040517f0dc2dde400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848484818110611c6f57611c6f614b62565b9050602002810190611c819190614d26565b611c8f906020810190614d62565b90508110156120d2575f858585818110611cab57611cab614b62565b9050602002810190611cbd9190614d26565b611ccb906020810190614d62565b83818110611cdb57611cdb614b62565b611cf192602060609092020190810191506144e9565b90505f868686818110611d0657611d06614b62565b9050602002810190611d189190614d26565b611d26906020810190614d62565b84818110611d3657611d36614b62565b9050606002016020013590505f878787818110611d5557611d55614b62565b9050602002810190611d679190614d26565b611d75906020810190614d62565b85818110611d8557611d85614b62565b73ffffffffffffffffffffffffffffffffffffffff8681165f908152600b60205260409081902054606090930294909401939093013593509091169050611df8576040517fa7466cd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81156120295773ffffffffffffffffffffffffffffffffffffffff8084165f908152600b602090815260408083205481517f3ba0b9a9000000000000000000000000000000000000000000000000000000008152915193941692633ba0b9a9926004808401939192918290030181865afa158015611e78573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e9c9190614dc5565b73ffffffffffffffffffffffffffffffffffffffff8581165f908152600b6020526040908190205490517fc8cc5cd800000000000000000000000000000000000000000000000000000000815260048101879052929350169063c8cc5cd8906024015f604051808303815f87803b158015611f15575f5ffd5b505af1158015611f27573d5f5f3e3d5ffd5b50505050806064611f389190614ddc565b73ffffffffffffffffffffffffffffffffffffffff8086165f908152600b60209081526040918290205482517f3ba0b9a9000000000000000000000000000000000000000000000000000000008152925186949190911692633ba0b9a99260048083019391928290030181865afa158015611fb5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fd99190614dc5565b611fe39190614b8f565b611fef90612710614ddc565b1115612027576040517f0aa1e28500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b80156120695773ffffffffffffffffffffffffffffffffffffffff83165f9081526009602052604081208054839290612063908490614df3565b90915550505b61207b6120768383614df3565b613a86565b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d60209081526040808320938816835292905290812080549091906120be908490614d00565b909155505060019093019250611c5d915050565b5073ffffffffffffffffffffffffffffffffffffffff165f908152600a60205260409020429055600101611bb2565b507f90e0333a7f11b37e50e152c45bb5ebfc2ce2ace82e290567861d3ae8529688748282604051612133929190614e06565b60405180910390a15050565b61214f60608401604085016144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff168015612198575073ffffffffffffffffffffffffffffffffffffffff811633145b806121f7575073ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff1680156121f7575073ffffffffffffffffffffffffffffffffffffffff8181165f908152601160205260409020541633145b61222d576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612235613096565b612240848484613b37565b6122b26122506060860186614a81565b808060200260200160405190810160405280939291908181526020015f905b8282101561229b5761228c60408302860136819003810190614ae5565b8152602001906001019061226f565b50610b1893505060608901915050604088016144e9565b5f6012816122c660608801604089016144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208201929092526040015f9081205490911691505b6123036060870187614a81565b90508110156123c1575f61231a6060880188614a81565b8381811061232a5761232a614b62565b61234092602060409092020190810191506144e9565b90505f6123506060890189614a81565b8481811061236057612360614b62565b9050604002016020013590505f811315612387576123823330610cd58461354d565b6123b7565b6123a761239a60608a0160408b016144e9565b83610d0f610d0a85614ba2565b6123b784610d24610d0a84614ba2565b50506001016122f6565b507f0279bcc316c233db88e8f3e463dcefc7fa661da21bc66eadc60f3835e41bba1161148760608701604088016144e9565b6123fb613015565b73ffffffffffffffffffffffffffffffffffffffff8216612448576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82165f8181526008602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527f947aca305c9b8d94b31792a7f80d331c9452e743508d61331561378673b50103910160405180910390a25050565b73ffffffffffffffffffffffffffffffffffffffff821661251e576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60045473ffffffffffffffffffffffffffffffffffffffff16331461256f576040517fdcdd32f100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f908152600960205260409020548111156125cd576040517fce11c63900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83165f9081526009602052604081208054839290612601908490614b8f565b90915550612628905073ffffffffffffffffffffffffffffffffffffffff841683836137aa565b6040805173ffffffffffffffffffffffffffffffffffffffff8086168252841660208201529081018290527fde13184e8cbb6eccbcecfc796bf8820e5ffde0534c01b4fabed4b05982964a4490606001611140565b612685613096565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604090205460ff166126e3576040517f897e65bd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8281101561284f575f84848381811061270057612700614b62565b61271692602060409092020190810191506144e9565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600f602052604090205490915060ff16612777576040517f918aa47f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f85858481811061278a5761278a614b62565b90506040020160200135905080600e5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461281d9190614df3565b90915550612845905073ffffffffffffffffffffffffffffffffffffffff83163330846135bc565b50506001016126e5565b507f770dafe0b413d5c277b5f1a9d1d725e5ebafe92b5a16f3ebaae6e49e43b6649981848460405161288393929190614ca1565b60405180910390a1610e96613800565b61289b613015565b73ffffffffffffffffffffffffffffffffffffffff8516158015906128d5575073ffffffffffffffffffffffffffffffffffffffff841615155b80156128f6575073ffffffffffffffffffffffffffffffffffffffff831615155b61292c576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561299457508373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b6129ca576040517f5bc7a3a500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8581165f81815260106020908152604080832080548815157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091821681179092556011845282852080548c89167fffffffffffffffffffffffff00000000000000000000000000000000000000009182168117909255601286528487208054998d169990911689179055601385529483902080548915159216821790558251918252928101929092528101919091526060810192909252907f2353ec0fe56a376d3269d3e65521f1ce07dc5f544cc5b0ba4eb2ff03f771a4ad9060800160405180910390a25050505050565b335f908152600f602052604090205460ff16612b13576040517f918aa47f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1663c70920bc6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b5c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b809190614dc5565b811115612bb9576040517fff75bad100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c4882823373ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612c07573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612c2b9190614f9d565b73ffffffffffffffffffffffffffffffffffffffff1691906137aa565b5050565b612c54613015565b73ffffffffffffffffffffffffffffffffffffffff81165f908152600f602052604090205460ff1615612cb3576040517fdeaabdc200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8173ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612cfd573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d219190614f9d565b73ffffffffffffffffffffffffffffffffffffffff8082165f908152600b602052604090205491925016158015612def57503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1663e2498f726040518163ffffffff1660e01b8152600401602060405180830381865afa158015612db3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612dd79190614f9d565b73ffffffffffffffffffffffffffffffffffffffff16145b612e25576040517f9db8d5b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116612e72576040517ff418616400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8181165f908152600b6020908152604080832080549487167fffffffffffffffffffffffff00000000000000000000000000000000000000009586168117909155808452600f835281842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091556007805491820181559094527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6889093018054909416831790935591519081527fcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f9101612133565b612f6d613015565b6003805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155612fd060025473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60025473ffffffffffffffffffffffffffffffffffffffff16331461158d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161186b565b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005c156130ef576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61158d7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f006001613bbd565b4283602001351015613158576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131628335613bc4565b5f7f76c5f3d53a01a9f0a59b081b22aba3a0f03248e9241993e97d1d025ef2ffaac28435602086013561319b60608801604089016144e9565b6131a86060890189614a81565b6040516020016131b9929190614fb8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905280516020909101206131fc60808a018a614a81565b60405160200161320d929190614fb8565b604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00181528282528051602091820120335f90815260158352839020549184019890985290820195909552606081019390935273ffffffffffffffffffffffffffffffffffffffff918216608084015260a083015260c0820193909352911660e0820152610100015b6040516020818303038152906040528051906020012090505f6132be82613c44565b90505f6133008286868080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250613c8b92505050565b60055490915073ffffffffffffffffffffffffffffffffffffffff808316911614613357576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b81515f5b81811015610fa6575f84828151811061337e5761337e614b62565b60200260200101515f015190505f85838151811061339e5761339e614b62565b60209081029190910181015181015173ffffffffffffffffffffffffffffffffffffffff8088165f908152600d845260408082209287168252919093528220549092506133ec908390614cd9565b73ffffffffffffffffffffffffffffffffffffffff8481165f908152600b60205260409020549192501661344c576040517ff418616400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d6020908152604080832093871683529290529081205461348b908490614fcb565b1215806134d4575073ffffffffffffffffffffffffffffffffffffffff8087165f908152600d602090815260408083209387168352929052908120546134d2908390614fcb565b125b1561350b576040517f09a09f7500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f908152600d60209081526040808320969093168252949094529092209190915550600101613363565b5f5f8212156135b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f736974697665604482015260640161186b565b5090565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610fa69085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152613cad565b73ffffffffffffffffffffffffffffffffffffffff8084165f9081526016602090815260408083209386168352929052908120906136d96201518042614a49565b90505f82600201548211156136ef575082613702565b8383600101546136ff9190614df3565b90505b82541580613711575082548111155b613747576040517ff5b71ffc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160608101825293548452602080850192835284820193845273ffffffffffffffffffffffffffffffffffffffff9788165f9081526016825282812097909816885295909552939094209051815591516001830155509051600290910155565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610e969084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401613616565b61158d7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005f613bbd565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610e969084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401613616565b42836020013510156138be576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6138c88335613bc4565b5f7f6b9aa5f8de278806afcc63bb2d2e633b4da3536375ca60f09ae8fae5829b3c468435602086013561390160608801604089016144e9565b61390e6060890189614a81565b60405160200161391f929190614fb8565b6040516020818303038152906040528051906020012060125f8a604001602081019061394b91906144e9565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182015f2054825193840198909852908201959095526060810193909352908316608083015260a0820152911660c082015260e00161329c565b600380547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561187d81613dba565b606060ff83146139f5576139ee83613e30565b9050613a80565b818054613a0190615016565b80601f0160208091040260200160405190810160405280929190818152602001828054613a2d90615016565b8015613a785780601f10613a4f57610100808354040283529160200191613a78565b820191905f5260205f20905b815481529060010190602001808311613a5b57829003601f168201915b505050505090505b92915050565b5f7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8211156135b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e206160448201527f6e20696e74323536000000000000000000000000000000000000000000000000606482015260840161186b565b4283602001351015613b75576040517ffef01cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613b7f8335613bc4565b5f7fe83563cdfbb4d31bd8759eea5a634fbe67ea13b6739d04d2426c621fee979fa48435602086013561390160608801604089016144e9565b905090565b80825d5050565b5f818152600c602052604090205460ff1615613c0c576040517f1f6d5aef00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f908152600c6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b5f613a80613c50613e6d565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b5f5f5f613c988585613fa3565b91509150613ca581613fe5565b509392505050565b5f613d0e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166141979092919063ffffffff16565b905080515f1480613d2e575080806020019051810190613d2e9190615061565b610e96576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161186b565b6002805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b60605f613e3c836141ad565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b5f3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016148015613ed257507f000000000000000000000000000000000000000000000000000000000000000046145b15613efc57507f000000000000000000000000000000000000000000000000000000000000000090565b613bb8604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b5f5f8251604103613fd7576020830151604084015160608501515f1a613fcb878285856141ed565b94509450505050613fde565b505f905060025b9250929050565b5f816004811115613ff857613ff861507c565b036140005750565b60018160048111156140145761401461507c565b0361407b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161186b565b600281600481111561408f5761408f61507c565b036140f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161186b565b600381600481111561410a5761410a61507c565b0361187d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161186b565b60606141a584845f856142d5565b949350505050565b5f60ff8216601f811115613a80576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561422257505f905060036142cc565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614273573d5f5f3e3d5ffd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166142c6575f600192509250506142cc565b91505f90505b94509492505050565b606082471015614367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161186b565b5f5f8673ffffffffffffffffffffffffffffffffffffffff16858760405161438f91906150a9565b5f6040518083038185875af1925050503d805f81146143c9576040519150601f19603f3d011682016040523d82523d5f602084013e6143ce565b606091505b50915091506143df878383876143ea565b979650505050505050565b6060831561447f5782515f036144785773ffffffffffffffffffffffffffffffffffffffff85163b614478576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161186b565b50816141a5565b6141a583838151156144945781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186b91906150bf565b73ffffffffffffffffffffffffffffffffffffffff8116811461187d575f5ffd5b5f602082840312156144f9575f5ffd5b8135614504816144c8565b9392505050565b5f5f5f6060848603121561451d575f5ffd5b8335614528816144c8565b92506020840135614538816144c8565b929592945050506040919091013590565b5f5f83601f840112614559575f5ffd5b50813567ffffffffffffffff811115614570575f5ffd5b602083019150836020828501011115613fde575f5ffd5b5f5f5f60408486031215614599575f5ffd5b833567ffffffffffffffff8111156145af575f5ffd5b840160a081870312156145c0575f5ffd5b9250602084013567ffffffffffffffff8111156145db575f5ffd5b6145e786828701614549565b9497909650939450505050565b5f60208284031215614604575f5ffd5b5035919050565b5f5f83601f84011261461b575f5ffd5b50813567ffffffffffffffff811115614632575f5ffd5b6020830191508360208260061b8501011115613fde575f5ffd5b5f5f5f6040848603121561465e575f5ffd5b833567ffffffffffffffff811115614674575f5ffd5b6146808682870161460b565b9094509250506020840135614694816144c8565b809150509250925092565b801515811461187d575f5ffd5b5f5f5f606084860312156146be575f5ffd5b83356146c9816144c8565b925060208401356146d9816144c8565b915060408401356146948161469f565b5f5f604083850312156146fa575f5ffd5b8235614705816144c8565b91506020830135614715816144c8565b809150509250929050565b5f60808284031215614730575f5ffd5b50919050565b5f5f5f60408486031215614748575f5ffd5b833567ffffffffffffffff81111561475e575f5ffd5b61476a86828701614720565b935050602084013567ffffffffffffffff8111156145db575f5ffd5b5f5f5f5f5f60a0868803121561479a575f5ffd5b85356147a5816144c8565b945060208601356147b5816144c8565b93506040860135925060608601356147cc816144c8565b949793965091946080013592915050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f61486360e08301896147dd565b828103604084015261487581896147dd565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b818110156148d75783518352602093840193909201916001016148b9565b50909b9a5050505050505050505050565b5f5f602083850312156148f9575f5ffd5b823567ffffffffffffffff81111561490f575f5ffd5b8301601f8101851361491f575f5ffd5b803567ffffffffffffffff811115614935575f5ffd5b8560208260051b8401011115614949575f5ffd5b6020919091019590945092505050565b5f5f6040838503121561496a575f5ffd5b8235614975816144c8565b915060208301356147158161469f565b5f5f5f5f5f60a08688031215614999575f5ffd5b85356149a4816144c8565b945060208601356149b4816144c8565b935060408601356149c4816144c8565b925060608601356149d48161469f565b915060808601356149e48161469f565b809150509295509295909350565b5f5f60408385031215614a03575f5ffd5b8235614a0e816144c8565b946020939093013593505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f82614a7c577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614ab4575f5ffd5b83018035915067ffffffffffffffff821115614ace575f5ffd5b6020019150600681901b3603821315613fde575f5ffd5b5f6040828403128015614af6575f5ffd5b506040805190810167ffffffffffffffff81118282101715614b3f577f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040528235614b4d816144c8565b81526020928301359281019290925250919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b81810381811115613a8057613a80614a1c565b5f7f80000000000000000000000000000000000000000000000000000000000000008203614bd257614bd2614a1c565b505f0390565b8183526020830192505f815f5b84811015614c2c578135614bf8816144c8565b73ffffffffffffffffffffffffffffffffffffffff1686526020828101359087015260409586019590910190600101614be5565b5093949350505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff86166020820152608060408201525f614c81608083018688614bd8565b8281036060840152614c94818587614bd8565b9998505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff84168152604060208201525f614cd0604083018486614bd8565b95945050505050565b8082018281125f831280158216821582161715614cf857614cf8614a1c565b505092915050565b8181035f831280158383131683831282161715614d1f57614d1f614a1c565b5092915050565b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc1833603018112614d58575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614d95575f5ffd5b83018035915067ffffffffffffffff821115614daf575f5ffd5b6020019150606081023603821315613fde575f5ffd5b5f60208284031215614dd5575f5ffd5b5051919050565b8082028115828204841417613a8057613a80614a1c565b80820180821115613a8057613a80614a1c565b602080825281018290525f6040600584901b8301810190830185837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc136839003015b87821015614f90577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08786030184528235818112614e84575f5ffd5b8901604086018135614e95816144c8565b73ffffffffffffffffffffffffffffffffffffffff1687526020820135368390037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1018112614ee2575f5ffd5b60209201918201913567ffffffffffffffff811115614eff575f5ffd5b606081023603831315614f10575f5ffd5b60406020890152908190525f90606088015b81831015614f74578335614f35816144c8565b73ffffffffffffffffffffffffffffffffffffffff16815260208481013590820152604080850135908201526060938401936001939093019201614f22565b9750505060209485019493909301925060019190910190614e48565b5092979650505050505050565b5f60208284031215614fad575f5ffd5b8151614504816144c8565b602081525f6141a5602083018486614bd8565b8082025f82127f80000000000000000000000000000000000000000000000000000000000000008414161561500257615002614a1c565b8181058314821517613a8057613a80614a1c565b600181811c9082168061502a57607f821691505b602082108103614730577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60208284031215615071575f5ffd5b81516145048161469f565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b5f82518060208501845e5f920191825250919050565b602081525f61450460208301846147dd56fea2646970667358221220a0ba8db9f3d9a667e49717c5614618d481311d4c3e69e51e9b53166a80821e6764736f6c634300081c0033","sourceMap":"860:26822:18:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21656:245;;;;;;:::i;:::-;;:::i;:::-;;18023:468;;;;;;:::i;:::-;;:::i;2971:50::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1414:42:26;1402:55;;;1384:74;;1372:2;1357:18;2971:50:18;;;;;;;;1847:43;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1634:14:26;;1627:22;1609:41;;1597:2;1582:18;1847:43:18;1469:187:26;11149:1627:18;;;;;;:::i;:::-;;:::i;2323:38::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;17262:333;;;;;;:::i;:::-;;:::i;2714:48::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;1447:21;;;;;;;;;1319:28;;;;;;;;;3289:48;;;;;;:::i;:::-;;;;;;;;;;;;;;;;3163:52;;;;;;:::i;:::-;;;;;;;;;;;;;;;;1980:46;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;4136:25:26;;;4124:2;4109:18;1980:46:18;3990:177:26;20003:426:18;;;;;;:::i;:::-;;:::i;2470:63::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;9080:898;;;;;;:::i;:::-;;:::i;1513:27::-;;;;;;;;;20707:188;;;;;;:::i;:::-;;:::i;1824:101:0:-;;;:::i;4509:508:18:-;;;;;;:::i;:::-;;:::i;21162:230::-;;;;;;:::i;:::-;;:::i;1734:212:1:-;;;:::i;10205:564:18:-;;;;;;:::i;:::-;;:::i;5021:633:14:-;;;:::i;:::-;;;;;;;;;;;;;:::i;1201:85:0:-;1273:6;;;;1201:85;;1585:34:18;;;;;;:::i;:::-;;:::i;2823:39::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;5445:1856;;;;;;:::i;:::-;;:::i;7658:1068::-;;;;;;:::i;:::-;;:::i;16738:228::-;;;;;;:::i;:::-;;:::i;16034:539::-;;;;;;:::i;:::-;;:::i;2071:59::-;;;;;;:::i;:::-;;;;;;;;;;;;;;2193:49;;;;;;:::i;:::-;;;;;;;;;;;;;;;;14001:562;;;;;;:::i;:::-;;:::i;3650:73::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11606:25:26;;;11662:2;11647:18;;11640:34;;;;11690:18;;;11683:34;11594:2;11579:18;3650:73:18;11404:319:26;19018:661:18;;;;;;:::i;:::-;;:::i;13015:387::-;;;;;;:::i;:::-;;:::i;14922:805::-;;;;;;:::i;:::-;;:::i;2602:65::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;847:99:1;926:13;;;;847:99;;1139:178;;;;;;:::i;:::-;;:::i;3512:56:18:-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;3386:43;;;;;;:::i;:::-;;;;;;;;;;;;;;;;21656:245;1094:13:0;:11;:13::i;:::-;21751:28:18::1;::::0;::::1;21743:62;;;;;;;;;;;;;;;;;21816:13;:30:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;21862:32:::1;::::0;1384:74:26;;;21862:32:18::1;::::0;1372:2:26;1357:18;21862:32:18::1;;;;;;;;21656:245:::0;:::o;18023:468::-;1094:13:0;:11;:13::i;:::-;18133:19:18::1;::::0;::::1;18125:53;;;;;;;;;;;;;;;;;18196:17;::::0;::::1;;::::0;;;:7:::1;:17;::::0;;;;;::::1;;::::0;:42:::1;;-1:-1:-1::0;18217:21:18::1;::::0;::::1;;::::0;;;:11:::1;:21;::::0;;;;;::::1;;18196:42;18188:86;;;;;;;;;;;;;;;;;18353:72;::::0;;::::1;::::0;::::1;::::0;;;;;-1:-1:-1;18353:72:18::1;::::0;::::1;::::0;;;;18399:24:::1;18417:6;18399:15;:24;:::i;:::-;18353:72:::0;;18320:23:::1;::::0;;::::1;;::::0;;;:13:::1;:23;::::0;;;;;;;:30;;::::1;::::0;;;;;;;;;;:105;;;;;;::::1;::::0;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;::::1;::::0;;;;18441:43;4136:25:26;;;18320:30:18;;:23;;18441:43:::1;::::0;4109:18:26;18441:43:18::1;;;;;;;18023:468:::0;;;:::o;11149:1627::-;27622:10;27610:23;;;;:11;:23;;;;;;;;27602:60;;;;;;;;;;;;;;;;;1158:21:23::1;:19;:21::i;:::-;11300:47:18::2;11328:7;11337:9;;11300:27;:47::i;:::-;11358:57;11375:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;11358:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;::::2;;::::0;;::::2;::::0;::::2;::::0;::::2;:::i;:::-;;;;;;;;;;;;-1:-1:-1::0;11400:14:18::2;::::0;-1:-1:-1;;11400:14:18;;;;-1:-1:-1;;11400:14:18::2;::::0;::::2;;:::i;:::-;11358:16;:57::i;:::-;11468:10;11426:17;11446:33:::0;;;:21:::2;:33;::::0;;;;;::::2;;::::0;11490:182:::2;11510:24;;::::0;::::2;:7:::0;:24:::2;:::i;:::-;:31;;11506:1;:35;11490:182;;;11627:24;;::::0;::::2;:7:::0;:24:::2;:::i;:::-;11652:1;11627:27;;;;;;;:::i;:::-;;;;;;:34;;;11562:10;:26;11573:7;:14;;;;;;;;;;:::i;:::-;11562:26;;::::0;;::::2;::::0;::::2;::::0;;;;;;-1:-1:-1;11562:26:18;;;;11589:24:::2;;::::0;::::2;:7:::0;:24:::2;:::i;:::-;11614:1;11589:27;;;;;;;:::i;:::-;:33;::::0;::::2;:27;::::0;;::::2;;:33:::0;;::::2;::::0;-1:-1:-1;11589:33:18::2;:::i;:::-;11562:61;;;;;;;;;;;;;;;;:99;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;11543:3:18::2;;11490:182;;;;11687:9;11682:590;11702:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;:30;;11698:1;:34;11682:590;;;11753:13;11769:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;11793:1;11769:26;;;;;;;:::i;:::-;:32;::::0;::::2;:26;::::0;;::::2;;:32:::0;;::::2;::::0;-1:-1:-1;11769:32:18::2;:::i;:::-;11753:48:::0;-1:-1:-1;11815:13:18::2;11831:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;11855:1;11831:26;;;;;;;:::i;:::-;;;;;;:33;;;11815:49;;11892:1;11883:6;:10;11879:383;;;11913:77;11944:10;11964:4;11971:18;:6;:16;:18::i;:::-;11913:30;::::0;::::2;::::0;:77;;:30:::2;:77::i;:::-;11879:383;;;12107:61;12127:10;12139:5:::0;12146:21:::2;12147:7;12148:6:::0;12147:7:::2;:::i;:::-;12146:19;:21::i;:::-;12107:19;:61::i;:::-;12187:60;12214:9:::0;12225:21:::2;12226:7;12227:6:::0;12226:7:::2;:::i;12225:21::-;12187:26;::::0;::::2;::::0;:60;:26:::2;:60::i;:::-;-1:-1:-1::0;;11734:3:18::2;;11682:590;;;;12287:9;12282:383;12302:24;;::::0;::::2;:7:::0;:24:::2;:::i;:::-;:31;;12298:1;:35;12282:383;;;12354:13;12370:24;;::::0;::::2;:7:::0;:24:::2;:::i;:::-;12395:1;12370:27;;;;;;;:::i;:::-;:33;::::0;::::2;:27;::::0;;::::2;;:33:::0;;::::2;::::0;-1:-1:-1;12370:33:18::2;:::i;:::-;12354:49:::0;-1:-1:-1;12492:74:18::2;12512:10;12354:49:::0;12531:24:::2;;::::0;::::2;:7:::0;:24:::2;:::i;:::-;12556:1;12531:27;;;;;;;:::i;:::-;;;;;;:34;;;12492:19;:74::i;:::-;12581:73;12608:9:::0;12619:24:::2;;::::0;::::2;:7:::0;:24:::2;:::i;:::-;12644:1;12619:27;;;;;;;:::i;:::-;;;;;;:34;;;12588:5;12581:26;;;;:73;;;;;:::i;:::-;-1:-1:-1::0;12335:3:18::2;;12282:383;;;-1:-1:-1::0;12680:89:18::2;12691:14;::::0;;;::::2;::::0;::::2;;:::i;:::-;12707:10;12719:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;12744:24;;::::0;::::2;:7:::0;:24:::2;:::i;:::-;12680:89;;;;;;;;;;;:::i;:::-;;;;;;;;11290:1486;1200:20:23::1;:18;:20::i;:::-;11149:1627:18::0;;;:::o;17262:333::-;1094:13:0;:11;:13::i;:::-;17367:9:18::1;17362:227;17378:17:::0;;::::1;17362:227;;;17470:1;17432:8;17470:1:::0;17441:6;;17448:1;17441:9;;::::1;;;;;:::i;:::-;:15;::::0;::::1;:9;::::0;;::::1;;:15:::0;;::::1;::::0;-1:-1:-1;17441:15:18::1;:::i;:::-;17432:25;::::0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;17432:25:18;;::::1;17424:48:::0;17416:88:::1;;;;;;;;;;;;;;;;;17519:59;17555:4;17561:6;;17568:1;17561:9;;;;;;;:::i;:::-;;;;;;:16;;;17526:6;;17533:1;17526:9;;;;;;;:::i;:::-;:15;::::0;::::1;:9;::::0;;::::1;;:15:::0;;::::1;::::0;-1:-1:-1;17526:15:18::1;:::i;:::-;17519:35;;::::0;:59;:35:::1;:59::i;:::-;17397:3;;17362:227;;;;17262:333:::0;;;:::o;20003:426::-;1094:13:0;:11;:13::i;:::-;20115:24:18::1;::::0;::::1;::::0;;::::1;::::0;:51:::1;;-1:-1:-1::0;20143:23:18::1;::::0;::::1;::::0;::::1;20115:51;20107:85;;;;;;;;;;;;;;;;;20224:9;20210:23;;:10;:23;;::::0;20202:73:::1;;;;;;;;;;;;;;;;;20286:23;::::0;;::::1;;::::0;;;:11:::1;:23;::::0;;;;;;;:32;;;::::1;::::0;::::1;;::::0;;::::1;::::0;;;20328:21:::1;:33:::0;;;;;;:45;;;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;20389:33;;18561:74:26;;;18651:18;;18644:50;20389:33:18::1;::::0;18534:18:26;20389:33:18::1;;;;;;;;20003:426:::0;;;:::o;9080:898::-;9225:14;;;;;;;;:::i;:::-;27262:15;;;;;;;:7;:15;;;;;;;;:39;;;;-1:-1:-1;27281:20:18;;;27291:10;27281:20;27262:39;27261:180;;;-1:-1:-1;27384:15:18;;;;;;;:7;:15;;;;;;;;:56;;;;-1:-1:-1;27417:23:18;;;;;;;;:15;:23;;;;;;;27403:10;:37;27384:56;27240:302;;;;;;;;;;;;;;;;;1158:21:23::1;:19;:21::i;:::-;9264:52:18::2;9297:7;9306:9;;9264:32;:52::i;:::-;9332:9;9327:152;9347:14;;::::0;::::2;:7:::0;:14:::2;:::i;:::-;:21;;9343:1;:25;9327:152;;;9444:14;;::::0;::::2;:7:::0;:14:::2;:::i;:::-;9459:1;9444:17;;;;;;;:::i;:::-;;;;;;:24;;;9389:10;:26;9400:7;:14;;;;;;;;;;:::i;:::-;9389:26;;::::0;;::::2;::::0;::::2;::::0;;;;;;-1:-1:-1;9389:26:18;;;;9416:14:::2;;::::0;::::2;:7:::0;:14:::2;:::i;:::-;9431:1;9416:17;;;;;;;:::i;:::-;:23;::::0;::::2;:17;::::0;;::::2;;:23:::0;;::::2;::::0;-1:-1:-1;9416:23:18::2;:::i;:::-;9389:51;;;;;;;;;;;;;;;;:79;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;9370:3:18::2;;9327:152;;;-1:-1:-1::0;9489:17:18::2;9509;9489::::0;9527:14:::2;::::0;;;::::2;::::0;::::2;;:::i;:::-;9509:33;::::0;;::::2;::::0;;::::2;::::0;::::2;::::0;;;;;;-1:-1:-1;9509:33:18;;;;;;::::2;::::0;-1:-1:-1;9552:355:18::2;9572:14;;::::0;::::2;:7:::0;:14:::2;:::i;:::-;:21;;9568:1;:25;9552:355;;;9614:13;9630:14;;::::0;::::2;:7:::0;:14:::2;:::i;:::-;9645:1;9630:17;;;;;;;:::i;:::-;:23;::::0;::::2;:17;::::0;;::::2;;:23:::0;;::::2;::::0;-1:-1:-1;9630:23:18::2;:::i;:::-;9614:39:::0;-1:-1:-1;9667:14:18::2;9684;;::::0;::::2;:7:::0;:14:::2;:::i;:::-;9699:1;9684:17;;;;;;;:::i;:::-;;;;;;:24;;;9667:41;;9786:50;9806:7;:14;;;;;;;;;;:::i;:::-;9822:5;9829:6;9786:19;:50::i;:::-;9851:45;:26;::::0;::::2;9878:9:::0;9889:6;9851:26:::2;:45::i;:::-;-1:-1:-1::0;;9595:3:18::2;;9552:355;;;-1:-1:-1::0;9922:49:18::2;9940:14;::::0;;;::::2;::::0;::::2;;:::i;:::-;9956;;::::0;::::2;:7:::0;:14:::2;:::i;:::-;9922:49;;;;;;;;:::i;:::-;;;;;;;;9254:724;1200:20:23::1;:18;:20::i;20707:188:18:-:0;1094:13:0;:11;:13::i;:::-;20780:21:18::1;::::0;::::1;20772:55;;;;;;;;;;;;;;;;;20838:6;:16:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;20870:18:::1;::::0;1384:74:26;;;20870:18:18::1;::::0;1372:2:26;1357:18;20870::18::1;1238:226:26::0;1824:101:0;1094:13;:11;:13::i;:::-;1888:30:::1;1915:1;1888:18;:30::i;:::-;1824:101::o:0;4509:508:18:-;4702:10;4690:23;;;;:11;:23;;;;;;;;4682:60;;;;;;;;;;;;;;;;;4773:40;4781:17;;;4811:1;4781:17;;;:8;:17;;;;;;;4773:40;;;;:85;;-1:-1:-1;4817:41:18;4825:18;;;4856:1;4825:18;;;:8;:18;;;;;;;4817:41;;4773:85;4752:159;;;;;;;;;;;;;;;;;4922:17;;;;;;;;:9;:17;;;;;;;;:26;;;;;;;;;;;:38;;4952:8;;4922:17;:38;;4952:8;;4922:38;:::i;:::-;;;;-1:-1:-1;;4970:17:18;;;;;;;;:9;:17;;;;;;;;:27;;;;;;;;;;;:40;;5001:9;;4970:17;:40;;5001:9;;4970:40;:::i;:::-;;;;-1:-1:-1;;;;;;;4509:508:18:o;21162:230::-;1094:13:0;:11;:13::i;:::-;21247:27:18::1;::::0;::::1;21239:61;;;;;;;;;;;;;;;;;21311:12;:28:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;21355:30:::1;::::0;1384:74:26;;;21355:30:18::1;::::0;1372:2:26;1357:18;21355:30:18::1;1238:226:26::0;1734:212:1;926:13;;734:10:9;;1833:24:1;926:13;1833:24;;1825:78;;;;;;;19837:2:26;1825:78:1;;;19819:21:26;19876:2;19856:18;;;19849:30;19915:34;19895:18;;;19888:62;19986:11;19966:18;;;19959:39;20015:19;;1825:78:1;;;;;;;;;1913:26;1932:6;1913:18;:26::i;:::-;1776:170;1734:212::o;10205:564:18:-;27262:15;;;;;;;:7;:15;;;;;;10330:6;;27262:15;;:39;;;;-1:-1:-1;27281:20:18;;;27291:10;27281:20;27262:39;27261:180;;;-1:-1:-1;27384:15:18;;;;;;;:7;:15;;;;;;;;:56;;;;-1:-1:-1;27417:23:18;;;;;;;;:15;:23;;;;;;;27403:10;:37;27384:56;27240:302;;;;;;;;;;;;;;;;;1158:21:23::1;:19;:21::i;:::-;10361:41:18::2;10378:15;;10361:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;::::2;;::::0;;::::2;::::0;::::2;::::0;::::2;:::i;:::-;;;;;;;;;;;;;;;;;10395:6;10361:16;:41::i;:::-;10502:9;10497:219;10513:26:::0;;::::2;10497:219;;;10560:145;10627:10;10647:4;10654:37;:15;;10670:1;10654:18;;;;;;;:::i;:::-;;;;;;:25;;;:35;:37::i;:::-;10567:15;;10583:1;10567:18;;;;;;;:::i;:::-;:24;::::0;::::2;:18;::::0;;::::2;;:24:::0;;::::2;::::0;-1:-1:-1;10567:24:18::2;:::i;:::-;10560:49;;::::0;:145;;:49:::2;:145::i;:::-;10541:3;;10497:219;;;;10731:31;10738:6;10746:15;;10731:31;;;;;;;;:::i;:::-;;;;;;;;1200:20:23::1;:18;:20::i;5021:633:14:-:0;5136:13;5163:18;;5136:13;;;5163:18;5427:41;:5;5136:13;5427:26;:41::i;:::-;5482:47;:8;5512:16;5482:29;:47::i;:::-;5621:16;;;5605:1;5621:16;;;;;;;;;5376:271;;;;-1:-1:-1;5376:271:14;;-1:-1:-1;5543:13:14;;-1:-1:-1;5578:4:14;;-1:-1:-1;5605:1:14;-1:-1:-1;5621:16:14;-1:-1:-1;5376:271:14;-1:-1:-1;5021:633:14:o;1585:34:18:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1585:34:18;:::o;5445:1856::-;5549:12;;;;5535:10;:26;5527:65;;;;;;;;;;;;;;;;;5608:9;5603:1651;5619:22;;;5603:1651;;;5662:14;5679:11;;5691:1;5679:14;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:21;;;;;;;:::i;:::-;5737:32;;;;;;;:24;:32;;;;;;5662:38;;-1:-1:-1;219:7:21;;5719:50:18;;:15;:50;:::i;:::-;:74;5715:153;;;5820:33;;;;;;;;;;;;;;5715:153;5887:9;5882:1297;5902:11;;5914:1;5902:14;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:25;;;;;;;:::i;:::-;:32;;5898:1;:36;5882:1297;;;5959:13;5975:11;;5987:1;5975:14;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:25;;;;;;;:::i;:::-;6001:1;5975:28;;;;;;;:::i;:::-;:34;;;:28;;;;;:34;;;;-1:-1:-1;5975:34:18;:::i;:::-;5959:50;;6027:18;6048:11;;6060:1;6048:14;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:25;;;;;;;:::i;:::-;6074:1;6048:28;;;;;;;:::i;:::-;;;;;;:39;;;6027:60;;6105:18;6126:11;;6138:1;6126:14;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:25;;;;;;;:::i;:::-;6152:1;6126:28;;;;;;;:::i;:::-;6254:38;6262:15;;;6290:1;6262:15;;;:8;:15;;6126:39;6262:15;;;;;6126:28;;;;;;;;:39;;;;;;-1:-1:-1;6262:15:18;;;;-1:-1:-1;6246:78:18;;;;;;;;;;;;;;;;;6347:14;;6343:546;;6414:15;;;;6385:26;6414:15;;;:8;:15;;;;;;;;;:30;;;;;;;6385:26;;6414:15;;:28;;:30;;;;;:15;;:30;;;;;;:15;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6536:15;;;;;;;;:8;:15;;;;;;;;:43;;;;;;;;4136:25:26;;;6385:59:18;;-1:-1:-1;6536:15:18;;:31;;4109:18:26;;6536:43:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6750:18;6771:3;6750:24;;;;:::i;:::-;6685:15;;;;;;;;:8;:15;;;;;;;;;;:30;;;;;;;6718:18;;6685:15;;;;;:28;;:30;;;;;:15;;:30;;;;;:15;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:51;;;;:::i;:::-;6684:62;;6740:6;6684:62;:::i;:::-;6683:91;6679:192;;;6809:39;;;;;;;;;;;;;;6679:192;6363:526;6343:546;6911:14;;6907:93;;6949:18;;;;;;;:11;:18;;;;;:32;;6971:10;;6949:18;:32;;6971:10;;6949:32;:::i;:::-;;;;-1:-1:-1;;6907:93:18;7128:36;7129:23;7142:10;7129;:23;:::i;:::-;7128:34;:36::i;:::-;7100:17;;;;;;;;:9;:17;;;;;;;;:24;;;;;;;;;;;:64;;:24;;:17;:64;;;;;:::i;:::-;;;;-1:-1:-1;;5936:3:18;;;;;-1:-1:-1;5882:1297:18;;-1:-1:-1;;5882:1297:18;;-1:-1:-1;7193:32:18;;;;;;:24;:32;;;;;7228:15;7193:50;;5643:3;;5603:1651;;;;7269:25;7282:11;;7269:25;;;;;;;:::i;:::-;;;;;;;;5445:1856;;:::o;7658:1068::-;7787:14;;;;;;;;:::i;:::-;27262:15;;;;;;;:7;:15;;;;;;;;:39;;;;-1:-1:-1;27281:20:18;;;27291:10;27281:20;27262:39;27261:180;;;-1:-1:-1;27384:15:18;;;;;;;:7;:15;;;;;;;;:56;;;;-1:-1:-1;27417:23:18;;;;;;;;:15;:23;;;;;;;27403:10;:37;27384:56;27240:302;;;;;;;;;;;;;;;;;1158:21:23::1;:19;:21::i;:::-;7826:42:18::2;7849:7;7858:9;;7826:22;:42::i;:::-;7879:57;7896:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;7879:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;::::2;;::::0;;::::2;::::0;::::2;::::0;::::2;:::i;:::-;;;;;;;;;;;;-1:-1:-1::0;7921:14:18::2;::::0;-1:-1:-1;;7921:14:18;;;;-1:-1:-1;;7921:14:18::2;::::0;::::2;;:::i;7879:57::-;7947:17;7967;7947::::0;7985:14:::2;::::0;;;::::2;::::0;::::2;;:::i;:::-;7967:33;::::0;;::::2;::::0;;::::2;::::0;::::2;::::0;;;;;;-1:-1:-1;7967:33:18;;;;;;::::2;::::0;-1:-1:-1;8046:610:18::2;8066:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;:30;;8062:1;:34;8046:610;;;8117:13;8133:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;8157:1;8133:26;;;;;;;:::i;:::-;:32;::::0;::::2;:26;::::0;;::::2;;:32:::0;;::::2;::::0;-1:-1:-1;8133:32:18::2;:::i;:::-;8117:48:::0;-1:-1:-1;8179:13:18::2;8195:23;;::::0;::::2;:7:::0;:23:::2;:::i;:::-;8219:1;8195:26;;;;;;;:::i;:::-;;;;;;:33;;;8179:49;;8256:1;8247:6;:10;8243:403;;;8277:77;8308:10;8328:4;8335:18;:6;:16;:18::i;8277:77::-;8243:403;;;8487:65;8507:14;::::0;;;::::2;::::0;::::2;;:::i;:::-;8523:5:::0;8530:21:::2;8531:7;8532:6:::0;8531:7:::2;:::i;8487:65::-;8571:60;8598:9:::0;8609:21:::2;8610:7;8611:6:::0;8610:7:::2;:::i;8571:60::-;-1:-1:-1::0;;8098:3:18::2;;8046:610;;;-1:-1:-1::0;8671:48:18::2;8679:14;::::0;;;::::2;::::0;::::2;;:::i;16738:228::-:0;1094:13:0;:11;:13::i;:::-;16827:18:18::1;::::0;::::1;16819:52;;;;;;;;;;;;;;;;;16882:17;::::0;::::1;;::::0;;;:11:::1;:17;::::0;;;;;;;;:28;;;::::1;::::0;::::1;;::::0;;::::1;::::0;;;16926:33;;1609:41:26;;;16926:33:18::1;::::0;1582:18:26;16926:33:18::1;;;;;;;16738:228:::0;;:::o;16034:539::-;16141:23;;;16133:57;;;;;;;;;;;;;;;;;16222:13;;;;16208:10;:27;16200:67;;;;;;;;;;;;;;;;;16295:23;;;;;;;:11;:23;;;;;;16285:33;;;16277:79;;;;;;;;;;;;;;;;;16367:23;;;;;;;:11;:23;;;;;:33;;16394:6;;16367:23;:33;;16394:6;;16367:33;:::i;:::-;;;;-1:-1:-1;16453:50:18;;-1:-1:-1;16453:31:18;;;16485:9;16496:6;16453:31;:50::i;:::-;16519:47;;;25076:42:26;25064:55;;;25046:74;;25156:55;;25151:2;25136:18;;25129:83;25228:18;;;25221:34;;;16519:47:18;;25034:2:26;25019:18;16519:47:18;24844:417:26;14001:562:18;1158:21:23;:19;:21::i;:::-;14115:15:18::1;::::0;::::1;;::::0;;;:7:::1;:15;::::0;;;;;::::1;;14107:48;;;;;;;;;;;;;;;;;14171:9;14166:344;14182:17:::0;;::::1;14166:344;;;14220:13;14236:6;;14243:1;14236:9;;;;;;;:::i;:::-;:15;::::0;::::1;:9;::::0;;::::1;;:15:::0;;::::1;::::0;-1:-1:-1;14236:15:18::1;:::i;:::-;14273:23;::::0;::::1;;::::0;;;:16:::1;:23;::::0;;;;;14220:31;;-1:-1:-1;14273:23:18::1;;14265:57;;;;;;;;;;;;;;;;;14337:14;14354:6;;14361:1;14354:9;;;;;;;:::i;:::-;;;;;;:16;;;14337:33;;14413:6;14384:10;:18;14395:6;14384:18;;;;;;;;;;;;;;;:25;14403:5;14384:25;;;;;;;;;;;;;;;;:35;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;14434:65:18::1;::::0;-1:-1:-1;14434:30:18::1;::::0;::::1;14465:10;14485:4;14492:6:::0;14434:30:::1;:65::i;:::-;-1:-1:-1::0;;14201:3:18::1;;14166:344;;;;14525:31;14541:6;14549;;14525:31;;;;;;;;:::i;:::-;;;;;;;;1200:20:23::0;:18;:20::i;19018:661:18:-;1094:13:0;:11;:13::i;:::-;19211:20:18::1;::::0;::::1;::::0;;::::1;::::0;:45:::1;;-1:-1:-1::0;19235:21:18::1;::::0;::::1;::::0;::::1;19211:45;:72;;;;-1:-1:-1::0;19260:23:18::1;::::0;::::1;::::0;::::1;19211:72;19203:106;;;;;;;;;;;;;;;;;19340:6;19327:19;;:9;:19;;;;:43;;;;;19363:7;19350:20;;:9;:20;;;;19327:43;19319:89;;;;;;;;;;;;;;;;;19419:15;::::0;;::::1;;::::0;;;:7:::1;:15;::::0;;;;;;;:26;;;::::1;;::::0;;;::::1;::::0;::::1;::::0;;;19455:15:::1;:23:::0;;;;;:33;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;19498:17:::1;:25:::0;;;;;:37;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;19546:16:::1;:24:::0;;;;;;:44;;;::::1;;::::0;::::1;::::0;::::1;::::0;;19606:66;;25485:41:26;;;25542:18;;;25535:50;;;;25601:18;;25594:83;;;;25708:2;25693:18;;25686:83;;;;19419:15:18;19606:66:::1;::::0;25472:3:26;25457:19;19606:66:18::1;;;;;;;19018:661:::0;;;;;:::o;13015:387::-;13100:10;13083:28;;;;:16;:28;;;;;;;;13075:62;;;;;;;;;;;;;;;;;13179:10;13165:41;;;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;13155:6;:53;;13147:98;;;;;;;;;;;;;;;;;13324:71;13384:2;13388:6;13345:10;13331:36;;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;13324:59;;;:71;:59;:71::i;:::-;13015:387;;:::o;14922:805::-;1094:13:0;:11;:13::i;:::-;15051:34:18::1;::::0;::::1;;::::0;;;:16:::1;:34;::::0;;;;;::::1;;15050:35;15042:76;;;;;;;;;;;;;;;;;15129:18;15158:7;:18;;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;15250:43;15258:20:::0;;::::1;15291:1;15258:20:::0;;;:8:::1;:20;::::0;;;;;15129:50;;-1:-1:-1;15258:20:18::1;15250:43:::0;:85;::::1;;;;15330:4;15297:38;;:7;:19;;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:38;;;15250:85;15229:155;;;;;;;;;;;;;;;;;15459:33;::::0;::::1;15451:70;;;;;;;;;;;;;;;;;15558:20;::::0;;::::1;;::::0;;;:8:::1;:20;::::0;;;;;;;:30;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;15598:34;;;:16:::1;:34:::0;;;;;:41;;;::::1;-1:-1:-1::0;15598:41:18;;::::1;::::0;;;15649:11:::1;:25:::0;;;;::::1;::::0;;;;;;;;::::1;::::0;;;;::::1;::::0;::::1;::::0;;;15690:30;;1384:74:26;;;15690:30:18::1;::::0;1357:18:26;15690:30:18::1;1238:226:26::0;1139:178:1;1094:13:0;:11;:13::i;:::-;1228::1::1;:24:::0;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;1292:7:::1;1273:6:0::0;;;;;1201:85;1292:7:1::1;1267:43;;;;;;;;;;;;1139:178:::0;:::o;1359:130:0:-;1273:6;;1422:23;1273:6;734:10:9;1422:23:0;1414:68;;;;;;;26532:2:26;1414:68:0;;;26514:21:26;;;26551:18;;;26544:30;26610:34;26590:18;;;26583:62;26662:18;;1414:68:0;26330:356:26;1233:334:23;580:66;427:11:25;1356:93:23;;;1408:30;;;;;;;;;;;;;;1356:93;1523:37;580:66;1555:4;1523:31;:37::i;25958:881:18:-;26140:15;26120:7;:16;;;:35;;26112:72;;;;;;;;;;;;;;;;;26195:27;26208:13;;26195:12;:27::i;:::-;26233:15;1063:151:21;26354:13:18;;26385:16;;;;26419:14;;;;;;;;:::i;:::-;26472:23;;;;:7;:23;:::i;:::-;26461:35;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;26451:46;;26461:35;26451:46;;;;26536:24;;;;:7;:24;:::i;:::-;26525:36;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;26515:47;;26525:36;26515:47;;;;26602:10;26580:33;;;;:21;:33;;;;;;26274:353;;;27772:25:26;;;;27813:18;;;27806:34;;;;27856:18;;;27849:34;;;;26580:33:18;27919:55:26;;;27899:18;;;27892:83;27991:19;;;27984:35;28035:19;;;28028:35;;;;26580:33:18;;28079:19:26;;;28072:84;27744:19;;26274:353:18;;;;;;;;;;;;;26251:386;;;;;;26233:404;;26647:14;26664:25;26681:7;26664:16;:25::i;:::-;26647:42;;26699:23;26725:32;26739:6;26747:9;;26725:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26725:13:18;;-1:-1:-1;;;26725:32:18:i;:::-;26795:6;;26699:58;;-1:-1:-1;26795:6:18;26776:25;;;26795:6;;26776:25;26768:64;;;;;;;;;;;;;;;;;26102:737;;;25958:881;;;:::o;22272:912::-;22411:22;;22387:21;22443:735;22463:13;22459:1;:17;22443:735;;;22497:13;22513:15;22529:1;22513:18;;;;;;;;:::i;:::-;;;;;;;:24;;;22497:40;;22551:13;22567:15;22583:1;22567:18;;;;;;;;:::i;:::-;;;;;;;;;;;;:25;;;22627:17;;;;22606:18;22627:17;;;:9;:17;;;;;;:24;;;;;;;;;;;;22567:25;;-1:-1:-1;22627:33:18;;22567:25;;22627:33;:::i;:::-;22747:38;22755:15;;;22783:1;22755:15;;;:8;:15;;;;;;22606:54;;-1:-1:-1;22755:15:18;22739:75;;;;;;;;;;;;;;;;;22950:17;;;;22987:1;22950:17;;;:9;:17;;;;;;;;:24;;;;;;;;;;;;:33;;22977:6;;22950:33;:::i;:::-;:38;;:84;;;-1:-1:-1;22992:17:18;;;;23033:1;22992:17;;;:9;:17;;;;;;;;:24;;;;;;;;;;;;:38;;23019:11;;22992:38;:::i;:::-;:42;22950:84;22946:169;;;23061:39;;;;;;;;;;;;;;22946:169;23129:17;;;;;;;;:9;:17;;;;;;;;:24;;;;;;;;;;;;;:38;;;;-1:-1:-1;22478:3:18;;22443:735;;17187:168:16;17243:7;17279:1;17270:5;:10;;17262:55;;;;;;;28666:2:26;17262:55:16;;;28648:21:26;;;28685:18;;;28678:30;28744:34;28724:18;;;28717:62;28796:18;;17262:55:16;28464:356:26;17262:55:16;-1:-1:-1;17342:5:16;17187:168::o;1723:203:24:-;1850:68;;25076:42:26;25064:55;;;1850:68:24;;;25046:74:26;25156:55;;25136:18;;;25129:83;25228:18;;;25221:34;;;1823:96:24;;1843:5;;1873:27;;25019:18:26;;1850:68:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1823:19;:96::i;23511:797:18:-;23633:21;;;;23606:24;23633:21;;;:13;:21;;;;;;;;:28;;;;;;;;;;;;23692:24;23710:6;23692:15;:24;:::i;:::-;23671:45;;23726:15;23849:3;:11;;;23836:10;:24;23832:129;;;-1:-1:-1;23886:6:18;23832:129;;;23944:6;23933:3;:8;;;:17;;;;:::i;:::-;23923:27;;23832:129;24072:9;;:14;;:38;;-1:-1:-1;24101:9:18;;24090:20;;;24072:38;24064:83;;;;;;;;;;;;;;;;;24233:68;;;;;;;;24254:9;;24233:68;;;;;;;;;;;;;;;24202:21;;;;-1:-1:-1;24202:21:18;;;:13;:21;;;;;:28;;;;;;;;;;;;;;:99;;;;;;;;;;-1:-1:-1;24202:99:18;;;;;;;23511:797::o;1309:175:24:-;1418:58;;29029:42:26;29017:55;;1418:58:24;;;28999:74:26;29089:18;;;29082:34;;;1391:86:24;;1411:5;;1441:23;;28972:18:26;;1418:58:24;28825:297:26;1573:93:23;1621:38;580:66;1653:5;1621:31;:38::i;2186:620:24:-;2736:62;;29029:42:26;29017:55;;2736:62:24;;;28999:74:26;29089:18;;;29082:34;;;2709:90:24;;2729:5;;2759:22;;28972:18:26;;2736:62:24;28825:297:26;25129:823:18;25321:15;25301:7;:16;;;:35;;25293:72;;;;;;;;;;;;;;;;;25376:27;25389:13;;25376:12;:27::i;:::-;25414:15;829:116:21;25541:13:18;;25572:16;;;;25606:14;;;;;;;;:::i;:::-;25659;;;;:7;:14;:::i;:::-;25648:26;;;;;;;;;:::i;:::-;;;;;;;;;;;;;25638:37;;;;;;25693:17;:33;25711:7;:14;;;;;;;;;;:::i;:::-;25693:33;;;;;;;;;;;;;;;;;;-1:-1:-1;25693:33:18;;25455:285;;;;;29414:25:26;;;;29455:18;;;29448:34;;;;29498:18;;;29491:34;;;;29561:55;;;29541:18;;;29534:83;29633:19;;;29626:35;25693:33:18;;29677:19:26;;;29670:84;29386:19;;25455:285:18;29127:633:26;1501:153:1;1590:13;1583:20;;;;;;1613:34;1638:8;1613:24;:34::i;3367:268:10:-;3461:13;1371:66;3490:47;;3486:143;;3560:15;3569:5;3560:8;:15::i;:::-;3553:22;;;;3486:143;3613:5;3606:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3486:143;3367:268;;;;:::o;34781:297:16:-;34837:6;34979:16;34962:5;:34;;34954:87;;;;;;;30409:2:26;34954:87:16;;;30391:21:26;30448:2;30428:18;;;30421:30;30487:34;30467:18;;;30460:62;30558:10;30538:18;;;30531:38;30586:19;;34954:87:16;30207:404:26;24314:809:18;24490:15;24470:7;:16;;;:35;;24462:72;;;;;;;;;;;;;;;;;24545:27;24558:13;;24545:12;:27::i;:::-;24583:15;570:125:21;24703:13:18;;24734:16;;;;24768:14;;;;;;;;:::i;1926:32:23:-;1919:39;;1845:120;:::o;658:119:25:-;755:5;749:4;742:19;658:119;;:::o;22126:140:18:-;22191:13;;;;:6;:13;;;;;;;;22190:14;22182:46;;;;;;;;;;;;;;;;;22239:13;;;;:6;:13;;;;;:20;;;;22255:4;22239:20;;;22126:140::o;4768:165:14:-;4845:7;4871:55;4893:20;:18;:20::i;:::-;4915:10;8536:4:13;8530:11;8566:10;8554:23;;8606:4;8597:14;;8590:39;;;;8658:4;8649:14;;8642:34;8712:4;8697:20;;;8336:397;3661:227;3739:7;3759:17;3778:18;3800:27;3811:4;3817:9;3800:10;:27::i;:::-;3758:69;;;;3837:18;3849:5;3837:11;:18::i;:::-;-1:-1:-1;3872:9:13;3661:227;-1:-1:-1;;;3661:227:13:o;4258:642:24:-;4677:23;4703:69;4731:4;4703:69;;;;;;;;;;;;;;;;;4711:5;4703:27;;;;:69;;;;;:::i;:::-;4677:95;;4790:10;:17;4811:1;4790:22;:56;;;;4827:10;4816:30;;;;;;;;;;;;:::i;:::-;4782:111;;;;;;;31068:2:26;4782:111:24;;;31050:21:26;31107:2;31087:18;;;31080:30;31146:34;31126:18;;;31119:62;31217:12;31197:18;;;31190:40;31247:19;;4782:111:24;30866:406:26;2426:187:0;2518:6;;;;2534:17;;;;;;;;;;;2566:40;;2518:6;;;2534:17;2518:6;;2566:40;;2499:16;;2566:40;2489:124;2426:187;:::o;2059:405:10:-;2118:13;2143:11;2157:16;2168:4;2157:10;:16::i;:::-;2281:14;;;2292:2;2281:14;;;;;;;;;2143:30;;-1:-1:-1;2261:17:10;;2281:14;;;;;;;;;-1:-1:-1;;;2371:16:10;;;-1:-1:-1;2416:4:10;2407:14;;2400:28;;;;-1:-1:-1;2371:16:10;2059:405::o;3695:262:14:-;3748:7;3779:4;3771:28;3788:11;3771:28;;:63;;;;;3820:14;3803:13;:31;3771:63;3767:184;;;-1:-1:-1;3857:22:14;;3695:262::o;3767:184::-;3917:23;4054:81;;;1929:95;4054:81;;;32841:25:26;4077:11:14;32882:18:26;;;32875:34;;;;4090:14:14;32925:18:26;;;32918:34;4106:13:14;32968:18:26;;;32961:34;4129:4:14;33011:19:26;;;33004:84;4018:7:14;;32813:19:26;;4054:81:14;;;;;;;;;;;;4044:92;;;;;;4037:99;;3963:180;;2145:730:13;2226:7;2235:12;2263:9;:16;2283:2;2263:22;2259:610;;2599:4;2584:20;;2578:27;2648:4;2633:20;;2627:27;2705:4;2690:20;;2684:27;2301:9;2676:36;2746:25;2757:4;2676:36;2578:27;2627;2746:10;:25::i;:::-;2739:32;;;;;;;;;2259:610;-1:-1:-1;2818:1:13;;-1:-1:-1;2822:35:13;2259:610;2145:730;;;;;:::o;570:511::-;647:20;638:5;:29;;;;;;;;:::i;:::-;;634:441;;570:511;:::o;634:441::-;743:29;734:5;:38;;;;;;;;:::i;:::-;;730:345;;788:34;;;;;31668:2:26;788:34:13;;;31650:21:26;31707:2;31687:18;;;31680:30;31746:26;31726:18;;;31719:54;31790:18;;788:34:13;31466:348:26;730:345:13;852:35;843:5;:44;;;;;;;;:::i;:::-;;839:236;;903:41;;;;;32021:2:26;903:41:13;;;32003:21:26;32060:2;32040:18;;;32033:30;32099:33;32079:18;;;32072:61;32150:18;;903:41:13;31819:355:26;839:236:13;974:30;965:5;:39;;;;;;;;:::i;:::-;;961:114;;1020:44;;;;;32381:2:26;1020:44:13;;;32363:21:26;32420:2;32400:18;;;32393:30;32459:34;32439:18;;;32432:62;32530:4;32510:18;;;32503:32;32552:19;;1020:44:13;32179:398:26;4108:223:8;4241:12;4272:52;4294:6;4302:4;4308:1;4311:12;4272:21;:52::i;:::-;4265:59;4108:223;-1:-1:-1;;;;4108:223:8:o;2536:245:10:-;2597:7;2669:4;2633:40;;2696:2;2687:11;;2683:69;;;2721:20;;;;;;;;;;;;;;5009:1456:13;5097:7;;6021:66;6008:79;;6004:161;;;-1:-1:-1;6119:1:13;;-1:-1:-1;6123:30:13;6103:51;;6004:161;6276:24;;;6259:14;6276:24;;;;;;;;;33326:25:26;;;33399:4;33387:17;;33367:18;;;33360:45;;;;33421:18;;;33414:34;;;33464:18;;;33457:34;;;6276:24:13;;33298:19:26;;6276:24:13;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6276:24:13;;;;;;-1:-1:-1;;6314:20:13;;;6310:101;;6366:1;6370:29;6350:50;;;;;;;6310:101;6429:6;-1:-1:-1;6437:20:13;;-1:-1:-1;5009:1456:13;;;;;;;;:::o;5165:446:8:-;5330:12;5387:5;5362:21;:30;;5354:81;;;;;;;33704:2:26;5354:81:8;;;33686:21:26;33743:2;33723:18;;;33716:30;33782:34;33762:18;;;33755:62;33853:8;33833:18;;;33826:36;33879:19;;5354:81:8;33502:402:26;5354:81:8;5446:12;5460:23;5487:6;:11;;5506:5;5513:4;5487:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5445:73;;;;5535:69;5562:6;5570:7;5579:10;5591:12;5535:26;:69::i;:::-;5528:76;5165:446;-1:-1:-1;;;;;;;5165:446:8:o;7671:628::-;7851:12;7879:7;7875:418;;;7906:10;:17;7927:1;7906:22;7902:286;;1702:19;;;;8113:60;;;;;;;34417:2:26;8113:60:8;;;34399:21:26;34456:2;34436:18;;;34429:30;34495:31;34475:18;;;34468:59;34544:18;;8113:60:8;34215:353:26;8113:60:8;-1:-1:-1;8208:10:8;8201:17;;7875:418;8249:33;8257:10;8269:12;8980:17;;:21;8976:379;;9208:10;9202:17;9264:15;9251:10;9247:2;9243:19;9236:44;8976:379;9331:12;9324:20;;;;;;;;;;;:::i;14:162:26:-;108:42;101:5;97:54;90:5;87:65;77:93;;166:1;163;156:12;181:263;248:6;301:2;289:9;280:7;276:23;272:32;269:52;;;317:1;314;307:12;269:52;356:9;343:23;375:39;408:5;375:39;:::i;:::-;433:5;181:263;-1:-1:-1;;;181:263:26:o;449:524::-;526:6;534;542;595:2;583:9;574:7;570:23;566:32;563:52;;;611:1;608;601:12;563:52;650:9;637:23;669:39;702:5;669:39;:::i;:::-;727:5;-1:-1:-1;784:2:26;769:18;;756:32;797:41;756:32;797:41;:::i;:::-;449:524;;857:7;;-1:-1:-1;;;937:2:26;922:18;;;;909:32;;449:524::o;1661:347::-;1712:8;1722:6;1776:3;1769:4;1761:6;1757:17;1753:27;1743:55;;1794:1;1791;1784:12;1743:55;-1:-1:-1;1817:20:26;;1860:18;1849:30;;1846:50;;;1892:1;1889;1882:12;1846:50;1929:4;1921:6;1917:17;1905:29;;1981:3;1974:4;1965:6;1957;1953:19;1949:30;1946:39;1943:59;;;1998:1;1995;1988:12;2013:701;2130:6;2138;2146;2199:2;2187:9;2178:7;2174:23;2170:32;2167:52;;;2215:1;2212;2205:12;2167:52;2255:9;2242:23;2288:18;2280:6;2277:30;2274:50;;;2320:1;2317;2310:12;2274:50;2343:22;;2399:3;2381:16;;;2377:26;2374:46;;;2416:1;2413;2406:12;2374:46;2439:2;-1:-1:-1;2494:2:26;2479:18;;2466:32;2523:18;2510:32;;2507:52;;;2555:1;2552;2545:12;2507:52;2594:60;2646:7;2635:8;2624:9;2620:24;2594:60;:::i;:::-;2013:701;;2673:8;;-1:-1:-1;2568:86:26;;-1:-1:-1;;;;2013:701:26:o;2719:226::-;2778:6;2831:2;2819:9;2810:7;2806:23;2802:32;2799:52;;;2847:1;2844;2837:12;2799:52;-1:-1:-1;2892:23:26;;2719:226;-1:-1:-1;2719:226:26:o;2950:391::-;3037:8;3047:6;3101:3;3094:4;3086:6;3082:17;3078:27;3068:55;;3119:1;3116;3109:12;3068:55;-1:-1:-1;3142:20:26;;3185:18;3174:30;;3171:50;;;3217:1;3214;3207:12;3171:50;3254:4;3246:6;3242:17;3230:29;;3314:3;3307:4;3297:6;3294:1;3290:14;3282:6;3278:27;3274:38;3271:47;3268:67;;;3331:1;3328;3321:12;3346:639;3476:6;3484;3492;3545:2;3533:9;3524:7;3520:23;3516:32;3513:52;;;3561:1;3558;3551:12;3513:52;3601:9;3588:23;3634:18;3626:6;3623:30;3620:50;;;3666:1;3663;3656:12;3620:50;3705:94;3791:7;3782:6;3771:9;3767:22;3705:94;:::i;:::-;3818:8;;-1:-1:-1;3679:120:26;-1:-1:-1;;3903:2:26;3888:18;;3875:32;3916:39;3875:32;3916:39;:::i;:::-;3974:5;3964:15;;;3346:639;;;;;:::o;4172:118::-;4258:5;4251:13;4244:21;4237:5;4234:32;4224:60;;4280:1;4277;4270:12;4295:539;4369:6;4377;4385;4438:2;4426:9;4417:7;4413:23;4409:32;4406:52;;;4454:1;4451;4444:12;4406:52;4493:9;4480:23;4512:39;4545:5;4512:39;:::i;:::-;4570:5;-1:-1:-1;4627:2:26;4612:18;;4599:32;4640:41;4599:32;4640:41;:::i;:::-;4700:7;-1:-1:-1;4759:2:26;4744:18;;4731:32;4772:30;4731:32;4772:30;:::i;4839:404::-;4907:6;4915;4968:2;4956:9;4947:7;4943:23;4939:32;4936:52;;;4984:1;4981;4974:12;4936:52;5023:9;5010:23;5042:39;5075:5;5042:39;:::i;:::-;5100:5;-1:-1:-1;5157:2:26;5142:18;;5129:32;5170:41;5129:32;5170:41;:::i;:::-;5230:7;5220:17;;;4839:404;;;;;:::o;5428:172::-;5504:5;5549:3;5540:6;5535:3;5531:16;5527:26;5524:46;;;5566:1;5563;5556:12;5524:46;-1:-1:-1;5588:6:26;5428:172;-1:-1:-1;5428:172:26:o;5605:691::-;5727:6;5735;5743;5796:2;5784:9;5775:7;5771:23;5767:32;5764:52;;;5812:1;5809;5802:12;5764:52;5852:9;5839:23;5885:18;5877:6;5874:30;5871:50;;;5917:1;5914;5907:12;5871:50;5940:83;6015:7;6006:6;5995:9;5991:22;5940:83;:::i;:::-;5930:93;;;6076:2;6065:9;6061:18;6048:32;6105:18;6095:8;6092:32;6089:52;;;6137:1;6134;6127:12;6301:793;6394:6;6402;6410;6418;6426;6479:3;6467:9;6458:7;6454:23;6450:33;6447:53;;;6496:1;6493;6486:12;6447:53;6535:9;6522:23;6554:39;6587:5;6554:39;:::i;:::-;6612:5;-1:-1:-1;6669:2:26;6654:18;;6641:32;6682:41;6641:32;6682:41;:::i;:::-;6742:7;-1:-1:-1;6822:2:26;6807:18;;6794:32;;-1:-1:-1;6904:2:26;6889:18;;6876:32;6917:41;6876:32;6917:41;:::i;:::-;6301:793;;;;-1:-1:-1;6301:793:26;;7057:3;7042:19;7029:33;;6301:793;-1:-1:-1;;6301:793:26:o;7742:348::-;7784:3;7822:5;7816:12;7849:6;7844:3;7837:19;7905:6;7898:4;7891:5;7887:16;7880:4;7875:3;7871:14;7865:47;7957:1;7950:4;7941:6;7936:3;7932:16;7928:27;7921:38;8079:4;8009:66;8004:2;7996:6;7992:15;7988:88;7983:3;7979:98;7975:109;7968:116;;;7742:348;;;;:::o;8095:1314::-;8492:66;8484:6;8480:79;8469:9;8462:98;8596:3;8591:2;8580:9;8576:18;8569:31;8443:4;8623:46;8664:3;8653:9;8649:19;8641:6;8623:46;:::i;:::-;8717:9;8709:6;8705:22;8700:2;8689:9;8685:18;8678:50;8751:33;8777:6;8769;8751:33;:::i;:::-;8815:2;8800:18;;8793:34;;;8876:42;8864:55;;8858:3;8843:19;;8836:84;8951:3;8936:19;;8929:35;;;9001:22;;;8995:3;8980:19;;8973:51;9073:13;;9095:22;;;9145:2;9171:15;;;;-1:-1:-1;9133:15:26;;;;-1:-1:-1;9214:169:26;9228:6;9225:1;9222:13;9214:169;;;9289:13;;9277:26;;9332:2;9358:15;;;;9323:12;;;;9250:1;9243:9;9214:169;;;-1:-1:-1;9400:3:26;;8095:1314;-1:-1:-1;;;;;;;;;;;8095:1314:26:o;9667:647::-;9790:6;9798;9851:2;9839:9;9830:7;9826:23;9822:32;9819:52;;;9867:1;9864;9857:12;9819:52;9907:9;9894:23;9940:18;9932:6;9929:30;9926:50;;;9972:1;9969;9962:12;9926:50;9995:22;;10048:4;10040:13;;10036:27;-1:-1:-1;10026:55:26;;10077:1;10074;10067:12;10026:55;10117:2;10104:16;10143:18;10135:6;10132:30;10129:50;;;10175:1;10172;10165:12;10129:50;10228:7;10223:2;10213:6;10210:1;10206:14;10202:2;10198:23;10194:32;10191:45;10188:65;;;10249:1;10246;10239:12;10188:65;10280:2;10272:11;;;;;10302:6;;-1:-1:-1;9667:647:26;-1:-1:-1;;;9667:647:26:o;11009:390::-;11074:6;11082;11135:2;11123:9;11114:7;11110:23;11106:32;11103:52;;;11151:1;11148;11141:12;11103:52;11190:9;11177:23;11209:39;11242:5;11209:39;:::i;:::-;11267:5;-1:-1:-1;11324:2:26;11309:18;;11296:32;11337:30;11296:32;11337:30;:::i;11728:825::-;11817:6;11825;11833;11841;11849;11902:3;11890:9;11881:7;11877:23;11873:33;11870:53;;;11919:1;11916;11909:12;11870:53;11958:9;11945:23;11977:39;12010:5;11977:39;:::i;:::-;12035:5;-1:-1:-1;12092:2:26;12077:18;;12064:32;12105:41;12064:32;12105:41;:::i;:::-;12165:7;-1:-1:-1;12224:2:26;12209:18;;12196:32;12237:41;12196:32;12237:41;:::i;:::-;12297:7;-1:-1:-1;12356:2:26;12341:18;;12328:32;12369:30;12328:32;12369:30;:::i;:::-;12418:7;-1:-1:-1;12477:3:26;12462:19;;12449:33;12491:30;12449:33;12491:30;:::i;:::-;12540:7;12530:17;;;11728:825;;;;;;;;:::o;12558:375::-;12626:6;12634;12687:2;12675:9;12666:7;12662:23;12658:32;12655:52;;;12703:1;12700;12693:12;12655:52;12742:9;12729:23;12761:39;12794:5;12761:39;:::i;:::-;12819:5;12897:2;12882:18;;;;12869:32;;-1:-1:-1;;;12558:375:26:o;13459:184::-;13511:77;13508:1;13501:88;13608:4;13605:1;13598:15;13632:4;13629:1;13622:15;13648:274;13688:1;13714;13704:189;;13749:77;13746:1;13739:88;13850:4;13847:1;13840:15;13878:4;13875:1;13868:15;13704:189;-1:-1:-1;13907:9:26;;13648:274::o;13927:638::-;14054:4;14060:6;14120:11;14107:25;14210:66;14199:8;14183:14;14179:29;14175:102;14155:18;14151:127;14141:155;;14292:1;14289;14282:12;14141:155;14319:33;;14371:20;;;-1:-1:-1;14414:18:26;14403:30;;14400:50;;;14446:1;14443;14436:12;14400:50;14479:4;14467:17;;-1:-1:-1;14530:1:26;14526:14;;;14510;14506:35;14496:46;;14493:66;;;14555:1;14552;14545:12;14759:829;14850:6;14910:2;14898:9;14889:7;14885:23;14881:32;14925:2;14922:22;;;14940:1;14937;14930:12;14922:22;-1:-1:-1;14989:2:26;14983:9;;;15019:15;;15064:18;15049:34;;15085:22;;;15046:62;15043:242;;;15141:77;15138:1;15131:88;15242:4;15239:1;15232:15;15270:4;15267:1;15260:15;15043:242;15301:2;15294:22;15338:23;;15370:39;15338:23;15370:39;:::i;:::-;15418:21;;15512:2;15497:18;;;15484:32;15532:15;;;15525:32;;;;-1:-1:-1;15425:6:26;14759:829;-1:-1:-1;14759:829:26:o;16237:184::-;16289:77;16286:1;16279:88;16386:4;16383:1;16376:15;16410:4;16407:1;16400:15;16426:128;16493:9;;;16514:11;;;16511:37;;;16528:18;;:::i;16559:191::-;16594:3;16625:66;16618:5;16615:77;16612:103;;16695:18;;:::i;:::-;-1:-1:-1;16735:1:26;16731:13;;16559:191::o;16755:687::-;16878:6;16873:3;16866:19;16910:4;16905:3;16901:14;16894:21;;16848:3;16938:5;16961:1;16971:446;16985:6;16982:1;16979:13;16971:446;;;17062:6;17049:20;17082:41;17115:7;17082:41;:::i;:::-;17161:42;17148:56;17136:69;;17283:4;17271:17;;;17258:31;17309:14;;;17302:31;17362:4;17353:14;;;;17390:17;;;;17007:1;17000:9;16971:446;;;-1:-1:-1;17433:3:26;;16755:687;-1:-1:-1;;;;16755:687:26:o;17447:941::-;17926:42;17918:6;17914:55;17903:9;17896:74;18018:42;18010:6;18006:55;18001:2;17990:9;17986:18;17979:83;18098:3;18093:2;18082:9;18078:18;18071:31;17877:4;18125:97;18217:3;18206:9;18202:19;18194:6;18186;18125:97;:::i;:::-;18270:9;18262:6;18258:22;18253:2;18242:9;18238:18;18231:50;18298:84;18375:6;18367;18359;18298:84;:::i;:::-;18290:92;17447:941;-1:-1:-1;;;;;;;;;17447:941:26:o;18705:499::-;19002:42;18994:6;18990:55;18979:9;18972:74;19082:2;19077;19066:9;19062:18;19055:30;18953:4;19102:96;19194:2;19183:9;19179:18;19171:6;19163;19102:96;:::i;:::-;19094:104;18705:499;-1:-1:-1;;;;;18705:499:26:o;19209:216::-;19273:9;;;19301:11;;;19248:3;19331:9;;19359:10;;19355:19;;19384:10;;19376:19;;19352:44;19349:70;;;19399:18;;:::i;:::-;19349:70;;19209:216;;;;:::o;19430:200::-;19496:9;;;19469:4;19524:9;;19552:10;;19564:12;;;19548:29;19587:12;;;19579:21;;19545:56;19542:82;;;19604:18;;:::i;:::-;19542:82;19430:200;;;;:::o;20547:393::-;20650:4;20708:11;20695:25;20798:66;20787:8;20771:14;20767:29;20763:102;20743:18;20739:127;20729:155;;20880:1;20877;20870:12;20729:155;20901:33;;;;;20547:393;-1:-1:-1;;20547:393:26:o;20945:643::-;21074:4;21080:6;21140:11;21127:25;21230:66;21219:8;21203:14;21199:29;21195:102;21175:18;21171:127;21161:155;;21312:1;21309;21302:12;21161:155;21339:33;;21391:20;;;-1:-1:-1;21434:18:26;21423:30;;21420:50;;;21466:1;21463;21456:12;21420:50;21499:4;21487:17;;-1:-1:-1;21558:4:26;21546:17;;21530:14;21526:38;21516:49;;21513:69;;;21578:1;21575;21568:12;21593:184;21663:6;21716:2;21704:9;21695:7;21691:23;21687:32;21684:52;;;21732:1;21729;21722:12;21684:52;-1:-1:-1;21755:16:26;;21593:184;-1:-1:-1;21593:184:26:o;21782:168::-;21855:9;;;21886;;21903:15;;;21897:22;;21883:37;21873:71;;21924:18;;:::i;21955:125::-;22020:9;;;22041:10;;;22038:36;;;22054:18;;:::i;22085:2754::-;22357:2;22369:21;;;22342:18;;22425:22;;;-1:-1:-1;22478:2:26;22527:1;22523:14;;;22508:30;;22504:39;;;22463:18;;22566:6;-1:-1:-1;22643:66:26;22618:14;22614:27;;;22610:100;22719:2091;22733:6;22730:1;22727:13;22719:2091;;;22822:66;22810:9;22802:6;22798:22;22794:95;22789:3;22782:108;22942:6;22929:20;22996:2;22976:18;22972:27;22962:55;;23013:1;23010;23003:12;22962:55;23043:31;;23113:2;23101:15;;23144:19;;23176:41;23144:19;23176:41;:::i;:::-;23258:42;23245:56;23230:72;;23367:2;23356:14;;23343:28;23428:14;23424:26;;;23452:66;23420:99;23394:126;;23384:154;;23534:1;23531;23524:12;23384:154;23687:2;23566:32;;23674:16;;;;23625:21;23717:18;23706:30;;23703:50;;;23749:1;23746;23739:12;23703:50;23814:4;23806:6;23802:17;23786:14;23782:38;23773:7;23769:52;23766:72;;;23834:1;23831;23824:12;23766:72;23875:2;23870;23858:15;;23851:27;23923:22;;;;24044:1;;23979:4;23967:17;;24058:644;24074:6;24069:3;24066:15;24058:644;;;24163:8;24150:22;24189:41;24222:7;24189:41;:::i;:::-;24274:42;24261:56;24247:71;;24406:2;24392:17;;;24379:31;24434:14;;;24427:31;24546:2;24532:17;;;24519:31;24574:14;;;24567:31;24635:4;24669:19;;;;24100:1;24091:11;;;;;24624:16;24058:644;;;24725:5;-1:-1:-1;;;24765:2:26;24788:12;;;;24753:15;;;;;-1:-1:-1;22755:1:26;22748:9;;;;;22719:2091;;;-1:-1:-1;24827:6:26;;22085:2754;-1:-1:-1;;;;;;;22085:2754:26:o;25780:281::-;25872:6;25925:2;25913:9;25904:7;25900:23;25896:32;25893:52;;;25941:1;25938;25931:12;25893:52;25973:9;25967:16;25992:39;26025:5;25992:39;:::i;26691:377::-;26946:2;26935:9;26928:21;26909:4;26966:96;27058:2;27047:9;27043:18;27035:6;27027;26966:96;:::i;28167:292::-;28239:9;;;28206:7;28264:9;;28281:66;28275:73;;28260:89;28257:115;;;28352:18;;:::i;:::-;28425:1;28416:7;28411:16;28408:1;28405:23;28401:1;28394:9;28391:38;28381:72;;28433:18;;:::i;29765:437::-;29844:1;29840:12;;;;29887;;;29908:61;;29962:4;29954:6;29950:17;29940:27;;29908:61;30015:2;30007:6;30004:14;29984:18;29981:38;29978:218;;30052:77;30049:1;30042:88;30153:4;30150:1;30143:15;30181:4;30178:1;30171:15;30616:245;30683:6;30736:2;30724:9;30715:7;30711:23;30707:32;30704:52;;;30752:1;30749;30742:12;30704:52;30784:9;30778:16;30803:28;30825:5;30803:28;:::i;31277:184::-;31329:77;31326:1;31319:88;31426:4;31423:1;31416:15;31450:4;31447:1;31440:15;33909:301;34038:3;34076:6;34070:13;34122:6;34115:4;34107:6;34103:17;34098:3;34092:37;34184:1;34148:16;;34173:13;;;-1:-1:-1;34148:16:26;33909:301;-1:-1:-1;33909:301:26:o;34573:220::-;34722:2;34711:9;34704:21;34685:4;34742:45;34783:2;34772:9;34768:18;34760:6;34742:45;:::i","linkReferences":{},"immutableReferences":{"2620":[{"start":16090,"length":32}],"2622":[{"start":16048,"length":32}],"2624":[{"start":16006,"length":32}],"2626":[{"start":16171,"length":32}],"2628":[{"start":16211,"length":32}],"2631":[{"start":6805,"length":32}],"2634":[{"start":6847,"length":32}]}}}}}}},"signatures":{"function":[{"signature":"acceptOwnership()","signatureHash4":"0x79ba5097","signatureHash32":"0x79ba5097e5519a381a52113cdcc59540d13f73fd9d26abc0453484a096cc96f2"},{"signature":"addCollateral((address,uint256)[],address)","signatureHash4":"0xb6bdff03","signatureHash32":"0xb6bdff03b49eeb2ca6e08c05306003c074bb4fbc1cb711014b5a1874cbdcab88"},{"signature":"allLPTokens(uint256)","signatureHash4":"0x9246261c","signatureHash32":"0x9246261ccb9321712f89a553d3321a2d7ee37dba29b4944e9fe59c209e8a9568"},{"signature":"collateral(address,address)","signatureHash4":"0xcc218ece","signatureHash32":"0xcc218eceb7951f55e3a61bfce05dd7f4a875f8a8d02107bbdb3d666ea448f274"},{"signature":"creditPools(address)","signatureHash4":"0x0dfbe91b","signatureHash32":"0x0dfbe91b9ca2b2c7ee1ab4824762ede932728cae6783b1641ac668678c420d99"},{"signature":"eip712Domain()","signatureHash4":"0x84b0196e","signatureHash32":"0x84b0196e4b78e1918928c3b71e1f57a2bfc6d4a368fe07990ccc1367172719fb"},{"signature":"epochUpdate((address,(address,uint256,uint256)[])[])","signatureHash4":"0x98221e94","signatureHash32":"0x98221e941e64ad104f6453fc93eb09c126a4fed72b95c6cfbb2ffa30f654035e"},{"signature":"epochUpdater()","signatureHash4":"0x4f487eb8","signatureHash32":"0x4f487eb8ca97d0d7f9facc81369a0bd946e6d5c585e476d887353297fb0a8e72"},{"signature":"feeWithdrawer()","signatureHash4":"0x32b4fa6b","signatureHash32":"0x32b4fa6bbbecd85b85b06bb1df72baa4eda7357db8409d79197d3bf9fdb5ca1c"},{"signature":"lastEpochUpdateTimestamp(address)","signatureHash4":"0xb0ab63ec","signatureHash32":"0xb0ab63ec9213ea0919abf4bed2590bb6773b2912b8cdc7796edd52ecbacb95dc"},{"signature":"liquidate((uint256,uint256,address,(address,int256)[],(address,uint256)[]),bytes)","signatureHash4":"0x12411772","signatureHash32":"0x12411772cf5b233ae26f9ad3153caa99bcc6368adeb16269635294f6752500b3"},{"signature":"liquidators(address)","signatureHash4":"0xf90cdb36","signatureHash32":"0xf90cdb365b7bcf5a3618eb6583bbf0c7904b0144cf261bb7d1f0f9791ae52758"},{"signature":"liquidatorToRecipient(address)","signatureHash4":"0xf6d95efd","signatureHash32":"0xf6d95efdf5dc527fcccf09d28173dcf22e668576f9f9752df72ea005974acf5d"},{"signature":"lpTokens(address)","signatureHash4":"0xb17b658d","signatureHash32":"0xb17b658dc26e7e896e57a3cfe9c8188e60338c70523475629be1b00afe05b3ec"},{"signature":"nonces(uint256)","signatureHash4":"0x141a468c","signatureHash32":"0x141a468c5df8b749e946f230c65ccad2b479b4fa9e7c2b5a15826ff0f6e5f450"},{"signature":"owner()","signatureHash4":"0x8da5cb5b","signatureHash32":"0x8da5cb5b36e7f68c1d2e56001220cdbdd3ba2616072f718acfda4a06441a807d"},{"signature":"pay(address,uint256)","signatureHash4":"0xc4076876","signatureHash32":"0xc40768760861c5852e940fd40ca112b48d8dc1975460cca5acb8a003a931faf3"},{"signature":"pendingOwner()","signatureHash4":"0xe30c3978","signatureHash32":"0xe30c3978ddd82956a01b5cb08d17f1a2d73e636aeefb7b36f896e41d4c2aab90"},{"signature":"positions(address,address)","signatureHash4":"0x4bd21445","signatureHash32":"0x4bd21445084c54612e8da956e4b67e79280185f98d10149d6a33848d275dc76f"},{"signature":"rebalanceCaps(address,address)","signatureHash4":"0xb7477674","signatureHash32":"0xb747767417f930b0fe3250c172569affc69188b563031146398af2f88893abda"},{"signature":"removeCollateral((uint256,uint256,address,(address,uint256)[]),bytes)","signatureHash4":"0x4e293ee9","signatureHash32":"0x4e293ee9cdb6d5fbcfa7f5b5e830e69d5d87943bbe5145f5eaea2dc0bb60b9bb"},{"signature":"renounceOwnership()","signatureHash4":"0x715018a6","signatureHash32":"0x715018a616b5f2044428f6fadb7deef4ce9ca76ef60ea57978964ad137bbe7ae"},{"signature":"repay((address,int256)[],address)","signatureHash4":"0x81377bfd","signatureHash32":"0x81377bfdd66ae12f72b00cf7418f70b0951eace52a60037d2144dcc38ca319d9"},{"signature":"reserveFees(address)","signatureHash4":"0x464b38bc","signatureHash32":"0x464b38bcb112eadd6e53e296112317446c61aaef56e527795d32e88a6bb22297"},{"signature":"setAllowance((address,uint256)[],address)","signatureHash4":"0x1e777ad3","signatureHash32":"0x1e777ad390b7a40b0ddbdaadd97b7a651f5fd836b41f15352df841cd1e2f0c88"},{"signature":"setCreditPool(address,bool)","signatureHash4":"0xabb49f19","signatureHash32":"0xabb49f193eabe91bbc87e6c62e61c79d6f474575bb0765e1a9650adebef637ad"},{"signature":"setEpochUpdater(address)","signatureHash4":"0x73eb5133","signatureHash32":"0x73eb513311304f04daa5c0b218b7b62fa26cf4902831f6a35db6d358635b46f3"},{"signature":"setFeeWithdrawer(address)","signatureHash4":"0x00fc59c0","signatureHash32":"0x00fc59c0fea1bc4e5db4d6314e8b691945bd53c5a3745144893baee1c345056b"},{"signature":"setLiquidator(address,address,bool)","signatureHash4":"0x47de43e2","signatureHash32":"0x47de43e20a41fe2cdcb6c598ce55adb1dcf2eb4faa4c3424dbf5d14c54a9aba0"},{"signature":"setRebalanceCap(address,address,uint256)","signatureHash4":"0x097a8ec4","signatureHash32":"0x097a8ec45fa8b60f5f0ce3ccacc06ac2c551d9644490fcba12d5d550d3ca3383"},{"signature":"setSigner(address)","signatureHash4":"0x6c19e783","signatureHash32":"0x6c19e78356e125aebdcfec8378fd6bdb3054637fe31d45dc274ed7d3a756f643"},{"signature":"settle((uint256,uint256,address,(address,int256)[]),bytes)","signatureHash4":"0x9be41fdb","signatureHash32":"0x9be41fdbfe7f89562116db09724c7ed2da3c41f7f8754c5b462284eea486812c"},{"signature":"setTrader(address,address,address,bool,bool)","signatureHash4":"0xc2b73076","signatureHash32":"0xc2b730767bf56d22e56296eff0303fe18540dafc7a7cab89523dc938bde36713"},{"signature":"signer()","signatureHash4":"0x238ac933","signatureHash32":"0x238ac933815ecf0ebe2d25c09976ca5b27f626f968dd199d32461d76020097d8"},{"signature":"supportedMarkets(address)","signatureHash4":"0x20761fc4","signatureHash32":"0x20761fc4d5eee92e8cc6295e35bca46afe0295f9f0b385374ad757a79eac5cb8"},{"signature":"supportMarket(address)","signatureHash4":"0xcab4f84c","signatureHash32":"0xcab4f84ca5f191ffcc8a9b0fcb4cfe4ecd377aa42f1e2ea598b25b15e40e09ec"},{"signature":"swapCallback(address,address,int256,address,int256)","signatureHash4":"0x7362ecbe","signatureHash32":"0x7362ecbe4c96cadd6e4fa0ffdf1d3868fa0efd58488347b41d6a62f622951fbe"},{"signature":"traders(address)","signatureHash4":"0x92a88fa2","signatureHash32":"0x92a88fa2b15698fa0328344bbeecbb764a1324b7a7d3b0b55525fda2ff00fe90"},{"signature":"traderToRecipient(address)","signatureHash4":"0x422e0af0","signatureHash32":"0x422e0af0ef4f14eb761b0e17e3512039a09e6f518a993b85d55f06a049400c4f"},{"signature":"traderToSettler(address)","signatureHash4":"0x0d2a7ae8","signatureHash32":"0x0d2a7ae8ab4ba60641ac71104e9b553a637d9d03fbb88d722b6a51f2895763db"},{"signature":"transferOwnership(address)","signatureHash4":"0xf2fde38b","signatureHash32":"0xf2fde38b092330466c661fc723d5289b90272a3e580e3187d1d7ef788506c557"},{"signature":"whitelistTraders(address)","signatureHash4":"0x41b1fa76","signatureHash32":"0x41b1fa76d069e8373a0b5220c2bbc8807133c931b87b4d284cf16a86f09d6fc1"},{"signature":"withdrawReserve(address,address,uint256)","signatureHash4":"0xae1914f8","signatureHash32":"0xae1914f8b75e8dc25e97433c00efb7663db72d82a49835f2a654eca7822bb1b7"}],"event":[{"signature":"CollateralAdded(address,(address,uint256)[])","signatureHash4":"0x770dafe0","signatureHash32":"0x770dafe0b413d5c277b5f1a9d1d725e5ebafe92b5a16f3ebaae6e49e43b66499"},{"signature":"CollateralRemoved(address,(address,uint256)[])","signatureHash4":"0x45591744","signatureHash32":"0x455917442c530b052ee826d2556fad794f64a294e455930a63599688abbffa3c"},{"signature":"CreditPoolUpdated(address,bool)","signatureHash4":"0x947aca30","signatureHash32":"0x947aca305c9b8d94b31792a7f80d331c9452e743508d61331561378673b50103"},{"signature":"EIP712DomainChanged()","signatureHash4":"0x0a6387c9","signatureHash32":"0x0a6387c9ea3628b88a633bb4f3b151770f70085117a15f9bf3787cda53f13d31"},{"signature":"EpochUpdated((address,(address,uint256,uint256)[])[])","signatureHash4":"0x90e0333a","signatureHash32":"0x90e0333a7f11b37e50e152c45bb5ebfc2ce2ace82e290567861d3ae852968874"},{"signature":"EpochUpdaterSet(address)","signatureHash4":"0x538bd377","signatureHash32":"0x538bd377a1e0d2ceca49908f540bafa1d8616cf49a7bcefcd0b479e7531ff8aa"},{"signature":"FeeWithdrawerSet(address)","signatureHash4":"0x15d0b1a0","signatureHash32":"0x15d0b1a02a4902c4788ceda199eb43e4a753d86c0dbb7412e8ba63feecb070fa"},{"signature":"Liquidated(address,address,(address,int256)[],(address,uint256)[])","signatureHash4":"0xb5689a01","signatureHash32":"0xb5689a012cf77dd0a99ac07ed6f83009d7fbfca323bca73b34d6ed02bf413ab8"},{"signature":"LiquidatorSet(address,bool)","signatureHash4":"0x81e02034","signatureHash32":"0x81e020344174972c59f6c11a8f6c90b141866214e3d9b544d030f0b532f5a10f"},{"signature":"MarketListed(address)","signatureHash4":"0xcf583bb0","signatureHash32":"0xcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f"},{"signature":"OwnershipTransferred(address,address)","signatureHash4":"0x8be0079c","signatureHash32":"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0"},{"signature":"OwnershipTransferStarted(address,address)","signatureHash4":"0x38d16b8c","signatureHash32":"0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700"},{"signature":"RebalanceCapUpdated(address,address,uint256)","signatureHash4":"0x39ff4a05","signatureHash32":"0x39ff4a05a64bdf7e1dcb0b2d6b7e35b6a720a9412386a9e193c0e93d29a18470"},{"signature":"Repaid(address,(address,int256)[])","signatureHash4":"0xc8aa8228","signatureHash32":"0xc8aa82285b2a9e22e0bda601a759e4f578e78f18015e543a4f66bb120a726953"},{"signature":"ReserveWithdrawn(address,address,uint256)","signatureHash4":"0xde13184e","signatureHash32":"0xde13184e8cbb6eccbcecfc796bf8820e5ffde0534c01b4fabed4b05982964a44"},{"signature":"Settled(address,(address,int256)[])","signatureHash4":"0x0279bcc3","signatureHash32":"0x0279bcc316c233db88e8f3e463dcefc7fa661da21bc66eadc60f3835e41bba11"},{"signature":"SignerSet(address)","signatureHash4":"0x9eaa8975","signatureHash32":"0x9eaa897564d022fb8c5efaf0acdb5d9d27b440b2aad44400b6e1c702e65b9ed3"},{"signature":"TraderSet(address,bool,bool,address,address)","signatureHash4":"0x2353ec0f","signatureHash32":"0x2353ec0fe56a376d3269d3e65521f1ce07dc5f544cc5b0ba4eb2ff03f771a4ad"}],"error":[{"signature":"EpochUpdateInCoolDown()","signatureHash4":"0x0dc2dde4","signatureHash32":"0x0dc2dde48901df657b59c1ccaea3debaeacdab21c66c3f049d0648eb4377034a"},{"signature":"ExchangeRateIncreaseTooMuch()","signatureHash4":"0x0aa1e285","signatureHash32":"0x0aa1e285d11f3f610c42948ac3d560752402037ebe3a95ad7c13f895a8d13ed9"},{"signature":"InsufficientFundingFees()","signatureHash4":"0xce11c639","signatureHash32":"0xce11c6390bd580db53cee049da67144d9b7db0d2ccfffd22d98320ebd45bfe1e"},{"signature":"InsufficientUnderlying()","signatureHash4":"0xff75bad1","signatureHash32":"0xff75bad12806ac8cf8c5122dfc6495bf7f0ba66eeaf14f7c98b6fbcc44faa3ae"},{"signature":"InvalidLPToken()","signatureHash4":"0xf4186164","signatureHash32":"0xf418616461f3a685ad565c64f774b26596f877b17a1d413b52c2ca85b0838261"},{"signature":"InvalidMarket()","signatureHash4":"0x9db8d5b1","signatureHash32":"0x9db8d5b1bd1df0929e62d5cd7f3996f288961edcda549cafb4531c760793e460"},{"signature":"InvalidPositionUpdateAmount()","signatureHash4":"0x09a09f75","signatureHash32":"0x09a09f75300e72760b8a62a602270a3aa6d77aff64416d1992b696054bbe3cc0"},{"signature":"InvalidShortString()","signatureHash4":"0xb3512b0c","signatureHash32":"0xb3512b0c6163e5f0bafab72bb631b9d58cd7a731b082f910338aa21c83d5c274"},{"signature":"InvalidSignature()","signatureHash4":"0x8baa579f","signatureHash32":"0x8baa579fce362245063d36f11747a89dd489c54795634fc673cc0e0db51fedc5"},{"signature":"InvalidUnderlying()","signatureHash4":"0xa7466cd8","signatureHash32":"0xa7466cd804c49bf9870732e6155c3b78f48f194b1d6088964288dcea6de0c04e"},{"signature":"LiquidatorRecipientConflict()","signatureHash4":"0x88b43fad","signatureHash32":"0x88b43fad462877708879070a06d18d003dd40943710b0244d03235a7b8a8ee7c"},{"signature":"NonceUsed()","signatureHash4":"0x1f6d5aef","signatureHash32":"0x1f6d5aef5a4e50674e57b82f3fc08dc6ad8892bdf4aadafb3bc99cc8cf7a4706"},{"signature":"NotTraderOrLiquidator()","signatureHash4":"0x3be3aba2","signatureHash32":"0x3be3aba2d61c5e4189e85097e32a53b6107f2ecdeabfcc8821ea80ea29bb4254"},{"signature":"OnlyCreditPool()","signatureHash4":"0xd687c5f2","signatureHash32":"0xd687c5f2d5b2e26445d6e75a0bddd5b86864da4ea3fb3ae97de081b0495b61e9"},{"signature":"OnlyEpochUpdater()","signatureHash4":"0x16ced9a8","signatureHash32":"0x16ced9a8ce75aeb3ac0eaece858340ef85bf3200620a159e70ac6cca1403cff4"},{"signature":"OnlyFeeWithdrawer()","signatureHash4":"0xdcdd32f1","signatureHash32":"0xdcdd32f1aecec70620caa8afac8e00654c9556d6c14ddce7c8edc2d86046fc76"},{"signature":"OnlyLiquidator()","signatureHash4":"0x99b01c47","signatureHash32":"0x99b01c470185ddf56d5ceae146a7bfd490e34e98e547787ba62df93fc167bc05"},{"signature":"OnlyLpToken()","signatureHash4":"0x918aa47f","signatureHash32":"0x918aa47fc600f5a4560d367cab5dd2ffa27f6a780ee0a1d06dd3b643a8c1cfc2"},{"signature":"OnlyTrader()","signatureHash4":"0x897e65bd","signatureHash32":"0x897e65bd4ae1858b1471e24ed71a9fb0c757a41df0e86b86767ae16b705cba61"},{"signature":"RebalanceLimitExceeded()","signatureHash4":"0xf5b71ffc","signatureHash32":"0xf5b71ffcbfd45a9f2864a7a02b5212033aac42dd40df55f8fa18bf16f5cdf3d3"},{"signature":"ReentrancyGuardReentrantCall()","signatureHash4":"0x3ee5aeb5","signatureHash32":"0x3ee5aeb571de7fc460830b4d0017439a1ca56fb0bc39062227ade4fe4a24c1ca"},{"signature":"RequestExpired()","signatureHash4":"0xfef01cd2","signatureHash32":"0xfef01cd26f1840868831045dc2f34b5700f5853be8ef837c26b754432b5fa0fc"},{"signature":"StringTooLong(string)","signatureHash4":"0x305a27a9","signatureHash32":"0x305a27a93f8e33b7392df0a0f91d6fc63847395853c45991eec52dbf24d72381"},{"signature":"TokenAlreadyListed()","signatureHash4":"0xdeaabdc2","signatureHash32":"0xdeaabdc28fdd3e915db9cfb91f4b07144a573657eb502ee54d85e60185271ee9"},{"signature":"TraderRecipientConflict()","signatureHash4":"0x5bc7a3a5","signatureHash32":"0x5bc7a3a517c9977861a76954516a66323b84c04293b94aac63e6977a5c5d0f71"},{"signature":"ZeroAddress()","signatureHash4":"0xd92e233d","signatureHash32":"0xd92e233df2717d4a40030e20904abd27b68fcbeede117eaaccbbdac9618c8c73"}]},"proxyResolution":{"isProxy":false,"proxyType":null,"implementations":[]},"match":"exact_match","chainId":"1","address":"0xe3D41d19564922C9952f692C5Dd0563030f5f2EF"}